diff --git a/.gitignore b/.gitignore index 1c182ed926..4d5f7e7f93 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,4 @@ hs_err_pid* # generated stuff kubernetes/bin kubernetes/swagger.json.unprocessed +**/*.orig diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluent.java index d99778674b..de6986876b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,CoreV1Event item) { if (this.items == null) {this.items = new ArrayList();} CoreV1EventBuilder builder = new CoreV1EventBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,CoreV1Event item) { if (this.items == null) {this.items = new ArrayList();} CoreV1EventBuilder builder = new CoreV1EventBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluent.java index c95dacce3f..248d7684dd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,EventsV1Event item) { if (this.items == null) {this.items = new ArrayList();} EventsV1EventBuilder builder = new EventsV1EventBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,EventsV1Event item) { if (this.items == null) {this.items = new ArrayList();} EventsV1EventBuilder builder = new EventsV1EventBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluent.java index 875f4c278d..4122a11635 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluent.java @@ -124,14 +124,26 @@ public PreferredVersionNested editOrNewPreferredVersionLike(V1GroupVersionFor public A addToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - if (index < 0 || index >= serverAddressByClientCIDRs.size()) { _visitables.get("serverAddressByClientCIDRs").add(builder); serverAddressByClientCIDRs.add(builder); } else { _visitables.get("serverAddressByClientCIDRs").add(index, builder); serverAddressByClientCIDRs.add(index, builder);} + if (index < 0 || index >= serverAddressByClientCIDRs.size()) { + _visitables.get("serverAddressByClientCIDRs").add(builder); + serverAddressByClientCIDRs.add(builder); + } else { + _visitables.get("serverAddressByClientCIDRs").add(builder); + serverAddressByClientCIDRs.add(index, builder); + } return (A)this; } public A setToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - if (index < 0 || index >= serverAddressByClientCIDRs.size()) { _visitables.get("serverAddressByClientCIDRs").add(builder); serverAddressByClientCIDRs.add(builder); } else { _visitables.get("serverAddressByClientCIDRs").set(index, builder); serverAddressByClientCIDRs.set(index, builder);} + if (index < 0 || index >= serverAddressByClientCIDRs.size()) { + _visitables.get("serverAddressByClientCIDRs").add(builder); + serverAddressByClientCIDRs.add(builder); + } else { + _visitables.get("serverAddressByClientCIDRs").add(builder); + serverAddressByClientCIDRs.set(index, builder); + } return (A)this; } @@ -275,14 +287,26 @@ public ServerAddressByClientCIDRsNested editMatchingServerAddressByClientCIDR public A addToVersions(int index,V1GroupVersionForDiscovery item) { if (this.versions == null) {this.versions = new ArrayList();} V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); - if (index < 0 || index >= versions.size()) { _visitables.get("versions").add(builder); versions.add(builder); } else { _visitables.get("versions").add(index, builder); versions.add(index, builder);} + if (index < 0 || index >= versions.size()) { + _visitables.get("versions").add(builder); + versions.add(builder); + } else { + _visitables.get("versions").add(builder); + versions.add(index, builder); + } return (A)this; } public A setToVersions(int index,V1GroupVersionForDiscovery item) { if (this.versions == null) {this.versions = new ArrayList();} V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); - if (index < 0 || index >= versions.size()) { _visitables.get("versions").add(builder); versions.add(builder); } else { _visitables.get("versions").set(index, builder); versions.set(index, builder);} + if (index < 0 || index >= versions.size()) { + _visitables.get("versions").add(builder); + versions.add(builder); + } else { + _visitables.get("versions").add(builder); + versions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluent.java index d60e3d8b8d..9fe96debed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluent.java @@ -52,14 +52,26 @@ public boolean hasApiVersion() { public A addToGroups(int index,V1APIGroup item) { if (this.groups == null) {this.groups = new ArrayList();} V1APIGroupBuilder builder = new V1APIGroupBuilder(item); - if (index < 0 || index >= groups.size()) { _visitables.get("groups").add(builder); groups.add(builder); } else { _visitables.get("groups").add(index, builder); groups.add(index, builder);} + if (index < 0 || index >= groups.size()) { + _visitables.get("groups").add(builder); + groups.add(builder); + } else { + _visitables.get("groups").add(builder); + groups.add(index, builder); + } return (A)this; } public A setToGroups(int index,V1APIGroup item) { if (this.groups == null) {this.groups = new ArrayList();} V1APIGroupBuilder builder = new V1APIGroupBuilder(item); - if (index < 0 || index >= groups.size()) { _visitables.get("groups").add(builder); groups.add(builder); } else { _visitables.get("groups").set(index, builder); groups.set(index, builder);} + if (index < 0 || index >= groups.size()) { + _visitables.get("groups").add(builder); + groups.add(builder); + } else { + _visitables.get("groups").add(builder); + groups.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluent.java index 489fca8a00..da990a89a3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluent.java @@ -80,14 +80,26 @@ public boolean hasKind() { public A addToResources(int index,V1APIResource item) { if (this.resources == null) {this.resources = new ArrayList();} V1APIResourceBuilder builder = new V1APIResourceBuilder(item); - if (index < 0 || index >= resources.size()) { _visitables.get("resources").add(builder); resources.add(builder); } else { _visitables.get("resources").add(index, builder); resources.add(index, builder);} + if (index < 0 || index >= resources.size()) { + _visitables.get("resources").add(builder); + resources.add(builder); + } else { + _visitables.get("resources").add(builder); + resources.add(index, builder); + } return (A)this; } public A setToResources(int index,V1APIResource item) { if (this.resources == null) {this.resources = new ArrayList();} V1APIResourceBuilder builder = new V1APIResourceBuilder(item); - if (index < 0 || index >= resources.size()) { _visitables.get("resources").add(builder); resources.add(builder); } else { _visitables.get("resources").set(index, builder); resources.set(index, builder);} + if (index < 0 || index >= resources.size()) { + _visitables.get("resources").add(builder); + resources.add(builder); + } else { + _visitables.get("resources").add(builder); + resources.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluent.java index abc026424b..da675dfe1a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1APIService item) { if (this.items == null) {this.items = new ArrayList();} V1APIServiceBuilder builder = new V1APIServiceBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1APIService item) { if (this.items == null) {this.items = new ArrayList();} V1APIServiceBuilder builder = new V1APIServiceBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluent.java index c7329a52a1..347f61bd5e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1APIServiceStatus instance) { public A addToConditions(int index,V1APIServiceCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1APIServiceCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluent.java index 6c573b738a..83c3058def 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluent.java @@ -67,14 +67,26 @@ public boolean hasKind() { public A addToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - if (index < 0 || index >= serverAddressByClientCIDRs.size()) { _visitables.get("serverAddressByClientCIDRs").add(builder); serverAddressByClientCIDRs.add(builder); } else { _visitables.get("serverAddressByClientCIDRs").add(index, builder); serverAddressByClientCIDRs.add(index, builder);} + if (index < 0 || index >= serverAddressByClientCIDRs.size()) { + _visitables.get("serverAddressByClientCIDRs").add(builder); + serverAddressByClientCIDRs.add(builder); + } else { + _visitables.get("serverAddressByClientCIDRs").add(builder); + serverAddressByClientCIDRs.add(index, builder); + } return (A)this; } public A setToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - if (index < 0 || index >= serverAddressByClientCIDRs.size()) { _visitables.get("serverAddressByClientCIDRs").add(builder); serverAddressByClientCIDRs.add(builder); } else { _visitables.get("serverAddressByClientCIDRs").set(index, builder); serverAddressByClientCIDRs.set(index, builder);} + if (index < 0 || index >= serverAddressByClientCIDRs.size()) { + _visitables.get("serverAddressByClientCIDRs").add(builder); + serverAddressByClientCIDRs.add(builder); + } else { + _visitables.get("serverAddressByClientCIDRs").add(builder); + serverAddressByClientCIDRs.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluent.java index 5861b381e9..1a703f8ab0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1AggregationRule instance) { public A addToClusterRoleSelectors(int index,V1LabelSelector item) { if (this.clusterRoleSelectors == null) {this.clusterRoleSelectors = new ArrayList();} V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); - if (index < 0 || index >= clusterRoleSelectors.size()) { _visitables.get("clusterRoleSelectors").add(builder); clusterRoleSelectors.add(builder); } else { _visitables.get("clusterRoleSelectors").add(index, builder); clusterRoleSelectors.add(index, builder);} + if (index < 0 || index >= clusterRoleSelectors.size()) { + _visitables.get("clusterRoleSelectors").add(builder); + clusterRoleSelectors.add(builder); + } else { + _visitables.get("clusterRoleSelectors").add(builder); + clusterRoleSelectors.add(index, builder); + } return (A)this; } public A setToClusterRoleSelectors(int index,V1LabelSelector item) { if (this.clusterRoleSelectors == null) {this.clusterRoleSelectors = new ArrayList();} V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); - if (index < 0 || index >= clusterRoleSelectors.size()) { _visitables.get("clusterRoleSelectors").add(builder); clusterRoleSelectors.add(builder); } else { _visitables.get("clusterRoleSelectors").set(index, builder); clusterRoleSelectors.set(index, builder);} + if (index < 0 || index >= clusterRoleSelectors.size()) { + _visitables.get("clusterRoleSelectors").add(builder); + clusterRoleSelectors.add(builder); + } else { + _visitables.get("clusterRoleSelectors").add(builder); + clusterRoleSelectors.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluent.java index 2f4f1e6a25..30a6043a29 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1CSIDriver item) { if (this.items == null) {this.items = new ArrayList();} V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1CSIDriver item) { if (this.items == null) {this.items = new ArrayList();} V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecBuilder.java index 49c119e80d..c699b75b75 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecBuilder.java @@ -25,6 +25,7 @@ public V1CSIDriverSpec build() { V1CSIDriverSpec buildable = new V1CSIDriverSpec(); buildable.setAttachRequired(fluent.getAttachRequired()); buildable.setFsGroupPolicy(fluent.getFsGroupPolicy()); + buildable.setNodeAllocatableUpdatePeriodSeconds(fluent.getNodeAllocatableUpdatePeriodSeconds()); buildable.setPodInfoOnMount(fluent.getPodInfoOnMount()); buildable.setRequiresRepublish(fluent.getRequiresRepublish()); buildable.setSeLinuxMount(fluent.getSeLinuxMount()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluent.java index 9956a1edb3..462a73bf53 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluent.java @@ -7,6 +7,7 @@ import java.lang.String; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; import java.util.Iterator; import java.util.Collection; import java.lang.Object; @@ -26,6 +27,7 @@ public V1CSIDriverSpecFluent(V1CSIDriverSpec instance) { } private Boolean attachRequired; private String fsGroupPolicy; + private Long nodeAllocatableUpdatePeriodSeconds; private Boolean podInfoOnMount; private Boolean requiresRepublish; private Boolean seLinuxMount; @@ -38,6 +40,7 @@ protected void copyInstance(V1CSIDriverSpec instance) { if (instance != null) { this.withAttachRequired(instance.getAttachRequired()); this.withFsGroupPolicy(instance.getFsGroupPolicy()); + this.withNodeAllocatableUpdatePeriodSeconds(instance.getNodeAllocatableUpdatePeriodSeconds()); this.withPodInfoOnMount(instance.getPodInfoOnMount()); this.withRequiresRepublish(instance.getRequiresRepublish()); this.withSeLinuxMount(instance.getSeLinuxMount()); @@ -73,6 +76,19 @@ public boolean hasFsGroupPolicy() { return this.fsGroupPolicy != null; } + public Long getNodeAllocatableUpdatePeriodSeconds() { + return this.nodeAllocatableUpdatePeriodSeconds; + } + + public A withNodeAllocatableUpdatePeriodSeconds(Long nodeAllocatableUpdatePeriodSeconds) { + this.nodeAllocatableUpdatePeriodSeconds = nodeAllocatableUpdatePeriodSeconds; + return (A) this; + } + + public boolean hasNodeAllocatableUpdatePeriodSeconds() { + return this.nodeAllocatableUpdatePeriodSeconds != null; + } + public Boolean getPodInfoOnMount() { return this.podInfoOnMount; } @@ -128,14 +144,26 @@ public boolean hasStorageCapacity() { public A addToTokenRequests(int index,StorageV1TokenRequest item) { if (this.tokenRequests == null) {this.tokenRequests = new ArrayList();} StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); - if (index < 0 || index >= tokenRequests.size()) { _visitables.get("tokenRequests").add(builder); tokenRequests.add(builder); } else { _visitables.get("tokenRequests").add(index, builder); tokenRequests.add(index, builder);} + if (index < 0 || index >= tokenRequests.size()) { + _visitables.get("tokenRequests").add(builder); + tokenRequests.add(builder); + } else { + _visitables.get("tokenRequests").add(builder); + tokenRequests.add(index, builder); + } return (A)this; } public A setToTokenRequests(int index,StorageV1TokenRequest item) { if (this.tokenRequests == null) {this.tokenRequests = new ArrayList();} StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); - if (index < 0 || index >= tokenRequests.size()) { _visitables.get("tokenRequests").add(builder); tokenRequests.add(builder); } else { _visitables.get("tokenRequests").set(index, builder); tokenRequests.set(index, builder);} + if (index < 0 || index >= tokenRequests.size()) { + _visitables.get("tokenRequests").add(builder); + tokenRequests.add(builder); + } else { + _visitables.get("tokenRequests").add(builder); + tokenRequests.set(index, builder); + } return (A)this; } @@ -377,6 +405,7 @@ public boolean equals(Object o) { V1CSIDriverSpecFluent that = (V1CSIDriverSpecFluent) o; if (!java.util.Objects.equals(attachRequired, that.attachRequired)) return false; if (!java.util.Objects.equals(fsGroupPolicy, that.fsGroupPolicy)) return false; + if (!java.util.Objects.equals(nodeAllocatableUpdatePeriodSeconds, that.nodeAllocatableUpdatePeriodSeconds)) return false; if (!java.util.Objects.equals(podInfoOnMount, that.podInfoOnMount)) return false; if (!java.util.Objects.equals(requiresRepublish, that.requiresRepublish)) return false; if (!java.util.Objects.equals(seLinuxMount, that.seLinuxMount)) return false; @@ -387,7 +416,7 @@ public boolean equals(Object o) { } public int hashCode() { - return java.util.Objects.hash(attachRequired, fsGroupPolicy, podInfoOnMount, requiresRepublish, seLinuxMount, storageCapacity, tokenRequests, volumeLifecycleModes, super.hashCode()); + return java.util.Objects.hash(attachRequired, fsGroupPolicy, nodeAllocatableUpdatePeriodSeconds, podInfoOnMount, requiresRepublish, seLinuxMount, storageCapacity, tokenRequests, volumeLifecycleModes, super.hashCode()); } public String toString() { @@ -395,6 +424,7 @@ public String toString() { sb.append("{"); if (attachRequired != null) { sb.append("attachRequired:"); sb.append(attachRequired + ","); } if (fsGroupPolicy != null) { sb.append("fsGroupPolicy:"); sb.append(fsGroupPolicy + ","); } + if (nodeAllocatableUpdatePeriodSeconds != null) { sb.append("nodeAllocatableUpdatePeriodSeconds:"); sb.append(nodeAllocatableUpdatePeriodSeconds + ","); } if (podInfoOnMount != null) { sb.append("podInfoOnMount:"); sb.append(podInfoOnMount + ","); } if (requiresRepublish != null) { sb.append("requiresRepublish:"); sb.append(requiresRepublish + ","); } if (seLinuxMount != null) { sb.append("seLinuxMount:"); sb.append(seLinuxMount + ","); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluent.java index 3199e0216c..1c711b4e14 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1CSINode item) { if (this.items == null) {this.items = new ArrayList();} V1CSINodeBuilder builder = new V1CSINodeBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1CSINode item) { if (this.items == null) {this.items = new ArrayList();} V1CSINodeBuilder builder = new V1CSINodeBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluent.java index 9cebd63fe5..a756c26ee7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1CSINodeSpec instance) { public A addToDrivers(int index,V1CSINodeDriver item) { if (this.drivers == null) {this.drivers = new ArrayList();} V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); - if (index < 0 || index >= drivers.size()) { _visitables.get("drivers").add(builder); drivers.add(builder); } else { _visitables.get("drivers").add(index, builder); drivers.add(index, builder);} + if (index < 0 || index >= drivers.size()) { + _visitables.get("drivers").add(builder); + drivers.add(builder); + } else { + _visitables.get("drivers").add(builder); + drivers.add(index, builder); + } return (A)this; } public A setToDrivers(int index,V1CSINodeDriver item) { if (this.drivers == null) {this.drivers = new ArrayList();} V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); - if (index < 0 || index >= drivers.size()) { _visitables.get("drivers").add(builder); drivers.add(builder); } else { _visitables.get("drivers").set(index, builder); drivers.set(index, builder);} + if (index < 0 || index >= drivers.size()) { + _visitables.get("drivers").add(builder); + drivers.add(builder); + } else { + _visitables.get("drivers").add(builder); + drivers.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluent.java index 4c8bdb074f..c5da6bceee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1CSIStorageCapacity item) { if (this.items == null) {this.items = new ArrayList();} V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1CSIStorageCapacity item) { if (this.items == null) {this.items = new ArrayList();} V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluent.java index f578f55581..76d916cfa6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1CertificateSigningRequest item) { if (this.items == null) {this.items = new ArrayList();} V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1CertificateSigningRequest item) { if (this.items == null) {this.items = new ArrayList();} V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluent.java index 12cc0067e7..3942bb0428 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluent.java @@ -99,14 +99,26 @@ public boolean hasCertificate() { public A addToConditions(int index,V1CertificateSigningRequestCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1CertificateSigningRequestCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluent.java index 3f36b1aea0..2d85140561 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluent.java @@ -149,14 +149,26 @@ public RoleRefNested editOrNewRoleRefLike(V1RoleRef item) { public A addToSubjects(int index,RbacV1Subject item) { if (this.subjects == null) {this.subjects = new ArrayList();} RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { _visitables.get("subjects").add(builder); subjects.add(builder); } else { _visitables.get("subjects").add(index, builder); subjects.add(index, builder);} + if (index < 0 || index >= subjects.size()) { + _visitables.get("subjects").add(builder); + subjects.add(builder); + } else { + _visitables.get("subjects").add(builder); + subjects.add(index, builder); + } return (A)this; } public A setToSubjects(int index,RbacV1Subject item) { if (this.subjects == null) {this.subjects = new ArrayList();} RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { _visitables.get("subjects").add(builder); subjects.add(builder); } else { _visitables.get("subjects").set(index, builder); subjects.set(index, builder);} + if (index < 0 || index >= subjects.size()) { + _visitables.get("subjects").add(builder); + subjects.add(builder); + } else { + _visitables.get("subjects").add(builder); + subjects.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluent.java index 512606fbe1..c78dd852d6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1ClusterRoleBinding item) { if (this.items == null) {this.items = new ArrayList();} V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1ClusterRoleBinding item) { if (this.items == null) {this.items = new ArrayList();} V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluent.java index f74daa68fc..d46ff852ea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluent.java @@ -149,14 +149,26 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { public A addToRules(int index,V1PolicyRule item) { if (this.rules == null) {this.rules = new ArrayList();} V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").add(index, builder); rules.add(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); + } return (A)this; } public A setToRules(int index,V1PolicyRule item) { if (this.rules == null) {this.rules = new ArrayList();} V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").set(index, builder); rules.set(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluent.java index ff85a58d9e..5a3817bff3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1ClusterRole item) { if (this.items == null) {this.items = new ArrayList();} V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1ClusterRole item) { if (this.items == null) {this.items = new ArrayList();} V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluent.java index 7af8fbdcd3..37afe668ca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToConditions(int index,V1ComponentCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1ComponentCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluent.java index 3ad99c611a..2b3dde4692 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1ComponentStatus item) { if (this.items == null) {this.items = new ArrayList();} V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1ComponentStatus item) { if (this.items == null) {this.items = new ArrayList();} V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluent.java index 4fddf5d3ef..b57b7107a5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1ConfigMap item) { if (this.items == null) {this.items = new ArrayList();} V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1ConfigMap item) { if (this.items == null) {this.items = new ArrayList();} V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluent.java index 5ff77dea09..790ccebd72 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluent.java @@ -40,14 +40,26 @@ protected void copyInstance(V1ConfigMapProjection instance) { public A addToItems(int index,V1KeyToPath item) { if (this.items == null) {this.items = new ArrayList();} V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1KeyToPath item) { if (this.items == null) {this.items = new ArrayList();} V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluent.java index 5d22844b80..24e3717a68 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluent.java @@ -56,14 +56,26 @@ public boolean hasDefaultMode() { public A addToItems(int index,V1KeyToPath item) { if (this.items == null) {this.items = new ArrayList();} V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1KeyToPath item) { if (this.items == null) {this.items = new ArrayList();} V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluent.java index 09339e3a03..4f9eeb9558 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluent.java @@ -270,14 +270,26 @@ public boolean hasCommand() { public A addToEnv(int index,V1EnvVar item) { if (this.env == null) {this.env = new ArrayList();} V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - if (index < 0 || index >= env.size()) { _visitables.get("env").add(builder); env.add(builder); } else { _visitables.get("env").add(index, builder); env.add(index, builder);} + if (index < 0 || index >= env.size()) { + _visitables.get("env").add(builder); + env.add(builder); + } else { + _visitables.get("env").add(builder); + env.add(index, builder); + } return (A)this; } public A setToEnv(int index,V1EnvVar item) { if (this.env == null) {this.env = new ArrayList();} V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - if (index < 0 || index >= env.size()) { _visitables.get("env").add(builder); env.add(builder); } else { _visitables.get("env").set(index, builder); env.set(index, builder);} + if (index < 0 || index >= env.size()) { + _visitables.get("env").add(builder); + env.add(builder); + } else { + _visitables.get("env").add(builder); + env.set(index, builder); + } return (A)this; } @@ -421,14 +433,26 @@ public EnvNested editMatchingEnv(Predicate predicate) { public A addToEnvFrom(int index,V1EnvFromSource item) { if (this.envFrom == null) {this.envFrom = new ArrayList();} V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - if (index < 0 || index >= envFrom.size()) { _visitables.get("envFrom").add(builder); envFrom.add(builder); } else { _visitables.get("envFrom").add(index, builder); envFrom.add(index, builder);} + if (index < 0 || index >= envFrom.size()) { + _visitables.get("envFrom").add(builder); + envFrom.add(builder); + } else { + _visitables.get("envFrom").add(builder); + envFrom.add(index, builder); + } return (A)this; } public A setToEnvFrom(int index,V1EnvFromSource item) { if (this.envFrom == null) {this.envFrom = new ArrayList();} V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - if (index < 0 || index >= envFrom.size()) { _visitables.get("envFrom").add(builder); envFrom.add(builder); } else { _visitables.get("envFrom").set(index, builder); envFrom.set(index, builder);} + if (index < 0 || index >= envFrom.size()) { + _visitables.get("envFrom").add(builder); + envFrom.add(builder); + } else { + _visitables.get("envFrom").add(builder); + envFrom.set(index, builder); + } return (A)this; } @@ -691,14 +715,26 @@ public boolean hasName() { public A addToPorts(int index,V1ContainerPort item) { if (this.ports == null) {this.ports = new ArrayList();} V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").add(index, builder); ports.add(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); + } return (A)this; } public A setToPorts(int index,V1ContainerPort item) { if (this.ports == null) {this.ports = new ArrayList();} V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").set(index, builder); ports.set(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } return (A)this; } @@ -882,14 +918,26 @@ public ReadinessProbeNested editOrNewReadinessProbeLike(V1Probe item) { public A addToResizePolicy(int index,V1ContainerResizePolicy item) { if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();} V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - if (index < 0 || index >= resizePolicy.size()) { _visitables.get("resizePolicy").add(builder); resizePolicy.add(builder); } else { _visitables.get("resizePolicy").add(index, builder); resizePolicy.add(index, builder);} + if (index < 0 || index >= resizePolicy.size()) { + _visitables.get("resizePolicy").add(builder); + resizePolicy.add(builder); + } else { + _visitables.get("resizePolicy").add(builder); + resizePolicy.add(index, builder); + } return (A)this; } public A setToResizePolicy(int index,V1ContainerResizePolicy item) { if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();} V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - if (index < 0 || index >= resizePolicy.size()) { _visitables.get("resizePolicy").add(builder); resizePolicy.add(builder); } else { _visitables.get("resizePolicy").set(index, builder); resizePolicy.set(index, builder);} + if (index < 0 || index >= resizePolicy.size()) { + _visitables.get("resizePolicy").add(builder); + resizePolicy.add(builder); + } else { + _visitables.get("resizePolicy").add(builder); + resizePolicy.set(index, builder); + } return (A)this; } @@ -1231,14 +1279,26 @@ public boolean hasTty() { public A addToVolumeDevices(int index,V1VolumeDevice item) { if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - if (index < 0 || index >= volumeDevices.size()) { _visitables.get("volumeDevices").add(builder); volumeDevices.add(builder); } else { _visitables.get("volumeDevices").add(index, builder); volumeDevices.add(index, builder);} + if (index < 0 || index >= volumeDevices.size()) { + _visitables.get("volumeDevices").add(builder); + volumeDevices.add(builder); + } else { + _visitables.get("volumeDevices").add(builder); + volumeDevices.add(index, builder); + } return (A)this; } public A setToVolumeDevices(int index,V1VolumeDevice item) { if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - if (index < 0 || index >= volumeDevices.size()) { _visitables.get("volumeDevices").add(builder); volumeDevices.add(builder); } else { _visitables.get("volumeDevices").set(index, builder); volumeDevices.set(index, builder);} + if (index < 0 || index >= volumeDevices.size()) { + _visitables.get("volumeDevices").add(builder); + volumeDevices.add(builder); + } else { + _visitables.get("volumeDevices").add(builder); + volumeDevices.set(index, builder); + } return (A)this; } @@ -1382,14 +1442,26 @@ public VolumeDevicesNested editMatchingVolumeDevice(Predicate();} V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - if (index < 0 || index >= volumeMounts.size()) { _visitables.get("volumeMounts").add(builder); volumeMounts.add(builder); } else { _visitables.get("volumeMounts").add(index, builder); volumeMounts.add(index, builder);} + if (index < 0 || index >= volumeMounts.size()) { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(builder); + } else { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(index, builder); + } return (A)this; } public A setToVolumeMounts(int index,V1VolumeMount item) { if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - if (index < 0 || index >= volumeMounts.size()) { _visitables.get("volumeMounts").add(builder); volumeMounts.add(builder); } else { _visitables.get("volumeMounts").set(index, builder); volumeMounts.set(index, builder);} + if (index < 0 || index >= volumeMounts.size()) { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(builder); + } else { + _visitables.get("volumeMounts").add(builder); + volumeMounts.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusBuilder.java index 81ee41977a..4d45d1c1b3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusBuilder.java @@ -35,6 +35,7 @@ public V1ContainerStatus build() { buildable.setRestartCount(fluent.getRestartCount()); buildable.setStarted(fluent.getStarted()); buildable.setState(fluent.buildState()); + buildable.setStopSignal(fluent.getStopSignal()); buildable.setUser(fluent.buildUser()); buildable.setVolumeMounts(fluent.buildVolumeMounts()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluent.java index 7ff2c675cb..6a3ceaad8d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluent.java @@ -40,6 +40,7 @@ public V1ContainerStatusFluent(V1ContainerStatus instance) { private Integer restartCount; private Boolean started; private V1ContainerStateBuilder state; + private String stopSignal; private V1ContainerUserBuilder user; private ArrayList volumeMounts; @@ -58,6 +59,7 @@ protected void copyInstance(V1ContainerStatus instance) { this.withRestartCount(instance.getRestartCount()); this.withStarted(instance.getStarted()); this.withState(instance.getState()); + this.withStopSignal(instance.getStopSignal()); this.withUser(instance.getUser()); this.withVolumeMounts(instance.getVolumeMounts()); } @@ -103,14 +105,26 @@ public boolean hasAllocatedResources() { public A addToAllocatedResourcesStatus(int index,V1ResourceStatus item) { if (this.allocatedResourcesStatus == null) {this.allocatedResourcesStatus = new ArrayList();} V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); - if (index < 0 || index >= allocatedResourcesStatus.size()) { _visitables.get("allocatedResourcesStatus").add(builder); allocatedResourcesStatus.add(builder); } else { _visitables.get("allocatedResourcesStatus").add(index, builder); allocatedResourcesStatus.add(index, builder);} + if (index < 0 || index >= allocatedResourcesStatus.size()) { + _visitables.get("allocatedResourcesStatus").add(builder); + allocatedResourcesStatus.add(builder); + } else { + _visitables.get("allocatedResourcesStatus").add(builder); + allocatedResourcesStatus.add(index, builder); + } return (A)this; } public A setToAllocatedResourcesStatus(int index,V1ResourceStatus item) { if (this.allocatedResourcesStatus == null) {this.allocatedResourcesStatus = new ArrayList();} V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); - if (index < 0 || index >= allocatedResourcesStatus.size()) { _visitables.get("allocatedResourcesStatus").add(builder); allocatedResourcesStatus.add(builder); } else { _visitables.get("allocatedResourcesStatus").set(index, builder); allocatedResourcesStatus.set(index, builder);} + if (index < 0 || index >= allocatedResourcesStatus.size()) { + _visitables.get("allocatedResourcesStatus").add(builder); + allocatedResourcesStatus.add(builder); + } else { + _visitables.get("allocatedResourcesStatus").add(builder); + allocatedResourcesStatus.set(index, builder); + } return (A)this; } @@ -462,6 +476,19 @@ public StateNested editOrNewStateLike(V1ContainerState item) { return withNewStateLike(java.util.Optional.ofNullable(buildState()).orElse(item)); } + public String getStopSignal() { + return this.stopSignal; + } + + public A withStopSignal(String stopSignal) { + this.stopSignal = stopSignal; + return (A) this; + } + + public boolean hasStopSignal() { + return this.stopSignal != null; + } + public V1ContainerUser buildUser() { return this.user != null ? this.user.build() : null; } @@ -505,14 +532,26 @@ public UserNested editOrNewUserLike(V1ContainerUser item) { public A addToVolumeMounts(int index,V1VolumeMountStatus item) { if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); - if (index < 0 || index >= volumeMounts.size()) { _visitables.get("volumeMounts").add(builder); volumeMounts.add(builder); } else { _visitables.get("volumeMounts").add(index, builder); volumeMounts.add(index, builder);} + if (index < 0 || index >= volumeMounts.size()) { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(builder); + } else { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(index, builder); + } return (A)this; } public A setToVolumeMounts(int index,V1VolumeMountStatus item) { if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); - if (index < 0 || index >= volumeMounts.size()) { _visitables.get("volumeMounts").add(builder); volumeMounts.add(builder); } else { _visitables.get("volumeMounts").set(index, builder); volumeMounts.set(index, builder);} + if (index < 0 || index >= volumeMounts.size()) { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(builder); + } else { + _visitables.get("volumeMounts").add(builder); + volumeMounts.set(index, builder); + } return (A)this; } @@ -670,13 +709,14 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(restartCount, that.restartCount)) return false; if (!java.util.Objects.equals(started, that.started)) return false; if (!java.util.Objects.equals(state, that.state)) return false; + if (!java.util.Objects.equals(stopSignal, that.stopSignal)) return false; if (!java.util.Objects.equals(user, that.user)) return false; if (!java.util.Objects.equals(volumeMounts, that.volumeMounts)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(allocatedResources, allocatedResourcesStatus, containerID, image, imageID, lastState, name, ready, resources, restartCount, started, state, user, volumeMounts, super.hashCode()); + return java.util.Objects.hash(allocatedResources, allocatedResourcesStatus, containerID, image, imageID, lastState, name, ready, resources, restartCount, started, state, stopSignal, user, volumeMounts, super.hashCode()); } public String toString() { @@ -694,6 +734,7 @@ public String toString() { if (restartCount != null) { sb.append("restartCount:"); sb.append(restartCount + ","); } if (started != null) { sb.append("started:"); sb.append(started + ","); } if (state != null) { sb.append("state:"); sb.append(state + ","); } + if (stopSignal != null) { sb.append("stopSignal:"); sb.append(stopSignal + ","); } if (user != null) { sb.append("user:"); sb.append(user + ","); } if (volumeMounts != null && !volumeMounts.isEmpty()) { sb.append("volumeMounts:"); sb.append(volumeMounts); } sb.append("}"); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluent.java index b36e63d7af..056e791efe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1ControllerRevision item) { if (this.items == null) {this.items = new ArrayList();} V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1ControllerRevision item) { if (this.items == null) {this.items = new ArrayList();} V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluent.java index 9773ba7050..888611c026 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1CronJob item) { if (this.items == null) {this.items = new ArrayList();} V1CronJobBuilder builder = new V1CronJobBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1CronJob item) { if (this.items == null) {this.items = new ArrayList();} V1CronJobBuilder builder = new V1CronJobBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluent.java index c2fc48c96d..24d43de8fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluent.java @@ -40,14 +40,26 @@ protected void copyInstance(V1CronJobStatus instance) { public A addToActive(int index,V1ObjectReference item) { if (this.active == null) {this.active = new ArrayList();} V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - if (index < 0 || index >= active.size()) { _visitables.get("active").add(builder); active.add(builder); } else { _visitables.get("active").add(index, builder); active.add(index, builder);} + if (index < 0 || index >= active.size()) { + _visitables.get("active").add(builder); + active.add(builder); + } else { + _visitables.get("active").add(builder); + active.add(index, builder); + } return (A)this; } public A setToActive(int index,V1ObjectReference item) { if (this.active == null) {this.active = new ArrayList();} V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - if (index < 0 || index >= active.size()) { _visitables.get("active").add(builder); active.add(builder); } else { _visitables.get("active").set(index, builder); active.set(index, builder);} + if (index < 0 || index >= active.size()) { + _visitables.get("active").add(builder); + active.add(builder); + } else { + _visitables.get("active").add(builder); + active.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluent.java index aff849500f..adac11c26c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1CustomResourceDefinition item) { if (this.items == null) {this.items = new ArrayList();} V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1CustomResourceDefinition item) { if (this.items == null) {this.items = new ArrayList();} V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluent.java index ac19ae4b7c..1c96eea495 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluent.java @@ -165,14 +165,26 @@ public boolean hasScope() { public A addToVersions(int index,V1CustomResourceDefinitionVersion item) { if (this.versions == null) {this.versions = new ArrayList();} V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); - if (index < 0 || index >= versions.size()) { _visitables.get("versions").add(builder); versions.add(builder); } else { _visitables.get("versions").add(index, builder); versions.add(index, builder);} + if (index < 0 || index >= versions.size()) { + _visitables.get("versions").add(builder); + versions.add(builder); + } else { + _visitables.get("versions").add(builder); + versions.add(index, builder); + } return (A)this; } public A setToVersions(int index,V1CustomResourceDefinitionVersion item) { if (this.versions == null) {this.versions = new ArrayList();} V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); - if (index < 0 || index >= versions.size()) { _visitables.get("versions").add(builder); versions.add(builder); } else { _visitables.get("versions").set(index, builder); versions.set(index, builder);} + if (index < 0 || index >= versions.size()) { + _visitables.get("versions").add(builder); + versions.add(builder); + } else { + _visitables.get("versions").add(builder); + versions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluent.java index b72a6572f9..54c220a537 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluent.java @@ -79,14 +79,26 @@ public AcceptedNamesNested editOrNewAcceptedNamesLike(V1CustomResourceDefinit public A addToConditions(int index,V1CustomResourceDefinitionCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1CustomResourceDefinitionCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluent.java index f2824db2b7..50e38b2beb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluent.java @@ -52,14 +52,26 @@ protected void copyInstance(V1CustomResourceDefinitionVersion instance) { public A addToAdditionalPrinterColumns(int index,V1CustomResourceColumnDefinition item) { if (this.additionalPrinterColumns == null) {this.additionalPrinterColumns = new ArrayList();} V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); - if (index < 0 || index >= additionalPrinterColumns.size()) { _visitables.get("additionalPrinterColumns").add(builder); additionalPrinterColumns.add(builder); } else { _visitables.get("additionalPrinterColumns").add(index, builder); additionalPrinterColumns.add(index, builder);} + if (index < 0 || index >= additionalPrinterColumns.size()) { + _visitables.get("additionalPrinterColumns").add(builder); + additionalPrinterColumns.add(builder); + } else { + _visitables.get("additionalPrinterColumns").add(builder); + additionalPrinterColumns.add(index, builder); + } return (A)this; } public A setToAdditionalPrinterColumns(int index,V1CustomResourceColumnDefinition item) { if (this.additionalPrinterColumns == null) {this.additionalPrinterColumns = new ArrayList();} V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); - if (index < 0 || index >= additionalPrinterColumns.size()) { _visitables.get("additionalPrinterColumns").add(builder); additionalPrinterColumns.add(builder); } else { _visitables.get("additionalPrinterColumns").set(index, builder); additionalPrinterColumns.set(index, builder);} + if (index < 0 || index >= additionalPrinterColumns.size()) { + _visitables.get("additionalPrinterColumns").add(builder); + additionalPrinterColumns.add(builder); + } else { + _visitables.get("additionalPrinterColumns").add(builder); + additionalPrinterColumns.set(index, builder); + } return (A)this; } @@ -282,14 +294,26 @@ public SchemaNested editOrNewSchemaLike(V1CustomResourceValidation item) { public A addToSelectableFields(int index,V1SelectableField item) { if (this.selectableFields == null) {this.selectableFields = new ArrayList();} V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); - if (index < 0 || index >= selectableFields.size()) { _visitables.get("selectableFields").add(builder); selectableFields.add(builder); } else { _visitables.get("selectableFields").add(index, builder); selectableFields.add(index, builder);} + if (index < 0 || index >= selectableFields.size()) { + _visitables.get("selectableFields").add(builder); + selectableFields.add(builder); + } else { + _visitables.get("selectableFields").add(builder); + selectableFields.add(index, builder); + } return (A)this; } public A setToSelectableFields(int index,V1SelectableField item) { if (this.selectableFields == null) {this.selectableFields = new ArrayList();} V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); - if (index < 0 || index >= selectableFields.size()) { _visitables.get("selectableFields").add(builder); selectableFields.add(builder); } else { _visitables.get("selectableFields").set(index, builder); selectableFields.set(index, builder);} + if (index < 0 || index >= selectableFields.size()) { + _visitables.get("selectableFields").add(builder); + selectableFields.add(builder); + } else { + _visitables.get("selectableFields").add(builder); + selectableFields.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluent.java index 391155241a..cb151a6284 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1DaemonSet item) { if (this.items == null) {this.items = new ArrayList();} V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1DaemonSet item) { if (this.items == null) {this.items = new ArrayList();} V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluent.java index 5f0555edb2..030c8417a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluent.java @@ -68,14 +68,26 @@ public boolean hasCollisionCount() { public A addToConditions(int index,V1DaemonSetCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1DaemonSetCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluent.java index 21a0b288c3..e34e5030ac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1Deployment item) { if (this.items == null) {this.items = new ArrayList();} V1DeploymentBuilder builder = new V1DeploymentBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1Deployment item) { if (this.items == null) {this.items = new ArrayList();} V1DeploymentBuilder builder = new V1DeploymentBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusBuilder.java index 677b024c81..8a0a746a05 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusBuilder.java @@ -29,6 +29,7 @@ public V1DeploymentStatus build() { buildable.setObservedGeneration(fluent.getObservedGeneration()); buildable.setReadyReplicas(fluent.getReadyReplicas()); buildable.setReplicas(fluent.getReplicas()); + buildable.setTerminatingReplicas(fluent.getTerminatingReplicas()); buildable.setUnavailableReplicas(fluent.getUnavailableReplicas()); buildable.setUpdatedReplicas(fluent.getUpdatedReplicas()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluent.java index c808791715..9adadb9a59 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluent.java @@ -31,6 +31,7 @@ public V1DeploymentStatusFluent(V1DeploymentStatus instance) { private Long observedGeneration; private Integer readyReplicas; private Integer replicas; + private Integer terminatingReplicas; private Integer unavailableReplicas; private Integer updatedReplicas; @@ -43,6 +44,7 @@ protected void copyInstance(V1DeploymentStatus instance) { this.withObservedGeneration(instance.getObservedGeneration()); this.withReadyReplicas(instance.getReadyReplicas()); this.withReplicas(instance.getReplicas()); + this.withTerminatingReplicas(instance.getTerminatingReplicas()); this.withUnavailableReplicas(instance.getUnavailableReplicas()); this.withUpdatedReplicas(instance.getUpdatedReplicas()); } @@ -77,14 +79,26 @@ public boolean hasCollisionCount() { public A addToConditions(int index,V1DeploymentCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1DeploymentCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } @@ -264,6 +278,19 @@ public boolean hasReplicas() { return this.replicas != null; } + public Integer getTerminatingReplicas() { + return this.terminatingReplicas; + } + + public A withTerminatingReplicas(Integer terminatingReplicas) { + this.terminatingReplicas = terminatingReplicas; + return (A) this; + } + + public boolean hasTerminatingReplicas() { + return this.terminatingReplicas != null; + } + public Integer getUnavailableReplicas() { return this.unavailableReplicas; } @@ -301,13 +328,14 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(observedGeneration, that.observedGeneration)) return false; if (!java.util.Objects.equals(readyReplicas, that.readyReplicas)) return false; if (!java.util.Objects.equals(replicas, that.replicas)) return false; + if (!java.util.Objects.equals(terminatingReplicas, that.terminatingReplicas)) return false; if (!java.util.Objects.equals(unavailableReplicas, that.unavailableReplicas)) return false; if (!java.util.Objects.equals(updatedReplicas, that.updatedReplicas)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(availableReplicas, collisionCount, conditions, observedGeneration, readyReplicas, replicas, unavailableReplicas, updatedReplicas, super.hashCode()); + return java.util.Objects.hash(availableReplicas, collisionCount, conditions, observedGeneration, readyReplicas, replicas, terminatingReplicas, unavailableReplicas, updatedReplicas, super.hashCode()); } public String toString() { @@ -319,6 +347,7 @@ public String toString() { if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration + ","); } if (readyReplicas != null) { sb.append("readyReplicas:"); sb.append(readyReplicas + ","); } if (replicas != null) { sb.append("replicas:"); sb.append(replicas + ","); } + if (terminatingReplicas != null) { sb.append("terminatingReplicas:"); sb.append(terminatingReplicas + ","); } if (unavailableReplicas != null) { sb.append("unavailableReplicas:"); sb.append(unavailableReplicas + ","); } if (updatedReplicas != null) { sb.append("updatedReplicas:"); sb.append(updatedReplicas); } sb.append("}"); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluent.java index 154d417d45..aed47a02e2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1DownwardAPIProjection instance) { public A addToItems(int index,V1DownwardAPIVolumeFile item) { if (this.items == null) {this.items = new ArrayList();} V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1DownwardAPIVolumeFile item) { if (this.items == null) {this.items = new ArrayList();} V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluent.java index cf2afd1f5f..74f6f08cee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluent.java @@ -51,14 +51,26 @@ public boolean hasDefaultMode() { public A addToItems(int index,V1DownwardAPIVolumeFile item) { if (this.items == null) {this.items = new ArrayList();} V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1DownwardAPIVolumeFile item) { if (this.items == null) {this.items = new ArrayList();} V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsBuilder.java index a72325c2d9..1819048478 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsBuilder.java @@ -23,6 +23,7 @@ public V1EndpointHintsBuilder(V1EndpointHints instance) { public V1EndpointHints build() { V1EndpointHints buildable = new V1EndpointHints(); + buildable.setForNodes(fluent.buildForNodes()); buildable.setForZones(fluent.buildForZones()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluent.java index 26dc2f8a50..1e75b0ab8d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluent.java @@ -23,26 +23,203 @@ public V1EndpointHintsFluent() { public V1EndpointHintsFluent(V1EndpointHints instance) { this.copyInstance(instance); } + private ArrayList forNodes; private ArrayList forZones; protected void copyInstance(V1EndpointHints instance) { instance = (instance != null ? instance : new V1EndpointHints()); if (instance != null) { + this.withForNodes(instance.getForNodes()); this.withForZones(instance.getForZones()); } } + public A addToForNodes(int index,V1ForNode item) { + if (this.forNodes == null) {this.forNodes = new ArrayList();} + V1ForNodeBuilder builder = new V1ForNodeBuilder(item); + if (index < 0 || index >= forNodes.size()) { + _visitables.get("forNodes").add(builder); + forNodes.add(builder); + } else { + _visitables.get("forNodes").add(builder); + forNodes.add(index, builder); + } + return (A)this; + } + + public A setToForNodes(int index,V1ForNode item) { + if (this.forNodes == null) {this.forNodes = new ArrayList();} + V1ForNodeBuilder builder = new V1ForNodeBuilder(item); + if (index < 0 || index >= forNodes.size()) { + _visitables.get("forNodes").add(builder); + forNodes.add(builder); + } else { + _visitables.get("forNodes").add(builder); + forNodes.set(index, builder); + } + return (A)this; + } + + public A addToForNodes(io.kubernetes.client.openapi.models.V1ForNode... items) { + if (this.forNodes == null) {this.forNodes = new ArrayList();} + for (V1ForNode item : items) {V1ForNodeBuilder builder = new V1ForNodeBuilder(item);_visitables.get("forNodes").add(builder);this.forNodes.add(builder);} return (A)this; + } + + public A addAllToForNodes(Collection items) { + if (this.forNodes == null) {this.forNodes = new ArrayList();} + for (V1ForNode item : items) {V1ForNodeBuilder builder = new V1ForNodeBuilder(item);_visitables.get("forNodes").add(builder);this.forNodes.add(builder);} return (A)this; + } + + public A removeFromForNodes(io.kubernetes.client.openapi.models.V1ForNode... items) { + if (this.forNodes == null) return (A)this; + for (V1ForNode item : items) {V1ForNodeBuilder builder = new V1ForNodeBuilder(item);_visitables.get("forNodes").remove(builder); this.forNodes.remove(builder);} return (A)this; + } + + public A removeAllFromForNodes(Collection items) { + if (this.forNodes == null) return (A)this; + for (V1ForNode item : items) {V1ForNodeBuilder builder = new V1ForNodeBuilder(item);_visitables.get("forNodes").remove(builder); this.forNodes.remove(builder);} return (A)this; + } + + public A removeMatchingFromForNodes(Predicate predicate) { + if (forNodes == null) return (A) this; + final Iterator each = forNodes.iterator(); + final List visitables = _visitables.get("forNodes"); + while (each.hasNext()) { + V1ForNodeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildForNodes() { + return this.forNodes != null ? build(forNodes) : null; + } + + public V1ForNode buildForNode(int index) { + return this.forNodes.get(index).build(); + } + + public V1ForNode buildFirstForNode() { + return this.forNodes.get(0).build(); + } + + public V1ForNode buildLastForNode() { + return this.forNodes.get(forNodes.size() - 1).build(); + } + + public V1ForNode buildMatchingForNode(Predicate predicate) { + for (V1ForNodeBuilder item : forNodes) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingForNode(Predicate predicate) { + for (V1ForNodeBuilder item : forNodes) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withForNodes(List forNodes) { + if (this.forNodes != null) { + this._visitables.get("forNodes").clear(); + } + if (forNodes != null) { + this.forNodes = new ArrayList(); + for (V1ForNode item : forNodes) { + this.addToForNodes(item); + } + } else { + this.forNodes = null; + } + return (A) this; + } + + public A withForNodes(io.kubernetes.client.openapi.models.V1ForNode... forNodes) { + if (this.forNodes != null) { + this.forNodes.clear(); + _visitables.remove("forNodes"); + } + if (forNodes != null) { + for (V1ForNode item : forNodes) { + this.addToForNodes(item); + } + } + return (A) this; + } + + public boolean hasForNodes() { + return this.forNodes != null && !this.forNodes.isEmpty(); + } + + public ForNodesNested addNewForNode() { + return new ForNodesNested(-1, null); + } + + public ForNodesNested addNewForNodeLike(V1ForNode item) { + return new ForNodesNested(-1, item); + } + + public ForNodesNested setNewForNodeLike(int index,V1ForNode item) { + return new ForNodesNested(index, item); + } + + public ForNodesNested editForNode(int index) { + if (forNodes.size() <= index) throw new RuntimeException("Can't edit forNodes. Index exceeds size."); + return setNewForNodeLike(index, buildForNode(index)); + } + + public ForNodesNested editFirstForNode() { + if (forNodes.size() == 0) throw new RuntimeException("Can't edit first forNodes. The list is empty."); + return setNewForNodeLike(0, buildForNode(0)); + } + + public ForNodesNested editLastForNode() { + int index = forNodes.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last forNodes. The list is empty."); + return setNewForNodeLike(index, buildForNode(index)); + } + + public ForNodesNested editMatchingForNode(Predicate predicate) { + int index = -1; + for (int i=0;i();} V1ForZoneBuilder builder = new V1ForZoneBuilder(item); - if (index < 0 || index >= forZones.size()) { _visitables.get("forZones").add(builder); forZones.add(builder); } else { _visitables.get("forZones").add(index, builder); forZones.add(index, builder);} + if (index < 0 || index >= forZones.size()) { + _visitables.get("forZones").add(builder); + forZones.add(builder); + } else { + _visitables.get("forZones").add(builder); + forZones.add(index, builder); + } return (A)this; } public A setToForZones(int index,V1ForZone item) { if (this.forZones == null) {this.forZones = new ArrayList();} V1ForZoneBuilder builder = new V1ForZoneBuilder(item); - if (index < 0 || index >= forZones.size()) { _visitables.get("forZones").add(builder); forZones.add(builder); } else { _visitables.get("forZones").set(index, builder); forZones.set(index, builder);} + if (index < 0 || index >= forZones.size()) { + _visitables.get("forZones").add(builder); + forZones.add(builder); + } else { + _visitables.get("forZones").add(builder); + forZones.set(index, builder); + } return (A)this; } @@ -188,20 +365,40 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; V1EndpointHintsFluent that = (V1EndpointHintsFluent) o; + if (!java.util.Objects.equals(forNodes, that.forNodes)) return false; if (!java.util.Objects.equals(forZones, that.forZones)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(forZones, super.hashCode()); + return java.util.Objects.hash(forNodes, forZones, super.hashCode()); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); + if (forNodes != null && !forNodes.isEmpty()) { sb.append("forNodes:"); sb.append(forNodes + ","); } if (forZones != null && !forZones.isEmpty()) { sb.append("forZones:"); sb.append(forZones); } sb.append("}"); return sb.toString(); + } + public class ForNodesNested extends V1ForNodeFluent> implements Nested{ + ForNodesNested(int index,V1ForNode item) { + this.index = index; + this.builder = new V1ForNodeBuilder(this, item); + } + V1ForNodeBuilder builder; + int index; + + public N and() { + return (N) V1EndpointHintsFluent.this.setToForNodes(index,builder.build()); + } + + public N endForNode() { + return and(); + } + + } public class ForZonesNested extends V1ForZoneFluent> implements Nested{ ForZonesNested(int index,V1ForZone item) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluent.java index 34b0625a8e..31552415d2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluent.java @@ -71,14 +71,26 @@ public boolean hasApiVersion() { public A addToEndpoints(int index,V1Endpoint item) { if (this.endpoints == null) {this.endpoints = new ArrayList();} V1EndpointBuilder builder = new V1EndpointBuilder(item); - if (index < 0 || index >= endpoints.size()) { _visitables.get("endpoints").add(builder); endpoints.add(builder); } else { _visitables.get("endpoints").add(index, builder); endpoints.add(index, builder);} + if (index < 0 || index >= endpoints.size()) { + _visitables.get("endpoints").add(builder); + endpoints.add(builder); + } else { + _visitables.get("endpoints").add(builder); + endpoints.add(index, builder); + } return (A)this; } public A setToEndpoints(int index,V1Endpoint item) { if (this.endpoints == null) {this.endpoints = new ArrayList();} V1EndpointBuilder builder = new V1EndpointBuilder(item); - if (index < 0 || index >= endpoints.size()) { _visitables.get("endpoints").add(builder); endpoints.add(builder); } else { _visitables.get("endpoints").set(index, builder); endpoints.set(index, builder);} + if (index < 0 || index >= endpoints.size()) { + _visitables.get("endpoints").add(builder); + endpoints.add(builder); + } else { + _visitables.get("endpoints").add(builder); + endpoints.set(index, builder); + } return (A)this; } @@ -275,14 +287,26 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { public A addToPorts(int index,DiscoveryV1EndpointPort item) { if (this.ports == null) {this.ports = new ArrayList();} DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").add(index, builder); ports.add(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); + } return (A)this; } public A setToPorts(int index,DiscoveryV1EndpointPort item) { if (this.ports == null) {this.ports = new ArrayList();} DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").set(index, builder); ports.set(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluent.java index 892fd476d7..d4eb7fa430 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1EndpointSlice item) { if (this.items == null) {this.items = new ArrayList();} V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1EndpointSlice item) { if (this.items == null) {this.items = new ArrayList();} V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluent.java index c3e0b82036..a3809c477c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluent.java @@ -39,14 +39,26 @@ protected void copyInstance(V1EndpointSubset instance) { public A addToAddresses(int index,V1EndpointAddress item) { if (this.addresses == null) {this.addresses = new ArrayList();} V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - if (index < 0 || index >= addresses.size()) { _visitables.get("addresses").add(builder); addresses.add(builder); } else { _visitables.get("addresses").add(index, builder); addresses.add(index, builder);} + if (index < 0 || index >= addresses.size()) { + _visitables.get("addresses").add(builder); + addresses.add(builder); + } else { + _visitables.get("addresses").add(builder); + addresses.add(index, builder); + } return (A)this; } public A setToAddresses(int index,V1EndpointAddress item) { if (this.addresses == null) {this.addresses = new ArrayList();} V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - if (index < 0 || index >= addresses.size()) { _visitables.get("addresses").add(builder); addresses.add(builder); } else { _visitables.get("addresses").set(index, builder); addresses.set(index, builder);} + if (index < 0 || index >= addresses.size()) { + _visitables.get("addresses").add(builder); + addresses.add(builder); + } else { + _visitables.get("addresses").add(builder); + addresses.set(index, builder); + } return (A)this; } @@ -190,14 +202,26 @@ public AddressesNested editMatchingAddress(Predicate();} V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - if (index < 0 || index >= notReadyAddresses.size()) { _visitables.get("notReadyAddresses").add(builder); notReadyAddresses.add(builder); } else { _visitables.get("notReadyAddresses").add(index, builder); notReadyAddresses.add(index, builder);} + if (index < 0 || index >= notReadyAddresses.size()) { + _visitables.get("notReadyAddresses").add(builder); + notReadyAddresses.add(builder); + } else { + _visitables.get("notReadyAddresses").add(builder); + notReadyAddresses.add(index, builder); + } return (A)this; } public A setToNotReadyAddresses(int index,V1EndpointAddress item) { if (this.notReadyAddresses == null) {this.notReadyAddresses = new ArrayList();} V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - if (index < 0 || index >= notReadyAddresses.size()) { _visitables.get("notReadyAddresses").add(builder); notReadyAddresses.add(builder); } else { _visitables.get("notReadyAddresses").set(index, builder); notReadyAddresses.set(index, builder);} + if (index < 0 || index >= notReadyAddresses.size()) { + _visitables.get("notReadyAddresses").add(builder); + notReadyAddresses.add(builder); + } else { + _visitables.get("notReadyAddresses").add(builder); + notReadyAddresses.set(index, builder); + } return (A)this; } @@ -341,14 +365,26 @@ public NotReadyAddressesNested editMatchingNotReadyAddress(Predicate();} CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").add(index, builder); ports.add(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); + } return (A)this; } public A setToPorts(int index,CoreV1EndpointPort item) { if (this.ports == null) {this.ports = new ArrayList();} CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").set(index, builder); ports.set(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluent.java index 14e9bfcc47..5089ceeaa1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluent.java @@ -107,14 +107,26 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { public A addToSubsets(int index,V1EndpointSubset item) { if (this.subsets == null) {this.subsets = new ArrayList();} V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); - if (index < 0 || index >= subsets.size()) { _visitables.get("subsets").add(builder); subsets.add(builder); } else { _visitables.get("subsets").add(index, builder); subsets.add(index, builder);} + if (index < 0 || index >= subsets.size()) { + _visitables.get("subsets").add(builder); + subsets.add(builder); + } else { + _visitables.get("subsets").add(builder); + subsets.add(index, builder); + } return (A)this; } public A setToSubsets(int index,V1EndpointSubset item) { if (this.subsets == null) {this.subsets = new ArrayList();} V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); - if (index < 0 || index >= subsets.size()) { _visitables.get("subsets").add(builder); subsets.add(builder); } else { _visitables.get("subsets").set(index, builder); subsets.set(index, builder);} + if (index < 0 || index >= subsets.size()) { + _visitables.get("subsets").add(builder); + subsets.add(builder); + } else { + _visitables.get("subsets").add(builder); + subsets.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluent.java index 64c6cc03ce..04bb39aad3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1Endpoints item) { if (this.items == null) {this.items = new ArrayList();} V1EndpointsBuilder builder = new V1EndpointsBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1Endpoints item) { if (this.items == null) {this.items = new ArrayList();} V1EndpointsBuilder builder = new V1EndpointsBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluent.java index 690ec004a0..7cbe7d75f1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluent.java @@ -272,14 +272,26 @@ public boolean hasCommand() { public A addToEnv(int index,V1EnvVar item) { if (this.env == null) {this.env = new ArrayList();} V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - if (index < 0 || index >= env.size()) { _visitables.get("env").add(builder); env.add(builder); } else { _visitables.get("env").add(index, builder); env.add(index, builder);} + if (index < 0 || index >= env.size()) { + _visitables.get("env").add(builder); + env.add(builder); + } else { + _visitables.get("env").add(builder); + env.add(index, builder); + } return (A)this; } public A setToEnv(int index,V1EnvVar item) { if (this.env == null) {this.env = new ArrayList();} V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - if (index < 0 || index >= env.size()) { _visitables.get("env").add(builder); env.add(builder); } else { _visitables.get("env").set(index, builder); env.set(index, builder);} + if (index < 0 || index >= env.size()) { + _visitables.get("env").add(builder); + env.add(builder); + } else { + _visitables.get("env").add(builder); + env.set(index, builder); + } return (A)this; } @@ -423,14 +435,26 @@ public EnvNested editMatchingEnv(Predicate predicate) { public A addToEnvFrom(int index,V1EnvFromSource item) { if (this.envFrom == null) {this.envFrom = new ArrayList();} V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - if (index < 0 || index >= envFrom.size()) { _visitables.get("envFrom").add(builder); envFrom.add(builder); } else { _visitables.get("envFrom").add(index, builder); envFrom.add(index, builder);} + if (index < 0 || index >= envFrom.size()) { + _visitables.get("envFrom").add(builder); + envFrom.add(builder); + } else { + _visitables.get("envFrom").add(builder); + envFrom.add(index, builder); + } return (A)this; } public A setToEnvFrom(int index,V1EnvFromSource item) { if (this.envFrom == null) {this.envFrom = new ArrayList();} V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - if (index < 0 || index >= envFrom.size()) { _visitables.get("envFrom").add(builder); envFrom.add(builder); } else { _visitables.get("envFrom").set(index, builder); envFrom.set(index, builder);} + if (index < 0 || index >= envFrom.size()) { + _visitables.get("envFrom").add(builder); + envFrom.add(builder); + } else { + _visitables.get("envFrom").add(builder); + envFrom.set(index, builder); + } return (A)this; } @@ -693,14 +717,26 @@ public boolean hasName() { public A addToPorts(int index,V1ContainerPort item) { if (this.ports == null) {this.ports = new ArrayList();} V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").add(index, builder); ports.add(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); + } return (A)this; } public A setToPorts(int index,V1ContainerPort item) { if (this.ports == null) {this.ports = new ArrayList();} V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").set(index, builder); ports.set(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } return (A)this; } @@ -884,14 +920,26 @@ public ReadinessProbeNested editOrNewReadinessProbeLike(V1Probe item) { public A addToResizePolicy(int index,V1ContainerResizePolicy item) { if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();} V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - if (index < 0 || index >= resizePolicy.size()) { _visitables.get("resizePolicy").add(builder); resizePolicy.add(builder); } else { _visitables.get("resizePolicy").add(index, builder); resizePolicy.add(index, builder);} + if (index < 0 || index >= resizePolicy.size()) { + _visitables.get("resizePolicy").add(builder); + resizePolicy.add(builder); + } else { + _visitables.get("resizePolicy").add(builder); + resizePolicy.add(index, builder); + } return (A)this; } public A setToResizePolicy(int index,V1ContainerResizePolicy item) { if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();} V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - if (index < 0 || index >= resizePolicy.size()) { _visitables.get("resizePolicy").add(builder); resizePolicy.add(builder); } else { _visitables.get("resizePolicy").set(index, builder); resizePolicy.set(index, builder);} + if (index < 0 || index >= resizePolicy.size()) { + _visitables.get("resizePolicy").add(builder); + resizePolicy.add(builder); + } else { + _visitables.get("resizePolicy").add(builder); + resizePolicy.set(index, builder); + } return (A)this; } @@ -1246,14 +1294,26 @@ public boolean hasTty() { public A addToVolumeDevices(int index,V1VolumeDevice item) { if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - if (index < 0 || index >= volumeDevices.size()) { _visitables.get("volumeDevices").add(builder); volumeDevices.add(builder); } else { _visitables.get("volumeDevices").add(index, builder); volumeDevices.add(index, builder);} + if (index < 0 || index >= volumeDevices.size()) { + _visitables.get("volumeDevices").add(builder); + volumeDevices.add(builder); + } else { + _visitables.get("volumeDevices").add(builder); + volumeDevices.add(index, builder); + } return (A)this; } public A setToVolumeDevices(int index,V1VolumeDevice item) { if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - if (index < 0 || index >= volumeDevices.size()) { _visitables.get("volumeDevices").add(builder); volumeDevices.add(builder); } else { _visitables.get("volumeDevices").set(index, builder); volumeDevices.set(index, builder);} + if (index < 0 || index >= volumeDevices.size()) { + _visitables.get("volumeDevices").add(builder); + volumeDevices.add(builder); + } else { + _visitables.get("volumeDevices").add(builder); + volumeDevices.set(index, builder); + } return (A)this; } @@ -1397,14 +1457,26 @@ public VolumeDevicesNested editMatchingVolumeDevice(Predicate();} V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - if (index < 0 || index >= volumeMounts.size()) { _visitables.get("volumeMounts").add(builder); volumeMounts.add(builder); } else { _visitables.get("volumeMounts").add(index, builder); volumeMounts.add(index, builder);} + if (index < 0 || index >= volumeMounts.size()) { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(builder); + } else { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(index, builder); + } return (A)this; } public A setToVolumeMounts(int index,V1VolumeMount item) { if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - if (index < 0 || index >= volumeMounts.size()) { _visitables.get("volumeMounts").add(builder); volumeMounts.add(builder); } else { _visitables.get("volumeMounts").set(index, builder); volumeMounts.set(index, builder);} + if (index < 0 || index >= volumeMounts.size()) { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(builder); + } else { + _visitables.get("volumeMounts").add(builder); + volumeMounts.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesFluent.java index aafb082475..4e22189422 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesFluent.java @@ -50,14 +50,26 @@ public boolean hasRawSelector() { public A addToRequirements(int index,V1FieldSelectorRequirement item) { if (this.requirements == null) {this.requirements = new ArrayList();} V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); - if (index < 0 || index >= requirements.size()) { _visitables.get("requirements").add(builder); requirements.add(builder); } else { _visitables.get("requirements").add(index, builder); requirements.add(index, builder);} + if (index < 0 || index >= requirements.size()) { + _visitables.get("requirements").add(builder); + requirements.add(builder); + } else { + _visitables.get("requirements").add(builder); + requirements.add(index, builder); + } return (A)this; } public A setToRequirements(int index,V1FieldSelectorRequirement item) { if (this.requirements == null) {this.requirements = new ArrayList();} V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); - if (index < 0 || index >= requirements.size()) { _visitables.get("requirements").add(builder); requirements.add(builder); } else { _visitables.get("requirements").set(index, builder); requirements.set(index, builder);} + if (index < 0 || index >= requirements.size()) { + _visitables.get("requirements").add(builder); + requirements.add(builder); + } else { + _visitables.get("requirements").add(builder); + requirements.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListFluent.java index d7a3051a4f..74c192900d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1FlowSchema item) { if (this.items == null) {this.items = new ArrayList();} V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1FlowSchema item) { if (this.items == null) {this.items = new ArrayList();} V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecFluent.java index 36d4dd95cf..f47400aeb4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecFluent.java @@ -135,14 +135,26 @@ public PriorityLevelConfigurationNested editOrNewPriorityLevelConfigurationLi public A addToRules(int index,V1PolicyRulesWithSubjects item) { if (this.rules == null) {this.rules = new ArrayList();} V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").add(index, builder); rules.add(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); + } return (A)this; } public A setToRules(int index,V1PolicyRulesWithSubjects item) { if (this.rules == null) {this.rules = new ArrayList();} V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").set(index, builder); rules.set(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusFluent.java index 79cb0a6bbe..02526cc52a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1FlowSchemaStatus instance) { public A addToConditions(int index,V1FlowSchemaCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1FlowSchemaCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeBuilder.java new file mode 100644 index 0000000000..a8acd0a38f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ForNodeBuilder extends V1ForNodeFluent implements VisitableBuilder{ + public V1ForNodeBuilder() { + this(new V1ForNode()); + } + + public V1ForNodeBuilder(V1ForNodeFluent fluent) { + this(fluent, new V1ForNode()); + } + + public V1ForNodeBuilder(V1ForNodeFluent fluent,V1ForNode instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ForNodeBuilder(V1ForNode instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ForNodeFluent fluent; + + public V1ForNode build() { + V1ForNode buildable = new V1ForNode(); + buildable.setName(fluent.getName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeFluent.java new file mode 100644 index 0000000000..93ad3484d0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeFluent.java @@ -0,0 +1,63 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ForNodeFluent> extends BaseFluent{ + public V1ForNodeFluent() { + } + + public V1ForNodeFluent(V1ForNode instance) { + this.copyInstance(instance); + } + private String name; + + protected void copyInstance(V1ForNode instance) { + instance = (instance != null ? instance : new V1ForNode()); + if (instance != null) { + this.withName(instance.getName()); + } + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ForNodeFluent that = (V1ForNodeFluent) o; + if (!java.util.Objects.equals(name, that.name)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(name, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (name != null) { sb.append("name:"); sb.append(name); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluent.java index f14cf4d554..0f52c2dea1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluent.java @@ -57,14 +57,26 @@ public boolean hasHost() { public A addToHttpHeaders(int index,V1HTTPHeader item) { if (this.httpHeaders == null) {this.httpHeaders = new ArrayList();} V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); - if (index < 0 || index >= httpHeaders.size()) { _visitables.get("httpHeaders").add(builder); httpHeaders.add(builder); } else { _visitables.get("httpHeaders").add(index, builder); httpHeaders.add(index, builder);} + if (index < 0 || index >= httpHeaders.size()) { + _visitables.get("httpHeaders").add(builder); + httpHeaders.add(builder); + } else { + _visitables.get("httpHeaders").add(builder); + httpHeaders.add(index, builder); + } return (A)this; } public A setToHttpHeaders(int index,V1HTTPHeader item) { if (this.httpHeaders == null) {this.httpHeaders = new ArrayList();} V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); - if (index < 0 || index >= httpHeaders.size()) { _visitables.get("httpHeaders").add(builder); httpHeaders.add(builder); } else { _visitables.get("httpHeaders").set(index, builder); httpHeaders.set(index, builder);} + if (index < 0 || index >= httpHeaders.size()) { + _visitables.get("httpHeaders").add(builder); + httpHeaders.add(builder); + } else { + _visitables.get("httpHeaders").add(builder); + httpHeaders.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluent.java index f5cc4e30a9..dd61581664 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1HTTPIngressRuleValue instance) { public A addToPaths(int index,V1HTTPIngressPath item) { if (this.paths == null) {this.paths = new ArrayList();} V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); - if (index < 0 || index >= paths.size()) { _visitables.get("paths").add(builder); paths.add(builder); } else { _visitables.get("paths").add(index, builder); paths.add(index, builder);} + if (index < 0 || index >= paths.size()) { + _visitables.get("paths").add(builder); + paths.add(builder); + } else { + _visitables.get("paths").add(builder); + paths.add(index, builder); + } return (A)this; } public A setToPaths(int index,V1HTTPIngressPath item) { if (this.paths == null) {this.paths = new ArrayList();} V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); - if (index < 0 || index >= paths.size()) { _visitables.get("paths").add(builder); paths.add(builder); } else { _visitables.get("paths").set(index, builder); paths.set(index, builder);} + if (index < 0 || index >= paths.size()) { + _visitables.get("paths").add(builder); + paths.add(builder); + } else { + _visitables.get("paths").add(builder); + paths.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluent.java index 80c7d86a4e..d115cd2481 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1HorizontalPodAutoscaler item) { if (this.items == null) {this.items = new ArrayList();} V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1HorizontalPodAutoscaler item) { if (this.items == null) {this.items = new ArrayList();} V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressBuilder.java new file mode 100644 index 0000000000..260534c46c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1IPAddressBuilder extends V1IPAddressFluent implements VisitableBuilder{ + public V1IPAddressBuilder() { + this(new V1IPAddress()); + } + + public V1IPAddressBuilder(V1IPAddressFluent fluent) { + this(fluent, new V1IPAddress()); + } + + public V1IPAddressBuilder(V1IPAddressFluent fluent,V1IPAddress instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1IPAddressBuilder(V1IPAddress instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1IPAddressFluent fluent; + + public V1IPAddress build() { + V1IPAddress buildable = new V1IPAddress(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressFluent.java new file mode 100644 index 0000000000..5e1c11d3b8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1IPAddressFluent> extends BaseFluent{ + public V1IPAddressFluent() { + } + + public V1IPAddressFluent(V1IPAddress instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1IPAddressSpecBuilder spec; + + protected void copyInstance(V1IPAddress instance) { + instance = (instance != null ? instance : new V1IPAddress()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1IPAddressSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1IPAddressSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1IPAddressSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1IPAddressSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1IPAddressSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1IPAddressSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1IPAddressFluent that = (V1IPAddressFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1IPAddressFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1IPAddressSpecFluent> implements Nested{ + SpecNested(V1IPAddressSpec item) { + this.builder = new V1IPAddressSpecBuilder(this, item); + } + V1IPAddressSpecBuilder builder; + + public N and() { + return (N) V1IPAddressFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListBuilder.java new file mode 100644 index 0000000000..4ad79531bc --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1IPAddressListBuilder extends V1IPAddressListFluent implements VisitableBuilder{ + public V1IPAddressListBuilder() { + this(new V1IPAddressList()); + } + + public V1IPAddressListBuilder(V1IPAddressListFluent fluent) { + this(fluent, new V1IPAddressList()); + } + + public V1IPAddressListBuilder(V1IPAddressListFluent fluent,V1IPAddressList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1IPAddressListBuilder(V1IPAddressList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1IPAddressListFluent fluent; + + public V1IPAddressList build() { + V1IPAddressList buildable = new V1IPAddressList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListFluent.java new file mode 100644 index 0000000000..b0cd655bfa --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1IPAddressListFluent> extends BaseFluent{ + public V1IPAddressListFluent() { + } + + public V1IPAddressListFluent(V1IPAddressList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1IPAddressList instance) { + instance = (instance != null ? instance : new V1IPAddressList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1IPAddress item) { + if (this.items == null) {this.items = new ArrayList();} + V1IPAddressBuilder builder = new V1IPAddressBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1IPAddress item) { + if (this.items == null) {this.items = new ArrayList();} + V1IPAddressBuilder builder = new V1IPAddressBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1IPAddress... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1IPAddress item : items) {V1IPAddressBuilder builder = new V1IPAddressBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1IPAddress item : items) {V1IPAddressBuilder builder = new V1IPAddressBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1IPAddress... items) { + if (this.items == null) return (A)this; + for (V1IPAddress item : items) {V1IPAddressBuilder builder = new V1IPAddressBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1IPAddress item : items) {V1IPAddressBuilder builder = new V1IPAddressBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1IPAddressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1IPAddress buildItem(int index) { + return this.items.get(index).build(); + } + + public V1IPAddress buildFirstItem() { + return this.items.get(0).build(); + } + + public V1IPAddress buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1IPAddress buildMatchingItem(Predicate predicate) { + for (V1IPAddressBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1IPAddressBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1IPAddress item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1IPAddress... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1IPAddress item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1IPAddress item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1IPAddress item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1IPAddressListFluent that = (V1IPAddressListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1IPAddressFluent> implements Nested{ + ItemsNested(int index,V1IPAddress item) { + this.index = index; + this.builder = new V1IPAddressBuilder(this, item); + } + V1IPAddressBuilder builder; + int index; + + public N and() { + return (N) V1IPAddressListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1IPAddressListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecBuilder.java new file mode 100644 index 0000000000..f5425e5a44 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1IPAddressSpecBuilder extends V1IPAddressSpecFluent implements VisitableBuilder{ + public V1IPAddressSpecBuilder() { + this(new V1IPAddressSpec()); + } + + public V1IPAddressSpecBuilder(V1IPAddressSpecFluent fluent) { + this(fluent, new V1IPAddressSpec()); + } + + public V1IPAddressSpecBuilder(V1IPAddressSpecFluent fluent,V1IPAddressSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1IPAddressSpecBuilder(V1IPAddressSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1IPAddressSpecFluent fluent; + + public V1IPAddressSpec build() { + V1IPAddressSpec buildable = new V1IPAddressSpec(); + buildable.setParentRef(fluent.buildParentRef()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecFluent.java new file mode 100644 index 0000000000..8794359a69 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1IPAddressSpecFluent> extends BaseFluent{ + public V1IPAddressSpecFluent() { + } + + public V1IPAddressSpecFluent(V1IPAddressSpec instance) { + this.copyInstance(instance); + } + private V1ParentReferenceBuilder parentRef; + + protected void copyInstance(V1IPAddressSpec instance) { + instance = (instance != null ? instance : new V1IPAddressSpec()); + if (instance != null) { + this.withParentRef(instance.getParentRef()); + } + } + + public V1ParentReference buildParentRef() { + return this.parentRef != null ? this.parentRef.build() : null; + } + + public A withParentRef(V1ParentReference parentRef) { + this._visitables.remove("parentRef"); + if (parentRef != null) { + this.parentRef = new V1ParentReferenceBuilder(parentRef); + this._visitables.get("parentRef").add(this.parentRef); + } else { + this.parentRef = null; + this._visitables.get("parentRef").remove(this.parentRef); + } + return (A) this; + } + + public boolean hasParentRef() { + return this.parentRef != null; + } + + public ParentRefNested withNewParentRef() { + return new ParentRefNested(null); + } + + public ParentRefNested withNewParentRefLike(V1ParentReference item) { + return new ParentRefNested(item); + } + + public ParentRefNested editParentRef() { + return withNewParentRefLike(java.util.Optional.ofNullable(buildParentRef()).orElse(null)); + } + + public ParentRefNested editOrNewParentRef() { + return withNewParentRefLike(java.util.Optional.ofNullable(buildParentRef()).orElse(new V1ParentReferenceBuilder().build())); + } + + public ParentRefNested editOrNewParentRefLike(V1ParentReference item) { + return withNewParentRefLike(java.util.Optional.ofNullable(buildParentRef()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1IPAddressSpecFluent that = (V1IPAddressSpecFluent) o; + if (!java.util.Objects.equals(parentRef, that.parentRef)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(parentRef, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (parentRef != null) { sb.append("parentRef:"); sb.append(parentRef); } + sb.append("}"); + return sb.toString(); + } + public class ParentRefNested extends V1ParentReferenceFluent> implements Nested{ + ParentRefNested(V1ParentReference item) { + this.builder = new V1ParentReferenceBuilder(this, item); + } + V1ParentReferenceBuilder builder; + + public N and() { + return (N) V1IPAddressSpecFluent.this.withParentRef(builder.build()); + } + + public N endParentRef() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluent.java index 6ca6dcd9b0..d83a3dafa6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1IngressClass item) { if (this.items == null) {this.items = new ArrayList();} V1IngressClassBuilder builder = new V1IngressClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1IngressClass item) { if (this.items == null) {this.items = new ArrayList();} V1IngressClassBuilder builder = new V1IngressClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluent.java index 5abcc24ede..deb60fc2b5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1Ingress item) { if (this.items == null) {this.items = new ArrayList();} V1IngressBuilder builder = new V1IngressBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1Ingress item) { if (this.items == null) {this.items = new ArrayList();} V1IngressBuilder builder = new V1IngressBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressFluent.java index ee22c6a824..17a38f9c86 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressFluent.java @@ -65,14 +65,26 @@ public boolean hasIp() { public A addToPorts(int index,V1IngressPortStatus item) { if (this.ports == null) {this.ports = new ArrayList();} V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").add(index, builder); ports.add(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); + } return (A)this; } public A setToPorts(int index,V1IngressPortStatus item) { if (this.ports == null) {this.ports = new ArrayList();} V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").set(index, builder); ports.set(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusFluent.java index b0dc9c1360..40c2d84b44 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1IngressLoadBalancerStatus instance) { public A addToIngress(int index,V1IngressLoadBalancerIngress item) { if (this.ingress == null) {this.ingress = new ArrayList();} V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); - if (index < 0 || index >= ingress.size()) { _visitables.get("ingress").add(builder); ingress.add(builder); } else { _visitables.get("ingress").add(index, builder); ingress.add(index, builder);} + if (index < 0 || index >= ingress.size()) { + _visitables.get("ingress").add(builder); + ingress.add(builder); + } else { + _visitables.get("ingress").add(builder); + ingress.add(index, builder); + } return (A)this; } public A setToIngress(int index,V1IngressLoadBalancerIngress item) { if (this.ingress == null) {this.ingress = new ArrayList();} V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); - if (index < 0 || index >= ingress.size()) { _visitables.get("ingress").add(builder); ingress.add(builder); } else { _visitables.get("ingress").set(index, builder); ingress.set(index, builder);} + if (index < 0 || index >= ingress.size()) { + _visitables.get("ingress").add(builder); + ingress.add(builder); + } else { + _visitables.get("ingress").add(builder); + ingress.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluent.java index 5439552f48..769beb7c15 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluent.java @@ -94,14 +94,26 @@ public boolean hasIngressClassName() { public A addToRules(int index,V1IngressRule item) { if (this.rules == null) {this.rules = new ArrayList();} V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").add(index, builder); rules.add(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); + } return (A)this; } public A setToRules(int index,V1IngressRule item) { if (this.rules == null) {this.rules = new ArrayList();} V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").set(index, builder); rules.set(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } return (A)this; } @@ -245,14 +257,26 @@ public RulesNested editMatchingRule(Predicate predicate public A addToTls(int index,V1IngressTLS item) { if (this.tls == null) {this.tls = new ArrayList();} V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); - if (index < 0 || index >= tls.size()) { _visitables.get("tls").add(builder); tls.add(builder); } else { _visitables.get("tls").add(index, builder); tls.add(index, builder);} + if (index < 0 || index >= tls.size()) { + _visitables.get("tls").add(builder); + tls.add(builder); + } else { + _visitables.get("tls").add(builder); + tls.add(index, builder); + } return (A)this; } public A setToTls(int index,V1IngressTLS item) { if (this.tls == null) {this.tls = new ArrayList();} V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); - if (index < 0 || index >= tls.size()) { _visitables.get("tls").add(builder); tls.add(builder); } else { _visitables.get("tls").set(index, builder); tls.set(index, builder);} + if (index < 0 || index >= tls.size()) { + _visitables.get("tls").add(builder); + tls.add(builder); + } else { + _visitables.get("tls").add(builder); + tls.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluent.java index d78dfe1e8c..8bb8b7a62d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluent.java @@ -164,14 +164,26 @@ public boolean hasAdditionalProperties() { public A addToAllOf(int index,V1JSONSchemaProps item) { if (this.allOf == null) {this.allOf = new ArrayList();} V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= allOf.size()) { _visitables.get("allOf").add(builder); allOf.add(builder); } else { _visitables.get("allOf").add(index, builder); allOf.add(index, builder);} + if (index < 0 || index >= allOf.size()) { + _visitables.get("allOf").add(builder); + allOf.add(builder); + } else { + _visitables.get("allOf").add(builder); + allOf.add(index, builder); + } return (A)this; } public A setToAllOf(int index,V1JSONSchemaProps item) { if (this.allOf == null) {this.allOf = new ArrayList();} V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= allOf.size()) { _visitables.get("allOf").add(builder); allOf.add(builder); } else { _visitables.get("allOf").set(index, builder); allOf.set(index, builder);} + if (index < 0 || index >= allOf.size()) { + _visitables.get("allOf").add(builder); + allOf.add(builder); + } else { + _visitables.get("allOf").add(builder); + allOf.set(index, builder); + } return (A)this; } @@ -315,14 +327,26 @@ public AllOfNested editMatchingAllOf(Predicate pred public A addToAnyOf(int index,V1JSONSchemaProps item) { if (this.anyOf == null) {this.anyOf = new ArrayList();} V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= anyOf.size()) { _visitables.get("anyOf").add(builder); anyOf.add(builder); } else { _visitables.get("anyOf").add(index, builder); anyOf.add(index, builder);} + if (index < 0 || index >= anyOf.size()) { + _visitables.get("anyOf").add(builder); + anyOf.add(builder); + } else { + _visitables.get("anyOf").add(builder); + anyOf.add(index, builder); + } return (A)this; } public A setToAnyOf(int index,V1JSONSchemaProps item) { if (this.anyOf == null) {this.anyOf = new ArrayList();} V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= anyOf.size()) { _visitables.get("anyOf").add(builder); anyOf.add(builder); } else { _visitables.get("anyOf").set(index, builder); anyOf.set(index, builder);} + if (index < 0 || index >= anyOf.size()) { + _visitables.get("anyOf").add(builder); + anyOf.add(builder); + } else { + _visitables.get("anyOf").add(builder); + anyOf.set(index, builder); + } return (A)this; } @@ -948,14 +972,26 @@ public boolean hasNullable() { public A addToOneOf(int index,V1JSONSchemaProps item) { if (this.oneOf == null) {this.oneOf = new ArrayList();} V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= oneOf.size()) { _visitables.get("oneOf").add(builder); oneOf.add(builder); } else { _visitables.get("oneOf").add(index, builder); oneOf.add(index, builder);} + if (index < 0 || index >= oneOf.size()) { + _visitables.get("oneOf").add(builder); + oneOf.add(builder); + } else { + _visitables.get("oneOf").add(builder); + oneOf.add(index, builder); + } return (A)this; } public A setToOneOf(int index,V1JSONSchemaProps item) { if (this.oneOf == null) {this.oneOf = new ArrayList();} V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= oneOf.size()) { _visitables.get("oneOf").add(builder); oneOf.add(builder); } else { _visitables.get("oneOf").set(index, builder); oneOf.set(index, builder);} + if (index < 0 || index >= oneOf.size()) { + _visitables.get("oneOf").add(builder); + oneOf.add(builder); + } else { + _visitables.get("oneOf").add(builder); + oneOf.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluent.java index 68dd859754..4a0075a987 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1Job item) { if (this.items == null) {this.items = new ArrayList();} V1JobBuilder builder = new V1JobBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1Job item) { if (this.items == null) {this.items = new ArrayList();} V1JobBuilder builder = new V1JobBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluent.java index 3db6517921..b0b067428a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluent.java @@ -96,14 +96,26 @@ public boolean hasCompletionTime() { public A addToConditions(int index,V1JobCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1JobConditionBuilder builder = new V1JobConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1JobCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1JobConditionBuilder builder = new V1JobConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesFluent.java index dc715d35e6..100d4c355d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesFluent.java @@ -50,14 +50,26 @@ public boolean hasRawSelector() { public A addToRequirements(int index,V1LabelSelectorRequirement item) { if (this.requirements == null) {this.requirements = new ArrayList();} V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - if (index < 0 || index >= requirements.size()) { _visitables.get("requirements").add(builder); requirements.add(builder); } else { _visitables.get("requirements").add(index, builder); requirements.add(index, builder);} + if (index < 0 || index >= requirements.size()) { + _visitables.get("requirements").add(builder); + requirements.add(builder); + } else { + _visitables.get("requirements").add(builder); + requirements.add(index, builder); + } return (A)this; } public A setToRequirements(int index,V1LabelSelectorRequirement item) { if (this.requirements == null) {this.requirements = new ArrayList();} V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - if (index < 0 || index >= requirements.size()) { _visitables.get("requirements").add(builder); requirements.add(builder); } else { _visitables.get("requirements").set(index, builder); requirements.set(index, builder);} + if (index < 0 || index >= requirements.size()) { + _visitables.get("requirements").add(builder); + requirements.add(builder); + } else { + _visitables.get("requirements").add(builder); + requirements.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluent.java index ccfb28f31f..97d9c35b52 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluent.java @@ -39,14 +39,26 @@ protected void copyInstance(V1LabelSelector instance) { public A addToMatchExpressions(int index,V1LabelSelectorRequirement item) { if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { _visitables.get("matchExpressions").add(builder); matchExpressions.add(builder); } else { _visitables.get("matchExpressions").add(index, builder); matchExpressions.add(index, builder);} + if (index < 0 || index >= matchExpressions.size()) { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(builder); + } else { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(index, builder); + } return (A)this; } public A setToMatchExpressions(int index,V1LabelSelectorRequirement item) { if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { _visitables.get("matchExpressions").add(builder); matchExpressions.add(builder); } else { _visitables.get("matchExpressions").set(index, builder); matchExpressions.set(index, builder);} + if (index < 0 || index >= matchExpressions.size()) { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(builder); + } else { + _visitables.get("matchExpressions").add(builder); + matchExpressions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluent.java index a8c3b7cc96..0a0497d6c2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1Lease item) { if (this.items == null) {this.items = new ArrayList();} V1LeaseBuilder builder = new V1LeaseBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1Lease item) { if (this.items == null) {this.items = new ArrayList();} V1LeaseBuilder builder = new V1LeaseBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleBuilder.java index ea3ea94fc3..b16f0f9327 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleBuilder.java @@ -25,6 +25,7 @@ public V1Lifecycle build() { V1Lifecycle buildable = new V1Lifecycle(); buildable.setPostStart(fluent.buildPostStart()); buildable.setPreStop(fluent.buildPreStop()); + buildable.setStopSignal(fluent.getStopSignal()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluent.java index 77fd29f5b2..20566927f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluent.java @@ -19,12 +19,14 @@ public V1LifecycleFluent(V1Lifecycle instance) { } private V1LifecycleHandlerBuilder postStart; private V1LifecycleHandlerBuilder preStop; + private String stopSignal; protected void copyInstance(V1Lifecycle instance) { instance = (instance != null ? instance : new V1Lifecycle()); if (instance != null) { this.withPostStart(instance.getPostStart()); this.withPreStop(instance.getPreStop()); + this.withStopSignal(instance.getStopSignal()); } } @@ -108,6 +110,19 @@ public PreStopNested editOrNewPreStopLike(V1LifecycleHandler item) { return withNewPreStopLike(java.util.Optional.ofNullable(buildPreStop()).orElse(item)); } + public String getStopSignal() { + return this.stopSignal; + } + + public A withStopSignal(String stopSignal) { + this.stopSignal = stopSignal; + return (A) this; + } + + public boolean hasStopSignal() { + return this.stopSignal != null; + } + public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; @@ -115,18 +130,20 @@ public boolean equals(Object o) { V1LifecycleFluent that = (V1LifecycleFluent) o; if (!java.util.Objects.equals(postStart, that.postStart)) return false; if (!java.util.Objects.equals(preStop, that.preStop)) return false; + if (!java.util.Objects.equals(stopSignal, that.stopSignal)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(postStart, preStop, super.hashCode()); + return java.util.Objects.hash(postStart, preStop, stopSignal, super.hashCode()); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (postStart != null) { sb.append("postStart:"); sb.append(postStart + ","); } - if (preStop != null) { sb.append("preStop:"); sb.append(preStop); } + if (preStop != null) { sb.append("preStop:"); sb.append(preStop + ","); } + if (stopSignal != null) { sb.append("stopSignal:"); sb.append(stopSignal); } sb.append("}"); return sb.toString(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluent.java index 455b347d74..2dea986026 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1LimitRange item) { if (this.items == null) {this.items = new ArrayList();} V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1LimitRange item) { if (this.items == null) {this.items = new ArrayList();} V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluent.java index e741aac1ff..e66238eb04 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1LimitRangeSpec instance) { public A addToLimits(int index,V1LimitRangeItem item) { if (this.limits == null) {this.limits = new ArrayList();} V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); - if (index < 0 || index >= limits.size()) { _visitables.get("limits").add(builder); limits.add(builder); } else { _visitables.get("limits").add(index, builder); limits.add(index, builder);} + if (index < 0 || index >= limits.size()) { + _visitables.get("limits").add(builder); + limits.add(builder); + } else { + _visitables.get("limits").add(builder); + limits.add(index, builder); + } return (A)this; } public A setToLimits(int index,V1LimitRangeItem item) { if (this.limits == null) {this.limits = new ArrayList();} V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); - if (index < 0 || index >= limits.size()) { _visitables.get("limits").add(builder); limits.add(builder); } else { _visitables.get("limits").set(index, builder); limits.set(index, builder);} + if (index < 0 || index >= limits.size()) { + _visitables.get("limits").add(builder); + limits.add(builder); + } else { + _visitables.get("limits").add(builder); + limits.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluent.java index c987f8579e..af7eca76de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluent.java @@ -80,14 +80,26 @@ public boolean hasIpMode() { public A addToPorts(int index,V1PortStatus item) { if (this.ports == null) {this.ports = new ArrayList();} V1PortStatusBuilder builder = new V1PortStatusBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").add(index, builder); ports.add(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); + } return (A)this; } public A setToPorts(int index,V1PortStatus item) { if (this.ports == null) {this.ports = new ArrayList();} V1PortStatusBuilder builder = new V1PortStatusBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").set(index, builder); ports.set(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluent.java index 088467bb84..03405ecaf7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1LoadBalancerStatus instance) { public A addToIngress(int index,V1LoadBalancerIngress item) { if (this.ingress == null) {this.ingress = new ArrayList();} V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); - if (index < 0 || index >= ingress.size()) { _visitables.get("ingress").add(builder); ingress.add(builder); } else { _visitables.get("ingress").add(index, builder); ingress.add(index, builder);} + if (index < 0 || index >= ingress.size()) { + _visitables.get("ingress").add(builder); + ingress.add(builder); + } else { + _visitables.get("ingress").add(builder); + ingress.add(index, builder); + } return (A)this; } public A setToIngress(int index,V1LoadBalancerIngress item) { if (this.ingress == null) {this.ingress = new ArrayList();} V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); - if (index < 0 || index >= ingress.size()) { _visitables.get("ingress").add(builder); ingress.add(builder); } else { _visitables.get("ingress").set(index, builder); ingress.set(index, builder);} + if (index < 0 || index >= ingress.size()) { + _visitables.get("ingress").add(builder); + ingress.add(builder); + } else { + _visitables.get("ingress").add(builder); + ingress.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesFluent.java index 63d9b9fdf2..6bb1ba5bd2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesFluent.java @@ -43,14 +43,26 @@ protected void copyInstance(V1MatchResources instance) { public A addToExcludeResourceRules(int index,V1NamedRuleWithOperations item) { if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= excludeResourceRules.size()) { _visitables.get("excludeResourceRules").add(builder); excludeResourceRules.add(builder); } else { _visitables.get("excludeResourceRules").add(index, builder); excludeResourceRules.add(index, builder);} + if (index < 0 || index >= excludeResourceRules.size()) { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(builder); + } else { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(index, builder); + } return (A)this; } public A setToExcludeResourceRules(int index,V1NamedRuleWithOperations item) { if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= excludeResourceRules.size()) { _visitables.get("excludeResourceRules").add(builder); excludeResourceRules.add(builder); } else { _visitables.get("excludeResourceRules").set(index, builder); excludeResourceRules.set(index, builder);} + if (index < 0 || index >= excludeResourceRules.size()) { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(builder); + } else { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.set(index, builder); + } return (A)this; } @@ -287,14 +299,26 @@ public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) public A addToResourceRules(int index,V1NamedRuleWithOperations item) { if (this.resourceRules == null) {this.resourceRules = new ArrayList();} V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); resourceRules.add(builder); } else { _visitables.get("resourceRules").add(index, builder); resourceRules.add(index, builder);} + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.add(index, builder); + } return (A)this; } public A setToResourceRules(int index,V1NamedRuleWithOperations item) { if (this.resourceRules == null) {this.resourceRules = new ArrayList();} V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); resourceRules.add(builder); } else { _visitables.get("resourceRules").set(index, builder); resourceRules.set(index, builder);} + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluent.java index ce6c4dac62..1fff741550 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluent.java @@ -107,14 +107,26 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { public A addToWebhooks(int index,V1MutatingWebhook item) { if (this.webhooks == null) {this.webhooks = new ArrayList();} V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); - if (index < 0 || index >= webhooks.size()) { _visitables.get("webhooks").add(builder); webhooks.add(builder); } else { _visitables.get("webhooks").add(index, builder); webhooks.add(index, builder);} + if (index < 0 || index >= webhooks.size()) { + _visitables.get("webhooks").add(builder); + webhooks.add(builder); + } else { + _visitables.get("webhooks").add(builder); + webhooks.add(index, builder); + } return (A)this; } public A setToWebhooks(int index,V1MutatingWebhook item) { if (this.webhooks == null) {this.webhooks = new ArrayList();} V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); - if (index < 0 || index >= webhooks.size()) { _visitables.get("webhooks").add(builder); webhooks.add(builder); } else { _visitables.get("webhooks").set(index, builder); webhooks.set(index, builder);} + if (index < 0 || index >= webhooks.size()) { + _visitables.get("webhooks").add(builder); + webhooks.add(builder); + } else { + _visitables.get("webhooks").add(builder); + webhooks.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluent.java index ab01818fde..2b5da2a2c3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1MutatingWebhookConfiguration item) { if (this.items == null) {this.items = new ArrayList();} V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1MutatingWebhookConfiguration item) { if (this.items == null) {this.items = new ArrayList();} V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java index ce0404d8e3..693793b3b3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java @@ -205,14 +205,26 @@ public boolean hasFailurePolicy() { public A addToMatchConditions(int index,V1MatchCondition item) { if (this.matchConditions == null) {this.matchConditions = new ArrayList();} V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); matchConditions.add(builder); } else { _visitables.get("matchConditions").add(index, builder); matchConditions.add(index, builder);} + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.add(index, builder); + } return (A)this; } public A setToMatchConditions(int index,V1MatchCondition item) { if (this.matchConditions == null) {this.matchConditions = new ArrayList();} V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); matchConditions.add(builder); } else { _visitables.get("matchConditions").set(index, builder); matchConditions.set(index, builder);} + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.set(index, builder); + } return (A)this; } @@ -475,14 +487,26 @@ public boolean hasReinvocationPolicy() { public A addToRules(int index,V1RuleWithOperations item) { if (this.rules == null) {this.rules = new ArrayList();} V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").add(index, builder); rules.add(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); + } return (A)this; } public A setToRules(int index,V1RuleWithOperations item) { if (this.rules == null) {this.rules = new ArrayList();} V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").set(index, builder); rules.set(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluent.java index 62dbf51cf7..d4c5a873f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1Namespace item) { if (this.items == null) {this.items = new ArrayList();} V1NamespaceBuilder builder = new V1NamespaceBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1Namespace item) { if (this.items == null) {this.items = new ArrayList();} V1NamespaceBuilder builder = new V1NamespaceBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluent.java index 4b5f226506..26a45072cd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluent.java @@ -37,14 +37,26 @@ protected void copyInstance(V1NamespaceStatus instance) { public A addToConditions(int index,V1NamespaceCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1NamespaceCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluent.java index 1ff9ebdce2..2fa4527247 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluent.java @@ -37,14 +37,26 @@ protected void copyInstance(V1NetworkPolicyEgressRule instance) { public A addToPorts(int index,V1NetworkPolicyPort item) { if (this.ports == null) {this.ports = new ArrayList();} V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").add(index, builder); ports.add(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); + } return (A)this; } public A setToPorts(int index,V1NetworkPolicyPort item) { if (this.ports == null) {this.ports = new ArrayList();} V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").set(index, builder); ports.set(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } return (A)this; } @@ -188,14 +200,26 @@ public PortsNested editMatchingPort(Predicate pre public A addToTo(int index,V1NetworkPolicyPeer item) { if (this.to == null) {this.to = new ArrayList();} V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - if (index < 0 || index >= to.size()) { _visitables.get("to").add(builder); to.add(builder); } else { _visitables.get("to").add(index, builder); to.add(index, builder);} + if (index < 0 || index >= to.size()) { + _visitables.get("to").add(builder); + to.add(builder); + } else { + _visitables.get("to").add(builder); + to.add(index, builder); + } return (A)this; } public A setToTo(int index,V1NetworkPolicyPeer item) { if (this.to == null) {this.to = new ArrayList();} V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - if (index < 0 || index >= to.size()) { _visitables.get("to").add(builder); to.add(builder); } else { _visitables.get("to").set(index, builder); to.set(index, builder);} + if (index < 0 || index >= to.size()) { + _visitables.get("to").add(builder); + to.add(builder); + } else { + _visitables.get("to").add(builder); + to.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluent.java index af14ae961d..bb412dc230 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluent.java @@ -37,14 +37,26 @@ protected void copyInstance(V1NetworkPolicyIngressRule instance) { public A addToFrom(int index,V1NetworkPolicyPeer item) { if (this.from == null) {this.from = new ArrayList();} V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - if (index < 0 || index >= from.size()) { _visitables.get("from").add(builder); from.add(builder); } else { _visitables.get("from").add(index, builder); from.add(index, builder);} + if (index < 0 || index >= from.size()) { + _visitables.get("from").add(builder); + from.add(builder); + } else { + _visitables.get("from").add(builder); + from.add(index, builder); + } return (A)this; } public A setToFrom(int index,V1NetworkPolicyPeer item) { if (this.from == null) {this.from = new ArrayList();} V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - if (index < 0 || index >= from.size()) { _visitables.get("from").add(builder); from.add(builder); } else { _visitables.get("from").set(index, builder); from.set(index, builder);} + if (index < 0 || index >= from.size()) { + _visitables.get("from").add(builder); + from.add(builder); + } else { + _visitables.get("from").add(builder); + from.set(index, builder); + } return (A)this; } @@ -188,14 +200,26 @@ public FromNested editMatchingFrom(Predicate pred public A addToPorts(int index,V1NetworkPolicyPort item) { if (this.ports == null) {this.ports = new ArrayList();} V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").add(index, builder); ports.add(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); + } return (A)this; } public A setToPorts(int index,V1NetworkPolicyPort item) { if (this.ports == null) {this.ports = new ArrayList();} V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").set(index, builder); ports.set(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluent.java index 543d682116..0e35d3bed2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1NetworkPolicy item) { if (this.items == null) {this.items = new ArrayList();} V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1NetworkPolicy item) { if (this.items == null) {this.items = new ArrayList();} V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluent.java index f4c76872df..313a84ecc5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluent.java @@ -41,14 +41,26 @@ protected void copyInstance(V1NetworkPolicySpec instance) { public A addToEgress(int index,V1NetworkPolicyEgressRule item) { if (this.egress == null) {this.egress = new ArrayList();} V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); - if (index < 0 || index >= egress.size()) { _visitables.get("egress").add(builder); egress.add(builder); } else { _visitables.get("egress").add(index, builder); egress.add(index, builder);} + if (index < 0 || index >= egress.size()) { + _visitables.get("egress").add(builder); + egress.add(builder); + } else { + _visitables.get("egress").add(builder); + egress.add(index, builder); + } return (A)this; } public A setToEgress(int index,V1NetworkPolicyEgressRule item) { if (this.egress == null) {this.egress = new ArrayList();} V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); - if (index < 0 || index >= egress.size()) { _visitables.get("egress").add(builder); egress.add(builder); } else { _visitables.get("egress").set(index, builder); egress.set(index, builder);} + if (index < 0 || index >= egress.size()) { + _visitables.get("egress").add(builder); + egress.add(builder); + } else { + _visitables.get("egress").add(builder); + egress.set(index, builder); + } return (A)this; } @@ -192,14 +204,26 @@ public EgressNested editMatchingEgress(Predicate();} V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); - if (index < 0 || index >= ingress.size()) { _visitables.get("ingress").add(builder); ingress.add(builder); } else { _visitables.get("ingress").add(index, builder); ingress.add(index, builder);} + if (index < 0 || index >= ingress.size()) { + _visitables.get("ingress").add(builder); + ingress.add(builder); + } else { + _visitables.get("ingress").add(builder); + ingress.add(index, builder); + } return (A)this; } public A setToIngress(int index,V1NetworkPolicyIngressRule item) { if (this.ingress == null) {this.ingress = new ArrayList();} V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); - if (index < 0 || index >= ingress.size()) { _visitables.get("ingress").add(builder); ingress.add(builder); } else { _visitables.get("ingress").set(index, builder); ingress.set(index, builder);} + if (index < 0 || index >= ingress.size()) { + _visitables.get("ingress").add(builder); + ingress.add(builder); + } else { + _visitables.get("ingress").add(builder); + ingress.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluent.java index d97dfc8c7d..30c16ca41e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluent.java @@ -37,14 +37,26 @@ protected void copyInstance(V1NodeAffinity instance) { public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1PreferredSchedulingTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); preferredDuringSchedulingIgnoredDuringExecution.add(builder); } else { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(index, builder); preferredDuringSchedulingIgnoredDuringExecution.add(index, builder);} + if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); + } return (A)this; } public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1PreferredSchedulingTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); preferredDuringSchedulingIgnoredDuringExecution.add(builder); } else { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").set(index, builder); preferredDuringSchedulingIgnoredDuringExecution.set(index, builder);} + if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluent.java index 6c0de6e617..1f57bd9d23 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1Node item) { if (this.items == null) {this.items = new ArrayList();} V1NodeBuilder builder = new V1NodeBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1Node item) { if (this.items == null) {this.items = new ArrayList();} V1NodeBuilder builder = new V1NodeBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluent.java index 7c00dd3a12..d4d79d7ef8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1NodeSelector instance) { public A addToNodeSelectorTerms(int index,V1NodeSelectorTerm item) { if (this.nodeSelectorTerms == null) {this.nodeSelectorTerms = new ArrayList();} V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); - if (index < 0 || index >= nodeSelectorTerms.size()) { _visitables.get("nodeSelectorTerms").add(builder); nodeSelectorTerms.add(builder); } else { _visitables.get("nodeSelectorTerms").add(index, builder); nodeSelectorTerms.add(index, builder);} + if (index < 0 || index >= nodeSelectorTerms.size()) { + _visitables.get("nodeSelectorTerms").add(builder); + nodeSelectorTerms.add(builder); + } else { + _visitables.get("nodeSelectorTerms").add(builder); + nodeSelectorTerms.add(index, builder); + } return (A)this; } public A setToNodeSelectorTerms(int index,V1NodeSelectorTerm item) { if (this.nodeSelectorTerms == null) {this.nodeSelectorTerms = new ArrayList();} V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); - if (index < 0 || index >= nodeSelectorTerms.size()) { _visitables.get("nodeSelectorTerms").add(builder); nodeSelectorTerms.add(builder); } else { _visitables.get("nodeSelectorTerms").set(index, builder); nodeSelectorTerms.set(index, builder);} + if (index < 0 || index >= nodeSelectorTerms.size()) { + _visitables.get("nodeSelectorTerms").add(builder); + nodeSelectorTerms.add(builder); + } else { + _visitables.get("nodeSelectorTerms").add(builder); + nodeSelectorTerms.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluent.java index 511ec51695..532398e0b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluent.java @@ -37,14 +37,26 @@ protected void copyInstance(V1NodeSelectorTerm instance) { public A addToMatchExpressions(int index,V1NodeSelectorRequirement item) { if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { _visitables.get("matchExpressions").add(builder); matchExpressions.add(builder); } else { _visitables.get("matchExpressions").add(index, builder); matchExpressions.add(index, builder);} + if (index < 0 || index >= matchExpressions.size()) { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(builder); + } else { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(index, builder); + } return (A)this; } public A setToMatchExpressions(int index,V1NodeSelectorRequirement item) { if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { _visitables.get("matchExpressions").add(builder); matchExpressions.add(builder); } else { _visitables.get("matchExpressions").set(index, builder); matchExpressions.set(index, builder);} + if (index < 0 || index >= matchExpressions.size()) { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(builder); + } else { + _visitables.get("matchExpressions").add(builder); + matchExpressions.set(index, builder); + } return (A)this; } @@ -188,14 +200,26 @@ public MatchExpressionsNested editMatchingMatchExpression(Predicate();} V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - if (index < 0 || index >= matchFields.size()) { _visitables.get("matchFields").add(builder); matchFields.add(builder); } else { _visitables.get("matchFields").add(index, builder); matchFields.add(index, builder);} + if (index < 0 || index >= matchFields.size()) { + _visitables.get("matchFields").add(builder); + matchFields.add(builder); + } else { + _visitables.get("matchFields").add(builder); + matchFields.add(index, builder); + } return (A)this; } public A setToMatchFields(int index,V1NodeSelectorRequirement item) { if (this.matchFields == null) {this.matchFields = new ArrayList();} V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - if (index < 0 || index >= matchFields.size()) { _visitables.get("matchFields").add(builder); matchFields.add(builder); } else { _visitables.get("matchFields").set(index, builder); matchFields.set(index, builder);} + if (index < 0 || index >= matchFields.size()) { + _visitables.get("matchFields").add(builder); + matchFields.add(builder); + } else { + _visitables.get("matchFields").add(builder); + matchFields.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluent.java index 293f2f7b44..748b6e2a78 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluent.java @@ -221,14 +221,26 @@ public boolean hasProviderID() { public A addToTaints(int index,V1Taint item) { if (this.taints == null) {this.taints = new ArrayList();} V1TaintBuilder builder = new V1TaintBuilder(item); - if (index < 0 || index >= taints.size()) { _visitables.get("taints").add(builder); taints.add(builder); } else { _visitables.get("taints").add(index, builder); taints.add(index, builder);} + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.add(index, builder); + } return (A)this; } public A setToTaints(int index,V1Taint item) { if (this.taints == null) {this.taints = new ArrayList();} V1TaintBuilder builder = new V1TaintBuilder(item); - if (index < 0 || index >= taints.size()) { _visitables.get("taints").add(builder); taints.add(builder); } else { _visitables.get("taints").set(index, builder); taints.set(index, builder);} + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluent.java index 94e62f0c5f..b2b4d65857 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluent.java @@ -62,14 +62,26 @@ protected void copyInstance(V1NodeStatus instance) { public A addToAddresses(int index,V1NodeAddress item) { if (this.addresses == null) {this.addresses = new ArrayList();} V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); - if (index < 0 || index >= addresses.size()) { _visitables.get("addresses").add(builder); addresses.add(builder); } else { _visitables.get("addresses").add(index, builder); addresses.add(index, builder);} + if (index < 0 || index >= addresses.size()) { + _visitables.get("addresses").add(builder); + addresses.add(builder); + } else { + _visitables.get("addresses").add(builder); + addresses.add(index, builder); + } return (A)this; } public A setToAddresses(int index,V1NodeAddress item) { if (this.addresses == null) {this.addresses = new ArrayList();} V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); - if (index < 0 || index >= addresses.size()) { _visitables.get("addresses").add(builder); addresses.add(builder); } else { _visitables.get("addresses").set(index, builder); addresses.set(index, builder);} + if (index < 0 || index >= addresses.size()) { + _visitables.get("addresses").add(builder); + addresses.add(builder); + } else { + _visitables.get("addresses").add(builder); + addresses.set(index, builder); + } return (A)this; } @@ -287,14 +299,26 @@ public boolean hasCapacity() { public A addToConditions(int index,V1NodeCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1NodeCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } @@ -558,14 +582,26 @@ public FeaturesNested editOrNewFeaturesLike(V1NodeFeatures item) { public A addToImages(int index,V1ContainerImage item) { if (this.images == null) {this.images = new ArrayList();} V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); - if (index < 0 || index >= images.size()) { _visitables.get("images").add(builder); images.add(builder); } else { _visitables.get("images").add(index, builder); images.add(index, builder);} + if (index < 0 || index >= images.size()) { + _visitables.get("images").add(builder); + images.add(builder); + } else { + _visitables.get("images").add(builder); + images.add(index, builder); + } return (A)this; } public A setToImages(int index,V1ContainerImage item) { if (this.images == null) {this.images = new ArrayList();} V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); - if (index < 0 || index >= images.size()) { _visitables.get("images").add(builder); images.add(builder); } else { _visitables.get("images").set(index, builder); images.set(index, builder);} + if (index < 0 || index >= images.size()) { + _visitables.get("images").add(builder); + images.add(builder); + } else { + _visitables.get("images").add(builder); + images.set(index, builder); + } return (A)this; } @@ -762,14 +798,26 @@ public boolean hasPhase() { public A addToRuntimeHandlers(int index,V1NodeRuntimeHandler item) { if (this.runtimeHandlers == null) {this.runtimeHandlers = new ArrayList();} V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); - if (index < 0 || index >= runtimeHandlers.size()) { _visitables.get("runtimeHandlers").add(builder); runtimeHandlers.add(builder); } else { _visitables.get("runtimeHandlers").add(index, builder); runtimeHandlers.add(index, builder);} + if (index < 0 || index >= runtimeHandlers.size()) { + _visitables.get("runtimeHandlers").add(builder); + runtimeHandlers.add(builder); + } else { + _visitables.get("runtimeHandlers").add(builder); + runtimeHandlers.add(index, builder); + } return (A)this; } public A setToRuntimeHandlers(int index,V1NodeRuntimeHandler item) { if (this.runtimeHandlers == null) {this.runtimeHandlers = new ArrayList();} V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); - if (index < 0 || index >= runtimeHandlers.size()) { _visitables.get("runtimeHandlers").add(builder); runtimeHandlers.add(builder); } else { _visitables.get("runtimeHandlers").set(index, builder); runtimeHandlers.set(index, builder);} + if (index < 0 || index >= runtimeHandlers.size()) { + _visitables.get("runtimeHandlers").add(builder); + runtimeHandlers.add(builder); + } else { + _visitables.get("runtimeHandlers").add(builder); + runtimeHandlers.set(index, builder); + } return (A)this; } @@ -913,14 +961,26 @@ public RuntimeHandlersNested editMatchingRuntimeHandler(Predicate();} V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); - if (index < 0 || index >= volumesAttached.size()) { _visitables.get("volumesAttached").add(builder); volumesAttached.add(builder); } else { _visitables.get("volumesAttached").add(index, builder); volumesAttached.add(index, builder);} + if (index < 0 || index >= volumesAttached.size()) { + _visitables.get("volumesAttached").add(builder); + volumesAttached.add(builder); + } else { + _visitables.get("volumesAttached").add(builder); + volumesAttached.add(index, builder); + } return (A)this; } public A setToVolumesAttached(int index,V1AttachedVolume item) { if (this.volumesAttached == null) {this.volumesAttached = new ArrayList();} V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); - if (index < 0 || index >= volumesAttached.size()) { _visitables.get("volumesAttached").add(builder); volumesAttached.add(builder); } else { _visitables.get("volumesAttached").set(index, builder); volumesAttached.set(index, builder);} + if (index < 0 || index >= volumesAttached.size()) { + _visitables.get("volumesAttached").add(builder); + volumesAttached.add(builder); + } else { + _visitables.get("volumesAttached").add(builder); + volumesAttached.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusBuilder.java new file mode 100644 index 0000000000..d0972bf737 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1NodeSwapStatusBuilder extends V1NodeSwapStatusFluent implements VisitableBuilder{ + public V1NodeSwapStatusBuilder() { + this(new V1NodeSwapStatus()); + } + + public V1NodeSwapStatusBuilder(V1NodeSwapStatusFluent fluent) { + this(fluent, new V1NodeSwapStatus()); + } + + public V1NodeSwapStatusBuilder(V1NodeSwapStatusFluent fluent,V1NodeSwapStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1NodeSwapStatusBuilder(V1NodeSwapStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1NodeSwapStatusFluent fluent; + + public V1NodeSwapStatus build() { + V1NodeSwapStatus buildable = new V1NodeSwapStatus(); + buildable.setCapacity(fluent.getCapacity()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusFluent.java new file mode 100644 index 0000000000..f058a6369a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusFluent.java @@ -0,0 +1,64 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1NodeSwapStatusFluent> extends BaseFluent{ + public V1NodeSwapStatusFluent() { + } + + public V1NodeSwapStatusFluent(V1NodeSwapStatus instance) { + this.copyInstance(instance); + } + private Long capacity; + + protected void copyInstance(V1NodeSwapStatus instance) { + instance = (instance != null ? instance : new V1NodeSwapStatus()); + if (instance != null) { + this.withCapacity(instance.getCapacity()); + } + } + + public Long getCapacity() { + return this.capacity; + } + + public A withCapacity(Long capacity) { + this.capacity = capacity; + return (A) this; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1NodeSwapStatusFluent that = (V1NodeSwapStatusFluent) o; + if (!java.util.Objects.equals(capacity, that.capacity)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(capacity, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (capacity != null) { sb.append("capacity:"); sb.append(capacity); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoBuilder.java index f3b2873617..aa3b9bac14 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoBuilder.java @@ -32,6 +32,7 @@ public V1NodeSystemInfo build() { buildable.setMachineID(fluent.getMachineID()); buildable.setOperatingSystem(fluent.getOperatingSystem()); buildable.setOsImage(fluent.getOsImage()); + buildable.setSwap(fluent.buildSwap()); buildable.setSystemUUID(fluent.getSystemUUID()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluent.java index 5b3cae2927..71e108de03 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluent.java @@ -2,6 +2,7 @@ import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; import java.lang.Object; import java.lang.String; @@ -25,6 +26,7 @@ public V1NodeSystemInfoFluent(V1NodeSystemInfo instance) { private String machineID; private String operatingSystem; private String osImage; + private V1NodeSwapStatusBuilder swap; private String systemUUID; protected void copyInstance(V1NodeSystemInfo instance) { @@ -39,6 +41,7 @@ protected void copyInstance(V1NodeSystemInfo instance) { this.withMachineID(instance.getMachineID()); this.withOperatingSystem(instance.getOperatingSystem()); this.withOsImage(instance.getOsImage()); + this.withSwap(instance.getSwap()); this.withSystemUUID(instance.getSystemUUID()); } } @@ -160,6 +163,46 @@ public boolean hasOsImage() { return this.osImage != null; } + public V1NodeSwapStatus buildSwap() { + return this.swap != null ? this.swap.build() : null; + } + + public A withSwap(V1NodeSwapStatus swap) { + this._visitables.remove("swap"); + if (swap != null) { + this.swap = new V1NodeSwapStatusBuilder(swap); + this._visitables.get("swap").add(this.swap); + } else { + this.swap = null; + this._visitables.get("swap").remove(this.swap); + } + return (A) this; + } + + public boolean hasSwap() { + return this.swap != null; + } + + public SwapNested withNewSwap() { + return new SwapNested(null); + } + + public SwapNested withNewSwapLike(V1NodeSwapStatus item) { + return new SwapNested(item); + } + + public SwapNested editSwap() { + return withNewSwapLike(java.util.Optional.ofNullable(buildSwap()).orElse(null)); + } + + public SwapNested editOrNewSwap() { + return withNewSwapLike(java.util.Optional.ofNullable(buildSwap()).orElse(new V1NodeSwapStatusBuilder().build())); + } + + public SwapNested editOrNewSwapLike(V1NodeSwapStatus item) { + return withNewSwapLike(java.util.Optional.ofNullable(buildSwap()).orElse(item)); + } + public String getSystemUUID() { return this.systemUUID; } @@ -187,12 +230,13 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(machineID, that.machineID)) return false; if (!java.util.Objects.equals(operatingSystem, that.operatingSystem)) return false; if (!java.util.Objects.equals(osImage, that.osImage)) return false; + if (!java.util.Objects.equals(swap, that.swap)) return false; if (!java.util.Objects.equals(systemUUID, that.systemUUID)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(architecture, bootID, containerRuntimeVersion, kernelVersion, kubeProxyVersion, kubeletVersion, machineID, operatingSystem, osImage, systemUUID, super.hashCode()); + return java.util.Objects.hash(architecture, bootID, containerRuntimeVersion, kernelVersion, kubeProxyVersion, kubeletVersion, machineID, operatingSystem, osImage, swap, systemUUID, super.hashCode()); } public String toString() { @@ -207,10 +251,26 @@ public String toString() { if (machineID != null) { sb.append("machineID:"); sb.append(machineID + ","); } if (operatingSystem != null) { sb.append("operatingSystem:"); sb.append(operatingSystem + ","); } if (osImage != null) { sb.append("osImage:"); sb.append(osImage + ","); } + if (swap != null) { sb.append("swap:"); sb.append(swap + ","); } if (systemUUID != null) { sb.append("systemUUID:"); sb.append(systemUUID); } sb.append("}"); return sb.toString(); } + public class SwapNested extends V1NodeSwapStatusFluent> implements Nested{ + SwapNested(V1NodeSwapStatus item) { + this.builder = new V1NodeSwapStatusBuilder(this, item); + } + V1NodeSwapStatusBuilder builder; + + public N and() { + return (N) V1NodeSystemInfoFluent.this.withSwap(builder.build()); + } + + public N endSwap() { + return and(); + } + + } } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluent.java index 84e9d44754..a2a857b24b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluent.java @@ -300,14 +300,26 @@ public boolean hasLabels() { public A addToManagedFields(int index,V1ManagedFieldsEntry item) { if (this.managedFields == null) {this.managedFields = new ArrayList();} V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); - if (index < 0 || index >= managedFields.size()) { _visitables.get("managedFields").add(builder); managedFields.add(builder); } else { _visitables.get("managedFields").add(index, builder); managedFields.add(index, builder);} + if (index < 0 || index >= managedFields.size()) { + _visitables.get("managedFields").add(builder); + managedFields.add(builder); + } else { + _visitables.get("managedFields").add(builder); + managedFields.add(index, builder); + } return (A)this; } public A setToManagedFields(int index,V1ManagedFieldsEntry item) { if (this.managedFields == null) {this.managedFields = new ArrayList();} V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); - if (index < 0 || index >= managedFields.size()) { _visitables.get("managedFields").add(builder); managedFields.add(builder); } else { _visitables.get("managedFields").set(index, builder); managedFields.set(index, builder);} + if (index < 0 || index >= managedFields.size()) { + _visitables.get("managedFields").add(builder); + managedFields.add(builder); + } else { + _visitables.get("managedFields").add(builder); + managedFields.set(index, builder); + } return (A)this; } @@ -477,14 +489,26 @@ public boolean hasNamespace() { public A addToOwnerReferences(int index,V1OwnerReference item) { if (this.ownerReferences == null) {this.ownerReferences = new ArrayList();} V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); - if (index < 0 || index >= ownerReferences.size()) { _visitables.get("ownerReferences").add(builder); ownerReferences.add(builder); } else { _visitables.get("ownerReferences").add(index, builder); ownerReferences.add(index, builder);} + if (index < 0 || index >= ownerReferences.size()) { + _visitables.get("ownerReferences").add(builder); + ownerReferences.add(builder); + } else { + _visitables.get("ownerReferences").add(builder); + ownerReferences.add(index, builder); + } return (A)this; } public A setToOwnerReferences(int index,V1OwnerReference item) { if (this.ownerReferences == null) {this.ownerReferences = new ArrayList();} V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); - if (index < 0 || index >= ownerReferences.size()) { _visitables.get("ownerReferences").add(builder); ownerReferences.add(builder); } else { _visitables.get("ownerReferences").set(index, builder); ownerReferences.set(index, builder);} + if (index < 0 || index >= ownerReferences.size()) { + _visitables.get("ownerReferences").add(builder); + ownerReferences.add(builder); + } else { + _visitables.get("ownerReferences").add(builder); + ownerReferences.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceBuilder.java new file mode 100644 index 0000000000..bd002edbab --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ParentReferenceBuilder extends V1ParentReferenceFluent implements VisitableBuilder{ + public V1ParentReferenceBuilder() { + this(new V1ParentReference()); + } + + public V1ParentReferenceBuilder(V1ParentReferenceFluent fluent) { + this(fluent, new V1ParentReference()); + } + + public V1ParentReferenceBuilder(V1ParentReferenceFluent fluent,V1ParentReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ParentReferenceBuilder(V1ParentReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ParentReferenceFluent fluent; + + public V1ParentReference build() { + V1ParentReference buildable = new V1ParentReference(); + buildable.setGroup(fluent.getGroup()); + buildable.setName(fluent.getName()); + buildable.setNamespace(fluent.getNamespace()); + buildable.setResource(fluent.getResource()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceFluent.java new file mode 100644 index 0000000000..0102d4d1b7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceFluent.java @@ -0,0 +1,114 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ParentReferenceFluent> extends BaseFluent{ + public V1ParentReferenceFluent() { + } + + public V1ParentReferenceFluent(V1ParentReference instance) { + this.copyInstance(instance); + } + private String group; + private String name; + private String namespace; + private String resource; + + protected void copyInstance(V1ParentReference instance) { + instance = (instance != null ? instance : new V1ParentReference()); + if (instance != null) { + this.withGroup(instance.getGroup()); + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withResource(instance.getResource()); + } + } + + public String getGroup() { + return this.group; + } + + public A withGroup(String group) { + this.group = group; + return (A) this; + } + + public boolean hasGroup() { + return this.group != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public String getNamespace() { + return this.namespace; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + + public String getResource() { + return this.resource; + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + + public boolean hasResource() { + return this.resource != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ParentReferenceFluent that = (V1ParentReferenceFluent) o; + if (!java.util.Objects.equals(group, that.group)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + if (!java.util.Objects.equals(namespace, that.namespace)) return false; + if (!java.util.Objects.equals(resource, that.resource)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(group, name, namespace, resource, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (group != null) { sb.append("group:"); sb.append(group + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } + if (resource != null) { sb.append("resource:"); sb.append(resource); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluent.java index 7f8d33bafa..92ba2b1a2e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1PersistentVolumeClaim item) { if (this.items == null) {this.items = new ArrayList();} V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1PersistentVolumeClaim item) { if (this.items == null) {this.items = new ArrayList();} V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluent.java index 47c1ee7678..91b3d8a182 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluent.java @@ -257,14 +257,26 @@ public boolean hasCapacity() { public A addToConditions(int index,V1PersistentVolumeClaimCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1PersistentVolumeClaimCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluent.java index eb9515e68c..4f131ebd03 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1PersistentVolume item) { if (this.items == null) {this.items = new ArrayList();} V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1PersistentVolume item) { if (this.items == null) {this.items = new ArrayList();} V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluent.java index cc6eb345a5..244d13ab81 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluent.java @@ -37,14 +37,26 @@ protected void copyInstance(V1PodAffinity instance) { public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); preferredDuringSchedulingIgnoredDuringExecution.add(builder); } else { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(index, builder); preferredDuringSchedulingIgnoredDuringExecution.add(index, builder);} + if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); + } return (A)this; } public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); preferredDuringSchedulingIgnoredDuringExecution.add(builder); } else { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").set(index, builder); preferredDuringSchedulingIgnoredDuringExecution.set(index, builder);} + if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); + } return (A)this; } @@ -188,14 +200,26 @@ public PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPref public A addToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffinityTerm item) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); requiredDuringSchedulingIgnoredDuringExecution.add(builder); } else { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(index, builder); requiredDuringSchedulingIgnoredDuringExecution.add(index, builder);} + if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.add(index, builder); + } return (A)this; } public A setToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffinityTerm item) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); requiredDuringSchedulingIgnoredDuringExecution.add(builder); } else { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").set(index, builder); requiredDuringSchedulingIgnoredDuringExecution.set(index, builder);} + if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluent.java index 3aac0ffa99..52507283be 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluent.java @@ -37,14 +37,26 @@ protected void copyInstance(V1PodAntiAffinity instance) { public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); preferredDuringSchedulingIgnoredDuringExecution.add(builder); } else { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(index, builder); preferredDuringSchedulingIgnoredDuringExecution.add(index, builder);} + if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); + } return (A)this; } public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); preferredDuringSchedulingIgnoredDuringExecution.add(builder); } else { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").set(index, builder); preferredDuringSchedulingIgnoredDuringExecution.set(index, builder);} + if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); + } return (A)this; } @@ -188,14 +200,26 @@ public PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPref public A addToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffinityTerm item) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); requiredDuringSchedulingIgnoredDuringExecution.add(builder); } else { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(index, builder); requiredDuringSchedulingIgnoredDuringExecution.add(index, builder);} + if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.add(index, builder); + } return (A)this; } public A setToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffinityTerm item) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); requiredDuringSchedulingIgnoredDuringExecution.add(builder); } else { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").set(index, builder); requiredDuringSchedulingIgnoredDuringExecution.set(index, builder);} + if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionBuilder.java index a3a2aa5fa9..fb10672317 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionBuilder.java @@ -26,6 +26,7 @@ public V1PodCondition build() { buildable.setLastProbeTime(fluent.getLastProbeTime()); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); buildable.setMessage(fluent.getMessage()); + buildable.setObservedGeneration(fluent.getObservedGeneration()); buildable.setReason(fluent.getReason()); buildable.setStatus(fluent.getStatus()); buildable.setType(fluent.getType()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluent.java index 868088fa8f..b40a9d3048 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluent.java @@ -3,6 +3,7 @@ import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; import java.lang.Object; import java.lang.String; @@ -20,6 +21,7 @@ public V1PodConditionFluent(V1PodCondition instance) { private OffsetDateTime lastProbeTime; private OffsetDateTime lastTransitionTime; private String message; + private Long observedGeneration; private String reason; private String status; private String type; @@ -30,6 +32,7 @@ protected void copyInstance(V1PodCondition instance) { this.withLastProbeTime(instance.getLastProbeTime()); this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); + this.withObservedGeneration(instance.getObservedGeneration()); this.withReason(instance.getReason()); this.withStatus(instance.getStatus()); this.withType(instance.getType()); @@ -75,6 +78,19 @@ public boolean hasMessage() { return this.message != null; } + public Long getObservedGeneration() { + return this.observedGeneration; + } + + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + + public boolean hasObservedGeneration() { + return this.observedGeneration != null; + } + public String getReason() { return this.reason; } @@ -122,6 +138,7 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(lastProbeTime, that.lastProbeTime)) return false; if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; if (!java.util.Objects.equals(message, that.message)) return false; + if (!java.util.Objects.equals(observedGeneration, that.observedGeneration)) return false; if (!java.util.Objects.equals(reason, that.reason)) return false; if (!java.util.Objects.equals(status, that.status)) return false; if (!java.util.Objects.equals(type, that.type)) return false; @@ -129,7 +146,7 @@ public boolean equals(Object o) { } public int hashCode() { - return java.util.Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastProbeTime, lastTransitionTime, message, observedGeneration, reason, status, type, super.hashCode()); } public String toString() { @@ -138,6 +155,7 @@ public String toString() { if (lastProbeTime != null) { sb.append("lastProbeTime:"); sb.append(lastProbeTime + ","); } if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration + ","); } if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } if (status != null) { sb.append("status:"); sb.append(status + ","); } if (type != null) { sb.append("type:"); sb.append(type); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluent.java index 41e77a98a3..9e6bbbabb7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluent.java @@ -133,14 +133,26 @@ public boolean hasNameservers() { public A addToOptions(int index,V1PodDNSConfigOption item) { if (this.options == null) {this.options = new ArrayList();} V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); - if (index < 0 || index >= options.size()) { _visitables.get("options").add(builder); options.add(builder); } else { _visitables.get("options").add(index, builder); options.add(index, builder);} + if (index < 0 || index >= options.size()) { + _visitables.get("options").add(builder); + options.add(builder); + } else { + _visitables.get("options").add(builder); + options.add(index, builder); + } return (A)this; } public A setToOptions(int index,V1PodDNSConfigOption item) { if (this.options == null) {this.options = new ArrayList();} V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); - if (index < 0 || index >= options.size()) { _visitables.get("options").add(builder); options.add(builder); } else { _visitables.get("options").set(index, builder); options.set(index, builder);} + if (index < 0 || index >= options.size()) { + _visitables.get("options").add(builder); + options.add(builder); + } else { + _visitables.get("options").add(builder); + options.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluent.java index 5711f32244..902d75ce54 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1PodDisruptionBudget item) { if (this.items == null) {this.items = new ArrayList();} V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1PodDisruptionBudget item) { if (this.items == null) {this.items = new ArrayList();} V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluent.java index 04a902e1b9..2fdb8cc684 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluent.java @@ -52,14 +52,26 @@ protected void copyInstance(V1PodDisruptionBudgetStatus instance) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluent.java index b2411e2aec..2814b8708d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1PodFailurePolicy instance) { public A addToRules(int index,V1PodFailurePolicyRule item) { if (this.rules == null) {this.rules = new ArrayList();} V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").add(index, builder); rules.add(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); + } return (A)this; } public A setToRules(int index,V1PodFailurePolicyRule item) { if (this.rules == null) {this.rules = new ArrayList();} V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").set(index, builder); rules.set(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluent.java index 24d4475087..53ccb47072 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluent.java @@ -92,14 +92,26 @@ public OnExitCodesNested editOrNewOnExitCodesLike(V1PodFailurePolicyOnExitCod public A addToOnPodConditions(int index,V1PodFailurePolicyOnPodConditionsPattern item) { if (this.onPodConditions == null) {this.onPodConditions = new ArrayList();} V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); - if (index < 0 || index >= onPodConditions.size()) { _visitables.get("onPodConditions").add(builder); onPodConditions.add(builder); } else { _visitables.get("onPodConditions").add(index, builder); onPodConditions.add(index, builder);} + if (index < 0 || index >= onPodConditions.size()) { + _visitables.get("onPodConditions").add(builder); + onPodConditions.add(builder); + } else { + _visitables.get("onPodConditions").add(builder); + onPodConditions.add(index, builder); + } return (A)this; } public A setToOnPodConditions(int index,V1PodFailurePolicyOnPodConditionsPattern item) { if (this.onPodConditions == null) {this.onPodConditions = new ArrayList();} V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); - if (index < 0 || index >= onPodConditions.size()) { _visitables.get("onPodConditions").add(builder); onPodConditions.add(builder); } else { _visitables.get("onPodConditions").set(index, builder); onPodConditions.set(index, builder);} + if (index < 0 || index >= onPodConditions.size()) { + _visitables.get("onPodConditions").add(builder); + onPodConditions.add(builder); + } else { + _visitables.get("onPodConditions").add(builder); + onPodConditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluent.java index 077f935acb..95b09a5336 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1Pod item) { if (this.items == null) {this.items = new ArrayList();} V1PodBuilder builder = new V1PodBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1Pod item) { if (this.items == null) {this.items = new ArrayList();} V1PodBuilder builder = new V1PodBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluent.java index 0ce4d88565..e7238c0f4d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluent.java @@ -366,14 +366,26 @@ public boolean hasSupplementalGroupsPolicy() { public A addToSysctls(int index,V1Sysctl item) { if (this.sysctls == null) {this.sysctls = new ArrayList();} V1SysctlBuilder builder = new V1SysctlBuilder(item); - if (index < 0 || index >= sysctls.size()) { _visitables.get("sysctls").add(builder); sysctls.add(builder); } else { _visitables.get("sysctls").add(index, builder); sysctls.add(index, builder);} + if (index < 0 || index >= sysctls.size()) { + _visitables.get("sysctls").add(builder); + sysctls.add(builder); + } else { + _visitables.get("sysctls").add(builder); + sysctls.add(index, builder); + } return (A)this; } public A setToSysctls(int index,V1Sysctl item) { if (this.sysctls == null) {this.sysctls = new ArrayList();} V1SysctlBuilder builder = new V1SysctlBuilder(item); - if (index < 0 || index >= sysctls.size()) { _visitables.get("sysctls").add(builder); sysctls.add(builder); } else { _visitables.get("sysctls").set(index, builder); sysctls.set(index, builder);} + if (index < 0 || index >= sysctls.size()) { + _visitables.get("sysctls").add(builder); + sysctls.add(builder); + } else { + _visitables.get("sysctls").add(builder); + sysctls.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluent.java index e5e9584234..0b34784176 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluent.java @@ -185,14 +185,26 @@ public boolean hasAutomountServiceAccountToken() { public A addToContainers(int index,V1Container item) { if (this.containers == null) {this.containers = new ArrayList();} V1ContainerBuilder builder = new V1ContainerBuilder(item); - if (index < 0 || index >= containers.size()) { _visitables.get("containers").add(builder); containers.add(builder); } else { _visitables.get("containers").add(index, builder); containers.add(index, builder);} + if (index < 0 || index >= containers.size()) { + _visitables.get("containers").add(builder); + containers.add(builder); + } else { + _visitables.get("containers").add(builder); + containers.add(index, builder); + } return (A)this; } public A setToContainers(int index,V1Container item) { if (this.containers == null) {this.containers = new ArrayList();} V1ContainerBuilder builder = new V1ContainerBuilder(item); - if (index < 0 || index >= containers.size()) { _visitables.get("containers").add(builder); containers.add(builder); } else { _visitables.get("containers").set(index, builder); containers.set(index, builder);} + if (index < 0 || index >= containers.size()) { + _visitables.get("containers").add(builder); + containers.add(builder); + } else { + _visitables.get("containers").add(builder); + containers.set(index, builder); + } return (A)this; } @@ -402,14 +414,26 @@ public boolean hasEnableServiceLinks() { public A addToEphemeralContainers(int index,V1EphemeralContainer item) { if (this.ephemeralContainers == null) {this.ephemeralContainers = new ArrayList();} V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); - if (index < 0 || index >= ephemeralContainers.size()) { _visitables.get("ephemeralContainers").add(builder); ephemeralContainers.add(builder); } else { _visitables.get("ephemeralContainers").add(index, builder); ephemeralContainers.add(index, builder);} + if (index < 0 || index >= ephemeralContainers.size()) { + _visitables.get("ephemeralContainers").add(builder); + ephemeralContainers.add(builder); + } else { + _visitables.get("ephemeralContainers").add(builder); + ephemeralContainers.add(index, builder); + } return (A)this; } public A setToEphemeralContainers(int index,V1EphemeralContainer item) { if (this.ephemeralContainers == null) {this.ephemeralContainers = new ArrayList();} V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); - if (index < 0 || index >= ephemeralContainers.size()) { _visitables.get("ephemeralContainers").add(builder); ephemeralContainers.add(builder); } else { _visitables.get("ephemeralContainers").set(index, builder); ephemeralContainers.set(index, builder);} + if (index < 0 || index >= ephemeralContainers.size()) { + _visitables.get("ephemeralContainers").add(builder); + ephemeralContainers.add(builder); + } else { + _visitables.get("ephemeralContainers").add(builder); + ephemeralContainers.set(index, builder); + } return (A)this; } @@ -553,14 +577,26 @@ public EphemeralContainersNested editMatchingEphemeralContainer(Predicate();} V1HostAliasBuilder builder = new V1HostAliasBuilder(item); - if (index < 0 || index >= hostAliases.size()) { _visitables.get("hostAliases").add(builder); hostAliases.add(builder); } else { _visitables.get("hostAliases").add(index, builder); hostAliases.add(index, builder);} + if (index < 0 || index >= hostAliases.size()) { + _visitables.get("hostAliases").add(builder); + hostAliases.add(builder); + } else { + _visitables.get("hostAliases").add(builder); + hostAliases.add(index, builder); + } return (A)this; } public A setToHostAliases(int index,V1HostAlias item) { if (this.hostAliases == null) {this.hostAliases = new ArrayList();} V1HostAliasBuilder builder = new V1HostAliasBuilder(item); - if (index < 0 || index >= hostAliases.size()) { _visitables.get("hostAliases").add(builder); hostAliases.add(builder); } else { _visitables.get("hostAliases").set(index, builder); hostAliases.set(index, builder);} + if (index < 0 || index >= hostAliases.size()) { + _visitables.get("hostAliases").add(builder); + hostAliases.add(builder); + } else { + _visitables.get("hostAliases").add(builder); + hostAliases.set(index, builder); + } return (A)this; } @@ -769,14 +805,26 @@ public boolean hasHostname() { public A addToImagePullSecrets(int index,V1LocalObjectReference item) { if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - if (index < 0 || index >= imagePullSecrets.size()) { _visitables.get("imagePullSecrets").add(builder); imagePullSecrets.add(builder); } else { _visitables.get("imagePullSecrets").add(index, builder); imagePullSecrets.add(index, builder);} + if (index < 0 || index >= imagePullSecrets.size()) { + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.add(builder); + } else { + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.add(index, builder); + } return (A)this; } public A setToImagePullSecrets(int index,V1LocalObjectReference item) { if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - if (index < 0 || index >= imagePullSecrets.size()) { _visitables.get("imagePullSecrets").add(builder); imagePullSecrets.add(builder); } else { _visitables.get("imagePullSecrets").set(index, builder); imagePullSecrets.set(index, builder);} + if (index < 0 || index >= imagePullSecrets.size()) { + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.add(builder); + } else { + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.set(index, builder); + } return (A)this; } @@ -920,14 +968,26 @@ public ImagePullSecretsNested editMatchingImagePullSecret(Predicate();} V1ContainerBuilder builder = new V1ContainerBuilder(item); - if (index < 0 || index >= initContainers.size()) { _visitables.get("initContainers").add(builder); initContainers.add(builder); } else { _visitables.get("initContainers").add(index, builder); initContainers.add(index, builder);} + if (index < 0 || index >= initContainers.size()) { + _visitables.get("initContainers").add(builder); + initContainers.add(builder); + } else { + _visitables.get("initContainers").add(builder); + initContainers.add(index, builder); + } return (A)this; } public A setToInitContainers(int index,V1Container item) { if (this.initContainers == null) {this.initContainers = new ArrayList();} V1ContainerBuilder builder = new V1ContainerBuilder(item); - if (index < 0 || index >= initContainers.size()) { _visitables.get("initContainers").add(builder); initContainers.add(builder); } else { _visitables.get("initContainers").set(index, builder); initContainers.set(index, builder);} + if (index < 0 || index >= initContainers.size()) { + _visitables.get("initContainers").add(builder); + initContainers.add(builder); + } else { + _visitables.get("initContainers").add(builder); + initContainers.set(index, builder); + } return (A)this; } @@ -1237,14 +1297,26 @@ public boolean hasPriorityClassName() { public A addToReadinessGates(int index,V1PodReadinessGate item) { if (this.readinessGates == null) {this.readinessGates = new ArrayList();} V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); - if (index < 0 || index >= readinessGates.size()) { _visitables.get("readinessGates").add(builder); readinessGates.add(builder); } else { _visitables.get("readinessGates").add(index, builder); readinessGates.add(index, builder);} + if (index < 0 || index >= readinessGates.size()) { + _visitables.get("readinessGates").add(builder); + readinessGates.add(builder); + } else { + _visitables.get("readinessGates").add(builder); + readinessGates.add(index, builder); + } return (A)this; } public A setToReadinessGates(int index,V1PodReadinessGate item) { if (this.readinessGates == null) {this.readinessGates = new ArrayList();} V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); - if (index < 0 || index >= readinessGates.size()) { _visitables.get("readinessGates").add(builder); readinessGates.add(builder); } else { _visitables.get("readinessGates").set(index, builder); readinessGates.set(index, builder);} + if (index < 0 || index >= readinessGates.size()) { + _visitables.get("readinessGates").add(builder); + readinessGates.add(builder); + } else { + _visitables.get("readinessGates").add(builder); + readinessGates.set(index, builder); + } return (A)this; } @@ -1388,14 +1460,26 @@ public ReadinessGatesNested editMatchingReadinessGate(Predicate();} V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); - if (index < 0 || index >= resourceClaims.size()) { _visitables.get("resourceClaims").add(builder); resourceClaims.add(builder); } else { _visitables.get("resourceClaims").add(index, builder); resourceClaims.add(index, builder);} + if (index < 0 || index >= resourceClaims.size()) { + _visitables.get("resourceClaims").add(builder); + resourceClaims.add(builder); + } else { + _visitables.get("resourceClaims").add(builder); + resourceClaims.add(index, builder); + } return (A)this; } public A setToResourceClaims(int index,V1PodResourceClaim item) { if (this.resourceClaims == null) {this.resourceClaims = new ArrayList();} V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); - if (index < 0 || index >= resourceClaims.size()) { _visitables.get("resourceClaims").add(builder); resourceClaims.add(builder); } else { _visitables.get("resourceClaims").set(index, builder); resourceClaims.set(index, builder);} + if (index < 0 || index >= resourceClaims.size()) { + _visitables.get("resourceClaims").add(builder); + resourceClaims.add(builder); + } else { + _visitables.get("resourceClaims").add(builder); + resourceClaims.set(index, builder); + } return (A)this; } @@ -1618,14 +1702,26 @@ public boolean hasSchedulerName() { public A addToSchedulingGates(int index,V1PodSchedulingGate item) { if (this.schedulingGates == null) {this.schedulingGates = new ArrayList();} V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); - if (index < 0 || index >= schedulingGates.size()) { _visitables.get("schedulingGates").add(builder); schedulingGates.add(builder); } else { _visitables.get("schedulingGates").add(index, builder); schedulingGates.add(index, builder);} + if (index < 0 || index >= schedulingGates.size()) { + _visitables.get("schedulingGates").add(builder); + schedulingGates.add(builder); + } else { + _visitables.get("schedulingGates").add(builder); + schedulingGates.add(index, builder); + } return (A)this; } public A setToSchedulingGates(int index,V1PodSchedulingGate item) { if (this.schedulingGates == null) {this.schedulingGates = new ArrayList();} V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); - if (index < 0 || index >= schedulingGates.size()) { _visitables.get("schedulingGates").add(builder); schedulingGates.add(builder); } else { _visitables.get("schedulingGates").set(index, builder); schedulingGates.set(index, builder);} + if (index < 0 || index >= schedulingGates.size()) { + _visitables.get("schedulingGates").add(builder); + schedulingGates.add(builder); + } else { + _visitables.get("schedulingGates").add(builder); + schedulingGates.set(index, builder); + } return (A)this; } @@ -1887,14 +1983,26 @@ public boolean hasTerminationGracePeriodSeconds() { public A addToTolerations(int index,V1Toleration item) { if (this.tolerations == null) {this.tolerations = new ArrayList();} V1TolerationBuilder builder = new V1TolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); tolerations.add(builder); } else { _visitables.get("tolerations").add(index, builder); tolerations.add(index, builder);} + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } return (A)this; } public A setToTolerations(int index,V1Toleration item) { if (this.tolerations == null) {this.tolerations = new ArrayList();} V1TolerationBuilder builder = new V1TolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); tolerations.add(builder); } else { _visitables.get("tolerations").set(index, builder); tolerations.set(index, builder);} + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } return (A)this; } @@ -2038,14 +2146,26 @@ public TolerationsNested editMatchingToleration(Predicate();} V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); - if (index < 0 || index >= topologySpreadConstraints.size()) { _visitables.get("topologySpreadConstraints").add(builder); topologySpreadConstraints.add(builder); } else { _visitables.get("topologySpreadConstraints").add(index, builder); topologySpreadConstraints.add(index, builder);} + if (index < 0 || index >= topologySpreadConstraints.size()) { + _visitables.get("topologySpreadConstraints").add(builder); + topologySpreadConstraints.add(builder); + } else { + _visitables.get("topologySpreadConstraints").add(builder); + topologySpreadConstraints.add(index, builder); + } return (A)this; } public A setToTopologySpreadConstraints(int index,V1TopologySpreadConstraint item) { if (this.topologySpreadConstraints == null) {this.topologySpreadConstraints = new ArrayList();} V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); - if (index < 0 || index >= topologySpreadConstraints.size()) { _visitables.get("topologySpreadConstraints").add(builder); topologySpreadConstraints.add(builder); } else { _visitables.get("topologySpreadConstraints").set(index, builder); topologySpreadConstraints.set(index, builder);} + if (index < 0 || index >= topologySpreadConstraints.size()) { + _visitables.get("topologySpreadConstraints").add(builder); + topologySpreadConstraints.add(builder); + } else { + _visitables.get("topologySpreadConstraints").add(builder); + topologySpreadConstraints.set(index, builder); + } return (A)this; } @@ -2189,14 +2309,26 @@ public TopologySpreadConstraintsNested editMatchingTopologySpreadConstraint(P public A addToVolumes(int index,V1Volume item) { if (this.volumes == null) {this.volumes = new ArrayList();} V1VolumeBuilder builder = new V1VolumeBuilder(item); - if (index < 0 || index >= volumes.size()) { _visitables.get("volumes").add(builder); volumes.add(builder); } else { _visitables.get("volumes").add(index, builder); volumes.add(index, builder);} + if (index < 0 || index >= volumes.size()) { + _visitables.get("volumes").add(builder); + volumes.add(builder); + } else { + _visitables.get("volumes").add(builder); + volumes.add(index, builder); + } return (A)this; } public A setToVolumes(int index,V1Volume item) { if (this.volumes == null) {this.volumes = new ArrayList();} V1VolumeBuilder builder = new V1VolumeBuilder(item); - if (index < 0 || index >= volumes.size()) { _visitables.get("volumes").add(builder); volumes.add(builder); } else { _visitables.get("volumes").set(index, builder); volumes.set(index, builder);} + if (index < 0 || index >= volumes.size()) { + _visitables.get("volumes").add(builder); + volumes.add(builder); + } else { + _visitables.get("volumes").add(builder); + volumes.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusBuilder.java index 12113620c1..7f1254ad98 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusBuilder.java @@ -31,6 +31,7 @@ public V1PodStatus build() { buildable.setInitContainerStatuses(fluent.buildInitContainerStatuses()); buildable.setMessage(fluent.getMessage()); buildable.setNominatedNodeName(fluent.getNominatedNodeName()); + buildable.setObservedGeneration(fluent.getObservedGeneration()); buildable.setPhase(fluent.getPhase()); buildable.setPodIP(fluent.getPodIP()); buildable.setPodIPs(fluent.buildPodIPs()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluent.java index b8912167a6..e39e4b3206 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluent.java @@ -10,6 +10,7 @@ import java.util.Iterator; import java.util.List; import java.time.OffsetDateTime; +import java.lang.Long; import java.util.Collection; import java.lang.Object; @@ -32,6 +33,7 @@ public V1PodStatusFluent(V1PodStatus instance) { private ArrayList initContainerStatuses; private String message; private String nominatedNodeName; + private Long observedGeneration; private String phase; private String podIP; private ArrayList podIPs; @@ -52,6 +54,7 @@ protected void copyInstance(V1PodStatus instance) { this.withInitContainerStatuses(instance.getInitContainerStatuses()); this.withMessage(instance.getMessage()); this.withNominatedNodeName(instance.getNominatedNodeName()); + this.withObservedGeneration(instance.getObservedGeneration()); this.withPhase(instance.getPhase()); this.withPodIP(instance.getPodIP()); this.withPodIPs(instance.getPodIPs()); @@ -66,14 +69,26 @@ protected void copyInstance(V1PodStatus instance) { public A addToConditions(int index,V1PodCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1PodConditionBuilder builder = new V1PodConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1PodCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1PodConditionBuilder builder = new V1PodConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } @@ -217,14 +232,26 @@ public ConditionsNested editMatchingCondition(Predicate();} V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= containerStatuses.size()) { _visitables.get("containerStatuses").add(builder); containerStatuses.add(builder); } else { _visitables.get("containerStatuses").add(index, builder); containerStatuses.add(index, builder);} + if (index < 0 || index >= containerStatuses.size()) { + _visitables.get("containerStatuses").add(builder); + containerStatuses.add(builder); + } else { + _visitables.get("containerStatuses").add(builder); + containerStatuses.add(index, builder); + } return (A)this; } public A setToContainerStatuses(int index,V1ContainerStatus item) { if (this.containerStatuses == null) {this.containerStatuses = new ArrayList();} V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= containerStatuses.size()) { _visitables.get("containerStatuses").add(builder); containerStatuses.add(builder); } else { _visitables.get("containerStatuses").set(index, builder); containerStatuses.set(index, builder);} + if (index < 0 || index >= containerStatuses.size()) { + _visitables.get("containerStatuses").add(builder); + containerStatuses.add(builder); + } else { + _visitables.get("containerStatuses").add(builder); + containerStatuses.set(index, builder); + } return (A)this; } @@ -368,14 +395,26 @@ public ContainerStatusesNested editMatchingContainerStatus(Predicate();} V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= ephemeralContainerStatuses.size()) { _visitables.get("ephemeralContainerStatuses").add(builder); ephemeralContainerStatuses.add(builder); } else { _visitables.get("ephemeralContainerStatuses").add(index, builder); ephemeralContainerStatuses.add(index, builder);} + if (index < 0 || index >= ephemeralContainerStatuses.size()) { + _visitables.get("ephemeralContainerStatuses").add(builder); + ephemeralContainerStatuses.add(builder); + } else { + _visitables.get("ephemeralContainerStatuses").add(builder); + ephemeralContainerStatuses.add(index, builder); + } return (A)this; } public A setToEphemeralContainerStatuses(int index,V1ContainerStatus item) { if (this.ephemeralContainerStatuses == null) {this.ephemeralContainerStatuses = new ArrayList();} V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= ephemeralContainerStatuses.size()) { _visitables.get("ephemeralContainerStatuses").add(builder); ephemeralContainerStatuses.add(builder); } else { _visitables.get("ephemeralContainerStatuses").set(index, builder); ephemeralContainerStatuses.set(index, builder);} + if (index < 0 || index >= ephemeralContainerStatuses.size()) { + _visitables.get("ephemeralContainerStatuses").add(builder); + ephemeralContainerStatuses.add(builder); + } else { + _visitables.get("ephemeralContainerStatuses").add(builder); + ephemeralContainerStatuses.set(index, builder); + } return (A)this; } @@ -532,14 +571,26 @@ public boolean hasHostIP() { public A addToHostIPs(int index,V1HostIP item) { if (this.hostIPs == null) {this.hostIPs = new ArrayList();} V1HostIPBuilder builder = new V1HostIPBuilder(item); - if (index < 0 || index >= hostIPs.size()) { _visitables.get("hostIPs").add(builder); hostIPs.add(builder); } else { _visitables.get("hostIPs").add(index, builder); hostIPs.add(index, builder);} + if (index < 0 || index >= hostIPs.size()) { + _visitables.get("hostIPs").add(builder); + hostIPs.add(builder); + } else { + _visitables.get("hostIPs").add(builder); + hostIPs.add(index, builder); + } return (A)this; } public A setToHostIPs(int index,V1HostIP item) { if (this.hostIPs == null) {this.hostIPs = new ArrayList();} V1HostIPBuilder builder = new V1HostIPBuilder(item); - if (index < 0 || index >= hostIPs.size()) { _visitables.get("hostIPs").add(builder); hostIPs.add(builder); } else { _visitables.get("hostIPs").set(index, builder); hostIPs.set(index, builder);} + if (index < 0 || index >= hostIPs.size()) { + _visitables.get("hostIPs").add(builder); + hostIPs.add(builder); + } else { + _visitables.get("hostIPs").add(builder); + hostIPs.set(index, builder); + } return (A)this; } @@ -683,14 +734,26 @@ public HostIPsNested editMatchingHostIP(Predicate predicate) public A addToInitContainerStatuses(int index,V1ContainerStatus item) { if (this.initContainerStatuses == null) {this.initContainerStatuses = new ArrayList();} V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= initContainerStatuses.size()) { _visitables.get("initContainerStatuses").add(builder); initContainerStatuses.add(builder); } else { _visitables.get("initContainerStatuses").add(index, builder); initContainerStatuses.add(index, builder);} + if (index < 0 || index >= initContainerStatuses.size()) { + _visitables.get("initContainerStatuses").add(builder); + initContainerStatuses.add(builder); + } else { + _visitables.get("initContainerStatuses").add(builder); + initContainerStatuses.add(index, builder); + } return (A)this; } public A setToInitContainerStatuses(int index,V1ContainerStatus item) { if (this.initContainerStatuses == null) {this.initContainerStatuses = new ArrayList();} V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= initContainerStatuses.size()) { _visitables.get("initContainerStatuses").add(builder); initContainerStatuses.add(builder); } else { _visitables.get("initContainerStatuses").set(index, builder); initContainerStatuses.set(index, builder);} + if (index < 0 || index >= initContainerStatuses.size()) { + _visitables.get("initContainerStatuses").add(builder); + initContainerStatuses.add(builder); + } else { + _visitables.get("initContainerStatuses").add(builder); + initContainerStatuses.set(index, builder); + } return (A)this; } @@ -857,6 +920,19 @@ public boolean hasNominatedNodeName() { return this.nominatedNodeName != null; } + public Long getObservedGeneration() { + return this.observedGeneration; + } + + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + + public boolean hasObservedGeneration() { + return this.observedGeneration != null; + } + public String getPhase() { return this.phase; } @@ -886,14 +962,26 @@ public boolean hasPodIP() { public A addToPodIPs(int index,V1PodIP item) { if (this.podIPs == null) {this.podIPs = new ArrayList();} V1PodIPBuilder builder = new V1PodIPBuilder(item); - if (index < 0 || index >= podIPs.size()) { _visitables.get("podIPs").add(builder); podIPs.add(builder); } else { _visitables.get("podIPs").add(index, builder); podIPs.add(index, builder);} + if (index < 0 || index >= podIPs.size()) { + _visitables.get("podIPs").add(builder); + podIPs.add(builder); + } else { + _visitables.get("podIPs").add(builder); + podIPs.add(index, builder); + } return (A)this; } public A setToPodIPs(int index,V1PodIP item) { if (this.podIPs == null) {this.podIPs = new ArrayList();} V1PodIPBuilder builder = new V1PodIPBuilder(item); - if (index < 0 || index >= podIPs.size()) { _visitables.get("podIPs").add(builder); podIPs.add(builder); } else { _visitables.get("podIPs").set(index, builder); podIPs.set(index, builder);} + if (index < 0 || index >= podIPs.size()) { + _visitables.get("podIPs").add(builder); + podIPs.add(builder); + } else { + _visitables.get("podIPs").add(builder); + podIPs.set(index, builder); + } return (A)this; } @@ -1076,14 +1164,26 @@ public boolean hasResize() { public A addToResourceClaimStatuses(int index,V1PodResourceClaimStatus item) { if (this.resourceClaimStatuses == null) {this.resourceClaimStatuses = new ArrayList();} V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); - if (index < 0 || index >= resourceClaimStatuses.size()) { _visitables.get("resourceClaimStatuses").add(builder); resourceClaimStatuses.add(builder); } else { _visitables.get("resourceClaimStatuses").add(index, builder); resourceClaimStatuses.add(index, builder);} + if (index < 0 || index >= resourceClaimStatuses.size()) { + _visitables.get("resourceClaimStatuses").add(builder); + resourceClaimStatuses.add(builder); + } else { + _visitables.get("resourceClaimStatuses").add(builder); + resourceClaimStatuses.add(index, builder); + } return (A)this; } public A setToResourceClaimStatuses(int index,V1PodResourceClaimStatus item) { if (this.resourceClaimStatuses == null) {this.resourceClaimStatuses = new ArrayList();} V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); - if (index < 0 || index >= resourceClaimStatuses.size()) { _visitables.get("resourceClaimStatuses").add(builder); resourceClaimStatuses.add(builder); } else { _visitables.get("resourceClaimStatuses").set(index, builder); resourceClaimStatuses.set(index, builder);} + if (index < 0 || index >= resourceClaimStatuses.size()) { + _visitables.get("resourceClaimStatuses").add(builder); + resourceClaimStatuses.add(builder); + } else { + _visitables.get("resourceClaimStatuses").add(builder); + resourceClaimStatuses.set(index, builder); + } return (A)this; } @@ -1250,6 +1350,7 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(initContainerStatuses, that.initContainerStatuses)) return false; if (!java.util.Objects.equals(message, that.message)) return false; if (!java.util.Objects.equals(nominatedNodeName, that.nominatedNodeName)) return false; + if (!java.util.Objects.equals(observedGeneration, that.observedGeneration)) return false; if (!java.util.Objects.equals(phase, that.phase)) return false; if (!java.util.Objects.equals(podIP, that.podIP)) return false; if (!java.util.Objects.equals(podIPs, that.podIPs)) return false; @@ -1262,7 +1363,7 @@ public boolean equals(Object o) { } public int hashCode() { - return java.util.Objects.hash(conditions, containerStatuses, ephemeralContainerStatuses, hostIP, hostIPs, initContainerStatuses, message, nominatedNodeName, phase, podIP, podIPs, qosClass, reason, resize, resourceClaimStatuses, startTime, super.hashCode()); + return java.util.Objects.hash(conditions, containerStatuses, ephemeralContainerStatuses, hostIP, hostIPs, initContainerStatuses, message, nominatedNodeName, observedGeneration, phase, podIP, podIPs, qosClass, reason, resize, resourceClaimStatuses, startTime, super.hashCode()); } public String toString() { @@ -1276,6 +1377,7 @@ public String toString() { if (initContainerStatuses != null && !initContainerStatuses.isEmpty()) { sb.append("initContainerStatuses:"); sb.append(initContainerStatuses + ","); } if (message != null) { sb.append("message:"); sb.append(message + ","); } if (nominatedNodeName != null) { sb.append("nominatedNodeName:"); sb.append(nominatedNodeName + ","); } + if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration + ","); } if (phase != null) { sb.append("phase:"); sb.append(phase + ","); } if (podIP != null) { sb.append("podIP:"); sb.append(podIP + ","); } if (podIPs != null && !podIPs.isEmpty()) { sb.append("podIPs:"); sb.append(podIPs + ","); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluent.java index feebd38813..fae5738065 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1PodTemplate item) { if (this.items == null) {this.items = new ArrayList();} V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1PodTemplate item) { if (this.items == null) {this.items = new ArrayList();} V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsFluent.java index 655a528960..313a6ad025 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsFluent.java @@ -39,14 +39,26 @@ protected void copyInstance(V1PolicyRulesWithSubjects instance) { public A addToNonResourceRules(int index,V1NonResourcePolicyRule item) { if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); - if (index < 0 || index >= nonResourceRules.size()) { _visitables.get("nonResourceRules").add(builder); nonResourceRules.add(builder); } else { _visitables.get("nonResourceRules").add(index, builder); nonResourceRules.add(index, builder);} + if (index < 0 || index >= nonResourceRules.size()) { + _visitables.get("nonResourceRules").add(builder); + nonResourceRules.add(builder); + } else { + _visitables.get("nonResourceRules").add(builder); + nonResourceRules.add(index, builder); + } return (A)this; } public A setToNonResourceRules(int index,V1NonResourcePolicyRule item) { if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); - if (index < 0 || index >= nonResourceRules.size()) { _visitables.get("nonResourceRules").add(builder); nonResourceRules.add(builder); } else { _visitables.get("nonResourceRules").set(index, builder); nonResourceRules.set(index, builder);} + if (index < 0 || index >= nonResourceRules.size()) { + _visitables.get("nonResourceRules").add(builder); + nonResourceRules.add(builder); + } else { + _visitables.get("nonResourceRules").add(builder); + nonResourceRules.set(index, builder); + } return (A)this; } @@ -190,14 +202,26 @@ public NonResourceRulesNested editMatchingNonResourceRule(Predicate();} V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); - if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); resourceRules.add(builder); } else { _visitables.get("resourceRules").add(index, builder); resourceRules.add(index, builder);} + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.add(index, builder); + } return (A)this; } public A setToResourceRules(int index,V1ResourcePolicyRule item) { if (this.resourceRules == null) {this.resourceRules = new ArrayList();} V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); - if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); resourceRules.add(builder); } else { _visitables.get("resourceRules").set(index, builder); resourceRules.set(index, builder);} + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.set(index, builder); + } return (A)this; } @@ -341,14 +365,26 @@ public ResourceRulesNested editMatchingResourceRule(Predicate();} FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { _visitables.get("subjects").add(builder); subjects.add(builder); } else { _visitables.get("subjects").add(index, builder); subjects.add(index, builder);} + if (index < 0 || index >= subjects.size()) { + _visitables.get("subjects").add(builder); + subjects.add(builder); + } else { + _visitables.get("subjects").add(builder); + subjects.add(index, builder); + } return (A)this; } public A setToSubjects(int index,FlowcontrolV1Subject item) { if (this.subjects == null) {this.subjects = new ArrayList();} FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { _visitables.get("subjects").add(builder); subjects.add(builder); } else { _visitables.get("subjects").set(index, builder); subjects.set(index, builder);} + if (index < 0 || index >= subjects.size()) { + _visitables.get("subjects").add(builder); + subjects.add(builder); + } else { + _visitables.get("subjects").add(builder); + subjects.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluent.java index 890272aa95..a49e363713 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1PriorityClass item) { if (this.items == null) {this.items = new ArrayList();} V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1PriorityClass item) { if (this.items == null) {this.items = new ArrayList();} V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListFluent.java index 2561e9a9f0..af3bfc5bd2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1PriorityLevelConfiguration item) { if (this.items == null) {this.items = new ArrayList();} V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1PriorityLevelConfiguration item) { if (this.items == null) {this.items = new ArrayList();} V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusFluent.java index 7464eebd17..c11264b48f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1PriorityLevelConfigurationStatus instance) { public A addToConditions(int index,V1PriorityLevelConfigurationCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1PriorityLevelConfigurationCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluent.java index a46c8cd331..6ee65354f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluent.java @@ -51,14 +51,26 @@ public boolean hasDefaultMode() { public A addToSources(int index,V1VolumeProjection item) { if (this.sources == null) {this.sources = new ArrayList();} V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); - if (index < 0 || index >= sources.size()) { _visitables.get("sources").add(builder); sources.add(builder); } else { _visitables.get("sources").add(index, builder); sources.add(index, builder);} + if (index < 0 || index >= sources.size()) { + _visitables.get("sources").add(builder); + sources.add(builder); + } else { + _visitables.get("sources").add(builder); + sources.add(index, builder); + } return (A)this; } public A setToSources(int index,V1VolumeProjection item) { if (this.sources == null) {this.sources = new ArrayList();} V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); - if (index < 0 || index >= sources.size()) { _visitables.get("sources").add(builder); sources.add(builder); } else { _visitables.get("sources").set(index, builder); sources.set(index, builder);} + if (index < 0 || index >= sources.size()) { + _visitables.get("sources").add(builder); + sources.add(builder); + } else { + _visitables.get("sources").add(builder); + sources.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluent.java index 084526b939..8a243c0277 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1ReplicaSet item) { if (this.items == null) {this.items = new ArrayList();} V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1ReplicaSet item) { if (this.items == null) {this.items = new ArrayList();} V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusBuilder.java index ae32760011..08294daaa4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusBuilder.java @@ -29,6 +29,7 @@ public V1ReplicaSetStatus build() { buildable.setObservedGeneration(fluent.getObservedGeneration()); buildable.setReadyReplicas(fluent.getReadyReplicas()); buildable.setReplicas(fluent.getReplicas()); + buildable.setTerminatingReplicas(fluent.getTerminatingReplicas()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluent.java index 8e25405f5b..01ee937d2b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluent.java @@ -31,6 +31,7 @@ public V1ReplicaSetStatusFluent(V1ReplicaSetStatus instance) { private Long observedGeneration; private Integer readyReplicas; private Integer replicas; + private Integer terminatingReplicas; protected void copyInstance(V1ReplicaSetStatus instance) { instance = (instance != null ? instance : new V1ReplicaSetStatus()); @@ -41,6 +42,7 @@ protected void copyInstance(V1ReplicaSetStatus instance) { this.withObservedGeneration(instance.getObservedGeneration()); this.withReadyReplicas(instance.getReadyReplicas()); this.withReplicas(instance.getReplicas()); + this.withTerminatingReplicas(instance.getTerminatingReplicas()); } } @@ -60,14 +62,26 @@ public boolean hasAvailableReplicas() { public A addToConditions(int index,V1ReplicaSetCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1ReplicaSetCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } @@ -260,6 +274,19 @@ public boolean hasReplicas() { return this.replicas != null; } + public Integer getTerminatingReplicas() { + return this.terminatingReplicas; + } + + public A withTerminatingReplicas(Integer terminatingReplicas) { + this.terminatingReplicas = terminatingReplicas; + return (A) this; + } + + public boolean hasTerminatingReplicas() { + return this.terminatingReplicas != null; + } + public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; @@ -271,11 +298,12 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(observedGeneration, that.observedGeneration)) return false; if (!java.util.Objects.equals(readyReplicas, that.readyReplicas)) return false; if (!java.util.Objects.equals(replicas, that.replicas)) return false; + if (!java.util.Objects.equals(terminatingReplicas, that.terminatingReplicas)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(availableReplicas, conditions, fullyLabeledReplicas, observedGeneration, readyReplicas, replicas, super.hashCode()); + return java.util.Objects.hash(availableReplicas, conditions, fullyLabeledReplicas, observedGeneration, readyReplicas, replicas, terminatingReplicas, super.hashCode()); } public String toString() { @@ -286,7 +314,8 @@ public String toString() { if (fullyLabeledReplicas != null) { sb.append("fullyLabeledReplicas:"); sb.append(fullyLabeledReplicas + ","); } if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration + ","); } if (readyReplicas != null) { sb.append("readyReplicas:"); sb.append(readyReplicas + ","); } - if (replicas != null) { sb.append("replicas:"); sb.append(replicas); } + if (replicas != null) { sb.append("replicas:"); sb.append(replicas + ","); } + if (terminatingReplicas != null) { sb.append("terminatingReplicas:"); sb.append(terminatingReplicas); } sb.append("}"); return sb.toString(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluent.java index 1ab1d87df0..de9d9ec4d5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1ReplicationController item) { if (this.items == null) {this.items = new ArrayList();} V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1ReplicationController item) { if (this.items == null) {this.items = new ArrayList();} V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluent.java index 8e8c7a36f3..cb91fe9fc3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluent.java @@ -60,14 +60,26 @@ public boolean hasAvailableReplicas() { public A addToConditions(int index,V1ReplicationControllerCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1ReplicationControllerCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluent.java index 327b846844..093f56791c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1ResourceQuota item) { if (this.items == null) {this.items = new ArrayList();} V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1ResourceQuota item) { if (this.items == null) {this.items = new ArrayList();} V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluent.java index e634f57fed..a119515c87 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluent.java @@ -42,14 +42,26 @@ protected void copyInstance(V1ResourceRequirements instance) { public A addToClaims(int index,V1ResourceClaim item) { if (this.claims == null) {this.claims = new ArrayList();} V1ResourceClaimBuilder builder = new V1ResourceClaimBuilder(item); - if (index < 0 || index >= claims.size()) { _visitables.get("claims").add(builder); claims.add(builder); } else { _visitables.get("claims").add(index, builder); claims.add(index, builder);} + if (index < 0 || index >= claims.size()) { + _visitables.get("claims").add(builder); + claims.add(builder); + } else { + _visitables.get("claims").add(builder); + claims.add(index, builder); + } return (A)this; } public A setToClaims(int index,V1ResourceClaim item) { if (this.claims == null) {this.claims = new ArrayList();} V1ResourceClaimBuilder builder = new V1ResourceClaimBuilder(item); - if (index < 0 || index >= claims.size()) { _visitables.get("claims").add(builder); claims.add(builder); } else { _visitables.get("claims").set(index, builder); claims.set(index, builder);} + if (index < 0 || index >= claims.size()) { + _visitables.get("claims").add(builder); + claims.add(builder); + } else { + _visitables.get("claims").add(builder); + claims.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusFluent.java index eecb0815f1..30ccb6b399 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusFluent.java @@ -50,14 +50,26 @@ public boolean hasName() { public A addToResources(int index,V1ResourceHealth item) { if (this.resources == null) {this.resources = new ArrayList();} V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); - if (index < 0 || index >= resources.size()) { _visitables.get("resources").add(builder); resources.add(builder); } else { _visitables.get("resources").add(index, builder); resources.add(index, builder);} + if (index < 0 || index >= resources.size()) { + _visitables.get("resources").add(builder); + resources.add(builder); + } else { + _visitables.get("resources").add(builder); + resources.add(index, builder); + } return (A)this; } public A setToResources(int index,V1ResourceHealth item) { if (this.resources == null) {this.resources = new ArrayList();} V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); - if (index < 0 || index >= resources.size()) { _visitables.get("resources").add(builder); resources.add(builder); } else { _visitables.get("resources").set(index, builder); resources.set(index, builder);} + if (index < 0 || index >= resources.size()) { + _visitables.get("resources").add(builder); + resources.add(builder); + } else { + _visitables.get("resources").add(builder); + resources.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluent.java index 6549c38c50..69a7cc407b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluent.java @@ -149,14 +149,26 @@ public RoleRefNested editOrNewRoleRefLike(V1RoleRef item) { public A addToSubjects(int index,RbacV1Subject item) { if (this.subjects == null) {this.subjects = new ArrayList();} RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { _visitables.get("subjects").add(builder); subjects.add(builder); } else { _visitables.get("subjects").add(index, builder); subjects.add(index, builder);} + if (index < 0 || index >= subjects.size()) { + _visitables.get("subjects").add(builder); + subjects.add(builder); + } else { + _visitables.get("subjects").add(builder); + subjects.add(index, builder); + } return (A)this; } public A setToSubjects(int index,RbacV1Subject item) { if (this.subjects == null) {this.subjects = new ArrayList();} RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { _visitables.get("subjects").add(builder); subjects.add(builder); } else { _visitables.get("subjects").set(index, builder); subjects.set(index, builder);} + if (index < 0 || index >= subjects.size()) { + _visitables.get("subjects").add(builder); + subjects.add(builder); + } else { + _visitables.get("subjects").add(builder); + subjects.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluent.java index 2e0f63ef09..b5e3b15232 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1RoleBinding item) { if (this.items == null) {this.items = new ArrayList();} V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1RoleBinding item) { if (this.items == null) {this.items = new ArrayList();} V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluent.java index b39b598e05..f29c0649c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluent.java @@ -107,14 +107,26 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { public A addToRules(int index,V1PolicyRule item) { if (this.rules == null) {this.rules = new ArrayList();} V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").add(index, builder); rules.add(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); + } return (A)this; } public A setToRules(int index,V1PolicyRule item) { if (this.rules == null) {this.rules = new ArrayList();} V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").set(index, builder); rules.set(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluent.java index 6586d6e9f2..8af44845a8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1Role item) { if (this.items == null) {this.items = new ArrayList();} V1RoleBuilder builder = new V1RoleBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1Role item) { if (this.items == null) {this.items = new ArrayList();} V1RoleBuilder builder = new V1RoleBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluent.java index 87f8164969..ffb2120b73 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1RuntimeClass item) { if (this.items == null) {this.items = new ArrayList();} V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1RuntimeClass item) { if (this.items == null) {this.items = new ArrayList();} V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluent.java index f3396b1a84..49e6ee3938 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluent.java @@ -76,14 +76,26 @@ public boolean hasNodeSelector() { public A addToTolerations(int index,V1Toleration item) { if (this.tolerations == null) {this.tolerations = new ArrayList();} V1TolerationBuilder builder = new V1TolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); tolerations.add(builder); } else { _visitables.get("tolerations").add(index, builder); tolerations.add(index, builder);} + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } return (A)this; } public A setToTolerations(int index,V1Toleration item) { if (this.tolerations == null) {this.tolerations = new ArrayList();} V1TolerationBuilder builder = new V1TolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); tolerations.add(builder); } else { _visitables.get("tolerations").set(index, builder); tolerations.set(index, builder);} + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluent.java index fddd0dd515..98c5cc144a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1ScopeSelector instance) { public A addToMatchExpressions(int index,V1ScopedResourceSelectorRequirement item) { if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { _visitables.get("matchExpressions").add(builder); matchExpressions.add(builder); } else { _visitables.get("matchExpressions").add(index, builder); matchExpressions.add(index, builder);} + if (index < 0 || index >= matchExpressions.size()) { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(builder); + } else { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(index, builder); + } return (A)this; } public A setToMatchExpressions(int index,V1ScopedResourceSelectorRequirement item) { if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { _visitables.get("matchExpressions").add(builder); matchExpressions.add(builder); } else { _visitables.get("matchExpressions").set(index, builder); matchExpressions.set(index, builder);} + if (index < 0 || index >= matchExpressions.size()) { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(builder); + } else { + _visitables.get("matchExpressions").add(builder); + matchExpressions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluent.java index 69ea8f610b..0567ce97fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1Secret item) { if (this.items == null) {this.items = new ArrayList();} V1SecretBuilder builder = new V1SecretBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1Secret item) { if (this.items == null) {this.items = new ArrayList();} V1SecretBuilder builder = new V1SecretBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluent.java index d3db610a9b..a15f5ea7fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluent.java @@ -40,14 +40,26 @@ protected void copyInstance(V1SecretProjection instance) { public A addToItems(int index,V1KeyToPath item) { if (this.items == null) {this.items = new ArrayList();} V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1KeyToPath item) { if (this.items == null) {this.items = new ArrayList();} V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluent.java index 7c7ba1fb0e..cf7c1e94fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluent.java @@ -56,14 +56,26 @@ public boolean hasDefaultMode() { public A addToItems(int index,V1KeyToPath item) { if (this.items == null) {this.items = new ArrayList();} V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1KeyToPath item) { if (this.items == null) {this.items = new ArrayList();} V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluent.java index 868a6abe88..a9b9f8fa4f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluent.java @@ -72,14 +72,26 @@ public boolean hasAutomountServiceAccountToken() { public A addToImagePullSecrets(int index,V1LocalObjectReference item) { if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - if (index < 0 || index >= imagePullSecrets.size()) { _visitables.get("imagePullSecrets").add(builder); imagePullSecrets.add(builder); } else { _visitables.get("imagePullSecrets").add(index, builder); imagePullSecrets.add(index, builder);} + if (index < 0 || index >= imagePullSecrets.size()) { + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.add(builder); + } else { + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.add(index, builder); + } return (A)this; } public A setToImagePullSecrets(int index,V1LocalObjectReference item) { if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - if (index < 0 || index >= imagePullSecrets.size()) { _visitables.get("imagePullSecrets").add(builder); imagePullSecrets.add(builder); } else { _visitables.get("imagePullSecrets").set(index, builder); imagePullSecrets.set(index, builder);} + if (index < 0 || index >= imagePullSecrets.size()) { + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.add(builder); + } else { + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.set(index, builder); + } return (A)this; } @@ -276,14 +288,26 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { public A addToSecrets(int index,V1ObjectReference item) { if (this.secrets == null) {this.secrets = new ArrayList();} V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - if (index < 0 || index >= secrets.size()) { _visitables.get("secrets").add(builder); secrets.add(builder); } else { _visitables.get("secrets").add(index, builder); secrets.add(index, builder);} + if (index < 0 || index >= secrets.size()) { + _visitables.get("secrets").add(builder); + secrets.add(builder); + } else { + _visitables.get("secrets").add(builder); + secrets.add(index, builder); + } return (A)this; } public A setToSecrets(int index,V1ObjectReference item) { if (this.secrets == null) {this.secrets = new ArrayList();} V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - if (index < 0 || index >= secrets.size()) { _visitables.get("secrets").add(builder); secrets.add(builder); } else { _visitables.get("secrets").set(index, builder); secrets.set(index, builder);} + if (index < 0 || index >= secrets.size()) { + _visitables.get("secrets").add(builder); + secrets.add(builder); + } else { + _visitables.get("secrets").add(builder); + secrets.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluent.java index 8a97948d71..9d33e26915 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1ServiceAccount item) { if (this.items == null) {this.items = new ArrayList();} V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1ServiceAccount item) { if (this.items == null) {this.items = new ArrayList();} V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRBuilder.java new file mode 100644 index 0000000000..4a38d474f3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ServiceCIDRBuilder extends V1ServiceCIDRFluent implements VisitableBuilder{ + public V1ServiceCIDRBuilder() { + this(new V1ServiceCIDR()); + } + + public V1ServiceCIDRBuilder(V1ServiceCIDRFluent fluent) { + this(fluent, new V1ServiceCIDR()); + } + + public V1ServiceCIDRBuilder(V1ServiceCIDRFluent fluent,V1ServiceCIDR instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ServiceCIDRBuilder(V1ServiceCIDR instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ServiceCIDRFluent fluent; + + public V1ServiceCIDR build() { + V1ServiceCIDR buildable = new V1ServiceCIDR(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + buildable.setStatus(fluent.buildStatus()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRFluent.java similarity index 61% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRFluent.java index 64230a8b07..ef07b825ff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRFluent.java @@ -10,24 +10,26 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1SelfSubjectReviewFluent> extends BaseFluent{ - public V1beta1SelfSubjectReviewFluent() { +public class V1ServiceCIDRFluent> extends BaseFluent{ + public V1ServiceCIDRFluent() { } - public V1beta1SelfSubjectReviewFluent(V1beta1SelfSubjectReview instance) { + public V1ServiceCIDRFluent(V1ServiceCIDR instance) { this.copyInstance(instance); } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; - private V1beta1SelfSubjectReviewStatusBuilder status; + private V1ServiceCIDRSpecBuilder spec; + private V1ServiceCIDRStatusBuilder status; - protected void copyInstance(V1beta1SelfSubjectReview instance) { - instance = (instance != null ? instance : new V1beta1SelfSubjectReview()); + protected void copyInstance(V1ServiceCIDR instance) { + instance = (instance != null ? instance : new V1ServiceCIDR()); if (instance != null) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); } } @@ -98,14 +100,54 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); } - public V1beta1SelfSubjectReviewStatus buildStatus() { + public V1ServiceCIDRSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1ServiceCIDRSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1ServiceCIDRSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1ServiceCIDRSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1ServiceCIDRSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1ServiceCIDRSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public V1ServiceCIDRStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(V1beta1SelfSubjectReviewStatus status) { + public A withStatus(V1ServiceCIDRStatus status) { this._visitables.remove("status"); if (status != null) { - this.status = new V1beta1SelfSubjectReviewStatusBuilder(status); + this.status = new V1ServiceCIDRStatusBuilder(status); this._visitables.get("status").add(this.status); } else { this.status = null; @@ -122,7 +164,7 @@ public StatusNested withNewStatus() { return new StatusNested(null); } - public StatusNested withNewStatusLike(V1beta1SelfSubjectReviewStatus item) { + public StatusNested withNewStatusLike(V1ServiceCIDRStatus item) { return new StatusNested(item); } @@ -131,10 +173,10 @@ public StatusNested editStatus() { } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1beta1SelfSubjectReviewStatusBuilder().build())); + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1ServiceCIDRStatusBuilder().build())); } - public StatusNested editOrNewStatusLike(V1beta1SelfSubjectReviewStatus item) { + public StatusNested editOrNewStatusLike(V1ServiceCIDRStatus item) { return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); } @@ -142,16 +184,17 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; - V1beta1SelfSubjectReviewFluent that = (V1beta1SelfSubjectReviewFluent) o; + V1ServiceCIDRFluent that = (V1ServiceCIDRFluent) o; if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; if (!java.util.Objects.equals(kind, that.kind)) return false; if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; if (!java.util.Objects.equals(status, that.status)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } public String toString() { @@ -160,6 +203,7 @@ public String toString() { if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); @@ -171,7 +215,7 @@ public class MetadataNested extends V1ObjectMetaFluent> imp V1ObjectMetaBuilder builder; public N and() { - return (N) V1beta1SelfSubjectReviewFluent.this.withMetadata(builder.build()); + return (N) V1ServiceCIDRFluent.this.withMetadata(builder.build()); } public N endMetadata() { @@ -180,14 +224,30 @@ public N endMetadata() { } - public class StatusNested extends V1beta1SelfSubjectReviewStatusFluent> implements Nested{ - StatusNested(V1beta1SelfSubjectReviewStatus item) { - this.builder = new V1beta1SelfSubjectReviewStatusBuilder(this, item); + public class SpecNested extends V1ServiceCIDRSpecFluent> implements Nested{ + SpecNested(V1ServiceCIDRSpec item) { + this.builder = new V1ServiceCIDRSpecBuilder(this, item); + } + V1ServiceCIDRSpecBuilder builder; + + public N and() { + return (N) V1ServiceCIDRFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + public class StatusNested extends V1ServiceCIDRStatusFluent> implements Nested{ + StatusNested(V1ServiceCIDRStatus item) { + this.builder = new V1ServiceCIDRStatusBuilder(this, item); } - V1beta1SelfSubjectReviewStatusBuilder builder; + V1ServiceCIDRStatusBuilder builder; public N and() { - return (N) V1beta1SelfSubjectReviewFluent.this.withStatus(builder.build()); + return (N) V1ServiceCIDRFluent.this.withStatus(builder.build()); } public N endStatus() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListBuilder.java new file mode 100644 index 0000000000..2b4bedbe34 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ServiceCIDRListBuilder extends V1ServiceCIDRListFluent implements VisitableBuilder{ + public V1ServiceCIDRListBuilder() { + this(new V1ServiceCIDRList()); + } + + public V1ServiceCIDRListBuilder(V1ServiceCIDRListFluent fluent) { + this(fluent, new V1ServiceCIDRList()); + } + + public V1ServiceCIDRListBuilder(V1ServiceCIDRListFluent fluent,V1ServiceCIDRList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ServiceCIDRListBuilder(V1ServiceCIDRList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ServiceCIDRListFluent fluent; + + public V1ServiceCIDRList build() { + V1ServiceCIDRList buildable = new V1ServiceCIDRList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListFluent.java new file mode 100644 index 0000000000..8d43a424ad --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ServiceCIDRListFluent> extends BaseFluent{ + public V1ServiceCIDRListFluent() { + } + + public V1ServiceCIDRListFluent(V1ServiceCIDRList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1ServiceCIDRList instance) { + instance = (instance != null ? instance : new V1ServiceCIDRList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1ServiceCIDR item) { + if (this.items == null) {this.items = new ArrayList();} + V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1ServiceCIDR item) { + if (this.items == null) {this.items = new ArrayList();} + V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1ServiceCIDR... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1ServiceCIDR item : items) {V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1ServiceCIDR item : items) {V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1ServiceCIDR... items) { + if (this.items == null) return (A)this; + for (V1ServiceCIDR item : items) {V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1ServiceCIDR item : items) {V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ServiceCIDRBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1ServiceCIDR buildItem(int index) { + return this.items.get(index).build(); + } + + public V1ServiceCIDR buildFirstItem() { + return this.items.get(0).build(); + } + + public V1ServiceCIDR buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1ServiceCIDR buildMatchingItem(Predicate predicate) { + for (V1ServiceCIDRBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ServiceCIDRBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ServiceCIDR item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1ServiceCIDR... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ServiceCIDR item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ServiceCIDR item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1ServiceCIDR item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ServiceCIDRListFluent that = (V1ServiceCIDRListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1ServiceCIDRFluent> implements Nested{ + ItemsNested(int index,V1ServiceCIDR item) { + this.index = index; + this.builder = new V1ServiceCIDRBuilder(this, item); + } + V1ServiceCIDRBuilder builder; + int index; + + public N and() { + return (N) V1ServiceCIDRListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1ServiceCIDRListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecBuilder.java new file mode 100644 index 0000000000..0e939584e4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ServiceCIDRSpecBuilder extends V1ServiceCIDRSpecFluent implements VisitableBuilder{ + public V1ServiceCIDRSpecBuilder() { + this(new V1ServiceCIDRSpec()); + } + + public V1ServiceCIDRSpecBuilder(V1ServiceCIDRSpecFluent fluent) { + this(fluent, new V1ServiceCIDRSpec()); + } + + public V1ServiceCIDRSpecBuilder(V1ServiceCIDRSpecFluent fluent,V1ServiceCIDRSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ServiceCIDRSpecBuilder(V1ServiceCIDRSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ServiceCIDRSpecFluent fluent; + + public V1ServiceCIDRSpec build() { + V1ServiceCIDRSpec buildable = new V1ServiceCIDRSpec(); + buildable.setCidrs(fluent.getCidrs()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecFluent.java new file mode 100644 index 0000000000..6f123ed2c3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecFluent.java @@ -0,0 +1,148 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.ArrayList; +import java.util.Collection; +import java.lang.Object; +import java.util.List; +import java.lang.String; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ServiceCIDRSpecFluent> extends BaseFluent{ + public V1ServiceCIDRSpecFluent() { + } + + public V1ServiceCIDRSpecFluent(V1ServiceCIDRSpec instance) { + this.copyInstance(instance); + } + private List cidrs; + + protected void copyInstance(V1ServiceCIDRSpec instance) { + instance = (instance != null ? instance : new V1ServiceCIDRSpec()); + if (instance != null) { + this.withCidrs(instance.getCidrs()); + } + } + + public A addToCidrs(int index,String item) { + if (this.cidrs == null) {this.cidrs = new ArrayList();} + this.cidrs.add(index, item); + return (A)this; + } + + public A setToCidrs(int index,String item) { + if (this.cidrs == null) {this.cidrs = new ArrayList();} + this.cidrs.set(index, item); return (A)this; + } + + public A addToCidrs(java.lang.String... items) { + if (this.cidrs == null) {this.cidrs = new ArrayList();} + for (String item : items) {this.cidrs.add(item);} return (A)this; + } + + public A addAllToCidrs(Collection items) { + if (this.cidrs == null) {this.cidrs = new ArrayList();} + for (String item : items) {this.cidrs.add(item);} return (A)this; + } + + public A removeFromCidrs(java.lang.String... items) { + if (this.cidrs == null) return (A)this; + for (String item : items) { this.cidrs.remove(item);} return (A)this; + } + + public A removeAllFromCidrs(Collection items) { + if (this.cidrs == null) return (A)this; + for (String item : items) { this.cidrs.remove(item);} return (A)this; + } + + public List getCidrs() { + return this.cidrs; + } + + public String getCidr(int index) { + return this.cidrs.get(index); + } + + public String getFirstCidr() { + return this.cidrs.get(0); + } + + public String getLastCidr() { + return this.cidrs.get(cidrs.size() - 1); + } + + public String getMatchingCidr(Predicate predicate) { + for (String item : cidrs) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingCidr(Predicate predicate) { + for (String item : cidrs) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withCidrs(List cidrs) { + if (cidrs != null) { + this.cidrs = new ArrayList(); + for (String item : cidrs) { + this.addToCidrs(item); + } + } else { + this.cidrs = null; + } + return (A) this; + } + + public A withCidrs(java.lang.String... cidrs) { + if (this.cidrs != null) { + this.cidrs.clear(); + _visitables.remove("cidrs"); + } + if (cidrs != null) { + for (String item : cidrs) { + this.addToCidrs(item); + } + } + return (A) this; + } + + public boolean hasCidrs() { + return this.cidrs != null && !this.cidrs.isEmpty(); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ServiceCIDRSpecFluent that = (V1ServiceCIDRSpecFluent) o; + if (!java.util.Objects.equals(cidrs, that.cidrs)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(cidrs, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (cidrs != null && !cidrs.isEmpty()) { sb.append("cidrs:"); sb.append(cidrs); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusBuilder.java new file mode 100644 index 0000000000..eb9491bfbf --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ServiceCIDRStatusBuilder extends V1ServiceCIDRStatusFluent implements VisitableBuilder{ + public V1ServiceCIDRStatusBuilder() { + this(new V1ServiceCIDRStatus()); + } + + public V1ServiceCIDRStatusBuilder(V1ServiceCIDRStatusFluent fluent) { + this(fluent, new V1ServiceCIDRStatus()); + } + + public V1ServiceCIDRStatusBuilder(V1ServiceCIDRStatusFluent fluent,V1ServiceCIDRStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ServiceCIDRStatusBuilder(V1ServiceCIDRStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ServiceCIDRStatusFluent fluent; + + public V1ServiceCIDRStatus build() { + V1ServiceCIDRStatus buildable = new V1ServiceCIDRStatus(); + buildable.setConditions(fluent.buildConditions()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusFluent.java new file mode 100644 index 0000000000..3b9e6ead0f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusFluent.java @@ -0,0 +1,237 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ServiceCIDRStatusFluent> extends BaseFluent{ + public V1ServiceCIDRStatusFluent() { + } + + public V1ServiceCIDRStatusFluent(V1ServiceCIDRStatus instance) { + this.copyInstance(instance); + } + private ArrayList conditions; + + protected void copyInstance(V1ServiceCIDRStatus instance) { + instance = (instance != null ? instance : new V1ServiceCIDRStatus()); + if (instance != null) { + this.withConditions(instance.getConditions()); + } + } + + public A addToConditions(int index,V1Condition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } + return (A)this; + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A)this; + } + + public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + } + + public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items) { + if (this.conditions == null) return (A)this; + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) return (A)this; + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) return (A) this; + final Iterator each = conditions.iterator(); + final List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public V1Condition buildFirstCondition() { + return this.conditions.get(0).build(); + } + + public V1Condition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); + } + + public V1Condition buildMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public boolean hasConditions() { + return this.conditions != null && !this.conditions.isEmpty(); + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); + return setNewConditionLike(index, buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); + return setNewConditionLike(0, buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last conditions. The list is empty."); + return setNewConditionLike(index, buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1ConditionFluent> implements Nested{ + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + V1ConditionBuilder builder; + int index; + + public N and() { + return (N) V1ServiceCIDRStatusFluent.this.setToConditions(index,builder.build()); + } + + public N endCondition() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluent.java index 24b4fae0f2..fdbe00e477 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1Service item) { if (this.items == null) {this.items = new ArrayList();} V1ServiceBuilder builder = new V1ServiceBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1Service item) { if (this.items == null) {this.items = new ArrayList();} V1ServiceBuilder builder = new V1ServiceBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluent.java index c444139f23..449ecfb4c3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluent.java @@ -570,14 +570,26 @@ public boolean hasLoadBalancerSourceRanges() { public A addToPorts(int index,V1ServicePort item) { if (this.ports == null) {this.ports = new ArrayList();} V1ServicePortBuilder builder = new V1ServicePortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").add(index, builder); ports.add(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); + } return (A)this; } public A setToPorts(int index,V1ServicePort item) { if (this.ports == null) {this.ports = new ArrayList();} V1ServicePortBuilder builder = new V1ServicePortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").set(index, builder); ports.set(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluent.java index 7e723d698e..98573d1730 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluent.java @@ -37,14 +37,26 @@ protected void copyInstance(V1ServiceStatus instance) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluent.java index b77b1cab03..b89a193942 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1StatefulSet item) { if (this.items == null) {this.items = new ArrayList();} V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1StatefulSet item) { if (this.items == null) {this.items = new ArrayList();} V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluent.java index 6ffbf921c4..cb36f94939 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluent.java @@ -321,14 +321,26 @@ public UpdateStrategyNested editOrNewUpdateStrategyLike(V1StatefulSetUpdateSt public A addToVolumeClaimTemplates(int index,V1PersistentVolumeClaim item) { if (this.volumeClaimTemplates == null) {this.volumeClaimTemplates = new ArrayList();} V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - if (index < 0 || index >= volumeClaimTemplates.size()) { _visitables.get("volumeClaimTemplates").add(builder); volumeClaimTemplates.add(builder); } else { _visitables.get("volumeClaimTemplates").add(index, builder); volumeClaimTemplates.add(index, builder);} + if (index < 0 || index >= volumeClaimTemplates.size()) { + _visitables.get("volumeClaimTemplates").add(builder); + volumeClaimTemplates.add(builder); + } else { + _visitables.get("volumeClaimTemplates").add(builder); + volumeClaimTemplates.add(index, builder); + } return (A)this; } public A setToVolumeClaimTemplates(int index,V1PersistentVolumeClaim item) { if (this.volumeClaimTemplates == null) {this.volumeClaimTemplates = new ArrayList();} V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - if (index < 0 || index >= volumeClaimTemplates.size()) { _visitables.get("volumeClaimTemplates").add(builder); volumeClaimTemplates.add(builder); } else { _visitables.get("volumeClaimTemplates").set(index, builder); volumeClaimTemplates.set(index, builder);} + if (index < 0 || index >= volumeClaimTemplates.size()) { + _visitables.get("volumeClaimTemplates").add(builder); + volumeClaimTemplates.add(builder); + } else { + _visitables.get("volumeClaimTemplates").add(builder); + volumeClaimTemplates.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluent.java index c82423fa6e..c70666096e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluent.java @@ -81,14 +81,26 @@ public boolean hasCollisionCount() { public A addToConditions(int index,V1StatefulSetCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1StatefulSetCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluent.java index bd9c64daa6..eb689d8a24 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluent.java @@ -46,14 +46,26 @@ protected void copyInstance(V1StatusDetails instance) { public A addToCauses(int index,V1StatusCause item) { if (this.causes == null) {this.causes = new ArrayList();} V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); - if (index < 0 || index >= causes.size()) { _visitables.get("causes").add(builder); causes.add(builder); } else { _visitables.get("causes").add(index, builder); causes.add(index, builder);} + if (index < 0 || index >= causes.size()) { + _visitables.get("causes").add(builder); + causes.add(builder); + } else { + _visitables.get("causes").add(builder); + causes.add(index, builder); + } return (A)this; } public A setToCauses(int index,V1StatusCause item) { if (this.causes == null) {this.causes = new ArrayList();} V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); - if (index < 0 || index >= causes.size()) { _visitables.get("causes").add(builder); causes.add(builder); } else { _visitables.get("causes").set(index, builder); causes.set(index, builder);} + if (index < 0 || index >= causes.size()) { + _visitables.get("causes").add(builder); + causes.add(builder); + } else { + _visitables.get("causes").add(builder); + causes.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluent.java index a49c913813..9ada5be1d6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluent.java @@ -69,14 +69,26 @@ public boolean hasAllowVolumeExpansion() { public A addToAllowedTopologies(int index,V1TopologySelectorTerm item) { if (this.allowedTopologies == null) {this.allowedTopologies = new ArrayList();} V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); - if (index < 0 || index >= allowedTopologies.size()) { _visitables.get("allowedTopologies").add(builder); allowedTopologies.add(builder); } else { _visitables.get("allowedTopologies").add(index, builder); allowedTopologies.add(index, builder);} + if (index < 0 || index >= allowedTopologies.size()) { + _visitables.get("allowedTopologies").add(builder); + allowedTopologies.add(builder); + } else { + _visitables.get("allowedTopologies").add(builder); + allowedTopologies.add(index, builder); + } return (A)this; } public A setToAllowedTopologies(int index,V1TopologySelectorTerm item) { if (this.allowedTopologies == null) {this.allowedTopologies = new ArrayList();} V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); - if (index < 0 || index >= allowedTopologies.size()) { _visitables.get("allowedTopologies").add(builder); allowedTopologies.add(builder); } else { _visitables.get("allowedTopologies").set(index, builder); allowedTopologies.set(index, builder);} + if (index < 0 || index >= allowedTopologies.size()) { + _visitables.get("allowedTopologies").add(builder); + allowedTopologies.add(builder); + } else { + _visitables.get("allowedTopologies").add(builder); + allowedTopologies.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluent.java index 3cadf3615f..aa991fa366 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1StorageClass item) { if (this.items == null) {this.items = new ArrayList();} V1StorageClassBuilder builder = new V1StorageClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1StorageClass item) { if (this.items == null) {this.items = new ArrayList();} V1StorageClassBuilder builder = new V1StorageClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluent.java index 7e3630b183..9427f605c6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluent.java @@ -68,14 +68,26 @@ public boolean hasIncomplete() { public A addToNonResourceRules(int index,V1NonResourceRule item) { if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); - if (index < 0 || index >= nonResourceRules.size()) { _visitables.get("nonResourceRules").add(builder); nonResourceRules.add(builder); } else { _visitables.get("nonResourceRules").add(index, builder); nonResourceRules.add(index, builder);} + if (index < 0 || index >= nonResourceRules.size()) { + _visitables.get("nonResourceRules").add(builder); + nonResourceRules.add(builder); + } else { + _visitables.get("nonResourceRules").add(builder); + nonResourceRules.add(index, builder); + } return (A)this; } public A setToNonResourceRules(int index,V1NonResourceRule item) { if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); - if (index < 0 || index >= nonResourceRules.size()) { _visitables.get("nonResourceRules").add(builder); nonResourceRules.add(builder); } else { _visitables.get("nonResourceRules").set(index, builder); nonResourceRules.set(index, builder);} + if (index < 0 || index >= nonResourceRules.size()) { + _visitables.get("nonResourceRules").add(builder); + nonResourceRules.add(builder); + } else { + _visitables.get("nonResourceRules").add(builder); + nonResourceRules.set(index, builder); + } return (A)this; } @@ -219,14 +231,26 @@ public NonResourceRulesNested editMatchingNonResourceRule(Predicate();} V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); - if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); resourceRules.add(builder); } else { _visitables.get("resourceRules").add(index, builder); resourceRules.add(index, builder);} + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.add(index, builder); + } return (A)this; } public A setToResourceRules(int index,V1ResourceRule item) { if (this.resourceRules == null) {this.resourceRules = new ArrayList();} V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); - if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); resourceRules.add(builder); } else { _visitables.get("resourceRules").set(index, builder); resourceRules.set(index, builder);} + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyFluent.java index 43886a1f56..c54009e686 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1SuccessPolicy instance) { public A addToRules(int index,V1SuccessPolicyRule item) { if (this.rules == null) {this.rules = new ArrayList();} V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").add(index, builder); rules.add(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); + } return (A)this; } public A setToRules(int index,V1SuccessPolicyRule item) { if (this.rules == null) {this.rules = new ArrayList();} V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").set(index, builder); rules.set(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluent.java index 7cbc4435fa..f496a224bd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1TopologySelectorTerm instance) { public A addToMatchLabelExpressions(int index,V1TopologySelectorLabelRequirement item) { if (this.matchLabelExpressions == null) {this.matchLabelExpressions = new ArrayList();} V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); - if (index < 0 || index >= matchLabelExpressions.size()) { _visitables.get("matchLabelExpressions").add(builder); matchLabelExpressions.add(builder); } else { _visitables.get("matchLabelExpressions").add(index, builder); matchLabelExpressions.add(index, builder);} + if (index < 0 || index >= matchLabelExpressions.size()) { + _visitables.get("matchLabelExpressions").add(builder); + matchLabelExpressions.add(builder); + } else { + _visitables.get("matchLabelExpressions").add(builder); + matchLabelExpressions.add(index, builder); + } return (A)this; } public A setToMatchLabelExpressions(int index,V1TopologySelectorLabelRequirement item) { if (this.matchLabelExpressions == null) {this.matchLabelExpressions = new ArrayList();} V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); - if (index < 0 || index >= matchLabelExpressions.size()) { _visitables.get("matchLabelExpressions").add(builder); matchLabelExpressions.add(builder); } else { _visitables.get("matchLabelExpressions").set(index, builder); matchLabelExpressions.set(index, builder);} + if (index < 0 || index >= matchLabelExpressions.size()) { + _visitables.get("matchLabelExpressions").add(builder); + matchLabelExpressions.add(builder); + } else { + _visitables.get("matchLabelExpressions").add(builder); + matchLabelExpressions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingFluent.java index 34b1cbfdc7..c8aab24b16 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1TypeChecking instance) { public A addToExpressionWarnings(int index,V1ExpressionWarning item) { if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); - if (index < 0 || index >= expressionWarnings.size()) { _visitables.get("expressionWarnings").add(builder); expressionWarnings.add(builder); } else { _visitables.get("expressionWarnings").add(index, builder); expressionWarnings.add(index, builder);} + if (index < 0 || index >= expressionWarnings.size()) { + _visitables.get("expressionWarnings").add(builder); + expressionWarnings.add(builder); + } else { + _visitables.get("expressionWarnings").add(builder); + expressionWarnings.add(index, builder); + } return (A)this; } public A setToExpressionWarnings(int index,V1ExpressionWarning item) { if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); - if (index < 0 || index >= expressionWarnings.size()) { _visitables.get("expressionWarnings").add(builder); expressionWarnings.add(builder); } else { _visitables.get("expressionWarnings").set(index, builder); expressionWarnings.set(index, builder);} + if (index < 0 || index >= expressionWarnings.size()) { + _visitables.get("expressionWarnings").add(builder); + expressionWarnings.add(builder); + } else { + _visitables.get("expressionWarnings").add(builder); + expressionWarnings.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListFluent.java index c756c997b7..6301420310 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1ValidatingAdmissionPolicyBinding item) { if (this.items == null) {this.items = new ArrayList();} V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1ValidatingAdmissionPolicyBinding item) { if (this.items == null) {this.items = new ArrayList();} V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListFluent.java index c46a1c93a0..551bee18b3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1ValidatingAdmissionPolicy item) { if (this.items == null) {this.items = new ArrayList();} V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1ValidatingAdmissionPolicy item) { if (this.items == null) {this.items = new ArrayList();} V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecFluent.java index 781ebde85f..f64690ac28 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecFluent.java @@ -47,14 +47,26 @@ protected void copyInstance(V1ValidatingAdmissionPolicySpec instance) { public A addToAuditAnnotations(int index,V1AuditAnnotation item) { if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); - if (index < 0 || index >= auditAnnotations.size()) { _visitables.get("auditAnnotations").add(builder); auditAnnotations.add(builder); } else { _visitables.get("auditAnnotations").add(index, builder); auditAnnotations.add(index, builder);} + if (index < 0 || index >= auditAnnotations.size()) { + _visitables.get("auditAnnotations").add(builder); + auditAnnotations.add(builder); + } else { + _visitables.get("auditAnnotations").add(builder); + auditAnnotations.add(index, builder); + } return (A)this; } public A setToAuditAnnotations(int index,V1AuditAnnotation item) { if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); - if (index < 0 || index >= auditAnnotations.size()) { _visitables.get("auditAnnotations").add(builder); auditAnnotations.add(builder); } else { _visitables.get("auditAnnotations").set(index, builder); auditAnnotations.set(index, builder);} + if (index < 0 || index >= auditAnnotations.size()) { + _visitables.get("auditAnnotations").add(builder); + auditAnnotations.add(builder); + } else { + _visitables.get("auditAnnotations").add(builder); + auditAnnotations.set(index, builder); + } return (A)this; } @@ -211,14 +223,26 @@ public boolean hasFailurePolicy() { public A addToMatchConditions(int index,V1MatchCondition item) { if (this.matchConditions == null) {this.matchConditions = new ArrayList();} V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); matchConditions.add(builder); } else { _visitables.get("matchConditions").add(index, builder); matchConditions.add(index, builder);} + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.add(index, builder); + } return (A)this; } public A setToMatchConditions(int index,V1MatchCondition item) { if (this.matchConditions == null) {this.matchConditions = new ArrayList();} V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); matchConditions.add(builder); } else { _visitables.get("matchConditions").set(index, builder); matchConditions.set(index, builder);} + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.set(index, builder); + } return (A)this; } @@ -442,14 +466,26 @@ public ParamKindNested editOrNewParamKindLike(V1ParamKind item) { public A addToValidations(int index,V1Validation item) { if (this.validations == null) {this.validations = new ArrayList();} V1ValidationBuilder builder = new V1ValidationBuilder(item); - if (index < 0 || index >= validations.size()) { _visitables.get("validations").add(builder); validations.add(builder); } else { _visitables.get("validations").add(index, builder); validations.add(index, builder);} + if (index < 0 || index >= validations.size()) { + _visitables.get("validations").add(builder); + validations.add(builder); + } else { + _visitables.get("validations").add(builder); + validations.add(index, builder); + } return (A)this; } public A setToValidations(int index,V1Validation item) { if (this.validations == null) {this.validations = new ArrayList();} V1ValidationBuilder builder = new V1ValidationBuilder(item); - if (index < 0 || index >= validations.size()) { _visitables.get("validations").add(builder); validations.add(builder); } else { _visitables.get("validations").set(index, builder); validations.set(index, builder);} + if (index < 0 || index >= validations.size()) { + _visitables.get("validations").add(builder); + validations.add(builder); + } else { + _visitables.get("validations").add(builder); + validations.set(index, builder); + } return (A)this; } @@ -593,14 +629,26 @@ public ValidationsNested editMatchingValidation(Predicate();} V1VariableBuilder builder = new V1VariableBuilder(item); - if (index < 0 || index >= variables.size()) { _visitables.get("variables").add(builder); variables.add(builder); } else { _visitables.get("variables").add(index, builder); variables.add(index, builder);} + if (index < 0 || index >= variables.size()) { + _visitables.get("variables").add(builder); + variables.add(builder); + } else { + _visitables.get("variables").add(builder); + variables.add(index, builder); + } return (A)this; } public A setToVariables(int index,V1Variable item) { if (this.variables == null) {this.variables = new ArrayList();} V1VariableBuilder builder = new V1VariableBuilder(item); - if (index < 0 || index >= variables.size()) { _visitables.get("variables").add(builder); variables.add(builder); } else { _visitables.get("variables").set(index, builder); variables.set(index, builder);} + if (index < 0 || index >= variables.size()) { + _visitables.get("variables").add(builder); + variables.add(builder); + } else { + _visitables.get("variables").add(builder); + variables.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusFluent.java index 6beea06522..8e5ab00294 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusFluent.java @@ -40,14 +40,26 @@ protected void copyInstance(V1ValidatingAdmissionPolicyStatus instance) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluent.java index 794c8bcd02..0b85ef3363 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluent.java @@ -107,14 +107,26 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { public A addToWebhooks(int index,V1ValidatingWebhook item) { if (this.webhooks == null) {this.webhooks = new ArrayList();} V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); - if (index < 0 || index >= webhooks.size()) { _visitables.get("webhooks").add(builder); webhooks.add(builder); } else { _visitables.get("webhooks").add(index, builder); webhooks.add(index, builder);} + if (index < 0 || index >= webhooks.size()) { + _visitables.get("webhooks").add(builder); + webhooks.add(builder); + } else { + _visitables.get("webhooks").add(builder); + webhooks.add(index, builder); + } return (A)this; } public A setToWebhooks(int index,V1ValidatingWebhook item) { if (this.webhooks == null) {this.webhooks = new ArrayList();} V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); - if (index < 0 || index >= webhooks.size()) { _visitables.get("webhooks").add(builder); webhooks.add(builder); } else { _visitables.get("webhooks").set(index, builder); webhooks.set(index, builder);} + if (index < 0 || index >= webhooks.size()) { + _visitables.get("webhooks").add(builder); + webhooks.add(builder); + } else { + _visitables.get("webhooks").add(builder); + webhooks.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluent.java index 8314396077..5ade2a6a82 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1ValidatingWebhookConfiguration item) { if (this.items == null) {this.items = new ArrayList();} V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1ValidatingWebhookConfiguration item) { if (this.items == null) {this.items = new ArrayList();} V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java index 5c8e0d07a8..460a63f90d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java @@ -203,14 +203,26 @@ public boolean hasFailurePolicy() { public A addToMatchConditions(int index,V1MatchCondition item) { if (this.matchConditions == null) {this.matchConditions = new ArrayList();} V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); matchConditions.add(builder); } else { _visitables.get("matchConditions").add(index, builder); matchConditions.add(index, builder);} + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.add(index, builder); + } return (A)this; } public A setToMatchConditions(int index,V1MatchCondition item) { if (this.matchConditions == null) {this.matchConditions = new ArrayList();} V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); matchConditions.add(builder); } else { _visitables.get("matchConditions").set(index, builder); matchConditions.set(index, builder);} + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.set(index, builder); + } return (A)this; } @@ -460,14 +472,26 @@ public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) public A addToRules(int index,V1RuleWithOperations item) { if (this.rules == null) {this.rules = new ArrayList();} V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").add(index, builder); rules.add(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); + } return (A)this; } public A setToRules(int index,V1RuleWithOperations item) { if (this.rules == null) {this.rules = new ArrayList();} V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").set(index, builder); rules.set(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluent.java index d79ccb92fa..68e8c120f2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1VolumeAttachment item) { if (this.items == null) {this.items = new ArrayList();} V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1VolumeAttachment item) { if (this.items == null) {this.items = new ArrayList();} V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorBuilder.java index 4e36c9f18b..e4c0df43cf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorBuilder.java @@ -23,6 +23,7 @@ public V1VolumeErrorBuilder(V1VolumeError instance) { public V1VolumeError build() { V1VolumeError buildable = new V1VolumeError(); + buildable.setErrorCode(fluent.getErrorCode()); buildable.setMessage(fluent.getMessage()); buildable.setTime(fluent.getTime()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluent.java index 1b2e8a9881..a41cff8ac7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluent.java @@ -1,5 +1,6 @@ package io.kubernetes.client.openapi.models; +import java.lang.Integer; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; @@ -17,17 +18,32 @@ public V1VolumeErrorFluent() { public V1VolumeErrorFluent(V1VolumeError instance) { this.copyInstance(instance); } + private Integer errorCode; private String message; private OffsetDateTime time; protected void copyInstance(V1VolumeError instance) { instance = (instance != null ? instance : new V1VolumeError()); if (instance != null) { + this.withErrorCode(instance.getErrorCode()); this.withMessage(instance.getMessage()); this.withTime(instance.getTime()); } } + public Integer getErrorCode() { + return this.errorCode; + } + + public A withErrorCode(Integer errorCode) { + this.errorCode = errorCode; + return (A) this; + } + + public boolean hasErrorCode() { + return this.errorCode != null; + } + public String getMessage() { return this.message; } @@ -59,18 +75,20 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; V1VolumeErrorFluent that = (V1VolumeErrorFluent) o; + if (!java.util.Objects.equals(errorCode, that.errorCode)) return false; if (!java.util.Objects.equals(message, that.message)) return false; if (!java.util.Objects.equals(time, that.time)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(message, time, super.hashCode()); + return java.util.Objects.hash(errorCode, message, time, super.hashCode()); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); + if (errorCode != null) { sb.append("errorCode:"); sb.append(errorCode + ","); } if (message != null) { sb.append("message:"); sb.append(message + ","); } if (time != null) { sb.append("time:"); sb.append(time); } sb.append("}"); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListFluent.java index b0c02ee941..afe4ace160 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1alpha1ClusterTrustBundle item) { if (this.items == null) {this.items = new ArrayList();} V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1alpha1ClusterTrustBundle item) { if (this.items == null) {this.items = new ArrayList();} V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesFluent.java index af7578ec26..e2346a5fe9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesFluent.java @@ -43,14 +43,26 @@ protected void copyInstance(V1alpha1MatchResources instance) { public A addToExcludeResourceRules(int index,V1alpha1NamedRuleWithOperations item) { if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= excludeResourceRules.size()) { _visitables.get("excludeResourceRules").add(builder); excludeResourceRules.add(builder); } else { _visitables.get("excludeResourceRules").add(index, builder); excludeResourceRules.add(index, builder);} + if (index < 0 || index >= excludeResourceRules.size()) { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(builder); + } else { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(index, builder); + } return (A)this; } public A setToExcludeResourceRules(int index,V1alpha1NamedRuleWithOperations item) { if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= excludeResourceRules.size()) { _visitables.get("excludeResourceRules").add(builder); excludeResourceRules.add(builder); } else { _visitables.get("excludeResourceRules").set(index, builder); excludeResourceRules.set(index, builder);} + if (index < 0 || index >= excludeResourceRules.size()) { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(builder); + } else { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.set(index, builder); + } return (A)this; } @@ -287,14 +299,26 @@ public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) public A addToResourceRules(int index,V1alpha1NamedRuleWithOperations item) { if (this.resourceRules == null) {this.resourceRules = new ArrayList();} V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); resourceRules.add(builder); } else { _visitables.get("resourceRules").add(index, builder); resourceRules.add(index, builder);} + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.add(index, builder); + } return (A)this; } public A setToResourceRules(int index,V1alpha1NamedRuleWithOperations item) { if (this.resourceRules == null) {this.resourceRules = new ArrayList();} V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); resourceRules.add(builder); } else { _visitables.get("resourceRules").set(index, builder); resourceRules.set(index, builder);} + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListFluent.java index b62b26470d..4ba5c901fe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1alpha1MutatingAdmissionPolicyBinding item) { if (this.items == null) {this.items = new ArrayList();} V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1alpha1MutatingAdmissionPolicyBinding item) { if (this.items == null) {this.items = new ArrayList();} V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListFluent.java index f0a2246f34..7fe0e85595 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1alpha1MutatingAdmissionPolicy item) { if (this.items == null) {this.items = new ArrayList();} V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1alpha1MutatingAdmissionPolicy item) { if (this.items == null) {this.items = new ArrayList();} V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecFluent.java index aaada716ad..7851caedfd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecFluent.java @@ -60,14 +60,26 @@ public boolean hasFailurePolicy() { public A addToMatchConditions(int index,V1alpha1MatchCondition item) { if (this.matchConditions == null) {this.matchConditions = new ArrayList();} V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); matchConditions.add(builder); } else { _visitables.get("matchConditions").add(index, builder); matchConditions.add(index, builder);} + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.add(index, builder); + } return (A)this; } public A setToMatchConditions(int index,V1alpha1MatchCondition item) { if (this.matchConditions == null) {this.matchConditions = new ArrayList();} V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); matchConditions.add(builder); } else { _visitables.get("matchConditions").set(index, builder); matchConditions.set(index, builder);} + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.set(index, builder); + } return (A)this; } @@ -251,14 +263,26 @@ public MatchConstraintsNested editOrNewMatchConstraintsLike(V1alpha1MatchReso public A addToMutations(int index,V1alpha1Mutation item) { if (this.mutations == null) {this.mutations = new ArrayList();} V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); - if (index < 0 || index >= mutations.size()) { _visitables.get("mutations").add(builder); mutations.add(builder); } else { _visitables.get("mutations").add(index, builder); mutations.add(index, builder);} + if (index < 0 || index >= mutations.size()) { + _visitables.get("mutations").add(builder); + mutations.add(builder); + } else { + _visitables.get("mutations").add(builder); + mutations.add(index, builder); + } return (A)this; } public A setToMutations(int index,V1alpha1Mutation item) { if (this.mutations == null) {this.mutations = new ArrayList();} V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); - if (index < 0 || index >= mutations.size()) { _visitables.get("mutations").add(builder); mutations.add(builder); } else { _visitables.get("mutations").set(index, builder); mutations.set(index, builder);} + if (index < 0 || index >= mutations.size()) { + _visitables.get("mutations").add(builder); + mutations.add(builder); + } else { + _visitables.get("mutations").add(builder); + mutations.set(index, builder); + } return (A)this; } @@ -455,14 +479,26 @@ public boolean hasReinvocationPolicy() { public A addToVariables(int index,V1alpha1Variable item) { if (this.variables == null) {this.variables = new ArrayList();} V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); - if (index < 0 || index >= variables.size()) { _visitables.get("variables").add(builder); variables.add(builder); } else { _visitables.get("variables").add(index, builder); variables.add(index, builder);} + if (index < 0 || index >= variables.size()) { + _visitables.get("variables").add(builder); + variables.add(builder); + } else { + _visitables.get("variables").add(builder); + variables.add(index, builder); + } return (A)this; } public A setToVariables(int index,V1alpha1Variable item) { if (this.variables == null) {this.variables = new ArrayList();} V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); - if (index < 0 || index >= variables.size()) { _visitables.get("variables").add(builder); variables.add(builder); } else { _visitables.get("variables").set(index, builder); variables.set(index, builder);} + if (index < 0 || index >= variables.size()) { + _visitables.get("variables").add(builder); + variables.add(builder); + } else { + _visitables.get("variables").add(builder); + variables.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluent.java index 510dbfeb0a..f3d8057a55 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1alpha1StorageVersion item) { if (this.items == null) {this.items = new ArrayList();} V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1alpha1StorageVersion item) { if (this.items == null) {this.items = new ArrayList();} V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListFluent.java index d52fc38891..818513a4b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1alpha1StorageVersionMigration item) { if (this.items == null) {this.items = new ArrayList();} V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1alpha1StorageVersionMigration item) { if (this.items == null) {this.items = new ArrayList();} V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusFluent.java index 8dce48c089..f3da90555f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusFluent.java @@ -37,14 +37,26 @@ protected void copyInstance(V1alpha1StorageVersionMigrationStatus instance) { public A addToConditions(int index,V1alpha1MigrationCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1alpha1MigrationCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluent.java index b3fcca6409..4a27543bac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluent.java @@ -52,14 +52,26 @@ public boolean hasCommonEncodingVersion() { public A addToConditions(int index,V1alpha1StorageVersionCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1alpha1StorageVersionCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } @@ -203,14 +215,26 @@ public ConditionsNested editMatchingCondition(Predicate();} V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); - if (index < 0 || index >= storageVersions.size()) { _visitables.get("storageVersions").add(builder); storageVersions.add(builder); } else { _visitables.get("storageVersions").add(index, builder); storageVersions.add(index, builder);} + if (index < 0 || index >= storageVersions.size()) { + _visitables.get("storageVersions").add(builder); + storageVersions.add(builder); + } else { + _visitables.get("storageVersions").add(builder); + storageVersions.add(index, builder); + } return (A)this; } public A setToStorageVersions(int index,V1alpha1ServerStorageVersion item) { if (this.storageVersions == null) {this.storageVersions = new ArrayList();} V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); - if (index < 0 || index >= storageVersions.size()) { _visitables.get("storageVersions").add(builder); storageVersions.add(builder); } else { _visitables.get("storageVersions").set(index, builder); storageVersions.set(index, builder);} + if (index < 0 || index >= storageVersions.size()) { + _visitables.get("storageVersions").add(builder); + storageVersions.add(builder); + } else { + _visitables.get("storageVersions").add(builder); + storageVersions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListFluent.java index 4a4cd8c336..61d7367754 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1alpha1VolumeAttributesClass item) { if (this.items == null) {this.items = new ArrayList();} V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1alpha1VolumeAttributesClass item) { if (this.items == null) {this.items = new ArrayList();} V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListFluent.java index c1babdc89b..246b1f61a6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1alpha2LeaseCandidate item) { if (this.items == null) {this.items = new ArrayList();} V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1alpha2LeaseCandidate item) { if (this.items == null) {this.items = new ArrayList();} V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatusFluent.java index db559a0c7b..6d1280febb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatusFluent.java @@ -45,14 +45,26 @@ protected void copyInstance(V1alpha3AllocatedDeviceStatus instance) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDeviceBuilder.java index d282101c8c..0d09544d37 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDeviceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDeviceBuilder.java @@ -23,8 +23,13 @@ public V1alpha3BasicDeviceBuilder(V1alpha3BasicDevice instance) { public V1alpha3BasicDevice build() { V1alpha3BasicDevice buildable = new V1alpha3BasicDevice(); + buildable.setAllNodes(fluent.getAllNodes()); buildable.setAttributes(fluent.getAttributes()); buildable.setCapacity(fluent.getCapacity()); + buildable.setConsumesCounters(fluent.buildConsumesCounters()); + buildable.setNodeName(fluent.getNodeName()); + buildable.setNodeSelector(fluent.buildNodeSelector()); + buildable.setTaints(fluent.buildTaints()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDeviceFluent.java index 7b345a37a4..7c30addc94 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDeviceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDeviceFluent.java @@ -1,12 +1,20 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; import io.kubernetes.client.custom.Quantity; +import java.util.Collection; import java.lang.Object; -import java.lang.String; import java.util.Map; -import java.util.LinkedHashMap; /** * Generated @@ -19,17 +27,40 @@ public V1alpha3BasicDeviceFluent() { public V1alpha3BasicDeviceFluent(V1alpha3BasicDevice instance) { this.copyInstance(instance); } + private Boolean allNodes; private Map attributes; private Map capacity; + private ArrayList consumesCounters; + private String nodeName; + private V1NodeSelectorBuilder nodeSelector; + private ArrayList taints; protected void copyInstance(V1alpha3BasicDevice instance) { instance = (instance != null ? instance : new V1alpha3BasicDevice()); if (instance != null) { + this.withAllNodes(instance.getAllNodes()); this.withAttributes(instance.getAttributes()); this.withCapacity(instance.getCapacity()); + this.withConsumesCounters(instance.getConsumesCounters()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withTaints(instance.getTaints()); } } + public Boolean getAllNodes() { + return this.allNodes; + } + + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + + public boolean hasAllNodes() { + return this.allNodes != null; + } + public A addToAttributes(String key,V1alpha3DeviceAttribute value) { if(this.attributes == null && key != null && value != null) { this.attributes = new LinkedHashMap(); } if(key != null && value != null) {this.attributes.put(key, value);} return (A)this; @@ -104,28 +135,472 @@ public boolean hasCapacity() { return this.capacity != null; } + public A addToConsumesCounters(int index,V1alpha3DeviceCounterConsumption item) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + V1alpha3DeviceCounterConsumptionBuilder builder = new V1alpha3DeviceCounterConsumptionBuilder(item); + if (index < 0 || index >= consumesCounters.size()) { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(builder); + } else { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(index, builder); + } + return (A)this; + } + + public A setToConsumesCounters(int index,V1alpha3DeviceCounterConsumption item) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + V1alpha3DeviceCounterConsumptionBuilder builder = new V1alpha3DeviceCounterConsumptionBuilder(item); + if (index < 0 || index >= consumesCounters.size()) { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(builder); + } else { + _visitables.get("consumesCounters").add(builder); + consumesCounters.set(index, builder); + } + return (A)this; + } + + public A addToConsumesCounters(io.kubernetes.client.openapi.models.V1alpha3DeviceCounterConsumption... items) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + for (V1alpha3DeviceCounterConsumption item : items) {V1alpha3DeviceCounterConsumptionBuilder builder = new V1alpha3DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").add(builder);this.consumesCounters.add(builder);} return (A)this; + } + + public A addAllToConsumesCounters(Collection items) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + for (V1alpha3DeviceCounterConsumption item : items) {V1alpha3DeviceCounterConsumptionBuilder builder = new V1alpha3DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").add(builder);this.consumesCounters.add(builder);} return (A)this; + } + + public A removeFromConsumesCounters(io.kubernetes.client.openapi.models.V1alpha3DeviceCounterConsumption... items) { + if (this.consumesCounters == null) return (A)this; + for (V1alpha3DeviceCounterConsumption item : items) {V1alpha3DeviceCounterConsumptionBuilder builder = new V1alpha3DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").remove(builder); this.consumesCounters.remove(builder);} return (A)this; + } + + public A removeAllFromConsumesCounters(Collection items) { + if (this.consumesCounters == null) return (A)this; + for (V1alpha3DeviceCounterConsumption item : items) {V1alpha3DeviceCounterConsumptionBuilder builder = new V1alpha3DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").remove(builder); this.consumesCounters.remove(builder);} return (A)this; + } + + public A removeMatchingFromConsumesCounters(Predicate predicate) { + if (consumesCounters == null) return (A) this; + final Iterator each = consumesCounters.iterator(); + final List visitables = _visitables.get("consumesCounters"); + while (each.hasNext()) { + V1alpha3DeviceCounterConsumptionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConsumesCounters() { + return this.consumesCounters != null ? build(consumesCounters) : null; + } + + public V1alpha3DeviceCounterConsumption buildConsumesCounter(int index) { + return this.consumesCounters.get(index).build(); + } + + public V1alpha3DeviceCounterConsumption buildFirstConsumesCounter() { + return this.consumesCounters.get(0).build(); + } + + public V1alpha3DeviceCounterConsumption buildLastConsumesCounter() { + return this.consumesCounters.get(consumesCounters.size() - 1).build(); + } + + public V1alpha3DeviceCounterConsumption buildMatchingConsumesCounter(Predicate predicate) { + for (V1alpha3DeviceCounterConsumptionBuilder item : consumesCounters) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConsumesCounter(Predicate predicate) { + for (V1alpha3DeviceCounterConsumptionBuilder item : consumesCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConsumesCounters(List consumesCounters) { + if (this.consumesCounters != null) { + this._visitables.get("consumesCounters").clear(); + } + if (consumesCounters != null) { + this.consumesCounters = new ArrayList(); + for (V1alpha3DeviceCounterConsumption item : consumesCounters) { + this.addToConsumesCounters(item); + } + } else { + this.consumesCounters = null; + } + return (A) this; + } + + public A withConsumesCounters(io.kubernetes.client.openapi.models.V1alpha3DeviceCounterConsumption... consumesCounters) { + if (this.consumesCounters != null) { + this.consumesCounters.clear(); + _visitables.remove("consumesCounters"); + } + if (consumesCounters != null) { + for (V1alpha3DeviceCounterConsumption item : consumesCounters) { + this.addToConsumesCounters(item); + } + } + return (A) this; + } + + public boolean hasConsumesCounters() { + return this.consumesCounters != null && !this.consumesCounters.isEmpty(); + } + + public ConsumesCountersNested addNewConsumesCounter() { + return new ConsumesCountersNested(-1, null); + } + + public ConsumesCountersNested addNewConsumesCounterLike(V1alpha3DeviceCounterConsumption item) { + return new ConsumesCountersNested(-1, item); + } + + public ConsumesCountersNested setNewConsumesCounterLike(int index,V1alpha3DeviceCounterConsumption item) { + return new ConsumesCountersNested(index, item); + } + + public ConsumesCountersNested editConsumesCounter(int index) { + if (consumesCounters.size() <= index) throw new RuntimeException("Can't edit consumesCounters. Index exceeds size."); + return setNewConsumesCounterLike(index, buildConsumesCounter(index)); + } + + public ConsumesCountersNested editFirstConsumesCounter() { + if (consumesCounters.size() == 0) throw new RuntimeException("Can't edit first consumesCounters. The list is empty."); + return setNewConsumesCounterLike(0, buildConsumesCounter(0)); + } + + public ConsumesCountersNested editLastConsumesCounter() { + int index = consumesCounters.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last consumesCounters. The list is empty."); + return setNewConsumesCounterLike(index, buildConsumesCounter(index)); + } + + public ConsumesCountersNested editMatchingConsumesCounter(Predicate predicate) { + int index = -1; + for (int i=0;i withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public NodeSelectorNested editNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); + } + + public A addToTaints(int index,V1alpha3DeviceTaint item) { + if (this.taints == null) {this.taints = new ArrayList();} + V1alpha3DeviceTaintBuilder builder = new V1alpha3DeviceTaintBuilder(item); + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.add(index, builder); + } + return (A)this; + } + + public A setToTaints(int index,V1alpha3DeviceTaint item) { + if (this.taints == null) {this.taints = new ArrayList();} + V1alpha3DeviceTaintBuilder builder = new V1alpha3DeviceTaintBuilder(item); + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.set(index, builder); + } + return (A)this; + } + + public A addToTaints(io.kubernetes.client.openapi.models.V1alpha3DeviceTaint... items) { + if (this.taints == null) {this.taints = new ArrayList();} + for (V1alpha3DeviceTaint item : items) {V1alpha3DeviceTaintBuilder builder = new V1alpha3DeviceTaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; + } + + public A addAllToTaints(Collection items) { + if (this.taints == null) {this.taints = new ArrayList();} + for (V1alpha3DeviceTaint item : items) {V1alpha3DeviceTaintBuilder builder = new V1alpha3DeviceTaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; + } + + public A removeFromTaints(io.kubernetes.client.openapi.models.V1alpha3DeviceTaint... items) { + if (this.taints == null) return (A)this; + for (V1alpha3DeviceTaint item : items) {V1alpha3DeviceTaintBuilder builder = new V1alpha3DeviceTaintBuilder(item);_visitables.get("taints").remove(builder); this.taints.remove(builder);} return (A)this; + } + + public A removeAllFromTaints(Collection items) { + if (this.taints == null) return (A)this; + for (V1alpha3DeviceTaint item : items) {V1alpha3DeviceTaintBuilder builder = new V1alpha3DeviceTaintBuilder(item);_visitables.get("taints").remove(builder); this.taints.remove(builder);} return (A)this; + } + + public A removeMatchingFromTaints(Predicate predicate) { + if (taints == null) return (A) this; + final Iterator each = taints.iterator(); + final List visitables = _visitables.get("taints"); + while (each.hasNext()) { + V1alpha3DeviceTaintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTaints() { + return this.taints != null ? build(taints) : null; + } + + public V1alpha3DeviceTaint buildTaint(int index) { + return this.taints.get(index).build(); + } + + public V1alpha3DeviceTaint buildFirstTaint() { + return this.taints.get(0).build(); + } + + public V1alpha3DeviceTaint buildLastTaint() { + return this.taints.get(taints.size() - 1).build(); + } + + public V1alpha3DeviceTaint buildMatchingTaint(Predicate predicate) { + for (V1alpha3DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingTaint(Predicate predicate) { + for (V1alpha3DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTaints(List taints) { + if (this.taints != null) { + this._visitables.get("taints").clear(); + } + if (taints != null) { + this.taints = new ArrayList(); + for (V1alpha3DeviceTaint item : taints) { + this.addToTaints(item); + } + } else { + this.taints = null; + } + return (A) this; + } + + public A withTaints(io.kubernetes.client.openapi.models.V1alpha3DeviceTaint... taints) { + if (this.taints != null) { + this.taints.clear(); + _visitables.remove("taints"); + } + if (taints != null) { + for (V1alpha3DeviceTaint item : taints) { + this.addToTaints(item); + } + } + return (A) this; + } + + public boolean hasTaints() { + return this.taints != null && !this.taints.isEmpty(); + } + + public TaintsNested addNewTaint() { + return new TaintsNested(-1, null); + } + + public TaintsNested addNewTaintLike(V1alpha3DeviceTaint item) { + return new TaintsNested(-1, item); + } + + public TaintsNested setNewTaintLike(int index,V1alpha3DeviceTaint item) { + return new TaintsNested(index, item); + } + + public TaintsNested editTaint(int index) { + if (taints.size() <= index) throw new RuntimeException("Can't edit taints. Index exceeds size."); + return setNewTaintLike(index, buildTaint(index)); + } + + public TaintsNested editFirstTaint() { + if (taints.size() == 0) throw new RuntimeException("Can't edit first taints. The list is empty."); + return setNewTaintLike(0, buildTaint(0)); + } + + public TaintsNested editLastTaint() { + int index = taints.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last taints. The list is empty."); + return setNewTaintLike(index, buildTaint(index)); + } + + public TaintsNested editMatchingTaint(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1alpha3DeviceCounterConsumptionFluent> implements Nested{ + ConsumesCountersNested(int index,V1alpha3DeviceCounterConsumption item) { + this.index = index; + this.builder = new V1alpha3DeviceCounterConsumptionBuilder(this, item); + } + V1alpha3DeviceCounterConsumptionBuilder builder; + int index; + + public N and() { + return (N) V1alpha3BasicDeviceFluent.this.setToConsumesCounters(index,builder.build()); + } + + public N endConsumesCounter() { + return and(); + } + + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + V1NodeSelectorBuilder builder; + + public N and() { + return (N) V1alpha3BasicDeviceFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + + } + public class TaintsNested extends V1alpha3DeviceTaintFluent> implements Nested{ + TaintsNested(int index,V1alpha3DeviceTaint item) { + this.index = index; + this.builder = new V1alpha3DeviceTaintBuilder(this, item); + } + V1alpha3DeviceTaintBuilder builder; + int index; + + public N and() { + return (N) V1alpha3BasicDeviceFluent.this.setToTaints(index,builder.build()); + } + + public N endTaint() { + return and(); + } + + + } } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterBuilder.java new file mode 100644 index 0000000000..12e4c2d767 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3CounterBuilder extends V1alpha3CounterFluent implements VisitableBuilder{ + public V1alpha3CounterBuilder() { + this(new V1alpha3Counter()); + } + + public V1alpha3CounterBuilder(V1alpha3CounterFluent fluent) { + this(fluent, new V1alpha3Counter()); + } + + public V1alpha3CounterBuilder(V1alpha3CounterFluent fluent,V1alpha3Counter instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3CounterBuilder(V1alpha3Counter instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3CounterFluent fluent; + + public V1alpha3Counter build() { + V1alpha3Counter buildable = new V1alpha3Counter(); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterFluent.java new file mode 100644 index 0000000000..8d6017922a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterFluent.java @@ -0,0 +1,68 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3CounterFluent> extends BaseFluent{ + public V1alpha3CounterFluent() { + } + + public V1alpha3CounterFluent(V1alpha3Counter instance) { + this.copyInstance(instance); + } + private Quantity value; + + protected void copyInstance(V1alpha3Counter instance) { + instance = (instance != null ? instance : new V1alpha3Counter()); + if (instance != null) { + this.withValue(instance.getValue()); + } + } + + public Quantity getValue() { + return this.value; + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public A withNewValue(String value) { + return (A)withValue(new Quantity(value)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3CounterFluent that = (V1alpha3CounterFluent) o; + if (!java.util.Objects.equals(value, that.value)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(value, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (value != null) { sb.append("value:"); sb.append(value); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSetBuilder.java new file mode 100644 index 0000000000..1b9a8817f8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSetBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3CounterSetBuilder extends V1alpha3CounterSetFluent implements VisitableBuilder{ + public V1alpha3CounterSetBuilder() { + this(new V1alpha3CounterSet()); + } + + public V1alpha3CounterSetBuilder(V1alpha3CounterSetFluent fluent) { + this(fluent, new V1alpha3CounterSet()); + } + + public V1alpha3CounterSetBuilder(V1alpha3CounterSetFluent fluent,V1alpha3CounterSet instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3CounterSetBuilder(V1alpha3CounterSet instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3CounterSetFluent fluent; + + public V1alpha3CounterSet build() { + V1alpha3CounterSet buildable = new V1alpha3CounterSet(); + buildable.setCounters(fluent.getCounters()); + buildable.setName(fluent.getName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSetFluent.java new file mode 100644 index 0000000000..ea99fb0907 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSetFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.util.Map; +import java.util.LinkedHashMap; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3CounterSetFluent> extends BaseFluent{ + public V1alpha3CounterSetFluent() { + } + + public V1alpha3CounterSetFluent(V1alpha3CounterSet instance) { + this.copyInstance(instance); + } + private Map counters; + private String name; + + protected void copyInstance(V1alpha3CounterSet instance) { + instance = (instance != null ? instance : new V1alpha3CounterSet()); + if (instance != null) { + this.withCounters(instance.getCounters()); + this.withName(instance.getName()); + } + } + + public A addToCounters(String key,V1alpha3Counter value) { + if(this.counters == null && key != null && value != null) { this.counters = new LinkedHashMap(); } + if(key != null && value != null) {this.counters.put(key, value);} return (A)this; + } + + public A addToCounters(Map map) { + if(this.counters == null && map != null) { this.counters = new LinkedHashMap(); } + if(map != null) { this.counters.putAll(map);} return (A)this; + } + + public A removeFromCounters(String key) { + if(this.counters == null) { return (A) this; } + if(key != null && this.counters != null) {this.counters.remove(key);} return (A)this; + } + + public A removeFromCounters(Map map) { + if(this.counters == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.counters != null){this.counters.remove(key);}}} return (A)this; + } + + public Map getCounters() { + return this.counters; + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3CounterSetFluent that = (V1alpha3CounterSetFluent) o; + if (!java.util.Objects.equals(counters, that.counters)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(counters, name, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (counters != null && !counters.isEmpty()) { sb.append("counters:"); sb.append(counters + ","); } + if (name != null) { sb.append("name:"); sb.append(name); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResultFluent.java index d078df5eec..8c55c1475a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResultFluent.java @@ -37,14 +37,26 @@ protected void copyInstance(V1alpha3DeviceAllocationResult instance) { public A addToConfig(int index,V1alpha3DeviceAllocationConfiguration item) { if (this.config == null) {this.config = new ArrayList();} V1alpha3DeviceAllocationConfigurationBuilder builder = new V1alpha3DeviceAllocationConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); config.add(builder); } else { _visitables.get("config").add(index, builder); config.add(index, builder);} + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); + } return (A)this; } public A setToConfig(int index,V1alpha3DeviceAllocationConfiguration item) { if (this.config == null) {this.config = new ArrayList();} V1alpha3DeviceAllocationConfigurationBuilder builder = new V1alpha3DeviceAllocationConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); config.add(builder); } else { _visitables.get("config").set(index, builder); config.set(index, builder);} + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } return (A)this; } @@ -188,14 +200,26 @@ public ConfigNested editMatchingConfig(Predicate();} V1alpha3DeviceRequestAllocationResultBuilder builder = new V1alpha3DeviceRequestAllocationResultBuilder(item); - if (index < 0 || index >= results.size()) { _visitables.get("results").add(builder); results.add(builder); } else { _visitables.get("results").add(index, builder); results.add(index, builder);} + if (index < 0 || index >= results.size()) { + _visitables.get("results").add(builder); + results.add(builder); + } else { + _visitables.get("results").add(builder); + results.add(index, builder); + } return (A)this; } public A setToResults(int index,V1alpha3DeviceRequestAllocationResult item) { if (this.results == null) {this.results = new ArrayList();} V1alpha3DeviceRequestAllocationResultBuilder builder = new V1alpha3DeviceRequestAllocationResultBuilder(item); - if (index < 0 || index >= results.size()) { _visitables.get("results").add(builder); results.add(builder); } else { _visitables.get("results").set(index, builder); results.set(index, builder);} + if (index < 0 || index >= results.size()) { + _visitables.get("results").add(builder); + results.add(builder); + } else { + _visitables.get("results").add(builder); + results.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimFluent.java index f21aeb48ab..5528312976 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimFluent.java @@ -39,14 +39,26 @@ protected void copyInstance(V1alpha3DeviceClaim instance) { public A addToConfig(int index,V1alpha3DeviceClaimConfiguration item) { if (this.config == null) {this.config = new ArrayList();} V1alpha3DeviceClaimConfigurationBuilder builder = new V1alpha3DeviceClaimConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); config.add(builder); } else { _visitables.get("config").add(index, builder); config.add(index, builder);} + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); + } return (A)this; } public A setToConfig(int index,V1alpha3DeviceClaimConfiguration item) { if (this.config == null) {this.config = new ArrayList();} V1alpha3DeviceClaimConfigurationBuilder builder = new V1alpha3DeviceClaimConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); config.add(builder); } else { _visitables.get("config").set(index, builder); config.set(index, builder);} + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } return (A)this; } @@ -190,14 +202,26 @@ public ConfigNested editMatchingConfig(Predicate();} V1alpha3DeviceConstraintBuilder builder = new V1alpha3DeviceConstraintBuilder(item); - if (index < 0 || index >= constraints.size()) { _visitables.get("constraints").add(builder); constraints.add(builder); } else { _visitables.get("constraints").add(index, builder); constraints.add(index, builder);} + if (index < 0 || index >= constraints.size()) { + _visitables.get("constraints").add(builder); + constraints.add(builder); + } else { + _visitables.get("constraints").add(builder); + constraints.add(index, builder); + } return (A)this; } public A setToConstraints(int index,V1alpha3DeviceConstraint item) { if (this.constraints == null) {this.constraints = new ArrayList();} V1alpha3DeviceConstraintBuilder builder = new V1alpha3DeviceConstraintBuilder(item); - if (index < 0 || index >= constraints.size()) { _visitables.get("constraints").add(builder); constraints.add(builder); } else { _visitables.get("constraints").set(index, builder); constraints.set(index, builder);} + if (index < 0 || index >= constraints.size()) { + _visitables.get("constraints").add(builder); + constraints.add(builder); + } else { + _visitables.get("constraints").add(builder); + constraints.set(index, builder); + } return (A)this; } @@ -341,14 +365,26 @@ public ConstraintsNested editMatchingConstraint(Predicate();} V1alpha3DeviceRequestBuilder builder = new V1alpha3DeviceRequestBuilder(item); - if (index < 0 || index >= requests.size()) { _visitables.get("requests").add(builder); requests.add(builder); } else { _visitables.get("requests").add(index, builder); requests.add(index, builder);} + if (index < 0 || index >= requests.size()) { + _visitables.get("requests").add(builder); + requests.add(builder); + } else { + _visitables.get("requests").add(builder); + requests.add(index, builder); + } return (A)this; } public A setToRequests(int index,V1alpha3DeviceRequest item) { if (this.requests == null) {this.requests = new ArrayList();} V1alpha3DeviceRequestBuilder builder = new V1alpha3DeviceRequestBuilder(item); - if (index < 0 || index >= requests.size()) { _visitables.get("requests").add(builder); requests.add(builder); } else { _visitables.get("requests").set(index, builder); requests.set(index, builder);} + if (index < 0 || index >= requests.size()) { + _visitables.get("requests").add(builder); + requests.add(builder); + } else { + _visitables.get("requests").add(builder); + requests.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassListFluent.java index 52a98a5315..d494464dcc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1alpha3DeviceClass item) { if (this.items == null) {this.items = new ArrayList();} V1alpha3DeviceClassBuilder builder = new V1alpha3DeviceClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1alpha3DeviceClass item) { if (this.items == null) {this.items = new ArrayList();} V1alpha3DeviceClassBuilder builder = new V1alpha3DeviceClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpecFluent.java index 27dafcbec7..ebea229ad0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpecFluent.java @@ -37,14 +37,26 @@ protected void copyInstance(V1alpha3DeviceClassSpec instance) { public A addToConfig(int index,V1alpha3DeviceClassConfiguration item) { if (this.config == null) {this.config = new ArrayList();} V1alpha3DeviceClassConfigurationBuilder builder = new V1alpha3DeviceClassConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); config.add(builder); } else { _visitables.get("config").add(index, builder); config.add(index, builder);} + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); + } return (A)this; } public A setToConfig(int index,V1alpha3DeviceClassConfiguration item) { if (this.config == null) {this.config = new ArrayList();} V1alpha3DeviceClassConfigurationBuilder builder = new V1alpha3DeviceClassConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); config.add(builder); } else { _visitables.get("config").set(index, builder); config.set(index, builder);} + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } return (A)this; } @@ -188,14 +200,26 @@ public ConfigNested editMatchingConfig(Predicate();} V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); selectors.add(builder); } else { _visitables.get("selectors").add(index, builder); selectors.add(index, builder);} + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } return (A)this; } public A setToSelectors(int index,V1alpha3DeviceSelector item) { if (this.selectors == null) {this.selectors = new ArrayList();} V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); selectors.add(builder); } else { _visitables.get("selectors").set(index, builder); selectors.set(index, builder);} + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumptionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumptionBuilder.java new file mode 100644 index 0000000000..57ab98557e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumptionBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceCounterConsumptionBuilder extends V1alpha3DeviceCounterConsumptionFluent implements VisitableBuilder{ + public V1alpha3DeviceCounterConsumptionBuilder() { + this(new V1alpha3DeviceCounterConsumption()); + } + + public V1alpha3DeviceCounterConsumptionBuilder(V1alpha3DeviceCounterConsumptionFluent fluent) { + this(fluent, new V1alpha3DeviceCounterConsumption()); + } + + public V1alpha3DeviceCounterConsumptionBuilder(V1alpha3DeviceCounterConsumptionFluent fluent,V1alpha3DeviceCounterConsumption instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceCounterConsumptionBuilder(V1alpha3DeviceCounterConsumption instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceCounterConsumptionFluent fluent; + + public V1alpha3DeviceCounterConsumption build() { + V1alpha3DeviceCounterConsumption buildable = new V1alpha3DeviceCounterConsumption(); + buildable.setCounterSet(fluent.getCounterSet()); + buildable.setCounters(fluent.getCounters()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumptionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumptionFluent.java new file mode 100644 index 0000000000..5ace375bca --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumptionFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.util.Map; +import java.util.LinkedHashMap; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceCounterConsumptionFluent> extends BaseFluent{ + public V1alpha3DeviceCounterConsumptionFluent() { + } + + public V1alpha3DeviceCounterConsumptionFluent(V1alpha3DeviceCounterConsumption instance) { + this.copyInstance(instance); + } + private String counterSet; + private Map counters; + + protected void copyInstance(V1alpha3DeviceCounterConsumption instance) { + instance = (instance != null ? instance : new V1alpha3DeviceCounterConsumption()); + if (instance != null) { + this.withCounterSet(instance.getCounterSet()); + this.withCounters(instance.getCounters()); + } + } + + public String getCounterSet() { + return this.counterSet; + } + + public A withCounterSet(String counterSet) { + this.counterSet = counterSet; + return (A) this; + } + + public boolean hasCounterSet() { + return this.counterSet != null; + } + + public A addToCounters(String key,V1alpha3Counter value) { + if(this.counters == null && key != null && value != null) { this.counters = new LinkedHashMap(); } + if(key != null && value != null) {this.counters.put(key, value);} return (A)this; + } + + public A addToCounters(Map map) { + if(this.counters == null && map != null) { this.counters = new LinkedHashMap(); } + if(map != null) { this.counters.putAll(map);} return (A)this; + } + + public A removeFromCounters(String key) { + if(this.counters == null) { return (A) this; } + if(key != null && this.counters != null) {this.counters.remove(key);} return (A)this; + } + + public A removeFromCounters(Map map) { + if(this.counters == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.counters != null){this.counters.remove(key);}}} return (A)this; + } + + public Map getCounters() { + return this.counters; + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3DeviceCounterConsumptionFluent that = (V1alpha3DeviceCounterConsumptionFluent) o; + if (!java.util.Objects.equals(counterSet, that.counterSet)) return false; + if (!java.util.Objects.equals(counters, that.counters)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(counterSet, counters, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (counterSet != null) { sb.append("counterSet:"); sb.append(counterSet + ","); } + if (counters != null && !counters.isEmpty()) { sb.append("counters:"); sb.append(counters); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResultBuilder.java index 57346acc3c..7670c796e9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResultBuilder.java @@ -28,6 +28,7 @@ public V1alpha3DeviceRequestAllocationResult build() { buildable.setDriver(fluent.getDriver()); buildable.setPool(fluent.getPool()); buildable.setRequest(fluent.getRequest()); + buildable.setTolerations(fluent.buildTolerations()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResultFluent.java index 917fc72e11..6f840b6cc1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResultFluent.java @@ -1,9 +1,16 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; import java.lang.Object; -import java.lang.String; +import java.util.List; import java.lang.Boolean; /** @@ -22,6 +29,7 @@ public V1alpha3DeviceRequestAllocationResultFluent(V1alpha3DeviceRequestAllocati private String driver; private String pool; private String request; + private ArrayList tolerations; protected void copyInstance(V1alpha3DeviceRequestAllocationResult instance) { instance = (instance != null ? instance : new V1alpha3DeviceRequestAllocationResult()); @@ -31,6 +39,7 @@ protected void copyInstance(V1alpha3DeviceRequestAllocationResult instance) { this.withDriver(instance.getDriver()); this.withPool(instance.getPool()); this.withRequest(instance.getRequest()); + this.withTolerations(instance.getTolerations()); } } @@ -99,6 +108,169 @@ public boolean hasRequest() { return this.request != null; } + public A addToTolerations(int index,V1alpha3DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } + return (A)this; + } + + public A setToTolerations(int index,V1alpha3DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A)this; + } + + public A addToTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A removeFromTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... items) { + if (this.tolerations == null) return (A)this; + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) return (A)this; + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) return (A) this; + final Iterator each = tolerations.iterator(); + final List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1alpha3DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + public V1alpha3DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public V1alpha3DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1alpha3DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1alpha3DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1alpha3DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1alpha3DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1alpha3DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1alpha3DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + + public boolean hasTolerations() { + return this.tolerations != null && !this.tolerations.isEmpty(); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1alpha3DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1alpha3DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); + return setNewTolerationLike(0, buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1alpha3DeviceTolerationFluent> implements Nested{ + TolerationsNested(int index,V1alpha3DeviceToleration item) { + this.index = index; + this.builder = new V1alpha3DeviceTolerationBuilder(this, item); + } + V1alpha3DeviceTolerationBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceRequestAllocationResultFluent.this.setToTolerations(index,builder.build()); + } + + public N endToleration() { + return and(); + } + + } } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestBuilder.java index eae7daf5fc..b749a9ef23 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestBuilder.java @@ -27,8 +27,10 @@ public V1alpha3DeviceRequest build() { buildable.setAllocationMode(fluent.getAllocationMode()); buildable.setCount(fluent.getCount()); buildable.setDeviceClassName(fluent.getDeviceClassName()); + buildable.setFirstAvailable(fluent.buildFirstAvailable()); buildable.setName(fluent.getName()); buildable.setSelectors(fluent.buildSelectors()); + buildable.setTolerations(fluent.buildTolerations()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestFluent.java index e8bd15aea8..bbd09bd300 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestFluent.java @@ -7,12 +7,12 @@ import java.lang.String; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Long; import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; import java.util.List; import java.lang.Boolean; +import java.lang.Long; +import java.util.Collection; +import java.lang.Object; /** * Generated @@ -29,8 +29,10 @@ public V1alpha3DeviceRequestFluent(V1alpha3DeviceRequest instance) { private String allocationMode; private Long count; private String deviceClassName; + private ArrayList firstAvailable; private String name; private ArrayList selectors; + private ArrayList tolerations; protected void copyInstance(V1alpha3DeviceRequest instance) { instance = (instance != null ? instance : new V1alpha3DeviceRequest()); @@ -39,8 +41,10 @@ protected void copyInstance(V1alpha3DeviceRequest instance) { this.withAllocationMode(instance.getAllocationMode()); this.withCount(instance.getCount()); this.withDeviceClassName(instance.getDeviceClassName()); + this.withFirstAvailable(instance.getFirstAvailable()); this.withName(instance.getName()); this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); } } @@ -96,6 +100,169 @@ public boolean hasDeviceClassName() { return this.deviceClassName != null; } + public A addToFirstAvailable(int index,V1alpha3DeviceSubRequest item) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + V1alpha3DeviceSubRequestBuilder builder = new V1alpha3DeviceSubRequestBuilder(item); + if (index < 0 || index >= firstAvailable.size()) { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(builder); + } else { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(index, builder); + } + return (A)this; + } + + public A setToFirstAvailable(int index,V1alpha3DeviceSubRequest item) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + V1alpha3DeviceSubRequestBuilder builder = new V1alpha3DeviceSubRequestBuilder(item); + if (index < 0 || index >= firstAvailable.size()) { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(builder); + } else { + _visitables.get("firstAvailable").add(builder); + firstAvailable.set(index, builder); + } + return (A)this; + } + + public A addToFirstAvailable(io.kubernetes.client.openapi.models.V1alpha3DeviceSubRequest... items) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + for (V1alpha3DeviceSubRequest item : items) {V1alpha3DeviceSubRequestBuilder builder = new V1alpha3DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").add(builder);this.firstAvailable.add(builder);} return (A)this; + } + + public A addAllToFirstAvailable(Collection items) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + for (V1alpha3DeviceSubRequest item : items) {V1alpha3DeviceSubRequestBuilder builder = new V1alpha3DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").add(builder);this.firstAvailable.add(builder);} return (A)this; + } + + public A removeFromFirstAvailable(io.kubernetes.client.openapi.models.V1alpha3DeviceSubRequest... items) { + if (this.firstAvailable == null) return (A)this; + for (V1alpha3DeviceSubRequest item : items) {V1alpha3DeviceSubRequestBuilder builder = new V1alpha3DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").remove(builder); this.firstAvailable.remove(builder);} return (A)this; + } + + public A removeAllFromFirstAvailable(Collection items) { + if (this.firstAvailable == null) return (A)this; + for (V1alpha3DeviceSubRequest item : items) {V1alpha3DeviceSubRequestBuilder builder = new V1alpha3DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").remove(builder); this.firstAvailable.remove(builder);} return (A)this; + } + + public A removeMatchingFromFirstAvailable(Predicate predicate) { + if (firstAvailable == null) return (A) this; + final Iterator each = firstAvailable.iterator(); + final List visitables = _visitables.get("firstAvailable"); + while (each.hasNext()) { + V1alpha3DeviceSubRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildFirstAvailable() { + return this.firstAvailable != null ? build(firstAvailable) : null; + } + + public V1alpha3DeviceSubRequest buildFirstAvailable(int index) { + return this.firstAvailable.get(index).build(); + } + + public V1alpha3DeviceSubRequest buildFirstFirstAvailable() { + return this.firstAvailable.get(0).build(); + } + + public V1alpha3DeviceSubRequest buildLastFirstAvailable() { + return this.firstAvailable.get(firstAvailable.size() - 1).build(); + } + + public V1alpha3DeviceSubRequest buildMatchingFirstAvailable(Predicate predicate) { + for (V1alpha3DeviceSubRequestBuilder item : firstAvailable) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingFirstAvailable(Predicate predicate) { + for (V1alpha3DeviceSubRequestBuilder item : firstAvailable) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withFirstAvailable(List firstAvailable) { + if (this.firstAvailable != null) { + this._visitables.get("firstAvailable").clear(); + } + if (firstAvailable != null) { + this.firstAvailable = new ArrayList(); + for (V1alpha3DeviceSubRequest item : firstAvailable) { + this.addToFirstAvailable(item); + } + } else { + this.firstAvailable = null; + } + return (A) this; + } + + public A withFirstAvailable(io.kubernetes.client.openapi.models.V1alpha3DeviceSubRequest... firstAvailable) { + if (this.firstAvailable != null) { + this.firstAvailable.clear(); + _visitables.remove("firstAvailable"); + } + if (firstAvailable != null) { + for (V1alpha3DeviceSubRequest item : firstAvailable) { + this.addToFirstAvailable(item); + } + } + return (A) this; + } + + public boolean hasFirstAvailable() { + return this.firstAvailable != null && !this.firstAvailable.isEmpty(); + } + + public FirstAvailableNested addNewFirstAvailable() { + return new FirstAvailableNested(-1, null); + } + + public FirstAvailableNested addNewFirstAvailableLike(V1alpha3DeviceSubRequest item) { + return new FirstAvailableNested(-1, item); + } + + public FirstAvailableNested setNewFirstAvailableLike(int index,V1alpha3DeviceSubRequest item) { + return new FirstAvailableNested(index, item); + } + + public FirstAvailableNested editFirstAvailable(int index) { + if (firstAvailable.size() <= index) throw new RuntimeException("Can't edit firstAvailable. Index exceeds size."); + return setNewFirstAvailableLike(index, buildFirstAvailable(index)); + } + + public FirstAvailableNested editFirstFirstAvailable() { + if (firstAvailable.size() == 0) throw new RuntimeException("Can't edit first firstAvailable. The list is empty."); + return setNewFirstAvailableLike(0, buildFirstAvailable(0)); + } + + public FirstAvailableNested editLastFirstAvailable() { + int index = firstAvailable.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last firstAvailable. The list is empty."); + return setNewFirstAvailableLike(index, buildFirstAvailable(index)); + } + + public FirstAvailableNested editMatchingFirstAvailable(Predicate predicate) { + int index = -1; + for (int i=0;i();} V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); selectors.add(builder); } else { _visitables.get("selectors").add(index, builder); selectors.add(index, builder);} + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } return (A)this; } public A setToSelectors(int index,V1alpha3DeviceSelector item) { if (this.selectors == null) {this.selectors = new ArrayList();} V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); selectors.add(builder); } else { _visitables.get("selectors").set(index, builder); selectors.set(index, builder);} + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } return (A)this; } @@ -260,6 +439,169 @@ public SelectorsNested editMatchingSelector(Predicate();} + V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } + return (A)this; + } + + public A setToTolerations(int index,V1alpha3DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A)this; + } + + public A addToTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A removeFromTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... items) { + if (this.tolerations == null) return (A)this; + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) return (A)this; + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) return (A) this; + final Iterator each = tolerations.iterator(); + final List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1alpha3DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + public V1alpha3DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public V1alpha3DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1alpha3DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1alpha3DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1alpha3DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1alpha3DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1alpha3DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1alpha3DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + + public boolean hasTolerations() { + return this.tolerations != null && !this.tolerations.isEmpty(); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1alpha3DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1alpha3DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); + return setNewTolerationLike(0, buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1alpha3DeviceSubRequestFluent> implements Nested{ + FirstAvailableNested(int index,V1alpha3DeviceSubRequest item) { + this.index = index; + this.builder = new V1alpha3DeviceSubRequestBuilder(this, item); + } + V1alpha3DeviceSubRequestBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceRequestFluent.this.setToFirstAvailable(index,builder.build()); + } + + public N endFirstAvailable() { + return and(); + } + + } public class SelectorsNested extends V1alpha3DeviceSelectorFluent> implements Nested{ SelectorsNested(int index,V1alpha3DeviceSelector item) { @@ -311,6 +675,24 @@ public N endSelector() { } + } + public class TolerationsNested extends V1alpha3DeviceTolerationFluent> implements Nested{ + TolerationsNested(int index,V1alpha3DeviceToleration item) { + this.index = index; + this.builder = new V1alpha3DeviceTolerationBuilder(this, item); + } + V1alpha3DeviceTolerationBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceRequestFluent.this.setToTolerations(index,builder.build()); + } + + public N endToleration() { + return and(); + } + + } } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequestBuilder.java new file mode 100644 index 0000000000..882dbcf57b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequestBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceSubRequestBuilder extends V1alpha3DeviceSubRequestFluent implements VisitableBuilder{ + public V1alpha3DeviceSubRequestBuilder() { + this(new V1alpha3DeviceSubRequest()); + } + + public V1alpha3DeviceSubRequestBuilder(V1alpha3DeviceSubRequestFluent fluent) { + this(fluent, new V1alpha3DeviceSubRequest()); + } + + public V1alpha3DeviceSubRequestBuilder(V1alpha3DeviceSubRequestFluent fluent,V1alpha3DeviceSubRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceSubRequestBuilder(V1alpha3DeviceSubRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceSubRequestFluent fluent; + + public V1alpha3DeviceSubRequest build() { + V1alpha3DeviceSubRequest buildable = new V1alpha3DeviceSubRequest(); + buildable.setAllocationMode(fluent.getAllocationMode()); + buildable.setCount(fluent.getCount()); + buildable.setDeviceClassName(fluent.getDeviceClassName()); + buildable.setName(fluent.getName()); + buildable.setSelectors(fluent.buildSelectors()); + buildable.setTolerations(fluent.buildTolerations()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequestFluent.java new file mode 100644 index 0000000000..48bfebc6ca --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequestFluent.java @@ -0,0 +1,491 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceSubRequestFluent> extends BaseFluent{ + public V1alpha3DeviceSubRequestFluent() { + } + + public V1alpha3DeviceSubRequestFluent(V1alpha3DeviceSubRequest instance) { + this.copyInstance(instance); + } + private String allocationMode; + private Long count; + private String deviceClassName; + private String name; + private ArrayList selectors; + private ArrayList tolerations; + + protected void copyInstance(V1alpha3DeviceSubRequest instance) { + instance = (instance != null ? instance : new V1alpha3DeviceSubRequest()); + if (instance != null) { + this.withAllocationMode(instance.getAllocationMode()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withName(instance.getName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } + } + + public String getAllocationMode() { + return this.allocationMode; + } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public Long getCount() { + return this.count; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public boolean hasCount() { + return this.count != null; + } + + public String getDeviceClassName() { + return this.deviceClassName; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public A addToSelectors(int index,V1alpha3DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } + return (A)this; + } + + public A setToSelectors(int index,V1alpha3DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A)this; + } + + public A addToSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A removeFromSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... items) { + if (this.selectors == null) return (A)this; + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) return (A)this; + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) return (A) this; + final Iterator each = selectors.iterator(); + final List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1alpha3DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1alpha3DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public V1alpha3DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1alpha3DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1alpha3DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1alpha3DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1alpha3DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1alpha3DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1alpha3DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public boolean hasSelectors() { + return this.selectors != null && !this.selectors.isEmpty(); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1alpha3DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1alpha3DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); + return setNewSelectorLike(0, buildSelector(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } + return (A)this; + } + + public A setToTolerations(int index,V1alpha3DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A)this; + } + + public A addToTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A removeFromTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... items) { + if (this.tolerations == null) return (A)this; + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) return (A)this; + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) return (A) this; + final Iterator each = tolerations.iterator(); + final List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1alpha3DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + public V1alpha3DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public V1alpha3DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1alpha3DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1alpha3DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1alpha3DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1alpha3DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1alpha3DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1alpha3DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + + public boolean hasTolerations() { + return this.tolerations != null && !this.tolerations.isEmpty(); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1alpha3DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1alpha3DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); + return setNewTolerationLike(0, buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1alpha3DeviceSelectorFluent> implements Nested{ + SelectorsNested(int index,V1alpha3DeviceSelector item) { + this.index = index; + this.builder = new V1alpha3DeviceSelectorBuilder(this, item); + } + V1alpha3DeviceSelectorBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceSubRequestFluent.this.setToSelectors(index,builder.build()); + } + + public N endSelector() { + return and(); + } + + + } + public class TolerationsNested extends V1alpha3DeviceTolerationFluent> implements Nested{ + TolerationsNested(int index,V1alpha3DeviceToleration item) { + this.index = index; + this.builder = new V1alpha3DeviceTolerationBuilder(this, item); + } + V1alpha3DeviceTolerationBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceSubRequestFluent.this.setToTolerations(index,builder.build()); + } + + public N endToleration() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintBuilder.java new file mode 100644 index 0000000000..8209adcf58 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceTaintBuilder extends V1alpha3DeviceTaintFluent implements VisitableBuilder{ + public V1alpha3DeviceTaintBuilder() { + this(new V1alpha3DeviceTaint()); + } + + public V1alpha3DeviceTaintBuilder(V1alpha3DeviceTaintFluent fluent) { + this(fluent, new V1alpha3DeviceTaint()); + } + + public V1alpha3DeviceTaintBuilder(V1alpha3DeviceTaintFluent fluent,V1alpha3DeviceTaint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceTaintBuilder(V1alpha3DeviceTaint instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceTaintFluent fluent; + + public V1alpha3DeviceTaint build() { + V1alpha3DeviceTaint buildable = new V1alpha3DeviceTaint(); + buildable.setEffect(fluent.getEffect()); + buildable.setKey(fluent.getKey()); + buildable.setTimeAdded(fluent.getTimeAdded()); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintFluent.java new file mode 100644 index 0000000000..31c35c1458 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintFluent.java @@ -0,0 +1,115 @@ +package io.kubernetes.client.openapi.models; + +import java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceTaintFluent> extends BaseFluent{ + public V1alpha3DeviceTaintFluent() { + } + + public V1alpha3DeviceTaintFluent(V1alpha3DeviceTaint instance) { + this.copyInstance(instance); + } + private String effect; + private String key; + private OffsetDateTime timeAdded; + private String value; + + protected void copyInstance(V1alpha3DeviceTaint instance) { + instance = (instance != null ? instance : new V1alpha3DeviceTaint()); + if (instance != null) { + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withTimeAdded(instance.getTimeAdded()); + this.withValue(instance.getValue()); + } + } + + public String getEffect() { + return this.effect; + } + + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public String getKey() { + return this.key; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public boolean hasKey() { + return this.key != null; + } + + public OffsetDateTime getTimeAdded() { + return this.timeAdded; + } + + public A withTimeAdded(OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + return (A) this; + } + + public boolean hasTimeAdded() { + return this.timeAdded != null; + } + + public String getValue() { + return this.value; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3DeviceTaintFluent that = (V1alpha3DeviceTaintFluent) o; + if (!java.util.Objects.equals(effect, that.effect)) return false; + if (!java.util.Objects.equals(key, that.key)) return false; + if (!java.util.Objects.equals(timeAdded, that.timeAdded)) return false; + if (!java.util.Objects.equals(value, that.value)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(effect, key, timeAdded, value, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (effect != null) { sb.append("effect:"); sb.append(effect + ","); } + if (key != null) { sb.append("key:"); sb.append(key + ","); } + if (timeAdded != null) { sb.append("timeAdded:"); sb.append(timeAdded + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleBuilder.java new file mode 100644 index 0000000000..539155d567 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceTaintRuleBuilder extends V1alpha3DeviceTaintRuleFluent implements VisitableBuilder{ + public V1alpha3DeviceTaintRuleBuilder() { + this(new V1alpha3DeviceTaintRule()); + } + + public V1alpha3DeviceTaintRuleBuilder(V1alpha3DeviceTaintRuleFluent fluent) { + this(fluent, new V1alpha3DeviceTaintRule()); + } + + public V1alpha3DeviceTaintRuleBuilder(V1alpha3DeviceTaintRuleFluent fluent,V1alpha3DeviceTaintRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceTaintRuleBuilder(V1alpha3DeviceTaintRule instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceTaintRuleFluent fluent; + + public V1alpha3DeviceTaintRule build() { + V1alpha3DeviceTaintRule buildable = new V1alpha3DeviceTaintRule(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleFluent.java new file mode 100644 index 0000000000..42d71734d6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceTaintRuleFluent> extends BaseFluent{ + public V1alpha3DeviceTaintRuleFluent() { + } + + public V1alpha3DeviceTaintRuleFluent(V1alpha3DeviceTaintRule instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha3DeviceTaintRuleSpecBuilder spec; + + protected void copyInstance(V1alpha3DeviceTaintRule instance) { + instance = (instance != null ? instance : new V1alpha3DeviceTaintRule()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1alpha3DeviceTaintRuleSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1alpha3DeviceTaintRuleSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha3DeviceTaintRuleSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha3DeviceTaintRuleSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha3DeviceTaintRuleSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1alpha3DeviceTaintRuleSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3DeviceTaintRuleFluent that = (V1alpha3DeviceTaintRuleFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1alpha3DeviceTaintRuleFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1alpha3DeviceTaintRuleSpecFluent> implements Nested{ + SpecNested(V1alpha3DeviceTaintRuleSpec item) { + this.builder = new V1alpha3DeviceTaintRuleSpecBuilder(this, item); + } + V1alpha3DeviceTaintRuleSpecBuilder builder; + + public N and() { + return (N) V1alpha3DeviceTaintRuleFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListBuilder.java new file mode 100644 index 0000000000..6d64365e75 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceTaintRuleListBuilder extends V1alpha3DeviceTaintRuleListFluent implements VisitableBuilder{ + public V1alpha3DeviceTaintRuleListBuilder() { + this(new V1alpha3DeviceTaintRuleList()); + } + + public V1alpha3DeviceTaintRuleListBuilder(V1alpha3DeviceTaintRuleListFluent fluent) { + this(fluent, new V1alpha3DeviceTaintRuleList()); + } + + public V1alpha3DeviceTaintRuleListBuilder(V1alpha3DeviceTaintRuleListFluent fluent,V1alpha3DeviceTaintRuleList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceTaintRuleListBuilder(V1alpha3DeviceTaintRuleList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceTaintRuleListFluent fluent; + + public V1alpha3DeviceTaintRuleList build() { + V1alpha3DeviceTaintRuleList buildable = new V1alpha3DeviceTaintRuleList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListFluent.java new file mode 100644 index 0000000000..3b18272e47 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceTaintRuleListFluent> extends BaseFluent{ + public V1alpha3DeviceTaintRuleListFluent() { + } + + public V1alpha3DeviceTaintRuleListFluent(V1alpha3DeviceTaintRuleList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1alpha3DeviceTaintRuleList instance) { + instance = (instance != null ? instance : new V1alpha3DeviceTaintRuleList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1alpha3DeviceTaintRule item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1alpha3DeviceTaintRule item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRule... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha3DeviceTaintRule item : items) {V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha3DeviceTaintRule item : items) {V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRule... items) { + if (this.items == null) return (A)this; + for (V1alpha3DeviceTaintRule item : items) {V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1alpha3DeviceTaintRule item : items) {V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha3DeviceTaintRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1alpha3DeviceTaintRule buildItem(int index) { + return this.items.get(index).build(); + } + + public V1alpha3DeviceTaintRule buildFirstItem() { + return this.items.get(0).build(); + } + + public V1alpha3DeviceTaintRule buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1alpha3DeviceTaintRule buildMatchingItem(Predicate predicate) { + for (V1alpha3DeviceTaintRuleBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha3DeviceTaintRuleBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha3DeviceTaintRule item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRule... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha3DeviceTaintRule item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha3DeviceTaintRule item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1alpha3DeviceTaintRule item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3DeviceTaintRuleListFluent that = (V1alpha3DeviceTaintRuleListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1alpha3DeviceTaintRuleFluent> implements Nested{ + ItemsNested(int index,V1alpha3DeviceTaintRule item) { + this.index = index; + this.builder = new V1alpha3DeviceTaintRuleBuilder(this, item); + } + V1alpha3DeviceTaintRuleBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceTaintRuleListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1alpha3DeviceTaintRuleListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecBuilder.java new file mode 100644 index 0000000000..b4c91f1584 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceTaintRuleSpecBuilder extends V1alpha3DeviceTaintRuleSpecFluent implements VisitableBuilder{ + public V1alpha3DeviceTaintRuleSpecBuilder() { + this(new V1alpha3DeviceTaintRuleSpec()); + } + + public V1alpha3DeviceTaintRuleSpecBuilder(V1alpha3DeviceTaintRuleSpecFluent fluent) { + this(fluent, new V1alpha3DeviceTaintRuleSpec()); + } + + public V1alpha3DeviceTaintRuleSpecBuilder(V1alpha3DeviceTaintRuleSpecFluent fluent,V1alpha3DeviceTaintRuleSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceTaintRuleSpecBuilder(V1alpha3DeviceTaintRuleSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceTaintRuleSpecFluent fluent; + + public V1alpha3DeviceTaintRuleSpec build() { + V1alpha3DeviceTaintRuleSpec buildable = new V1alpha3DeviceTaintRuleSpec(); + buildable.setDeviceSelector(fluent.buildDeviceSelector()); + buildable.setTaint(fluent.buildTaint()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecFluent.java new file mode 100644 index 0000000000..e1442bfe7c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecFluent.java @@ -0,0 +1,166 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceTaintRuleSpecFluent> extends BaseFluent{ + public V1alpha3DeviceTaintRuleSpecFluent() { + } + + public V1alpha3DeviceTaintRuleSpecFluent(V1alpha3DeviceTaintRuleSpec instance) { + this.copyInstance(instance); + } + private V1alpha3DeviceTaintSelectorBuilder deviceSelector; + private V1alpha3DeviceTaintBuilder taint; + + protected void copyInstance(V1alpha3DeviceTaintRuleSpec instance) { + instance = (instance != null ? instance : new V1alpha3DeviceTaintRuleSpec()); + if (instance != null) { + this.withDeviceSelector(instance.getDeviceSelector()); + this.withTaint(instance.getTaint()); + } + } + + public V1alpha3DeviceTaintSelector buildDeviceSelector() { + return this.deviceSelector != null ? this.deviceSelector.build() : null; + } + + public A withDeviceSelector(V1alpha3DeviceTaintSelector deviceSelector) { + this._visitables.remove("deviceSelector"); + if (deviceSelector != null) { + this.deviceSelector = new V1alpha3DeviceTaintSelectorBuilder(deviceSelector); + this._visitables.get("deviceSelector").add(this.deviceSelector); + } else { + this.deviceSelector = null; + this._visitables.get("deviceSelector").remove(this.deviceSelector); + } + return (A) this; + } + + public boolean hasDeviceSelector() { + return this.deviceSelector != null; + } + + public DeviceSelectorNested withNewDeviceSelector() { + return new DeviceSelectorNested(null); + } + + public DeviceSelectorNested withNewDeviceSelectorLike(V1alpha3DeviceTaintSelector item) { + return new DeviceSelectorNested(item); + } + + public DeviceSelectorNested editDeviceSelector() { + return withNewDeviceSelectorLike(java.util.Optional.ofNullable(buildDeviceSelector()).orElse(null)); + } + + public DeviceSelectorNested editOrNewDeviceSelector() { + return withNewDeviceSelectorLike(java.util.Optional.ofNullable(buildDeviceSelector()).orElse(new V1alpha3DeviceTaintSelectorBuilder().build())); + } + + public DeviceSelectorNested editOrNewDeviceSelectorLike(V1alpha3DeviceTaintSelector item) { + return withNewDeviceSelectorLike(java.util.Optional.ofNullable(buildDeviceSelector()).orElse(item)); + } + + public V1alpha3DeviceTaint buildTaint() { + return this.taint != null ? this.taint.build() : null; + } + + public A withTaint(V1alpha3DeviceTaint taint) { + this._visitables.remove("taint"); + if (taint != null) { + this.taint = new V1alpha3DeviceTaintBuilder(taint); + this._visitables.get("taint").add(this.taint); + } else { + this.taint = null; + this._visitables.get("taint").remove(this.taint); + } + return (A) this; + } + + public boolean hasTaint() { + return this.taint != null; + } + + public TaintNested withNewTaint() { + return new TaintNested(null); + } + + public TaintNested withNewTaintLike(V1alpha3DeviceTaint item) { + return new TaintNested(item); + } + + public TaintNested editTaint() { + return withNewTaintLike(java.util.Optional.ofNullable(buildTaint()).orElse(null)); + } + + public TaintNested editOrNewTaint() { + return withNewTaintLike(java.util.Optional.ofNullable(buildTaint()).orElse(new V1alpha3DeviceTaintBuilder().build())); + } + + public TaintNested editOrNewTaintLike(V1alpha3DeviceTaint item) { + return withNewTaintLike(java.util.Optional.ofNullable(buildTaint()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3DeviceTaintRuleSpecFluent that = (V1alpha3DeviceTaintRuleSpecFluent) o; + if (!java.util.Objects.equals(deviceSelector, that.deviceSelector)) return false; + if (!java.util.Objects.equals(taint, that.taint)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(deviceSelector, taint, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (deviceSelector != null) { sb.append("deviceSelector:"); sb.append(deviceSelector + ","); } + if (taint != null) { sb.append("taint:"); sb.append(taint); } + sb.append("}"); + return sb.toString(); + } + public class DeviceSelectorNested extends V1alpha3DeviceTaintSelectorFluent> implements Nested{ + DeviceSelectorNested(V1alpha3DeviceTaintSelector item) { + this.builder = new V1alpha3DeviceTaintSelectorBuilder(this, item); + } + V1alpha3DeviceTaintSelectorBuilder builder; + + public N and() { + return (N) V1alpha3DeviceTaintRuleSpecFluent.this.withDeviceSelector(builder.build()); + } + + public N endDeviceSelector() { + return and(); + } + + + } + public class TaintNested extends V1alpha3DeviceTaintFluent> implements Nested{ + TaintNested(V1alpha3DeviceTaint item) { + this.builder = new V1alpha3DeviceTaintBuilder(this, item); + } + V1alpha3DeviceTaintBuilder builder; + + public N and() { + return (N) V1alpha3DeviceTaintRuleSpecFluent.this.withTaint(builder.build()); + } + + public N endTaint() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorBuilder.java new file mode 100644 index 0000000000..e6c5728ce9 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceTaintSelectorBuilder extends V1alpha3DeviceTaintSelectorFluent implements VisitableBuilder{ + public V1alpha3DeviceTaintSelectorBuilder() { + this(new V1alpha3DeviceTaintSelector()); + } + + public V1alpha3DeviceTaintSelectorBuilder(V1alpha3DeviceTaintSelectorFluent fluent) { + this(fluent, new V1alpha3DeviceTaintSelector()); + } + + public V1alpha3DeviceTaintSelectorBuilder(V1alpha3DeviceTaintSelectorFluent fluent,V1alpha3DeviceTaintSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceTaintSelectorBuilder(V1alpha3DeviceTaintSelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceTaintSelectorFluent fluent; + + public V1alpha3DeviceTaintSelector build() { + V1alpha3DeviceTaintSelector buildable = new V1alpha3DeviceTaintSelector(); + buildable.setDevice(fluent.getDevice()); + buildable.setDeviceClassName(fluent.getDeviceClassName()); + buildable.setDriver(fluent.getDriver()); + buildable.setPool(fluent.getPool()); + buildable.setSelectors(fluent.buildSelectors()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorFluent.java new file mode 100644 index 0000000000..bf0c6708bc --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorFluent.java @@ -0,0 +1,305 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceTaintSelectorFluent> extends BaseFluent{ + public V1alpha3DeviceTaintSelectorFluent() { + } + + public V1alpha3DeviceTaintSelectorFluent(V1alpha3DeviceTaintSelector instance) { + this.copyInstance(instance); + } + private String device; + private String deviceClassName; + private String driver; + private String pool; + private ArrayList selectors; + + protected void copyInstance(V1alpha3DeviceTaintSelector instance) { + instance = (instance != null ? instance : new V1alpha3DeviceTaintSelector()); + if (instance != null) { + this.withDevice(instance.getDevice()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withDriver(instance.getDriver()); + this.withPool(instance.getPool()); + this.withSelectors(instance.getSelectors()); + } + } + + public String getDevice() { + return this.device; + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public boolean hasDevice() { + return this.device != null; + } + + public String getDeviceClassName() { + return this.deviceClassName; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public String getDriver() { + return this.driver; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public String getPool() { + return this.pool; + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public boolean hasPool() { + return this.pool != null; + } + + public A addToSelectors(int index,V1alpha3DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } + return (A)this; + } + + public A setToSelectors(int index,V1alpha3DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A)this; + } + + public A addToSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A removeFromSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... items) { + if (this.selectors == null) return (A)this; + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) return (A)this; + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) return (A) this; + final Iterator each = selectors.iterator(); + final List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1alpha3DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1alpha3DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public V1alpha3DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1alpha3DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1alpha3DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1alpha3DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1alpha3DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1alpha3DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1alpha3DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public boolean hasSelectors() { + return this.selectors != null && !this.selectors.isEmpty(); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1alpha3DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1alpha3DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); + return setNewSelectorLike(0, buildSelector(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1alpha3DeviceSelectorFluent> implements Nested{ + SelectorsNested(int index,V1alpha3DeviceSelector item) { + this.index = index; + this.builder = new V1alpha3DeviceSelectorBuilder(this, item); + } + V1alpha3DeviceSelectorBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceTaintSelectorFluent.this.setToSelectors(index,builder.build()); + } + + public N endSelector() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTolerationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTolerationBuilder.java new file mode 100644 index 0000000000..cb64c89939 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTolerationBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceTolerationBuilder extends V1alpha3DeviceTolerationFluent implements VisitableBuilder{ + public V1alpha3DeviceTolerationBuilder() { + this(new V1alpha3DeviceToleration()); + } + + public V1alpha3DeviceTolerationBuilder(V1alpha3DeviceTolerationFluent fluent) { + this(fluent, new V1alpha3DeviceToleration()); + } + + public V1alpha3DeviceTolerationBuilder(V1alpha3DeviceTolerationFluent fluent,V1alpha3DeviceToleration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceTolerationBuilder(V1alpha3DeviceToleration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceTolerationFluent fluent; + + public V1alpha3DeviceToleration build() { + V1alpha3DeviceToleration buildable = new V1alpha3DeviceToleration(); + buildable.setEffect(fluent.getEffect()); + buildable.setKey(fluent.getKey()); + buildable.setOperator(fluent.getOperator()); + buildable.setTolerationSeconds(fluent.getTolerationSeconds()); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTolerationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTolerationFluent.java new file mode 100644 index 0000000000..fbff68b239 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTolerationFluent.java @@ -0,0 +1,132 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceTolerationFluent> extends BaseFluent{ + public V1alpha3DeviceTolerationFluent() { + } + + public V1alpha3DeviceTolerationFluent(V1alpha3DeviceToleration instance) { + this.copyInstance(instance); + } + private String effect; + private String key; + private String operator; + private Long tolerationSeconds; + private String value; + + protected void copyInstance(V1alpha3DeviceToleration instance) { + instance = (instance != null ? instance : new V1alpha3DeviceToleration()); + if (instance != null) { + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withOperator(instance.getOperator()); + this.withTolerationSeconds(instance.getTolerationSeconds()); + this.withValue(instance.getValue()); + } + } + + public String getEffect() { + return this.effect; + } + + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public String getKey() { + return this.key; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public boolean hasKey() { + return this.key != null; + } + + public String getOperator() { + return this.operator; + } + + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public boolean hasOperator() { + return this.operator != null; + } + + public Long getTolerationSeconds() { + return this.tolerationSeconds; + } + + public A withTolerationSeconds(Long tolerationSeconds) { + this.tolerationSeconds = tolerationSeconds; + return (A) this; + } + + public boolean hasTolerationSeconds() { + return this.tolerationSeconds != null; + } + + public String getValue() { + return this.value; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3DeviceTolerationFluent that = (V1alpha3DeviceTolerationFluent) o; + if (!java.util.Objects.equals(effect, that.effect)) return false; + if (!java.util.Objects.equals(key, that.key)) return false; + if (!java.util.Objects.equals(operator, that.operator)) return false; + if (!java.util.Objects.equals(tolerationSeconds, that.tolerationSeconds)) return false; + if (!java.util.Objects.equals(value, that.value)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(effect, key, operator, tolerationSeconds, value, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (effect != null) { sb.append("effect:"); sb.append(effect + ","); } + if (key != null) { sb.append("key:"); sb.append(key + ","); } + if (operator != null) { sb.append("operator:"); sb.append(operator + ","); } + if (tolerationSeconds != null) { sb.append("tolerationSeconds:"); sb.append(tolerationSeconds + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimListFluent.java index 224c2c3a9e..b75f81a97f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1alpha3ResourceClaim item) { if (this.items == null) {this.items = new ArrayList();} V1alpha3ResourceClaimBuilder builder = new V1alpha3ResourceClaimBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1alpha3ResourceClaim item) { if (this.items == null) {this.items = new ArrayList();} V1alpha3ResourceClaimBuilder builder = new V1alpha3ResourceClaimBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatusFluent.java index c9b17c4c38..efa2caae5a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatusFluent.java @@ -79,14 +79,26 @@ public AllocationNested editOrNewAllocationLike(V1alpha3AllocationResult item public A addToDevices(int index,V1alpha3AllocatedDeviceStatus item) { if (this.devices == null) {this.devices = new ArrayList();} V1alpha3AllocatedDeviceStatusBuilder builder = new V1alpha3AllocatedDeviceStatusBuilder(item); - if (index < 0 || index >= devices.size()) { _visitables.get("devices").add(builder); devices.add(builder); } else { _visitables.get("devices").add(index, builder); devices.add(index, builder);} + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.add(index, builder); + } return (A)this; } public A setToDevices(int index,V1alpha3AllocatedDeviceStatus item) { if (this.devices == null) {this.devices = new ArrayList();} V1alpha3AllocatedDeviceStatusBuilder builder = new V1alpha3AllocatedDeviceStatusBuilder(item); - if (index < 0 || index >= devices.size()) { _visitables.get("devices").add(builder); devices.add(builder); } else { _visitables.get("devices").set(index, builder); devices.set(index, builder);} + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.set(index, builder); + } return (A)this; } @@ -230,14 +242,26 @@ public DevicesNested editMatchingDevice(Predicate();} V1alpha3ResourceClaimConsumerReferenceBuilder builder = new V1alpha3ResourceClaimConsumerReferenceBuilder(item); - if (index < 0 || index >= reservedFor.size()) { _visitables.get("reservedFor").add(builder); reservedFor.add(builder); } else { _visitables.get("reservedFor").add(index, builder); reservedFor.add(index, builder);} + if (index < 0 || index >= reservedFor.size()) { + _visitables.get("reservedFor").add(builder); + reservedFor.add(builder); + } else { + _visitables.get("reservedFor").add(builder); + reservedFor.add(index, builder); + } return (A)this; } public A setToReservedFor(int index,V1alpha3ResourceClaimConsumerReference item) { if (this.reservedFor == null) {this.reservedFor = new ArrayList();} V1alpha3ResourceClaimConsumerReferenceBuilder builder = new V1alpha3ResourceClaimConsumerReferenceBuilder(item); - if (index < 0 || index >= reservedFor.size()) { _visitables.get("reservedFor").add(builder); reservedFor.add(builder); } else { _visitables.get("reservedFor").set(index, builder); reservedFor.set(index, builder);} + if (index < 0 || index >= reservedFor.size()) { + _visitables.get("reservedFor").add(builder); + reservedFor.add(builder); + } else { + _visitables.get("reservedFor").add(builder); + reservedFor.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateListFluent.java index 23607eb725..c7b6189ea2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1alpha3ResourceClaimTemplate item) { if (this.items == null) {this.items = new ArrayList();} V1alpha3ResourceClaimTemplateBuilder builder = new V1alpha3ResourceClaimTemplateBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1alpha3ResourceClaimTemplate item) { if (this.items == null) {this.items = new ArrayList();} V1alpha3ResourceClaimTemplateBuilder builder = new V1alpha3ResourceClaimTemplateBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceListFluent.java index e4f3323d82..e63bc25e6b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1alpha3ResourceSlice item) { if (this.items == null) {this.items = new ArrayList();} V1alpha3ResourceSliceBuilder builder = new V1alpha3ResourceSliceBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1alpha3ResourceSlice item) { if (this.items == null) {this.items = new ArrayList();} V1alpha3ResourceSliceBuilder builder = new V1alpha3ResourceSliceBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpecBuilder.java index 4151cac835..c325d7e04e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpecBuilder.java @@ -28,7 +28,9 @@ public V1alpha3ResourceSliceSpec build() { buildable.setDriver(fluent.getDriver()); buildable.setNodeName(fluent.getNodeName()); buildable.setNodeSelector(fluent.buildNodeSelector()); + buildable.setPerDeviceNodeSelection(fluent.getPerDeviceNodeSelection()); buildable.setPool(fluent.buildPool()); + buildable.setSharedCounters(fluent.buildSharedCounters()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpecFluent.java index 59dd321f91..f10bb6987b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpecFluent.java @@ -29,7 +29,9 @@ public V1alpha3ResourceSliceSpecFluent(V1alpha3ResourceSliceSpec instance) { private String driver; private String nodeName; private V1NodeSelectorBuilder nodeSelector; + private Boolean perDeviceNodeSelection; private V1alpha3ResourcePoolBuilder pool; + private ArrayList sharedCounters; protected void copyInstance(V1alpha3ResourceSliceSpec instance) { instance = (instance != null ? instance : new V1alpha3ResourceSliceSpec()); @@ -39,7 +41,9 @@ protected void copyInstance(V1alpha3ResourceSliceSpec instance) { this.withDriver(instance.getDriver()); this.withNodeName(instance.getNodeName()); this.withNodeSelector(instance.getNodeSelector()); + this.withPerDeviceNodeSelection(instance.getPerDeviceNodeSelection()); this.withPool(instance.getPool()); + this.withSharedCounters(instance.getSharedCounters()); } } @@ -59,14 +63,26 @@ public boolean hasAllNodes() { public A addToDevices(int index,V1alpha3Device item) { if (this.devices == null) {this.devices = new ArrayList();} V1alpha3DeviceBuilder builder = new V1alpha3DeviceBuilder(item); - if (index < 0 || index >= devices.size()) { _visitables.get("devices").add(builder); devices.add(builder); } else { _visitables.get("devices").add(index, builder); devices.add(index, builder);} + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.add(index, builder); + } return (A)this; } public A setToDevices(int index,V1alpha3Device item) { if (this.devices == null) {this.devices = new ArrayList();} V1alpha3DeviceBuilder builder = new V1alpha3DeviceBuilder(item); - if (index < 0 || index >= devices.size()) { _visitables.get("devices").add(builder); devices.add(builder); } else { _visitables.get("devices").set(index, builder); devices.set(index, builder);} + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.set(index, builder); + } return (A)this; } @@ -273,6 +289,19 @@ public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); } + public Boolean getPerDeviceNodeSelection() { + return this.perDeviceNodeSelection; + } + + public A withPerDeviceNodeSelection(Boolean perDeviceNodeSelection) { + this.perDeviceNodeSelection = perDeviceNodeSelection; + return (A) this; + } + + public boolean hasPerDeviceNodeSelection() { + return this.perDeviceNodeSelection != null; + } + public V1alpha3ResourcePool buildPool() { return this.pool != null ? this.pool.build() : null; } @@ -313,6 +342,169 @@ public PoolNested editOrNewPoolLike(V1alpha3ResourcePool item) { return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(item)); } + public A addToSharedCounters(int index,V1alpha3CounterSet item) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + V1alpha3CounterSetBuilder builder = new V1alpha3CounterSetBuilder(item); + if (index < 0 || index >= sharedCounters.size()) { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(builder); + } else { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(index, builder); + } + return (A)this; + } + + public A setToSharedCounters(int index,V1alpha3CounterSet item) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + V1alpha3CounterSetBuilder builder = new V1alpha3CounterSetBuilder(item); + if (index < 0 || index >= sharedCounters.size()) { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(builder); + } else { + _visitables.get("sharedCounters").add(builder); + sharedCounters.set(index, builder); + } + return (A)this; + } + + public A addToSharedCounters(io.kubernetes.client.openapi.models.V1alpha3CounterSet... items) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + for (V1alpha3CounterSet item : items) {V1alpha3CounterSetBuilder builder = new V1alpha3CounterSetBuilder(item);_visitables.get("sharedCounters").add(builder);this.sharedCounters.add(builder);} return (A)this; + } + + public A addAllToSharedCounters(Collection items) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + for (V1alpha3CounterSet item : items) {V1alpha3CounterSetBuilder builder = new V1alpha3CounterSetBuilder(item);_visitables.get("sharedCounters").add(builder);this.sharedCounters.add(builder);} return (A)this; + } + + public A removeFromSharedCounters(io.kubernetes.client.openapi.models.V1alpha3CounterSet... items) { + if (this.sharedCounters == null) return (A)this; + for (V1alpha3CounterSet item : items) {V1alpha3CounterSetBuilder builder = new V1alpha3CounterSetBuilder(item);_visitables.get("sharedCounters").remove(builder); this.sharedCounters.remove(builder);} return (A)this; + } + + public A removeAllFromSharedCounters(Collection items) { + if (this.sharedCounters == null) return (A)this; + for (V1alpha3CounterSet item : items) {V1alpha3CounterSetBuilder builder = new V1alpha3CounterSetBuilder(item);_visitables.get("sharedCounters").remove(builder); this.sharedCounters.remove(builder);} return (A)this; + } + + public A removeMatchingFromSharedCounters(Predicate predicate) { + if (sharedCounters == null) return (A) this; + final Iterator each = sharedCounters.iterator(); + final List visitables = _visitables.get("sharedCounters"); + while (each.hasNext()) { + V1alpha3CounterSetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSharedCounters() { + return this.sharedCounters != null ? build(sharedCounters) : null; + } + + public V1alpha3CounterSet buildSharedCounter(int index) { + return this.sharedCounters.get(index).build(); + } + + public V1alpha3CounterSet buildFirstSharedCounter() { + return this.sharedCounters.get(0).build(); + } + + public V1alpha3CounterSet buildLastSharedCounter() { + return this.sharedCounters.get(sharedCounters.size() - 1).build(); + } + + public V1alpha3CounterSet buildMatchingSharedCounter(Predicate predicate) { + for (V1alpha3CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSharedCounter(Predicate predicate) { + for (V1alpha3CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSharedCounters(List sharedCounters) { + if (this.sharedCounters != null) { + this._visitables.get("sharedCounters").clear(); + } + if (sharedCounters != null) { + this.sharedCounters = new ArrayList(); + for (V1alpha3CounterSet item : sharedCounters) { + this.addToSharedCounters(item); + } + } else { + this.sharedCounters = null; + } + return (A) this; + } + + public A withSharedCounters(io.kubernetes.client.openapi.models.V1alpha3CounterSet... sharedCounters) { + if (this.sharedCounters != null) { + this.sharedCounters.clear(); + _visitables.remove("sharedCounters"); + } + if (sharedCounters != null) { + for (V1alpha3CounterSet item : sharedCounters) { + this.addToSharedCounters(item); + } + } + return (A) this; + } + + public boolean hasSharedCounters() { + return this.sharedCounters != null && !this.sharedCounters.isEmpty(); + } + + public SharedCountersNested addNewSharedCounter() { + return new SharedCountersNested(-1, null); + } + + public SharedCountersNested addNewSharedCounterLike(V1alpha3CounterSet item) { + return new SharedCountersNested(-1, item); + } + + public SharedCountersNested setNewSharedCounterLike(int index,V1alpha3CounterSet item) { + return new SharedCountersNested(index, item); + } + + public SharedCountersNested editSharedCounter(int index) { + if (sharedCounters.size() <= index) throw new RuntimeException("Can't edit sharedCounters. Index exceeds size."); + return setNewSharedCounterLike(index, buildSharedCounter(index)); + } + + public SharedCountersNested editFirstSharedCounter() { + if (sharedCounters.size() == 0) throw new RuntimeException("Can't edit first sharedCounters. The list is empty."); + return setNewSharedCounterLike(0, buildSharedCounter(0)); + } + + public SharedCountersNested editLastSharedCounter() { + int index = sharedCounters.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last sharedCounters. The list is empty."); + return setNewSharedCounterLike(index, buildSharedCounter(index)); + } + + public SharedCountersNested editMatchingSharedCounter(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1alpha3DeviceFluent> implements Nested{ DevicesNested(int index,V1alpha3Device item) { this.index = index; @@ -396,6 +596,24 @@ public N endPool() { } + } + public class SharedCountersNested extends V1alpha3CounterSetFluent> implements Nested{ + SharedCountersNested(int index,V1alpha3CounterSet item) { + this.index = index; + this.builder = new V1alpha3CounterSetBuilder(this, item); + } + V1alpha3CounterSetBuilder builder; + int index; + + public N and() { + return (N) V1alpha3ResourceSliceSpecFluent.this.setToSharedCounters(index,builder.build()); + } + + public N endSharedCounter() { + return and(); + } + + } } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusFluent.java index 65c361677a..b9fd37913f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusFluent.java @@ -45,14 +45,26 @@ protected void copyInstance(V1beta1AllocatedDeviceStatus instance) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceBuilder.java index 1347f5f488..00997a4d0b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceBuilder.java @@ -23,8 +23,13 @@ public V1beta1BasicDeviceBuilder(V1beta1BasicDevice instance) { public V1beta1BasicDevice build() { V1beta1BasicDevice buildable = new V1beta1BasicDevice(); + buildable.setAllNodes(fluent.getAllNodes()); buildable.setAttributes(fluent.getAttributes()); buildable.setCapacity(fluent.getCapacity()); + buildable.setConsumesCounters(fluent.buildConsumesCounters()); + buildable.setNodeName(fluent.getNodeName()); + buildable.setNodeSelector(fluent.buildNodeSelector()); + buildable.setTaints(fluent.buildTaints()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceFluent.java index 2e024fcdea..8a25f698e7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceFluent.java @@ -1,11 +1,19 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import java.util.Collection; import java.lang.Object; -import java.lang.String; import java.util.Map; -import java.util.LinkedHashMap; /** * Generated @@ -18,17 +26,40 @@ public V1beta1BasicDeviceFluent() { public V1beta1BasicDeviceFluent(V1beta1BasicDevice instance) { this.copyInstance(instance); } + private Boolean allNodes; private Map attributes; private Map capacity; + private ArrayList consumesCounters; + private String nodeName; + private V1NodeSelectorBuilder nodeSelector; + private ArrayList taints; protected void copyInstance(V1beta1BasicDevice instance) { instance = (instance != null ? instance : new V1beta1BasicDevice()); if (instance != null) { + this.withAllNodes(instance.getAllNodes()); this.withAttributes(instance.getAttributes()); this.withCapacity(instance.getCapacity()); + this.withConsumesCounters(instance.getConsumesCounters()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withTaints(instance.getTaints()); } } + public Boolean getAllNodes() { + return this.allNodes; + } + + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + + public boolean hasAllNodes() { + return this.allNodes != null; + } + public A addToAttributes(String key,V1beta1DeviceAttribute value) { if(this.attributes == null && key != null && value != null) { this.attributes = new LinkedHashMap(); } if(key != null && value != null) {this.attributes.put(key, value);} return (A)this; @@ -103,28 +134,472 @@ public boolean hasCapacity() { return this.capacity != null; } + public A addToConsumesCounters(int index,V1beta1DeviceCounterConsumption item) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); + if (index < 0 || index >= consumesCounters.size()) { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(builder); + } else { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(index, builder); + } + return (A)this; + } + + public A setToConsumesCounters(int index,V1beta1DeviceCounterConsumption item) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); + if (index < 0 || index >= consumesCounters.size()) { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(builder); + } else { + _visitables.get("consumesCounters").add(builder); + consumesCounters.set(index, builder); + } + return (A)this; + } + + public A addToConsumesCounters(io.kubernetes.client.openapi.models.V1beta1DeviceCounterConsumption... items) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + for (V1beta1DeviceCounterConsumption item : items) {V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").add(builder);this.consumesCounters.add(builder);} return (A)this; + } + + public A addAllToConsumesCounters(Collection items) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + for (V1beta1DeviceCounterConsumption item : items) {V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").add(builder);this.consumesCounters.add(builder);} return (A)this; + } + + public A removeFromConsumesCounters(io.kubernetes.client.openapi.models.V1beta1DeviceCounterConsumption... items) { + if (this.consumesCounters == null) return (A)this; + for (V1beta1DeviceCounterConsumption item : items) {V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").remove(builder); this.consumesCounters.remove(builder);} return (A)this; + } + + public A removeAllFromConsumesCounters(Collection items) { + if (this.consumesCounters == null) return (A)this; + for (V1beta1DeviceCounterConsumption item : items) {V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").remove(builder); this.consumesCounters.remove(builder);} return (A)this; + } + + public A removeMatchingFromConsumesCounters(Predicate predicate) { + if (consumesCounters == null) return (A) this; + final Iterator each = consumesCounters.iterator(); + final List visitables = _visitables.get("consumesCounters"); + while (each.hasNext()) { + V1beta1DeviceCounterConsumptionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConsumesCounters() { + return this.consumesCounters != null ? build(consumesCounters) : null; + } + + public V1beta1DeviceCounterConsumption buildConsumesCounter(int index) { + return this.consumesCounters.get(index).build(); + } + + public V1beta1DeviceCounterConsumption buildFirstConsumesCounter() { + return this.consumesCounters.get(0).build(); + } + + public V1beta1DeviceCounterConsumption buildLastConsumesCounter() { + return this.consumesCounters.get(consumesCounters.size() - 1).build(); + } + + public V1beta1DeviceCounterConsumption buildMatchingConsumesCounter(Predicate predicate) { + for (V1beta1DeviceCounterConsumptionBuilder item : consumesCounters) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConsumesCounter(Predicate predicate) { + for (V1beta1DeviceCounterConsumptionBuilder item : consumesCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConsumesCounters(List consumesCounters) { + if (this.consumesCounters != null) { + this._visitables.get("consumesCounters").clear(); + } + if (consumesCounters != null) { + this.consumesCounters = new ArrayList(); + for (V1beta1DeviceCounterConsumption item : consumesCounters) { + this.addToConsumesCounters(item); + } + } else { + this.consumesCounters = null; + } + return (A) this; + } + + public A withConsumesCounters(io.kubernetes.client.openapi.models.V1beta1DeviceCounterConsumption... consumesCounters) { + if (this.consumesCounters != null) { + this.consumesCounters.clear(); + _visitables.remove("consumesCounters"); + } + if (consumesCounters != null) { + for (V1beta1DeviceCounterConsumption item : consumesCounters) { + this.addToConsumesCounters(item); + } + } + return (A) this; + } + + public boolean hasConsumesCounters() { + return this.consumesCounters != null && !this.consumesCounters.isEmpty(); + } + + public ConsumesCountersNested addNewConsumesCounter() { + return new ConsumesCountersNested(-1, null); + } + + public ConsumesCountersNested addNewConsumesCounterLike(V1beta1DeviceCounterConsumption item) { + return new ConsumesCountersNested(-1, item); + } + + public ConsumesCountersNested setNewConsumesCounterLike(int index,V1beta1DeviceCounterConsumption item) { + return new ConsumesCountersNested(index, item); + } + + public ConsumesCountersNested editConsumesCounter(int index) { + if (consumesCounters.size() <= index) throw new RuntimeException("Can't edit consumesCounters. Index exceeds size."); + return setNewConsumesCounterLike(index, buildConsumesCounter(index)); + } + + public ConsumesCountersNested editFirstConsumesCounter() { + if (consumesCounters.size() == 0) throw new RuntimeException("Can't edit first consumesCounters. The list is empty."); + return setNewConsumesCounterLike(0, buildConsumesCounter(0)); + } + + public ConsumesCountersNested editLastConsumesCounter() { + int index = consumesCounters.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last consumesCounters. The list is empty."); + return setNewConsumesCounterLike(index, buildConsumesCounter(index)); + } + + public ConsumesCountersNested editMatchingConsumesCounter(Predicate predicate) { + int index = -1; + for (int i=0;i withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public NodeSelectorNested editNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); + } + + public A addToTaints(int index,V1beta1DeviceTaint item) { + if (this.taints == null) {this.taints = new ArrayList();} + V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.add(index, builder); + } + return (A)this; + } + + public A setToTaints(int index,V1beta1DeviceTaint item) { + if (this.taints == null) {this.taints = new ArrayList();} + V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.set(index, builder); + } + return (A)this; + } + + public A addToTaints(io.kubernetes.client.openapi.models.V1beta1DeviceTaint... items) { + if (this.taints == null) {this.taints = new ArrayList();} + for (V1beta1DeviceTaint item : items) {V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; + } + + public A addAllToTaints(Collection items) { + if (this.taints == null) {this.taints = new ArrayList();} + for (V1beta1DeviceTaint item : items) {V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; + } + + public A removeFromTaints(io.kubernetes.client.openapi.models.V1beta1DeviceTaint... items) { + if (this.taints == null) return (A)this; + for (V1beta1DeviceTaint item : items) {V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item);_visitables.get("taints").remove(builder); this.taints.remove(builder);} return (A)this; + } + + public A removeAllFromTaints(Collection items) { + if (this.taints == null) return (A)this; + for (V1beta1DeviceTaint item : items) {V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item);_visitables.get("taints").remove(builder); this.taints.remove(builder);} return (A)this; + } + + public A removeMatchingFromTaints(Predicate predicate) { + if (taints == null) return (A) this; + final Iterator each = taints.iterator(); + final List visitables = _visitables.get("taints"); + while (each.hasNext()) { + V1beta1DeviceTaintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTaints() { + return this.taints != null ? build(taints) : null; + } + + public V1beta1DeviceTaint buildTaint(int index) { + return this.taints.get(index).build(); + } + + public V1beta1DeviceTaint buildFirstTaint() { + return this.taints.get(0).build(); + } + + public V1beta1DeviceTaint buildLastTaint() { + return this.taints.get(taints.size() - 1).build(); + } + + public V1beta1DeviceTaint buildMatchingTaint(Predicate predicate) { + for (V1beta1DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingTaint(Predicate predicate) { + for (V1beta1DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTaints(List taints) { + if (this.taints != null) { + this._visitables.get("taints").clear(); + } + if (taints != null) { + this.taints = new ArrayList(); + for (V1beta1DeviceTaint item : taints) { + this.addToTaints(item); + } + } else { + this.taints = null; + } + return (A) this; + } + + public A withTaints(io.kubernetes.client.openapi.models.V1beta1DeviceTaint... taints) { + if (this.taints != null) { + this.taints.clear(); + _visitables.remove("taints"); + } + if (taints != null) { + for (V1beta1DeviceTaint item : taints) { + this.addToTaints(item); + } + } + return (A) this; + } + + public boolean hasTaints() { + return this.taints != null && !this.taints.isEmpty(); + } + + public TaintsNested addNewTaint() { + return new TaintsNested(-1, null); + } + + public TaintsNested addNewTaintLike(V1beta1DeviceTaint item) { + return new TaintsNested(-1, item); + } + + public TaintsNested setNewTaintLike(int index,V1beta1DeviceTaint item) { + return new TaintsNested(index, item); + } + + public TaintsNested editTaint(int index) { + if (taints.size() <= index) throw new RuntimeException("Can't edit taints. Index exceeds size."); + return setNewTaintLike(index, buildTaint(index)); + } + + public TaintsNested editFirstTaint() { + if (taints.size() == 0) throw new RuntimeException("Can't edit first taints. The list is empty."); + return setNewTaintLike(0, buildTaint(0)); + } + + public TaintsNested editLastTaint() { + int index = taints.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last taints. The list is empty."); + return setNewTaintLike(index, buildTaint(index)); + } + + public TaintsNested editMatchingTaint(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta1DeviceCounterConsumptionFluent> implements Nested{ + ConsumesCountersNested(int index,V1beta1DeviceCounterConsumption item) { + this.index = index; + this.builder = new V1beta1DeviceCounterConsumptionBuilder(this, item); + } + V1beta1DeviceCounterConsumptionBuilder builder; + int index; + + public N and() { + return (N) V1beta1BasicDeviceFluent.this.setToConsumesCounters(index,builder.build()); + } + + public N endConsumesCounter() { + return and(); + } + + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + V1NodeSelectorBuilder builder; + + public N and() { + return (N) V1beta1BasicDeviceFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + + } + public class TaintsNested extends V1beta1DeviceTaintFluent> implements Nested{ + TaintsNested(int index,V1beta1DeviceTaint item) { + this.index = index; + this.builder = new V1beta1DeviceTaintBuilder(this, item); + } + V1beta1DeviceTaintBuilder builder; + int index; + + public N and() { + return (N) V1beta1BasicDeviceFluent.this.setToTaints(index,builder.build()); + } + + public N endTaint() { + return and(); + } + + + } } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleBuilder.java new file mode 100644 index 0000000000..2113a6cbca --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ClusterTrustBundleBuilder extends V1beta1ClusterTrustBundleFluent implements VisitableBuilder{ + public V1beta1ClusterTrustBundleBuilder() { + this(new V1beta1ClusterTrustBundle()); + } + + public V1beta1ClusterTrustBundleBuilder(V1beta1ClusterTrustBundleFluent fluent) { + this(fluent, new V1beta1ClusterTrustBundle()); + } + + public V1beta1ClusterTrustBundleBuilder(V1beta1ClusterTrustBundleFluent fluent,V1beta1ClusterTrustBundle instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ClusterTrustBundleBuilder(V1beta1ClusterTrustBundle instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ClusterTrustBundleFluent fluent; + + public V1beta1ClusterTrustBundle build() { + V1beta1ClusterTrustBundle buildable = new V1beta1ClusterTrustBundle(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleFluent.java new file mode 100644 index 0000000000..7d95d8d06f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ClusterTrustBundleFluent> extends BaseFluent{ + public V1beta1ClusterTrustBundleFluent() { + } + + public V1beta1ClusterTrustBundleFluent(V1beta1ClusterTrustBundle instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1ClusterTrustBundleSpecBuilder spec; + + protected void copyInstance(V1beta1ClusterTrustBundle instance) { + instance = (instance != null ? instance : new V1beta1ClusterTrustBundle()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1beta1ClusterTrustBundleSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1beta1ClusterTrustBundleSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1ClusterTrustBundleSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1ClusterTrustBundleSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta1ClusterTrustBundleSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1ClusterTrustBundleSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1ClusterTrustBundleFluent that = (V1beta1ClusterTrustBundleFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta1ClusterTrustBundleFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1beta1ClusterTrustBundleSpecFluent> implements Nested{ + SpecNested(V1beta1ClusterTrustBundleSpec item) { + this.builder = new V1beta1ClusterTrustBundleSpecBuilder(this, item); + } + V1beta1ClusterTrustBundleSpecBuilder builder; + + public N and() { + return (N) V1beta1ClusterTrustBundleFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListBuilder.java new file mode 100644 index 0000000000..25e2ea5149 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ClusterTrustBundleListBuilder extends V1beta1ClusterTrustBundleListFluent implements VisitableBuilder{ + public V1beta1ClusterTrustBundleListBuilder() { + this(new V1beta1ClusterTrustBundleList()); + } + + public V1beta1ClusterTrustBundleListBuilder(V1beta1ClusterTrustBundleListFluent fluent) { + this(fluent, new V1beta1ClusterTrustBundleList()); + } + + public V1beta1ClusterTrustBundleListBuilder(V1beta1ClusterTrustBundleListFluent fluent,V1beta1ClusterTrustBundleList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ClusterTrustBundleListBuilder(V1beta1ClusterTrustBundleList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ClusterTrustBundleListFluent fluent; + + public V1beta1ClusterTrustBundleList build() { + V1beta1ClusterTrustBundleList buildable = new V1beta1ClusterTrustBundleList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListFluent.java new file mode 100644 index 0000000000..719c4c77a5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ClusterTrustBundleListFluent> extends BaseFluent{ + public V1beta1ClusterTrustBundleListFluent() { + } + + public V1beta1ClusterTrustBundleListFluent(V1beta1ClusterTrustBundleList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1beta1ClusterTrustBundleList instance) { + instance = (instance != null ? instance : new V1beta1ClusterTrustBundleList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1beta1ClusterTrustBundle item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1beta1ClusterTrustBundle item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundle... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1ClusterTrustBundle item : items) {V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1ClusterTrustBundle item : items) {V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundle... items) { + if (this.items == null) return (A)this; + for (V1beta1ClusterTrustBundle item : items) {V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1beta1ClusterTrustBundle item : items) {V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1ClusterTrustBundleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta1ClusterTrustBundle buildItem(int index) { + return this.items.get(index).build(); + } + + public V1beta1ClusterTrustBundle buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1ClusterTrustBundle buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta1ClusterTrustBundle buildMatchingItem(Predicate predicate) { + for (V1beta1ClusterTrustBundleBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1ClusterTrustBundleBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1ClusterTrustBundle item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundle... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1ClusterTrustBundle item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1ClusterTrustBundle item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1beta1ClusterTrustBundle item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1ClusterTrustBundleListFluent that = (V1beta1ClusterTrustBundleListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1beta1ClusterTrustBundleFluent> implements Nested{ + ItemsNested(int index,V1beta1ClusterTrustBundle item) { + this.index = index; + this.builder = new V1beta1ClusterTrustBundleBuilder(this, item); + } + V1beta1ClusterTrustBundleBuilder builder; + int index; + + public N and() { + return (N) V1beta1ClusterTrustBundleListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1beta1ClusterTrustBundleListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecBuilder.java new file mode 100644 index 0000000000..ccb75742d5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ClusterTrustBundleSpecBuilder extends V1beta1ClusterTrustBundleSpecFluent implements VisitableBuilder{ + public V1beta1ClusterTrustBundleSpecBuilder() { + this(new V1beta1ClusterTrustBundleSpec()); + } + + public V1beta1ClusterTrustBundleSpecBuilder(V1beta1ClusterTrustBundleSpecFluent fluent) { + this(fluent, new V1beta1ClusterTrustBundleSpec()); + } + + public V1beta1ClusterTrustBundleSpecBuilder(V1beta1ClusterTrustBundleSpecFluent fluent,V1beta1ClusterTrustBundleSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ClusterTrustBundleSpecBuilder(V1beta1ClusterTrustBundleSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ClusterTrustBundleSpecFluent fluent; + + public V1beta1ClusterTrustBundleSpec build() { + V1beta1ClusterTrustBundleSpec buildable = new V1beta1ClusterTrustBundleSpec(); + buildable.setSignerName(fluent.getSignerName()); + buildable.setTrustBundle(fluent.getTrustBundle()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecFluent.java new file mode 100644 index 0000000000..77a1e99e7b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecFluent.java @@ -0,0 +1,80 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ClusterTrustBundleSpecFluent> extends BaseFluent{ + public V1beta1ClusterTrustBundleSpecFluent() { + } + + public V1beta1ClusterTrustBundleSpecFluent(V1beta1ClusterTrustBundleSpec instance) { + this.copyInstance(instance); + } + private String signerName; + private String trustBundle; + + protected void copyInstance(V1beta1ClusterTrustBundleSpec instance) { + instance = (instance != null ? instance : new V1beta1ClusterTrustBundleSpec()); + if (instance != null) { + this.withSignerName(instance.getSignerName()); + this.withTrustBundle(instance.getTrustBundle()); + } + } + + public String getSignerName() { + return this.signerName; + } + + public A withSignerName(String signerName) { + this.signerName = signerName; + return (A) this; + } + + public boolean hasSignerName() { + return this.signerName != null; + } + + public String getTrustBundle() { + return this.trustBundle; + } + + public A withTrustBundle(String trustBundle) { + this.trustBundle = trustBundle; + return (A) this; + } + + public boolean hasTrustBundle() { + return this.trustBundle != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1ClusterTrustBundleSpecFluent that = (V1beta1ClusterTrustBundleSpecFluent) o; + if (!java.util.Objects.equals(signerName, that.signerName)) return false; + if (!java.util.Objects.equals(trustBundle, that.trustBundle)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(signerName, trustBundle, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (signerName != null) { sb.append("signerName:"); sb.append(signerName + ","); } + if (trustBundle != null) { sb.append("trustBundle:"); sb.append(trustBundle); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterBuilder.java new file mode 100644 index 0000000000..a4333cf6b6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1CounterBuilder extends V1beta1CounterFluent implements VisitableBuilder{ + public V1beta1CounterBuilder() { + this(new V1beta1Counter()); + } + + public V1beta1CounterBuilder(V1beta1CounterFluent fluent) { + this(fluent, new V1beta1Counter()); + } + + public V1beta1CounterBuilder(V1beta1CounterFluent fluent,V1beta1Counter instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1CounterBuilder(V1beta1Counter instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1CounterFluent fluent; + + public V1beta1Counter build() { + V1beta1Counter buildable = new V1beta1Counter(); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterFluent.java new file mode 100644 index 0000000000..39f29cb75a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterFluent.java @@ -0,0 +1,68 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1CounterFluent> extends BaseFluent{ + public V1beta1CounterFluent() { + } + + public V1beta1CounterFluent(V1beta1Counter instance) { + this.copyInstance(instance); + } + private Quantity value; + + protected void copyInstance(V1beta1Counter instance) { + instance = (instance != null ? instance : new V1beta1Counter()); + if (instance != null) { + this.withValue(instance.getValue()); + } + } + + public Quantity getValue() { + return this.value; + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public A withNewValue(String value) { + return (A)withValue(new Quantity(value)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1CounterFluent that = (V1beta1CounterFluent) o; + if (!java.util.Objects.equals(value, that.value)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(value, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (value != null) { sb.append("value:"); sb.append(value); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetBuilder.java new file mode 100644 index 0000000000..30c93bae4e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1CounterSetBuilder extends V1beta1CounterSetFluent implements VisitableBuilder{ + public V1beta1CounterSetBuilder() { + this(new V1beta1CounterSet()); + } + + public V1beta1CounterSetBuilder(V1beta1CounterSetFluent fluent) { + this(fluent, new V1beta1CounterSet()); + } + + public V1beta1CounterSetBuilder(V1beta1CounterSetFluent fluent,V1beta1CounterSet instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1CounterSetBuilder(V1beta1CounterSet instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1CounterSetFluent fluent; + + public V1beta1CounterSet build() { + V1beta1CounterSet buildable = new V1beta1CounterSet(); + buildable.setCounters(fluent.getCounters()); + buildable.setName(fluent.getName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetFluent.java new file mode 100644 index 0000000000..33f4147a51 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.util.Map; +import java.util.LinkedHashMap; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1CounterSetFluent> extends BaseFluent{ + public V1beta1CounterSetFluent() { + } + + public V1beta1CounterSetFluent(V1beta1CounterSet instance) { + this.copyInstance(instance); + } + private Map counters; + private String name; + + protected void copyInstance(V1beta1CounterSet instance) { + instance = (instance != null ? instance : new V1beta1CounterSet()); + if (instance != null) { + this.withCounters(instance.getCounters()); + this.withName(instance.getName()); + } + } + + public A addToCounters(String key,V1beta1Counter value) { + if(this.counters == null && key != null && value != null) { this.counters = new LinkedHashMap(); } + if(key != null && value != null) {this.counters.put(key, value);} return (A)this; + } + + public A addToCounters(Map map) { + if(this.counters == null && map != null) { this.counters = new LinkedHashMap(); } + if(map != null) { this.counters.putAll(map);} return (A)this; + } + + public A removeFromCounters(String key) { + if(this.counters == null) { return (A) this; } + if(key != null && this.counters != null) {this.counters.remove(key);} return (A)this; + } + + public A removeFromCounters(Map map) { + if(this.counters == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.counters != null){this.counters.remove(key);}}} return (A)this; + } + + public Map getCounters() { + return this.counters; + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1CounterSetFluent that = (V1beta1CounterSetFluent) o; + if (!java.util.Objects.equals(counters, that.counters)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(counters, name, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (counters != null && !counters.isEmpty()) { sb.append("counters:"); sb.append(counters + ","); } + if (name != null) { sb.append("name:"); sb.append(name); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultFluent.java index 7252fdee41..c5d6696e17 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultFluent.java @@ -37,14 +37,26 @@ protected void copyInstance(V1beta1DeviceAllocationResult instance) { public A addToConfig(int index,V1beta1DeviceAllocationConfiguration item) { if (this.config == null) {this.config = new ArrayList();} V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); config.add(builder); } else { _visitables.get("config").add(index, builder); config.add(index, builder);} + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); + } return (A)this; } public A setToConfig(int index,V1beta1DeviceAllocationConfiguration item) { if (this.config == null) {this.config = new ArrayList();} V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); config.add(builder); } else { _visitables.get("config").set(index, builder); config.set(index, builder);} + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } return (A)this; } @@ -188,14 +200,26 @@ public ConfigNested editMatchingConfig(Predicate();} V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); - if (index < 0 || index >= results.size()) { _visitables.get("results").add(builder); results.add(builder); } else { _visitables.get("results").add(index, builder); results.add(index, builder);} + if (index < 0 || index >= results.size()) { + _visitables.get("results").add(builder); + results.add(builder); + } else { + _visitables.get("results").add(builder); + results.add(index, builder); + } return (A)this; } public A setToResults(int index,V1beta1DeviceRequestAllocationResult item) { if (this.results == null) {this.results = new ArrayList();} V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); - if (index < 0 || index >= results.size()) { _visitables.get("results").add(builder); results.add(builder); } else { _visitables.get("results").set(index, builder); results.set(index, builder);} + if (index < 0 || index >= results.size()) { + _visitables.get("results").add(builder); + results.add(builder); + } else { + _visitables.get("results").add(builder); + results.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimFluent.java index d3772c9af3..c155a0aeaa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimFluent.java @@ -39,14 +39,26 @@ protected void copyInstance(V1beta1DeviceClaim instance) { public A addToConfig(int index,V1beta1DeviceClaimConfiguration item) { if (this.config == null) {this.config = new ArrayList();} V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); config.add(builder); } else { _visitables.get("config").add(index, builder); config.add(index, builder);} + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); + } return (A)this; } public A setToConfig(int index,V1beta1DeviceClaimConfiguration item) { if (this.config == null) {this.config = new ArrayList();} V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); config.add(builder); } else { _visitables.get("config").set(index, builder); config.set(index, builder);} + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } return (A)this; } @@ -190,14 +202,26 @@ public ConfigNested editMatchingConfig(Predicate();} V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); - if (index < 0 || index >= constraints.size()) { _visitables.get("constraints").add(builder); constraints.add(builder); } else { _visitables.get("constraints").add(index, builder); constraints.add(index, builder);} + if (index < 0 || index >= constraints.size()) { + _visitables.get("constraints").add(builder); + constraints.add(builder); + } else { + _visitables.get("constraints").add(builder); + constraints.add(index, builder); + } return (A)this; } public A setToConstraints(int index,V1beta1DeviceConstraint item) { if (this.constraints == null) {this.constraints = new ArrayList();} V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); - if (index < 0 || index >= constraints.size()) { _visitables.get("constraints").add(builder); constraints.add(builder); } else { _visitables.get("constraints").set(index, builder); constraints.set(index, builder);} + if (index < 0 || index >= constraints.size()) { + _visitables.get("constraints").add(builder); + constraints.add(builder); + } else { + _visitables.get("constraints").add(builder); + constraints.set(index, builder); + } return (A)this; } @@ -341,14 +365,26 @@ public ConstraintsNested editMatchingConstraint(Predicate();} V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); - if (index < 0 || index >= requests.size()) { _visitables.get("requests").add(builder); requests.add(builder); } else { _visitables.get("requests").add(index, builder); requests.add(index, builder);} + if (index < 0 || index >= requests.size()) { + _visitables.get("requests").add(builder); + requests.add(builder); + } else { + _visitables.get("requests").add(builder); + requests.add(index, builder); + } return (A)this; } public A setToRequests(int index,V1beta1DeviceRequest item) { if (this.requests == null) {this.requests = new ArrayList();} V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); - if (index < 0 || index >= requests.size()) { _visitables.get("requests").add(builder); requests.add(builder); } else { _visitables.get("requests").set(index, builder); requests.set(index, builder);} + if (index < 0 || index >= requests.size()) { + _visitables.get("requests").add(builder); + requests.add(builder); + } else { + _visitables.get("requests").add(builder); + requests.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListFluent.java index b9984c59f6..05ca0ae737 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1beta1DeviceClass item) { if (this.items == null) {this.items = new ArrayList();} V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1beta1DeviceClass item) { if (this.items == null) {this.items = new ArrayList();} V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecFluent.java index f9d2cc2620..14b480fe2b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecFluent.java @@ -37,14 +37,26 @@ protected void copyInstance(V1beta1DeviceClassSpec instance) { public A addToConfig(int index,V1beta1DeviceClassConfiguration item) { if (this.config == null) {this.config = new ArrayList();} V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); config.add(builder); } else { _visitables.get("config").add(index, builder); config.add(index, builder);} + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); + } return (A)this; } public A setToConfig(int index,V1beta1DeviceClassConfiguration item) { if (this.config == null) {this.config = new ArrayList();} V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); config.add(builder); } else { _visitables.get("config").set(index, builder); config.set(index, builder);} + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } return (A)this; } @@ -188,14 +200,26 @@ public ConfigNested editMatchingConfig(Predicate();} V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); selectors.add(builder); } else { _visitables.get("selectors").add(index, builder); selectors.add(index, builder);} + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } return (A)this; } public A setToSelectors(int index,V1beta1DeviceSelector item) { if (this.selectors == null) {this.selectors = new ArrayList();} V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); selectors.add(builder); } else { _visitables.get("selectors").set(index, builder); selectors.set(index, builder);} + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionBuilder.java new file mode 100644 index 0000000000..290f8fc7ea --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceCounterConsumptionBuilder extends V1beta1DeviceCounterConsumptionFluent implements VisitableBuilder{ + public V1beta1DeviceCounterConsumptionBuilder() { + this(new V1beta1DeviceCounterConsumption()); + } + + public V1beta1DeviceCounterConsumptionBuilder(V1beta1DeviceCounterConsumptionFluent fluent) { + this(fluent, new V1beta1DeviceCounterConsumption()); + } + + public V1beta1DeviceCounterConsumptionBuilder(V1beta1DeviceCounterConsumptionFluent fluent,V1beta1DeviceCounterConsumption instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceCounterConsumptionBuilder(V1beta1DeviceCounterConsumption instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceCounterConsumptionFluent fluent; + + public V1beta1DeviceCounterConsumption build() { + V1beta1DeviceCounterConsumption buildable = new V1beta1DeviceCounterConsumption(); + buildable.setCounterSet(fluent.getCounterSet()); + buildable.setCounters(fluent.getCounters()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionFluent.java new file mode 100644 index 0000000000..9e67fc0a94 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.util.Map; +import java.util.LinkedHashMap; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceCounterConsumptionFluent> extends BaseFluent{ + public V1beta1DeviceCounterConsumptionFluent() { + } + + public V1beta1DeviceCounterConsumptionFluent(V1beta1DeviceCounterConsumption instance) { + this.copyInstance(instance); + } + private String counterSet; + private Map counters; + + protected void copyInstance(V1beta1DeviceCounterConsumption instance) { + instance = (instance != null ? instance : new V1beta1DeviceCounterConsumption()); + if (instance != null) { + this.withCounterSet(instance.getCounterSet()); + this.withCounters(instance.getCounters()); + } + } + + public String getCounterSet() { + return this.counterSet; + } + + public A withCounterSet(String counterSet) { + this.counterSet = counterSet; + return (A) this; + } + + public boolean hasCounterSet() { + return this.counterSet != null; + } + + public A addToCounters(String key,V1beta1Counter value) { + if(this.counters == null && key != null && value != null) { this.counters = new LinkedHashMap(); } + if(key != null && value != null) {this.counters.put(key, value);} return (A)this; + } + + public A addToCounters(Map map) { + if(this.counters == null && map != null) { this.counters = new LinkedHashMap(); } + if(map != null) { this.counters.putAll(map);} return (A)this; + } + + public A removeFromCounters(String key) { + if(this.counters == null) { return (A) this; } + if(key != null && this.counters != null) {this.counters.remove(key);} return (A)this; + } + + public A removeFromCounters(Map map) { + if(this.counters == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.counters != null){this.counters.remove(key);}}} return (A)this; + } + + public Map getCounters() { + return this.counters; + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1DeviceCounterConsumptionFluent that = (V1beta1DeviceCounterConsumptionFluent) o; + if (!java.util.Objects.equals(counterSet, that.counterSet)) return false; + if (!java.util.Objects.equals(counters, that.counters)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(counterSet, counters, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (counterSet != null) { sb.append("counterSet:"); sb.append(counterSet + ","); } + if (counters != null && !counters.isEmpty()) { sb.append("counters:"); sb.append(counters); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultBuilder.java index f89d7c805d..70711f9a65 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultBuilder.java @@ -28,6 +28,7 @@ public V1beta1DeviceRequestAllocationResult build() { buildable.setDriver(fluent.getDriver()); buildable.setPool(fluent.getPool()); buildable.setRequest(fluent.getRequest()); + buildable.setTolerations(fluent.buildTolerations()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultFluent.java index d2617176b7..9a975a9279 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultFluent.java @@ -1,9 +1,16 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; import java.lang.Object; -import java.lang.String; +import java.util.List; import java.lang.Boolean; /** @@ -22,6 +29,7 @@ public V1beta1DeviceRequestAllocationResultFluent(V1beta1DeviceRequestAllocation private String driver; private String pool; private String request; + private ArrayList tolerations; protected void copyInstance(V1beta1DeviceRequestAllocationResult instance) { instance = (instance != null ? instance : new V1beta1DeviceRequestAllocationResult()); @@ -31,6 +39,7 @@ protected void copyInstance(V1beta1DeviceRequestAllocationResult instance) { this.withDriver(instance.getDriver()); this.withPool(instance.getPool()); this.withRequest(instance.getRequest()); + this.withTolerations(instance.getTolerations()); } } @@ -99,6 +108,169 @@ public boolean hasRequest() { return this.request != null; } + public A addToTolerations(int index,V1beta1DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } + return (A)this; + } + + public A setToTolerations(int index,V1beta1DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A)this; + } + + public A addToTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A removeFromTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... items) { + if (this.tolerations == null) return (A)this; + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) return (A)this; + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) return (A) this; + final Iterator each = tolerations.iterator(); + final List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1beta1DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + public V1beta1DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public V1beta1DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1beta1DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1beta1DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1beta1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1beta1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1beta1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1beta1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + + public boolean hasTolerations() { + return this.tolerations != null && !this.tolerations.isEmpty(); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1beta1DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1beta1DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); + return setNewTolerationLike(0, buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta1DeviceTolerationFluent> implements Nested{ + TolerationsNested(int index,V1beta1DeviceToleration item) { + this.index = index; + this.builder = new V1beta1DeviceTolerationBuilder(this, item); + } + V1beta1DeviceTolerationBuilder builder; + int index; + + public N and() { + return (N) V1beta1DeviceRequestAllocationResultFluent.this.setToTolerations(index,builder.build()); + } + + public N endToleration() { + return and(); + } + + } } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestBuilder.java index 40f65f5d8b..7a18198d43 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestBuilder.java @@ -27,8 +27,10 @@ public V1beta1DeviceRequest build() { buildable.setAllocationMode(fluent.getAllocationMode()); buildable.setCount(fluent.getCount()); buildable.setDeviceClassName(fluent.getDeviceClassName()); + buildable.setFirstAvailable(fluent.buildFirstAvailable()); buildable.setName(fluent.getName()); buildable.setSelectors(fluent.buildSelectors()); + buildable.setTolerations(fluent.buildTolerations()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestFluent.java index 4f5eb35e3e..10022c6748 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestFluent.java @@ -7,12 +7,12 @@ import java.lang.String; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Long; import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; import java.util.List; import java.lang.Boolean; +import java.lang.Long; +import java.util.Collection; +import java.lang.Object; /** * Generated @@ -29,8 +29,10 @@ public V1beta1DeviceRequestFluent(V1beta1DeviceRequest instance) { private String allocationMode; private Long count; private String deviceClassName; + private ArrayList firstAvailable; private String name; private ArrayList selectors; + private ArrayList tolerations; protected void copyInstance(V1beta1DeviceRequest instance) { instance = (instance != null ? instance : new V1beta1DeviceRequest()); @@ -39,8 +41,10 @@ protected void copyInstance(V1beta1DeviceRequest instance) { this.withAllocationMode(instance.getAllocationMode()); this.withCount(instance.getCount()); this.withDeviceClassName(instance.getDeviceClassName()); + this.withFirstAvailable(instance.getFirstAvailable()); this.withName(instance.getName()); this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); } } @@ -96,6 +100,169 @@ public boolean hasDeviceClassName() { return this.deviceClassName != null; } + public A addToFirstAvailable(int index,V1beta1DeviceSubRequest item) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); + if (index < 0 || index >= firstAvailable.size()) { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(builder); + } else { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(index, builder); + } + return (A)this; + } + + public A setToFirstAvailable(int index,V1beta1DeviceSubRequest item) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); + if (index < 0 || index >= firstAvailable.size()) { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(builder); + } else { + _visitables.get("firstAvailable").add(builder); + firstAvailable.set(index, builder); + } + return (A)this; + } + + public A addToFirstAvailable(io.kubernetes.client.openapi.models.V1beta1DeviceSubRequest... items) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + for (V1beta1DeviceSubRequest item : items) {V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").add(builder);this.firstAvailable.add(builder);} return (A)this; + } + + public A addAllToFirstAvailable(Collection items) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + for (V1beta1DeviceSubRequest item : items) {V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").add(builder);this.firstAvailable.add(builder);} return (A)this; + } + + public A removeFromFirstAvailable(io.kubernetes.client.openapi.models.V1beta1DeviceSubRequest... items) { + if (this.firstAvailable == null) return (A)this; + for (V1beta1DeviceSubRequest item : items) {V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").remove(builder); this.firstAvailable.remove(builder);} return (A)this; + } + + public A removeAllFromFirstAvailable(Collection items) { + if (this.firstAvailable == null) return (A)this; + for (V1beta1DeviceSubRequest item : items) {V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").remove(builder); this.firstAvailable.remove(builder);} return (A)this; + } + + public A removeMatchingFromFirstAvailable(Predicate predicate) { + if (firstAvailable == null) return (A) this; + final Iterator each = firstAvailable.iterator(); + final List visitables = _visitables.get("firstAvailable"); + while (each.hasNext()) { + V1beta1DeviceSubRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildFirstAvailable() { + return this.firstAvailable != null ? build(firstAvailable) : null; + } + + public V1beta1DeviceSubRequest buildFirstAvailable(int index) { + return this.firstAvailable.get(index).build(); + } + + public V1beta1DeviceSubRequest buildFirstFirstAvailable() { + return this.firstAvailable.get(0).build(); + } + + public V1beta1DeviceSubRequest buildLastFirstAvailable() { + return this.firstAvailable.get(firstAvailable.size() - 1).build(); + } + + public V1beta1DeviceSubRequest buildMatchingFirstAvailable(Predicate predicate) { + for (V1beta1DeviceSubRequestBuilder item : firstAvailable) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingFirstAvailable(Predicate predicate) { + for (V1beta1DeviceSubRequestBuilder item : firstAvailable) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withFirstAvailable(List firstAvailable) { + if (this.firstAvailable != null) { + this._visitables.get("firstAvailable").clear(); + } + if (firstAvailable != null) { + this.firstAvailable = new ArrayList(); + for (V1beta1DeviceSubRequest item : firstAvailable) { + this.addToFirstAvailable(item); + } + } else { + this.firstAvailable = null; + } + return (A) this; + } + + public A withFirstAvailable(io.kubernetes.client.openapi.models.V1beta1DeviceSubRequest... firstAvailable) { + if (this.firstAvailable != null) { + this.firstAvailable.clear(); + _visitables.remove("firstAvailable"); + } + if (firstAvailable != null) { + for (V1beta1DeviceSubRequest item : firstAvailable) { + this.addToFirstAvailable(item); + } + } + return (A) this; + } + + public boolean hasFirstAvailable() { + return this.firstAvailable != null && !this.firstAvailable.isEmpty(); + } + + public FirstAvailableNested addNewFirstAvailable() { + return new FirstAvailableNested(-1, null); + } + + public FirstAvailableNested addNewFirstAvailableLike(V1beta1DeviceSubRequest item) { + return new FirstAvailableNested(-1, item); + } + + public FirstAvailableNested setNewFirstAvailableLike(int index,V1beta1DeviceSubRequest item) { + return new FirstAvailableNested(index, item); + } + + public FirstAvailableNested editFirstAvailable(int index) { + if (firstAvailable.size() <= index) throw new RuntimeException("Can't edit firstAvailable. Index exceeds size."); + return setNewFirstAvailableLike(index, buildFirstAvailable(index)); + } + + public FirstAvailableNested editFirstFirstAvailable() { + if (firstAvailable.size() == 0) throw new RuntimeException("Can't edit first firstAvailable. The list is empty."); + return setNewFirstAvailableLike(0, buildFirstAvailable(0)); + } + + public FirstAvailableNested editLastFirstAvailable() { + int index = firstAvailable.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last firstAvailable. The list is empty."); + return setNewFirstAvailableLike(index, buildFirstAvailable(index)); + } + + public FirstAvailableNested editMatchingFirstAvailable(Predicate predicate) { + int index = -1; + for (int i=0;i();} V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); selectors.add(builder); } else { _visitables.get("selectors").add(index, builder); selectors.add(index, builder);} + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } return (A)this; } public A setToSelectors(int index,V1beta1DeviceSelector item) { if (this.selectors == null) {this.selectors = new ArrayList();} V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); selectors.add(builder); } else { _visitables.get("selectors").set(index, builder); selectors.set(index, builder);} + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } return (A)this; } @@ -260,6 +439,169 @@ public SelectorsNested editMatchingSelector(Predicate();} + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } + return (A)this; + } + + public A setToTolerations(int index,V1beta1DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A)this; + } + + public A addToTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A removeFromTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... items) { + if (this.tolerations == null) return (A)this; + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) return (A)this; + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) return (A) this; + final Iterator each = tolerations.iterator(); + final List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1beta1DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + public V1beta1DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public V1beta1DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1beta1DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1beta1DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1beta1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1beta1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1beta1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1beta1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + + public boolean hasTolerations() { + return this.tolerations != null && !this.tolerations.isEmpty(); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1beta1DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1beta1DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); + return setNewTolerationLike(0, buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta1DeviceSubRequestFluent> implements Nested{ + FirstAvailableNested(int index,V1beta1DeviceSubRequest item) { + this.index = index; + this.builder = new V1beta1DeviceSubRequestBuilder(this, item); + } + V1beta1DeviceSubRequestBuilder builder; + int index; + + public N and() { + return (N) V1beta1DeviceRequestFluent.this.setToFirstAvailable(index,builder.build()); + } + + public N endFirstAvailable() { + return and(); + } + + } public class SelectorsNested extends V1beta1DeviceSelectorFluent> implements Nested{ SelectorsNested(int index,V1beta1DeviceSelector item) { @@ -311,6 +675,24 @@ public N endSelector() { } + } + public class TolerationsNested extends V1beta1DeviceTolerationFluent> implements Nested{ + TolerationsNested(int index,V1beta1DeviceToleration item) { + this.index = index; + this.builder = new V1beta1DeviceTolerationBuilder(this, item); + } + V1beta1DeviceTolerationBuilder builder; + int index; + + public N and() { + return (N) V1beta1DeviceRequestFluent.this.setToTolerations(index,builder.build()); + } + + public N endToleration() { + return and(); + } + + } } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestBuilder.java new file mode 100644 index 0000000000..800e992109 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceSubRequestBuilder extends V1beta1DeviceSubRequestFluent implements VisitableBuilder{ + public V1beta1DeviceSubRequestBuilder() { + this(new V1beta1DeviceSubRequest()); + } + + public V1beta1DeviceSubRequestBuilder(V1beta1DeviceSubRequestFluent fluent) { + this(fluent, new V1beta1DeviceSubRequest()); + } + + public V1beta1DeviceSubRequestBuilder(V1beta1DeviceSubRequestFluent fluent,V1beta1DeviceSubRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceSubRequestBuilder(V1beta1DeviceSubRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceSubRequestFluent fluent; + + public V1beta1DeviceSubRequest build() { + V1beta1DeviceSubRequest buildable = new V1beta1DeviceSubRequest(); + buildable.setAllocationMode(fluent.getAllocationMode()); + buildable.setCount(fluent.getCount()); + buildable.setDeviceClassName(fluent.getDeviceClassName()); + buildable.setName(fluent.getName()); + buildable.setSelectors(fluent.buildSelectors()); + buildable.setTolerations(fluent.buildTolerations()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestFluent.java new file mode 100644 index 0000000000..041eb39e44 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestFluent.java @@ -0,0 +1,491 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceSubRequestFluent> extends BaseFluent{ + public V1beta1DeviceSubRequestFluent() { + } + + public V1beta1DeviceSubRequestFluent(V1beta1DeviceSubRequest instance) { + this.copyInstance(instance); + } + private String allocationMode; + private Long count; + private String deviceClassName; + private String name; + private ArrayList selectors; + private ArrayList tolerations; + + protected void copyInstance(V1beta1DeviceSubRequest instance) { + instance = (instance != null ? instance : new V1beta1DeviceSubRequest()); + if (instance != null) { + this.withAllocationMode(instance.getAllocationMode()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withName(instance.getName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } + } + + public String getAllocationMode() { + return this.allocationMode; + } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public Long getCount() { + return this.count; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public boolean hasCount() { + return this.count != null; + } + + public String getDeviceClassName() { + return this.deviceClassName; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public A addToSelectors(int index,V1beta1DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } + return (A)this; + } + + public A setToSelectors(int index,V1beta1DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A)this; + } + + public A addToSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector... items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A removeFromSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector... items) { + if (this.selectors == null) return (A)this; + for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) return (A)this; + for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) return (A) this; + final Iterator each = selectors.iterator(); + final List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1beta1DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1beta1DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public V1beta1DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1beta1DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1beta1DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1beta1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1beta1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1beta1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1beta1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public boolean hasSelectors() { + return this.selectors != null && !this.selectors.isEmpty(); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1beta1DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1beta1DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); + return setNewSelectorLike(0, buildSelector(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } + return (A)this; + } + + public A setToTolerations(int index,V1beta1DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A)this; + } + + public A addToTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A removeFromTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... items) { + if (this.tolerations == null) return (A)this; + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) return (A)this; + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) return (A) this; + final Iterator each = tolerations.iterator(); + final List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1beta1DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + public V1beta1DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public V1beta1DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1beta1DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1beta1DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1beta1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1beta1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1beta1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1beta1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + + public boolean hasTolerations() { + return this.tolerations != null && !this.tolerations.isEmpty(); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1beta1DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1beta1DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); + return setNewTolerationLike(0, buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta1DeviceSelectorFluent> implements Nested{ + SelectorsNested(int index,V1beta1DeviceSelector item) { + this.index = index; + this.builder = new V1beta1DeviceSelectorBuilder(this, item); + } + V1beta1DeviceSelectorBuilder builder; + int index; + + public N and() { + return (N) V1beta1DeviceSubRequestFluent.this.setToSelectors(index,builder.build()); + } + + public N endSelector() { + return and(); + } + + + } + public class TolerationsNested extends V1beta1DeviceTolerationFluent> implements Nested{ + TolerationsNested(int index,V1beta1DeviceToleration item) { + this.index = index; + this.builder = new V1beta1DeviceTolerationBuilder(this, item); + } + V1beta1DeviceTolerationBuilder builder; + int index; + + public N and() { + return (N) V1beta1DeviceSubRequestFluent.this.setToTolerations(index,builder.build()); + } + + public N endToleration() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintBuilder.java new file mode 100644 index 0000000000..d9ce083397 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceTaintBuilder extends V1beta1DeviceTaintFluent implements VisitableBuilder{ + public V1beta1DeviceTaintBuilder() { + this(new V1beta1DeviceTaint()); + } + + public V1beta1DeviceTaintBuilder(V1beta1DeviceTaintFluent fluent) { + this(fluent, new V1beta1DeviceTaint()); + } + + public V1beta1DeviceTaintBuilder(V1beta1DeviceTaintFluent fluent,V1beta1DeviceTaint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceTaintBuilder(V1beta1DeviceTaint instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceTaintFluent fluent; + + public V1beta1DeviceTaint build() { + V1beta1DeviceTaint buildable = new V1beta1DeviceTaint(); + buildable.setEffect(fluent.getEffect()); + buildable.setKey(fluent.getKey()); + buildable.setTimeAdded(fluent.getTimeAdded()); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintFluent.java new file mode 100644 index 0000000000..011d224a15 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintFluent.java @@ -0,0 +1,115 @@ +package io.kubernetes.client.openapi.models; + +import java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceTaintFluent> extends BaseFluent{ + public V1beta1DeviceTaintFluent() { + } + + public V1beta1DeviceTaintFluent(V1beta1DeviceTaint instance) { + this.copyInstance(instance); + } + private String effect; + private String key; + private OffsetDateTime timeAdded; + private String value; + + protected void copyInstance(V1beta1DeviceTaint instance) { + instance = (instance != null ? instance : new V1beta1DeviceTaint()); + if (instance != null) { + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withTimeAdded(instance.getTimeAdded()); + this.withValue(instance.getValue()); + } + } + + public String getEffect() { + return this.effect; + } + + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public String getKey() { + return this.key; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public boolean hasKey() { + return this.key != null; + } + + public OffsetDateTime getTimeAdded() { + return this.timeAdded; + } + + public A withTimeAdded(OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + return (A) this; + } + + public boolean hasTimeAdded() { + return this.timeAdded != null; + } + + public String getValue() { + return this.value; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1DeviceTaintFluent that = (V1beta1DeviceTaintFluent) o; + if (!java.util.Objects.equals(effect, that.effect)) return false; + if (!java.util.Objects.equals(key, that.key)) return false; + if (!java.util.Objects.equals(timeAdded, that.timeAdded)) return false; + if (!java.util.Objects.equals(value, that.value)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(effect, key, timeAdded, value, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (effect != null) { sb.append("effect:"); sb.append(effect + ","); } + if (key != null) { sb.append("key:"); sb.append(key + ","); } + if (timeAdded != null) { sb.append("timeAdded:"); sb.append(timeAdded + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationBuilder.java new file mode 100644 index 0000000000..853c7e5faa --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceTolerationBuilder extends V1beta1DeviceTolerationFluent implements VisitableBuilder{ + public V1beta1DeviceTolerationBuilder() { + this(new V1beta1DeviceToleration()); + } + + public V1beta1DeviceTolerationBuilder(V1beta1DeviceTolerationFluent fluent) { + this(fluent, new V1beta1DeviceToleration()); + } + + public V1beta1DeviceTolerationBuilder(V1beta1DeviceTolerationFluent fluent,V1beta1DeviceToleration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceTolerationBuilder(V1beta1DeviceToleration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceTolerationFluent fluent; + + public V1beta1DeviceToleration build() { + V1beta1DeviceToleration buildable = new V1beta1DeviceToleration(); + buildable.setEffect(fluent.getEffect()); + buildable.setKey(fluent.getKey()); + buildable.setOperator(fluent.getOperator()); + buildable.setTolerationSeconds(fluent.getTolerationSeconds()); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationFluent.java new file mode 100644 index 0000000000..5406ea353d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationFluent.java @@ -0,0 +1,132 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceTolerationFluent> extends BaseFluent{ + public V1beta1DeviceTolerationFluent() { + } + + public V1beta1DeviceTolerationFluent(V1beta1DeviceToleration instance) { + this.copyInstance(instance); + } + private String effect; + private String key; + private String operator; + private Long tolerationSeconds; + private String value; + + protected void copyInstance(V1beta1DeviceToleration instance) { + instance = (instance != null ? instance : new V1beta1DeviceToleration()); + if (instance != null) { + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withOperator(instance.getOperator()); + this.withTolerationSeconds(instance.getTolerationSeconds()); + this.withValue(instance.getValue()); + } + } + + public String getEffect() { + return this.effect; + } + + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public String getKey() { + return this.key; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public boolean hasKey() { + return this.key != null; + } + + public String getOperator() { + return this.operator; + } + + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public boolean hasOperator() { + return this.operator != null; + } + + public Long getTolerationSeconds() { + return this.tolerationSeconds; + } + + public A withTolerationSeconds(Long tolerationSeconds) { + this.tolerationSeconds = tolerationSeconds; + return (A) this; + } + + public boolean hasTolerationSeconds() { + return this.tolerationSeconds != null; + } + + public String getValue() { + return this.value; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1DeviceTolerationFluent that = (V1beta1DeviceTolerationFluent) o; + if (!java.util.Objects.equals(effect, that.effect)) return false; + if (!java.util.Objects.equals(key, that.key)) return false; + if (!java.util.Objects.equals(operator, that.operator)) return false; + if (!java.util.Objects.equals(tolerationSeconds, that.tolerationSeconds)) return false; + if (!java.util.Objects.equals(value, that.value)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(effect, key, operator, tolerationSeconds, value, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (effect != null) { sb.append("effect:"); sb.append(effect + ","); } + if (key != null) { sb.append("key:"); sb.append(key + ","); } + if (operator != null) { sb.append("operator:"); sb.append(operator + ","); } + if (tolerationSeconds != null) { sb.append("tolerationSeconds:"); sb.append(tolerationSeconds + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java index 45cbcdb87e..e8b47feea4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1beta1IPAddress item) { if (this.items == null) {this.items = new ArrayList();} V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1beta1IPAddress item) { if (this.items == null) {this.items = new ArrayList();} V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateBuilder.java new file mode 100644 index 0000000000..5cd16d2995 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1LeaseCandidateBuilder extends V1beta1LeaseCandidateFluent implements VisitableBuilder{ + public V1beta1LeaseCandidateBuilder() { + this(new V1beta1LeaseCandidate()); + } + + public V1beta1LeaseCandidateBuilder(V1beta1LeaseCandidateFluent fluent) { + this(fluent, new V1beta1LeaseCandidate()); + } + + public V1beta1LeaseCandidateBuilder(V1beta1LeaseCandidateFluent fluent,V1beta1LeaseCandidate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1LeaseCandidateBuilder(V1beta1LeaseCandidate instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1LeaseCandidateFluent fluent; + + public V1beta1LeaseCandidate build() { + V1beta1LeaseCandidate buildable = new V1beta1LeaseCandidate(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateFluent.java new file mode 100644 index 0000000000..876485d65e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1LeaseCandidateFluent> extends BaseFluent{ + public V1beta1LeaseCandidateFluent() { + } + + public V1beta1LeaseCandidateFluent(V1beta1LeaseCandidate instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1LeaseCandidateSpecBuilder spec; + + protected void copyInstance(V1beta1LeaseCandidate instance) { + instance = (instance != null ? instance : new V1beta1LeaseCandidate()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1beta1LeaseCandidateSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1beta1LeaseCandidateSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1LeaseCandidateSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1LeaseCandidateSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta1LeaseCandidateSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1LeaseCandidateSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1LeaseCandidateFluent that = (V1beta1LeaseCandidateFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta1LeaseCandidateFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1beta1LeaseCandidateSpecFluent> implements Nested{ + SpecNested(V1beta1LeaseCandidateSpec item) { + this.builder = new V1beta1LeaseCandidateSpecBuilder(this, item); + } + V1beta1LeaseCandidateSpecBuilder builder; + + public N and() { + return (N) V1beta1LeaseCandidateFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListBuilder.java new file mode 100644 index 0000000000..6bc0c2567d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1LeaseCandidateListBuilder extends V1beta1LeaseCandidateListFluent implements VisitableBuilder{ + public V1beta1LeaseCandidateListBuilder() { + this(new V1beta1LeaseCandidateList()); + } + + public V1beta1LeaseCandidateListBuilder(V1beta1LeaseCandidateListFluent fluent) { + this(fluent, new V1beta1LeaseCandidateList()); + } + + public V1beta1LeaseCandidateListBuilder(V1beta1LeaseCandidateListFluent fluent,V1beta1LeaseCandidateList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1LeaseCandidateListBuilder(V1beta1LeaseCandidateList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1LeaseCandidateListFluent fluent; + + public V1beta1LeaseCandidateList build() { + V1beta1LeaseCandidateList buildable = new V1beta1LeaseCandidateList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListFluent.java new file mode 100644 index 0000000000..a7104ea11e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1LeaseCandidateListFluent> extends BaseFluent{ + public V1beta1LeaseCandidateListFluent() { + } + + public V1beta1LeaseCandidateListFluent(V1beta1LeaseCandidateList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1beta1LeaseCandidateList instance) { + instance = (instance != null ? instance : new V1beta1LeaseCandidateList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1beta1LeaseCandidate item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1beta1LeaseCandidate item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1beta1LeaseCandidate... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1LeaseCandidate item : items) {V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1LeaseCandidate item : items) {V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1LeaseCandidate... items) { + if (this.items == null) return (A)this; + for (V1beta1LeaseCandidate item : items) {V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1beta1LeaseCandidate item : items) {V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1LeaseCandidateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta1LeaseCandidate buildItem(int index) { + return this.items.get(index).build(); + } + + public V1beta1LeaseCandidate buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1LeaseCandidate buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta1LeaseCandidate buildMatchingItem(Predicate predicate) { + for (V1beta1LeaseCandidateBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1LeaseCandidateBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1LeaseCandidate item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1beta1LeaseCandidate... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1LeaseCandidate item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1LeaseCandidate item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1beta1LeaseCandidate item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1LeaseCandidateListFluent that = (V1beta1LeaseCandidateListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1beta1LeaseCandidateFluent> implements Nested{ + ItemsNested(int index,V1beta1LeaseCandidate item) { + this.index = index; + this.builder = new V1beta1LeaseCandidateBuilder(this, item); + } + V1beta1LeaseCandidateBuilder builder; + int index; + + public N and() { + return (N) V1beta1LeaseCandidateListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1beta1LeaseCandidateListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecBuilder.java new file mode 100644 index 0000000000..f236fedf26 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1LeaseCandidateSpecBuilder extends V1beta1LeaseCandidateSpecFluent implements VisitableBuilder{ + public V1beta1LeaseCandidateSpecBuilder() { + this(new V1beta1LeaseCandidateSpec()); + } + + public V1beta1LeaseCandidateSpecBuilder(V1beta1LeaseCandidateSpecFluent fluent) { + this(fluent, new V1beta1LeaseCandidateSpec()); + } + + public V1beta1LeaseCandidateSpecBuilder(V1beta1LeaseCandidateSpecFluent fluent,V1beta1LeaseCandidateSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1LeaseCandidateSpecBuilder(V1beta1LeaseCandidateSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1LeaseCandidateSpecFluent fluent; + + public V1beta1LeaseCandidateSpec build() { + V1beta1LeaseCandidateSpec buildable = new V1beta1LeaseCandidateSpec(); + buildable.setBinaryVersion(fluent.getBinaryVersion()); + buildable.setEmulationVersion(fluent.getEmulationVersion()); + buildable.setLeaseName(fluent.getLeaseName()); + buildable.setPingTime(fluent.getPingTime()); + buildable.setRenewTime(fluent.getRenewTime()); + buildable.setStrategy(fluent.getStrategy()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecFluent.java new file mode 100644 index 0000000000..1c34d7a311 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecFluent.java @@ -0,0 +1,149 @@ +package io.kubernetes.client.openapi.models; + +import java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1LeaseCandidateSpecFluent> extends BaseFluent{ + public V1beta1LeaseCandidateSpecFluent() { + } + + public V1beta1LeaseCandidateSpecFluent(V1beta1LeaseCandidateSpec instance) { + this.copyInstance(instance); + } + private String binaryVersion; + private String emulationVersion; + private String leaseName; + private OffsetDateTime pingTime; + private OffsetDateTime renewTime; + private String strategy; + + protected void copyInstance(V1beta1LeaseCandidateSpec instance) { + instance = (instance != null ? instance : new V1beta1LeaseCandidateSpec()); + if (instance != null) { + this.withBinaryVersion(instance.getBinaryVersion()); + this.withEmulationVersion(instance.getEmulationVersion()); + this.withLeaseName(instance.getLeaseName()); + this.withPingTime(instance.getPingTime()); + this.withRenewTime(instance.getRenewTime()); + this.withStrategy(instance.getStrategy()); + } + } + + public String getBinaryVersion() { + return this.binaryVersion; + } + + public A withBinaryVersion(String binaryVersion) { + this.binaryVersion = binaryVersion; + return (A) this; + } + + public boolean hasBinaryVersion() { + return this.binaryVersion != null; + } + + public String getEmulationVersion() { + return this.emulationVersion; + } + + public A withEmulationVersion(String emulationVersion) { + this.emulationVersion = emulationVersion; + return (A) this; + } + + public boolean hasEmulationVersion() { + return this.emulationVersion != null; + } + + public String getLeaseName() { + return this.leaseName; + } + + public A withLeaseName(String leaseName) { + this.leaseName = leaseName; + return (A) this; + } + + public boolean hasLeaseName() { + return this.leaseName != null; + } + + public OffsetDateTime getPingTime() { + return this.pingTime; + } + + public A withPingTime(OffsetDateTime pingTime) { + this.pingTime = pingTime; + return (A) this; + } + + public boolean hasPingTime() { + return this.pingTime != null; + } + + public OffsetDateTime getRenewTime() { + return this.renewTime; + } + + public A withRenewTime(OffsetDateTime renewTime) { + this.renewTime = renewTime; + return (A) this; + } + + public boolean hasRenewTime() { + return this.renewTime != null; + } + + public String getStrategy() { + return this.strategy; + } + + public A withStrategy(String strategy) { + this.strategy = strategy; + return (A) this; + } + + public boolean hasStrategy() { + return this.strategy != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1LeaseCandidateSpecFluent that = (V1beta1LeaseCandidateSpecFluent) o; + if (!java.util.Objects.equals(binaryVersion, that.binaryVersion)) return false; + if (!java.util.Objects.equals(emulationVersion, that.emulationVersion)) return false; + if (!java.util.Objects.equals(leaseName, that.leaseName)) return false; + if (!java.util.Objects.equals(pingTime, that.pingTime)) return false; + if (!java.util.Objects.equals(renewTime, that.renewTime)) return false; + if (!java.util.Objects.equals(strategy, that.strategy)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(binaryVersion, emulationVersion, leaseName, pingTime, renewTime, strategy, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (binaryVersion != null) { sb.append("binaryVersion:"); sb.append(binaryVersion + ","); } + if (emulationVersion != null) { sb.append("emulationVersion:"); sb.append(emulationVersion + ","); } + if (leaseName != null) { sb.append("leaseName:"); sb.append(leaseName + ","); } + if (pingTime != null) { sb.append("pingTime:"); sb.append(pingTime + ","); } + if (renewTime != null) { sb.append("renewTime:"); sb.append(renewTime + ","); } + if (strategy != null) { sb.append("strategy:"); sb.append(strategy); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesFluent.java index c0bcb8925f..3e684ae76b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesFluent.java @@ -43,14 +43,26 @@ protected void copyInstance(V1beta1MatchResources instance) { public A addToExcludeResourceRules(int index,V1beta1NamedRuleWithOperations item) { if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= excludeResourceRules.size()) { _visitables.get("excludeResourceRules").add(builder); excludeResourceRules.add(builder); } else { _visitables.get("excludeResourceRules").add(index, builder); excludeResourceRules.add(index, builder);} + if (index < 0 || index >= excludeResourceRules.size()) { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(builder); + } else { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(index, builder); + } return (A)this; } public A setToExcludeResourceRules(int index,V1beta1NamedRuleWithOperations item) { if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= excludeResourceRules.size()) { _visitables.get("excludeResourceRules").add(builder); excludeResourceRules.add(builder); } else { _visitables.get("excludeResourceRules").set(index, builder); excludeResourceRules.set(index, builder);} + if (index < 0 || index >= excludeResourceRules.size()) { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(builder); + } else { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.set(index, builder); + } return (A)this; } @@ -287,14 +299,26 @@ public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) public A addToResourceRules(int index,V1beta1NamedRuleWithOperations item) { if (this.resourceRules == null) {this.resourceRules = new ArrayList();} V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); resourceRules.add(builder); } else { _visitables.get("resourceRules").add(index, builder); resourceRules.add(index, builder);} + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.add(index, builder); + } return (A)this; } public A setToResourceRules(int index,V1beta1NamedRuleWithOperations item) { if (this.resourceRules == null) {this.resourceRules = new ArrayList();} V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); resourceRules.add(builder); } else { _visitables.get("resourceRules").set(index, builder); resourceRules.set(index, builder);} + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListFluent.java index bd775e52ec..45d0d9352a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1beta1ResourceClaim item) { if (this.items == null) {this.items = new ArrayList();} V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1beta1ResourceClaim item) { if (this.items == null) {this.items = new ArrayList();} V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusFluent.java index 3442ae77bf..78db278e46 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusFluent.java @@ -79,14 +79,26 @@ public AllocationNested editOrNewAllocationLike(V1beta1AllocationResult item) public A addToDevices(int index,V1beta1AllocatedDeviceStatus item) { if (this.devices == null) {this.devices = new ArrayList();} V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); - if (index < 0 || index >= devices.size()) { _visitables.get("devices").add(builder); devices.add(builder); } else { _visitables.get("devices").add(index, builder); devices.add(index, builder);} + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.add(index, builder); + } return (A)this; } public A setToDevices(int index,V1beta1AllocatedDeviceStatus item) { if (this.devices == null) {this.devices = new ArrayList();} V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); - if (index < 0 || index >= devices.size()) { _visitables.get("devices").add(builder); devices.add(builder); } else { _visitables.get("devices").set(index, builder); devices.set(index, builder);} + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.set(index, builder); + } return (A)this; } @@ -230,14 +242,26 @@ public DevicesNested editMatchingDevice(Predicate();} V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); - if (index < 0 || index >= reservedFor.size()) { _visitables.get("reservedFor").add(builder); reservedFor.add(builder); } else { _visitables.get("reservedFor").add(index, builder); reservedFor.add(index, builder);} + if (index < 0 || index >= reservedFor.size()) { + _visitables.get("reservedFor").add(builder); + reservedFor.add(builder); + } else { + _visitables.get("reservedFor").add(builder); + reservedFor.add(index, builder); + } return (A)this; } public A setToReservedFor(int index,V1beta1ResourceClaimConsumerReference item) { if (this.reservedFor == null) {this.reservedFor = new ArrayList();} V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); - if (index < 0 || index >= reservedFor.size()) { _visitables.get("reservedFor").add(builder); reservedFor.add(builder); } else { _visitables.get("reservedFor").set(index, builder); reservedFor.set(index, builder);} + if (index < 0 || index >= reservedFor.size()) { + _visitables.get("reservedFor").add(builder); + reservedFor.add(builder); + } else { + _visitables.get("reservedFor").add(builder); + reservedFor.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListFluent.java index a03f3b67ef..f0bab0120c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1beta1ResourceClaimTemplate item) { if (this.items == null) {this.items = new ArrayList();} V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1beta1ResourceClaimTemplate item) { if (this.items == null) {this.items = new ArrayList();} V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListFluent.java index 17a566a7a4..ac9a84afcc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1beta1ResourceSlice item) { if (this.items == null) {this.items = new ArrayList();} V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1beta1ResourceSlice item) { if (this.items == null) {this.items = new ArrayList();} V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecBuilder.java index 1a978a13f4..77a29b2932 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecBuilder.java @@ -28,7 +28,9 @@ public V1beta1ResourceSliceSpec build() { buildable.setDriver(fluent.getDriver()); buildable.setNodeName(fluent.getNodeName()); buildable.setNodeSelector(fluent.buildNodeSelector()); + buildable.setPerDeviceNodeSelection(fluent.getPerDeviceNodeSelection()); buildable.setPool(fluent.buildPool()); + buildable.setSharedCounters(fluent.buildSharedCounters()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecFluent.java index 8de833ca81..6fed1f29f3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecFluent.java @@ -29,7 +29,9 @@ public V1beta1ResourceSliceSpecFluent(V1beta1ResourceSliceSpec instance) { private String driver; private String nodeName; private V1NodeSelectorBuilder nodeSelector; + private Boolean perDeviceNodeSelection; private V1beta1ResourcePoolBuilder pool; + private ArrayList sharedCounters; protected void copyInstance(V1beta1ResourceSliceSpec instance) { instance = (instance != null ? instance : new V1beta1ResourceSliceSpec()); @@ -39,7 +41,9 @@ protected void copyInstance(V1beta1ResourceSliceSpec instance) { this.withDriver(instance.getDriver()); this.withNodeName(instance.getNodeName()); this.withNodeSelector(instance.getNodeSelector()); + this.withPerDeviceNodeSelection(instance.getPerDeviceNodeSelection()); this.withPool(instance.getPool()); + this.withSharedCounters(instance.getSharedCounters()); } } @@ -59,14 +63,26 @@ public boolean hasAllNodes() { public A addToDevices(int index,V1beta1Device item) { if (this.devices == null) {this.devices = new ArrayList();} V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); - if (index < 0 || index >= devices.size()) { _visitables.get("devices").add(builder); devices.add(builder); } else { _visitables.get("devices").add(index, builder); devices.add(index, builder);} + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.add(index, builder); + } return (A)this; } public A setToDevices(int index,V1beta1Device item) { if (this.devices == null) {this.devices = new ArrayList();} V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); - if (index < 0 || index >= devices.size()) { _visitables.get("devices").add(builder); devices.add(builder); } else { _visitables.get("devices").set(index, builder); devices.set(index, builder);} + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.set(index, builder); + } return (A)this; } @@ -273,6 +289,19 @@ public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); } + public Boolean getPerDeviceNodeSelection() { + return this.perDeviceNodeSelection; + } + + public A withPerDeviceNodeSelection(Boolean perDeviceNodeSelection) { + this.perDeviceNodeSelection = perDeviceNodeSelection; + return (A) this; + } + + public boolean hasPerDeviceNodeSelection() { + return this.perDeviceNodeSelection != null; + } + public V1beta1ResourcePool buildPool() { return this.pool != null ? this.pool.build() : null; } @@ -313,6 +342,169 @@ public PoolNested editOrNewPoolLike(V1beta1ResourcePool item) { return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(item)); } + public A addToSharedCounters(int index,V1beta1CounterSet item) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); + if (index < 0 || index >= sharedCounters.size()) { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(builder); + } else { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(index, builder); + } + return (A)this; + } + + public A setToSharedCounters(int index,V1beta1CounterSet item) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); + if (index < 0 || index >= sharedCounters.size()) { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(builder); + } else { + _visitables.get("sharedCounters").add(builder); + sharedCounters.set(index, builder); + } + return (A)this; + } + + public A addToSharedCounters(io.kubernetes.client.openapi.models.V1beta1CounterSet... items) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + for (V1beta1CounterSet item : items) {V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item);_visitables.get("sharedCounters").add(builder);this.sharedCounters.add(builder);} return (A)this; + } + + public A addAllToSharedCounters(Collection items) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + for (V1beta1CounterSet item : items) {V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item);_visitables.get("sharedCounters").add(builder);this.sharedCounters.add(builder);} return (A)this; + } + + public A removeFromSharedCounters(io.kubernetes.client.openapi.models.V1beta1CounterSet... items) { + if (this.sharedCounters == null) return (A)this; + for (V1beta1CounterSet item : items) {V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item);_visitables.get("sharedCounters").remove(builder); this.sharedCounters.remove(builder);} return (A)this; + } + + public A removeAllFromSharedCounters(Collection items) { + if (this.sharedCounters == null) return (A)this; + for (V1beta1CounterSet item : items) {V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item);_visitables.get("sharedCounters").remove(builder); this.sharedCounters.remove(builder);} return (A)this; + } + + public A removeMatchingFromSharedCounters(Predicate predicate) { + if (sharedCounters == null) return (A) this; + final Iterator each = sharedCounters.iterator(); + final List visitables = _visitables.get("sharedCounters"); + while (each.hasNext()) { + V1beta1CounterSetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSharedCounters() { + return this.sharedCounters != null ? build(sharedCounters) : null; + } + + public V1beta1CounterSet buildSharedCounter(int index) { + return this.sharedCounters.get(index).build(); + } + + public V1beta1CounterSet buildFirstSharedCounter() { + return this.sharedCounters.get(0).build(); + } + + public V1beta1CounterSet buildLastSharedCounter() { + return this.sharedCounters.get(sharedCounters.size() - 1).build(); + } + + public V1beta1CounterSet buildMatchingSharedCounter(Predicate predicate) { + for (V1beta1CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSharedCounter(Predicate predicate) { + for (V1beta1CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSharedCounters(List sharedCounters) { + if (this.sharedCounters != null) { + this._visitables.get("sharedCounters").clear(); + } + if (sharedCounters != null) { + this.sharedCounters = new ArrayList(); + for (V1beta1CounterSet item : sharedCounters) { + this.addToSharedCounters(item); + } + } else { + this.sharedCounters = null; + } + return (A) this; + } + + public A withSharedCounters(io.kubernetes.client.openapi.models.V1beta1CounterSet... sharedCounters) { + if (this.sharedCounters != null) { + this.sharedCounters.clear(); + _visitables.remove("sharedCounters"); + } + if (sharedCounters != null) { + for (V1beta1CounterSet item : sharedCounters) { + this.addToSharedCounters(item); + } + } + return (A) this; + } + + public boolean hasSharedCounters() { + return this.sharedCounters != null && !this.sharedCounters.isEmpty(); + } + + public SharedCountersNested addNewSharedCounter() { + return new SharedCountersNested(-1, null); + } + + public SharedCountersNested addNewSharedCounterLike(V1beta1CounterSet item) { + return new SharedCountersNested(-1, item); + } + + public SharedCountersNested setNewSharedCounterLike(int index,V1beta1CounterSet item) { + return new SharedCountersNested(index, item); + } + + public SharedCountersNested editSharedCounter(int index) { + if (sharedCounters.size() <= index) throw new RuntimeException("Can't edit sharedCounters. Index exceeds size."); + return setNewSharedCounterLike(index, buildSharedCounter(index)); + } + + public SharedCountersNested editFirstSharedCounter() { + if (sharedCounters.size() == 0) throw new RuntimeException("Can't edit first sharedCounters. The list is empty."); + return setNewSharedCounterLike(0, buildSharedCounter(0)); + } + + public SharedCountersNested editLastSharedCounter() { + int index = sharedCounters.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last sharedCounters. The list is empty."); + return setNewSharedCounterLike(index, buildSharedCounter(index)); + } + + public SharedCountersNested editMatchingSharedCounter(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta1DeviceFluent> implements Nested{ DevicesNested(int index,V1beta1Device item) { this.index = index; @@ -396,6 +596,24 @@ public N endPool() { } + } + public class SharedCountersNested extends V1beta1CounterSetFluent> implements Nested{ + SharedCountersNested(int index,V1beta1CounterSet item) { + this.index = index; + this.builder = new V1beta1CounterSetBuilder(this, item); + } + V1beta1CounterSetBuilder builder; + int index; + + public N and() { + return (N) V1beta1ResourceSliceSpecFluent.this.setToSharedCounters(index,builder.build()); + } + + public N endSharedCounter() { + return and(); + } + + } } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewBuilder.java deleted file mode 100644 index 71a4fe4577..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1SelfSubjectReviewBuilder extends V1beta1SelfSubjectReviewFluent implements VisitableBuilder{ - public V1beta1SelfSubjectReviewBuilder() { - this(new V1beta1SelfSubjectReview()); - } - - public V1beta1SelfSubjectReviewBuilder(V1beta1SelfSubjectReviewFluent fluent) { - this(fluent, new V1beta1SelfSubjectReview()); - } - - public V1beta1SelfSubjectReviewBuilder(V1beta1SelfSubjectReviewFluent fluent,V1beta1SelfSubjectReview instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1SelfSubjectReviewBuilder(V1beta1SelfSubjectReview instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1SelfSubjectReviewFluent fluent; - - public V1beta1SelfSubjectReview build() { - V1beta1SelfSubjectReview buildable = new V1beta1SelfSubjectReview(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - buildable.setStatus(fluent.buildStatus()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatusBuilder.java deleted file mode 100644 index 79875333b0..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatusBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1SelfSubjectReviewStatusBuilder extends V1beta1SelfSubjectReviewStatusFluent implements VisitableBuilder{ - public V1beta1SelfSubjectReviewStatusBuilder() { - this(new V1beta1SelfSubjectReviewStatus()); - } - - public V1beta1SelfSubjectReviewStatusBuilder(V1beta1SelfSubjectReviewStatusFluent fluent) { - this(fluent, new V1beta1SelfSubjectReviewStatus()); - } - - public V1beta1SelfSubjectReviewStatusBuilder(V1beta1SelfSubjectReviewStatusFluent fluent,V1beta1SelfSubjectReviewStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1SelfSubjectReviewStatusBuilder(V1beta1SelfSubjectReviewStatus instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1SelfSubjectReviewStatusFluent fluent; - - public V1beta1SelfSubjectReviewStatus build() { - V1beta1SelfSubjectReviewStatus buildable = new V1beta1SelfSubjectReviewStatus(); - buildable.setUserInfo(fluent.buildUserInfo()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatusFluent.java deleted file mode 100644 index a608f18e16..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatusFluent.java +++ /dev/null @@ -1,106 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta1SelfSubjectReviewStatusFluent> extends BaseFluent{ - public V1beta1SelfSubjectReviewStatusFluent() { - } - - public V1beta1SelfSubjectReviewStatusFluent(V1beta1SelfSubjectReviewStatus instance) { - this.copyInstance(instance); - } - private V1UserInfoBuilder userInfo; - - protected void copyInstance(V1beta1SelfSubjectReviewStatus instance) { - instance = (instance != null ? instance : new V1beta1SelfSubjectReviewStatus()); - if (instance != null) { - this.withUserInfo(instance.getUserInfo()); - } - } - - public V1UserInfo buildUserInfo() { - return this.userInfo != null ? this.userInfo.build() : null; - } - - public A withUserInfo(V1UserInfo userInfo) { - this._visitables.remove("userInfo"); - if (userInfo != null) { - this.userInfo = new V1UserInfoBuilder(userInfo); - this._visitables.get("userInfo").add(this.userInfo); - } else { - this.userInfo = null; - this._visitables.get("userInfo").remove(this.userInfo); - } - return (A) this; - } - - public boolean hasUserInfo() { - return this.userInfo != null; - } - - public UserInfoNested withNewUserInfo() { - return new UserInfoNested(null); - } - - public UserInfoNested withNewUserInfoLike(V1UserInfo item) { - return new UserInfoNested(item); - } - - public UserInfoNested editUserInfo() { - return withNewUserInfoLike(java.util.Optional.ofNullable(buildUserInfo()).orElse(null)); - } - - public UserInfoNested editOrNewUserInfo() { - return withNewUserInfoLike(java.util.Optional.ofNullable(buildUserInfo()).orElse(new V1UserInfoBuilder().build())); - } - - public UserInfoNested editOrNewUserInfoLike(V1UserInfo item) { - return withNewUserInfoLike(java.util.Optional.ofNullable(buildUserInfo()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta1SelfSubjectReviewStatusFluent that = (V1beta1SelfSubjectReviewStatusFluent) o; - if (!java.util.Objects.equals(userInfo, that.userInfo)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(userInfo, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (userInfo != null) { sb.append("userInfo:"); sb.append(userInfo); } - sb.append("}"); - return sb.toString(); - } - public class UserInfoNested extends V1UserInfoFluent> implements Nested{ - UserInfoNested(V1UserInfo item) { - this.builder = new V1UserInfoBuilder(this, item); - } - V1UserInfoBuilder builder; - - public N and() { - return (N) V1beta1SelfSubjectReviewStatusFluent.this.withUserInfo(builder.build()); - } - - public N endUserInfo() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java index ed976bc04b..820632541e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1beta1ServiceCIDR item) { if (this.items == null) {this.items = new ArrayList();} V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1beta1ServiceCIDR item) { if (this.items == null) {this.items = new ArrayList();} V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java index 5c4f501dfd..f476967399 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1beta1ServiceCIDRStatus instance) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeCheckingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeCheckingFluent.java index e7ab629351..efcc2d7d1e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeCheckingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeCheckingFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1beta1TypeChecking instance) { public A addToExpressionWarnings(int index,V1beta1ExpressionWarning item) { if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} V1beta1ExpressionWarningBuilder builder = new V1beta1ExpressionWarningBuilder(item); - if (index < 0 || index >= expressionWarnings.size()) { _visitables.get("expressionWarnings").add(builder); expressionWarnings.add(builder); } else { _visitables.get("expressionWarnings").add(index, builder); expressionWarnings.add(index, builder);} + if (index < 0 || index >= expressionWarnings.size()) { + _visitables.get("expressionWarnings").add(builder); + expressionWarnings.add(builder); + } else { + _visitables.get("expressionWarnings").add(builder); + expressionWarnings.add(index, builder); + } return (A)this; } public A setToExpressionWarnings(int index,V1beta1ExpressionWarning item) { if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} V1beta1ExpressionWarningBuilder builder = new V1beta1ExpressionWarningBuilder(item); - if (index < 0 || index >= expressionWarnings.size()) { _visitables.get("expressionWarnings").add(builder); expressionWarnings.add(builder); } else { _visitables.get("expressionWarnings").set(index, builder); expressionWarnings.set(index, builder);} + if (index < 0 || index >= expressionWarnings.size()) { + _visitables.get("expressionWarnings").add(builder); + expressionWarnings.add(builder); + } else { + _visitables.get("expressionWarnings").add(builder); + expressionWarnings.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingListFluent.java index d4fffbf36e..5fe25d0e6b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1beta1ValidatingAdmissionPolicyBinding item) { if (this.items == null) {this.items = new ArrayList();} V1beta1ValidatingAdmissionPolicyBindingBuilder builder = new V1beta1ValidatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1beta1ValidatingAdmissionPolicyBinding item) { if (this.items == null) {this.items = new ArrayList();} V1beta1ValidatingAdmissionPolicyBindingBuilder builder = new V1beta1ValidatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyListFluent.java index 7353e234bc..53d9f72b64 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1beta1ValidatingAdmissionPolicy item) { if (this.items == null) {this.items = new ArrayList();} V1beta1ValidatingAdmissionPolicyBuilder builder = new V1beta1ValidatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1beta1ValidatingAdmissionPolicy item) { if (this.items == null) {this.items = new ArrayList();} V1beta1ValidatingAdmissionPolicyBuilder builder = new V1beta1ValidatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpecFluent.java index 7e37dfeeb2..9f57b536f8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpecFluent.java @@ -47,14 +47,26 @@ protected void copyInstance(V1beta1ValidatingAdmissionPolicySpec instance) { public A addToAuditAnnotations(int index,V1beta1AuditAnnotation item) { if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} V1beta1AuditAnnotationBuilder builder = new V1beta1AuditAnnotationBuilder(item); - if (index < 0 || index >= auditAnnotations.size()) { _visitables.get("auditAnnotations").add(builder); auditAnnotations.add(builder); } else { _visitables.get("auditAnnotations").add(index, builder); auditAnnotations.add(index, builder);} + if (index < 0 || index >= auditAnnotations.size()) { + _visitables.get("auditAnnotations").add(builder); + auditAnnotations.add(builder); + } else { + _visitables.get("auditAnnotations").add(builder); + auditAnnotations.add(index, builder); + } return (A)this; } public A setToAuditAnnotations(int index,V1beta1AuditAnnotation item) { if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} V1beta1AuditAnnotationBuilder builder = new V1beta1AuditAnnotationBuilder(item); - if (index < 0 || index >= auditAnnotations.size()) { _visitables.get("auditAnnotations").add(builder); auditAnnotations.add(builder); } else { _visitables.get("auditAnnotations").set(index, builder); auditAnnotations.set(index, builder);} + if (index < 0 || index >= auditAnnotations.size()) { + _visitables.get("auditAnnotations").add(builder); + auditAnnotations.add(builder); + } else { + _visitables.get("auditAnnotations").add(builder); + auditAnnotations.set(index, builder); + } return (A)this; } @@ -211,14 +223,26 @@ public boolean hasFailurePolicy() { public A addToMatchConditions(int index,V1beta1MatchCondition item) { if (this.matchConditions == null) {this.matchConditions = new ArrayList();} V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); matchConditions.add(builder); } else { _visitables.get("matchConditions").add(index, builder); matchConditions.add(index, builder);} + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.add(index, builder); + } return (A)this; } public A setToMatchConditions(int index,V1beta1MatchCondition item) { if (this.matchConditions == null) {this.matchConditions = new ArrayList();} V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); matchConditions.add(builder); } else { _visitables.get("matchConditions").set(index, builder); matchConditions.set(index, builder);} + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.set(index, builder); + } return (A)this; } @@ -442,14 +466,26 @@ public ParamKindNested editOrNewParamKindLike(V1beta1ParamKind item) { public A addToValidations(int index,V1beta1Validation item) { if (this.validations == null) {this.validations = new ArrayList();} V1beta1ValidationBuilder builder = new V1beta1ValidationBuilder(item); - if (index < 0 || index >= validations.size()) { _visitables.get("validations").add(builder); validations.add(builder); } else { _visitables.get("validations").add(index, builder); validations.add(index, builder);} + if (index < 0 || index >= validations.size()) { + _visitables.get("validations").add(builder); + validations.add(builder); + } else { + _visitables.get("validations").add(builder); + validations.add(index, builder); + } return (A)this; } public A setToValidations(int index,V1beta1Validation item) { if (this.validations == null) {this.validations = new ArrayList();} V1beta1ValidationBuilder builder = new V1beta1ValidationBuilder(item); - if (index < 0 || index >= validations.size()) { _visitables.get("validations").add(builder); validations.add(builder); } else { _visitables.get("validations").set(index, builder); validations.set(index, builder);} + if (index < 0 || index >= validations.size()) { + _visitables.get("validations").add(builder); + validations.add(builder); + } else { + _visitables.get("validations").add(builder); + validations.set(index, builder); + } return (A)this; } @@ -593,14 +629,26 @@ public ValidationsNested editMatchingValidation(Predicate();} V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); - if (index < 0 || index >= variables.size()) { _visitables.get("variables").add(builder); variables.add(builder); } else { _visitables.get("variables").add(index, builder); variables.add(index, builder);} + if (index < 0 || index >= variables.size()) { + _visitables.get("variables").add(builder); + variables.add(builder); + } else { + _visitables.get("variables").add(builder); + variables.add(index, builder); + } return (A)this; } public A setToVariables(int index,V1beta1Variable item) { if (this.variables == null) {this.variables = new ArrayList();} V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); - if (index < 0 || index >= variables.size()) { _visitables.get("variables").add(builder); variables.add(builder); } else { _visitables.get("variables").set(index, builder); variables.set(index, builder);} + if (index < 0 || index >= variables.size()) { + _visitables.get("variables").add(builder); + variables.add(builder); + } else { + _visitables.get("variables").add(builder); + variables.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatusFluent.java index 9ffa73097e..42468e0cb6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatusFluent.java @@ -40,14 +40,26 @@ protected void copyInstance(V1beta1ValidatingAdmissionPolicyStatus instance) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListFluent.java index 0c85c86381..44b615d002 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1beta1VolumeAttributesClass item) { if (this.items == null) {this.items = new ArrayList();} V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1beta1VolumeAttributesClass item) { if (this.items == null) {this.items = new ArrayList();} V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusBuilder.java new file mode 100644 index 0000000000..d5e101c8e1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2AllocatedDeviceStatusBuilder extends V1beta2AllocatedDeviceStatusFluent implements VisitableBuilder{ + public V1beta2AllocatedDeviceStatusBuilder() { + this(new V1beta2AllocatedDeviceStatus()); + } + + public V1beta2AllocatedDeviceStatusBuilder(V1beta2AllocatedDeviceStatusFluent fluent) { + this(fluent, new V1beta2AllocatedDeviceStatus()); + } + + public V1beta2AllocatedDeviceStatusBuilder(V1beta2AllocatedDeviceStatusFluent fluent,V1beta2AllocatedDeviceStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2AllocatedDeviceStatusBuilder(V1beta2AllocatedDeviceStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2AllocatedDeviceStatusFluent fluent; + + public V1beta2AllocatedDeviceStatus build() { + V1beta2AllocatedDeviceStatus buildable = new V1beta2AllocatedDeviceStatus(); + buildable.setConditions(fluent.buildConditions()); + buildable.setData(fluent.getData()); + buildable.setDevice(fluent.getDevice()); + buildable.setDriver(fluent.getDriver()); + buildable.setNetworkData(fluent.buildNetworkData()); + buildable.setPool(fluent.getPool()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusFluent.java new file mode 100644 index 0000000000..05ee44635a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusFluent.java @@ -0,0 +1,365 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2AllocatedDeviceStatusFluent> extends BaseFluent{ + public V1beta2AllocatedDeviceStatusFluent() { + } + + public V1beta2AllocatedDeviceStatusFluent(V1beta2AllocatedDeviceStatus instance) { + this.copyInstance(instance); + } + private ArrayList conditions; + private Object data; + private String device; + private String driver; + private V1beta2NetworkDeviceDataBuilder networkData; + private String pool; + + protected void copyInstance(V1beta2AllocatedDeviceStatus instance) { + instance = (instance != null ? instance : new V1beta2AllocatedDeviceStatus()); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withData(instance.getData()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withNetworkData(instance.getNetworkData()); + this.withPool(instance.getPool()); + } + } + + public A addToConditions(int index,V1Condition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } + return (A)this; + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A)this; + } + + public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + } + + public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items) { + if (this.conditions == null) return (A)this; + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) return (A)this; + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) return (A) this; + final Iterator each = conditions.iterator(); + final List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public V1Condition buildFirstCondition() { + return this.conditions.get(0).build(); + } + + public V1Condition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); + } + + public V1Condition buildMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public boolean hasConditions() { + return this.conditions != null && !this.conditions.isEmpty(); + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); + return setNewConditionLike(index, buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); + return setNewConditionLike(0, buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last conditions. The list is empty."); + return setNewConditionLike(index, buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i=0;i withNewNetworkData() { + return new NetworkDataNested(null); + } + + public NetworkDataNested withNewNetworkDataLike(V1beta2NetworkDeviceData item) { + return new NetworkDataNested(item); + } + + public NetworkDataNested editNetworkData() { + return withNewNetworkDataLike(java.util.Optional.ofNullable(buildNetworkData()).orElse(null)); + } + + public NetworkDataNested editOrNewNetworkData() { + return withNewNetworkDataLike(java.util.Optional.ofNullable(buildNetworkData()).orElse(new V1beta2NetworkDeviceDataBuilder().build())); + } + + public NetworkDataNested editOrNewNetworkDataLike(V1beta2NetworkDeviceData item) { + return withNewNetworkDataLike(java.util.Optional.ofNullable(buildNetworkData()).orElse(item)); + } + + public String getPool() { + return this.pool; + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public boolean hasPool() { + return this.pool != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2AllocatedDeviceStatusFluent that = (V1beta2AllocatedDeviceStatusFluent) o; + if (!java.util.Objects.equals(conditions, that.conditions)) return false; + if (!java.util.Objects.equals(data, that.data)) return false; + if (!java.util.Objects.equals(device, that.device)) return false; + if (!java.util.Objects.equals(driver, that.driver)) return false; + if (!java.util.Objects.equals(networkData, that.networkData)) return false; + if (!java.util.Objects.equals(pool, that.pool)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(conditions, data, device, driver, networkData, pool, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } + if (data != null) { sb.append("data:"); sb.append(data + ","); } + if (device != null) { sb.append("device:"); sb.append(device + ","); } + if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } + if (networkData != null) { sb.append("networkData:"); sb.append(networkData + ","); } + if (pool != null) { sb.append("pool:"); sb.append(pool); } + sb.append("}"); + return sb.toString(); + } + public class ConditionsNested extends V1ConditionFluent> implements Nested{ + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + V1ConditionBuilder builder; + int index; + + public N and() { + return (N) V1beta2AllocatedDeviceStatusFluent.this.setToConditions(index,builder.build()); + } + + public N endCondition() { + return and(); + } + + + } + public class NetworkDataNested extends V1beta2NetworkDeviceDataFluent> implements Nested{ + NetworkDataNested(V1beta2NetworkDeviceData item) { + this.builder = new V1beta2NetworkDeviceDataBuilder(this, item); + } + V1beta2NetworkDeviceDataBuilder builder; + + public N and() { + return (N) V1beta2AllocatedDeviceStatusFluent.this.withNetworkData(builder.build()); + } + + public N endNetworkData() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultBuilder.java new file mode 100644 index 0000000000..df5522d2d8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2AllocationResultBuilder extends V1beta2AllocationResultFluent implements VisitableBuilder{ + public V1beta2AllocationResultBuilder() { + this(new V1beta2AllocationResult()); + } + + public V1beta2AllocationResultBuilder(V1beta2AllocationResultFluent fluent) { + this(fluent, new V1beta2AllocationResult()); + } + + public V1beta2AllocationResultBuilder(V1beta2AllocationResultFluent fluent,V1beta2AllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2AllocationResultBuilder(V1beta2AllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2AllocationResultFluent fluent; + + public V1beta2AllocationResult build() { + V1beta2AllocationResult buildable = new V1beta2AllocationResult(); + buildable.setDevices(fluent.buildDevices()); + buildable.setNodeSelector(fluent.buildNodeSelector()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultFluent.java new file mode 100644 index 0000000000..2019cbe1b1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultFluent.java @@ -0,0 +1,166 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2AllocationResultFluent> extends BaseFluent{ + public V1beta2AllocationResultFluent() { + } + + public V1beta2AllocationResultFluent(V1beta2AllocationResult instance) { + this.copyInstance(instance); + } + private V1beta2DeviceAllocationResultBuilder devices; + private V1NodeSelectorBuilder nodeSelector; + + protected void copyInstance(V1beta2AllocationResult instance) { + instance = (instance != null ? instance : new V1beta2AllocationResult()); + if (instance != null) { + this.withDevices(instance.getDevices()); + this.withNodeSelector(instance.getNodeSelector()); + } + } + + public V1beta2DeviceAllocationResult buildDevices() { + return this.devices != null ? this.devices.build() : null; + } + + public A withDevices(V1beta2DeviceAllocationResult devices) { + this._visitables.remove("devices"); + if (devices != null) { + this.devices = new V1beta2DeviceAllocationResultBuilder(devices); + this._visitables.get("devices").add(this.devices); + } else { + this.devices = null; + this._visitables.get("devices").remove(this.devices); + } + return (A) this; + } + + public boolean hasDevices() { + return this.devices != null; + } + + public DevicesNested withNewDevices() { + return new DevicesNested(null); + } + + public DevicesNested withNewDevicesLike(V1beta2DeviceAllocationResult item) { + return new DevicesNested(item); + } + + public DevicesNested editDevices() { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(null)); + } + + public DevicesNested editOrNewDevices() { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(new V1beta2DeviceAllocationResultBuilder().build())); + } + + public DevicesNested editOrNewDevicesLike(V1beta2DeviceAllocationResult item) { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(item)); + } + + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; + } + + public A withNodeSelector(V1NodeSelector nodeSelector) { + this._visitables.remove("nodeSelector"); + if (nodeSelector != null) { + this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); + this._visitables.get("nodeSelector").add(this.nodeSelector); + } else { + this.nodeSelector = null; + this._visitables.get("nodeSelector").remove(this.nodeSelector); + } + return (A) this; + } + + public boolean hasNodeSelector() { + return this.nodeSelector != null; + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public NodeSelectorNested editNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2AllocationResultFluent that = (V1beta2AllocationResultFluent) o; + if (!java.util.Objects.equals(devices, that.devices)) return false; + if (!java.util.Objects.equals(nodeSelector, that.nodeSelector)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(devices, nodeSelector, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (devices != null) { sb.append("devices:"); sb.append(devices + ","); } + if (nodeSelector != null) { sb.append("nodeSelector:"); sb.append(nodeSelector); } + sb.append("}"); + return sb.toString(); + } + public class DevicesNested extends V1beta2DeviceAllocationResultFluent> implements Nested{ + DevicesNested(V1beta2DeviceAllocationResult item) { + this.builder = new V1beta2DeviceAllocationResultBuilder(this, item); + } + V1beta2DeviceAllocationResultBuilder builder; + + public N and() { + return (N) V1beta2AllocationResultFluent.this.withDevices(builder.build()); + } + + public N endDevices() { + return and(); + } + + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + V1NodeSelectorBuilder builder; + + public N and() { + return (N) V1beta2AllocationResultFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorBuilder.java new file mode 100644 index 0000000000..d34484d684 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2CELDeviceSelectorBuilder extends V1beta2CELDeviceSelectorFluent implements VisitableBuilder{ + public V1beta2CELDeviceSelectorBuilder() { + this(new V1beta2CELDeviceSelector()); + } + + public V1beta2CELDeviceSelectorBuilder(V1beta2CELDeviceSelectorFluent fluent) { + this(fluent, new V1beta2CELDeviceSelector()); + } + + public V1beta2CELDeviceSelectorBuilder(V1beta2CELDeviceSelectorFluent fluent,V1beta2CELDeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2CELDeviceSelectorBuilder(V1beta2CELDeviceSelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2CELDeviceSelectorFluent fluent; + + public V1beta2CELDeviceSelector build() { + V1beta2CELDeviceSelector buildable = new V1beta2CELDeviceSelector(); + buildable.setExpression(fluent.getExpression()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorFluent.java new file mode 100644 index 0000000000..2a2468d9a4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorFluent.java @@ -0,0 +1,63 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2CELDeviceSelectorFluent> extends BaseFluent{ + public V1beta2CELDeviceSelectorFluent() { + } + + public V1beta2CELDeviceSelectorFluent(V1beta2CELDeviceSelector instance) { + this.copyInstance(instance); + } + private String expression; + + protected void copyInstance(V1beta2CELDeviceSelector instance) { + instance = (instance != null ? instance : new V1beta2CELDeviceSelector()); + if (instance != null) { + this.withExpression(instance.getExpression()); + } + } + + public String getExpression() { + return this.expression; + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2CELDeviceSelectorFluent that = (V1beta2CELDeviceSelectorFluent) o; + if (!java.util.Objects.equals(expression, that.expression)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(expression, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (expression != null) { sb.append("expression:"); sb.append(expression); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterBuilder.java new file mode 100644 index 0000000000..a50aac3035 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2CounterBuilder extends V1beta2CounterFluent implements VisitableBuilder{ + public V1beta2CounterBuilder() { + this(new V1beta2Counter()); + } + + public V1beta2CounterBuilder(V1beta2CounterFluent fluent) { + this(fluent, new V1beta2Counter()); + } + + public V1beta2CounterBuilder(V1beta2CounterFluent fluent,V1beta2Counter instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2CounterBuilder(V1beta2Counter instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2CounterFluent fluent; + + public V1beta2Counter build() { + V1beta2Counter buildable = new V1beta2Counter(); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterFluent.java new file mode 100644 index 0000000000..32764efe67 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterFluent.java @@ -0,0 +1,68 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2CounterFluent> extends BaseFluent{ + public V1beta2CounterFluent() { + } + + public V1beta2CounterFluent(V1beta2Counter instance) { + this.copyInstance(instance); + } + private Quantity value; + + protected void copyInstance(V1beta2Counter instance) { + instance = (instance != null ? instance : new V1beta2Counter()); + if (instance != null) { + this.withValue(instance.getValue()); + } + } + + public Quantity getValue() { + return this.value; + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public A withNewValue(String value) { + return (A)withValue(new Quantity(value)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2CounterFluent that = (V1beta2CounterFluent) o; + if (!java.util.Objects.equals(value, that.value)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(value, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (value != null) { sb.append("value:"); sb.append(value); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetBuilder.java new file mode 100644 index 0000000000..252f2e9daa --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2CounterSetBuilder extends V1beta2CounterSetFluent implements VisitableBuilder{ + public V1beta2CounterSetBuilder() { + this(new V1beta2CounterSet()); + } + + public V1beta2CounterSetBuilder(V1beta2CounterSetFluent fluent) { + this(fluent, new V1beta2CounterSet()); + } + + public V1beta2CounterSetBuilder(V1beta2CounterSetFluent fluent,V1beta2CounterSet instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2CounterSetBuilder(V1beta2CounterSet instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2CounterSetFluent fluent; + + public V1beta2CounterSet build() { + V1beta2CounterSet buildable = new V1beta2CounterSet(); + buildable.setCounters(fluent.getCounters()); + buildable.setName(fluent.getName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetFluent.java new file mode 100644 index 0000000000..39f59bbc70 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.util.Map; +import java.util.LinkedHashMap; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2CounterSetFluent> extends BaseFluent{ + public V1beta2CounterSetFluent() { + } + + public V1beta2CounterSetFluent(V1beta2CounterSet instance) { + this.copyInstance(instance); + } + private Map counters; + private String name; + + protected void copyInstance(V1beta2CounterSet instance) { + instance = (instance != null ? instance : new V1beta2CounterSet()); + if (instance != null) { + this.withCounters(instance.getCounters()); + this.withName(instance.getName()); + } + } + + public A addToCounters(String key,V1beta2Counter value) { + if(this.counters == null && key != null && value != null) { this.counters = new LinkedHashMap(); } + if(key != null && value != null) {this.counters.put(key, value);} return (A)this; + } + + public A addToCounters(Map map) { + if(this.counters == null && map != null) { this.counters = new LinkedHashMap(); } + if(map != null) { this.counters.putAll(map);} return (A)this; + } + + public A removeFromCounters(String key) { + if(this.counters == null) { return (A) this; } + if(key != null && this.counters != null) {this.counters.remove(key);} return (A)this; + } + + public A removeFromCounters(Map map) { + if(this.counters == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.counters != null){this.counters.remove(key);}}} return (A)this; + } + + public Map getCounters() { + return this.counters; + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2CounterSetFluent that = (V1beta2CounterSetFluent) o; + if (!java.util.Objects.equals(counters, that.counters)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(counters, name, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (counters != null && !counters.isEmpty()) { sb.append("counters:"); sb.append(counters + ","); } + if (name != null) { sb.append("name:"); sb.append(name); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationBuilder.java new file mode 100644 index 0000000000..5bd00a16bb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceAllocationConfigurationBuilder extends V1beta2DeviceAllocationConfigurationFluent implements VisitableBuilder{ + public V1beta2DeviceAllocationConfigurationBuilder() { + this(new V1beta2DeviceAllocationConfiguration()); + } + + public V1beta2DeviceAllocationConfigurationBuilder(V1beta2DeviceAllocationConfigurationFluent fluent) { + this(fluent, new V1beta2DeviceAllocationConfiguration()); + } + + public V1beta2DeviceAllocationConfigurationBuilder(V1beta2DeviceAllocationConfigurationFluent fluent,V1beta2DeviceAllocationConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceAllocationConfigurationBuilder(V1beta2DeviceAllocationConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceAllocationConfigurationFluent fluent; + + public V1beta2DeviceAllocationConfiguration build() { + V1beta2DeviceAllocationConfiguration buildable = new V1beta2DeviceAllocationConfiguration(); + buildable.setOpaque(fluent.buildOpaque()); + buildable.setRequests(fluent.getRequests()); + buildable.setSource(fluent.getSource()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationFluent.java new file mode 100644 index 0000000000..85f7eb8ab9 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationFluent.java @@ -0,0 +1,225 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceAllocationConfigurationFluent> extends BaseFluent{ + public V1beta2DeviceAllocationConfigurationFluent() { + } + + public V1beta2DeviceAllocationConfigurationFluent(V1beta2DeviceAllocationConfiguration instance) { + this.copyInstance(instance); + } + private V1beta2OpaqueDeviceConfigurationBuilder opaque; + private List requests; + private String source; + + protected void copyInstance(V1beta2DeviceAllocationConfiguration instance) { + instance = (instance != null ? instance : new V1beta2DeviceAllocationConfiguration()); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); + this.withSource(instance.getSource()); + } + } + + public V1beta2OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + public A withOpaque(V1beta2OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1beta2OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public OpaqueNested editOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(new V1beta2OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(item)); + } + + public A addToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.add(index, item); + return (A)this; + } + + public A setToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.set(index, item); return (A)this; + } + + public A addToRequests(java.lang.String... items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A removeFromRequests(java.lang.String... items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public List getRequests() { + return this.requests; + } + + public String getRequest(int index) { + return this.requests.get(index); + } + + public String getFirstRequest() { + return this.requests.get(0); + } + + public String getLastRequest() { + return this.requests.get(requests.size() - 1); + } + + public String getMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(java.lang.String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != null && !this.requests.isEmpty(); + } + + public String getSource() { + return this.source; + } + + public A withSource(String source) { + this.source = source; + return (A) this; + } + + public boolean hasSource() { + return this.source != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceAllocationConfigurationFluent that = (V1beta2DeviceAllocationConfigurationFluent) o; + if (!java.util.Objects.equals(opaque, that.opaque)) return false; + if (!java.util.Objects.equals(requests, that.requests)) return false; + if (!java.util.Objects.equals(source, that.source)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(opaque, requests, source, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (opaque != null) { sb.append("opaque:"); sb.append(opaque + ","); } + if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests + ","); } + if (source != null) { sb.append("source:"); sb.append(source); } + sb.append("}"); + return sb.toString(); + } + public class OpaqueNested extends V1beta2OpaqueDeviceConfigurationFluent> implements Nested{ + OpaqueNested(V1beta2OpaqueDeviceConfiguration item) { + this.builder = new V1beta2OpaqueDeviceConfigurationBuilder(this, item); + } + V1beta2OpaqueDeviceConfigurationBuilder builder; + + public N and() { + return (N) V1beta2DeviceAllocationConfigurationFluent.this.withOpaque(builder.build()); + } + + public N endOpaque() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultBuilder.java new file mode 100644 index 0000000000..f43a70ed69 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceAllocationResultBuilder extends V1beta2DeviceAllocationResultFluent implements VisitableBuilder{ + public V1beta2DeviceAllocationResultBuilder() { + this(new V1beta2DeviceAllocationResult()); + } + + public V1beta2DeviceAllocationResultBuilder(V1beta2DeviceAllocationResultFluent fluent) { + this(fluent, new V1beta2DeviceAllocationResult()); + } + + public V1beta2DeviceAllocationResultBuilder(V1beta2DeviceAllocationResultFluent fluent,V1beta2DeviceAllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceAllocationResultBuilder(V1beta2DeviceAllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceAllocationResultFluent fluent; + + public V1beta2DeviceAllocationResult build() { + V1beta2DeviceAllocationResult buildable = new V1beta2DeviceAllocationResult(); + buildable.setConfig(fluent.buildConfig()); + buildable.setResults(fluent.buildResults()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultFluent.java new file mode 100644 index 0000000000..ead0cc4a14 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultFluent.java @@ -0,0 +1,422 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceAllocationResultFluent> extends BaseFluent{ + public V1beta2DeviceAllocationResultFluent() { + } + + public V1beta2DeviceAllocationResultFluent(V1beta2DeviceAllocationResult instance) { + this.copyInstance(instance); + } + private ArrayList config; + private ArrayList results; + + protected void copyInstance(V1beta2DeviceAllocationResult instance) { + instance = (instance != null ? instance : new V1beta2DeviceAllocationResult()); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withResults(instance.getResults()); + } + } + + public A addToConfig(int index,V1beta2DeviceAllocationConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); + } + return (A)this; + } + + public A setToConfig(int index,V1beta2DeviceAllocationConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } + return (A)this; + } + + public A addToConfig(io.kubernetes.client.openapi.models.V1beta2DeviceAllocationConfiguration... items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1beta2DeviceAllocationConfiguration item : items) {V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A addAllToConfig(Collection items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1beta2DeviceAllocationConfiguration item : items) {V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A removeFromConfig(io.kubernetes.client.openapi.models.V1beta2DeviceAllocationConfiguration... items) { + if (this.config == null) return (A)this; + for (V1beta2DeviceAllocationConfiguration item : items) {V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) return (A)this; + for (V1beta2DeviceAllocationConfiguration item : items) {V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) return (A) this; + final Iterator each = config.iterator(); + final List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1beta2DeviceAllocationConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConfig() { + return this.config != null ? build(config) : null; + } + + public V1beta2DeviceAllocationConfiguration buildConfig(int index) { + return this.config.get(index).build(); + } + + public V1beta2DeviceAllocationConfiguration buildFirstConfig() { + return this.config.get(0).build(); + } + + public V1beta2DeviceAllocationConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1beta2DeviceAllocationConfiguration buildMatchingConfig(Predicate predicate) { + for (V1beta2DeviceAllocationConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1beta2DeviceAllocationConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1beta2DeviceAllocationConfiguration item : config) { + this.addToConfig(item); + } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(io.kubernetes.client.openapi.models.V1beta2DeviceAllocationConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1beta2DeviceAllocationConfiguration item : config) { + this.addToConfig(item); + } + } + return (A) this; + } + + public boolean hasConfig() { + return this.config != null && !this.config.isEmpty(); + } + + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1beta2DeviceAllocationConfiguration item) { + return new ConfigNested(-1, item); + } + + public ConfigNested setNewConfigLike(int index,V1beta2DeviceAllocationConfiguration item) { + return new ConfigNested(index, item); + } + + public ConfigNested editConfig(int index) { + if (config.size() <= index) throw new RuntimeException("Can't edit config. Index exceeds size."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) throw new RuntimeException("Can't edit first config. The list is empty."); + return setNewConfigLike(0, buildConfig(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last config. The list is empty."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); + if (index < 0 || index >= results.size()) { + _visitables.get("results").add(builder); + results.add(builder); + } else { + _visitables.get("results").add(builder); + results.add(index, builder); + } + return (A)this; + } + + public A setToResults(int index,V1beta2DeviceRequestAllocationResult item) { + if (this.results == null) {this.results = new ArrayList();} + V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); + if (index < 0 || index >= results.size()) { + _visitables.get("results").add(builder); + results.add(builder); + } else { + _visitables.get("results").add(builder); + results.set(index, builder); + } + return (A)this; + } + + public A addToResults(io.kubernetes.client.openapi.models.V1beta2DeviceRequestAllocationResult... items) { + if (this.results == null) {this.results = new ArrayList();} + for (V1beta2DeviceRequestAllocationResult item : items) {V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item);_visitables.get("results").add(builder);this.results.add(builder);} return (A)this; + } + + public A addAllToResults(Collection items) { + if (this.results == null) {this.results = new ArrayList();} + for (V1beta2DeviceRequestAllocationResult item : items) {V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item);_visitables.get("results").add(builder);this.results.add(builder);} return (A)this; + } + + public A removeFromResults(io.kubernetes.client.openapi.models.V1beta2DeviceRequestAllocationResult... items) { + if (this.results == null) return (A)this; + for (V1beta2DeviceRequestAllocationResult item : items) {V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item);_visitables.get("results").remove(builder); this.results.remove(builder);} return (A)this; + } + + public A removeAllFromResults(Collection items) { + if (this.results == null) return (A)this; + for (V1beta2DeviceRequestAllocationResult item : items) {V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item);_visitables.get("results").remove(builder); this.results.remove(builder);} return (A)this; + } + + public A removeMatchingFromResults(Predicate predicate) { + if (results == null) return (A) this; + final Iterator each = results.iterator(); + final List visitables = _visitables.get("results"); + while (each.hasNext()) { + V1beta2DeviceRequestAllocationResultBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildResults() { + return this.results != null ? build(results) : null; + } + + public V1beta2DeviceRequestAllocationResult buildResult(int index) { + return this.results.get(index).build(); + } + + public V1beta2DeviceRequestAllocationResult buildFirstResult() { + return this.results.get(0).build(); + } + + public V1beta2DeviceRequestAllocationResult buildLastResult() { + return this.results.get(results.size() - 1).build(); + } + + public V1beta2DeviceRequestAllocationResult buildMatchingResult(Predicate predicate) { + for (V1beta2DeviceRequestAllocationResultBuilder item : results) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingResult(Predicate predicate) { + for (V1beta2DeviceRequestAllocationResultBuilder item : results) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withResults(List results) { + if (this.results != null) { + this._visitables.get("results").clear(); + } + if (results != null) { + this.results = new ArrayList(); + for (V1beta2DeviceRequestAllocationResult item : results) { + this.addToResults(item); + } + } else { + this.results = null; + } + return (A) this; + } + + public A withResults(io.kubernetes.client.openapi.models.V1beta2DeviceRequestAllocationResult... results) { + if (this.results != null) { + this.results.clear(); + _visitables.remove("results"); + } + if (results != null) { + for (V1beta2DeviceRequestAllocationResult item : results) { + this.addToResults(item); + } + } + return (A) this; + } + + public boolean hasResults() { + return this.results != null && !this.results.isEmpty(); + } + + public ResultsNested addNewResult() { + return new ResultsNested(-1, null); + } + + public ResultsNested addNewResultLike(V1beta2DeviceRequestAllocationResult item) { + return new ResultsNested(-1, item); + } + + public ResultsNested setNewResultLike(int index,V1beta2DeviceRequestAllocationResult item) { + return new ResultsNested(index, item); + } + + public ResultsNested editResult(int index) { + if (results.size() <= index) throw new RuntimeException("Can't edit results. Index exceeds size."); + return setNewResultLike(index, buildResult(index)); + } + + public ResultsNested editFirstResult() { + if (results.size() == 0) throw new RuntimeException("Can't edit first results. The list is empty."); + return setNewResultLike(0, buildResult(0)); + } + + public ResultsNested editLastResult() { + int index = results.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last results. The list is empty."); + return setNewResultLike(index, buildResult(index)); + } + + public ResultsNested editMatchingResult(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta2DeviceAllocationConfigurationFluent> implements Nested{ + ConfigNested(int index,V1beta2DeviceAllocationConfiguration item) { + this.index = index; + this.builder = new V1beta2DeviceAllocationConfigurationBuilder(this, item); + } + V1beta2DeviceAllocationConfigurationBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceAllocationResultFluent.this.setToConfig(index,builder.build()); + } + + public N endConfig() { + return and(); + } + + + } + public class ResultsNested extends V1beta2DeviceRequestAllocationResultFluent> implements Nested{ + ResultsNested(int index,V1beta2DeviceRequestAllocationResult item) { + this.index = index; + this.builder = new V1beta2DeviceRequestAllocationResultBuilder(this, item); + } + V1beta2DeviceRequestAllocationResultBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceAllocationResultFluent.this.setToResults(index,builder.build()); + } + + public N endResult() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeBuilder.java new file mode 100644 index 0000000000..a1c46bf814 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceAttributeBuilder extends V1beta2DeviceAttributeFluent implements VisitableBuilder{ + public V1beta2DeviceAttributeBuilder() { + this(new V1beta2DeviceAttribute()); + } + + public V1beta2DeviceAttributeBuilder(V1beta2DeviceAttributeFluent fluent) { + this(fluent, new V1beta2DeviceAttribute()); + } + + public V1beta2DeviceAttributeBuilder(V1beta2DeviceAttributeFluent fluent,V1beta2DeviceAttribute instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceAttributeBuilder(V1beta2DeviceAttribute instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceAttributeFluent fluent; + + public V1beta2DeviceAttribute build() { + V1beta2DeviceAttribute buildable = new V1beta2DeviceAttribute(); + buildable.setBool(fluent.getBool()); + buildable.setInt(fluent.getInt()); + buildable.setString(fluent.getString()); + buildable.setVersion(fluent.getVersion()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeFluent.java new file mode 100644 index 0000000000..f1380847b3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeFluent.java @@ -0,0 +1,120 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceAttributeFluent> extends BaseFluent{ + public V1beta2DeviceAttributeFluent() { + } + + public V1beta2DeviceAttributeFluent(V1beta2DeviceAttribute instance) { + this.copyInstance(instance); + } + private Boolean bool; + private Long _int; + private String string; + private String version; + + protected void copyInstance(V1beta2DeviceAttribute instance) { + instance = (instance != null ? instance : new V1beta2DeviceAttribute()); + if (instance != null) { + this.withBool(instance.getBool()); + this.withInt(instance.getInt()); + this.withString(instance.getString()); + this.withVersion(instance.getVersion()); + } + } + + public Boolean getBool() { + return this.bool; + } + + public A withBool(Boolean bool) { + this.bool = bool; + return (A) this; + } + + public boolean hasBool() { + return this.bool != null; + } + + public Long getInt() { + return this._int; + } + + public A withInt(Long _int) { + this._int = _int; + return (A) this; + } + + public boolean hasInt() { + return this._int != null; + } + + public String getString() { + return this.string; + } + + public A withString(String string) { + this.string = string; + return (A) this; + } + + public boolean hasString() { + return this.string != null; + } + + public String getVersion() { + return this.version; + } + + public A withVersion(String version) { + this.version = version; + return (A) this; + } + + public boolean hasVersion() { + return this.version != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceAttributeFluent that = (V1beta2DeviceAttributeFluent) o; + if (!java.util.Objects.equals(bool, that.bool)) return false; + if (!java.util.Objects.equals(_int, that._int)) return false; + if (!java.util.Objects.equals(string, that.string)) return false; + if (!java.util.Objects.equals(version, that.version)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(bool, _int, string, version, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (bool != null) { sb.append("bool:"); sb.append(bool + ","); } + if (_int != null) { sb.append("_int:"); sb.append(_int + ","); } + if (string != null) { sb.append("string:"); sb.append(string + ","); } + if (version != null) { sb.append("version:"); sb.append(version); } + sb.append("}"); + return sb.toString(); + } + + public A withBool() { + return withBool(true); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceBuilder.java new file mode 100644 index 0000000000..72c14f3ce8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceBuilder.java @@ -0,0 +1,38 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceBuilder extends V1beta2DeviceFluent implements VisitableBuilder{ + public V1beta2DeviceBuilder() { + this(new V1beta2Device()); + } + + public V1beta2DeviceBuilder(V1beta2DeviceFluent fluent) { + this(fluent, new V1beta2Device()); + } + + public V1beta2DeviceBuilder(V1beta2DeviceFluent fluent,V1beta2Device instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceBuilder(V1beta2Device instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceFluent fluent; + + public V1beta2Device build() { + V1beta2Device buildable = new V1beta2Device(); + buildable.setAllNodes(fluent.getAllNodes()); + buildable.setAttributes(fluent.getAttributes()); + buildable.setCapacity(fluent.getCapacity()); + buildable.setConsumesCounters(fluent.buildConsumesCounters()); + buildable.setName(fluent.getName()); + buildable.setNodeName(fluent.getNodeName()); + buildable.setNodeSelector(fluent.buildNodeSelector()); + buildable.setTaints(fluent.buildTaints()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityBuilder.java new file mode 100644 index 0000000000..dfc7eff4e3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceCapacityBuilder extends V1beta2DeviceCapacityFluent implements VisitableBuilder{ + public V1beta2DeviceCapacityBuilder() { + this(new V1beta2DeviceCapacity()); + } + + public V1beta2DeviceCapacityBuilder(V1beta2DeviceCapacityFluent fluent) { + this(fluent, new V1beta2DeviceCapacity()); + } + + public V1beta2DeviceCapacityBuilder(V1beta2DeviceCapacityFluent fluent,V1beta2DeviceCapacity instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceCapacityBuilder(V1beta2DeviceCapacity instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceCapacityFluent fluent; + + public V1beta2DeviceCapacity build() { + V1beta2DeviceCapacity buildable = new V1beta2DeviceCapacity(); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityFluent.java new file mode 100644 index 0000000000..7e278fde8c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityFluent.java @@ -0,0 +1,68 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceCapacityFluent> extends BaseFluent{ + public V1beta2DeviceCapacityFluent() { + } + + public V1beta2DeviceCapacityFluent(V1beta2DeviceCapacity instance) { + this.copyInstance(instance); + } + private Quantity value; + + protected void copyInstance(V1beta2DeviceCapacity instance) { + instance = (instance != null ? instance : new V1beta2DeviceCapacity()); + if (instance != null) { + this.withValue(instance.getValue()); + } + } + + public Quantity getValue() { + return this.value; + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public A withNewValue(String value) { + return (A)withValue(new Quantity(value)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceCapacityFluent that = (V1beta2DeviceCapacityFluent) o; + if (!java.util.Objects.equals(value, that.value)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(value, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (value != null) { sb.append("value:"); sb.append(value); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimBuilder.java new file mode 100644 index 0000000000..b3f8ec86d7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceClaimBuilder extends V1beta2DeviceClaimFluent implements VisitableBuilder{ + public V1beta2DeviceClaimBuilder() { + this(new V1beta2DeviceClaim()); + } + + public V1beta2DeviceClaimBuilder(V1beta2DeviceClaimFluent fluent) { + this(fluent, new V1beta2DeviceClaim()); + } + + public V1beta2DeviceClaimBuilder(V1beta2DeviceClaimFluent fluent,V1beta2DeviceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceClaimBuilder(V1beta2DeviceClaim instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceClaimFluent fluent; + + public V1beta2DeviceClaim build() { + V1beta2DeviceClaim buildable = new V1beta2DeviceClaim(); + buildable.setConfig(fluent.buildConfig()); + buildable.setConstraints(fluent.buildConstraints()); + buildable.setRequests(fluent.buildRequests()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationBuilder.java new file mode 100644 index 0000000000..728e2bf90c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceClaimConfigurationBuilder extends V1beta2DeviceClaimConfigurationFluent implements VisitableBuilder{ + public V1beta2DeviceClaimConfigurationBuilder() { + this(new V1beta2DeviceClaimConfiguration()); + } + + public V1beta2DeviceClaimConfigurationBuilder(V1beta2DeviceClaimConfigurationFluent fluent) { + this(fluent, new V1beta2DeviceClaimConfiguration()); + } + + public V1beta2DeviceClaimConfigurationBuilder(V1beta2DeviceClaimConfigurationFluent fluent,V1beta2DeviceClaimConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceClaimConfigurationBuilder(V1beta2DeviceClaimConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceClaimConfigurationFluent fluent; + + public V1beta2DeviceClaimConfiguration build() { + V1beta2DeviceClaimConfiguration buildable = new V1beta2DeviceClaimConfiguration(); + buildable.setOpaque(fluent.buildOpaque()); + buildable.setRequests(fluent.getRequests()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationFluent.java new file mode 100644 index 0000000000..62dedb1471 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationFluent.java @@ -0,0 +1,208 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceClaimConfigurationFluent> extends BaseFluent{ + public V1beta2DeviceClaimConfigurationFluent() { + } + + public V1beta2DeviceClaimConfigurationFluent(V1beta2DeviceClaimConfiguration instance) { + this.copyInstance(instance); + } + private V1beta2OpaqueDeviceConfigurationBuilder opaque; + private List requests; + + protected void copyInstance(V1beta2DeviceClaimConfiguration instance) { + instance = (instance != null ? instance : new V1beta2DeviceClaimConfiguration()); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); + } + } + + public V1beta2OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + public A withOpaque(V1beta2OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1beta2OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public OpaqueNested editOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(new V1beta2OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(item)); + } + + public A addToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.add(index, item); + return (A)this; + } + + public A setToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.set(index, item); return (A)this; + } + + public A addToRequests(java.lang.String... items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A removeFromRequests(java.lang.String... items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public List getRequests() { + return this.requests; + } + + public String getRequest(int index) { + return this.requests.get(index); + } + + public String getFirstRequest() { + return this.requests.get(0); + } + + public String getLastRequest() { + return this.requests.get(requests.size() - 1); + } + + public String getMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(java.lang.String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != null && !this.requests.isEmpty(); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceClaimConfigurationFluent that = (V1beta2DeviceClaimConfigurationFluent) o; + if (!java.util.Objects.equals(opaque, that.opaque)) return false; + if (!java.util.Objects.equals(requests, that.requests)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(opaque, requests, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (opaque != null) { sb.append("opaque:"); sb.append(opaque + ","); } + if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests); } + sb.append("}"); + return sb.toString(); + } + public class OpaqueNested extends V1beta2OpaqueDeviceConfigurationFluent> implements Nested{ + OpaqueNested(V1beta2OpaqueDeviceConfiguration item) { + this.builder = new V1beta2OpaqueDeviceConfigurationBuilder(this, item); + } + V1beta2OpaqueDeviceConfigurationBuilder builder; + + public N and() { + return (N) V1beta2DeviceClaimConfigurationFluent.this.withOpaque(builder.build()); + } + + public N endOpaque() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimFluent.java new file mode 100644 index 0000000000..5860c18c0d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimFluent.java @@ -0,0 +1,607 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceClaimFluent> extends BaseFluent{ + public V1beta2DeviceClaimFluent() { + } + + public V1beta2DeviceClaimFluent(V1beta2DeviceClaim instance) { + this.copyInstance(instance); + } + private ArrayList config; + private ArrayList constraints; + private ArrayList requests; + + protected void copyInstance(V1beta2DeviceClaim instance) { + instance = (instance != null ? instance : new V1beta2DeviceClaim()); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withConstraints(instance.getConstraints()); + this.withRequests(instance.getRequests()); + } + } + + public A addToConfig(int index,V1beta2DeviceClaimConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); + } + return (A)this; + } + + public A setToConfig(int index,V1beta2DeviceClaimConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } + return (A)this; + } + + public A addToConfig(io.kubernetes.client.openapi.models.V1beta2DeviceClaimConfiguration... items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1beta2DeviceClaimConfiguration item : items) {V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A addAllToConfig(Collection items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1beta2DeviceClaimConfiguration item : items) {V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A removeFromConfig(io.kubernetes.client.openapi.models.V1beta2DeviceClaimConfiguration... items) { + if (this.config == null) return (A)this; + for (V1beta2DeviceClaimConfiguration item : items) {V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) return (A)this; + for (V1beta2DeviceClaimConfiguration item : items) {V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) return (A) this; + final Iterator each = config.iterator(); + final List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1beta2DeviceClaimConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConfig() { + return this.config != null ? build(config) : null; + } + + public V1beta2DeviceClaimConfiguration buildConfig(int index) { + return this.config.get(index).build(); + } + + public V1beta2DeviceClaimConfiguration buildFirstConfig() { + return this.config.get(0).build(); + } + + public V1beta2DeviceClaimConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1beta2DeviceClaimConfiguration buildMatchingConfig(Predicate predicate) { + for (V1beta2DeviceClaimConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1beta2DeviceClaimConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1beta2DeviceClaimConfiguration item : config) { + this.addToConfig(item); + } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(io.kubernetes.client.openapi.models.V1beta2DeviceClaimConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1beta2DeviceClaimConfiguration item : config) { + this.addToConfig(item); + } + } + return (A) this; + } + + public boolean hasConfig() { + return this.config != null && !this.config.isEmpty(); + } + + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1beta2DeviceClaimConfiguration item) { + return new ConfigNested(-1, item); + } + + public ConfigNested setNewConfigLike(int index,V1beta2DeviceClaimConfiguration item) { + return new ConfigNested(index, item); + } + + public ConfigNested editConfig(int index) { + if (config.size() <= index) throw new RuntimeException("Can't edit config. Index exceeds size."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) throw new RuntimeException("Can't edit first config. The list is empty."); + return setNewConfigLike(0, buildConfig(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last config. The list is empty."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); + if (index < 0 || index >= constraints.size()) { + _visitables.get("constraints").add(builder); + constraints.add(builder); + } else { + _visitables.get("constraints").add(builder); + constraints.add(index, builder); + } + return (A)this; + } + + public A setToConstraints(int index,V1beta2DeviceConstraint item) { + if (this.constraints == null) {this.constraints = new ArrayList();} + V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); + if (index < 0 || index >= constraints.size()) { + _visitables.get("constraints").add(builder); + constraints.add(builder); + } else { + _visitables.get("constraints").add(builder); + constraints.set(index, builder); + } + return (A)this; + } + + public A addToConstraints(io.kubernetes.client.openapi.models.V1beta2DeviceConstraint... items) { + if (this.constraints == null) {this.constraints = new ArrayList();} + for (V1beta2DeviceConstraint item : items) {V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item);_visitables.get("constraints").add(builder);this.constraints.add(builder);} return (A)this; + } + + public A addAllToConstraints(Collection items) { + if (this.constraints == null) {this.constraints = new ArrayList();} + for (V1beta2DeviceConstraint item : items) {V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item);_visitables.get("constraints").add(builder);this.constraints.add(builder);} return (A)this; + } + + public A removeFromConstraints(io.kubernetes.client.openapi.models.V1beta2DeviceConstraint... items) { + if (this.constraints == null) return (A)this; + for (V1beta2DeviceConstraint item : items) {V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item);_visitables.get("constraints").remove(builder); this.constraints.remove(builder);} return (A)this; + } + + public A removeAllFromConstraints(Collection items) { + if (this.constraints == null) return (A)this; + for (V1beta2DeviceConstraint item : items) {V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item);_visitables.get("constraints").remove(builder); this.constraints.remove(builder);} return (A)this; + } + + public A removeMatchingFromConstraints(Predicate predicate) { + if (constraints == null) return (A) this; + final Iterator each = constraints.iterator(); + final List visitables = _visitables.get("constraints"); + while (each.hasNext()) { + V1beta2DeviceConstraintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConstraints() { + return this.constraints != null ? build(constraints) : null; + } + + public V1beta2DeviceConstraint buildConstraint(int index) { + return this.constraints.get(index).build(); + } + + public V1beta2DeviceConstraint buildFirstConstraint() { + return this.constraints.get(0).build(); + } + + public V1beta2DeviceConstraint buildLastConstraint() { + return this.constraints.get(constraints.size() - 1).build(); + } + + public V1beta2DeviceConstraint buildMatchingConstraint(Predicate predicate) { + for (V1beta2DeviceConstraintBuilder item : constraints) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConstraint(Predicate predicate) { + for (V1beta2DeviceConstraintBuilder item : constraints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConstraints(List constraints) { + if (this.constraints != null) { + this._visitables.get("constraints").clear(); + } + if (constraints != null) { + this.constraints = new ArrayList(); + for (V1beta2DeviceConstraint item : constraints) { + this.addToConstraints(item); + } + } else { + this.constraints = null; + } + return (A) this; + } + + public A withConstraints(io.kubernetes.client.openapi.models.V1beta2DeviceConstraint... constraints) { + if (this.constraints != null) { + this.constraints.clear(); + _visitables.remove("constraints"); + } + if (constraints != null) { + for (V1beta2DeviceConstraint item : constraints) { + this.addToConstraints(item); + } + } + return (A) this; + } + + public boolean hasConstraints() { + return this.constraints != null && !this.constraints.isEmpty(); + } + + public ConstraintsNested addNewConstraint() { + return new ConstraintsNested(-1, null); + } + + public ConstraintsNested addNewConstraintLike(V1beta2DeviceConstraint item) { + return new ConstraintsNested(-1, item); + } + + public ConstraintsNested setNewConstraintLike(int index,V1beta2DeviceConstraint item) { + return new ConstraintsNested(index, item); + } + + public ConstraintsNested editConstraint(int index) { + if (constraints.size() <= index) throw new RuntimeException("Can't edit constraints. Index exceeds size."); + return setNewConstraintLike(index, buildConstraint(index)); + } + + public ConstraintsNested editFirstConstraint() { + if (constraints.size() == 0) throw new RuntimeException("Can't edit first constraints. The list is empty."); + return setNewConstraintLike(0, buildConstraint(0)); + } + + public ConstraintsNested editLastConstraint() { + int index = constraints.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last constraints. The list is empty."); + return setNewConstraintLike(index, buildConstraint(index)); + } + + public ConstraintsNested editMatchingConstraint(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); + if (index < 0 || index >= requests.size()) { + _visitables.get("requests").add(builder); + requests.add(builder); + } else { + _visitables.get("requests").add(builder); + requests.add(index, builder); + } + return (A)this; + } + + public A setToRequests(int index,V1beta2DeviceRequest item) { + if (this.requests == null) {this.requests = new ArrayList();} + V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); + if (index < 0 || index >= requests.size()) { + _visitables.get("requests").add(builder); + requests.add(builder); + } else { + _visitables.get("requests").add(builder); + requests.set(index, builder); + } + return (A)this; + } + + public A addToRequests(io.kubernetes.client.openapi.models.V1beta2DeviceRequest... items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (V1beta2DeviceRequest item : items) {V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item);_visitables.get("requests").add(builder);this.requests.add(builder);} return (A)this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (V1beta2DeviceRequest item : items) {V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item);_visitables.get("requests").add(builder);this.requests.add(builder);} return (A)this; + } + + public A removeFromRequests(io.kubernetes.client.openapi.models.V1beta2DeviceRequest... items) { + if (this.requests == null) return (A)this; + for (V1beta2DeviceRequest item : items) {V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item);_visitables.get("requests").remove(builder); this.requests.remove(builder);} return (A)this; + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) return (A)this; + for (V1beta2DeviceRequest item : items) {V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item);_visitables.get("requests").remove(builder); this.requests.remove(builder);} return (A)this; + } + + public A removeMatchingFromRequests(Predicate predicate) { + if (requests == null) return (A) this; + final Iterator each = requests.iterator(); + final List visitables = _visitables.get("requests"); + while (each.hasNext()) { + V1beta2DeviceRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildRequests() { + return this.requests != null ? build(requests) : null; + } + + public V1beta2DeviceRequest buildRequest(int index) { + return this.requests.get(index).build(); + } + + public V1beta2DeviceRequest buildFirstRequest() { + return this.requests.get(0).build(); + } + + public V1beta2DeviceRequest buildLastRequest() { + return this.requests.get(requests.size() - 1).build(); + } + + public V1beta2DeviceRequest buildMatchingRequest(Predicate predicate) { + for (V1beta2DeviceRequestBuilder item : requests) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (V1beta2DeviceRequestBuilder item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequests(List requests) { + if (this.requests != null) { + this._visitables.get("requests").clear(); + } + if (requests != null) { + this.requests = new ArrayList(); + for (V1beta2DeviceRequest item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(io.kubernetes.client.openapi.models.V1beta2DeviceRequest... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (V1beta2DeviceRequest item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != null && !this.requests.isEmpty(); + } + + public RequestsNested addNewRequest() { + return new RequestsNested(-1, null); + } + + public RequestsNested addNewRequestLike(V1beta2DeviceRequest item) { + return new RequestsNested(-1, item); + } + + public RequestsNested setNewRequestLike(int index,V1beta2DeviceRequest item) { + return new RequestsNested(index, item); + } + + public RequestsNested editRequest(int index) { + if (requests.size() <= index) throw new RuntimeException("Can't edit requests. Index exceeds size."); + return setNewRequestLike(index, buildRequest(index)); + } + + public RequestsNested editFirstRequest() { + if (requests.size() == 0) throw new RuntimeException("Can't edit first requests. The list is empty."); + return setNewRequestLike(0, buildRequest(0)); + } + + public RequestsNested editLastRequest() { + int index = requests.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last requests. The list is empty."); + return setNewRequestLike(index, buildRequest(index)); + } + + public RequestsNested editMatchingRequest(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta2DeviceClaimConfigurationFluent> implements Nested{ + ConfigNested(int index,V1beta2DeviceClaimConfiguration item) { + this.index = index; + this.builder = new V1beta2DeviceClaimConfigurationBuilder(this, item); + } + V1beta2DeviceClaimConfigurationBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceClaimFluent.this.setToConfig(index,builder.build()); + } + + public N endConfig() { + return and(); + } + + + } + public class ConstraintsNested extends V1beta2DeviceConstraintFluent> implements Nested{ + ConstraintsNested(int index,V1beta2DeviceConstraint item) { + this.index = index; + this.builder = new V1beta2DeviceConstraintBuilder(this, item); + } + V1beta2DeviceConstraintBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceClaimFluent.this.setToConstraints(index,builder.build()); + } + + public N endConstraint() { + return and(); + } + + + } + public class RequestsNested extends V1beta2DeviceRequestFluent> implements Nested{ + RequestsNested(int index,V1beta2DeviceRequest item) { + this.index = index; + this.builder = new V1beta2DeviceRequestBuilder(this, item); + } + V1beta2DeviceRequestBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceClaimFluent.this.setToRequests(index,builder.build()); + } + + public N endRequest() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassBuilder.java new file mode 100644 index 0000000000..2198389d52 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceClassBuilder extends V1beta2DeviceClassFluent implements VisitableBuilder{ + public V1beta2DeviceClassBuilder() { + this(new V1beta2DeviceClass()); + } + + public V1beta2DeviceClassBuilder(V1beta2DeviceClassFluent fluent) { + this(fluent, new V1beta2DeviceClass()); + } + + public V1beta2DeviceClassBuilder(V1beta2DeviceClassFluent fluent,V1beta2DeviceClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceClassBuilder(V1beta2DeviceClass instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceClassFluent fluent; + + public V1beta2DeviceClass build() { + V1beta2DeviceClass buildable = new V1beta2DeviceClass(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationBuilder.java new file mode 100644 index 0000000000..6bdd6f1a4d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceClassConfigurationBuilder extends V1beta2DeviceClassConfigurationFluent implements VisitableBuilder{ + public V1beta2DeviceClassConfigurationBuilder() { + this(new V1beta2DeviceClassConfiguration()); + } + + public V1beta2DeviceClassConfigurationBuilder(V1beta2DeviceClassConfigurationFluent fluent) { + this(fluent, new V1beta2DeviceClassConfiguration()); + } + + public V1beta2DeviceClassConfigurationBuilder(V1beta2DeviceClassConfigurationFluent fluent,V1beta2DeviceClassConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceClassConfigurationBuilder(V1beta2DeviceClassConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceClassConfigurationFluent fluent; + + public V1beta2DeviceClassConfiguration build() { + V1beta2DeviceClassConfiguration buildable = new V1beta2DeviceClassConfiguration(); + buildable.setOpaque(fluent.buildOpaque()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationFluent.java new file mode 100644 index 0000000000..712740dd81 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceClassConfigurationFluent> extends BaseFluent{ + public V1beta2DeviceClassConfigurationFluent() { + } + + public V1beta2DeviceClassConfigurationFluent(V1beta2DeviceClassConfiguration instance) { + this.copyInstance(instance); + } + private V1beta2OpaqueDeviceConfigurationBuilder opaque; + + protected void copyInstance(V1beta2DeviceClassConfiguration instance) { + instance = (instance != null ? instance : new V1beta2DeviceClassConfiguration()); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + } + } + + public V1beta2OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + public A withOpaque(V1beta2OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1beta2OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public OpaqueNested editOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(new V1beta2OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceClassConfigurationFluent that = (V1beta2DeviceClassConfigurationFluent) o; + if (!java.util.Objects.equals(opaque, that.opaque)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(opaque, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (opaque != null) { sb.append("opaque:"); sb.append(opaque); } + sb.append("}"); + return sb.toString(); + } + public class OpaqueNested extends V1beta2OpaqueDeviceConfigurationFluent> implements Nested{ + OpaqueNested(V1beta2OpaqueDeviceConfiguration item) { + this.builder = new V1beta2OpaqueDeviceConfigurationBuilder(this, item); + } + V1beta2OpaqueDeviceConfigurationBuilder builder; + + public N and() { + return (N) V1beta2DeviceClassConfigurationFluent.this.withOpaque(builder.build()); + } + + public N endOpaque() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassFluent.java new file mode 100644 index 0000000000..f89eec41d6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceClassFluent> extends BaseFluent{ + public V1beta2DeviceClassFluent() { + } + + public V1beta2DeviceClassFluent(V1beta2DeviceClass instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta2DeviceClassSpecBuilder spec; + + protected void copyInstance(V1beta2DeviceClass instance) { + instance = (instance != null ? instance : new V1beta2DeviceClass()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1beta2DeviceClassSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1beta2DeviceClassSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta2DeviceClassSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta2DeviceClassSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta2DeviceClassSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta2DeviceClassSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceClassFluent that = (V1beta2DeviceClassFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta2DeviceClassFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1beta2DeviceClassSpecFluent> implements Nested{ + SpecNested(V1beta2DeviceClassSpec item) { + this.builder = new V1beta2DeviceClassSpecBuilder(this, item); + } + V1beta2DeviceClassSpecBuilder builder; + + public N and() { + return (N) V1beta2DeviceClassFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListBuilder.java new file mode 100644 index 0000000000..757decc167 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceClassListBuilder extends V1beta2DeviceClassListFluent implements VisitableBuilder{ + public V1beta2DeviceClassListBuilder() { + this(new V1beta2DeviceClassList()); + } + + public V1beta2DeviceClassListBuilder(V1beta2DeviceClassListFluent fluent) { + this(fluent, new V1beta2DeviceClassList()); + } + + public V1beta2DeviceClassListBuilder(V1beta2DeviceClassListFluent fluent,V1beta2DeviceClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceClassListBuilder(V1beta2DeviceClassList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceClassListFluent fluent; + + public V1beta2DeviceClassList build() { + V1beta2DeviceClassList buildable = new V1beta2DeviceClassList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListFluent.java new file mode 100644 index 0000000000..d63491ba57 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceClassListFluent> extends BaseFluent{ + public V1beta2DeviceClassListFluent() { + } + + public V1beta2DeviceClassListFluent(V1beta2DeviceClassList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1beta2DeviceClassList instance) { + instance = (instance != null ? instance : new V1beta2DeviceClassList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1beta2DeviceClass item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1beta2DeviceClass item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1beta2DeviceClass... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta2DeviceClass item : items) {V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta2DeviceClass item : items) {V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta2DeviceClass... items) { + if (this.items == null) return (A)this; + for (V1beta2DeviceClass item : items) {V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1beta2DeviceClass item : items) {V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta2DeviceClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta2DeviceClass buildItem(int index) { + return this.items.get(index).build(); + } + + public V1beta2DeviceClass buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta2DeviceClass buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta2DeviceClass buildMatchingItem(Predicate predicate) { + for (V1beta2DeviceClassBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta2DeviceClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta2DeviceClass item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1beta2DeviceClass... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta2DeviceClass item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta2DeviceClass item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1beta2DeviceClass item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceClassListFluent that = (V1beta2DeviceClassListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1beta2DeviceClassFluent> implements Nested{ + ItemsNested(int index,V1beta2DeviceClass item) { + this.index = index; + this.builder = new V1beta2DeviceClassBuilder(this, item); + } + V1beta2DeviceClassBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceClassListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1beta2DeviceClassListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecBuilder.java new file mode 100644 index 0000000000..7ddbecb05a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceClassSpecBuilder extends V1beta2DeviceClassSpecFluent implements VisitableBuilder{ + public V1beta2DeviceClassSpecBuilder() { + this(new V1beta2DeviceClassSpec()); + } + + public V1beta2DeviceClassSpecBuilder(V1beta2DeviceClassSpecFluent fluent) { + this(fluent, new V1beta2DeviceClassSpec()); + } + + public V1beta2DeviceClassSpecBuilder(V1beta2DeviceClassSpecFluent fluent,V1beta2DeviceClassSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceClassSpecBuilder(V1beta2DeviceClassSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceClassSpecFluent fluent; + + public V1beta2DeviceClassSpec build() { + V1beta2DeviceClassSpec buildable = new V1beta2DeviceClassSpec(); + buildable.setConfig(fluent.buildConfig()); + buildable.setSelectors(fluent.buildSelectors()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecFluent.java new file mode 100644 index 0000000000..9d39d8da88 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecFluent.java @@ -0,0 +1,422 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceClassSpecFluent> extends BaseFluent{ + public V1beta2DeviceClassSpecFluent() { + } + + public V1beta2DeviceClassSpecFluent(V1beta2DeviceClassSpec instance) { + this.copyInstance(instance); + } + private ArrayList config; + private ArrayList selectors; + + protected void copyInstance(V1beta2DeviceClassSpec instance) { + instance = (instance != null ? instance : new V1beta2DeviceClassSpec()); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withSelectors(instance.getSelectors()); + } + } + + public A addToConfig(int index,V1beta2DeviceClassConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); + } + return (A)this; + } + + public A setToConfig(int index,V1beta2DeviceClassConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } + return (A)this; + } + + public A addToConfig(io.kubernetes.client.openapi.models.V1beta2DeviceClassConfiguration... items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1beta2DeviceClassConfiguration item : items) {V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A addAllToConfig(Collection items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1beta2DeviceClassConfiguration item : items) {V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A removeFromConfig(io.kubernetes.client.openapi.models.V1beta2DeviceClassConfiguration... items) { + if (this.config == null) return (A)this; + for (V1beta2DeviceClassConfiguration item : items) {V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) return (A)this; + for (V1beta2DeviceClassConfiguration item : items) {V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) return (A) this; + final Iterator each = config.iterator(); + final List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1beta2DeviceClassConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConfig() { + return this.config != null ? build(config) : null; + } + + public V1beta2DeviceClassConfiguration buildConfig(int index) { + return this.config.get(index).build(); + } + + public V1beta2DeviceClassConfiguration buildFirstConfig() { + return this.config.get(0).build(); + } + + public V1beta2DeviceClassConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1beta2DeviceClassConfiguration buildMatchingConfig(Predicate predicate) { + for (V1beta2DeviceClassConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1beta2DeviceClassConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1beta2DeviceClassConfiguration item : config) { + this.addToConfig(item); + } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(io.kubernetes.client.openapi.models.V1beta2DeviceClassConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1beta2DeviceClassConfiguration item : config) { + this.addToConfig(item); + } + } + return (A) this; + } + + public boolean hasConfig() { + return this.config != null && !this.config.isEmpty(); + } + + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1beta2DeviceClassConfiguration item) { + return new ConfigNested(-1, item); + } + + public ConfigNested setNewConfigLike(int index,V1beta2DeviceClassConfiguration item) { + return new ConfigNested(index, item); + } + + public ConfigNested editConfig(int index) { + if (config.size() <= index) throw new RuntimeException("Can't edit config. Index exceeds size."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) throw new RuntimeException("Can't edit first config. The list is empty."); + return setNewConfigLike(0, buildConfig(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last config. The list is empty."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } + return (A)this; + } + + public A setToSelectors(int index,V1beta2DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A)this; + } + + public A addToSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A removeFromSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... items) { + if (this.selectors == null) return (A)this; + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) return (A)this; + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) return (A) this; + final Iterator each = selectors.iterator(); + final List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1beta2DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1beta2DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public V1beta2DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1beta2DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1beta2DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1beta2DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1beta2DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1beta2DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1beta2DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public boolean hasSelectors() { + return this.selectors != null && !this.selectors.isEmpty(); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1beta2DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1beta2DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); + return setNewSelectorLike(0, buildSelector(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta2DeviceClassConfigurationFluent> implements Nested{ + ConfigNested(int index,V1beta2DeviceClassConfiguration item) { + this.index = index; + this.builder = new V1beta2DeviceClassConfigurationBuilder(this, item); + } + V1beta2DeviceClassConfigurationBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceClassSpecFluent.this.setToConfig(index,builder.build()); + } + + public N endConfig() { + return and(); + } + + + } + public class SelectorsNested extends V1beta2DeviceSelectorFluent> implements Nested{ + SelectorsNested(int index,V1beta2DeviceSelector item) { + this.index = index; + this.builder = new V1beta2DeviceSelectorBuilder(this, item); + } + V1beta2DeviceSelectorBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceClassSpecFluent.this.setToSelectors(index,builder.build()); + } + + public N endSelector() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintBuilder.java new file mode 100644 index 0000000000..f6c0e2c58d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceConstraintBuilder extends V1beta2DeviceConstraintFluent implements VisitableBuilder{ + public V1beta2DeviceConstraintBuilder() { + this(new V1beta2DeviceConstraint()); + } + + public V1beta2DeviceConstraintBuilder(V1beta2DeviceConstraintFluent fluent) { + this(fluent, new V1beta2DeviceConstraint()); + } + + public V1beta2DeviceConstraintBuilder(V1beta2DeviceConstraintFluent fluent,V1beta2DeviceConstraint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceConstraintBuilder(V1beta2DeviceConstraint instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceConstraintFluent fluent; + + public V1beta2DeviceConstraint build() { + V1beta2DeviceConstraint buildable = new V1beta2DeviceConstraint(); + buildable.setMatchAttribute(fluent.getMatchAttribute()); + buildable.setRequests(fluent.getRequests()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintFluent.java new file mode 100644 index 0000000000..a3af5e8a60 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintFluent.java @@ -0,0 +1,165 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.ArrayList; +import java.util.Collection; +import java.lang.Object; +import java.util.List; +import java.lang.String; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceConstraintFluent> extends BaseFluent{ + public V1beta2DeviceConstraintFluent() { + } + + public V1beta2DeviceConstraintFluent(V1beta2DeviceConstraint instance) { + this.copyInstance(instance); + } + private String matchAttribute; + private List requests; + + protected void copyInstance(V1beta2DeviceConstraint instance) { + instance = (instance != null ? instance : new V1beta2DeviceConstraint()); + if (instance != null) { + this.withMatchAttribute(instance.getMatchAttribute()); + this.withRequests(instance.getRequests()); + } + } + + public String getMatchAttribute() { + return this.matchAttribute; + } + + public A withMatchAttribute(String matchAttribute) { + this.matchAttribute = matchAttribute; + return (A) this; + } + + public boolean hasMatchAttribute() { + return this.matchAttribute != null; + } + + public A addToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.add(index, item); + return (A)this; + } + + public A setToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.set(index, item); return (A)this; + } + + public A addToRequests(java.lang.String... items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A removeFromRequests(java.lang.String... items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public List getRequests() { + return this.requests; + } + + public String getRequest(int index) { + return this.requests.get(index); + } + + public String getFirstRequest() { + return this.requests.get(0); + } + + public String getLastRequest() { + return this.requests.get(requests.size() - 1); + } + + public String getMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(java.lang.String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != null && !this.requests.isEmpty(); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceConstraintFluent that = (V1beta2DeviceConstraintFluent) o; + if (!java.util.Objects.equals(matchAttribute, that.matchAttribute)) return false; + if (!java.util.Objects.equals(requests, that.requests)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(matchAttribute, requests, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (matchAttribute != null) { sb.append("matchAttribute:"); sb.append(matchAttribute + ","); } + if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionBuilder.java new file mode 100644 index 0000000000..d41cd68d42 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceCounterConsumptionBuilder extends V1beta2DeviceCounterConsumptionFluent implements VisitableBuilder{ + public V1beta2DeviceCounterConsumptionBuilder() { + this(new V1beta2DeviceCounterConsumption()); + } + + public V1beta2DeviceCounterConsumptionBuilder(V1beta2DeviceCounterConsumptionFluent fluent) { + this(fluent, new V1beta2DeviceCounterConsumption()); + } + + public V1beta2DeviceCounterConsumptionBuilder(V1beta2DeviceCounterConsumptionFluent fluent,V1beta2DeviceCounterConsumption instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceCounterConsumptionBuilder(V1beta2DeviceCounterConsumption instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceCounterConsumptionFluent fluent; + + public V1beta2DeviceCounterConsumption build() { + V1beta2DeviceCounterConsumption buildable = new V1beta2DeviceCounterConsumption(); + buildable.setCounterSet(fluent.getCounterSet()); + buildable.setCounters(fluent.getCounters()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionFluent.java new file mode 100644 index 0000000000..47321584a4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.util.Map; +import java.util.LinkedHashMap; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceCounterConsumptionFluent> extends BaseFluent{ + public V1beta2DeviceCounterConsumptionFluent() { + } + + public V1beta2DeviceCounterConsumptionFluent(V1beta2DeviceCounterConsumption instance) { + this.copyInstance(instance); + } + private String counterSet; + private Map counters; + + protected void copyInstance(V1beta2DeviceCounterConsumption instance) { + instance = (instance != null ? instance : new V1beta2DeviceCounterConsumption()); + if (instance != null) { + this.withCounterSet(instance.getCounterSet()); + this.withCounters(instance.getCounters()); + } + } + + public String getCounterSet() { + return this.counterSet; + } + + public A withCounterSet(String counterSet) { + this.counterSet = counterSet; + return (A) this; + } + + public boolean hasCounterSet() { + return this.counterSet != null; + } + + public A addToCounters(String key,V1beta2Counter value) { + if(this.counters == null && key != null && value != null) { this.counters = new LinkedHashMap(); } + if(key != null && value != null) {this.counters.put(key, value);} return (A)this; + } + + public A addToCounters(Map map) { + if(this.counters == null && map != null) { this.counters = new LinkedHashMap(); } + if(map != null) { this.counters.putAll(map);} return (A)this; + } + + public A removeFromCounters(String key) { + if(this.counters == null) { return (A) this; } + if(key != null && this.counters != null) {this.counters.remove(key);} return (A)this; + } + + public A removeFromCounters(Map map) { + if(this.counters == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.counters != null){this.counters.remove(key);}}} return (A)this; + } + + public Map getCounters() { + return this.counters; + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceCounterConsumptionFluent that = (V1beta2DeviceCounterConsumptionFluent) o; + if (!java.util.Objects.equals(counterSet, that.counterSet)) return false; + if (!java.util.Objects.equals(counters, that.counters)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(counterSet, counters, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (counterSet != null) { sb.append("counterSet:"); sb.append(counterSet + ","); } + if (counters != null && !counters.isEmpty()) { sb.append("counters:"); sb.append(counters); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceFluent.java new file mode 100644 index 0000000000..d73ba486c6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceFluent.java @@ -0,0 +1,622 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import java.util.Collection; +import java.lang.Object; +import java.util.Map; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceFluent> extends BaseFluent{ + public V1beta2DeviceFluent() { + } + + public V1beta2DeviceFluent(V1beta2Device instance) { + this.copyInstance(instance); + } + private Boolean allNodes; + private Map attributes; + private Map capacity; + private ArrayList consumesCounters; + private String name; + private String nodeName; + private V1NodeSelectorBuilder nodeSelector; + private ArrayList taints; + + protected void copyInstance(V1beta2Device instance) { + instance = (instance != null ? instance : new V1beta2Device()); + if (instance != null) { + this.withAllNodes(instance.getAllNodes()); + this.withAttributes(instance.getAttributes()); + this.withCapacity(instance.getCapacity()); + this.withConsumesCounters(instance.getConsumesCounters()); + this.withName(instance.getName()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withTaints(instance.getTaints()); + } + } + + public Boolean getAllNodes() { + return this.allNodes; + } + + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + + public boolean hasAllNodes() { + return this.allNodes != null; + } + + public A addToAttributes(String key,V1beta2DeviceAttribute value) { + if(this.attributes == null && key != null && value != null) { this.attributes = new LinkedHashMap(); } + if(key != null && value != null) {this.attributes.put(key, value);} return (A)this; + } + + public A addToAttributes(Map map) { + if(this.attributes == null && map != null) { this.attributes = new LinkedHashMap(); } + if(map != null) { this.attributes.putAll(map);} return (A)this; + } + + public A removeFromAttributes(String key) { + if(this.attributes == null) { return (A) this; } + if(key != null && this.attributes != null) {this.attributes.remove(key);} return (A)this; + } + + public A removeFromAttributes(Map map) { + if(this.attributes == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.attributes != null){this.attributes.remove(key);}}} return (A)this; + } + + public Map getAttributes() { + return this.attributes; + } + + public A withAttributes(Map attributes) { + if (attributes == null) { + this.attributes = null; + } else { + this.attributes = new LinkedHashMap(attributes); + } + return (A) this; + } + + public boolean hasAttributes() { + return this.attributes != null; + } + + public A addToCapacity(String key,V1beta2DeviceCapacity value) { + if(this.capacity == null && key != null && value != null) { this.capacity = new LinkedHashMap(); } + if(key != null && value != null) {this.capacity.put(key, value);} return (A)this; + } + + public A addToCapacity(Map map) { + if(this.capacity == null && map != null) { this.capacity = new LinkedHashMap(); } + if(map != null) { this.capacity.putAll(map);} return (A)this; + } + + public A removeFromCapacity(String key) { + if(this.capacity == null) { return (A) this; } + if(key != null && this.capacity != null) {this.capacity.remove(key);} return (A)this; + } + + public A removeFromCapacity(Map map) { + if(this.capacity == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.capacity != null){this.capacity.remove(key);}}} return (A)this; + } + + public Map getCapacity() { + return this.capacity; + } + + public A withCapacity(Map capacity) { + if (capacity == null) { + this.capacity = null; + } else { + this.capacity = new LinkedHashMap(capacity); + } + return (A) this; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public A addToConsumesCounters(int index,V1beta2DeviceCounterConsumption item) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); + if (index < 0 || index >= consumesCounters.size()) { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(builder); + } else { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(index, builder); + } + return (A)this; + } + + public A setToConsumesCounters(int index,V1beta2DeviceCounterConsumption item) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); + if (index < 0 || index >= consumesCounters.size()) { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(builder); + } else { + _visitables.get("consumesCounters").add(builder); + consumesCounters.set(index, builder); + } + return (A)this; + } + + public A addToConsumesCounters(io.kubernetes.client.openapi.models.V1beta2DeviceCounterConsumption... items) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + for (V1beta2DeviceCounterConsumption item : items) {V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").add(builder);this.consumesCounters.add(builder);} return (A)this; + } + + public A addAllToConsumesCounters(Collection items) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + for (V1beta2DeviceCounterConsumption item : items) {V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").add(builder);this.consumesCounters.add(builder);} return (A)this; + } + + public A removeFromConsumesCounters(io.kubernetes.client.openapi.models.V1beta2DeviceCounterConsumption... items) { + if (this.consumesCounters == null) return (A)this; + for (V1beta2DeviceCounterConsumption item : items) {V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").remove(builder); this.consumesCounters.remove(builder);} return (A)this; + } + + public A removeAllFromConsumesCounters(Collection items) { + if (this.consumesCounters == null) return (A)this; + for (V1beta2DeviceCounterConsumption item : items) {V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").remove(builder); this.consumesCounters.remove(builder);} return (A)this; + } + + public A removeMatchingFromConsumesCounters(Predicate predicate) { + if (consumesCounters == null) return (A) this; + final Iterator each = consumesCounters.iterator(); + final List visitables = _visitables.get("consumesCounters"); + while (each.hasNext()) { + V1beta2DeviceCounterConsumptionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConsumesCounters() { + return this.consumesCounters != null ? build(consumesCounters) : null; + } + + public V1beta2DeviceCounterConsumption buildConsumesCounter(int index) { + return this.consumesCounters.get(index).build(); + } + + public V1beta2DeviceCounterConsumption buildFirstConsumesCounter() { + return this.consumesCounters.get(0).build(); + } + + public V1beta2DeviceCounterConsumption buildLastConsumesCounter() { + return this.consumesCounters.get(consumesCounters.size() - 1).build(); + } + + public V1beta2DeviceCounterConsumption buildMatchingConsumesCounter(Predicate predicate) { + for (V1beta2DeviceCounterConsumptionBuilder item : consumesCounters) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConsumesCounter(Predicate predicate) { + for (V1beta2DeviceCounterConsumptionBuilder item : consumesCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConsumesCounters(List consumesCounters) { + if (this.consumesCounters != null) { + this._visitables.get("consumesCounters").clear(); + } + if (consumesCounters != null) { + this.consumesCounters = new ArrayList(); + for (V1beta2DeviceCounterConsumption item : consumesCounters) { + this.addToConsumesCounters(item); + } + } else { + this.consumesCounters = null; + } + return (A) this; + } + + public A withConsumesCounters(io.kubernetes.client.openapi.models.V1beta2DeviceCounterConsumption... consumesCounters) { + if (this.consumesCounters != null) { + this.consumesCounters.clear(); + _visitables.remove("consumesCounters"); + } + if (consumesCounters != null) { + for (V1beta2DeviceCounterConsumption item : consumesCounters) { + this.addToConsumesCounters(item); + } + } + return (A) this; + } + + public boolean hasConsumesCounters() { + return this.consumesCounters != null && !this.consumesCounters.isEmpty(); + } + + public ConsumesCountersNested addNewConsumesCounter() { + return new ConsumesCountersNested(-1, null); + } + + public ConsumesCountersNested addNewConsumesCounterLike(V1beta2DeviceCounterConsumption item) { + return new ConsumesCountersNested(-1, item); + } + + public ConsumesCountersNested setNewConsumesCounterLike(int index,V1beta2DeviceCounterConsumption item) { + return new ConsumesCountersNested(index, item); + } + + public ConsumesCountersNested editConsumesCounter(int index) { + if (consumesCounters.size() <= index) throw new RuntimeException("Can't edit consumesCounters. Index exceeds size."); + return setNewConsumesCounterLike(index, buildConsumesCounter(index)); + } + + public ConsumesCountersNested editFirstConsumesCounter() { + if (consumesCounters.size() == 0) throw new RuntimeException("Can't edit first consumesCounters. The list is empty."); + return setNewConsumesCounterLike(0, buildConsumesCounter(0)); + } + + public ConsumesCountersNested editLastConsumesCounter() { + int index = consumesCounters.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last consumesCounters. The list is empty."); + return setNewConsumesCounterLike(index, buildConsumesCounter(index)); + } + + public ConsumesCountersNested editMatchingConsumesCounter(Predicate predicate) { + int index = -1; + for (int i=0;i withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public NodeSelectorNested editNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); + } + + public A addToTaints(int index,V1beta2DeviceTaint item) { + if (this.taints == null) {this.taints = new ArrayList();} + V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.add(index, builder); + } + return (A)this; + } + + public A setToTaints(int index,V1beta2DeviceTaint item) { + if (this.taints == null) {this.taints = new ArrayList();} + V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.set(index, builder); + } + return (A)this; + } + + public A addToTaints(io.kubernetes.client.openapi.models.V1beta2DeviceTaint... items) { + if (this.taints == null) {this.taints = new ArrayList();} + for (V1beta2DeviceTaint item : items) {V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; + } + + public A addAllToTaints(Collection items) { + if (this.taints == null) {this.taints = new ArrayList();} + for (V1beta2DeviceTaint item : items) {V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; + } + + public A removeFromTaints(io.kubernetes.client.openapi.models.V1beta2DeviceTaint... items) { + if (this.taints == null) return (A)this; + for (V1beta2DeviceTaint item : items) {V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item);_visitables.get("taints").remove(builder); this.taints.remove(builder);} return (A)this; + } + + public A removeAllFromTaints(Collection items) { + if (this.taints == null) return (A)this; + for (V1beta2DeviceTaint item : items) {V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item);_visitables.get("taints").remove(builder); this.taints.remove(builder);} return (A)this; + } + + public A removeMatchingFromTaints(Predicate predicate) { + if (taints == null) return (A) this; + final Iterator each = taints.iterator(); + final List visitables = _visitables.get("taints"); + while (each.hasNext()) { + V1beta2DeviceTaintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTaints() { + return this.taints != null ? build(taints) : null; + } + + public V1beta2DeviceTaint buildTaint(int index) { + return this.taints.get(index).build(); + } + + public V1beta2DeviceTaint buildFirstTaint() { + return this.taints.get(0).build(); + } + + public V1beta2DeviceTaint buildLastTaint() { + return this.taints.get(taints.size() - 1).build(); + } + + public V1beta2DeviceTaint buildMatchingTaint(Predicate predicate) { + for (V1beta2DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingTaint(Predicate predicate) { + for (V1beta2DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTaints(List taints) { + if (this.taints != null) { + this._visitables.get("taints").clear(); + } + if (taints != null) { + this.taints = new ArrayList(); + for (V1beta2DeviceTaint item : taints) { + this.addToTaints(item); + } + } else { + this.taints = null; + } + return (A) this; + } + + public A withTaints(io.kubernetes.client.openapi.models.V1beta2DeviceTaint... taints) { + if (this.taints != null) { + this.taints.clear(); + _visitables.remove("taints"); + } + if (taints != null) { + for (V1beta2DeviceTaint item : taints) { + this.addToTaints(item); + } + } + return (A) this; + } + + public boolean hasTaints() { + return this.taints != null && !this.taints.isEmpty(); + } + + public TaintsNested addNewTaint() { + return new TaintsNested(-1, null); + } + + public TaintsNested addNewTaintLike(V1beta2DeviceTaint item) { + return new TaintsNested(-1, item); + } + + public TaintsNested setNewTaintLike(int index,V1beta2DeviceTaint item) { + return new TaintsNested(index, item); + } + + public TaintsNested editTaint(int index) { + if (taints.size() <= index) throw new RuntimeException("Can't edit taints. Index exceeds size."); + return setNewTaintLike(index, buildTaint(index)); + } + + public TaintsNested editFirstTaint() { + if (taints.size() == 0) throw new RuntimeException("Can't edit first taints. The list is empty."); + return setNewTaintLike(0, buildTaint(0)); + } + + public TaintsNested editLastTaint() { + int index = taints.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last taints. The list is empty."); + return setNewTaintLike(index, buildTaint(index)); + } + + public TaintsNested editMatchingTaint(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta2DeviceCounterConsumptionFluent> implements Nested{ + ConsumesCountersNested(int index,V1beta2DeviceCounterConsumption item) { + this.index = index; + this.builder = new V1beta2DeviceCounterConsumptionBuilder(this, item); + } + V1beta2DeviceCounterConsumptionBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceFluent.this.setToConsumesCounters(index,builder.build()); + } + + public N endConsumesCounter() { + return and(); + } + + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + V1NodeSelectorBuilder builder; + + public N and() { + return (N) V1beta2DeviceFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + + } + public class TaintsNested extends V1beta2DeviceTaintFluent> implements Nested{ + TaintsNested(int index,V1beta2DeviceTaint item) { + this.index = index; + this.builder = new V1beta2DeviceTaintBuilder(this, item); + } + V1beta2DeviceTaintBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceFluent.this.setToTaints(index,builder.build()); + } + + public N endTaint() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultBuilder.java new file mode 100644 index 0000000000..e86132931c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceRequestAllocationResultBuilder extends V1beta2DeviceRequestAllocationResultFluent implements VisitableBuilder{ + public V1beta2DeviceRequestAllocationResultBuilder() { + this(new V1beta2DeviceRequestAllocationResult()); + } + + public V1beta2DeviceRequestAllocationResultBuilder(V1beta2DeviceRequestAllocationResultFluent fluent) { + this(fluent, new V1beta2DeviceRequestAllocationResult()); + } + + public V1beta2DeviceRequestAllocationResultBuilder(V1beta2DeviceRequestAllocationResultFluent fluent,V1beta2DeviceRequestAllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceRequestAllocationResultBuilder(V1beta2DeviceRequestAllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceRequestAllocationResultFluent fluent; + + public V1beta2DeviceRequestAllocationResult build() { + V1beta2DeviceRequestAllocationResult buildable = new V1beta2DeviceRequestAllocationResult(); + buildable.setAdminAccess(fluent.getAdminAccess()); + buildable.setDevice(fluent.getDevice()); + buildable.setDriver(fluent.getDriver()); + buildable.setPool(fluent.getPool()); + buildable.setRequest(fluent.getRequest()); + buildable.setTolerations(fluent.buildTolerations()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultFluent.java new file mode 100644 index 0000000000..142dd31265 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultFluent.java @@ -0,0 +1,327 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; +import java.lang.Boolean; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceRequestAllocationResultFluent> extends BaseFluent{ + public V1beta2DeviceRequestAllocationResultFluent() { + } + + public V1beta2DeviceRequestAllocationResultFluent(V1beta2DeviceRequestAllocationResult instance) { + this.copyInstance(instance); + } + private Boolean adminAccess; + private String device; + private String driver; + private String pool; + private String request; + private ArrayList tolerations; + + protected void copyInstance(V1beta2DeviceRequestAllocationResult instance) { + instance = (instance != null ? instance : new V1beta2DeviceRequestAllocationResult()); + if (instance != null) { + this.withAdminAccess(instance.getAdminAccess()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withPool(instance.getPool()); + this.withRequest(instance.getRequest()); + this.withTolerations(instance.getTolerations()); + } + } + + public Boolean getAdminAccess() { + return this.adminAccess; + } + + public A withAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + return (A) this; + } + + public boolean hasAdminAccess() { + return this.adminAccess != null; + } + + public String getDevice() { + return this.device; + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public boolean hasDevice() { + return this.device != null; + } + + public String getDriver() { + return this.driver; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public String getPool() { + return this.pool; + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public boolean hasPool() { + return this.pool != null; + } + + public String getRequest() { + return this.request; + } + + public A withRequest(String request) { + this.request = request; + return (A) this; + } + + public boolean hasRequest() { + return this.request != null; + } + + public A addToTolerations(int index,V1beta2DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } + return (A)this; + } + + public A setToTolerations(int index,V1beta2DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A)this; + } + + public A addToTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A removeFromTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... items) { + if (this.tolerations == null) return (A)this; + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) return (A)this; + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) return (A) this; + final Iterator each = tolerations.iterator(); + final List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1beta2DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + public V1beta2DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public V1beta2DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1beta2DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1beta2DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1beta2DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1beta2DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1beta2DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1beta2DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + + public boolean hasTolerations() { + return this.tolerations != null && !this.tolerations.isEmpty(); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1beta2DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1beta2DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); + return setNewTolerationLike(0, buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta2DeviceTolerationFluent> implements Nested{ + TolerationsNested(int index,V1beta2DeviceToleration item) { + this.index = index; + this.builder = new V1beta2DeviceTolerationBuilder(this, item); + } + V1beta2DeviceTolerationBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceRequestAllocationResultFluent.this.setToTolerations(index,builder.build()); + } + + public N endToleration() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestBuilder.java new file mode 100644 index 0000000000..265048f045 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceRequestBuilder extends V1beta2DeviceRequestFluent implements VisitableBuilder{ + public V1beta2DeviceRequestBuilder() { + this(new V1beta2DeviceRequest()); + } + + public V1beta2DeviceRequestBuilder(V1beta2DeviceRequestFluent fluent) { + this(fluent, new V1beta2DeviceRequest()); + } + + public V1beta2DeviceRequestBuilder(V1beta2DeviceRequestFluent fluent,V1beta2DeviceRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceRequestBuilder(V1beta2DeviceRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceRequestFluent fluent; + + public V1beta2DeviceRequest build() { + V1beta2DeviceRequest buildable = new V1beta2DeviceRequest(); + buildable.setExactly(fluent.buildExactly()); + buildable.setFirstAvailable(fluent.buildFirstAvailable()); + buildable.setName(fluent.getName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestFluent.java new file mode 100644 index 0000000000..a2818677d2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestFluent.java @@ -0,0 +1,314 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceRequestFluent> extends BaseFluent{ + public V1beta2DeviceRequestFluent() { + } + + public V1beta2DeviceRequestFluent(V1beta2DeviceRequest instance) { + this.copyInstance(instance); + } + private V1beta2ExactDeviceRequestBuilder exactly; + private ArrayList firstAvailable; + private String name; + + protected void copyInstance(V1beta2DeviceRequest instance) { + instance = (instance != null ? instance : new V1beta2DeviceRequest()); + if (instance != null) { + this.withExactly(instance.getExactly()); + this.withFirstAvailable(instance.getFirstAvailable()); + this.withName(instance.getName()); + } + } + + public V1beta2ExactDeviceRequest buildExactly() { + return this.exactly != null ? this.exactly.build() : null; + } + + public A withExactly(V1beta2ExactDeviceRequest exactly) { + this._visitables.remove("exactly"); + if (exactly != null) { + this.exactly = new V1beta2ExactDeviceRequestBuilder(exactly); + this._visitables.get("exactly").add(this.exactly); + } else { + this.exactly = null; + this._visitables.get("exactly").remove(this.exactly); + } + return (A) this; + } + + public boolean hasExactly() { + return this.exactly != null; + } + + public ExactlyNested withNewExactly() { + return new ExactlyNested(null); + } + + public ExactlyNested withNewExactlyLike(V1beta2ExactDeviceRequest item) { + return new ExactlyNested(item); + } + + public ExactlyNested editExactly() { + return withNewExactlyLike(java.util.Optional.ofNullable(buildExactly()).orElse(null)); + } + + public ExactlyNested editOrNewExactly() { + return withNewExactlyLike(java.util.Optional.ofNullable(buildExactly()).orElse(new V1beta2ExactDeviceRequestBuilder().build())); + } + + public ExactlyNested editOrNewExactlyLike(V1beta2ExactDeviceRequest item) { + return withNewExactlyLike(java.util.Optional.ofNullable(buildExactly()).orElse(item)); + } + + public A addToFirstAvailable(int index,V1beta2DeviceSubRequest item) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); + if (index < 0 || index >= firstAvailable.size()) { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(builder); + } else { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(index, builder); + } + return (A)this; + } + + public A setToFirstAvailable(int index,V1beta2DeviceSubRequest item) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); + if (index < 0 || index >= firstAvailable.size()) { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(builder); + } else { + _visitables.get("firstAvailable").add(builder); + firstAvailable.set(index, builder); + } + return (A)this; + } + + public A addToFirstAvailable(io.kubernetes.client.openapi.models.V1beta2DeviceSubRequest... items) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + for (V1beta2DeviceSubRequest item : items) {V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").add(builder);this.firstAvailable.add(builder);} return (A)this; + } + + public A addAllToFirstAvailable(Collection items) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + for (V1beta2DeviceSubRequest item : items) {V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").add(builder);this.firstAvailable.add(builder);} return (A)this; + } + + public A removeFromFirstAvailable(io.kubernetes.client.openapi.models.V1beta2DeviceSubRequest... items) { + if (this.firstAvailable == null) return (A)this; + for (V1beta2DeviceSubRequest item : items) {V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").remove(builder); this.firstAvailable.remove(builder);} return (A)this; + } + + public A removeAllFromFirstAvailable(Collection items) { + if (this.firstAvailable == null) return (A)this; + for (V1beta2DeviceSubRequest item : items) {V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").remove(builder); this.firstAvailable.remove(builder);} return (A)this; + } + + public A removeMatchingFromFirstAvailable(Predicate predicate) { + if (firstAvailable == null) return (A) this; + final Iterator each = firstAvailable.iterator(); + final List visitables = _visitables.get("firstAvailable"); + while (each.hasNext()) { + V1beta2DeviceSubRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildFirstAvailable() { + return this.firstAvailable != null ? build(firstAvailable) : null; + } + + public V1beta2DeviceSubRequest buildFirstAvailable(int index) { + return this.firstAvailable.get(index).build(); + } + + public V1beta2DeviceSubRequest buildFirstFirstAvailable() { + return this.firstAvailable.get(0).build(); + } + + public V1beta2DeviceSubRequest buildLastFirstAvailable() { + return this.firstAvailable.get(firstAvailable.size() - 1).build(); + } + + public V1beta2DeviceSubRequest buildMatchingFirstAvailable(Predicate predicate) { + for (V1beta2DeviceSubRequestBuilder item : firstAvailable) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingFirstAvailable(Predicate predicate) { + for (V1beta2DeviceSubRequestBuilder item : firstAvailable) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withFirstAvailable(List firstAvailable) { + if (this.firstAvailable != null) { + this._visitables.get("firstAvailable").clear(); + } + if (firstAvailable != null) { + this.firstAvailable = new ArrayList(); + for (V1beta2DeviceSubRequest item : firstAvailable) { + this.addToFirstAvailable(item); + } + } else { + this.firstAvailable = null; + } + return (A) this; + } + + public A withFirstAvailable(io.kubernetes.client.openapi.models.V1beta2DeviceSubRequest... firstAvailable) { + if (this.firstAvailable != null) { + this.firstAvailable.clear(); + _visitables.remove("firstAvailable"); + } + if (firstAvailable != null) { + for (V1beta2DeviceSubRequest item : firstAvailable) { + this.addToFirstAvailable(item); + } + } + return (A) this; + } + + public boolean hasFirstAvailable() { + return this.firstAvailable != null && !this.firstAvailable.isEmpty(); + } + + public FirstAvailableNested addNewFirstAvailable() { + return new FirstAvailableNested(-1, null); + } + + public FirstAvailableNested addNewFirstAvailableLike(V1beta2DeviceSubRequest item) { + return new FirstAvailableNested(-1, item); + } + + public FirstAvailableNested setNewFirstAvailableLike(int index,V1beta2DeviceSubRequest item) { + return new FirstAvailableNested(index, item); + } + + public FirstAvailableNested editFirstAvailable(int index) { + if (firstAvailable.size() <= index) throw new RuntimeException("Can't edit firstAvailable. Index exceeds size."); + return setNewFirstAvailableLike(index, buildFirstAvailable(index)); + } + + public FirstAvailableNested editFirstFirstAvailable() { + if (firstAvailable.size() == 0) throw new RuntimeException("Can't edit first firstAvailable. The list is empty."); + return setNewFirstAvailableLike(0, buildFirstAvailable(0)); + } + + public FirstAvailableNested editLastFirstAvailable() { + int index = firstAvailable.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last firstAvailable. The list is empty."); + return setNewFirstAvailableLike(index, buildFirstAvailable(index)); + } + + public FirstAvailableNested editMatchingFirstAvailable(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta2ExactDeviceRequestFluent> implements Nested{ + ExactlyNested(V1beta2ExactDeviceRequest item) { + this.builder = new V1beta2ExactDeviceRequestBuilder(this, item); + } + V1beta2ExactDeviceRequestBuilder builder; + + public N and() { + return (N) V1beta2DeviceRequestFluent.this.withExactly(builder.build()); + } + + public N endExactly() { + return and(); + } + + + } + public class FirstAvailableNested extends V1beta2DeviceSubRequestFluent> implements Nested{ + FirstAvailableNested(int index,V1beta2DeviceSubRequest item) { + this.index = index; + this.builder = new V1beta2DeviceSubRequestBuilder(this, item); + } + V1beta2DeviceSubRequestBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceRequestFluent.this.setToFirstAvailable(index,builder.build()); + } + + public N endFirstAvailable() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorBuilder.java new file mode 100644 index 0000000000..9f202ef03d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceSelectorBuilder extends V1beta2DeviceSelectorFluent implements VisitableBuilder{ + public V1beta2DeviceSelectorBuilder() { + this(new V1beta2DeviceSelector()); + } + + public V1beta2DeviceSelectorBuilder(V1beta2DeviceSelectorFluent fluent) { + this(fluent, new V1beta2DeviceSelector()); + } + + public V1beta2DeviceSelectorBuilder(V1beta2DeviceSelectorFluent fluent,V1beta2DeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceSelectorBuilder(V1beta2DeviceSelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceSelectorFluent fluent; + + public V1beta2DeviceSelector build() { + V1beta2DeviceSelector buildable = new V1beta2DeviceSelector(); + buildable.setCel(fluent.buildCel()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorFluent.java new file mode 100644 index 0000000000..e2ecbd8290 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceSelectorFluent> extends BaseFluent{ + public V1beta2DeviceSelectorFluent() { + } + + public V1beta2DeviceSelectorFluent(V1beta2DeviceSelector instance) { + this.copyInstance(instance); + } + private V1beta2CELDeviceSelectorBuilder cel; + + protected void copyInstance(V1beta2DeviceSelector instance) { + instance = (instance != null ? instance : new V1beta2DeviceSelector()); + if (instance != null) { + this.withCel(instance.getCel()); + } + } + + public V1beta2CELDeviceSelector buildCel() { + return this.cel != null ? this.cel.build() : null; + } + + public A withCel(V1beta2CELDeviceSelector cel) { + this._visitables.remove("cel"); + if (cel != null) { + this.cel = new V1beta2CELDeviceSelectorBuilder(cel); + this._visitables.get("cel").add(this.cel); + } else { + this.cel = null; + this._visitables.get("cel").remove(this.cel); + } + return (A) this; + } + + public boolean hasCel() { + return this.cel != null; + } + + public CelNested withNewCel() { + return new CelNested(null); + } + + public CelNested withNewCelLike(V1beta2CELDeviceSelector item) { + return new CelNested(item); + } + + public CelNested editCel() { + return withNewCelLike(java.util.Optional.ofNullable(buildCel()).orElse(null)); + } + + public CelNested editOrNewCel() { + return withNewCelLike(java.util.Optional.ofNullable(buildCel()).orElse(new V1beta2CELDeviceSelectorBuilder().build())); + } + + public CelNested editOrNewCelLike(V1beta2CELDeviceSelector item) { + return withNewCelLike(java.util.Optional.ofNullable(buildCel()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceSelectorFluent that = (V1beta2DeviceSelectorFluent) o; + if (!java.util.Objects.equals(cel, that.cel)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(cel, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (cel != null) { sb.append("cel:"); sb.append(cel); } + sb.append("}"); + return sb.toString(); + } + public class CelNested extends V1beta2CELDeviceSelectorFluent> implements Nested{ + CelNested(V1beta2CELDeviceSelector item) { + this.builder = new V1beta2CELDeviceSelectorBuilder(this, item); + } + V1beta2CELDeviceSelectorBuilder builder; + + public N and() { + return (N) V1beta2DeviceSelectorFluent.this.withCel(builder.build()); + } + + public N endCel() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestBuilder.java new file mode 100644 index 0000000000..8b4163952b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceSubRequestBuilder extends V1beta2DeviceSubRequestFluent implements VisitableBuilder{ + public V1beta2DeviceSubRequestBuilder() { + this(new V1beta2DeviceSubRequest()); + } + + public V1beta2DeviceSubRequestBuilder(V1beta2DeviceSubRequestFluent fluent) { + this(fluent, new V1beta2DeviceSubRequest()); + } + + public V1beta2DeviceSubRequestBuilder(V1beta2DeviceSubRequestFluent fluent,V1beta2DeviceSubRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceSubRequestBuilder(V1beta2DeviceSubRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceSubRequestFluent fluent; + + public V1beta2DeviceSubRequest build() { + V1beta2DeviceSubRequest buildable = new V1beta2DeviceSubRequest(); + buildable.setAllocationMode(fluent.getAllocationMode()); + buildable.setCount(fluent.getCount()); + buildable.setDeviceClassName(fluent.getDeviceClassName()); + buildable.setName(fluent.getName()); + buildable.setSelectors(fluent.buildSelectors()); + buildable.setTolerations(fluent.buildTolerations()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestFluent.java new file mode 100644 index 0000000000..76e2e3d552 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestFluent.java @@ -0,0 +1,491 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceSubRequestFluent> extends BaseFluent{ + public V1beta2DeviceSubRequestFluent() { + } + + public V1beta2DeviceSubRequestFluent(V1beta2DeviceSubRequest instance) { + this.copyInstance(instance); + } + private String allocationMode; + private Long count; + private String deviceClassName; + private String name; + private ArrayList selectors; + private ArrayList tolerations; + + protected void copyInstance(V1beta2DeviceSubRequest instance) { + instance = (instance != null ? instance : new V1beta2DeviceSubRequest()); + if (instance != null) { + this.withAllocationMode(instance.getAllocationMode()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withName(instance.getName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } + } + + public String getAllocationMode() { + return this.allocationMode; + } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public Long getCount() { + return this.count; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public boolean hasCount() { + return this.count != null; + } + + public String getDeviceClassName() { + return this.deviceClassName; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public A addToSelectors(int index,V1beta2DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } + return (A)this; + } + + public A setToSelectors(int index,V1beta2DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A)this; + } + + public A addToSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A removeFromSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... items) { + if (this.selectors == null) return (A)this; + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) return (A)this; + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) return (A) this; + final Iterator each = selectors.iterator(); + final List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1beta2DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1beta2DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public V1beta2DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1beta2DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1beta2DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1beta2DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1beta2DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1beta2DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1beta2DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public boolean hasSelectors() { + return this.selectors != null && !this.selectors.isEmpty(); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1beta2DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1beta2DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); + return setNewSelectorLike(0, buildSelector(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } + return (A)this; + } + + public A setToTolerations(int index,V1beta2DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A)this; + } + + public A addToTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A removeFromTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... items) { + if (this.tolerations == null) return (A)this; + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) return (A)this; + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) return (A) this; + final Iterator each = tolerations.iterator(); + final List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1beta2DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + public V1beta2DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public V1beta2DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1beta2DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1beta2DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1beta2DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1beta2DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1beta2DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1beta2DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + + public boolean hasTolerations() { + return this.tolerations != null && !this.tolerations.isEmpty(); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1beta2DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1beta2DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); + return setNewTolerationLike(0, buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta2DeviceSelectorFluent> implements Nested{ + SelectorsNested(int index,V1beta2DeviceSelector item) { + this.index = index; + this.builder = new V1beta2DeviceSelectorBuilder(this, item); + } + V1beta2DeviceSelectorBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceSubRequestFluent.this.setToSelectors(index,builder.build()); + } + + public N endSelector() { + return and(); + } + + + } + public class TolerationsNested extends V1beta2DeviceTolerationFluent> implements Nested{ + TolerationsNested(int index,V1beta2DeviceToleration item) { + this.index = index; + this.builder = new V1beta2DeviceTolerationBuilder(this, item); + } + V1beta2DeviceTolerationBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceSubRequestFluent.this.setToTolerations(index,builder.build()); + } + + public N endToleration() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintBuilder.java new file mode 100644 index 0000000000..71fa98ab47 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceTaintBuilder extends V1beta2DeviceTaintFluent implements VisitableBuilder{ + public V1beta2DeviceTaintBuilder() { + this(new V1beta2DeviceTaint()); + } + + public V1beta2DeviceTaintBuilder(V1beta2DeviceTaintFluent fluent) { + this(fluent, new V1beta2DeviceTaint()); + } + + public V1beta2DeviceTaintBuilder(V1beta2DeviceTaintFluent fluent,V1beta2DeviceTaint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceTaintBuilder(V1beta2DeviceTaint instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceTaintFluent fluent; + + public V1beta2DeviceTaint build() { + V1beta2DeviceTaint buildable = new V1beta2DeviceTaint(); + buildable.setEffect(fluent.getEffect()); + buildable.setKey(fluent.getKey()); + buildable.setTimeAdded(fluent.getTimeAdded()); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintFluent.java new file mode 100644 index 0000000000..5f90839c53 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintFluent.java @@ -0,0 +1,115 @@ +package io.kubernetes.client.openapi.models; + +import java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceTaintFluent> extends BaseFluent{ + public V1beta2DeviceTaintFluent() { + } + + public V1beta2DeviceTaintFluent(V1beta2DeviceTaint instance) { + this.copyInstance(instance); + } + private String effect; + private String key; + private OffsetDateTime timeAdded; + private String value; + + protected void copyInstance(V1beta2DeviceTaint instance) { + instance = (instance != null ? instance : new V1beta2DeviceTaint()); + if (instance != null) { + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withTimeAdded(instance.getTimeAdded()); + this.withValue(instance.getValue()); + } + } + + public String getEffect() { + return this.effect; + } + + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public String getKey() { + return this.key; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public boolean hasKey() { + return this.key != null; + } + + public OffsetDateTime getTimeAdded() { + return this.timeAdded; + } + + public A withTimeAdded(OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + return (A) this; + } + + public boolean hasTimeAdded() { + return this.timeAdded != null; + } + + public String getValue() { + return this.value; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceTaintFluent that = (V1beta2DeviceTaintFluent) o; + if (!java.util.Objects.equals(effect, that.effect)) return false; + if (!java.util.Objects.equals(key, that.key)) return false; + if (!java.util.Objects.equals(timeAdded, that.timeAdded)) return false; + if (!java.util.Objects.equals(value, that.value)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(effect, key, timeAdded, value, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (effect != null) { sb.append("effect:"); sb.append(effect + ","); } + if (key != null) { sb.append("key:"); sb.append(key + ","); } + if (timeAdded != null) { sb.append("timeAdded:"); sb.append(timeAdded + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationBuilder.java new file mode 100644 index 0000000000..931506af45 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceTolerationBuilder extends V1beta2DeviceTolerationFluent implements VisitableBuilder{ + public V1beta2DeviceTolerationBuilder() { + this(new V1beta2DeviceToleration()); + } + + public V1beta2DeviceTolerationBuilder(V1beta2DeviceTolerationFluent fluent) { + this(fluent, new V1beta2DeviceToleration()); + } + + public V1beta2DeviceTolerationBuilder(V1beta2DeviceTolerationFluent fluent,V1beta2DeviceToleration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceTolerationBuilder(V1beta2DeviceToleration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceTolerationFluent fluent; + + public V1beta2DeviceToleration build() { + V1beta2DeviceToleration buildable = new V1beta2DeviceToleration(); + buildable.setEffect(fluent.getEffect()); + buildable.setKey(fluent.getKey()); + buildable.setOperator(fluent.getOperator()); + buildable.setTolerationSeconds(fluent.getTolerationSeconds()); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationFluent.java new file mode 100644 index 0000000000..6017066919 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationFluent.java @@ -0,0 +1,132 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceTolerationFluent> extends BaseFluent{ + public V1beta2DeviceTolerationFluent() { + } + + public V1beta2DeviceTolerationFluent(V1beta2DeviceToleration instance) { + this.copyInstance(instance); + } + private String effect; + private String key; + private String operator; + private Long tolerationSeconds; + private String value; + + protected void copyInstance(V1beta2DeviceToleration instance) { + instance = (instance != null ? instance : new V1beta2DeviceToleration()); + if (instance != null) { + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withOperator(instance.getOperator()); + this.withTolerationSeconds(instance.getTolerationSeconds()); + this.withValue(instance.getValue()); + } + } + + public String getEffect() { + return this.effect; + } + + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public String getKey() { + return this.key; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public boolean hasKey() { + return this.key != null; + } + + public String getOperator() { + return this.operator; + } + + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public boolean hasOperator() { + return this.operator != null; + } + + public Long getTolerationSeconds() { + return this.tolerationSeconds; + } + + public A withTolerationSeconds(Long tolerationSeconds) { + this.tolerationSeconds = tolerationSeconds; + return (A) this; + } + + public boolean hasTolerationSeconds() { + return this.tolerationSeconds != null; + } + + public String getValue() { + return this.value; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceTolerationFluent that = (V1beta2DeviceTolerationFluent) o; + if (!java.util.Objects.equals(effect, that.effect)) return false; + if (!java.util.Objects.equals(key, that.key)) return false; + if (!java.util.Objects.equals(operator, that.operator)) return false; + if (!java.util.Objects.equals(tolerationSeconds, that.tolerationSeconds)) return false; + if (!java.util.Objects.equals(value, that.value)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(effect, key, operator, tolerationSeconds, value, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (effect != null) { sb.append("effect:"); sb.append(effect + ","); } + if (key != null) { sb.append("key:"); sb.append(key + ","); } + if (operator != null) { sb.append("operator:"); sb.append(operator + ","); } + if (tolerationSeconds != null) { sb.append("tolerationSeconds:"); sb.append(tolerationSeconds + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestBuilder.java new file mode 100644 index 0000000000..1066bec0aa --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ExactDeviceRequestBuilder extends V1beta2ExactDeviceRequestFluent implements VisitableBuilder{ + public V1beta2ExactDeviceRequestBuilder() { + this(new V1beta2ExactDeviceRequest()); + } + + public V1beta2ExactDeviceRequestBuilder(V1beta2ExactDeviceRequestFluent fluent) { + this(fluent, new V1beta2ExactDeviceRequest()); + } + + public V1beta2ExactDeviceRequestBuilder(V1beta2ExactDeviceRequestFluent fluent,V1beta2ExactDeviceRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ExactDeviceRequestBuilder(V1beta2ExactDeviceRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ExactDeviceRequestFluent fluent; + + public V1beta2ExactDeviceRequest build() { + V1beta2ExactDeviceRequest buildable = new V1beta2ExactDeviceRequest(); + buildable.setAdminAccess(fluent.getAdminAccess()); + buildable.setAllocationMode(fluent.getAllocationMode()); + buildable.setCount(fluent.getCount()); + buildable.setDeviceClassName(fluent.getDeviceClassName()); + buildable.setSelectors(fluent.buildSelectors()); + buildable.setTolerations(fluent.buildTolerations()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestFluent.java new file mode 100644 index 0000000000..0fb093ce8a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestFluent.java @@ -0,0 +1,496 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import java.lang.Long; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ExactDeviceRequestFluent> extends BaseFluent{ + public V1beta2ExactDeviceRequestFluent() { + } + + public V1beta2ExactDeviceRequestFluent(V1beta2ExactDeviceRequest instance) { + this.copyInstance(instance); + } + private Boolean adminAccess; + private String allocationMode; + private Long count; + private String deviceClassName; + private ArrayList selectors; + private ArrayList tolerations; + + protected void copyInstance(V1beta2ExactDeviceRequest instance) { + instance = (instance != null ? instance : new V1beta2ExactDeviceRequest()); + if (instance != null) { + this.withAdminAccess(instance.getAdminAccess()); + this.withAllocationMode(instance.getAllocationMode()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } + } + + public Boolean getAdminAccess() { + return this.adminAccess; + } + + public A withAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + return (A) this; + } + + public boolean hasAdminAccess() { + return this.adminAccess != null; + } + + public String getAllocationMode() { + return this.allocationMode; + } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public Long getCount() { + return this.count; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public boolean hasCount() { + return this.count != null; + } + + public String getDeviceClassName() { + return this.deviceClassName; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public A addToSelectors(int index,V1beta2DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } + return (A)this; + } + + public A setToSelectors(int index,V1beta2DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A)this; + } + + public A addToSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A removeFromSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... items) { + if (this.selectors == null) return (A)this; + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) return (A)this; + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) return (A) this; + final Iterator each = selectors.iterator(); + final List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1beta2DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1beta2DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public V1beta2DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1beta2DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1beta2DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1beta2DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1beta2DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1beta2DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1beta2DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public boolean hasSelectors() { + return this.selectors != null && !this.selectors.isEmpty(); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1beta2DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1beta2DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); + return setNewSelectorLike(0, buildSelector(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } + return (A)this; + } + + public A setToTolerations(int index,V1beta2DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A)this; + } + + public A addToTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A removeFromTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... items) { + if (this.tolerations == null) return (A)this; + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) return (A)this; + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) return (A) this; + final Iterator each = tolerations.iterator(); + final List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1beta2DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + public V1beta2DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public V1beta2DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1beta2DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1beta2DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1beta2DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1beta2DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1beta2DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1beta2DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + + public boolean hasTolerations() { + return this.tolerations != null && !this.tolerations.isEmpty(); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1beta2DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1beta2DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); + return setNewTolerationLike(0, buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta2DeviceSelectorFluent> implements Nested{ + SelectorsNested(int index,V1beta2DeviceSelector item) { + this.index = index; + this.builder = new V1beta2DeviceSelectorBuilder(this, item); + } + V1beta2DeviceSelectorBuilder builder; + int index; + + public N and() { + return (N) V1beta2ExactDeviceRequestFluent.this.setToSelectors(index,builder.build()); + } + + public N endSelector() { + return and(); + } + + + } + public class TolerationsNested extends V1beta2DeviceTolerationFluent> implements Nested{ + TolerationsNested(int index,V1beta2DeviceToleration item) { + this.index = index; + this.builder = new V1beta2DeviceTolerationBuilder(this, item); + } + V1beta2DeviceTolerationBuilder builder; + int index; + + public N and() { + return (N) V1beta2ExactDeviceRequestFluent.this.setToTolerations(index,builder.build()); + } + + public N endToleration() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataBuilder.java new file mode 100644 index 0000000000..875fd4b582 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2NetworkDeviceDataBuilder extends V1beta2NetworkDeviceDataFluent implements VisitableBuilder{ + public V1beta2NetworkDeviceDataBuilder() { + this(new V1beta2NetworkDeviceData()); + } + + public V1beta2NetworkDeviceDataBuilder(V1beta2NetworkDeviceDataFluent fluent) { + this(fluent, new V1beta2NetworkDeviceData()); + } + + public V1beta2NetworkDeviceDataBuilder(V1beta2NetworkDeviceDataFluent fluent,V1beta2NetworkDeviceData instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2NetworkDeviceDataBuilder(V1beta2NetworkDeviceData instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2NetworkDeviceDataFluent fluent; + + public V1beta2NetworkDeviceData build() { + V1beta2NetworkDeviceData buildable = new V1beta2NetworkDeviceData(); + buildable.setHardwareAddress(fluent.getHardwareAddress()); + buildable.setInterfaceName(fluent.getInterfaceName()); + buildable.setIps(fluent.getIps()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataFluent.java new file mode 100644 index 0000000000..bda7d4cf69 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataFluent.java @@ -0,0 +1,182 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.ArrayList; +import java.util.Collection; +import java.lang.Object; +import java.util.List; +import java.lang.String; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2NetworkDeviceDataFluent> extends BaseFluent{ + public V1beta2NetworkDeviceDataFluent() { + } + + public V1beta2NetworkDeviceDataFluent(V1beta2NetworkDeviceData instance) { + this.copyInstance(instance); + } + private String hardwareAddress; + private String interfaceName; + private List ips; + + protected void copyInstance(V1beta2NetworkDeviceData instance) { + instance = (instance != null ? instance : new V1beta2NetworkDeviceData()); + if (instance != null) { + this.withHardwareAddress(instance.getHardwareAddress()); + this.withInterfaceName(instance.getInterfaceName()); + this.withIps(instance.getIps()); + } + } + + public String getHardwareAddress() { + return this.hardwareAddress; + } + + public A withHardwareAddress(String hardwareAddress) { + this.hardwareAddress = hardwareAddress; + return (A) this; + } + + public boolean hasHardwareAddress() { + return this.hardwareAddress != null; + } + + public String getInterfaceName() { + return this.interfaceName; + } + + public A withInterfaceName(String interfaceName) { + this.interfaceName = interfaceName; + return (A) this; + } + + public boolean hasInterfaceName() { + return this.interfaceName != null; + } + + public A addToIps(int index,String item) { + if (this.ips == null) {this.ips = new ArrayList();} + this.ips.add(index, item); + return (A)this; + } + + public A setToIps(int index,String item) { + if (this.ips == null) {this.ips = new ArrayList();} + this.ips.set(index, item); return (A)this; + } + + public A addToIps(java.lang.String... items) { + if (this.ips == null) {this.ips = new ArrayList();} + for (String item : items) {this.ips.add(item);} return (A)this; + } + + public A addAllToIps(Collection items) { + if (this.ips == null) {this.ips = new ArrayList();} + for (String item : items) {this.ips.add(item);} return (A)this; + } + + public A removeFromIps(java.lang.String... items) { + if (this.ips == null) return (A)this; + for (String item : items) { this.ips.remove(item);} return (A)this; + } + + public A removeAllFromIps(Collection items) { + if (this.ips == null) return (A)this; + for (String item : items) { this.ips.remove(item);} return (A)this; + } + + public List getIps() { + return this.ips; + } + + public String getIp(int index) { + return this.ips.get(index); + } + + public String getFirstIp() { + return this.ips.get(0); + } + + public String getLastIp() { + return this.ips.get(ips.size() - 1); + } + + public String getMatchingIp(Predicate predicate) { + for (String item : ips) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingIp(Predicate predicate) { + for (String item : ips) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withIps(List ips) { + if (ips != null) { + this.ips = new ArrayList(); + for (String item : ips) { + this.addToIps(item); + } + } else { + this.ips = null; + } + return (A) this; + } + + public A withIps(java.lang.String... ips) { + if (this.ips != null) { + this.ips.clear(); + _visitables.remove("ips"); + } + if (ips != null) { + for (String item : ips) { + this.addToIps(item); + } + } + return (A) this; + } + + public boolean hasIps() { + return this.ips != null && !this.ips.isEmpty(); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2NetworkDeviceDataFluent that = (V1beta2NetworkDeviceDataFluent) o; + if (!java.util.Objects.equals(hardwareAddress, that.hardwareAddress)) return false; + if (!java.util.Objects.equals(interfaceName, that.interfaceName)) return false; + if (!java.util.Objects.equals(ips, that.ips)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(hardwareAddress, interfaceName, ips, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (hardwareAddress != null) { sb.append("hardwareAddress:"); sb.append(hardwareAddress + ","); } + if (interfaceName != null) { sb.append("interfaceName:"); sb.append(interfaceName + ","); } + if (ips != null && !ips.isEmpty()) { sb.append("ips:"); sb.append(ips); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationBuilder.java new file mode 100644 index 0000000000..8a26b9defb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2OpaqueDeviceConfigurationBuilder extends V1beta2OpaqueDeviceConfigurationFluent implements VisitableBuilder{ + public V1beta2OpaqueDeviceConfigurationBuilder() { + this(new V1beta2OpaqueDeviceConfiguration()); + } + + public V1beta2OpaqueDeviceConfigurationBuilder(V1beta2OpaqueDeviceConfigurationFluent fluent) { + this(fluent, new V1beta2OpaqueDeviceConfiguration()); + } + + public V1beta2OpaqueDeviceConfigurationBuilder(V1beta2OpaqueDeviceConfigurationFluent fluent,V1beta2OpaqueDeviceConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2OpaqueDeviceConfigurationBuilder(V1beta2OpaqueDeviceConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2OpaqueDeviceConfigurationFluent fluent; + + public V1beta2OpaqueDeviceConfiguration build() { + V1beta2OpaqueDeviceConfiguration buildable = new V1beta2OpaqueDeviceConfiguration(); + buildable.setDriver(fluent.getDriver()); + buildable.setParameters(fluent.getParameters()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationFluent.java new file mode 100644 index 0000000000..0fe3497c39 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationFluent.java @@ -0,0 +1,80 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2OpaqueDeviceConfigurationFluent> extends BaseFluent{ + public V1beta2OpaqueDeviceConfigurationFluent() { + } + + public V1beta2OpaqueDeviceConfigurationFluent(V1beta2OpaqueDeviceConfiguration instance) { + this.copyInstance(instance); + } + private String driver; + private Object parameters; + + protected void copyInstance(V1beta2OpaqueDeviceConfiguration instance) { + instance = (instance != null ? instance : new V1beta2OpaqueDeviceConfiguration()); + if (instance != null) { + this.withDriver(instance.getDriver()); + this.withParameters(instance.getParameters()); + } + } + + public String getDriver() { + return this.driver; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public Object getParameters() { + return this.parameters; + } + + public A withParameters(Object parameters) { + this.parameters = parameters; + return (A) this; + } + + public boolean hasParameters() { + return this.parameters != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2OpaqueDeviceConfigurationFluent that = (V1beta2OpaqueDeviceConfigurationFluent) o; + if (!java.util.Objects.equals(driver, that.driver)) return false; + if (!java.util.Objects.equals(parameters, that.parameters)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(driver, parameters, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } + if (parameters != null) { sb.append("parameters:"); sb.append(parameters); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimBuilder.java new file mode 100644 index 0000000000..817d6655ed --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourceClaimBuilder extends V1beta2ResourceClaimFluent implements VisitableBuilder{ + public V1beta2ResourceClaimBuilder() { + this(new V1beta2ResourceClaim()); + } + + public V1beta2ResourceClaimBuilder(V1beta2ResourceClaimFluent fluent) { + this(fluent, new V1beta2ResourceClaim()); + } + + public V1beta2ResourceClaimBuilder(V1beta2ResourceClaimFluent fluent,V1beta2ResourceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourceClaimBuilder(V1beta2ResourceClaim instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourceClaimFluent fluent; + + public V1beta2ResourceClaim build() { + V1beta2ResourceClaim buildable = new V1beta2ResourceClaim(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + buildable.setStatus(fluent.buildStatus()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceBuilder.java new file mode 100644 index 0000000000..8b104bf1f3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourceClaimConsumerReferenceBuilder extends V1beta2ResourceClaimConsumerReferenceFluent implements VisitableBuilder{ + public V1beta2ResourceClaimConsumerReferenceBuilder() { + this(new V1beta2ResourceClaimConsumerReference()); + } + + public V1beta2ResourceClaimConsumerReferenceBuilder(V1beta2ResourceClaimConsumerReferenceFluent fluent) { + this(fluent, new V1beta2ResourceClaimConsumerReference()); + } + + public V1beta2ResourceClaimConsumerReferenceBuilder(V1beta2ResourceClaimConsumerReferenceFluent fluent,V1beta2ResourceClaimConsumerReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourceClaimConsumerReferenceBuilder(V1beta2ResourceClaimConsumerReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourceClaimConsumerReferenceFluent fluent; + + public V1beta2ResourceClaimConsumerReference build() { + V1beta2ResourceClaimConsumerReference buildable = new V1beta2ResourceClaimConsumerReference(); + buildable.setApiGroup(fluent.getApiGroup()); + buildable.setName(fluent.getName()); + buildable.setResource(fluent.getResource()); + buildable.setUid(fluent.getUid()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceFluent.java new file mode 100644 index 0000000000..f3bdf6b209 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceFluent.java @@ -0,0 +1,114 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimConsumerReferenceFluent> extends BaseFluent{ + public V1beta2ResourceClaimConsumerReferenceFluent() { + } + + public V1beta2ResourceClaimConsumerReferenceFluent(V1beta2ResourceClaimConsumerReference instance) { + this.copyInstance(instance); + } + private String apiGroup; + private String name; + private String resource; + private String uid; + + protected void copyInstance(V1beta2ResourceClaimConsumerReference instance) { + instance = (instance != null ? instance : new V1beta2ResourceClaimConsumerReference()); + if (instance != null) { + this.withApiGroup(instance.getApiGroup()); + this.withName(instance.getName()); + this.withResource(instance.getResource()); + this.withUid(instance.getUid()); + } + } + + public String getApiGroup() { + return this.apiGroup; + } + + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public boolean hasApiGroup() { + return this.apiGroup != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public String getResource() { + return this.resource; + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + + public boolean hasResource() { + return this.resource != null; + } + + public String getUid() { + return this.uid; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + + public boolean hasUid() { + return this.uid != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2ResourceClaimConsumerReferenceFluent that = (V1beta2ResourceClaimConsumerReferenceFluent) o; + if (!java.util.Objects.equals(apiGroup, that.apiGroup)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + if (!java.util.Objects.equals(resource, that.resource)) return false; + if (!java.util.Objects.equals(uid, that.uid)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiGroup, name, resource, uid, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiGroup != null) { sb.append("apiGroup:"); sb.append(apiGroup + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } + if (uid != null) { sb.append("uid:"); sb.append(uid); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimFluent.java new file mode 100644 index 0000000000..79baaba65c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimFluent.java @@ -0,0 +1,260 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimFluent> extends BaseFluent{ + public V1beta2ResourceClaimFluent() { + } + + public V1beta2ResourceClaimFluent(V1beta2ResourceClaim instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta2ResourceClaimSpecBuilder spec; + private V1beta2ResourceClaimStatusBuilder status; + + protected void copyInstance(V1beta2ResourceClaim instance) { + instance = (instance != null ? instance : new V1beta2ResourceClaim()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1beta2ResourceClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1beta2ResourceClaimSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta2ResourceClaimSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta2ResourceClaimSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta2ResourceClaimSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta2ResourceClaimSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public V1beta2ResourceClaimStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + public A withStatus(V1beta2ResourceClaimStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1beta2ResourceClaimStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } + + public boolean hasStatus() { + return this.status != null; + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1beta2ResourceClaimStatus item) { + return new StatusNested(item); + } + + public StatusNested editStatus() { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + } + + public StatusNested editOrNewStatus() { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1beta2ResourceClaimStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1beta2ResourceClaimStatus item) { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2ResourceClaimFluent that = (V1beta2ResourceClaimFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!java.util.Objects.equals(status, that.status)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta2ResourceClaimFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1beta2ResourceClaimSpecFluent> implements Nested{ + SpecNested(V1beta2ResourceClaimSpec item) { + this.builder = new V1beta2ResourceClaimSpecBuilder(this, item); + } + V1beta2ResourceClaimSpecBuilder builder; + + public N and() { + return (N) V1beta2ResourceClaimFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + public class StatusNested extends V1beta2ResourceClaimStatusFluent> implements Nested{ + StatusNested(V1beta2ResourceClaimStatus item) { + this.builder = new V1beta2ResourceClaimStatusBuilder(this, item); + } + V1beta2ResourceClaimStatusBuilder builder; + + public N and() { + return (N) V1beta2ResourceClaimFluent.this.withStatus(builder.build()); + } + + public N endStatus() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListBuilder.java new file mode 100644 index 0000000000..a6ff3b1c62 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourceClaimListBuilder extends V1beta2ResourceClaimListFluent implements VisitableBuilder{ + public V1beta2ResourceClaimListBuilder() { + this(new V1beta2ResourceClaimList()); + } + + public V1beta2ResourceClaimListBuilder(V1beta2ResourceClaimListFluent fluent) { + this(fluent, new V1beta2ResourceClaimList()); + } + + public V1beta2ResourceClaimListBuilder(V1beta2ResourceClaimListFluent fluent,V1beta2ResourceClaimList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourceClaimListBuilder(V1beta2ResourceClaimList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourceClaimListFluent fluent; + + public V1beta2ResourceClaimList build() { + V1beta2ResourceClaimList buildable = new V1beta2ResourceClaimList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListFluent.java new file mode 100644 index 0000000000..97c683fc6e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimListFluent> extends BaseFluent{ + public V1beta2ResourceClaimListFluent() { + } + + public V1beta2ResourceClaimListFluent(V1beta2ResourceClaimList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1beta2ResourceClaimList instance) { + instance = (instance != null ? instance : new V1beta2ResourceClaimList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1beta2ResourceClaim item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1beta2ResourceClaim item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1beta2ResourceClaim... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta2ResourceClaim item : items) {V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta2ResourceClaim item : items) {V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta2ResourceClaim... items) { + if (this.items == null) return (A)this; + for (V1beta2ResourceClaim item : items) {V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1beta2ResourceClaim item : items) {V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta2ResourceClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta2ResourceClaim buildItem(int index) { + return this.items.get(index).build(); + } + + public V1beta2ResourceClaim buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta2ResourceClaim buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta2ResourceClaim buildMatchingItem(Predicate predicate) { + for (V1beta2ResourceClaimBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta2ResourceClaimBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta2ResourceClaim item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1beta2ResourceClaim... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta2ResourceClaim item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta2ResourceClaim item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1beta2ResourceClaim item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2ResourceClaimListFluent that = (V1beta2ResourceClaimListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1beta2ResourceClaimFluent> implements Nested{ + ItemsNested(int index,V1beta2ResourceClaim item) { + this.index = index; + this.builder = new V1beta2ResourceClaimBuilder(this, item); + } + V1beta2ResourceClaimBuilder builder; + int index; + + public N and() { + return (N) V1beta2ResourceClaimListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1beta2ResourceClaimListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecBuilder.java new file mode 100644 index 0000000000..552bd5d926 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourceClaimSpecBuilder extends V1beta2ResourceClaimSpecFluent implements VisitableBuilder{ + public V1beta2ResourceClaimSpecBuilder() { + this(new V1beta2ResourceClaimSpec()); + } + + public V1beta2ResourceClaimSpecBuilder(V1beta2ResourceClaimSpecFluent fluent) { + this(fluent, new V1beta2ResourceClaimSpec()); + } + + public V1beta2ResourceClaimSpecBuilder(V1beta2ResourceClaimSpecFluent fluent,V1beta2ResourceClaimSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourceClaimSpecBuilder(V1beta2ResourceClaimSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourceClaimSpecFluent fluent; + + public V1beta2ResourceClaimSpec build() { + V1beta2ResourceClaimSpec buildable = new V1beta2ResourceClaimSpec(); + buildable.setDevices(fluent.buildDevices()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecFluent.java new file mode 100644 index 0000000000..15e52c6e86 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimSpecFluent> extends BaseFluent{ + public V1beta2ResourceClaimSpecFluent() { + } + + public V1beta2ResourceClaimSpecFluent(V1beta2ResourceClaimSpec instance) { + this.copyInstance(instance); + } + private V1beta2DeviceClaimBuilder devices; + + protected void copyInstance(V1beta2ResourceClaimSpec instance) { + instance = (instance != null ? instance : new V1beta2ResourceClaimSpec()); + if (instance != null) { + this.withDevices(instance.getDevices()); + } + } + + public V1beta2DeviceClaim buildDevices() { + return this.devices != null ? this.devices.build() : null; + } + + public A withDevices(V1beta2DeviceClaim devices) { + this._visitables.remove("devices"); + if (devices != null) { + this.devices = new V1beta2DeviceClaimBuilder(devices); + this._visitables.get("devices").add(this.devices); + } else { + this.devices = null; + this._visitables.get("devices").remove(this.devices); + } + return (A) this; + } + + public boolean hasDevices() { + return this.devices != null; + } + + public DevicesNested withNewDevices() { + return new DevicesNested(null); + } + + public DevicesNested withNewDevicesLike(V1beta2DeviceClaim item) { + return new DevicesNested(item); + } + + public DevicesNested editDevices() { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(null)); + } + + public DevicesNested editOrNewDevices() { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(new V1beta2DeviceClaimBuilder().build())); + } + + public DevicesNested editOrNewDevicesLike(V1beta2DeviceClaim item) { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2ResourceClaimSpecFluent that = (V1beta2ResourceClaimSpecFluent) o; + if (!java.util.Objects.equals(devices, that.devices)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(devices, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (devices != null) { sb.append("devices:"); sb.append(devices); } + sb.append("}"); + return sb.toString(); + } + public class DevicesNested extends V1beta2DeviceClaimFluent> implements Nested{ + DevicesNested(V1beta2DeviceClaim item) { + this.builder = new V1beta2DeviceClaimBuilder(this, item); + } + V1beta2DeviceClaimBuilder builder; + + public N and() { + return (N) V1beta2ResourceClaimSpecFluent.this.withDevices(builder.build()); + } + + public N endDevices() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusBuilder.java new file mode 100644 index 0000000000..ff3c44b096 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourceClaimStatusBuilder extends V1beta2ResourceClaimStatusFluent implements VisitableBuilder{ + public V1beta2ResourceClaimStatusBuilder() { + this(new V1beta2ResourceClaimStatus()); + } + + public V1beta2ResourceClaimStatusBuilder(V1beta2ResourceClaimStatusFluent fluent) { + this(fluent, new V1beta2ResourceClaimStatus()); + } + + public V1beta2ResourceClaimStatusBuilder(V1beta2ResourceClaimStatusFluent fluent,V1beta2ResourceClaimStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourceClaimStatusBuilder(V1beta2ResourceClaimStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourceClaimStatusFluent fluent; + + public V1beta2ResourceClaimStatus build() { + V1beta2ResourceClaimStatus buildable = new V1beta2ResourceClaimStatus(); + buildable.setAllocation(fluent.buildAllocation()); + buildable.setDevices(fluent.buildDevices()); + buildable.setReservedFor(fluent.buildReservedFor()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusFluent.java new file mode 100644 index 0000000000..38cfc687af --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusFluent.java @@ -0,0 +1,482 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimStatusFluent> extends BaseFluent{ + public V1beta2ResourceClaimStatusFluent() { + } + + public V1beta2ResourceClaimStatusFluent(V1beta2ResourceClaimStatus instance) { + this.copyInstance(instance); + } + private V1beta2AllocationResultBuilder allocation; + private ArrayList devices; + private ArrayList reservedFor; + + protected void copyInstance(V1beta2ResourceClaimStatus instance) { + instance = (instance != null ? instance : new V1beta2ResourceClaimStatus()); + if (instance != null) { + this.withAllocation(instance.getAllocation()); + this.withDevices(instance.getDevices()); + this.withReservedFor(instance.getReservedFor()); + } + } + + public V1beta2AllocationResult buildAllocation() { + return this.allocation != null ? this.allocation.build() : null; + } + + public A withAllocation(V1beta2AllocationResult allocation) { + this._visitables.remove("allocation"); + if (allocation != null) { + this.allocation = new V1beta2AllocationResultBuilder(allocation); + this._visitables.get("allocation").add(this.allocation); + } else { + this.allocation = null; + this._visitables.get("allocation").remove(this.allocation); + } + return (A) this; + } + + public boolean hasAllocation() { + return this.allocation != null; + } + + public AllocationNested withNewAllocation() { + return new AllocationNested(null); + } + + public AllocationNested withNewAllocationLike(V1beta2AllocationResult item) { + return new AllocationNested(item); + } + + public AllocationNested editAllocation() { + return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(null)); + } + + public AllocationNested editOrNewAllocation() { + return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(new V1beta2AllocationResultBuilder().build())); + } + + public AllocationNested editOrNewAllocationLike(V1beta2AllocationResult item) { + return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(item)); + } + + public A addToDevices(int index,V1beta2AllocatedDeviceStatus item) { + if (this.devices == null) {this.devices = new ArrayList();} + V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.add(index, builder); + } + return (A)this; + } + + public A setToDevices(int index,V1beta2AllocatedDeviceStatus item) { + if (this.devices == null) {this.devices = new ArrayList();} + V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.set(index, builder); + } + return (A)this; + } + + public A addToDevices(io.kubernetes.client.openapi.models.V1beta2AllocatedDeviceStatus... items) { + if (this.devices == null) {this.devices = new ArrayList();} + for (V1beta2AllocatedDeviceStatus item : items) {V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + } + + public A addAllToDevices(Collection items) { + if (this.devices == null) {this.devices = new ArrayList();} + for (V1beta2AllocatedDeviceStatus item : items) {V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + } + + public A removeFromDevices(io.kubernetes.client.openapi.models.V1beta2AllocatedDeviceStatus... items) { + if (this.devices == null) return (A)this; + for (V1beta2AllocatedDeviceStatus item : items) {V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + } + + public A removeAllFromDevices(Collection items) { + if (this.devices == null) return (A)this; + for (V1beta2AllocatedDeviceStatus item : items) {V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + } + + public A removeMatchingFromDevices(Predicate predicate) { + if (devices == null) return (A) this; + final Iterator each = devices.iterator(); + final List visitables = _visitables.get("devices"); + while (each.hasNext()) { + V1beta2AllocatedDeviceStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildDevices() { + return this.devices != null ? build(devices) : null; + } + + public V1beta2AllocatedDeviceStatus buildDevice(int index) { + return this.devices.get(index).build(); + } + + public V1beta2AllocatedDeviceStatus buildFirstDevice() { + return this.devices.get(0).build(); + } + + public V1beta2AllocatedDeviceStatus buildLastDevice() { + return this.devices.get(devices.size() - 1).build(); + } + + public V1beta2AllocatedDeviceStatus buildMatchingDevice(Predicate predicate) { + for (V1beta2AllocatedDeviceStatusBuilder item : devices) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingDevice(Predicate predicate) { + for (V1beta2AllocatedDeviceStatusBuilder item : devices) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withDevices(List devices) { + if (this.devices != null) { + this._visitables.get("devices").clear(); + } + if (devices != null) { + this.devices = new ArrayList(); + for (V1beta2AllocatedDeviceStatus item : devices) { + this.addToDevices(item); + } + } else { + this.devices = null; + } + return (A) this; + } + + public A withDevices(io.kubernetes.client.openapi.models.V1beta2AllocatedDeviceStatus... devices) { + if (this.devices != null) { + this.devices.clear(); + _visitables.remove("devices"); + } + if (devices != null) { + for (V1beta2AllocatedDeviceStatus item : devices) { + this.addToDevices(item); + } + } + return (A) this; + } + + public boolean hasDevices() { + return this.devices != null && !this.devices.isEmpty(); + } + + public DevicesNested addNewDevice() { + return new DevicesNested(-1, null); + } + + public DevicesNested addNewDeviceLike(V1beta2AllocatedDeviceStatus item) { + return new DevicesNested(-1, item); + } + + public DevicesNested setNewDeviceLike(int index,V1beta2AllocatedDeviceStatus item) { + return new DevicesNested(index, item); + } + + public DevicesNested editDevice(int index) { + if (devices.size() <= index) throw new RuntimeException("Can't edit devices. Index exceeds size."); + return setNewDeviceLike(index, buildDevice(index)); + } + + public DevicesNested editFirstDevice() { + if (devices.size() == 0) throw new RuntimeException("Can't edit first devices. The list is empty."); + return setNewDeviceLike(0, buildDevice(0)); + } + + public DevicesNested editLastDevice() { + int index = devices.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last devices. The list is empty."); + return setNewDeviceLike(index, buildDevice(index)); + } + + public DevicesNested editMatchingDevice(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); + if (index < 0 || index >= reservedFor.size()) { + _visitables.get("reservedFor").add(builder); + reservedFor.add(builder); + } else { + _visitables.get("reservedFor").add(builder); + reservedFor.add(index, builder); + } + return (A)this; + } + + public A setToReservedFor(int index,V1beta2ResourceClaimConsumerReference item) { + if (this.reservedFor == null) {this.reservedFor = new ArrayList();} + V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); + if (index < 0 || index >= reservedFor.size()) { + _visitables.get("reservedFor").add(builder); + reservedFor.add(builder); + } else { + _visitables.get("reservedFor").add(builder); + reservedFor.set(index, builder); + } + return (A)this; + } + + public A addToReservedFor(io.kubernetes.client.openapi.models.V1beta2ResourceClaimConsumerReference... items) { + if (this.reservedFor == null) {this.reservedFor = new ArrayList();} + for (V1beta2ResourceClaimConsumerReference item : items) {V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").add(builder);this.reservedFor.add(builder);} return (A)this; + } + + public A addAllToReservedFor(Collection items) { + if (this.reservedFor == null) {this.reservedFor = new ArrayList();} + for (V1beta2ResourceClaimConsumerReference item : items) {V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").add(builder);this.reservedFor.add(builder);} return (A)this; + } + + public A removeFromReservedFor(io.kubernetes.client.openapi.models.V1beta2ResourceClaimConsumerReference... items) { + if (this.reservedFor == null) return (A)this; + for (V1beta2ResourceClaimConsumerReference item : items) {V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").remove(builder); this.reservedFor.remove(builder);} return (A)this; + } + + public A removeAllFromReservedFor(Collection items) { + if (this.reservedFor == null) return (A)this; + for (V1beta2ResourceClaimConsumerReference item : items) {V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").remove(builder); this.reservedFor.remove(builder);} return (A)this; + } + + public A removeMatchingFromReservedFor(Predicate predicate) { + if (reservedFor == null) return (A) this; + final Iterator each = reservedFor.iterator(); + final List visitables = _visitables.get("reservedFor"); + while (each.hasNext()) { + V1beta2ResourceClaimConsumerReferenceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildReservedFor() { + return this.reservedFor != null ? build(reservedFor) : null; + } + + public V1beta2ResourceClaimConsumerReference buildReservedFor(int index) { + return this.reservedFor.get(index).build(); + } + + public V1beta2ResourceClaimConsumerReference buildFirstReservedFor() { + return this.reservedFor.get(0).build(); + } + + public V1beta2ResourceClaimConsumerReference buildLastReservedFor() { + return this.reservedFor.get(reservedFor.size() - 1).build(); + } + + public V1beta2ResourceClaimConsumerReference buildMatchingReservedFor(Predicate predicate) { + for (V1beta2ResourceClaimConsumerReferenceBuilder item : reservedFor) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingReservedFor(Predicate predicate) { + for (V1beta2ResourceClaimConsumerReferenceBuilder item : reservedFor) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withReservedFor(List reservedFor) { + if (this.reservedFor != null) { + this._visitables.get("reservedFor").clear(); + } + if (reservedFor != null) { + this.reservedFor = new ArrayList(); + for (V1beta2ResourceClaimConsumerReference item : reservedFor) { + this.addToReservedFor(item); + } + } else { + this.reservedFor = null; + } + return (A) this; + } + + public A withReservedFor(io.kubernetes.client.openapi.models.V1beta2ResourceClaimConsumerReference... reservedFor) { + if (this.reservedFor != null) { + this.reservedFor.clear(); + _visitables.remove("reservedFor"); + } + if (reservedFor != null) { + for (V1beta2ResourceClaimConsumerReference item : reservedFor) { + this.addToReservedFor(item); + } + } + return (A) this; + } + + public boolean hasReservedFor() { + return this.reservedFor != null && !this.reservedFor.isEmpty(); + } + + public ReservedForNested addNewReservedFor() { + return new ReservedForNested(-1, null); + } + + public ReservedForNested addNewReservedForLike(V1beta2ResourceClaimConsumerReference item) { + return new ReservedForNested(-1, item); + } + + public ReservedForNested setNewReservedForLike(int index,V1beta2ResourceClaimConsumerReference item) { + return new ReservedForNested(index, item); + } + + public ReservedForNested editReservedFor(int index) { + if (reservedFor.size() <= index) throw new RuntimeException("Can't edit reservedFor. Index exceeds size."); + return setNewReservedForLike(index, buildReservedFor(index)); + } + + public ReservedForNested editFirstReservedFor() { + if (reservedFor.size() == 0) throw new RuntimeException("Can't edit first reservedFor. The list is empty."); + return setNewReservedForLike(0, buildReservedFor(0)); + } + + public ReservedForNested editLastReservedFor() { + int index = reservedFor.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last reservedFor. The list is empty."); + return setNewReservedForLike(index, buildReservedFor(index)); + } + + public ReservedForNested editMatchingReservedFor(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta2AllocationResultFluent> implements Nested{ + AllocationNested(V1beta2AllocationResult item) { + this.builder = new V1beta2AllocationResultBuilder(this, item); + } + V1beta2AllocationResultBuilder builder; + + public N and() { + return (N) V1beta2ResourceClaimStatusFluent.this.withAllocation(builder.build()); + } + + public N endAllocation() { + return and(); + } + + + } + public class DevicesNested extends V1beta2AllocatedDeviceStatusFluent> implements Nested{ + DevicesNested(int index,V1beta2AllocatedDeviceStatus item) { + this.index = index; + this.builder = new V1beta2AllocatedDeviceStatusBuilder(this, item); + } + V1beta2AllocatedDeviceStatusBuilder builder; + int index; + + public N and() { + return (N) V1beta2ResourceClaimStatusFluent.this.setToDevices(index,builder.build()); + } + + public N endDevice() { + return and(); + } + + + } + public class ReservedForNested extends V1beta2ResourceClaimConsumerReferenceFluent> implements Nested{ + ReservedForNested(int index,V1beta2ResourceClaimConsumerReference item) { + this.index = index; + this.builder = new V1beta2ResourceClaimConsumerReferenceBuilder(this, item); + } + V1beta2ResourceClaimConsumerReferenceBuilder builder; + int index; + + public N and() { + return (N) V1beta2ResourceClaimStatusFluent.this.setToReservedFor(index,builder.build()); + } + + public N endReservedFor() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateBuilder.java new file mode 100644 index 0000000000..a67ae418d8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourceClaimTemplateBuilder extends V1beta2ResourceClaimTemplateFluent implements VisitableBuilder{ + public V1beta2ResourceClaimTemplateBuilder() { + this(new V1beta2ResourceClaimTemplate()); + } + + public V1beta2ResourceClaimTemplateBuilder(V1beta2ResourceClaimTemplateFluent fluent) { + this(fluent, new V1beta2ResourceClaimTemplate()); + } + + public V1beta2ResourceClaimTemplateBuilder(V1beta2ResourceClaimTemplateFluent fluent,V1beta2ResourceClaimTemplate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourceClaimTemplateBuilder(V1beta2ResourceClaimTemplate instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourceClaimTemplateFluent fluent; + + public V1beta2ResourceClaimTemplate build() { + V1beta2ResourceClaimTemplate buildable = new V1beta2ResourceClaimTemplate(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateFluent.java new file mode 100644 index 0000000000..4638927612 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimTemplateFluent> extends BaseFluent{ + public V1beta2ResourceClaimTemplateFluent() { + } + + public V1beta2ResourceClaimTemplateFluent(V1beta2ResourceClaimTemplate instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta2ResourceClaimTemplateSpecBuilder spec; + + protected void copyInstance(V1beta2ResourceClaimTemplate instance) { + instance = (instance != null ? instance : new V1beta2ResourceClaimTemplate()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1beta2ResourceClaimTemplateSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1beta2ResourceClaimTemplateSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta2ResourceClaimTemplateSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta2ResourceClaimTemplateSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta2ResourceClaimTemplateSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta2ResourceClaimTemplateSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2ResourceClaimTemplateFluent that = (V1beta2ResourceClaimTemplateFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta2ResourceClaimTemplateFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1beta2ResourceClaimTemplateSpecFluent> implements Nested{ + SpecNested(V1beta2ResourceClaimTemplateSpec item) { + this.builder = new V1beta2ResourceClaimTemplateSpecBuilder(this, item); + } + V1beta2ResourceClaimTemplateSpecBuilder builder; + + public N and() { + return (N) V1beta2ResourceClaimTemplateFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListBuilder.java new file mode 100644 index 0000000000..9a52747f7b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourceClaimTemplateListBuilder extends V1beta2ResourceClaimTemplateListFluent implements VisitableBuilder{ + public V1beta2ResourceClaimTemplateListBuilder() { + this(new V1beta2ResourceClaimTemplateList()); + } + + public V1beta2ResourceClaimTemplateListBuilder(V1beta2ResourceClaimTemplateListFluent fluent) { + this(fluent, new V1beta2ResourceClaimTemplateList()); + } + + public V1beta2ResourceClaimTemplateListBuilder(V1beta2ResourceClaimTemplateListFluent fluent,V1beta2ResourceClaimTemplateList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourceClaimTemplateListBuilder(V1beta2ResourceClaimTemplateList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourceClaimTemplateListFluent fluent; + + public V1beta2ResourceClaimTemplateList build() { + V1beta2ResourceClaimTemplateList buildable = new V1beta2ResourceClaimTemplateList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListFluent.java new file mode 100644 index 0000000000..e1070eb0af --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimTemplateListFluent> extends BaseFluent{ + public V1beta2ResourceClaimTemplateListFluent() { + } + + public V1beta2ResourceClaimTemplateListFluent(V1beta2ResourceClaimTemplateList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1beta2ResourceClaimTemplateList instance) { + instance = (instance != null ? instance : new V1beta2ResourceClaimTemplateList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1beta2ResourceClaimTemplate item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1beta2ResourceClaimTemplate item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1beta2ResourceClaimTemplate... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta2ResourceClaimTemplate item : items) {V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta2ResourceClaimTemplate item : items) {V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta2ResourceClaimTemplate... items) { + if (this.items == null) return (A)this; + for (V1beta2ResourceClaimTemplate item : items) {V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1beta2ResourceClaimTemplate item : items) {V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta2ResourceClaimTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta2ResourceClaimTemplate buildItem(int index) { + return this.items.get(index).build(); + } + + public V1beta2ResourceClaimTemplate buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta2ResourceClaimTemplate buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta2ResourceClaimTemplate buildMatchingItem(Predicate predicate) { + for (V1beta2ResourceClaimTemplateBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta2ResourceClaimTemplateBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta2ResourceClaimTemplate item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1beta2ResourceClaimTemplate... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta2ResourceClaimTemplate item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta2ResourceClaimTemplate item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1beta2ResourceClaimTemplate item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2ResourceClaimTemplateListFluent that = (V1beta2ResourceClaimTemplateListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1beta2ResourceClaimTemplateFluent> implements Nested{ + ItemsNested(int index,V1beta2ResourceClaimTemplate item) { + this.index = index; + this.builder = new V1beta2ResourceClaimTemplateBuilder(this, item); + } + V1beta2ResourceClaimTemplateBuilder builder; + int index; + + public N and() { + return (N) V1beta2ResourceClaimTemplateListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1beta2ResourceClaimTemplateListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecBuilder.java new file mode 100644 index 0000000000..92bbba8f67 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourceClaimTemplateSpecBuilder extends V1beta2ResourceClaimTemplateSpecFluent implements VisitableBuilder{ + public V1beta2ResourceClaimTemplateSpecBuilder() { + this(new V1beta2ResourceClaimTemplateSpec()); + } + + public V1beta2ResourceClaimTemplateSpecBuilder(V1beta2ResourceClaimTemplateSpecFluent fluent) { + this(fluent, new V1beta2ResourceClaimTemplateSpec()); + } + + public V1beta2ResourceClaimTemplateSpecBuilder(V1beta2ResourceClaimTemplateSpecFluent fluent,V1beta2ResourceClaimTemplateSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourceClaimTemplateSpecBuilder(V1beta2ResourceClaimTemplateSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourceClaimTemplateSpecFluent fluent; + + public V1beta2ResourceClaimTemplateSpec build() { + V1beta2ResourceClaimTemplateSpec buildable = new V1beta2ResourceClaimTemplateSpec(); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecFluent.java new file mode 100644 index 0000000000..b72da1d860 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecFluent.java @@ -0,0 +1,166 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimTemplateSpecFluent> extends BaseFluent{ + public V1beta2ResourceClaimTemplateSpecFluent() { + } + + public V1beta2ResourceClaimTemplateSpecFluent(V1beta2ResourceClaimTemplateSpec instance) { + this.copyInstance(instance); + } + private V1ObjectMetaBuilder metadata; + private V1beta2ResourceClaimSpecBuilder spec; + + protected void copyInstance(V1beta2ResourceClaimTemplateSpec instance) { + instance = (instance != null ? instance : new V1beta2ResourceClaimTemplateSpec()); + if (instance != null) { + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1beta2ResourceClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1beta2ResourceClaimSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta2ResourceClaimSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta2ResourceClaimSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta2ResourceClaimSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta2ResourceClaimSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2ResourceClaimTemplateSpecFluent that = (V1beta2ResourceClaimTemplateSpecFluent) o; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta2ResourceClaimTemplateSpecFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1beta2ResourceClaimSpecFluent> implements Nested{ + SpecNested(V1beta2ResourceClaimSpec item) { + this.builder = new V1beta2ResourceClaimSpecBuilder(this, item); + } + V1beta2ResourceClaimSpecBuilder builder; + + public N and() { + return (N) V1beta2ResourceClaimTemplateSpecFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolBuilder.java new file mode 100644 index 0000000000..d61fb867d4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourcePoolBuilder extends V1beta2ResourcePoolFluent implements VisitableBuilder{ + public V1beta2ResourcePoolBuilder() { + this(new V1beta2ResourcePool()); + } + + public V1beta2ResourcePoolBuilder(V1beta2ResourcePoolFluent fluent) { + this(fluent, new V1beta2ResourcePool()); + } + + public V1beta2ResourcePoolBuilder(V1beta2ResourcePoolFluent fluent,V1beta2ResourcePool instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourcePoolBuilder(V1beta2ResourcePool instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourcePoolFluent fluent; + + public V1beta2ResourcePool build() { + V1beta2ResourcePool buildable = new V1beta2ResourcePool(); + buildable.setGeneration(fluent.getGeneration()); + buildable.setName(fluent.getName()); + buildable.setResourceSliceCount(fluent.getResourceSliceCount()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolFluent.java new file mode 100644 index 0000000000..513bf560ba --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolFluent.java @@ -0,0 +1,98 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourcePoolFluent> extends BaseFluent{ + public V1beta2ResourcePoolFluent() { + } + + public V1beta2ResourcePoolFluent(V1beta2ResourcePool instance) { + this.copyInstance(instance); + } + private Long generation; + private String name; + private Long resourceSliceCount; + + protected void copyInstance(V1beta2ResourcePool instance) { + instance = (instance != null ? instance : new V1beta2ResourcePool()); + if (instance != null) { + this.withGeneration(instance.getGeneration()); + this.withName(instance.getName()); + this.withResourceSliceCount(instance.getResourceSliceCount()); + } + } + + public Long getGeneration() { + return this.generation; + } + + public A withGeneration(Long generation) { + this.generation = generation; + return (A) this; + } + + public boolean hasGeneration() { + return this.generation != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public Long getResourceSliceCount() { + return this.resourceSliceCount; + } + + public A withResourceSliceCount(Long resourceSliceCount) { + this.resourceSliceCount = resourceSliceCount; + return (A) this; + } + + public boolean hasResourceSliceCount() { + return this.resourceSliceCount != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2ResourcePoolFluent that = (V1beta2ResourcePoolFluent) o; + if (!java.util.Objects.equals(generation, that.generation)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + if (!java.util.Objects.equals(resourceSliceCount, that.resourceSliceCount)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(generation, name, resourceSliceCount, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (generation != null) { sb.append("generation:"); sb.append(generation + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (resourceSliceCount != null) { sb.append("resourceSliceCount:"); sb.append(resourceSliceCount); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceBuilder.java new file mode 100644 index 0000000000..cf3240717f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourceSliceBuilder extends V1beta2ResourceSliceFluent implements VisitableBuilder{ + public V1beta2ResourceSliceBuilder() { + this(new V1beta2ResourceSlice()); + } + + public V1beta2ResourceSliceBuilder(V1beta2ResourceSliceFluent fluent) { + this(fluent, new V1beta2ResourceSlice()); + } + + public V1beta2ResourceSliceBuilder(V1beta2ResourceSliceFluent fluent,V1beta2ResourceSlice instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourceSliceBuilder(V1beta2ResourceSlice instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourceSliceFluent fluent; + + public V1beta2ResourceSlice build() { + V1beta2ResourceSlice buildable = new V1beta2ResourceSlice(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceFluent.java new file mode 100644 index 0000000000..079bac4042 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceSliceFluent> extends BaseFluent{ + public V1beta2ResourceSliceFluent() { + } + + public V1beta2ResourceSliceFluent(V1beta2ResourceSlice instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta2ResourceSliceSpecBuilder spec; + + protected void copyInstance(V1beta2ResourceSlice instance) { + instance = (instance != null ? instance : new V1beta2ResourceSlice()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1beta2ResourceSliceSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1beta2ResourceSliceSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta2ResourceSliceSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta2ResourceSliceSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta2ResourceSliceSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta2ResourceSliceSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2ResourceSliceFluent that = (V1beta2ResourceSliceFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta2ResourceSliceFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1beta2ResourceSliceSpecFluent> implements Nested{ + SpecNested(V1beta2ResourceSliceSpec item) { + this.builder = new V1beta2ResourceSliceSpecBuilder(this, item); + } + V1beta2ResourceSliceSpecBuilder builder; + + public N and() { + return (N) V1beta2ResourceSliceFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListBuilder.java new file mode 100644 index 0000000000..3f94b7081e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourceSliceListBuilder extends V1beta2ResourceSliceListFluent implements VisitableBuilder{ + public V1beta2ResourceSliceListBuilder() { + this(new V1beta2ResourceSliceList()); + } + + public V1beta2ResourceSliceListBuilder(V1beta2ResourceSliceListFluent fluent) { + this(fluent, new V1beta2ResourceSliceList()); + } + + public V1beta2ResourceSliceListBuilder(V1beta2ResourceSliceListFluent fluent,V1beta2ResourceSliceList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourceSliceListBuilder(V1beta2ResourceSliceList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourceSliceListFluent fluent; + + public V1beta2ResourceSliceList build() { + V1beta2ResourceSliceList buildable = new V1beta2ResourceSliceList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListFluent.java new file mode 100644 index 0000000000..b1970e9192 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceSliceListFluent> extends BaseFluent{ + public V1beta2ResourceSliceListFluent() { + } + + public V1beta2ResourceSliceListFluent(V1beta2ResourceSliceList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1beta2ResourceSliceList instance) { + instance = (instance != null ? instance : new V1beta2ResourceSliceList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1beta2ResourceSlice item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1beta2ResourceSlice item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1beta2ResourceSlice... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta2ResourceSlice item : items) {V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta2ResourceSlice item : items) {V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta2ResourceSlice... items) { + if (this.items == null) return (A)this; + for (V1beta2ResourceSlice item : items) {V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1beta2ResourceSlice item : items) {V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta2ResourceSliceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta2ResourceSlice buildItem(int index) { + return this.items.get(index).build(); + } + + public V1beta2ResourceSlice buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta2ResourceSlice buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta2ResourceSlice buildMatchingItem(Predicate predicate) { + for (V1beta2ResourceSliceBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta2ResourceSliceBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta2ResourceSlice item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1beta2ResourceSlice... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta2ResourceSlice item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta2ResourceSlice item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1beta2ResourceSlice item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2ResourceSliceListFluent that = (V1beta2ResourceSliceListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1beta2ResourceSliceFluent> implements Nested{ + ItemsNested(int index,V1beta2ResourceSlice item) { + this.index = index; + this.builder = new V1beta2ResourceSliceBuilder(this, item); + } + V1beta2ResourceSliceBuilder builder; + int index; + + public N and() { + return (N) V1beta2ResourceSliceListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1beta2ResourceSliceListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecBuilder.java new file mode 100644 index 0000000000..d3dcfeeb08 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecBuilder.java @@ -0,0 +1,38 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourceSliceSpecBuilder extends V1beta2ResourceSliceSpecFluent implements VisitableBuilder{ + public V1beta2ResourceSliceSpecBuilder() { + this(new V1beta2ResourceSliceSpec()); + } + + public V1beta2ResourceSliceSpecBuilder(V1beta2ResourceSliceSpecFluent fluent) { + this(fluent, new V1beta2ResourceSliceSpec()); + } + + public V1beta2ResourceSliceSpecBuilder(V1beta2ResourceSliceSpecFluent fluent,V1beta2ResourceSliceSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourceSliceSpecBuilder(V1beta2ResourceSliceSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourceSliceSpecFluent fluent; + + public V1beta2ResourceSliceSpec build() { + V1beta2ResourceSliceSpec buildable = new V1beta2ResourceSliceSpec(); + buildable.setAllNodes(fluent.getAllNodes()); + buildable.setDevices(fluent.buildDevices()); + buildable.setDriver(fluent.getDriver()); + buildable.setNodeName(fluent.getNodeName()); + buildable.setNodeSelector(fluent.buildNodeSelector()); + buildable.setPerDeviceNodeSelection(fluent.getPerDeviceNodeSelection()); + buildable.setPool(fluent.buildPool()); + buildable.setSharedCounters(fluent.buildSharedCounters()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecFluent.java new file mode 100644 index 0000000000..9e4c75b9f6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecFluent.java @@ -0,0 +1,619 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceSliceSpecFluent> extends BaseFluent{ + public V1beta2ResourceSliceSpecFluent() { + } + + public V1beta2ResourceSliceSpecFluent(V1beta2ResourceSliceSpec instance) { + this.copyInstance(instance); + } + private Boolean allNodes; + private ArrayList devices; + private String driver; + private String nodeName; + private V1NodeSelectorBuilder nodeSelector; + private Boolean perDeviceNodeSelection; + private V1beta2ResourcePoolBuilder pool; + private ArrayList sharedCounters; + + protected void copyInstance(V1beta2ResourceSliceSpec instance) { + instance = (instance != null ? instance : new V1beta2ResourceSliceSpec()); + if (instance != null) { + this.withAllNodes(instance.getAllNodes()); + this.withDevices(instance.getDevices()); + this.withDriver(instance.getDriver()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withPerDeviceNodeSelection(instance.getPerDeviceNodeSelection()); + this.withPool(instance.getPool()); + this.withSharedCounters(instance.getSharedCounters()); + } + } + + public Boolean getAllNodes() { + return this.allNodes; + } + + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + + public boolean hasAllNodes() { + return this.allNodes != null; + } + + public A addToDevices(int index,V1beta2Device item) { + if (this.devices == null) {this.devices = new ArrayList();} + V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.add(index, builder); + } + return (A)this; + } + + public A setToDevices(int index,V1beta2Device item) { + if (this.devices == null) {this.devices = new ArrayList();} + V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.set(index, builder); + } + return (A)this; + } + + public A addToDevices(io.kubernetes.client.openapi.models.V1beta2Device... items) { + if (this.devices == null) {this.devices = new ArrayList();} + for (V1beta2Device item : items) {V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + } + + public A addAllToDevices(Collection items) { + if (this.devices == null) {this.devices = new ArrayList();} + for (V1beta2Device item : items) {V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + } + + public A removeFromDevices(io.kubernetes.client.openapi.models.V1beta2Device... items) { + if (this.devices == null) return (A)this; + for (V1beta2Device item : items) {V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + } + + public A removeAllFromDevices(Collection items) { + if (this.devices == null) return (A)this; + for (V1beta2Device item : items) {V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + } + + public A removeMatchingFromDevices(Predicate predicate) { + if (devices == null) return (A) this; + final Iterator each = devices.iterator(); + final List visitables = _visitables.get("devices"); + while (each.hasNext()) { + V1beta2DeviceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildDevices() { + return this.devices != null ? build(devices) : null; + } + + public V1beta2Device buildDevice(int index) { + return this.devices.get(index).build(); + } + + public V1beta2Device buildFirstDevice() { + return this.devices.get(0).build(); + } + + public V1beta2Device buildLastDevice() { + return this.devices.get(devices.size() - 1).build(); + } + + public V1beta2Device buildMatchingDevice(Predicate predicate) { + for (V1beta2DeviceBuilder item : devices) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingDevice(Predicate predicate) { + for (V1beta2DeviceBuilder item : devices) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withDevices(List devices) { + if (this.devices != null) { + this._visitables.get("devices").clear(); + } + if (devices != null) { + this.devices = new ArrayList(); + for (V1beta2Device item : devices) { + this.addToDevices(item); + } + } else { + this.devices = null; + } + return (A) this; + } + + public A withDevices(io.kubernetes.client.openapi.models.V1beta2Device... devices) { + if (this.devices != null) { + this.devices.clear(); + _visitables.remove("devices"); + } + if (devices != null) { + for (V1beta2Device item : devices) { + this.addToDevices(item); + } + } + return (A) this; + } + + public boolean hasDevices() { + return this.devices != null && !this.devices.isEmpty(); + } + + public DevicesNested addNewDevice() { + return new DevicesNested(-1, null); + } + + public DevicesNested addNewDeviceLike(V1beta2Device item) { + return new DevicesNested(-1, item); + } + + public DevicesNested setNewDeviceLike(int index,V1beta2Device item) { + return new DevicesNested(index, item); + } + + public DevicesNested editDevice(int index) { + if (devices.size() <= index) throw new RuntimeException("Can't edit devices. Index exceeds size."); + return setNewDeviceLike(index, buildDevice(index)); + } + + public DevicesNested editFirstDevice() { + if (devices.size() == 0) throw new RuntimeException("Can't edit first devices. The list is empty."); + return setNewDeviceLike(0, buildDevice(0)); + } + + public DevicesNested editLastDevice() { + int index = devices.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last devices. The list is empty."); + return setNewDeviceLike(index, buildDevice(index)); + } + + public DevicesNested editMatchingDevice(Predicate predicate) { + int index = -1; + for (int i=0;i withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public NodeSelectorNested editNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); + } + + public Boolean getPerDeviceNodeSelection() { + return this.perDeviceNodeSelection; + } + + public A withPerDeviceNodeSelection(Boolean perDeviceNodeSelection) { + this.perDeviceNodeSelection = perDeviceNodeSelection; + return (A) this; + } + + public boolean hasPerDeviceNodeSelection() { + return this.perDeviceNodeSelection != null; + } + + public V1beta2ResourcePool buildPool() { + return this.pool != null ? this.pool.build() : null; + } + + public A withPool(V1beta2ResourcePool pool) { + this._visitables.remove("pool"); + if (pool != null) { + this.pool = new V1beta2ResourcePoolBuilder(pool); + this._visitables.get("pool").add(this.pool); + } else { + this.pool = null; + this._visitables.get("pool").remove(this.pool); + } + return (A) this; + } + + public boolean hasPool() { + return this.pool != null; + } + + public PoolNested withNewPool() { + return new PoolNested(null); + } + + public PoolNested withNewPoolLike(V1beta2ResourcePool item) { + return new PoolNested(item); + } + + public PoolNested editPool() { + return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(null)); + } + + public PoolNested editOrNewPool() { + return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(new V1beta2ResourcePoolBuilder().build())); + } + + public PoolNested editOrNewPoolLike(V1beta2ResourcePool item) { + return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(item)); + } + + public A addToSharedCounters(int index,V1beta2CounterSet item) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); + if (index < 0 || index >= sharedCounters.size()) { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(builder); + } else { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(index, builder); + } + return (A)this; + } + + public A setToSharedCounters(int index,V1beta2CounterSet item) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); + if (index < 0 || index >= sharedCounters.size()) { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(builder); + } else { + _visitables.get("sharedCounters").add(builder); + sharedCounters.set(index, builder); + } + return (A)this; + } + + public A addToSharedCounters(io.kubernetes.client.openapi.models.V1beta2CounterSet... items) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + for (V1beta2CounterSet item : items) {V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item);_visitables.get("sharedCounters").add(builder);this.sharedCounters.add(builder);} return (A)this; + } + + public A addAllToSharedCounters(Collection items) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + for (V1beta2CounterSet item : items) {V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item);_visitables.get("sharedCounters").add(builder);this.sharedCounters.add(builder);} return (A)this; + } + + public A removeFromSharedCounters(io.kubernetes.client.openapi.models.V1beta2CounterSet... items) { + if (this.sharedCounters == null) return (A)this; + for (V1beta2CounterSet item : items) {V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item);_visitables.get("sharedCounters").remove(builder); this.sharedCounters.remove(builder);} return (A)this; + } + + public A removeAllFromSharedCounters(Collection items) { + if (this.sharedCounters == null) return (A)this; + for (V1beta2CounterSet item : items) {V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item);_visitables.get("sharedCounters").remove(builder); this.sharedCounters.remove(builder);} return (A)this; + } + + public A removeMatchingFromSharedCounters(Predicate predicate) { + if (sharedCounters == null) return (A) this; + final Iterator each = sharedCounters.iterator(); + final List visitables = _visitables.get("sharedCounters"); + while (each.hasNext()) { + V1beta2CounterSetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSharedCounters() { + return this.sharedCounters != null ? build(sharedCounters) : null; + } + + public V1beta2CounterSet buildSharedCounter(int index) { + return this.sharedCounters.get(index).build(); + } + + public V1beta2CounterSet buildFirstSharedCounter() { + return this.sharedCounters.get(0).build(); + } + + public V1beta2CounterSet buildLastSharedCounter() { + return this.sharedCounters.get(sharedCounters.size() - 1).build(); + } + + public V1beta2CounterSet buildMatchingSharedCounter(Predicate predicate) { + for (V1beta2CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSharedCounter(Predicate predicate) { + for (V1beta2CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSharedCounters(List sharedCounters) { + if (this.sharedCounters != null) { + this._visitables.get("sharedCounters").clear(); + } + if (sharedCounters != null) { + this.sharedCounters = new ArrayList(); + for (V1beta2CounterSet item : sharedCounters) { + this.addToSharedCounters(item); + } + } else { + this.sharedCounters = null; + } + return (A) this; + } + + public A withSharedCounters(io.kubernetes.client.openapi.models.V1beta2CounterSet... sharedCounters) { + if (this.sharedCounters != null) { + this.sharedCounters.clear(); + _visitables.remove("sharedCounters"); + } + if (sharedCounters != null) { + for (V1beta2CounterSet item : sharedCounters) { + this.addToSharedCounters(item); + } + } + return (A) this; + } + + public boolean hasSharedCounters() { + return this.sharedCounters != null && !this.sharedCounters.isEmpty(); + } + + public SharedCountersNested addNewSharedCounter() { + return new SharedCountersNested(-1, null); + } + + public SharedCountersNested addNewSharedCounterLike(V1beta2CounterSet item) { + return new SharedCountersNested(-1, item); + } + + public SharedCountersNested setNewSharedCounterLike(int index,V1beta2CounterSet item) { + return new SharedCountersNested(index, item); + } + + public SharedCountersNested editSharedCounter(int index) { + if (sharedCounters.size() <= index) throw new RuntimeException("Can't edit sharedCounters. Index exceeds size."); + return setNewSharedCounterLike(index, buildSharedCounter(index)); + } + + public SharedCountersNested editFirstSharedCounter() { + if (sharedCounters.size() == 0) throw new RuntimeException("Can't edit first sharedCounters. The list is empty."); + return setNewSharedCounterLike(0, buildSharedCounter(0)); + } + + public SharedCountersNested editLastSharedCounter() { + int index = sharedCounters.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last sharedCounters. The list is empty."); + return setNewSharedCounterLike(index, buildSharedCounter(index)); + } + + public SharedCountersNested editMatchingSharedCounter(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta2DeviceFluent> implements Nested{ + DevicesNested(int index,V1beta2Device item) { + this.index = index; + this.builder = new V1beta2DeviceBuilder(this, item); + } + V1beta2DeviceBuilder builder; + int index; + + public N and() { + return (N) V1beta2ResourceSliceSpecFluent.this.setToDevices(index,builder.build()); + } + + public N endDevice() { + return and(); + } + + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + V1NodeSelectorBuilder builder; + + public N and() { + return (N) V1beta2ResourceSliceSpecFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + + } + public class PoolNested extends V1beta2ResourcePoolFluent> implements Nested{ + PoolNested(V1beta2ResourcePool item) { + this.builder = new V1beta2ResourcePoolBuilder(this, item); + } + V1beta2ResourcePoolBuilder builder; + + public N and() { + return (N) V1beta2ResourceSliceSpecFluent.this.withPool(builder.build()); + } + + public N endPool() { + return and(); + } + + + } + public class SharedCountersNested extends V1beta2CounterSetFluent> implements Nested{ + SharedCountersNested(int index,V1beta2CounterSet item) { + this.index = index; + this.builder = new V1beta2CounterSetBuilder(this, item); + } + V1beta2CounterSetBuilder builder; + int index; + + public N and() { + return (N) V1beta2ResourceSliceSpecFluent.this.setToSharedCounters(index,builder.build()); + } + + public N endSharedCounter() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesBuilder.java index 073ef595f5..f29e05f432 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesBuilder.java @@ -26,6 +26,7 @@ public V2HPAScalingRules build() { buildable.setPolicies(fluent.buildPolicies()); buildable.setSelectPolicy(fluent.getSelectPolicy()); buildable.setStabilizationWindowSeconds(fluent.getStabilizationWindowSeconds()); + buildable.setTolerance(fluent.getTolerance()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluent.java index 51026c1d6f..26bdb09ee3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluent.java @@ -4,6 +4,7 @@ import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; +import io.kubernetes.client.custom.Quantity; import java.lang.String; import java.util.function.Predicate; import java.lang.Integer; @@ -27,6 +28,7 @@ public V2HPAScalingRulesFluent(V2HPAScalingRules instance) { private ArrayList policies; private String selectPolicy; private Integer stabilizationWindowSeconds; + private Quantity tolerance; protected void copyInstance(V2HPAScalingRules instance) { instance = (instance != null ? instance : new V2HPAScalingRules()); @@ -34,20 +36,33 @@ protected void copyInstance(V2HPAScalingRules instance) { this.withPolicies(instance.getPolicies()); this.withSelectPolicy(instance.getSelectPolicy()); this.withStabilizationWindowSeconds(instance.getStabilizationWindowSeconds()); + this.withTolerance(instance.getTolerance()); } } public A addToPolicies(int index,V2HPAScalingPolicy item) { if (this.policies == null) {this.policies = new ArrayList();} V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); - if (index < 0 || index >= policies.size()) { _visitables.get("policies").add(builder); policies.add(builder); } else { _visitables.get("policies").add(index, builder); policies.add(index, builder);} + if (index < 0 || index >= policies.size()) { + _visitables.get("policies").add(builder); + policies.add(builder); + } else { + _visitables.get("policies").add(builder); + policies.add(index, builder); + } return (A)this; } public A setToPolicies(int index,V2HPAScalingPolicy item) { if (this.policies == null) {this.policies = new ArrayList();} V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); - if (index < 0 || index >= policies.size()) { _visitables.get("policies").add(builder); policies.add(builder); } else { _visitables.get("policies").set(index, builder); policies.set(index, builder);} + if (index < 0 || index >= policies.size()) { + _visitables.get("policies").add(builder); + policies.add(builder); + } else { + _visitables.get("policies").add(builder); + policies.set(index, builder); + } return (A)this; } @@ -214,6 +229,23 @@ public boolean hasStabilizationWindowSeconds() { return this.stabilizationWindowSeconds != null; } + public Quantity getTolerance() { + return this.tolerance; + } + + public A withTolerance(Quantity tolerance) { + this.tolerance = tolerance; + return (A) this; + } + + public boolean hasTolerance() { + return this.tolerance != null; + } + + public A withNewTolerance(String value) { + return (A)withTolerance(new Quantity(value)); + } + public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; @@ -222,11 +254,12 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(policies, that.policies)) return false; if (!java.util.Objects.equals(selectPolicy, that.selectPolicy)) return false; if (!java.util.Objects.equals(stabilizationWindowSeconds, that.stabilizationWindowSeconds)) return false; + if (!java.util.Objects.equals(tolerance, that.tolerance)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(policies, selectPolicy, stabilizationWindowSeconds, super.hashCode()); + return java.util.Objects.hash(policies, selectPolicy, stabilizationWindowSeconds, tolerance, super.hashCode()); } public String toString() { @@ -234,7 +267,8 @@ public String toString() { sb.append("{"); if (policies != null && !policies.isEmpty()) { sb.append("policies:"); sb.append(policies + ","); } if (selectPolicy != null) { sb.append("selectPolicy:"); sb.append(selectPolicy + ","); } - if (stabilizationWindowSeconds != null) { sb.append("stabilizationWindowSeconds:"); sb.append(stabilizationWindowSeconds); } + if (stabilizationWindowSeconds != null) { sb.append("stabilizationWindowSeconds:"); sb.append(stabilizationWindowSeconds + ","); } + if (tolerance != null) { sb.append("tolerance:"); sb.append(tolerance); } sb.append("}"); return sb.toString(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluent.java index d3ab7660b5..dc760e2f95 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V2HorizontalPodAutoscaler item) { if (this.items == null) {this.items = new ArrayList();} V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V2HorizontalPodAutoscaler item) { if (this.items == null) {this.items = new ArrayList();} V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluent.java index d77d2095fc..510a44a4df 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluent.java @@ -97,14 +97,26 @@ public boolean hasMaxReplicas() { public A addToMetrics(int index,V2MetricSpec item) { if (this.metrics == null) {this.metrics = new ArrayList();} V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); - if (index < 0 || index >= metrics.size()) { _visitables.get("metrics").add(builder); metrics.add(builder); } else { _visitables.get("metrics").add(index, builder); metrics.add(index, builder);} + if (index < 0 || index >= metrics.size()) { + _visitables.get("metrics").add(builder); + metrics.add(builder); + } else { + _visitables.get("metrics").add(builder); + metrics.add(index, builder); + } return (A)this; } public A setToMetrics(int index,V2MetricSpec item) { if (this.metrics == null) {this.metrics = new ArrayList();} V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); - if (index < 0 || index >= metrics.size()) { _visitables.get("metrics").add(builder); metrics.add(builder); } else { _visitables.get("metrics").set(index, builder); metrics.set(index, builder);} + if (index < 0 || index >= metrics.size()) { + _visitables.get("metrics").add(builder); + metrics.add(builder); + } else { + _visitables.get("metrics").add(builder); + metrics.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluent.java index 1ad1936db9..c5d3af9e39 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluent.java @@ -48,14 +48,26 @@ protected void copyInstance(V2HorizontalPodAutoscalerStatus instance) { public A addToConditions(int index,V2HorizontalPodAutoscalerCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V2HorizontalPodAutoscalerCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } @@ -199,14 +211,26 @@ public ConditionsNested editMatchingCondition(Predicate();} V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); - if (index < 0 || index >= currentMetrics.size()) { _visitables.get("currentMetrics").add(builder); currentMetrics.add(builder); } else { _visitables.get("currentMetrics").add(index, builder); currentMetrics.add(index, builder);} + if (index < 0 || index >= currentMetrics.size()) { + _visitables.get("currentMetrics").add(builder); + currentMetrics.add(builder); + } else { + _visitables.get("currentMetrics").add(builder); + currentMetrics.add(index, builder); + } return (A)this; } public A setToCurrentMetrics(int index,V2MetricStatus item) { if (this.currentMetrics == null) {this.currentMetrics = new ArrayList();} V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); - if (index < 0 || index >= currentMetrics.size()) { _visitables.get("currentMetrics").add(builder); currentMetrics.add(builder); } else { _visitables.get("currentMetrics").set(index, builder); currentMetrics.set(index, builder);} + if (index < 0 || index >= currentMetrics.size()) { + _visitables.get("currentMetrics").add(builder); + currentMetrics.add(builder); + } else { + _visitables.get("currentMetrics").add(builder); + currentMetrics.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoBuilder.java index 1f4d7ea941..283ccae757 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoBuilder.java @@ -25,11 +25,15 @@ public VersionInfo build() { VersionInfo buildable = new VersionInfo(); buildable.setBuildDate(fluent.getBuildDate()); buildable.setCompiler(fluent.getCompiler()); + buildable.setEmulationMajor(fluent.getEmulationMajor()); + buildable.setEmulationMinor(fluent.getEmulationMinor()); buildable.setGitCommit(fluent.getGitCommit()); buildable.setGitTreeState(fluent.getGitTreeState()); buildable.setGitVersion(fluent.getGitVersion()); buildable.setGoVersion(fluent.getGoVersion()); buildable.setMajor(fluent.getMajor()); + buildable.setMinCompatibilityMajor(fluent.getMinCompatibilityMajor()); + buildable.setMinCompatibilityMinor(fluent.getMinCompatibilityMinor()); buildable.setMinor(fluent.getMinor()); buildable.setPlatform(fluent.getPlatform()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluent.java index d839407173..312866ab19 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluent.java @@ -18,11 +18,15 @@ public VersionInfoFluent(VersionInfo instance) { } private String buildDate; private String compiler; + private String emulationMajor; + private String emulationMinor; private String gitCommit; private String gitTreeState; private String gitVersion; private String goVersion; private String major; + private String minCompatibilityMajor; + private String minCompatibilityMinor; private String minor; private String platform; @@ -31,11 +35,15 @@ protected void copyInstance(VersionInfo instance) { if (instance != null) { this.withBuildDate(instance.getBuildDate()); this.withCompiler(instance.getCompiler()); + this.withEmulationMajor(instance.getEmulationMajor()); + this.withEmulationMinor(instance.getEmulationMinor()); this.withGitCommit(instance.getGitCommit()); this.withGitTreeState(instance.getGitTreeState()); this.withGitVersion(instance.getGitVersion()); this.withGoVersion(instance.getGoVersion()); this.withMajor(instance.getMajor()); + this.withMinCompatibilityMajor(instance.getMinCompatibilityMajor()); + this.withMinCompatibilityMinor(instance.getMinCompatibilityMinor()); this.withMinor(instance.getMinor()); this.withPlatform(instance.getPlatform()); } @@ -67,6 +75,32 @@ public boolean hasCompiler() { return this.compiler != null; } + public String getEmulationMajor() { + return this.emulationMajor; + } + + public A withEmulationMajor(String emulationMajor) { + this.emulationMajor = emulationMajor; + return (A) this; + } + + public boolean hasEmulationMajor() { + return this.emulationMajor != null; + } + + public String getEmulationMinor() { + return this.emulationMinor; + } + + public A withEmulationMinor(String emulationMinor) { + this.emulationMinor = emulationMinor; + return (A) this; + } + + public boolean hasEmulationMinor() { + return this.emulationMinor != null; + } + public String getGitCommit() { return this.gitCommit; } @@ -132,6 +166,32 @@ public boolean hasMajor() { return this.major != null; } + public String getMinCompatibilityMajor() { + return this.minCompatibilityMajor; + } + + public A withMinCompatibilityMajor(String minCompatibilityMajor) { + this.minCompatibilityMajor = minCompatibilityMajor; + return (A) this; + } + + public boolean hasMinCompatibilityMajor() { + return this.minCompatibilityMajor != null; + } + + public String getMinCompatibilityMinor() { + return this.minCompatibilityMinor; + } + + public A withMinCompatibilityMinor(String minCompatibilityMinor) { + this.minCompatibilityMinor = minCompatibilityMinor; + return (A) this; + } + + public boolean hasMinCompatibilityMinor() { + return this.minCompatibilityMinor != null; + } + public String getMinor() { return this.minor; } @@ -165,18 +225,22 @@ public boolean equals(Object o) { VersionInfoFluent that = (VersionInfoFluent) o; if (!java.util.Objects.equals(buildDate, that.buildDate)) return false; if (!java.util.Objects.equals(compiler, that.compiler)) return false; + if (!java.util.Objects.equals(emulationMajor, that.emulationMajor)) return false; + if (!java.util.Objects.equals(emulationMinor, that.emulationMinor)) return false; if (!java.util.Objects.equals(gitCommit, that.gitCommit)) return false; if (!java.util.Objects.equals(gitTreeState, that.gitTreeState)) return false; if (!java.util.Objects.equals(gitVersion, that.gitVersion)) return false; if (!java.util.Objects.equals(goVersion, that.goVersion)) return false; if (!java.util.Objects.equals(major, that.major)) return false; + if (!java.util.Objects.equals(minCompatibilityMajor, that.minCompatibilityMajor)) return false; + if (!java.util.Objects.equals(minCompatibilityMinor, that.minCompatibilityMinor)) return false; if (!java.util.Objects.equals(minor, that.minor)) return false; if (!java.util.Objects.equals(platform, that.platform)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(buildDate, compiler, gitCommit, gitTreeState, gitVersion, goVersion, major, minor, platform, super.hashCode()); + return java.util.Objects.hash(buildDate, compiler, emulationMajor, emulationMinor, gitCommit, gitTreeState, gitVersion, goVersion, major, minCompatibilityMajor, minCompatibilityMinor, minor, platform, super.hashCode()); } public String toString() { @@ -184,11 +248,15 @@ public String toString() { sb.append("{"); if (buildDate != null) { sb.append("buildDate:"); sb.append(buildDate + ","); } if (compiler != null) { sb.append("compiler:"); sb.append(compiler + ","); } + if (emulationMajor != null) { sb.append("emulationMajor:"); sb.append(emulationMajor + ","); } + if (emulationMinor != null) { sb.append("emulationMinor:"); sb.append(emulationMinor + ","); } if (gitCommit != null) { sb.append("gitCommit:"); sb.append(gitCommit + ","); } if (gitTreeState != null) { sb.append("gitTreeState:"); sb.append(gitTreeState + ","); } if (gitVersion != null) { sb.append("gitVersion:"); sb.append(gitVersion + ","); } if (goVersion != null) { sb.append("goVersion:"); sb.append(goVersion + ","); } if (major != null) { sb.append("major:"); sb.append(major + ","); } + if (minCompatibilityMajor != null) { sb.append("minCompatibilityMajor:"); sb.append(minCompatibilityMajor + ","); } + if (minCompatibilityMinor != null) { sb.append("minCompatibilityMinor:"); sb.append(minCompatibilityMinor + ","); } if (minor != null) { sb.append("minor:"); sb.append(minor + ","); } if (platform != null) { sb.append("platform:"); sb.append(platform); } sb.append("}"); diff --git a/kubernetes/.openapi-generator/COMMIT b/kubernetes/.openapi-generator/COMMIT index eaeb6a15ba..2af53c20f9 100644 --- a/kubernetes/.openapi-generator/COMMIT +++ b/kubernetes/.openapi-generator/COMMIT @@ -1,2 +1,2 @@ -Requested Commit/Tag : v7.6.0 -Actual Commit : ab7d0cb74f6ef95bdaeafd327bbdb5d54f819175 +Requested Commit/Tag : v7.13.0 +Actual Commit : 4b805ff6b7ac5bd2557555810357569fe2677311 diff --git a/kubernetes/.openapi-generator/FILES b/kubernetes/.openapi-generator/FILES index e76be6169c..03187c0f36 100644 --- a/kubernetes/.openapi-generator/FILES +++ b/kubernetes/.openapi-generator/FILES @@ -19,7 +19,6 @@ docs/AppsV1Api.md docs/AuthenticationApi.md docs/AuthenticationV1Api.md docs/AuthenticationV1TokenRequest.md -docs/AuthenticationV1beta1Api.md docs/AuthorizationApi.md docs/AuthorizationV1Api.md docs/AutoscalingApi.md @@ -30,9 +29,11 @@ docs/BatchV1Api.md docs/CertificatesApi.md docs/CertificatesV1Api.md docs/CertificatesV1alpha1Api.md +docs/CertificatesV1beta1Api.md docs/CoordinationApi.md docs/CoordinationV1Api.md docs/CoordinationV1alpha2Api.md +docs/CoordinationV1beta1Api.md docs/CoreApi.md docs/CoreV1Api.md docs/CoreV1EndpointPort.md @@ -68,6 +69,7 @@ docs/RbacV1Subject.md docs/ResourceApi.md docs/ResourceV1alpha3Api.md docs/ResourceV1beta1Api.md +docs/ResourceV1beta2Api.md docs/SchedulingApi.md docs/SchedulingV1Api.md docs/StorageApi.md @@ -215,6 +217,7 @@ docs/V1FlowSchemaCondition.md docs/V1FlowSchemaList.md docs/V1FlowSchemaSpec.md docs/V1FlowSchemaStatus.md +docs/V1ForNode.md docs/V1ForZone.md docs/V1GCEPersistentDiskVolumeSource.md docs/V1GRPCAction.md @@ -234,6 +237,9 @@ docs/V1HorizontalPodAutoscalerStatus.md docs/V1HostAlias.md docs/V1HostIP.md docs/V1HostPathVolumeSource.md +docs/V1IPAddress.md +docs/V1IPAddressList.md +docs/V1IPAddressSpec.md docs/V1IPBlock.md docs/V1ISCSIPersistentVolumeSource.md docs/V1ISCSIVolumeSource.md @@ -319,6 +325,7 @@ docs/V1NodeSelectorRequirement.md docs/V1NodeSelectorTerm.md docs/V1NodeSpec.md docs/V1NodeStatus.md +docs/V1NodeSwapStatus.md docs/V1NodeSystemInfo.md docs/V1NonResourceAttributes.md docs/V1NonResourcePolicyRule.md @@ -330,6 +337,7 @@ docs/V1Overhead.md docs/V1OwnerReference.md docs/V1ParamKind.md docs/V1ParamRef.md +docs/V1ParentReference.md docs/V1PersistentVolume.md docs/V1PersistentVolumeClaim.md docs/V1PersistentVolumeClaimCondition.md @@ -455,6 +463,10 @@ docs/V1ServiceAccountList.md docs/V1ServiceAccountSubject.md docs/V1ServiceAccountTokenProjection.md docs/V1ServiceBackendPort.md +docs/V1ServiceCIDR.md +docs/V1ServiceCIDRList.md +docs/V1ServiceCIDRSpec.md +docs/V1ServiceCIDRStatus.md docs/V1ServiceList.md docs/V1ServicePort.md docs/V1ServiceSpec.md @@ -570,6 +582,8 @@ docs/V1alpha3AllocatedDeviceStatus.md docs/V1alpha3AllocationResult.md docs/V1alpha3BasicDevice.md docs/V1alpha3CELDeviceSelector.md +docs/V1alpha3Counter.md +docs/V1alpha3CounterSet.md docs/V1alpha3Device.md docs/V1alpha3DeviceAllocationConfiguration.md docs/V1alpha3DeviceAllocationResult.md @@ -581,9 +595,17 @@ docs/V1alpha3DeviceClassConfiguration.md docs/V1alpha3DeviceClassList.md docs/V1alpha3DeviceClassSpec.md docs/V1alpha3DeviceConstraint.md +docs/V1alpha3DeviceCounterConsumption.md docs/V1alpha3DeviceRequest.md docs/V1alpha3DeviceRequestAllocationResult.md docs/V1alpha3DeviceSelector.md +docs/V1alpha3DeviceSubRequest.md +docs/V1alpha3DeviceTaint.md +docs/V1alpha3DeviceTaintRule.md +docs/V1alpha3DeviceTaintRuleList.md +docs/V1alpha3DeviceTaintRuleSpec.md +docs/V1alpha3DeviceTaintSelector.md +docs/V1alpha3DeviceToleration.md docs/V1alpha3NetworkDeviceData.md docs/V1alpha3OpaqueDeviceConfiguration.md docs/V1alpha3ResourceClaim.md @@ -603,6 +625,11 @@ docs/V1beta1AllocationResult.md docs/V1beta1AuditAnnotation.md docs/V1beta1BasicDevice.md docs/V1beta1CELDeviceSelector.md +docs/V1beta1ClusterTrustBundle.md +docs/V1beta1ClusterTrustBundleList.md +docs/V1beta1ClusterTrustBundleSpec.md +docs/V1beta1Counter.md +docs/V1beta1CounterSet.md docs/V1beta1Device.md docs/V1beta1DeviceAllocationConfiguration.md docs/V1beta1DeviceAllocationResult.md @@ -615,13 +642,20 @@ docs/V1beta1DeviceClassConfiguration.md docs/V1beta1DeviceClassList.md docs/V1beta1DeviceClassSpec.md docs/V1beta1DeviceConstraint.md +docs/V1beta1DeviceCounterConsumption.md docs/V1beta1DeviceRequest.md docs/V1beta1DeviceRequestAllocationResult.md docs/V1beta1DeviceSelector.md +docs/V1beta1DeviceSubRequest.md +docs/V1beta1DeviceTaint.md +docs/V1beta1DeviceToleration.md docs/V1beta1ExpressionWarning.md docs/V1beta1IPAddress.md docs/V1beta1IPAddressList.md docs/V1beta1IPAddressSpec.md +docs/V1beta1LeaseCandidate.md +docs/V1beta1LeaseCandidateList.md +docs/V1beta1LeaseCandidateSpec.md docs/V1beta1MatchCondition.md docs/V1beta1MatchResources.md docs/V1beta1NamedRuleWithOperations.md @@ -642,8 +676,6 @@ docs/V1beta1ResourcePool.md docs/V1beta1ResourceSlice.md docs/V1beta1ResourceSliceList.md docs/V1beta1ResourceSliceSpec.md -docs/V1beta1SelfSubjectReview.md -docs/V1beta1SelfSubjectReviewStatus.md docs/V1beta1ServiceCIDR.md docs/V1beta1ServiceCIDRList.md docs/V1beta1ServiceCIDRSpec.md @@ -660,6 +692,45 @@ docs/V1beta1Validation.md docs/V1beta1Variable.md docs/V1beta1VolumeAttributesClass.md docs/V1beta1VolumeAttributesClassList.md +docs/V1beta2AllocatedDeviceStatus.md +docs/V1beta2AllocationResult.md +docs/V1beta2CELDeviceSelector.md +docs/V1beta2Counter.md +docs/V1beta2CounterSet.md +docs/V1beta2Device.md +docs/V1beta2DeviceAllocationConfiguration.md +docs/V1beta2DeviceAllocationResult.md +docs/V1beta2DeviceAttribute.md +docs/V1beta2DeviceCapacity.md +docs/V1beta2DeviceClaim.md +docs/V1beta2DeviceClaimConfiguration.md +docs/V1beta2DeviceClass.md +docs/V1beta2DeviceClassConfiguration.md +docs/V1beta2DeviceClassList.md +docs/V1beta2DeviceClassSpec.md +docs/V1beta2DeviceConstraint.md +docs/V1beta2DeviceCounterConsumption.md +docs/V1beta2DeviceRequest.md +docs/V1beta2DeviceRequestAllocationResult.md +docs/V1beta2DeviceSelector.md +docs/V1beta2DeviceSubRequest.md +docs/V1beta2DeviceTaint.md +docs/V1beta2DeviceToleration.md +docs/V1beta2ExactDeviceRequest.md +docs/V1beta2NetworkDeviceData.md +docs/V1beta2OpaqueDeviceConfiguration.md +docs/V1beta2ResourceClaim.md +docs/V1beta2ResourceClaimConsumerReference.md +docs/V1beta2ResourceClaimList.md +docs/V1beta2ResourceClaimSpec.md +docs/V1beta2ResourceClaimStatus.md +docs/V1beta2ResourceClaimTemplate.md +docs/V1beta2ResourceClaimTemplateList.md +docs/V1beta2ResourceClaimTemplateSpec.md +docs/V1beta2ResourcePool.md +docs/V1beta2ResourceSlice.md +docs/V1beta2ResourceSliceList.md +docs/V1beta2ResourceSliceSpec.md docs/V2ContainerResourceMetricSource.md docs/V2ContainerResourceMetricStatus.md docs/V2CrossVersionObjectReference.md @@ -716,7 +787,6 @@ src/main/java/io/kubernetes/client/openapi/apis/AppsApi.java src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java src/main/java/io/kubernetes/client/openapi/apis/AuthenticationApi.java src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1Api.java -src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1beta1Api.java src/main/java/io/kubernetes/client/openapi/apis/AuthorizationApi.java src/main/java/io/kubernetes/client/openapi/apis/AuthorizationV1Api.java src/main/java/io/kubernetes/client/openapi/apis/AutoscalingApi.java @@ -727,9 +797,11 @@ src/main/java/io/kubernetes/client/openapi/apis/BatchV1Api.java src/main/java/io/kubernetes/client/openapi/apis/CertificatesApi.java src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1Api.java src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java +src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1beta1Api.java src/main/java/io/kubernetes/client/openapi/apis/CoordinationApi.java src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1Api.java src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha2Api.java +src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java src/main/java/io/kubernetes/client/openapi/apis/CoreApi.java src/main/java/io/kubernetes/client/openapi/apis/CoreV1Api.java src/main/java/io/kubernetes/client/openapi/apis/CustomObjectsApi.java @@ -755,6 +827,7 @@ src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1Api.java src/main/java/io/kubernetes/client/openapi/apis/ResourceApi.java src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java +src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta2Api.java src/main/java/io/kubernetes/client/openapi/apis/SchedulingApi.java src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1Api.java src/main/java/io/kubernetes/client/openapi/apis/StorageApi.java @@ -925,6 +998,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1ForNode.java src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java @@ -944,6 +1018,9 @@ src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatu src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1IPAddress.java +src/main/java/io/kubernetes/client/openapi/models/V1IPAddressList.java +src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpec.java src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java @@ -1029,6 +1106,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatus.java src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java @@ -1040,6 +1118,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java +src/main/java/io/kubernetes/client/openapi/models/V1ParentReference.java src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java @@ -1165,6 +1244,10 @@ src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java +src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java +src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRList.java +src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatus.java src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java @@ -1280,6 +1363,8 @@ src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatus. src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResult.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDevice.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3Counter.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSet.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3Device.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfiguration.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResult.java @@ -1291,9 +1376,17 @@ src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfigurati src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassList.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpec.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraint.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumption.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequest.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResult.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequest.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceToleration.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3NetworkDeviceData.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3OpaqueDeviceConfiguration.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaim.java @@ -1313,6 +1406,11 @@ src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResult.java src/main/java/io/kubernetes/client/openapi/models/V1beta1AuditAnnotation.java src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDevice.java src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundle.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1Counter.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSet.java src/main/java/io/kubernetes/client/openapi/models/V1beta1Device.java src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfiguration.java src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResult.java @@ -1325,13 +1423,20 @@ src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfiguratio src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassList.java src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpec.java src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraint.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumption.java src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequest.java src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResult.java src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequest.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaint.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceToleration.java src/main/java/io/kubernetes/client/openapi/models/V1beta1ExpressionWarning.java src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidate.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpec.java src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java @@ -1352,8 +1457,6 @@ src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePool.java src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSlice.java src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceList.java src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpec.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReview.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatus.java src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java @@ -1370,6 +1473,45 @@ src/main/java/io/kubernetes/client/openapi/models/V1beta1Validation.java src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResult.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2Counter.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSet.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2Device.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResult.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttribute.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacity.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaim.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClass.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraint.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumption.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequest.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResult.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequest.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaint.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceToleration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequest.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceData.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaim.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReference.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplate.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePool.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSlice.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpec.java src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java diff --git a/kubernetes/.openapi-generator/VERSION b/kubernetes/.openapi-generator/VERSION index 93c8ddab9f..eb1dc6a51a 100644 --- a/kubernetes/.openapi-generator/VERSION +++ b/kubernetes/.openapi-generator/VERSION @@ -1 +1 @@ -7.6.0 +7.13.0 diff --git a/kubernetes/.openapi-generator/swagger.json-default.sha256 b/kubernetes/.openapi-generator/swagger.json-default.sha256 index 28b8c5b594..812e69e459 100644 --- a/kubernetes/.openapi-generator/swagger.json-default.sha256 +++ b/kubernetes/.openapi-generator/swagger.json-default.sha256 @@ -1 +1 @@ -73f247dc7eee59a96fd9e2b948f89900304ceac61b1aa29e945e57dcaf536c07 \ No newline at end of file +b98d39bd0c9252a7d58b83a1c37cf663edace9dfb5fae6ebf13915d2ca505eab \ No newline at end of file diff --git a/kubernetes/api/openapi.yaml b/kubernetes/api/openapi.yaml index 85e50a4f54..7f7a659b14 100644 --- a/kubernetes/api/openapi.yaml +++ b/kubernetes/api/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.0.1 info: title: Kubernetes - version: release-1.32 + version: release-1.33 servers: - url: / security: @@ -36962,149 +36962,6 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/authentication.k8s.io/v1beta1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/cbor: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - authentication_v1beta1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/authentication.k8s.io/v1beta1/selfsubjectreviews: - post: - description: create a SelfSubjectReview - operationId: createSelfSubjectReview - parameters: - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - application/cbor: - schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - application/cbor: - schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - description: Created - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - application/cbor: - schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - authentication_v1beta1 - x-kubernetes-action: post - x-kubernetes-group-version-kind: - group: authentication.k8s.io - kind: SelfSubjectReview - version: v1beta1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml /apis/authorization.k8s.io/: get: description: get information of a group @@ -45079,33 +44936,7 @@ paths: - application/yaml /apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles: {} /apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles/{name}: {} - /apis/coordination.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - coordination - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/coordination.k8s.io/v1/: + /apis/certificates.k8s.io/v1beta1/: get: description: get available resources operationId: getAPIResources @@ -45129,162 +44960,17 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/coordination.k8s.io/v1/leases: - get: - description: list or watch objects of kind Lease - operationId: listLeaseForAllNamespaces - parameters: - - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ - . Servers that do not implement bookmarks may ignore this flag and bookmarks\ - \ are sent at the server's discretion. Clients should not assume bookmarks\ - \ are returned at any specific interval, nor may they assume the server\ - \ will send any BOOKMARK event during a session. If this is not a watch,\ - \ this field is ignored." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.LeaseList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.LeaseList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.LeaseList' - application/cbor: - schema: - $ref: '#/components/schemas/v1.LeaseList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.LeaseList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.LeaseList' - application/cbor-seq: - schema: - $ref: '#/components/schemas/v1.LeaseList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - coordination_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + - certificates_v1beta1 x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases: + /apis/certificates.k8s.io/v1beta1/clustertrustbundles: delete: - description: delete collection of Lease - operationId: deleteCollectionNamespacedLease + description: delete collection of ClusterTrustBundle + operationId: deleteCollectionClusterTrustBundle parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -45437,12 +45123,12 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -45451,15 +45137,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind Lease - operationId: listNamespacedLease + description: list or watch objects of kind ClusterTrustBundle + operationId: listClusterTrustBundle parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -45556,36 +45236,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' application/yaml: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' application/cbor: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-accepts: - application/cbor - application/cbor-seq @@ -45595,15 +45275,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a Lease - operationId: createNamespacedLease + description: create a ClusterTrustBundle + operationId: createClusterTrustBundle parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -45647,64 +45321,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: Accepted "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -45712,23 +45386,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}: + /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}: delete: - description: delete a Lease - operationId: deleteNamespacedLease + description: delete a ClusterTrustBundle + operationId: deleteClusterTrustBundle parameters: - - description: name of the Lease + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -45828,12 +45496,12 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -45842,21 +45510,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified Lease - operationId: readNamespacedLease + description: read the specified ClusterTrustBundle + operationId: readClusterTrustBundle parameters: - - description: name of the Lease + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -45869,48 +45531,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified Lease - operationId: patchNamespacedLease + description: partially update the specified ClusterTrustBundle + operationId: patchClusterTrustBundle parameters: - - description: name of the Lease + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -45970,42 +45626,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -46014,21 +45670,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified Lease - operationId: replaceNamespacedLease + description: replace the specified ClusterTrustBundle + operationId: replaceClusterTrustBundle parameters: - - description: name of the Lease + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -46072,49 +45722,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -46122,10 +45772,35 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1/watch/leases: {} - /apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases: {} - /apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}: {} - /apis/coordination.k8s.io/v1alpha2/: + /apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles: {} + /apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles/{name}: {} + /apis/coordination.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - coordination + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/coordination.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -46149,16 +45824,16 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - coordination_v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1alpha2/leasecandidates: + /apis/coordination.k8s.io/v1/leases: get: - description: list or watch objects of kind LeaseCandidate - operationId: listLeaseCandidateForAllNamespaces + description: list or watch objects of kind Lease + operationId: listLeaseForAllNamespaces parameters: - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ . Servers that do not implement bookmarks may ignore this flag and bookmarks\ @@ -46256,36 +45931,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - coordination_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + kind: Lease + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -46294,10 +45969,10 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates: + /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases: delete: - description: delete collection of LeaseCandidate - operationId: deleteCollectionNamespacedLeaseCandidate + description: delete collection of Lease + operationId: deleteCollectionNamespacedLease parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -46457,12 +46132,12 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - coordination_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + kind: Lease + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -46471,8 +46146,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind LeaseCandidate - operationId: listNamespacedLeaseCandidate + description: list or watch objects of kind Lease + operationId: listNamespacedLease parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -46576,36 +46251,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - coordination_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + kind: Lease + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -46615,8 +46290,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a LeaseCandidate - operationId: createNamespacedLeaseCandidate + description: create a Lease + operationId: createNamespacedLease parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -46667,64 +46342,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' description: Accepted "401": content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - coordination_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + kind: Lease + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -46732,12 +46407,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name}: + /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}: delete: - description: delete a LeaseCandidate - operationId: deleteNamespacedLeaseCandidate + description: delete a Lease + operationId: deleteNamespacedLease parameters: - - description: name of the LeaseCandidate + - description: name of the Lease in: path name: name required: true @@ -46848,12 +46523,12 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - coordination_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + kind: Lease + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -46862,10 +46537,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified LeaseCandidate - operationId: readNamespacedLeaseCandidate + description: read the specified Lease + operationId: readNamespacedLease parameters: - - description: name of the LeaseCandidate + - description: name of the Lease in: path name: name required: true @@ -46889,37 +46564,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - coordination_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + kind: Lease + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified LeaseCandidate - operationId: patchNamespacedLeaseCandidate + description: partially update the specified Lease + operationId: patchNamespacedLease parameters: - - description: name of the LeaseCandidate + - description: name of the Lease in: path name: name required: true @@ -46990,42 +46665,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - coordination_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + kind: Lease + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -47034,10 +46709,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified LeaseCandidate - operationId: replaceNamespacedLeaseCandidate + description: replace the specified Lease + operationId: replaceNamespacedLease parameters: - - description: name of the LeaseCandidate + - description: name of the Lease in: path name: name required: true @@ -47092,49 +46767,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - coordination_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + kind: Lease + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -47142,36 +46817,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1alpha2/watch/leasecandidates: {} - /apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates: {} - /apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates/{name}: {} - /apis/discovery.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - discovery - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/discovery.k8s.io/v1/: + /apis/coordination.k8s.io/v1/watch/leases: {} + /apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases: {} + /apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}: {} + /apis/coordination.k8s.io/v1alpha2/: get: description: get available resources operationId: getAPIResources @@ -47195,16 +46844,16 @@ paths: content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1alpha2 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/discovery.k8s.io/v1/endpointslices: + /apis/coordination.k8s.io/v1alpha2/leasecandidates: get: - description: list or watch objects of kind EndpointSlice - operationId: listEndpointSliceForAllNamespaces + description: list or watch objects of kind LeaseCandidate + operationId: listLeaseCandidateForAllNamespaces parameters: - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ . Servers that do not implement bookmarks may ignore this flag and bookmarks\ @@ -47302,36 +46951,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' description: OK "401": content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1alpha2 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-accepts: - application/cbor - application/cbor-seq @@ -47340,10 +46989,10 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices: + /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates: delete: - description: delete collection of EndpointSlice - operationId: deleteCollectionNamespacedEndpointSlice + description: delete collection of LeaseCandidate + operationId: deleteCollectionNamespacedLeaseCandidate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -47503,12 +47152,12 @@ paths: content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1alpha2 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -47517,8 +47166,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind EndpointSlice - operationId: listNamespacedEndpointSlice + description: list or watch objects of kind LeaseCandidate + operationId: listNamespacedLeaseCandidate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -47622,36 +47271,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' description: OK "401": content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1alpha2 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-accepts: - application/cbor - application/cbor-seq @@ -47661,8 +47310,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an EndpointSlice - operationId: createNamespacedEndpointSlice + description: create a LeaseCandidate + operationId: createNamespacedLeaseCandidate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -47713,64 +47362,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: Accepted "401": content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1alpha2 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -47778,12 +47427,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}: + /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name}: delete: - description: delete an EndpointSlice - operationId: deleteNamespacedEndpointSlice + description: delete a LeaseCandidate + operationId: deleteNamespacedLeaseCandidate parameters: - - description: name of the EndpointSlice + - description: name of the LeaseCandidate in: path name: name required: true @@ -47894,12 +47543,12 @@ paths: content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1alpha2 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -47908,10 +47557,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified EndpointSlice - operationId: readNamespacedEndpointSlice + description: read the specified LeaseCandidate + operationId: readNamespacedLeaseCandidate parameters: - - description: name of the EndpointSlice + - description: name of the LeaseCandidate in: path name: name required: true @@ -47935,37 +47584,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: OK "401": content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1alpha2 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified EndpointSlice - operationId: patchNamespacedEndpointSlice + description: partially update the specified LeaseCandidate + operationId: patchNamespacedLeaseCandidate parameters: - - description: name of the EndpointSlice + - description: name of the LeaseCandidate in: path name: name required: true @@ -48036,42 +47685,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: Created "401": content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1alpha2 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -48080,10 +47729,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified EndpointSlice - operationId: replaceNamespacedEndpointSlice + description: replace the specified LeaseCandidate + operationId: replaceNamespacedLeaseCandidate parameters: - - description: name of the EndpointSlice + - description: name of the LeaseCandidate in: path name: name required: true @@ -48138,49 +47787,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: Created "401": content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1alpha2 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -48188,36 +47837,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/discovery.k8s.io/v1/watch/endpointslices: {} - /apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices: {} - /apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}: {} - /apis/events.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - events - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/events.k8s.io/v1/: + /apis/coordination.k8s.io/v1alpha2/watch/leasecandidates: {} + /apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates: {} + /apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates/{name}: {} + /apis/coordination.k8s.io/v1beta1/: get: description: get available resources operationId: getAPIResources @@ -48241,16 +47864,16 @@ paths: content: {} description: Unauthorized tags: - - events_v1 + - coordination_v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/events.k8s.io/v1/events: + /apis/coordination.k8s.io/v1beta1/leasecandidates: get: - description: list or watch objects of kind Event - operationId: listEventForAllNamespaces + description: list or watch objects of kind LeaseCandidate + operationId: listLeaseCandidateForAllNamespaces parameters: - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ . Servers that do not implement bookmarks may ignore this flag and bookmarks\ @@ -48348,36 +47971,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/yaml: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/cbor: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/json;stream=watch: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/cbor-seq: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' description: OK "401": content: {} description: Unauthorized tags: - - events_v1 + - coordination_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-accepts: - application/cbor - application/cbor-seq @@ -48386,10 +48009,10 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/events.k8s.io/v1/namespaces/{namespace}/events: + /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates: delete: - description: delete collection of Event - operationId: deleteCollectionNamespacedEvent + description: delete collection of LeaseCandidate + operationId: deleteCollectionNamespacedLeaseCandidate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -48549,12 +48172,12 @@ paths: content: {} description: Unauthorized tags: - - events_v1 + - coordination_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -48563,8 +48186,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind Event - operationId: listNamespacedEvent + description: list or watch objects of kind LeaseCandidate + operationId: listNamespacedLeaseCandidate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -48668,36 +48291,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/yaml: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/cbor: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/json;stream=watch: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/cbor-seq: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' description: OK "401": content: {} description: Unauthorized tags: - - events_v1 + - coordination_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-accepts: - application/cbor - application/cbor-seq @@ -48707,8 +48330,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an Event - operationId: createNamespacedEvent + description: create a LeaseCandidate + operationId: createNamespacedLeaseCandidate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -48759,64 +48382,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: Accepted "401": content: {} description: Unauthorized tags: - - events_v1 + - coordination_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -48824,12 +48447,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}: + /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}: delete: - description: delete an Event - operationId: deleteNamespacedEvent + description: delete a LeaseCandidate + operationId: deleteNamespacedLeaseCandidate parameters: - - description: name of the Event + - description: name of the LeaseCandidate in: path name: name required: true @@ -48940,12 +48563,12 @@ paths: content: {} description: Unauthorized tags: - - events_v1 + - coordination_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -48954,10 +48577,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified Event - operationId: readNamespacedEvent + description: read the specified LeaseCandidate + operationId: readNamespacedLeaseCandidate parameters: - - description: name of the Event + - description: name of the LeaseCandidate in: path name: name required: true @@ -48981,37 +48604,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: OK "401": content: {} description: Unauthorized tags: - - events_v1 + - coordination_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified Event - operationId: patchNamespacedEvent + description: partially update the specified LeaseCandidate + operationId: patchNamespacedLeaseCandidate parameters: - - description: name of the Event + - description: name of the LeaseCandidate in: path name: name required: true @@ -49082,42 +48705,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: Created "401": content: {} description: Unauthorized tags: - - events_v1 + - coordination_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -49126,10 +48749,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified Event - operationId: replaceNamespacedEvent + description: replace the specified LeaseCandidate + operationId: replaceNamespacedLeaseCandidate parameters: - - description: name of the Event + - description: name of the LeaseCandidate in: path name: name required: true @@ -49184,49 +48807,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: Created "401": content: {} description: Unauthorized tags: - - events_v1 + - coordination_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -49234,10 +48857,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/events.k8s.io/v1/watch/events: {} - /apis/events.k8s.io/v1/watch/namespaces/{namespace}/events: {} - /apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}: {} - /apis/flowcontrol.apiserver.k8s.io/: + /apis/coordination.k8s.io/v1beta1/watch/leasecandidates: {} + /apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates: {} + /apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates/{name}: {} + /apis/discovery.k8s.io/: get: description: get information of a group operationId: getAPIGroup @@ -49258,12 +48881,12 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver + - discovery x-accepts: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/: + /apis/discovery.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -49287,17 +48910,162 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - discovery_v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas: + /apis/discovery.k8s.io/v1/endpointslices: + get: + description: list or watch objects of kind EndpointSlice + operationId: listEndpointSliceForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.EndpointSliceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.EndpointSliceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.EndpointSliceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.EndpointSliceList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.EndpointSliceList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.EndpointSliceList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.EndpointSliceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - discovery_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: discovery.k8s.io + kind: EndpointSlice + version: v1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices: delete: - description: delete collection of FlowSchema - operationId: deleteCollectionFlowSchema + description: delete collection of EndpointSlice + operationId: deleteCollectionNamespacedEndpointSlice parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -49450,11 +49218,11 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - discovery_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -49464,9 +49232,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind FlowSchema - operationId: listFlowSchema + description: list or watch objects of kind EndpointSlice + operationId: listNamespacedEndpointSlice parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -49563,35 +49337,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: '#/components/schemas/v1.EndpointSliceList' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - discovery_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-accepts: - application/cbor @@ -49602,9 +49376,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a FlowSchema - operationId: createFlowSchema + description: create an EndpointSlice + operationId: createNamespacedEndpointSlice parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -49648,63 +49428,63 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - discovery_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -49713,17 +49493,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}: + /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}: delete: - description: delete a FlowSchema - operationId: deleteFlowSchema + description: delete an EndpointSlice + operationId: deleteNamespacedEndpointSlice parameters: - - description: name of the FlowSchema + - description: name of the EndpointSlice in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -49823,11 +49609,11 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - discovery_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -49837,15 +49623,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified FlowSchema - operationId: readFlowSchema + description: read the specified EndpointSlice + operationId: readNamespacedEndpointSlice parameters: - - description: name of the FlowSchema + - description: name of the EndpointSlice in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -49858,26 +49650,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - discovery_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-accepts: - application/cbor @@ -49885,15 +49677,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified FlowSchema - operationId: patchFlowSchema + description: partially update the specified EndpointSlice + operationId: patchNamespacedEndpointSlice parameters: - - description: name of the FlowSchema + - description: name of the EndpointSlice in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -49953,41 +49751,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - discovery_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -49997,15 +49795,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified FlowSchema - operationId: replaceFlowSchema + description: replace the specified EndpointSlice + operationId: replaceNamespacedEndpointSlice parameters: - - description: name of the FlowSchema + - description: name of the EndpointSlice in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -50049,48 +49853,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.EndpointSlice' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - discovery_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -50099,177 +49903,108 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status: + /apis/discovery.k8s.io/v1/watch/endpointslices: {} + /apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices: {} + /apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}: {} + /apis/events.k8s.io/: get: - description: read status of the specified FlowSchema - operationId: readFlowSchemaStatus - parameters: - - description: name of the FlowSchema - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string + description: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.APIGroup' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.APIGroup' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' - application/cbor: - schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.APIGroup' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1 + - events x-accepts: - - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - patch: - description: partially update status of the specified FlowSchema - operationId: patchFlowSchemaStatus - parameters: - - description: name of the FlowSchema - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true + /apis/events.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.APIResourceList' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.APIResourceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.APIResourceList' application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.APIResourceList' description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.FlowSchema' - application/yaml: - schema: - $ref: '#/components/schemas/v1.FlowSchema' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.FlowSchema' - application/cbor: - schema: - $ref: '#/components/schemas/v1.FlowSchema' - description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json + - events_v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - put: - description: replace status of the specified FlowSchema - operationId: replaceFlowSchemaStatus + /apis/events.k8s.io/v1/events: + get: + description: list or watch objects of kind Event + operationId: listEventForAllNamespaces parameters: - - description: name of the FlowSchema - in: path - name: name - required: true + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector schema: type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -50277,97 +50012,106 @@ paths: name: pretty schema: type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query - name: dryRun + name: resourceVersion schema: type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query - name: fieldManager + name: resourceVersionMatch schema: type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. in: query - name: fieldValidation + name: sendInitialEvents schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.FlowSchema' - required: true + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.EventList' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.EventList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.EventList' application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.FlowSchema' - application/yaml: + $ref: '#/components/schemas/events.v1.EventList' + application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.FlowSchema' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/events.v1.EventList' + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.FlowSchema' - application/cbor: + $ref: '#/components/schemas/events.v1.EventList' + application/cbor-seq: schema: - $ref: '#/components/schemas/v1.FlowSchema' - description: Created + $ref: '#/components/schemas/events.v1.EventList' + description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 - x-kubernetes-action: put + - events_v1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: events.k8s.io + kind: Event version: v1 - x-codegen-request-body-name: body - x-content-type: application/json x-accepts: - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations: + /apis/events.k8s.io/v1/namespaces/{namespace}/events: delete: - description: delete collection of PriorityLevelConfiguration - operationId: deleteCollectionPriorityLevelConfiguration + description: delete collection of Event + operationId: deleteCollectionNamespacedEvent parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -50520,11 +50264,11 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - events_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + group: events.k8s.io + kind: Event version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -50534,9 +50278,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind PriorityLevelConfiguration - operationId: listPriorityLevelConfiguration + description: list or watch objects of kind Event + operationId: listNamespacedEvent parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -50633,35 +50383,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: '#/components/schemas/events.v1.EventList' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: '#/components/schemas/events.v1.EventList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: '#/components/schemas/events.v1.EventList' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: '#/components/schemas/events.v1.EventList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: '#/components/schemas/events.v1.EventList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: '#/components/schemas/events.v1.EventList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: '#/components/schemas/events.v1.EventList' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - events_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + group: events.k8s.io + kind: Event version: v1 x-accepts: - application/cbor @@ -50672,9 +50422,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a PriorityLevelConfiguration - operationId: createPriorityLevelConfiguration + description: create an Event + operationId: createNamespacedEvent parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -50718,63 +50474,63 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - events_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + group: events.k8s.io + kind: Event version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -50783,17 +50539,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}: + /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}: delete: - description: delete a PriorityLevelConfiguration - operationId: deletePriorityLevelConfiguration + description: delete an Event + operationId: deleteNamespacedEvent parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the Event in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -50893,11 +50655,11 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - events_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + group: events.k8s.io + kind: Event version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -50907,172 +50669,18 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified PriorityLevelConfiguration - operationId: readPriorityLevelConfiguration - parameters: - - description: name of the PriorityLevelConfiguration - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - application/yaml: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - application/cbor: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - flowcontrolApiserver_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update the specified PriorityLevelConfiguration - operationId: patchPriorityLevelConfiguration + description: read the specified Event + operationId: readNamespacedEvent parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the Event in: path name: name required: true schema: type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - application/yaml: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - application/cbor: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - application/yaml: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - application/cbor: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - flowcontrolApiserver_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - put: - description: replace the specified PriorityLevelConfiguration - operationId: replacePriorityLevelConfiguration - parameters: - - description: name of the PriorityLevelConfiguration + - description: "object name and auth scope, such as for teams and projects" in: path - name: name + name: namespace required: true schema: type: string @@ -51083,148 +50691,50 @@ paths: name: pretty schema: type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - application/yaml: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - application/cbor: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 - x-kubernetes-action: put + - events_v1 + x-kubernetes-action: get x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + group: events.k8s.io + kind: Event version: v1 - x-codegen-request-body-name: body - x-content-type: application/json x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status: - get: - description: read status of the specified PriorityLevelConfiguration - operationId: readPriorityLevelConfigurationStatus + patch: + description: partially update the specified Event + operationId: patchNamespacedEvent parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the Event in: path name: name required: true schema: type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - application/yaml: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - application/cbor: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - flowcontrolApiserver_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update status of the specified PriorityLevelConfiguration - operationId: patchPriorityLevelConfigurationStatus - parameters: - - description: name of the PriorityLevelConfiguration + - description: "object name and auth scope, such as for teams and projects" in: path - name: name + name: namespace required: true schema: type: string @@ -51287,41 +50797,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - events_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + group: events.k8s.io + kind: Event version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -51331,15 +50841,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified PriorityLevelConfiguration - operationId: replacePriorityLevelConfigurationStatus + description: replace the specified Event + operationId: replaceNamespacedEvent parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the Event in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -51383,48 +50899,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/events.v1.Event' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - events_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + group: events.k8s.io + kind: Event version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -51433,11 +50949,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas: {} - /apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas/{name}: {} - /apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations: {} - /apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations/{name}: {} - /apis/internal.apiserver.k8s.io/: + /apis/events.k8s.io/v1/watch/events: {} + /apis/events.k8s.io/v1/watch/namespaces/{namespace}/events: {} + /apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}: {} + /apis/flowcontrol.apiserver.k8s.io/: get: description: get information of a group operationId: getAPIGroup @@ -51458,12 +50973,12 @@ paths: content: {} description: Unauthorized tags: - - internalApiserver + - flowcontrolApiserver x-accepts: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/internal.apiserver.k8s.io/v1alpha1/: + /apis/flowcontrol.apiserver.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -51487,16 +51002,16 @@ paths: content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/internal.apiserver.k8s.io/v1alpha1/storageversions: + /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas: delete: - description: delete collection of StorageVersion - operationId: deleteCollectionStorageVersion + description: delete collection of FlowSchema + operationId: deleteCollectionFlowSchema parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -51650,12 +51165,12 @@ paths: content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -51664,8 +51179,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind StorageVersion - operationId: listStorageVersion + description: list or watch objects of kind FlowSchema + operationId: listFlowSchema parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -51763,36 +51278,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1.FlowSchemaList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1.FlowSchemaList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1.FlowSchemaList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1.FlowSchemaList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1.FlowSchemaList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1.FlowSchemaList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1.FlowSchemaList' description: OK "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -51802,8 +51317,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a StorageVersion - operationId: createStorageVersion + description: create a FlowSchema + operationId: createFlowSchema parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -51848,64 +51363,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' description: Accepted "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -51913,12 +51428,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}: + /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}: delete: - description: delete a StorageVersion - operationId: deleteStorageVersion + description: delete a FlowSchema + operationId: deleteFlowSchema parameters: - - description: name of the StorageVersion + - description: name of the FlowSchema in: path name: name required: true @@ -52023,12 +51538,12 @@ paths: content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -52037,10 +51552,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified StorageVersion - operationId: readStorageVersion + description: read the specified FlowSchema + operationId: readFlowSchema parameters: - - description: name of the StorageVersion + - description: name of the FlowSchema in: path name: name required: true @@ -52058,37 +51573,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' description: OK "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified StorageVersion - operationId: patchStorageVersion + description: partially update the specified FlowSchema + operationId: patchFlowSchema parameters: - - description: name of the StorageVersion + - description: name of the FlowSchema in: path name: name required: true @@ -52153,42 +51668,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' description: Created "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -52197,10 +51712,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified StorageVersion - operationId: replaceStorageVersion + description: replace the specified FlowSchema + operationId: replaceFlowSchema parameters: - - description: name of the StorageVersion + - description: name of the FlowSchema in: path name: name required: true @@ -52249,49 +51764,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' description: Created "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -52299,12 +51814,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status: + /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status: get: - description: read status of the specified StorageVersion - operationId: readStorageVersionStatus + description: read status of the specified FlowSchema + operationId: readFlowSchemaStatus parameters: - - description: name of the StorageVersion + - description: name of the FlowSchema in: path name: name required: true @@ -52322,37 +51837,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' description: OK "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified StorageVersion - operationId: patchStorageVersionStatus + description: partially update status of the specified FlowSchema + operationId: patchFlowSchemaStatus parameters: - - description: name of the StorageVersion + - description: name of the FlowSchema in: path name: name required: true @@ -52417,42 +51932,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' description: Created "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -52461,10 +51976,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified StorageVersion - operationId: replaceStorageVersionStatus + description: replace status of the specified FlowSchema + operationId: replaceFlowSchemaStatus parameters: - - description: name of the StorageVersion + - description: name of the FlowSchema in: path name: name required: true @@ -52513,49 +52028,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.FlowSchema' description: Created "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -52563,68 +52078,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions: {} - /apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}: {} - /apis/networking.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - networking - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/networking.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/cbor: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - networking_v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/networking.k8s.io/v1/ingressclasses: + /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations: delete: - description: delete collection of IngressClass - operationId: deleteCollectionIngressClass + description: delete collection of PriorityLevelConfiguration + operationId: deleteCollectionPriorityLevelConfiguration parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -52778,11 +52235,11 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -52792,8 +52249,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind IngressClass - operationId: listIngressClass + description: list or watch objects of kind PriorityLevelConfiguration + operationId: listPriorityLevelConfiguration parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -52891,35 +52348,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-accepts: - application/cbor @@ -52930,8 +52387,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an IngressClass - operationId: createIngressClass + description: create a PriorityLevelConfiguration + operationId: createPriorityLevelConfiguration parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -52976,63 +52433,63 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -53041,12 +52498,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/ingressclasses/{name}: + /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}: delete: - description: delete an IngressClass - operationId: deleteIngressClass + description: delete a PriorityLevelConfiguration + operationId: deletePriorityLevelConfiguration parameters: - - description: name of the IngressClass + - description: name of the PriorityLevelConfiguration in: path name: name required: true @@ -53151,11 +52608,11 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -53165,10 +52622,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified IngressClass - operationId: readIngressClass + description: read the specified PriorityLevelConfiguration + operationId: readPriorityLevelConfiguration parameters: - - description: name of the IngressClass + - description: name of the PriorityLevelConfiguration in: path name: name required: true @@ -53186,26 +52643,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-accepts: - application/cbor @@ -53213,10 +52670,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified IngressClass - operationId: patchIngressClass + description: partially update the specified PriorityLevelConfiguration + operationId: patchPriorityLevelConfiguration parameters: - - description: name of the IngressClass + - description: name of the PriorityLevelConfiguration in: path name: name required: true @@ -53281,41 +52738,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -53325,10 +52782,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified IngressClass - operationId: replaceIngressClass + description: replace the specified PriorityLevelConfiguration + operationId: replacePriorityLevelConfiguration parameters: - - description: name of the IngressClass + - description: name of the PriorityLevelConfiguration in: path name: name required: true @@ -53377,48 +52834,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -53427,49 +52884,65 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/ingresses: + /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status: get: - description: list or watch objects of kind Ingress - operationId: listIngressForAllNamespaces + description: read status of the specified PriorityLevelConfiguration + operationId: readPriorityLevelConfigurationStatus parameters: - - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ - . Servers that do not implement bookmarks may ignore this flag and bookmarks\ - \ are sent at the server's discretion. Clients should not assume bookmarks\ - \ are returned at any specific interval, nor may they assume the server\ - \ will send any BOOKMARK event during a session. If this is not a watch,\ - \ this field is ignored." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue + - description: name of the PriorityLevelConfiguration + in: path + name: name + required: true schema: type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query - name: fieldSelector + name: pretty schema: type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - flowcontrolApiserver_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified PriorityLevelConfiguration + operationId: patchPriorityLevelConfigurationStatus + parameters: + - description: name of the PriorityLevelConfiguration + in: path + name: name + required: true schema: type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -53477,106 +52950,269 @@ paths: name: pretty schema: type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: timeoutSeconds + name: fieldValidation schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. in: query - name: watch + name: force schema: type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/cbor: schema: - $ref: '#/components/schemas/v1.IngressList' - application/json;stream=watch: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + description: OK + "201": + content: + application/json: schema: - $ref: '#/components/schemas/v1.IngressList' - application/vnd.kubernetes.protobuf;stream=watch: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/yaml: schema: - $ref: '#/components/schemas/v1.IngressList' - application/cbor-seq: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressList' - description: OK + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 - x-kubernetes-action: list + - flowcontrolApiserver_v1 + x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses: - delete: - description: delete collection of Ingress - operationId: deleteCollectionNamespacedIngress + put: + description: replace status of the specified PriorityLevelConfiguration + operationId: replacePriorityLevelConfigurationStatus parameters: - - description: "object name and auth scope, such as for teams and projects" + - description: name of the PriorityLevelConfiguration in: path - name: namespace + name: name required: true schema: type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - flowcontrolApiserver_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas: {} + /apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas/{name}: {} + /apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations: {} + /apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations/{name}: {} + /apis/internal.apiserver.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - internalApiserver + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/internal.apiserver.k8s.io/v1alpha1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - internalApiserver_v1alpha1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/internal.apiserver.k8s.io/v1alpha1/storageversions: + delete: + description: delete collection of StorageVersion + operationId: deleteCollectionStorageVersion + parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -53729,12 +53365,12 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -53743,15 +53379,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind Ingress - operationId: listNamespacedIngress + description: list or watch objects of kind StorageVersion + operationId: listStorageVersion parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -53848,36 +53478,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' application/cbor: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-accepts: - application/cbor - application/cbor-seq @@ -53887,15 +53517,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an Ingress - operationId: createNamespacedIngress + description: create a StorageVersion + operationId: createStorageVersion parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -53939,64 +53563,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -54004,23 +53628,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}: + /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}: delete: - description: delete an Ingress - operationId: deleteNamespacedIngress + description: delete a StorageVersion + operationId: deleteStorageVersion parameters: - - description: name of the Ingress + - description: name of the StorageVersion in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -54120,12 +53738,12 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -54134,21 +53752,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified Ingress - operationId: readNamespacedIngress + description: read the specified StorageVersion + operationId: readStorageVersion parameters: - - description: name of the Ingress + - description: name of the StorageVersion in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -54161,48 +53773,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified Ingress - operationId: patchNamespacedIngress + description: partially update the specified StorageVersion + operationId: patchStorageVersion parameters: - - description: name of the Ingress + - description: name of the StorageVersion in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -54262,42 +53868,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -54306,21 +53912,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified Ingress - operationId: replaceNamespacedIngress + description: replace the specified StorageVersion + operationId: replaceStorageVersion parameters: - - description: name of the Ingress + - description: name of the StorageVersion in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -54364,49 +53964,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -54414,23 +54014,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status: + /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status: get: - description: read status of the specified Ingress - operationId: readNamespacedIngressStatus + description: read status of the specified StorageVersion + operationId: readStorageVersionStatus parameters: - - description: name of the Ingress + - description: name of the StorageVersion in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -54443,48 +54037,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified Ingress - operationId: patchNamespacedIngressStatus + description: partially update status of the specified StorageVersion + operationId: patchStorageVersionStatus parameters: - - description: name of the Ingress + - description: name of the StorageVersion in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -54544,42 +54132,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -54588,21 +54176,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified Ingress - operationId: replaceNamespacedIngressStatus + description: replace status of the specified StorageVersion + operationId: replaceStorageVersionStatus parameters: - - description: name of the Ingress + - description: name of the StorageVersion in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -54646,49 +54228,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -54696,17 +54278,69 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies: + /apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions: {} + /apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}: {} + /apis/networking.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - networking + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/networking.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - networking_v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/networking.k8s.io/v1/ingressclasses: delete: - description: delete collection of NetworkPolicy - operationId: deleteCollectionNamespacedNetworkPolicy + description: delete collection of IngressClass + operationId: deleteCollectionIngressClass parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -54863,7 +54497,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: IngressClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -54873,15 +54507,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind NetworkPolicy - operationId: listNamespacedNetworkPolicy + description: list or watch objects of kind IngressClass + operationId: listIngressClass parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -54978,25 +54606,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.IngressClassList' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.IngressClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.IngressClassList' application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.IngressClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.IngressClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.IngressClassList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.IngressClassList' description: OK "401": content: {} @@ -55006,7 +54634,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: IngressClass version: v1 x-accepts: - application/cbor @@ -55017,15 +54645,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a NetworkPolicy - operationId: createNamespacedNetworkPolicy + description: create an IngressClass + operationId: createIngressClass parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -55069,53 +54691,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' description: Accepted "401": content: {} @@ -55125,7 +54747,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: IngressClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -55134,23 +54756,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}: + /apis/networking.k8s.io/v1/ingressclasses/{name}: delete: - description: delete a NetworkPolicy - operationId: deleteNamespacedNetworkPolicy + description: delete an IngressClass + operationId: deleteIngressClass parameters: - - description: name of the NetworkPolicy + - description: name of the IngressClass in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -55254,7 +54870,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: IngressClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -55264,21 +54880,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified NetworkPolicy - operationId: readNamespacedNetworkPolicy + description: read the specified IngressClass + operationId: readIngressClass parameters: - - description: name of the NetworkPolicy + - description: name of the IngressClass in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -55291,16 +54901,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' description: OK "401": content: {} @@ -55310,7 +54920,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: IngressClass version: v1 x-accepts: - application/cbor @@ -55318,21 +54928,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified NetworkPolicy - operationId: patchNamespacedNetworkPolicy + description: partially update the specified IngressClass + operationId: patchIngressClass parameters: - - description: name of the NetworkPolicy + - description: name of the IngressClass in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -55392,31 +54996,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' description: Created "401": content: {} @@ -55426,7 +55030,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: IngressClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -55436,21 +55040,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified NetworkPolicy - operationId: replaceNamespacedNetworkPolicy + description: replace the specified IngressClass + operationId: replaceIngressClass parameters: - - description: name of the NetworkPolicy + - description: name of the IngressClass in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -55494,38 +55092,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.IngressClass' description: Created "401": content: {} @@ -55535,7 +55133,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: IngressClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -55544,10 +55142,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/networkpolicies: + /apis/networking.k8s.io/v1/ingresses: get: - description: list or watch objects of kind NetworkPolicy - operationId: listNetworkPolicyForAllNamespaces + description: list or watch objects of kind Ingress + operationId: listIngressForAllNamespaces parameters: - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ . Servers that do not implement bookmarks may ignore this flag and bookmarks\ @@ -55645,25 +55243,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.IngressList' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.IngressList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.IngressList' application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.IngressList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.IngressList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.IngressList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.IngressList' description: OK "401": content: {} @@ -55673,7 +55271,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: Ingress version: v1 x-accepts: - application/cbor @@ -55683,45 +55281,7 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/networking.k8s.io/v1/watch/ingressclasses: {} - /apis/networking.k8s.io/v1/watch/ingressclasses/{name}: {} - /apis/networking.k8s.io/v1/watch/ingresses: {} - /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses: {} - /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}: {} - /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies: {} - /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}: {} - /apis/networking.k8s.io/v1/watch/networkpolicies: {} - /apis/networking.k8s.io/v1beta1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/cbor: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - networking_v1beta1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/networking.k8s.io/v1beta1/ipaddresses: + /apis/networking.k8s.io/v1/ipaddresses: delete: description: delete collection of IPAddress operationId: deleteCollectionIPAddress @@ -55878,12 +55438,12 @@ paths: content: {} description: Unauthorized tags: - - networking_v1beta1 + - networking_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: networking.k8s.io kind: IPAddress - version: v1beta1 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -55991,36 +55551,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddressList' + $ref: '#/components/schemas/v1.IPAddressList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddressList' + $ref: '#/components/schemas/v1.IPAddressList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddressList' + $ref: '#/components/schemas/v1.IPAddressList' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddressList' + $ref: '#/components/schemas/v1.IPAddressList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.IPAddressList' + $ref: '#/components/schemas/v1.IPAddressList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.IPAddressList' + $ref: '#/components/schemas/v1.IPAddressList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.IPAddressList' + $ref: '#/components/schemas/v1.IPAddressList' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1beta1 + - networking_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io kind: IPAddress - version: v1beta1 + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -56076,64 +55636,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1beta1 + - networking_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: networking.k8s.io kind: IPAddress - version: v1beta1 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -56141,7 +55701,7 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1beta1/ipaddresses/{name}: + /apis/networking.k8s.io/v1/ipaddresses/{name}: delete: description: delete an IPAddress operationId: deleteIPAddress @@ -56251,12 +55811,12 @@ paths: content: {} description: Unauthorized tags: - - networking_v1beta1 + - networking_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: networking.k8s.io kind: IPAddress - version: v1beta1 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -56286,27 +55846,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1beta1 + - networking_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io kind: IPAddress - version: v1beta1 + version: v1 x-accepts: - application/cbor - application/json @@ -56381,42 +55941,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1beta1 + - networking_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: networking.k8s.io kind: IPAddress - version: v1beta1 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -56477,49 +56037,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.IPAddress' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1beta1 + - networking_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: networking.k8s.io kind: IPAddress - version: v1beta1 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -56527,11 +56087,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1beta1/servicecidrs: + /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses: delete: - description: delete collection of ServiceCIDR - operationId: deleteCollectionServiceCIDR + description: delete collection of Ingress + operationId: deleteCollectionNamespacedIngress parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -56684,12 +56250,12 @@ paths: content: {} description: Unauthorized tags: - - networking_v1beta1 + - networking_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR - version: v1beta1 + kind: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -56698,9 +56264,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ServiceCIDR - operationId: listServiceCIDR + description: list or watch objects of kind Ingress + operationId: listNamespacedIngress parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -56797,36 +56369,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + $ref: '#/components/schemas/v1.IngressList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + $ref: '#/components/schemas/v1.IngressList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + $ref: '#/components/schemas/v1.IngressList' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + $ref: '#/components/schemas/v1.IngressList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + $ref: '#/components/schemas/v1.IngressList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + $ref: '#/components/schemas/v1.IngressList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + $ref: '#/components/schemas/v1.IngressList' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1beta1 + - networking_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR - version: v1beta1 + kind: Ingress + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -56836,9 +56408,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ServiceCIDR - operationId: createServiceCIDR + description: create an Ingress + operationId: createNamespacedIngress parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -56882,64 +56460,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1beta1 + - networking_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR - version: v1beta1 + kind: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -56947,17 +56525,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1beta1/servicecidrs/{name}: + /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}: delete: - description: delete a ServiceCIDR - operationId: deleteServiceCIDR + description: delete an Ingress + operationId: deleteNamespacedIngress parameters: - - description: name of the ServiceCIDR + - description: name of the Ingress in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -57057,12 +56641,12 @@ paths: content: {} description: Unauthorized tags: - - networking_v1beta1 + - networking_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR - version: v1beta1 + kind: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -57071,15 +56655,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ServiceCIDR - operationId: readServiceCIDR + description: read the specified Ingress + operationId: readNamespacedIngress parameters: - - description: name of the ServiceCIDR + - description: name of the Ingress in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -57092,42 +56682,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1beta1 + - networking_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR - version: v1beta1 + kind: Ingress + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ServiceCIDR - operationId: patchServiceCIDR + description: partially update the specified Ingress + operationId: patchNamespacedIngress parameters: - - description: name of the ServiceCIDR + - description: name of the Ingress in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -57187,42 +56783,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1beta1 + - networking_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR - version: v1beta1 + kind: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -57231,15 +56827,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ServiceCIDR - operationId: replaceServiceCIDR + description: replace the specified Ingress + operationId: replaceNamespacedIngress parameters: - - description: name of the ServiceCIDR + - description: name of the Ingress in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -57283,49 +56885,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1beta1 + - networking_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR - version: v1beta1 + kind: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -57333,17 +56935,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status: + /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status: get: - description: read status of the specified ServiceCIDR - operationId: readServiceCIDRStatus + description: read status of the specified Ingress + operationId: readNamespacedIngressStatus parameters: - - description: name of the ServiceCIDR + - description: name of the Ingress in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -57356,42 +56964,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1beta1 + - networking_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR - version: v1beta1 + kind: Ingress + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified ServiceCIDR - operationId: patchServiceCIDRStatus + description: partially update status of the specified Ingress + operationId: patchNamespacedIngressStatus parameters: - - description: name of the ServiceCIDR + - description: name of the Ingress in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -57451,42 +57065,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1beta1 + - networking_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR - version: v1beta1 + kind: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -57495,15 +57109,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified ServiceCIDR - operationId: replaceServiceCIDRStatus + description: replace status of the specified Ingress + operationId: replaceNamespacedIngressStatus parameters: - - description: name of the ServiceCIDR + - description: name of the Ingress in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -57547,49 +57167,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1.Ingress' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1beta1 + - networking_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR - version: v1beta1 + kind: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -57597,71 +57217,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1beta1/watch/ipaddresses: {} - /apis/networking.k8s.io/v1beta1/watch/ipaddresses/{name}: {} - /apis/networking.k8s.io/v1beta1/watch/servicecidrs: {} - /apis/networking.k8s.io/v1beta1/watch/servicecidrs/{name}: {} - /apis/node.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - node - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/node.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/cbor: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - node_v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/node.k8s.io/v1/runtimeclasses: + /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies: delete: - description: delete collection of RuntimeClass - operationId: deleteCollectionRuntimeClass + description: delete collection of NetworkPolicy + operationId: deleteCollectionNamespacedNetworkPolicy parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -57814,11 +57380,11 @@ paths: content: {} description: Unauthorized tags: - - node_v1 + - networking_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: networking.k8s.io + kind: NetworkPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -57828,9 +57394,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind RuntimeClass - operationId: listRuntimeClass + description: list or watch objects of kind NetworkPolicy + operationId: listNamespacedNetworkPolicy parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -57927,35 +57499,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1.NetworkPolicyList' description: OK "401": content: {} description: Unauthorized tags: - - node_v1 + - networking_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: networking.k8s.io + kind: NetworkPolicy version: v1 x-accepts: - application/cbor @@ -57966,9 +57538,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a RuntimeClass - operationId: createRuntimeClass + description: create a NetworkPolicy + operationId: createNamespacedNetworkPolicy parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -58012,63 +57590,63 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' description: Accepted "401": content: {} description: Unauthorized tags: - - node_v1 + - networking_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: networking.k8s.io + kind: NetworkPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -58077,17 +57655,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/node.k8s.io/v1/runtimeclasses/{name}: + /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}: delete: - description: delete a RuntimeClass - operationId: deleteRuntimeClass + description: delete a NetworkPolicy + operationId: deleteNamespacedNetworkPolicy parameters: - - description: name of the RuntimeClass + - description: name of the NetworkPolicy in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -58187,11 +57771,11 @@ paths: content: {} description: Unauthorized tags: - - node_v1 + - networking_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: networking.k8s.io + kind: NetworkPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -58201,15 +57785,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified RuntimeClass - operationId: readRuntimeClass + description: read the specified NetworkPolicy + operationId: readNamespacedNetworkPolicy parameters: - - description: name of the RuntimeClass + - description: name of the NetworkPolicy in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -58222,26 +57812,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' description: OK "401": content: {} description: Unauthorized tags: - - node_v1 + - networking_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: networking.k8s.io + kind: NetworkPolicy version: v1 x-accepts: - application/cbor @@ -58249,15 +57839,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified RuntimeClass - operationId: patchRuntimeClass + description: partially update the specified NetworkPolicy + operationId: patchNamespacedNetworkPolicy parameters: - - description: name of the RuntimeClass + - description: name of the NetworkPolicy in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -58317,41 +57913,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' description: Created "401": content: {} description: Unauthorized tags: - - node_v1 + - networking_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: networking.k8s.io + kind: NetworkPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -58361,15 +57957,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified RuntimeClass - operationId: replaceRuntimeClass + description: replace the specified NetworkPolicy + operationId: replaceNamespacedNetworkPolicy parameters: - - description: name of the RuntimeClass + - description: name of the NetworkPolicy in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -58413,48 +58015,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.NetworkPolicy' description: Created "401": content: {} description: Unauthorized tags: - - node_v1 + - networking_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: networking.k8s.io + kind: NetworkPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -58463,75 +58065,150 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/node.k8s.io/v1/watch/runtimeclasses: {} - /apis/node.k8s.io/v1/watch/runtimeclasses/{name}: {} - /apis/policy/: + /apis/networking.k8s.io/v1/networkpolicies: get: - description: get information of a group - operationId: getAPIGroup + description: list or watch objects of kind NetworkPolicy + operationId: listNetworkPolicyForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - policy - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/policy/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: + $ref: '#/components/schemas/v1.NetworkPolicyList' + application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: + $ref: '#/components/schemas/v1.NetworkPolicyList' + application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.NetworkPolicyList' + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/cbor: + $ref: '#/components/schemas/v1.NetworkPolicyList' + application/cbor-seq: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.NetworkPolicyList' description: OK "401": content: {} description: Unauthorized tags: - - policy_v1 + - networking_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: NetworkPolicy + version: v1 x-accepts: - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets: + /apis/networking.k8s.io/v1/servicecidrs: delete: - description: delete collection of PodDisruptionBudget - operationId: deleteCollectionNamespacedPodDisruptionBudget + description: delete collection of ServiceCIDR + operationId: deleteCollectionServiceCIDR parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -58684,11 +58361,11 @@ paths: content: {} description: Unauthorized tags: - - policy_v1 + - networking_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: networking.k8s.io + kind: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -58698,15 +58375,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind PodDisruptionBudget - operationId: listNamespacedPodDisruptionBudget + description: list or watch objects of kind ServiceCIDR + operationId: listServiceCIDR parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -58803,35 +58474,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.ServiceCIDRList' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.ServiceCIDRList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.ServiceCIDRList' application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.ServiceCIDRList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.ServiceCIDRList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.ServiceCIDRList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.ServiceCIDRList' description: OK "401": content: {} description: Unauthorized tags: - - policy_v1 + - networking_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: networking.k8s.io + kind: ServiceCIDR version: v1 x-accepts: - application/cbor @@ -58842,15 +58513,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a PodDisruptionBudget - operationId: createNamespacedPodDisruptionBudget + description: create a ServiceCIDR + operationId: createServiceCIDR parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -58894,63 +58559,63 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' description: Accepted "401": content: {} description: Unauthorized tags: - - policy_v1 + - networking_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: networking.k8s.io + kind: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -58959,23 +58624,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}: + /apis/networking.k8s.io/v1/servicecidrs/{name}: delete: - description: delete a PodDisruptionBudget - operationId: deleteNamespacedPodDisruptionBudget + description: delete a ServiceCIDR + operationId: deleteServiceCIDR parameters: - - description: name of the PodDisruptionBudget + - description: name of the ServiceCIDR in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -59075,11 +58734,11 @@ paths: content: {} description: Unauthorized tags: - - policy_v1 + - networking_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: networking.k8s.io + kind: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -59089,21 +58748,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified PodDisruptionBudget - operationId: readNamespacedPodDisruptionBudget + description: read the specified ServiceCIDR + operationId: readServiceCIDR parameters: - - description: name of the PodDisruptionBudget + - description: name of the ServiceCIDR in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -59116,26 +58769,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' description: OK "401": content: {} description: Unauthorized tags: - - policy_v1 + - networking_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: networking.k8s.io + kind: ServiceCIDR version: v1 x-accepts: - application/cbor @@ -59143,21 +58796,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified PodDisruptionBudget - operationId: patchNamespacedPodDisruptionBudget + description: partially update the specified ServiceCIDR + operationId: patchServiceCIDR parameters: - - description: name of the PodDisruptionBudget + - description: name of the ServiceCIDR in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -59217,41 +58864,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' description: Created "401": content: {} description: Unauthorized tags: - - policy_v1 + - networking_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: networking.k8s.io + kind: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -59261,18 +58908,164 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified PodDisruptionBudget - operationId: replaceNamespacedPodDisruptionBudget + description: replace the specified ServiceCIDR + operationId: replaceServiceCIDR parameters: - - description: name of the PodDisruptionBudget + - description: name of the ServiceCIDR in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - networking_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: ServiceCIDR + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/networking.k8s.io/v1/servicecidrs/{name}/status: + get: + description: read status of the specified ServiceCIDR + operationId: readServiceCIDRStatus + parameters: + - description: name of the ServiceCIDR in: path - name: namespace + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - networking_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: ServiceCIDR + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified ServiceCIDR + operationId: patchServiceCIDRStatus + parameters: + - description: name of the ServiceCIDR + in: path + name: name required: true schema: type: string @@ -59293,173 +59086,9 @@ paths: type: string - description: "fieldManager is a name associated with the actor or entity that\ \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/yaml: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/cbor: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/yaml: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/cbor: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - policy_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status: - get: - description: read status of the specified PodDisruptionBudget - operationId: readNamespacedPodDisruptionBudgetStatus - parameters: - - description: name of the PodDisruptionBudget - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/yaml: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/cbor: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - policy_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update status of the specified PodDisruptionBudget - operationId: patchNamespacedPodDisruptionBudgetStatus - parameters: - - description: name of the PodDisruptionBudget - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: @@ -59499,41 +59128,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' description: Created "401": content: {} description: Unauthorized tags: - - policy_v1 + - networking_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: networking.k8s.io + kind: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -59543,21 +59172,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified PodDisruptionBudget - operationId: replaceNamespacedPodDisruptionBudgetStatus + description: replace status of the specified ServiceCIDR + operationId: replaceServiceCIDRStatus parameters: - - description: name of the PodDisruptionBudget + - description: name of the ServiceCIDR in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -59601,48 +59224,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.ServiceCIDR' description: Created "401": content: {} description: Unauthorized tags: - - policy_v1 + - networking_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: networking.k8s.io + kind: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -59651,175 +59274,19 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/policy/v1/poddisruptionbudgets: - get: - description: list or watch objects of kind PodDisruptionBudget - operationId: listPodDisruptionBudgetForAllNamespaces - parameters: - - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ - . Servers that do not implement bookmarks may ignore this flag and bookmarks\ - \ are sent at the server's discretion. Clients should not assume bookmarks\ - \ are returned at any specific interval, nor may they assume the server\ - \ will send any BOOKMARK event during a session. If this is not a watch,\ - \ this field is ignored." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' - application/cbor: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' - application/cbor-seq: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - policy_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1 - x-accepts: - - application/cbor - - application/cbor-seq - - application/json - - application/json;stream=watch - - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - - application/yaml - /apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets: {} - /apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}: {} - /apis/policy/v1/watch/poddisruptionbudgets: {} - /apis/rbac.authorization.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - rbacAuthorization - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/rbac.authorization.k8s.io/v1/: + /apis/networking.k8s.io/v1/watch/ingressclasses: {} + /apis/networking.k8s.io/v1/watch/ingressclasses/{name}: {} + /apis/networking.k8s.io/v1/watch/ingresses: {} + /apis/networking.k8s.io/v1/watch/ipaddresses: {} + /apis/networking.k8s.io/v1/watch/ipaddresses/{name}: {} + /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses: {} + /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}: {} + /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies: {} + /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}: {} + /apis/networking.k8s.io/v1/watch/networkpolicies: {} + /apis/networking.k8s.io/v1/watch/servicecidrs: {} + /apis/networking.k8s.io/v1/watch/servicecidrs/{name}: {} + /apis/networking.k8s.io/v1beta1/: get: description: get available resources operationId: getAPIResources @@ -59843,16 +59310,16 @@ paths: content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/clusterrolebindings: + /apis/networking.k8s.io/v1beta1/ipaddresses: delete: - description: delete collection of ClusterRoleBinding - operationId: deleteCollectionClusterRoleBinding + description: delete collection of IPAddress + operationId: deleteCollectionIPAddress parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -60006,12 +59473,12 @@ paths: content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding - version: v1 + group: networking.k8s.io + kind: IPAddress + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -60020,8 +59487,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ClusterRoleBinding - operationId: listClusterRoleBinding + description: list or watch objects of kind IPAddress + operationId: listIPAddress parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -60119,36 +59586,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1beta1.IPAddressList' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1beta1.IPAddressList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1beta1.IPAddressList' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1beta1.IPAddressList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1beta1.IPAddressList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1beta1.IPAddressList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1beta1.IPAddressList' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding - version: v1 + group: networking.k8s.io + kind: IPAddress + version: v1beta1 x-accepts: - application/cbor - application/cbor-seq @@ -60158,8 +59625,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ClusterRoleBinding - operationId: createClusterRoleBinding + description: create an IPAddress + operationId: createIPAddress parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -60204,64 +59671,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding - version: v1 + group: networking.k8s.io + kind: IPAddress + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -60269,12 +59736,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}: + /apis/networking.k8s.io/v1beta1/ipaddresses/{name}: delete: - description: delete a ClusterRoleBinding - operationId: deleteClusterRoleBinding + description: delete an IPAddress + operationId: deleteIPAddress parameters: - - description: name of the ClusterRoleBinding + - description: name of the IPAddress in: path name: name required: true @@ -60379,12 +59846,12 @@ paths: content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding - version: v1 + group: networking.k8s.io + kind: IPAddress + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -60393,10 +59860,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ClusterRoleBinding - operationId: readClusterRoleBinding + description: read the specified IPAddress + operationId: readIPAddress parameters: - - description: name of the ClusterRoleBinding + - description: name of the IPAddress in: path name: name required: true @@ -60414,37 +59881,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding - version: v1 + group: networking.k8s.io + kind: IPAddress + version: v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ClusterRoleBinding - operationId: patchClusterRoleBinding + description: partially update the specified IPAddress + operationId: patchIPAddress parameters: - - description: name of the ClusterRoleBinding + - description: name of the IPAddress in: path name: name required: true @@ -60509,42 +59976,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding - version: v1 + group: networking.k8s.io + kind: IPAddress + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -60553,10 +60020,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ClusterRoleBinding - operationId: replaceClusterRoleBinding + description: replace the specified IPAddress + operationId: replaceIPAddress parameters: - - description: name of the ClusterRoleBinding + - description: name of the IPAddress in: path name: name required: true @@ -60605,49 +60072,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding - version: v1 + group: networking.k8s.io + kind: IPAddress + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -60655,10 +60122,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/clusterroles: + /apis/networking.k8s.io/v1beta1/servicecidrs: delete: - description: delete collection of ClusterRole - operationId: deleteCollectionClusterRole + description: delete collection of ServiceCIDR + operationId: deleteCollectionServiceCIDR parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -60812,12 +60279,12 @@ paths: content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -60826,8 +60293,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ClusterRole - operationId: listClusterRole + description: list or watch objects of kind ServiceCIDR + operationId: listServiceCIDR parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -60925,36 +60392,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-accepts: - application/cbor - application/cbor-seq @@ -60964,8 +60431,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ClusterRole - operationId: createClusterRole + description: create a ServiceCIDR + operationId: createServiceCIDR parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -61010,64 +60477,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -61075,12 +60542,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}: + /apis/networking.k8s.io/v1beta1/servicecidrs/{name}: delete: - description: delete a ClusterRole - operationId: deleteClusterRole + description: delete a ServiceCIDR + operationId: deleteServiceCIDR parameters: - - description: name of the ClusterRole + - description: name of the ServiceCIDR in: path name: name required: true @@ -61185,12 +60652,12 @@ paths: content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -61199,10 +60666,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ClusterRole - operationId: readClusterRole + description: read the specified ServiceCIDR + operationId: readServiceCIDR parameters: - - description: name of the ClusterRole + - description: name of the ServiceCIDR in: path name: name required: true @@ -61220,37 +60687,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ClusterRole - operationId: patchClusterRole + description: partially update the specified ServiceCIDR + operationId: patchServiceCIDR parameters: - - description: name of the ClusterRole + - description: name of the ServiceCIDR in: path name: name required: true @@ -61315,42 +60782,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -61359,10 +60826,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ClusterRole - operationId: replaceClusterRole + description: replace the specified ServiceCIDR + operationId: replaceServiceCIDR parameters: - - description: name of the ClusterRole + - description: name of the ServiceCIDR in: path name: name required: true @@ -61411,49 +60878,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -61461,17 +60928,335 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings: - delete: - description: delete collection of RoleBinding - operationId: deleteCollectionNamespacedRoleBinding + /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status: + get: + description: read status of the specified ServiceCIDR + operationId: readServiceCIDRStatus parameters: - - description: "object name and auth scope, such as for teams and projects" + - description: name of the ServiceCIDR in: path - name: namespace + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - networking_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified ServiceCIDR + operationId: patchServiceCIDRStatus + parameters: + - description: name of the ServiceCIDR + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - networking_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace status of the specified ServiceCIDR + operationId: replaceServiceCIDRStatus + parameters: + - description: name of the ServiceCIDR + in: path + name: name required: true schema: type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - networking_v1beta1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/networking.k8s.io/v1beta1/watch/ipaddresses: {} + /apis/networking.k8s.io/v1beta1/watch/ipaddresses/{name}: {} + /apis/networking.k8s.io/v1beta1/watch/servicecidrs: {} + /apis/networking.k8s.io/v1beta1/watch/servicecidrs/{name}: {} + /apis/node.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - node + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/node.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - node_v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/node.k8s.io/v1/runtimeclasses: + delete: + description: delete collection of RuntimeClass + operationId: deleteCollectionRuntimeClass + parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -61624,11 +61409,11 @@ paths: content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - node_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -61638,15 +61423,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind RoleBinding - operationId: listNamespacedRoleBinding + description: list or watch objects of kind RuntimeClass + operationId: listRuntimeClass parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -61743,35 +61522,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.RuntimeClassList' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.RuntimeClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.RuntimeClassList' application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.RuntimeClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.RuntimeClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.RuntimeClassList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.RuntimeClassList' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - node_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: node.k8s.io + kind: RuntimeClass version: v1 x-accepts: - application/cbor @@ -61782,15 +61561,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a RoleBinding - operationId: createNamespacedRoleBinding + description: create a RuntimeClass + operationId: createRuntimeClass parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -61834,63 +61607,63 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - node_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -61899,23 +61672,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}: + /apis/node.k8s.io/v1/runtimeclasses/{name}: delete: - description: delete a RoleBinding - operationId: deleteNamespacedRoleBinding + description: delete a RuntimeClass + operationId: deleteRuntimeClass parameters: - - description: name of the RoleBinding + - description: name of the RuntimeClass in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -62015,11 +61782,11 @@ paths: content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - node_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -62029,21 +61796,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified RoleBinding - operationId: readNamespacedRoleBinding + description: read the specified RuntimeClass + operationId: readRuntimeClass parameters: - - description: name of the RoleBinding + - description: name of the RuntimeClass in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -62056,26 +61817,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - node_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: node.k8s.io + kind: RuntimeClass version: v1 x-accepts: - application/cbor @@ -62083,21 +61844,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified RoleBinding - operationId: patchNamespacedRoleBinding + description: partially update the specified RuntimeClass + operationId: patchRuntimeClass parameters: - - description: name of the RoleBinding + - description: name of the RuntimeClass in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -62157,41 +61912,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - node_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -62201,21 +61956,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified RoleBinding - operationId: replaceNamespacedRoleBinding + description: replace the specified RuntimeClass + operationId: replaceRuntimeClass parameters: - - description: name of the RoleBinding + - description: name of the RuntimeClass in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -62259,48 +62008,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.RuntimeClass' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - node_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -62309,10 +62058,68 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles: + /apis/node.k8s.io/v1/watch/runtimeclasses: {} + /apis/node.k8s.io/v1/watch/runtimeclasses/{name}: {} + /apis/policy/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - policy + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/policy/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - policy_v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets: delete: - description: delete collection of Role - operationId: deleteCollectionNamespacedRole + description: delete collection of PodDisruptionBudget + operationId: deleteCollectionNamespacedPodDisruptionBudget parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -62472,11 +62279,11 @@ paths: content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: policy + kind: PodDisruptionBudget version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -62486,8 +62293,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind Role - operationId: listNamespacedRole + description: list or watch objects of kind PodDisruptionBudget + operationId: listNamespacedPodDisruptionBudget parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -62591,35 +62398,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/cbor: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: policy + kind: PodDisruptionBudget version: v1 x-accepts: - application/cbor @@ -62630,8 +62437,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a Role - operationId: createNamespacedRole + description: create a PodDisruptionBudget + operationId: createNamespacedPodDisruptionBudget parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -62682,63 +62489,63 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: policy + kind: PodDisruptionBudget version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -62747,12 +62554,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}: + /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}: delete: - description: delete a Role - operationId: deleteNamespacedRole + description: delete a PodDisruptionBudget + operationId: deleteNamespacedPodDisruptionBudget parameters: - - description: name of the Role + - description: name of the PodDisruptionBudget in: path name: name required: true @@ -62863,11 +62670,11 @@ paths: content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: policy + kind: PodDisruptionBudget version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -62877,10 +62684,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified Role - operationId: readNamespacedRole + description: read the specified PodDisruptionBudget + operationId: readNamespacedPodDisruptionBudget parameters: - - description: name of the Role + - description: name of the PodDisruptionBudget in: path name: name required: true @@ -62904,26 +62711,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: policy + kind: PodDisruptionBudget version: v1 x-accepts: - application/cbor @@ -62931,10 +62738,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified Role - operationId: patchNamespacedRole + description: partially update the specified PodDisruptionBudget + operationId: patchNamespacedPodDisruptionBudget parameters: - - description: name of the Role + - description: name of the PodDisruptionBudget in: path name: name required: true @@ -63005,41 +62812,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: policy + kind: PodDisruptionBudget version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -63049,10 +62856,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified Role - operationId: replaceNamespacedRole + description: replace the specified PodDisruptionBudget + operationId: replaceNamespacedPodDisruptionBudget parameters: - - description: name of the Role + - description: name of the PodDisruptionBudget in: path name: name required: true @@ -63107,48 +62914,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: policy + kind: PodDisruptionBudget version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -63157,49 +62964,77 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/rolebindings: + /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status: get: - description: list or watch objects of kind RoleBinding - operationId: listRoleBindingForAllNamespaces + description: read status of the specified PodDisruptionBudget + operationId: readNamespacedPodDisruptionBudgetStatus parameters: - - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ - . Servers that do not implement bookmarks may ignore this flag and bookmarks\ - \ are sent at the server's discretion. Clients should not assume bookmarks\ - \ are returned at any specific interval, nor may they assume the server\ - \ will send any BOOKMARK event during a session. If this is not a watch,\ - \ this field is ignored." - in: query - name: allowWatchBookmarks + - description: name of the PodDisruptionBudget + in: path + name: name + required: true schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true schema: type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query - name: fieldSelector + name: pretty schema: type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - policy_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: policy + kind: PodDisruptionBudget + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified PodDisruptionBudget + operationId: patchNamespacedPodDisruptionBudgetStatus + parameters: + - description: name of the PodDisruptionBudget + in: path + name: name + required: true schema: type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true schema: - type: integer + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -63207,99 +63042,214 @@ paths: name: pretty schema: type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: sendInitialEvents + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force schema: type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - policy_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: policy + kind: PodDisruptionBudget + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace status of the specified PodDisruptionBudget + operationId: replaceNamespacedPodDisruptionBudgetStatus + parameters: + - description: name of the PodDisruptionBudget + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query - name: timeoutSeconds + name: pretty schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: watch + name: dryRun schema: - type: boolean + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBindingList' - application/json;stream=watch: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + description: OK + "201": + content: + application/json: schema: - $ref: '#/components/schemas/v1.RoleBindingList' - application/vnd.kubernetes.protobuf;stream=watch: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBindingList' - application/cbor-seq: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBindingList' - description: OK + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 - x-kubernetes-action: list + - policy_v1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: policy + kind: PodDisruptionBudget version: v1 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/rbac.authorization.k8s.io/v1/roles: + /apis/policy/v1/poddisruptionbudgets: get: - description: list or watch objects of kind Role - operationId: listRoleForAllNamespaces + description: list or watch objects of kind PodDisruptionBudget + operationId: listPodDisruptionBudgetForAllNamespaces parameters: - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ . Servers that do not implement bookmarks may ignore this flag and bookmarks\ @@ -63397,35 +63347,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/cbor: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: policy + kind: PodDisruptionBudget version: v1 x-accepts: - application/cbor @@ -63435,17 +63385,10 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings: {} - /apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}: {} - /apis/rbac.authorization.k8s.io/v1/watch/clusterroles: {} - /apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}: {} - /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings: {} - /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}: {} - /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles: {} - /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}: {} - /apis/rbac.authorization.k8s.io/v1/watch/rolebindings: {} - /apis/rbac.authorization.k8s.io/v1/watch/roles: {} - /apis/resource.k8s.io/: + /apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets: {} + /apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}: {} + /apis/policy/v1/watch/poddisruptionbudgets: {} + /apis/rbac.authorization.k8s.io/: get: description: get information of a group operationId: getAPIGroup @@ -63466,12 +63409,12 @@ paths: content: {} description: Unauthorized tags: - - resource + - rbacAuthorization x-accepts: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/: + /apis/rbac.authorization.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -63495,16 +63438,16 @@ paths: content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/deviceclasses: + /apis/rbac.authorization.k8s.io/v1/clusterrolebindings: delete: - description: delete collection of DeviceClass - operationId: deleteCollectionDeviceClass + description: delete collection of ClusterRoleBinding + operationId: deleteCollectionClusterRoleBinding parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -63658,12 +63601,12 @@ paths: content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceClass - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -63672,8 +63615,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind DeviceClass - operationId: listDeviceClass + description: list or watch objects of kind ClusterRoleBinding + operationId: listClusterRoleBinding parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -63771,36 +63714,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClassList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClassList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClassList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClassList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClassList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClassList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClassList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceClass - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -63810,8 +63753,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a DeviceClass - operationId: createDeviceClass + description: create a ClusterRoleBinding + operationId: createClusterRoleBinding parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -63856,64 +63799,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceClass - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -63921,12 +63864,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/deviceclasses/{name}: + /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}: delete: - description: delete a DeviceClass - operationId: deleteDeviceClass + description: delete a ClusterRoleBinding + operationId: deleteClusterRoleBinding parameters: - - description: name of the DeviceClass + - description: name of the ClusterRoleBinding in: path name: name required: true @@ -64001,42 +63944,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Status' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Status' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Status' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceClass - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -64045,10 +63988,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified DeviceClass - operationId: readDeviceClass + description: read the specified ClusterRoleBinding + operationId: readClusterRoleBinding parameters: - - description: name of the DeviceClass + - description: name of the ClusterRoleBinding in: path name: name required: true @@ -64066,37 +64009,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceClass - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified DeviceClass - operationId: patchDeviceClass + description: partially update the specified ClusterRoleBinding + operationId: patchClusterRoleBinding parameters: - - description: name of the DeviceClass + - description: name of the ClusterRoleBinding in: path name: name required: true @@ -64161,42 +64104,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceClass - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -64205,10 +64148,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified DeviceClass - operationId: replaceDeviceClass + description: replace the specified ClusterRoleBinding + operationId: replaceClusterRoleBinding parameters: - - description: name of the DeviceClass + - description: name of the ClusterRoleBinding in: path name: name required: true @@ -64257,49 +64200,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceClass - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -64307,17 +64250,11 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims: + /apis/rbac.authorization.k8s.io/v1/clusterroles: delete: - description: delete collection of ResourceClaim - operationId: deleteCollectionNamespacedResourceClaim + description: delete collection of ClusterRole + operationId: deleteCollectionClusterRole parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -64470,12 +64407,12 @@ paths: content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: ClusterRole + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -64484,15 +64421,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ResourceClaim - operationId: listNamespacedResourceClaim + description: list or watch objects of kind ClusterRole + operationId: listClusterRole parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -64589,36 +64520,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + $ref: '#/components/schemas/v1.ClusterRoleList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + $ref: '#/components/schemas/v1.ClusterRoleList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + $ref: '#/components/schemas/v1.ClusterRoleList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + $ref: '#/components/schemas/v1.ClusterRoleList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + $ref: '#/components/schemas/v1.ClusterRoleList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + $ref: '#/components/schemas/v1.ClusterRoleList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + $ref: '#/components/schemas/v1.ClusterRoleList' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: ClusterRole + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -64628,15 +64559,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ResourceClaim - operationId: createNamespacedResourceClaim + description: create a ClusterRole + operationId: createClusterRole parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -64680,64 +64605,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: ClusterRole + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -64745,23 +64670,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}: + /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}: delete: - description: delete a ResourceClaim - operationId: deleteNamespacedResourceClaim + description: delete a ClusterRole + operationId: deleteClusterRole parameters: - - description: name of the ResourceClaim + - description: name of the ClusterRole in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -64831,42 +64750,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.Status' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.Status' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.Status' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: ClusterRole + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -64875,21 +64794,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourceClaim - operationId: readNamespacedResourceClaim + description: read the specified ClusterRole + operationId: readClusterRole parameters: - - description: name of the ResourceClaim + - description: name of the ClusterRole in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -64902,48 +64815,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: ClusterRole + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourceClaim - operationId: patchNamespacedResourceClaim + description: partially update the specified ClusterRole + operationId: patchClusterRole parameters: - - description: name of the ResourceClaim + - description: name of the ClusterRole in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -65003,324 +64910,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - application/cbor: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - application/cbor: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha3 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha3 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - put: - description: replace the specified ResourceClaim - operationId: replaceNamespacedResourceClaim - parameters: - - description: name of the ResourceClaim - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - application/cbor: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - application/cbor: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha3 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha3 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status: - get: - description: read status of the specified ResourceClaim - operationId: readNamespacedResourceClaimStatus - parameters: - - description: name of the ResourceClaim - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - application/cbor: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha3 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha3 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update status of the specified ResourceClaim - operationId: patchNamespacedResourceClaimStatus - parameters: - - description: name of the ResourceClaim - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: ClusterRole + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -65329,21 +64954,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified ResourceClaim - operationId: replaceNamespacedResourceClaimStatus + description: replace the specified ClusterRole + operationId: replaceClusterRole parameters: - - description: name of the ResourceClaim + - description: name of the ClusterRole in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -65387,49 +65006,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/v1.ClusterRole' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: ClusterRole + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -65437,10 +65056,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates: + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings: delete: - description: delete collection of ResourceClaimTemplate - operationId: deleteCollectionNamespacedResourceClaimTemplate + description: delete collection of RoleBinding + operationId: deleteCollectionNamespacedRoleBinding parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -65600,12 +65219,12 @@ paths: content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -65614,8 +65233,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ResourceClaimTemplate - operationId: listNamespacedResourceClaimTemplate + description: list or watch objects of kind RoleBinding + operationId: listNamespacedRoleBinding parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -65719,36 +65338,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.RoleBindingList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.RoleBindingList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.RoleBindingList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.RoleBindingList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.RoleBindingList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.RoleBindingList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.RoleBindingList' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -65758,8 +65377,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ResourceClaimTemplate - operationId: createNamespacedResourceClaimTemplate + description: create a RoleBinding + operationId: createNamespacedRoleBinding parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -65810,64 +65429,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -65875,12 +65494,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}: + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}: delete: - description: delete a ResourceClaimTemplate - operationId: deleteNamespacedResourceClaimTemplate + description: delete a RoleBinding + operationId: deleteNamespacedRoleBinding parameters: - - description: name of the ResourceClaimTemplate + - description: name of the RoleBinding in: path name: name required: true @@ -65961,42 +65580,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.Status' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.Status' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.Status' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -66005,10 +65624,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourceClaimTemplate - operationId: readNamespacedResourceClaimTemplate + description: read the specified RoleBinding + operationId: readNamespacedRoleBinding parameters: - - description: name of the ResourceClaimTemplate + - description: name of the RoleBinding in: path name: name required: true @@ -66032,37 +65651,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourceClaimTemplate - operationId: patchNamespacedResourceClaimTemplate + description: partially update the specified RoleBinding + operationId: patchNamespacedRoleBinding parameters: - - description: name of the ResourceClaimTemplate + - description: name of the RoleBinding in: path name: name required: true @@ -66133,42 +65752,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -66177,10 +65796,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ResourceClaimTemplate - operationId: replaceNamespacedResourceClaimTemplate + description: replace the specified RoleBinding + operationId: replaceNamespacedRoleBinding parameters: - - description: name of the ResourceClaimTemplate + - description: name of the RoleBinding in: path name: name required: true @@ -66235,49 +65854,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.RoleBinding' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -66285,289 +65904,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/resourceclaims: - get: - description: list or watch objects of kind ResourceClaim - operationId: listResourceClaimForAllNamespaces - parameters: - - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ - . Servers that do not implement bookmarks may ignore this flag and bookmarks\ - \ are sent at the server's discretion. Clients should not assume bookmarks\ - \ are returned at any specific interval, nor may they assume the server\ - \ will send any BOOKMARK event during a session. If this is not a watch,\ - \ this field is ignored." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' - application/cbor: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' - application/cbor-seq: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha3 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha3 - x-accepts: - - application/cbor - - application/cbor-seq - - application/json - - application/json;stream=watch - - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - - application/yaml - /apis/resource.k8s.io/v1alpha3/resourceclaimtemplates: - get: - description: list or watch objects of kind ResourceClaimTemplate - operationId: listResourceClaimTemplateForAllNamespaces + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles: + delete: + description: delete collection of Role + operationId: deleteCollectionNamespacedRole parameters: - - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ - . Servers that do not implement bookmarks may ignore this flag and bookmarks\ - \ are sent at the server's discretion. Clients should not assume bookmarks\ - \ are returned at any specific interval, nor may they assume the server\ - \ will send any BOOKMARK event during a session. If this is not a watch,\ - \ this field is ignored." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' - application/cbor: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' - application/cbor-seq: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha3 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1alpha3 - x-accepts: - - application/cbor - - application/cbor-seq - - application/json - - application/json;stream=watch - - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - - application/yaml - /apis/resource.k8s.io/v1alpha3/resourceslices: - delete: - description: delete collection of ResourceSlice - operationId: deleteCollectionResourceSlice - parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -66720,12 +66067,12 @@ paths: content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceSlice - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: Role + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -66734,9 +66081,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ResourceSlice - operationId: listResourceSlice + description: list or watch objects of kind Role + operationId: listNamespacedRole parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -66833,36 +66186,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSliceList' + $ref: '#/components/schemas/v1.RoleList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSliceList' + $ref: '#/components/schemas/v1.RoleList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSliceList' + $ref: '#/components/schemas/v1.RoleList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSliceList' + $ref: '#/components/schemas/v1.RoleList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSliceList' + $ref: '#/components/schemas/v1.RoleList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSliceList' + $ref: '#/components/schemas/v1.RoleList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSliceList' + $ref: '#/components/schemas/v1.RoleList' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceSlice - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: Role + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -66872,9 +66225,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ResourceSlice - operationId: createResourceSlice + description: create a Role + operationId: createNamespacedRole parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -66918,64 +66277,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceSlice - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: Role + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -66983,17 +66342,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/resourceslices/{name}: + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}: delete: - description: delete a ResourceSlice - operationId: deleteResourceSlice + description: delete a Role + operationId: deleteNamespacedRole parameters: - - description: name of the ResourceSlice + - description: name of the Role in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -67063,42 +66428,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Status' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Status' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Status' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceSlice - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: Role + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -67107,15 +66472,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourceSlice - operationId: readResourceSlice + description: read the specified Role + operationId: readNamespacedRole parameters: - - description: name of the ResourceSlice + - description: name of the Role in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -67128,42 +66499,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceSlice - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: Role + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourceSlice - operationId: patchResourceSlice + description: partially update the specified Role + operationId: patchNamespacedRole parameters: - - description: name of the ResourceSlice + - description: name of the Role in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -67223,42 +66600,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceSlice - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: Role + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -67267,15 +66644,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ResourceSlice - operationId: replaceResourceSlice + description: replace the specified Role + operationId: replaceNamespacedRole parameters: - - description: name of the ResourceSlice + - description: name of the Role in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -67319,49 +66702,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.Role' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceSlice - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: Role + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -67369,17 +66752,321 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/watch/deviceclasses: {} - /apis/resource.k8s.io/v1alpha3/watch/deviceclasses/{name}: {} - /apis/resource.k8s.io/v1alpha3/watch/namespaces/{namespace}/resourceclaims: {} - /apis/resource.k8s.io/v1alpha3/watch/namespaces/{namespace}/resourceclaims/{name}: {} - /apis/resource.k8s.io/v1alpha3/watch/namespaces/{namespace}/resourceclaimtemplates: {} - /apis/resource.k8s.io/v1alpha3/watch/namespaces/{namespace}/resourceclaimtemplates/{name}: {} - /apis/resource.k8s.io/v1alpha3/watch/resourceclaims: {} - /apis/resource.k8s.io/v1alpha3/watch/resourceclaimtemplates: {} - /apis/resource.k8s.io/v1alpha3/watch/resourceslices: {} - /apis/resource.k8s.io/v1alpha3/watch/resourceslices/{name}: {} - /apis/resource.k8s.io/v1beta1/: + /apis/rbac.authorization.k8s.io/v1/rolebindings: + get: + description: list or watch objects of kind RoleBinding + operationId: listRoleBindingForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - rbacAuthorization_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + /apis/rbac.authorization.k8s.io/v1/roles: + get: + description: list or watch objects of kind Role + operationId: listRoleForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.RoleList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.RoleList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.RoleList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RoleList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.RoleList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.RoleList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.RoleList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - rbacAuthorization_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: rbac.authorization.k8s.io + kind: Role + version: v1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + /apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings: {} + /apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}: {} + /apis/rbac.authorization.k8s.io/v1/watch/clusterroles: {} + /apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}: {} + /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings: {} + /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}: {} + /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles: {} + /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}: {} + /apis/rbac.authorization.k8s.io/v1/watch/rolebindings: {} + /apis/rbac.authorization.k8s.io/v1/watch/roles: {} + /apis/resource.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/resource.k8s.io/v1alpha3/: get: description: get available resources operationId: getAPIResources @@ -67403,13 +67090,13 @@ paths: content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/deviceclasses: + /apis/resource.k8s.io/v1alpha3/deviceclasses: delete: description: delete collection of DeviceClass operationId: deleteCollectionDeviceClass @@ -67566,12 +67253,12 @@ paths: content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io kind: DeviceClass - version: v1beta1 + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -67679,36 +67366,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClassList' + $ref: '#/components/schemas/v1alpha3.DeviceClassList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClassList' + $ref: '#/components/schemas/v1alpha3.DeviceClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClassList' + $ref: '#/components/schemas/v1alpha3.DeviceClassList' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClassList' + $ref: '#/components/schemas/v1alpha3.DeviceClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.DeviceClassList' + $ref: '#/components/schemas/v1alpha3.DeviceClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.DeviceClassList' + $ref: '#/components/schemas/v1alpha3.DeviceClassList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.DeviceClassList' + $ref: '#/components/schemas/v1alpha3.DeviceClassList' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io kind: DeviceClass - version: v1beta1 + version: v1alpha3 x-accepts: - application/cbor - application/cbor-seq @@ -67764,64 +67451,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io kind: DeviceClass - version: v1beta1 + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -67829,7 +67516,7 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/deviceclasses/{name}: + /apis/resource.k8s.io/v1alpha3/deviceclasses/{name}: delete: description: delete a DeviceClass operationId: deleteDeviceClass @@ -67909,42 +67596,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io kind: DeviceClass - version: v1beta1 + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -67974,27 +67661,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io kind: DeviceClass - version: v1beta1 + version: v1alpha3 x-accepts: - application/cbor - application/json @@ -68069,42 +67756,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io kind: DeviceClass - version: v1beta1 + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -68165,49 +67852,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io kind: DeviceClass - version: v1beta1 + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -68215,17 +67902,11 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims: + /apis/resource.k8s.io/v1alpha3/devicetaintrules: delete: - description: delete collection of ResourceClaim - operationId: deleteCollectionNamespacedResourceClaim + description: delete collection of DeviceTaintRule + operationId: deleteCollectionDeviceTaintRule parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -68378,12 +68059,12 @@ paths: content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim - version: v1beta1 + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -68392,15 +68073,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ResourceClaim - operationId: listNamespacedResourceClaim + description: list or watch objects of kind DeviceTaintRule + operationId: listDeviceTaintRule parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -68497,36 +68172,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim - version: v1beta1 + kind: DeviceTaintRule + version: v1alpha3 x-accepts: - application/cbor - application/cbor-seq @@ -68536,15 +68211,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ResourceClaim - operationId: createNamespacedResourceClaim + description: create a DeviceTaintRule + operationId: createDeviceTaintRule parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -68588,64 +68257,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim - version: v1beta1 + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -68653,23 +68322,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}: + /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}: delete: - description: delete a ResourceClaim - operationId: deleteNamespacedResourceClaim + description: delete a DeviceTaintRule + operationId: deleteDeviceTaintRule parameters: - - description: name of the ResourceClaim + - description: name of the DeviceTaintRule in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -68739,323 +68402,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim - version: v1beta1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - get: - description: read the specified ResourceClaim - operationId: readNamespacedResourceClaim - parameters: - - description: name of the ResourceClaim - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' - application/cbor: - schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1beta1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1beta1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update the specified ResourceClaim - operationId: patchNamespacedResourceClaim - parameters: - - description: name of the ResourceClaim - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' - application/cbor: - schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' - application/cbor: - schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - resource_v1beta1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1beta1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - put: - description: replace the specified ResourceClaim - operationId: replaceNamespacedResourceClaim - parameters: - - description: name of the ResourceClaim - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' - application/cbor: - schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' - application/cbor: - schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - resource_v1beta1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1beta1 + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -69063,23 +68445,16 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}/status: get: - description: read status of the specified ResourceClaim - operationId: readNamespacedResourceClaimStatus + description: read the specified DeviceTaintRule + operationId: readDeviceTaintRule parameters: - - description: name of the ResourceClaim + - description: name of the DeviceTaintRule in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -69092,48 +68467,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim - version: v1beta1 + kind: DeviceTaintRule + version: v1alpha3 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified ResourceClaim - operationId: patchNamespacedResourceClaimStatus + description: partially update the specified DeviceTaintRule + operationId: patchDeviceTaintRule parameters: - - description: name of the ResourceClaim + - description: name of the DeviceTaintRule in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -69193,42 +68562,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim - version: v1beta1 + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -69237,21 +68606,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified ResourceClaim - operationId: replaceNamespacedResourceClaimStatus + description: replace the specified DeviceTaintRule + operationId: replaceDeviceTaintRule parameters: - - description: name of the ResourceClaim + - description: name of the DeviceTaintRule in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -69295,49 +68658,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim - version: v1beta1 + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -69345,10 +68708,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates: + /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims: delete: - description: delete collection of ResourceClaimTemplate - operationId: deleteCollectionNamespacedResourceClaimTemplate + description: delete collection of ResourceClaim + operationId: deleteCollectionNamespacedResourceClaim parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -69508,12 +68871,12 @@ paths: content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1beta1 + kind: ResourceClaim + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -69522,8 +68885,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ResourceClaimTemplate - operationId: listNamespacedResourceClaimTemplate + description: list or watch objects of kind ResourceClaim + operationId: listNamespacedResourceClaim parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -69627,36 +68990,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1beta1 + kind: ResourceClaim + version: v1alpha3 x-accepts: - application/cbor - application/cbor-seq @@ -69666,8 +69029,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ResourceClaimTemplate - operationId: createNamespacedResourceClaimTemplate + description: create a ResourceClaim + operationId: createNamespacedResourceClaim parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -69718,64 +69081,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1beta1 + kind: ResourceClaim + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -69783,12 +69146,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name}: + /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}: delete: - description: delete a ResourceClaimTemplate - operationId: deleteNamespacedResourceClaimTemplate + description: delete a ResourceClaim + operationId: deleteNamespacedResourceClaim parameters: - - description: name of the ResourceClaimTemplate + - description: name of the ResourceClaim in: path name: name required: true @@ -69869,42 +69232,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1beta1 + kind: ResourceClaim + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -69913,10 +69276,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourceClaimTemplate - operationId: readNamespacedResourceClaimTemplate + description: read the specified ResourceClaim + operationId: readNamespacedResourceClaim parameters: - - description: name of the ResourceClaimTemplate + - description: name of the ResourceClaim in: path name: name required: true @@ -69940,37 +69303,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1beta1 + kind: ResourceClaim + version: v1alpha3 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourceClaimTemplate - operationId: patchNamespacedResourceClaimTemplate + description: partially update the specified ResourceClaim + operationId: patchNamespacedResourceClaim parameters: - - description: name of the ResourceClaimTemplate + - description: name of the ResourceClaim in: path name: name required: true @@ -70041,42 +69404,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1beta1 + kind: ResourceClaim + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -70085,10 +69448,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ResourceClaimTemplate - operationId: replaceNamespacedResourceClaimTemplate + description: replace the specified ResourceClaim + operationId: replaceNamespacedResourceClaim parameters: - - description: name of the ResourceClaimTemplate + - description: name of the ResourceClaim in: path name: name required: true @@ -70143,49 +69506,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1beta1 + kind: ResourceClaim + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -70193,49 +69556,77 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/resourceclaims: + /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status: get: - description: list or watch objects of kind ResourceClaim - operationId: listResourceClaimForAllNamespaces + description: read status of the specified ResourceClaim + operationId: readNamespacedResourceClaimStatus parameters: - - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ - . Servers that do not implement bookmarks may ignore this flag and bookmarks\ - \ are sent at the server's discretion. Clients should not assume bookmarks\ - \ are returned at any specific interval, nor may they assume the server\ - \ will send any BOOKMARK event during a session. If this is not a watch,\ - \ this field is ignored." - in: query - name: allowWatchBookmarks + - description: name of the ResourceClaim + in: path + name: name + required: true schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true schema: type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query - name: fieldSelector + name: pretty schema: type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1alpha3 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1alpha3 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified ResourceClaim + operationId: patchNamespacedResourceClaimStatus + parameters: + - description: name of the ResourceClaim + in: path + name: name + required: true schema: type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true schema: - type: integer + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -70243,138 +69634,117 @@ paths: name: pretty schema: type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: timeoutSeconds + name: fieldValidation schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. in: query - name: watch + name: force schema: type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' - application/json;stream=watch: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + description: OK + "201": + content: + application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' - application/vnd.kubernetes.protobuf;stream=watch: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' - application/cbor-seq: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' - description: OK + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + description: Created "401": content: {} description: Unauthorized tags: - - resource_v1beta1 - x-kubernetes-action: list + - resource_v1alpha3 + x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io kind: ResourceClaim - version: v1beta1 + version: v1alpha3 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/resource.k8s.io/v1beta1/resourceclaimtemplates: - get: - description: list or watch objects of kind ResourceClaimTemplate - operationId: listResourceClaimTemplateForAllNamespaces + put: + description: replace status of the specified ResourceClaim + operationId: replaceNamespacedResourceClaimStatus parameters: - - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ - . Servers that do not implement bookmarks may ignore this flag and bookmarks\ - \ are sent at the server's discretion. Clients should not assume bookmarks\ - \ are returned at any specific interval, nor may they assume the server\ - \ will send any BOOKMARK event during a session. If this is not a watch,\ - \ this field is ignored." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector + - description: name of the ResourceClaim + in: path + name: name + required: true schema: type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true schema: type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -70382,100 +69752,103 @@ paths: name: pretty schema: type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: watch + name: fieldValidation schema: - type: boolean + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' - application/json;stream=watch: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + description: OK + "201": + content: + application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' - application/vnd.kubernetes.protobuf;stream=watch: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' - application/cbor-seq: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' - description: OK + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + description: Created "401": content: {} description: Unauthorized tags: - - resource_v1beta1 - x-kubernetes-action: list + - resource_v1alpha3 + x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1beta1 + kind: ResourceClaim + version: v1alpha3 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/resource.k8s.io/v1beta1/resourceslices: + /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates: delete: - description: delete collection of ResourceSlice - operationId: deleteCollectionResourceSlice + description: delete collection of ResourceClaimTemplate + operationId: deleteCollectionNamespacedResourceClaimTemplate parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -70628,12 +70001,12 @@ paths: content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1beta1 + kind: ResourceClaimTemplate + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -70642,9 +70015,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ResourceSlice - operationId: listResourceSlice + description: list or watch objects of kind ResourceClaimTemplate + operationId: listNamespacedResourceClaimTemplate parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -70741,36 +70120,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSliceList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceSliceList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceSliceList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceSliceList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ResourceSliceList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ResourceSliceList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.ResourceSliceList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1beta1 + kind: ResourceClaimTemplate + version: v1alpha3 x-accepts: - application/cbor - application/cbor-seq @@ -70780,9 +70159,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ResourceSlice - operationId: createResourceSlice + description: create a ResourceClaimTemplate + operationId: createNamespacedResourceClaimTemplate parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -70826,64 +70211,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1beta1 + kind: ResourceClaimTemplate + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -70891,17 +70276,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/resourceslices/{name}: + /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}: delete: - description: delete a ResourceSlice - operationId: deleteResourceSlice + description: delete a ResourceClaimTemplate + operationId: deleteNamespacedResourceClaimTemplate parameters: - - description: name of the ResourceSlice + - description: name of the ResourceClaimTemplate in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -70971,42 +70362,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1beta1 + kind: ResourceClaimTemplate + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -71015,15 +70406,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourceSlice - operationId: readResourceSlice + description: read the specified ResourceClaimTemplate + operationId: readNamespacedResourceClaimTemplate parameters: - - description: name of the ResourceSlice + - description: name of the ResourceClaimTemplate in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -71036,42 +70433,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1beta1 + kind: ResourceClaimTemplate + version: v1alpha3 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourceSlice - operationId: patchResourceSlice + description: partially update the specified ResourceClaimTemplate + operationId: patchNamespacedResourceClaimTemplate parameters: - - description: name of the ResourceSlice + - description: name of the ResourceClaimTemplate in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -71131,42 +70534,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1beta1 + kind: ResourceClaimTemplate + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -71175,15 +70578,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ResourceSlice - operationId: replaceResourceSlice + description: replace the specified ResourceClaimTemplate + operationId: replaceNamespacedResourceClaimTemplate parameters: - - description: name of the ResourceSlice + - description: name of the ResourceClaimTemplate in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -71227,49 +70636,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1beta1 + kind: ResourceClaimTemplate + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -71277,76 +70686,288 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/watch/deviceclasses: {} - /apis/resource.k8s.io/v1beta1/watch/deviceclasses/{name}: {} - /apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims: {} - /apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims/{name}: {} - /apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates: {} - /apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}: {} - /apis/resource.k8s.io/v1beta1/watch/resourceclaims: {} - /apis/resource.k8s.io/v1beta1/watch/resourceclaimtemplates: {} - /apis/resource.k8s.io/v1beta1/watch/resourceslices: {} - /apis/resource.k8s.io/v1beta1/watch/resourceslices/{name}: {} - /apis/scheduling.k8s.io/: + /apis/resource.k8s.io/v1alpha3/resourceclaims: get: - description: get information of a group - operationId: getAPIGroup + description: list or watch objects of kind ResourceClaim + operationId: listResourceClaimForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' description: OK "401": content: {} description: Unauthorized tags: - - scheduling + - resource_v1alpha3 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1alpha3 x-accepts: + - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/scheduling.k8s.io/v1/: + /apis/resource.k8s.io/v1alpha3/resourceclaimtemplates: get: - description: get available resources - operationId: getAPIResources + description: list or watch objects of kind ResourceClaimTemplate + operationId: listResourceClaimTemplateForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1alpha3 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1alpha3 x-accepts: - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/scheduling.k8s.io/v1/priorityclasses: + /apis/resource.k8s.io/v1alpha3/resourceslices: delete: - description: delete collection of PriorityClass - operationId: deleteCollectionPriorityClass + description: delete collection of ResourceSlice + operationId: deleteCollectionResourceSlice parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -71500,12 +71121,12 @@ paths: content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1alpha3 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass - version: v1 + group: resource.k8s.io + kind: ResourceSlice + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -71514,8 +71135,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind PriorityClass - operationId: listPriorityClass + description: list or watch objects of kind ResourceSlice + operationId: listResourceSlice parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -71613,36 +71234,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1alpha3.ResourceSliceList' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1alpha3.ResourceSliceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1alpha3.ResourceSliceList' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1alpha3.ResourceSliceList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1alpha3.ResourceSliceList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1alpha3.ResourceSliceList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1alpha3.ResourceSliceList' description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1alpha3 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass - version: v1 + group: resource.k8s.io + kind: ResourceSlice + version: v1alpha3 x-accepts: - application/cbor - application/cbor-seq @@ -71652,8 +71273,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a PriorityClass - operationId: createPriorityClass + description: create a ResourceSlice + operationId: createResourceSlice parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -71698,64 +71319,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' description: Accepted "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1alpha3 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass - version: v1 + group: resource.k8s.io + kind: ResourceSlice + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -71763,12 +71384,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/scheduling.k8s.io/v1/priorityclasses/{name}: + /apis/resource.k8s.io/v1alpha3/resourceslices/{name}: delete: - description: delete a PriorityClass - operationId: deletePriorityClass + description: delete a ResourceSlice + operationId: deleteResourceSlice parameters: - - description: name of the PriorityClass + - description: name of the ResourceSlice in: path name: name required: true @@ -71843,42 +71464,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' description: Accepted "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1alpha3 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass - version: v1 + group: resource.k8s.io + kind: ResourceSlice + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -71887,10 +71508,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified PriorityClass - operationId: readPriorityClass + description: read the specified ResourceSlice + operationId: readResourceSlice parameters: - - description: name of the PriorityClass + - description: name of the ResourceSlice in: path name: name required: true @@ -71908,37 +71529,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1alpha3 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass - version: v1 + group: resource.k8s.io + kind: ResourceSlice + version: v1alpha3 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified PriorityClass - operationId: patchPriorityClass + description: partially update the specified ResourceSlice + operationId: patchResourceSlice parameters: - - description: name of the PriorityClass + - description: name of the ResourceSlice in: path name: name required: true @@ -72003,42 +71624,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' description: Created "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1alpha3 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass - version: v1 + group: resource.k8s.io + kind: ResourceSlice + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -72047,10 +71668,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified PriorityClass - operationId: replacePriorityClass + description: replace the specified ResourceSlice + operationId: replaceResourceSlice parameters: - - description: name of the PriorityClass + - description: name of the ResourceSlice in: path name: name required: true @@ -72099,49 +71720,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' description: Created "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1alpha3 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass - version: v1 + group: resource.k8s.io + kind: ResourceSlice + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -72149,35 +71770,19 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/scheduling.k8s.io/v1/watch/priorityclasses: {} - /apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}: {} - /apis/storage.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/storage.k8s.io/v1/: + /apis/resource.k8s.io/v1alpha3/watch/deviceclasses: {} + /apis/resource.k8s.io/v1alpha3/watch/deviceclasses/{name}: {} + /apis/resource.k8s.io/v1alpha3/watch/devicetaintrules: {} + /apis/resource.k8s.io/v1alpha3/watch/devicetaintrules/{name}: {} + /apis/resource.k8s.io/v1alpha3/watch/namespaces/{namespace}/resourceclaims: {} + /apis/resource.k8s.io/v1alpha3/watch/namespaces/{namespace}/resourceclaims/{name}: {} + /apis/resource.k8s.io/v1alpha3/watch/namespaces/{namespace}/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1alpha3/watch/namespaces/{namespace}/resourceclaimtemplates/{name}: {} + /apis/resource.k8s.io/v1alpha3/watch/resourceclaims: {} + /apis/resource.k8s.io/v1alpha3/watch/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1alpha3/watch/resourceslices: {} + /apis/resource.k8s.io/v1alpha3/watch/resourceslices/{name}: {} + /apis/resource.k8s.io/v1beta1/: get: description: get available resources operationId: getAPIResources @@ -72201,16 +71806,16 @@ paths: content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/csidrivers: + /apis/resource.k8s.io/v1beta1/deviceclasses: delete: - description: delete collection of CSIDriver - operationId: deleteCollectionCSIDriver + description: delete collection of DeviceClass + operationId: deleteCollectionDeviceClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -72364,12 +71969,12 @@ paths: content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -72378,8 +71983,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind CSIDriver - operationId: listCSIDriver + description: list or watch objects of kind DeviceClass + operationId: listDeviceClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -72477,36 +72082,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: '#/components/schemas/v1beta1.DeviceClassList' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: '#/components/schemas/v1beta1.DeviceClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: '#/components/schemas/v1beta1.DeviceClassList' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: '#/components/schemas/v1beta1.DeviceClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: '#/components/schemas/v1beta1.DeviceClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: '#/components/schemas/v1beta1.DeviceClassList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: '#/components/schemas/v1beta1.DeviceClassList' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta1 x-accepts: - application/cbor - application/cbor-seq @@ -72516,8 +72121,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a CSIDriver - operationId: createCSIDriver + description: create a DeviceClass + operationId: createDeviceClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -72562,64 +72167,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -72627,12 +72232,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/csidrivers/{name}: + /apis/resource.k8s.io/v1beta1/deviceclasses/{name}: delete: - description: delete a CSIDriver - operationId: deleteCSIDriver + description: delete a DeviceClass + operationId: deleteDeviceClass parameters: - - description: name of the CSIDriver + - description: name of the DeviceClass in: path name: name required: true @@ -72707,42 +72312,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -72751,10 +72356,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified CSIDriver - operationId: readCSIDriver + description: read the specified DeviceClass + operationId: readDeviceClass parameters: - - description: name of the CSIDriver + - description: name of the DeviceClass in: path name: name required: true @@ -72772,37 +72377,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified CSIDriver - operationId: patchCSIDriver + description: partially update the specified DeviceClass + operationId: patchDeviceClass parameters: - - description: name of the CSIDriver + - description: name of the DeviceClass in: path name: name required: true @@ -72867,42 +72472,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -72911,10 +72516,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified CSIDriver - operationId: replaceCSIDriver + description: replace the specified DeviceClass + operationId: replaceDeviceClass parameters: - - description: name of the CSIDriver + - description: name of the DeviceClass in: path name: name required: true @@ -72963,49 +72568,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1beta1.DeviceClass' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -73013,11 +72618,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/csinodes: + /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims: delete: - description: delete collection of CSINode - operationId: deleteCollectionCSINode + description: delete collection of ResourceClaim + operationId: deleteCollectionNamespacedResourceClaim parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -73170,12 +72781,12 @@ paths: content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -73184,9 +72795,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind CSINode - operationId: listCSINode + description: list or watch objects of kind ResourceClaim + operationId: listNamespacedResourceClaim parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -73283,36 +72900,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: '#/components/schemas/v1beta1.ResourceClaimList' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: '#/components/schemas/v1beta1.ResourceClaimList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: '#/components/schemas/v1beta1.ResourceClaimList' application/cbor: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: '#/components/schemas/v1beta1.ResourceClaimList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: '#/components/schemas/v1beta1.ResourceClaimList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: '#/components/schemas/v1beta1.ResourceClaimList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: '#/components/schemas/v1beta1.ResourceClaimList' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-accepts: - application/cbor - application/cbor-seq @@ -73322,9 +72939,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a CSINode - operationId: createCSINode + description: create a ResourceClaim + operationId: createNamespacedResourceClaim parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -73368,64 +72991,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -73433,17 +73056,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/csinodes/{name}: + /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}: delete: - description: delete a CSINode - operationId: deleteCSINode + description: delete a ResourceClaim + operationId: deleteNamespacedResourceClaim parameters: - - description: name of the CSINode + - description: name of the ResourceClaim in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -73513,42 +73142,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -73557,15 +73186,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified CSINode - operationId: readCSINode + description: read the specified ResourceClaim + operationId: readNamespacedResourceClaim parameters: - - description: name of the CSINode + - description: name of the ResourceClaim in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -73578,42 +73213,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified CSINode - operationId: patchCSINode + description: partially update the specified ResourceClaim + operationId: patchNamespacedResourceClaim parameters: - - description: name of the CSINode + - description: name of the ResourceClaim in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -73673,42 +73314,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -73717,15 +73358,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified CSINode - operationId: replaceCSINode + description: replace the specified ResourceClaim + operationId: replaceNamespacedResourceClaim parameters: - - description: name of the CSINode + - description: name of the ResourceClaim in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -73769,49 +73416,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1beta1.ResourceClaim' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -73819,49 +73466,77 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/csistoragecapacities: + /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}/status: get: - description: list or watch objects of kind CSIStorageCapacity - operationId: listCSIStorageCapacityForAllNamespaces + description: read status of the specified ResourceClaim + operationId: readNamespacedResourceClaimStatus parameters: - - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ - . Servers that do not implement bookmarks may ignore this flag and bookmarks\ - \ are sent at the server's discretion. Clients should not assume bookmarks\ - \ are returned at any specific interval, nor may they assume the server\ - \ will send any BOOKMARK event during a session. If this is not a watch,\ - \ this field is ignored." - in: query - name: allowWatchBookmarks + - description: name of the ResourceClaim + in: path + name: name + required: true schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true schema: type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query - name: fieldSelector + name: pretty schema: type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified ResourceClaim + operationId: patchNamespacedResourceClaimStatus + parameters: + - description: name of the ResourceClaim + in: path + name: name + required: true schema: type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true schema: - type: integer + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -73869,99 +73544,214 @@ paths: name: pretty schema: type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: sendInitialEvents + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force schema: type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace status of the specified ResourceClaim + operationId: replaceNamespacedResourceClaimStatus + parameters: + - description: name of the ResourceClaim + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query - name: timeoutSeconds + name: pretty schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: watch + name: dryRun schema: - type: boolean + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' - application/json;stream=watch: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + description: OK + "201": + content: + application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' - application/vnd.kubernetes.protobuf;stream=watch: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' - application/cbor-seq: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' - description: OK + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: list + - resource_v1beta1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities: + /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates: delete: - description: delete collection of CSIStorageCapacity - operationId: deleteCollectionNamespacedCSIStorageCapacity + description: delete collection of ResourceClaimTemplate + operationId: deleteCollectionNamespacedResourceClaimTemplate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -74121,12 +73911,12 @@ paths: content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -74135,8 +73925,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind CSIStorageCapacity - operationId: listNamespacedCSIStorageCapacity + description: list or watch objects of kind ResourceClaimTemplate + operationId: listNamespacedResourceClaimTemplate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -74240,36 +74030,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 x-accepts: - application/cbor - application/cbor-seq @@ -74279,8 +74069,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a CSIStorageCapacity - operationId: createNamespacedCSIStorageCapacity + description: create a ResourceClaimTemplate + operationId: createNamespacedResourceClaimTemplate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -74331,64 +74121,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -74396,12 +74186,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}: + /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name}: delete: - description: delete a CSIStorageCapacity - operationId: deleteNamespacedCSIStorageCapacity + description: delete a ResourceClaimTemplate + operationId: deleteNamespacedResourceClaimTemplate parameters: - - description: name of the CSIStorageCapacity + - description: name of the ResourceClaimTemplate in: path name: name required: true @@ -74482,42 +74272,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -74526,10 +74316,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified CSIStorageCapacity - operationId: readNamespacedCSIStorageCapacity + description: read the specified ResourceClaimTemplate + operationId: readNamespacedResourceClaimTemplate parameters: - - description: name of the CSIStorageCapacity + - description: name of the ResourceClaimTemplate in: path name: name required: true @@ -74553,37 +74343,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified CSIStorageCapacity - operationId: patchNamespacedCSIStorageCapacity + description: partially update the specified ResourceClaimTemplate + operationId: patchNamespacedResourceClaimTemplate parameters: - - description: name of the CSIStorageCapacity + - description: name of the ResourceClaimTemplate in: path name: name required: true @@ -74654,42 +74444,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -74698,10 +74488,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified CSIStorageCapacity - operationId: replaceNamespacedCSIStorageCapacity + description: replace the specified ResourceClaimTemplate + operationId: replaceNamespacedResourceClaimTemplate parameters: - - description: name of the CSIStorageCapacity + - description: name of the ResourceClaimTemplate in: path name: name required: true @@ -74756,49 +74546,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -74806,18 +74596,21 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/storageclasses: - delete: - description: delete collection of StorageClass - operationId: deleteCollectionStorageClass + /apis/resource.k8s.io/v1beta1/resourceclaims: + get: + description: list or watch objects of kind ResourceClaim + operationId: listResourceClaimForAllNamespaces parameters: - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query - name: pretty + name: allowWatchBookmarks schema: - type: string + type: boolean - description: |- The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". @@ -74826,44 +74619,12 @@ paths: name: continue schema: type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - description: A selector to restrict the list of returned objects by their fields. Defaults to everything. in: query name: fieldSelector schema: type: string - - description: "The duration in seconds before the object should be deleted.\ - \ Value must be non-negative integer. The value zero indicates delete immediately.\ - \ If this value is nil, the default grace period for the specified type\ - \ will be used. Defaults to a per object value if not specified. zero means\ - \ delete immediately." - in: query - name: gracePeriodSeconds - schema: - type: integer - - description: "if set to true, it will trigger an unsafe deletion of the resource\ - \ in case the normal deletion flow fails with a corrupt object error. A\ - \ resource is considered corrupt if it can not be retrieved from the underlying\ - \ storage successfully because of a) its data can not be transformed e.g.\ - \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ - \ deletion ignores finalizer constraints, skips precondition checks, and\ - \ removes the object from the storage. WARNING: This may potentially break\ - \ the cluster if the workload associated with the resource being unsafe-deleted\ - \ relies on normal deletion flow. Use only if you REALLY know what you are\ - \ doing. The default value is false, and the user must opt in to enable\ - \ it" - in: query - name: ignoreStoreReadErrorWithClusterBreakingPotential - schema: - type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -74878,23 +74639,11 @@ paths: name: limit schema: type: integer - - description: "Deprecated: please use the PropagationPolicy, this field will\ - \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ - \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ - \ list. Either this field or PropagationPolicy may be set, but not both." - in: query - name: orphanDependents - schema: - type: boolean - - description: "Whether and how garbage collection will be performed. Either\ - \ this field or OrphanDependents may be set, but not both. The default policy\ - \ is decided by the existing finalizer set in the metadata.finalizers and\ - \ the resource-specific default policy. Acceptable values are: 'Orphan'\ - \ - orphan the dependents; 'Background' - allow the garbage collector to\ - \ delete the dependents in the background; 'Foreground' - a cascading policy\ - \ that deletes all dependents in the foreground." + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query - name: propagationPolicy + name: pretty schema: type: string - description: |- @@ -74937,56 +74686,60 @@ paths: name: timeoutSeconds schema: type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.DeleteOptions' - required: false + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta1.ResourceClaimList' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta1.ResourceClaimList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta1.ResourceClaimList' application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta1.ResourceClaimList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimList' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: deletecollection + - resource_v1beta1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-accepts: - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml + /apis/resource.k8s.io/v1beta1/resourceclaimtemplates: get: - description: list or watch objects of kind StorageClass - operationId: listStorageClass + description: list or watch objects of kind ResourceClaimTemplate + operationId: listResourceClaimTemplateForAllNamespaces parameters: - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ . Servers that do not implement bookmarks may ignore this flag and bookmarks\ \ are sent at the server's discretion. Clients should not assume bookmarks\ @@ -75025,6 +74778,13 @@ paths: name: limit schema: type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string - description: |- resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. @@ -75076,36 +74836,344 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + /apis/resource.k8s.io/v1beta1/resourceslices: + delete: + description: delete collection of ResourceSlice + operationId: deleteCollectionResourceSlice + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceSlice + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: list or watch objects of kind ResourceSlice + operationId: listResourceSlice + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSliceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSliceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSliceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSliceList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSliceList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSliceList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSliceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceSlice + version: v1beta1 x-accepts: - application/cbor - application/cbor-seq @@ -75115,8 +75183,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a StorageClass - operationId: createStorageClass + description: create a ResourceSlice + operationId: createResourceSlice parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -75161,64 +75229,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -75226,12 +75294,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/storageclasses/{name}: + /apis/resource.k8s.io/v1beta1/resourceslices/{name}: delete: - description: delete a StorageClass - operationId: deleteStorageClass + description: delete a ResourceSlice + operationId: deleteResourceSlice parameters: - - description: name of the StorageClass + - description: name of the ResourceSlice in: path name: name required: true @@ -75306,42 +75374,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -75350,10 +75418,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified StorageClass - operationId: readStorageClass + description: read the specified ResourceSlice + operationId: readResourceSlice parameters: - - description: name of the StorageClass + - description: name of the ResourceSlice in: path name: name required: true @@ -75371,37 +75439,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified StorageClass - operationId: patchStorageClass + description: partially update the specified ResourceSlice + operationId: patchResourceSlice parameters: - - description: name of the StorageClass + - description: name of the ResourceSlice in: path name: name required: true @@ -75466,42 +75534,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -75510,10 +75578,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified StorageClass - operationId: replaceStorageClass + description: replace the specified ResourceSlice + operationId: replaceResourceSlice parameters: - - description: name of the StorageClass + - description: name of the ResourceSlice in: path name: name required: true @@ -75562,49 +75630,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1beta1.ResourceSlice' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -75612,10 +75680,50 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/volumeattachments: + /apis/resource.k8s.io/v1beta1/watch/deviceclasses: {} + /apis/resource.k8s.io/v1beta1/watch/deviceclasses/{name}: {} + /apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims: {} + /apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims/{name}: {} + /apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}: {} + /apis/resource.k8s.io/v1beta1/watch/resourceclaims: {} + /apis/resource.k8s.io/v1beta1/watch/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1beta1/watch/resourceslices: {} + /apis/resource.k8s.io/v1beta1/watch/resourceslices/{name}: {} + /apis/resource.k8s.io/v1beta2/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/resource.k8s.io/v1beta2/deviceclasses: delete: - description: delete collection of VolumeAttachment - operationId: deleteCollectionVolumeAttachment + description: delete collection of DeviceClass + operationId: deleteCollectionDeviceClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -75769,12 +75877,12 @@ paths: content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta2 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -75783,8 +75891,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind VolumeAttachment - operationId: listVolumeAttachment + description: list or watch objects of kind DeviceClass + operationId: listDeviceClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -75882,36 +75990,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: '#/components/schemas/v1beta2.DeviceClassList' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: '#/components/schemas/v1beta2.DeviceClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: '#/components/schemas/v1beta2.DeviceClassList' application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: '#/components/schemas/v1beta2.DeviceClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: '#/components/schemas/v1beta2.DeviceClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: '#/components/schemas/v1beta2.DeviceClassList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: '#/components/schemas/v1beta2.DeviceClassList' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta2 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta2 x-accepts: - application/cbor - application/cbor-seq @@ -75921,8 +76029,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a VolumeAttachment - operationId: createVolumeAttachment + description: create a DeviceClass + operationId: createDeviceClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -75967,64 +76075,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta2 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -76032,12 +76140,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/volumeattachments/{name}: + /apis/resource.k8s.io/v1beta2/deviceclasses/{name}: delete: - description: delete a VolumeAttachment - operationId: deleteVolumeAttachment + description: delete a DeviceClass + operationId: deleteDeviceClass parameters: - - description: name of the VolumeAttachment + - description: name of the DeviceClass in: path name: name required: true @@ -76112,42 +76220,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta2 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -76156,10 +76264,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified VolumeAttachment - operationId: readVolumeAttachment + description: read the specified DeviceClass + operationId: readDeviceClass parameters: - - description: name of the VolumeAttachment + - description: name of the DeviceClass in: path name: name required: true @@ -76177,37 +76285,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta2 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta2 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified VolumeAttachment - operationId: patchVolumeAttachment + description: partially update the specified DeviceClass + operationId: patchDeviceClass parameters: - - description: name of the VolumeAttachment + - description: name of the DeviceClass in: path name: name required: true @@ -76272,42 +76380,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta2 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -76316,10 +76424,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified VolumeAttachment - operationId: replaceVolumeAttachment + description: replace the specified DeviceClass + operationId: replaceDeviceClass parameters: - - description: name of the VolumeAttachment + - description: name of the DeviceClass in: path name: name required: true @@ -76368,210 +76476,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1beta2.DeviceClass' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta2 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/storage.k8s.io/v1/volumeattachments/{name}/status: - get: - description: read status of the specified VolumeAttachment - operationId: readVolumeAttachmentStatus - parameters: - - description: name of the VolumeAttachment - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/cbor: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update status of the specified VolumeAttachment - operationId: patchVolumeAttachmentStatus - parameters: - - description: name of the VolumeAttachment - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/cbor: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/cbor: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -76579,155 +76526,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - put: - description: replace status of the specified VolumeAttachment - operationId: replaceVolumeAttachmentStatus + /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims: + delete: + description: delete collection of ResourceClaim + operationId: deleteCollectionNamespacedResourceClaim parameters: - - description: name of the VolumeAttachment + - description: "object name and auth scope, such as for teams and projects" in: path - name: name + name: namespace required: true schema: type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/cbor: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/cbor: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/storage.k8s.io/v1/watch/csidrivers: {} - /apis/storage.k8s.io/v1/watch/csidrivers/{name}: {} - /apis/storage.k8s.io/v1/watch/csinodes: {} - /apis/storage.k8s.io/v1/watch/csinodes/{name}: {} - /apis/storage.k8s.io/v1/watch/csistoragecapacities: {} - /apis/storage.k8s.io/v1/watch/namespaces/{namespace}/csistoragecapacities: {} - /apis/storage.k8s.io/v1/watch/namespaces/{namespace}/csistoragecapacities/{name}: {} - /apis/storage.k8s.io/v1/watch/storageclasses: {} - /apis/storage.k8s.io/v1/watch/storageclasses/{name}: {} - /apis/storage.k8s.io/v1/watch/volumeattachments: {} - /apis/storage.k8s.io/v1/watch/volumeattachments/{name}: {} - /apis/storage.k8s.io/v1alpha1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/cbor: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage_v1alpha1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/storage.k8s.io/v1alpha1/volumeattributesclasses: - delete: - description: delete collection of VolumeAttributesClass - operationId: deleteCollectionVolumeAttributesClass - parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -76880,12 +76689,12 @@ paths: content: {} description: Unauthorized tags: - - storage_v1alpha1 + - resource_v1beta2 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttributesClass - version: v1alpha1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -76894,9 +76703,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind VolumeAttributesClass - operationId: listVolumeAttributesClass + description: list or watch objects of kind ResourceClaim + operationId: listNamespacedResourceClaim parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -76993,36 +76808,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1beta2.ResourceClaimList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1beta2.ResourceClaimList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1beta2.ResourceClaimList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1beta2.ResourceClaimList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1beta2.ResourceClaimList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1beta2.ResourceClaimList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1beta2.ResourceClaimList' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1alpha1 + - resource_v1beta2 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttributesClass - version: v1alpha1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 x-accepts: - application/cbor - application/cbor-seq @@ -77032,9 +76847,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a VolumeAttributesClass - operationId: createVolumeAttributesClass + description: create a ResourceClaim + operationId: createNamespacedResourceClaim parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -77078,64 +76899,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1alpha1 + - resource_v1beta2 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttributesClass - version: v1alpha1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -77143,17 +76964,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1alpha1/volumeattributesclasses/{name}: + /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}: delete: - description: delete a VolumeAttributesClass - operationId: deleteVolumeAttributesClass + description: delete a ResourceClaim + operationId: deleteNamespacedResourceClaim parameters: - - description: name of the VolumeAttributesClass + - description: name of the ResourceClaim in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -77223,42 +77050,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1alpha1 + - resource_v1beta2 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttributesClass - version: v1alpha1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -77267,15 +77094,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified VolumeAttributesClass - operationId: readVolumeAttributesClass + description: read the specified ResourceClaim + operationId: readNamespacedResourceClaim parameters: - - description: name of the VolumeAttributesClass + - description: name of the ResourceClaim in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -77288,42 +77121,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1alpha1 + - resource_v1beta2 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttributesClass - version: v1alpha1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified VolumeAttributesClass - operationId: patchVolumeAttributesClass + description: partially update the specified ResourceClaim + operationId: patchNamespacedResourceClaim parameters: - - description: name of the VolumeAttributesClass + - description: name of the ResourceClaim in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -77383,42 +77222,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1alpha1 + - resource_v1beta2 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttributesClass - version: v1alpha1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -77427,15 +77266,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified VolumeAttributesClass - operationId: replaceVolumeAttributesClass + description: replace the specified ResourceClaim + operationId: replaceNamespacedResourceClaim parameters: - - description: name of the VolumeAttributesClass + - description: name of the ResourceClaim in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -77479,49 +77324,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaim' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1alpha1 + - resource_v1beta2 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttributesClass - version: v1alpha1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -77529,43 +77374,299 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1alpha1/watch/volumeattributesclasses: {} - /apis/storage.k8s.io/v1alpha1/watch/volumeattributesclasses/{name}: {} - /apis/storage.k8s.io/v1beta1/: + /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status: get: - description: get available resources - operationId: getAPIResources + description: read status of the specified ResourceClaim + operationId: readNamespacedResourceClaimStatus + parameters: + - description: name of the ResourceClaim + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta2.ResourceClaim' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1beta1 + - resource_v1beta2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1beta1/volumeattributesclasses: + patch: + description: partially update status of the specified ResourceClaim + operationId: patchNamespacedResourceClaimStatus + parameters: + - description: name of the ResourceClaim + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace status of the specified ResourceClaim + operationId: replaceNamespacedResourceClaimStatus + parameters: + - description: name of the ResourceClaim + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates: delete: - description: delete collection of VolumeAttributesClass - operationId: deleteCollectionVolumeAttributesClass + description: delete collection of ResourceClaimTemplate + operationId: deleteCollectionNamespacedResourceClaimTemplate parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -77718,12 +77819,12 @@ paths: content: {} description: Unauthorized tags: - - storage_v1beta1 + - resource_v1beta2 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttributesClass - version: v1beta1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -77732,9 +77833,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind VolumeAttributesClass - operationId: listVolumeAttributesClass + description: list or watch objects of kind ResourceClaimTemplate + operationId: listNamespacedResourceClaimTemplate parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -77831,36 +77938,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1beta1 + - resource_v1beta2 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttributesClass - version: v1beta1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta2 x-accepts: - application/cbor - application/cbor-seq @@ -77870,9 +77977,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a VolumeAttributesClass - operationId: createVolumeAttributesClass + description: create a ResourceClaimTemplate + operationId: createNamespacedResourceClaimTemplate parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -77916,64 +78029,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1beta1 + - resource_v1beta2 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttributesClass - version: v1beta1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -77981,17 +78094,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}: + /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}: delete: - description: delete a VolumeAttributesClass - operationId: deleteVolumeAttributesClass + description: delete a ResourceClaimTemplate + operationId: deleteNamespacedResourceClaimTemplate parameters: - - description: name of the VolumeAttributesClass + - description: name of the ResourceClaimTemplate in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -78061,42 +78180,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1beta1 + - resource_v1beta2 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttributesClass - version: v1beta1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -78105,15 +78224,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified VolumeAttributesClass - operationId: readVolumeAttributesClass + description: read the specified ResourceClaimTemplate + operationId: readNamespacedResourceClaimTemplate parameters: - - description: name of the VolumeAttributesClass + - description: name of the ResourceClaimTemplate in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -78126,42 +78251,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1beta1 + - resource_v1beta2 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttributesClass - version: v1beta1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta2 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified VolumeAttributesClass - operationId: patchVolumeAttributesClass + description: partially update the specified ResourceClaimTemplate + operationId: patchNamespacedResourceClaimTemplate parameters: - - description: name of the VolumeAttributesClass + - description: name of the ResourceClaimTemplate in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -78221,42 +78352,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1beta1 + - resource_v1beta2 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttributesClass - version: v1beta1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -78265,15 +78396,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified VolumeAttributesClass - operationId: replaceVolumeAttributesClass + description: replace the specified ResourceClaimTemplate + operationId: replaceNamespacedResourceClaimTemplate parameters: - - description: name of the VolumeAttributesClass + - description: name of the ResourceClaimTemplate in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -78317,49 +78454,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1beta1 + - resource_v1beta2 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttributesClass - version: v1beta1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -78367,68 +78504,288 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1beta1/watch/volumeattributesclasses: {} - /apis/storage.k8s.io/v1beta1/watch/volumeattributesclasses/{name}: {} - /apis/storagemigration.k8s.io/: + /apis/resource.k8s.io/v1beta2/resourceclaims: get: - description: get information of a group - operationId: getAPIGroup + description: list or watch objects of kind ResourceClaim + operationId: listResourceClaimForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1beta2.ResourceClaimList' application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1beta2.ResourceClaimList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' description: OK "401": content: {} description: Unauthorized tags: - - storagemigration + - resource_v1beta2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 x-accepts: + - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/storagemigration.k8s.io/v1alpha1/: + /apis/resource.k8s.io/v1beta2/resourceclaimtemplates: get: - description: get available resources - operationId: getAPIResources + description: list or watch objects of kind ResourceClaimTemplate + operationId: listResourceClaimTemplateForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' description: OK "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - resource_v1beta2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta2 x-accepts: - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations: + /apis/resource.k8s.io/v1beta2/resourceslices: delete: - description: delete collection of StorageVersionMigration - operationId: deleteCollectionStorageVersionMigration + description: delete collection of ResourceSlice + operationId: deleteCollectionResourceSlice parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -78582,12 +78939,12 @@ paths: content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - resource_v1beta2 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1alpha1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -78596,8 +78953,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind StorageVersionMigration - operationId: listStorageVersionMigration + description: list or watch objects of kind ResourceSlice + operationId: listResourceSlice parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -78695,36 +79052,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: '#/components/schemas/v1beta2.ResourceSliceList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: '#/components/schemas/v1beta2.ResourceSliceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: '#/components/schemas/v1beta2.ResourceSliceList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: '#/components/schemas/v1beta2.ResourceSliceList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: '#/components/schemas/v1beta2.ResourceSliceList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: '#/components/schemas/v1beta2.ResourceSliceList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: '#/components/schemas/v1beta2.ResourceSliceList' description: OK "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - resource_v1beta2 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1alpha1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta2 x-accepts: - application/cbor - application/cbor-seq @@ -78734,8 +79091,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a StorageVersionMigration - operationId: createStorageVersionMigration + description: create a ResourceSlice + operationId: createResourceSlice parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -78780,64 +79137,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' description: Accepted "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - resource_v1beta2 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1alpha1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -78845,12 +79202,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}: + /apis/resource.k8s.io/v1beta2/resourceslices/{name}: delete: - description: delete a StorageVersionMigration - operationId: deleteStorageVersionMigration + description: delete a ResourceSlice + operationId: deleteResourceSlice parameters: - - description: name of the StorageVersionMigration + - description: name of the ResourceSlice in: path name: name required: true @@ -78925,42 +79282,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta2.ResourceSlice' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta2.ResourceSlice' description: Accepted "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - resource_v1beta2 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1alpha1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -78969,10 +79326,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified StorageVersionMigration - operationId: readStorageVersionMigration + description: read the specified ResourceSlice + operationId: readResourceSlice parameters: - - description: name of the StorageVersionMigration + - description: name of the ResourceSlice in: path name: name required: true @@ -78990,37 +79347,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' description: OK "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - resource_v1beta2 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1alpha1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta2 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified StorageVersionMigration - operationId: patchStorageVersionMigration + description: partially update the specified ResourceSlice + operationId: patchResourceSlice parameters: - - description: name of the StorageVersionMigration + - description: name of the ResourceSlice in: path name: name required: true @@ -79085,42 +79442,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' description: Created "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - resource_v1beta2 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1alpha1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -79129,10 +79486,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified StorageVersionMigration - operationId: replaceStorageVersionMigration + description: replace the specified ResourceSlice + operationId: replaceResourceSlice parameters: - - description: name of the StorageVersionMigration + - description: name of the ResourceSlice in: path name: name required: true @@ -79181,49 +79538,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1beta2.ResourceSlice' description: Created "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - resource_v1beta2 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1alpha1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -79231,177 +79588,77 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}/status: + /apis/resource.k8s.io/v1beta2/watch/deviceclasses: {} + /apis/resource.k8s.io/v1beta2/watch/deviceclasses/{name}: {} + /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims: {} + /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims/{name}: {} + /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates/{name}: {} + /apis/resource.k8s.io/v1beta2/watch/resourceclaims: {} + /apis/resource.k8s.io/v1beta2/watch/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1beta2/watch/resourceslices: {} + /apis/resource.k8s.io/v1beta2/watch/resourceslices/{name}: {} + /apis/scheduling.k8s.io/: get: - description: read status of the specified StorageVersionMigration - operationId: readStorageVersionMigrationStatus - parameters: - - description: name of the StorageVersionMigration - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string + description: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1.APIGroup' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1.APIGroup' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' - application/cbor: - schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1.APIGroup' description: OK "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1alpha1 + - scheduling x-accepts: - - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - patch: - description: partially update status of the specified StorageVersionMigration - operationId: patchStorageVersionMigrationStatus - parameters: - - description: name of the StorageVersionMigration - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true + /apis/scheduling.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1.APIResourceList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1.APIResourceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1.APIResourceList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1.APIResourceList' description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' - application/cbor: - schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' - description: Created "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1alpha1 - x-codegen-request-body-name: body - x-content-type: application/json + - scheduling_v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - put: - description: replace status of the specified StorageVersionMigration - operationId: replaceStorageVersionMigrationStatus + /apis/scheduling.k8s.io/v1/priorityclasses: + delete: + description: delete collection of PriorityClass + operationId: deleteCollectionPriorityClass parameters: - - description: name of the StorageVersionMigration - in: path - name: name - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -79409,6 +79666,14 @@ paths: name: pretty schema: type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string - description: "When present, indicates that modifications should not be persisted.\ \ An invalid or unrecognized dryRun directive will result in an error response\ \ and no further processing of the request. Valid values are: - All: all\ @@ -79417,77 +79682,141 @@ paths: name: dryRun schema: type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. in: query - name: fieldManager + name: fieldSelector schema: type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query - name: fieldValidation + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch schema: type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer requestBody: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' - required: true + $ref: '#/components/schemas/v1.DeleteOptions' + required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1.Status' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1.Status' description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' - application/cbor: - schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' - description: Created "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 - x-kubernetes-action: put + - scheduling_v1 + x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1alpha1 + group: scheduling.k8s.io + kind: PriorityClass + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -79495,122 +79824,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storagemigration.k8s.io/v1alpha1/watch/storageversionmigrations: {} - /apis/storagemigration.k8s.io/v1alpha1/watch/storageversionmigrations/{name}: {} - /logs/: - get: - operationId: logFileListHandler - responses: - "401": - content: {} - description: Unauthorized - tags: - - logs - x-accepts: - - application/json - /logs/{logpath}: - get: - operationId: logFileHandler - parameters: - - description: path to the log - in: path - name: logpath - required: true - schema: - type: string - responses: - "401": - content: {} - description: Unauthorized - tags: - - logs - x-accepts: - - application/json - /version/: - get: - description: get the code version - operationId: getCode - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/version.Info' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - version - x-accepts: - - application/json - /apis/{group}/{version}: - get: - description: get available resources - operationId: getAPIResources - parameters: - - description: The custom resource's group name - in: path - name: group - required: true - schema: - type: string - - description: The custom resource's version - in: path - name: version - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-accepts: - - application/json - /apis/{group}/{version}/{resource_plural}: get: - description: list or watch namespace scoped custom objects - operationId: listCustomObjectForAllNamespaces + description: list or watch objects of kind PriorityClass + operationId: listPriorityClass parameters: - - description: "If 'true', then the output is pretty printed." + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query name: pretty schema: type: string - - description: The custom resource's group name - in: path - name: group - required: true - schema: - type: string - - description: The custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: resource_plural - required: true - schema: - type: string - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ . Servers that do not implement bookmarks may ignore this flag and bookmarks\ \ are sent at the server's discretion. Clients should not assume bookmarks\ \ are returned at any specific interval, nor may they assume the server\ \ will send any BOOKMARK event during a session. If this is not a watch,\ - \ this field is ignored. If the feature gate WatchBookmarks is not enabled\ - \ in apiserver, this field is ignored." + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -79643,12 +79873,10 @@ paths: name: limit schema: type: integer - - description: "When specified with a watch call, shows changes that occur after\ - \ that particular version of a resource. Defaults to changes from the beginning\ - \ of history. When specified for list: - if unset, then the result is returned\ - \ from remote storage based on quorum-read flag; - if it's 0, then we simply\ - \ return what we currently have in cache, no guarantee; - if set to non\ - \ zero, then the result is at least as fresh as given rv." + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query name: resourceVersion schema: @@ -79661,6 +79889,24 @@ paths: name: resourceVersionMatch schema: type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -79668,7 +79914,7 @@ paths: schema: type: integer - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications." + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -79678,52 +79924,180 @@ paths: content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.PriorityClassList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityClassList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityClassList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityClassList' application/json;stream=watch: schema: - type: object + $ref: '#/components/schemas/v1.PriorityClassList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.PriorityClassList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.PriorityClassList' description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - scheduling_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PriorityClass + version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - /apis/{group}/{version}/{plural}: - delete: - description: Delete collection of cluster scoped custom objects - operationId: deleteCollectionClusterCustomObject + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + post: + description: create a PriorityClass + operationId: createPriorityClass parameters: - - description: "If 'true', then the output is pretty printed." + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query name: pretty schema: type: string - - description: The custom resource's group name - in: path - name: group - required: true + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun schema: type: string - - description: The custom resource's version - in: path - name: version - required: true + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager schema: type: string - - description: The custom resource's plural name. For TPRs this would be lowercase - plural kind. + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PriorityClass + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/scheduling.k8s.io/v1/priorityclasses/{name}: + delete: + description: delete a PriorityClass + operationId: deletePriorityClass + parameters: + - description: name of the PriorityClass in: path - name: plural + name: name required: true schema: type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query - name: labelSelector + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun schema: type: string - description: "The duration in seconds before the object should be deleted.\ @@ -79735,6 +80109,21 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: "Deprecated: please use the PropagationPolicy, this field will\ \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ @@ -79746,19 +80135,14 @@ paths: - description: "Whether and how garbage collection will be performed. Either\ \ this field or OrphanDependents may be set, but not both. The default policy\ \ is decided by the existing finalizer set in the metadata.finalizers and\ - \ the resource-specific default policy." + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string requestBody: content: application/json: @@ -79770,158 +80154,112 @@ paths: content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted "401": content: {} description: Unauthorized tags: - - custom_objects + - scheduling_v1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PriorityClass + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json + - application/vnd.kubernetes.protobuf + - application/yaml get: - description: list or watch cluster scoped custom objects - operationId: listClusterCustomObject + description: read the specified PriorityClass + operationId: readPriorityClass parameters: - - description: "If 'true', then the output is pretty printed." - in: query - name: pretty - schema: - type: string - - description: The custom resource's group name - in: path - name: group - required: true - schema: - type: string - - description: The custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's plural name. For TPRs this would be lowercase - plural kind. + - description: name of the PriorityClass in: path - name: plural + name: name required: true schema: type: string - - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ - . Servers that do not implement bookmarks may ignore this flag and bookmarks\ - \ are sent at the server's discretion. Clients should not assume bookmarks\ - \ are returned at any specific interval, nor may they assume the server\ - \ will send any BOOKMARK event during a session. If this is not a watch,\ - \ this field is ignored. If the feature gate WatchBookmarks is not enabled\ - \ in apiserver, this field is ignored." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: "When specified with a watch call, shows changes that occur after\ - \ that particular version of a resource. Defaults to changes from the beginning\ - \ of history. When specified for list: - if unset, then the result is returned\ - \ from remote storage based on quorum-read flag; - if it's 0, then we simply\ - \ return what we currently have in cache, no guarantee; - if set to non\ - \ zero, then the result is at least as fresh as given rv." - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query - name: resourceVersionMatch + name: pretty schema: type: string - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications." - in: query - name: watch - schema: - type: boolean responses: "200": content: application/json: schema: - type: object - application/json;stream=watch: + $ref: '#/components/schemas/v1.PriorityClass' + application/yaml: schema: - type: object + $ref: '#/components/schemas/v1.PriorityClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityClass' description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - scheduling_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PriorityClass + version: v1 x-accepts: + - application/cbor - application/json - - application/json;stream=watch - post: - description: Creates a cluster scoped Custom object - operationId: createClusterCustomObject + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified PriorityClass + operationId: patchPriorityClass parameters: - - description: "If 'true', then the output is pretty printed." - in: query - name: pretty - schema: - type: string - - description: The custom resource's group name - in: path - name: group - required: true - schema: - type: string - - description: The custom resource's version + - description: name of the PriorityClass in: path - name: version + name: name required: true schema: type: string - - description: The custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty schema: type: string - description: "When present, indicates that modifications should not be persisted.\ @@ -79953,99 +80291,87 @@ paths: \ fields. This is the default in v1.23+ - Strict: This will fail the request\ \ with a BadRequest error if any unknown fields would be dropped from the\ \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean requestBody: content: application/json: schema: - type: object - description: The JSON schema of the Resource to create. + $ref: '#/components/schemas/v1.Patch' required: true responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + description: OK "201": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.PriorityClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityClass' description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - scheduling_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PriorityClass + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - /apis/{group}/{version}/namespaces/{namespace}/{plural}: - delete: - description: Delete collection of namespace scoped custom objects - operationId: deleteCollectionNamespacedCustomObject + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified PriorityClass + operationId: replacePriorityClass parameters: - - description: "If 'true', then the output is pretty printed." - in: query - name: pretty - schema: - type: string - - description: The custom resource's group name - in: path - name: group - required: true - schema: - type: string - - description: The custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true - schema: - type: string - - description: The custom resource's plural name. For TPRs this would be lowercase - plural kind. + - description: name of the PriorityClass in: path - name: plural + name: name required: true schema: type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: "The duration in seconds before the object should be deleted.\ - \ Value must be non-negative integer. The value zero indicates delete immediately.\ - \ If this value is nil, the default grace period for the specified type\ - \ will be used. Defaults to a per object value if not specified. zero means\ - \ delete immediately." - in: query - name: gracePeriodSeconds - schema: - type: integer - - description: "Deprecated: please use the PropagationPolicy, this field will\ - \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ - \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ - \ list. Either this field or PropagationPolicy may be set, but not both." - in: query - name: orphanDependents - schema: - type: boolean - - description: "Whether and how garbage collection will be performed. Either\ - \ this field or OrphanDependents may be set, but not both. The default policy\ - \ is decided by the existing finalizer set in the metadata.finalizers and\ - \ the resource-specific default policy." + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query - name: propagationPolicy + name: pretty schema: type: string - description: "When present, indicates that modifications should not be persisted.\ @@ -80056,66 +80382,321 @@ paths: name: dryRun schema: type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query - name: fieldSelector + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation schema: type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' - required: false + $ref: '#/components/schemas/v1.PriorityClass' + required: true responses: "200": content: application/json: schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects + $ref: '#/components/schemas/v1.PriorityClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PriorityClass + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/scheduling.k8s.io/v1/watch/priorityclasses: {} + /apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}: {} + /apis/storage.k8s.io/: get: - description: list or watch namespace scoped custom objects - operationId: listNamespacedCustomObject + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1/csidrivers: + delete: + description: delete collection of CSIDriver + operationId: deleteCollectionCSIDriver parameters: - - description: "If 'true', then the output is pretty printed." + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query name: pretty schema: type: string - - description: The custom resource's group name - in: path - name: group - required: true + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue schema: type: string - - description: The custom resource's version - in: path - name: version - required: true + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun schema: type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector schema: type: string - - description: The custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIDriver + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: list or watch objects of kind CSIDriver + operationId: listCSIDriver + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty schema: type: string - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ @@ -80123,8 +80704,7 @@ paths: \ are sent at the server's discretion. Clients should not assume bookmarks\ \ are returned at any specific interval, nor may they assume the server\ \ will send any BOOKMARK event during a session. If this is not a watch,\ - \ this field is ignored. If the feature gate WatchBookmarks is not enabled\ - \ in apiserver, this field is ignored." + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -80157,12 +80737,10 @@ paths: name: limit schema: type: integer - - description: "When specified with a watch call, shows changes that occur after\ - \ that particular version of a resource. Defaults to changes from the beginning\ - \ of history. When specified for list: - if unset, then the result is returned\ - \ from remote storage based on quorum-read flag; - if it's 0, then we simply\ - \ return what we currently have in cache, no guarantee; - if set to non\ - \ zero, then the result is at least as fresh as given rv." + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query name: resourceVersion schema: @@ -80175,6 +80753,24 @@ paths: name: resourceVersionMatch schema: type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -80182,7 +80778,7 @@ paths: schema: type: integer - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications." + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -80192,53 +80788,55 @@ paths: content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.CSIDriverList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIDriverList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIDriverList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIDriverList' application/json;stream=watch: schema: - type: object + $ref: '#/components/schemas/v1.CSIDriverList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.CSIDriverList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.CSIDriverList' description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - storage_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIDriver + version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml post: - description: Creates a namespace scoped Custom object - operationId: createNamespacedCustomObject + description: create a CSIDriver + operationId: createCSIDriver parameters: - - description: "If 'true', then the output is pretty printed." + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query name: pretty schema: type: string - - description: The custom resource's group name - in: path - name: group - required: true - schema: - type: string - - description: The custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true - schema: - type: string - - description: The custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - description: "When present, indicates that modifications should not be persisted.\ \ An invalid or unrecognized dryRun directive will result in an error response\ \ and no further processing of the request. Valid values are: - All: all\ @@ -80266,8 +80864,7 @@ paths: \ fields. This is the default in v1.23+ - Strict: This will fail the request\ \ with a BadRequest error if any unknown fields would be dropped from the\ \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -80276,53 +80873,95 @@ paths: content: application/json: schema: - type: object - description: The JSON schema of the Resource to create. + $ref: '#/components/schemas/v1.CSIDriver' required: true responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + description: OK "201": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.CSIDriver' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIDriver' description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + description: Accepted "401": content: {} description: Unauthorized tags: - - custom_objects + - storage_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIDriver + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - /apis/{group}/{version}/{plural}/{name}: + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1/csidrivers/{name}: delete: - description: Deletes the specified cluster scoped custom object - operationId: deleteClusterCustomObject + description: delete a CSIDriver + operationId: deleteCSIDriver parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version + - description: name of the CSIDriver in: path - name: version + name: name required: true schema: type: string - - description: the custom object's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty schema: type: string - - description: the custom object's name - in: path - name: name - required: true + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun schema: type: string - description: "The duration in seconds before the object should be deleted.\ @@ -80334,6 +80973,21 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: "Deprecated: please use the PropagationPolicy, this field will\ \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ @@ -80345,19 +80999,14 @@ paths: - description: "Whether and how garbage collection will be performed. Either\ \ this field or OrphanDependents may be set, but not both. The default policy\ \ is decided by the existing finalizer set in the metadata.finalizers and\ - \ the resource-specific default policy." + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string requestBody: content: application/json: @@ -80369,44 +81018,64 @@ paths: content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.CSIDriver' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIDriver' description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + description: Accepted "401": content: {} description: Unauthorized tags: - - custom_objects + - storage_v1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIDriver + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json + - application/vnd.kubernetes.protobuf + - application/yaml get: - description: Returns a cluster scoped custom object - operationId: getClusterCustomObject + description: read the specified CSIDriver + operationId: readCSIDriver parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom object's plural name. For TPRs this would be lowercase - plural kind. + - description: name of the CSIDriver in: path - name: plural + name: name required: true schema: type: string - - description: the custom object's name - in: path - name: name - required: true + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty schema: type: string responses: @@ -80414,42 +81083,47 @@ paths: content: application/json: schema: - type: object - description: A single Resource + $ref: '#/components/schemas/v1.CSIDriver' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - storage_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIDriver + version: v1 x-accepts: + - application/cbor - application/json + - application/vnd.kubernetes.protobuf + - application/yaml patch: - description: patch the specified cluster scoped custom object - operationId: patchClusterCustomObject + description: partially update the specified CSIDriver + operationId: patchCSIDriver parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom object's plural name. For TPRs this would be lowercase - plural kind. + - description: name of the CSIDriver in: path - name: plural + name: name required: true schema: type: string - - description: the custom object's name - in: path - name: name - required: true + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty schema: type: string - description: "When present, indicates that modifications should not be persisted.\ @@ -80481,8 +81155,7 @@ paths: \ fields. This is the default in v1.23+ - Strict: This will fail the request\ \ with a BadRequest error if any unknown fields would be dropped from the\ \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -80498,52 +81171,71 @@ paths: content: application/json: schema: - type: object - description: The JSON schema of the Resource to patch. + $ref: '#/components/schemas/v1.Patch' required: true responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.CSIDriver' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIDriver' description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - storage_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIDriver + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json + - application/vnd.kubernetes.protobuf + - application/yaml put: - description: replace the specified cluster scoped custom object - operationId: replaceClusterCustomObject + description: replace the specified CSIDriver + operationId: replaceCSIDriver parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom object's plural name. For TPRs this would be lowercase - plural kind. + - description: name of the CSIDriver in: path - name: plural + name: name required: true schema: type: string - - description: the custom object's name - in: path - name: name - required: true + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty schema: type: string - description: "When present, indicates that modifications should not be persisted.\ @@ -80573,8 +81265,7 @@ paths: \ fields. This is the default in v1.23+ - Strict: This will fail the request\ \ with a BadRequest error if any unknown fields would be dropped from the\ \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -80583,105 +81274,74 @@ paths: content: application/json: schema: - type: object - description: The JSON schema of the Resource to replace. + $ref: '#/components/schemas/v1.CSIDriver' required: true responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.CSIDriver' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIDriver' description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/json - /apis/{group}/{version}/{plural}/{name}/status: - get: - description: read status of the specified cluster scoped custom object - operationId: getClusterCustomObjectStatus - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - responses: - "200": + "201": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.CSIDriver' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1.CSIDriver' application/vnd.kubernetes.protobuf: schema: - type: object - description: OK + $ref: '#/components/schemas/v1.CSIDriver' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - storage_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIDriver + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - patch: - description: partially update status of the specified cluster scoped custom - object - operationId: patchClusterCustomObjectStatus + /apis/storage.k8s.io/v1/csinodes: + delete: + description: delete collection of CSINode + operationId: deleteCollectionCSINode parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty schema: type: string - - description: the custom object's name - in: path - name: name - required: true + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue schema: type: string - description: "When present, indicates that modifications should not be persisted.\ @@ -80692,356 +81352,295 @@ paths: name: dryRun schema: type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. in: query - name: fieldManager + name: fieldSelector schema: type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query - name: fieldValidation + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector schema: type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. in: query - name: force + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents schema: type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer requestBody: content: application/json: schema: - description: The JSON schema of the Resource to patch. - type: object - required: true + $ref: '#/components/schemas/v1.DeleteOptions' + required: false responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - type: object + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - storage_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSINode + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - put: - description: replace status of the cluster scoped specified custom object - operationId: replaceClusterCustomObjectStatus + get: + description: list or watch objects of kind CSINode + operationId: listCSINode parameters: - - description: the custom resource's group - in: path - name: group - required: true + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty schema: type: string - - description: the custom resource's version - in: path - name: version - required: true + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue schema: type: string - - description: the custom object's name - in: path - name: name - required: true + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector schema: type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. in: query - name: dryRun + name: labelSelector schema: type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. in: query - name: fieldManager + name: limit schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - required: true - responses: - "200": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: - schema: - type: object - description: OK - "201": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: - schema: - type: object - description: Created - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/{group}/{version}/{plural}/{name}/scale: - get: - description: read scale of the specified custom object - operationId: getClusterCustomObjectScale - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: - schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update scale of the specified cluster scoped custom object - operationId: patchClusterCustomObjectScale - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true + name: resourceVersion schema: type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query - name: dryRun + name: resourceVersionMatch schema: type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. in: query - name: fieldManager + name: sendInitialEvents schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query - name: fieldValidation + name: timeoutSeconds schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query - name: force + name: watch schema: type: boolean - requestBody: - content: - application/json: - schema: - description: The JSON schema of the Resource to patch. - type: object - required: true responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.CSINodeList' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1.CSINodeList' application/vnd.kubernetes.protobuf: schema: - type: object + $ref: '#/components/schemas/v1.CSINodeList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSINodeList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.CSINodeList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.CSINodeList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.CSINodeList' description: OK "401": content: {} description: Unauthorized tags: - - custom_objects - x-codegen-request-body-name: body - x-content-type: application/json + - storage_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSINode + version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - put: - description: replace scale of the specified cluster scoped custom object - operationId: replaceClusterCustomObjectScale + post: + description: create a CSINode + operationId: createCSINode parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty schema: type: string - description: "When present, indicates that modifications should not be persisted.\ @@ -81071,8 +81670,7 @@ paths: \ fields. This is the default in v1.23+ - Strict: This will fail the request\ \ with a BadRequest error if any unknown fields would be dropped from the\ \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -81081,78 +81679,95 @@ paths: content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.CSINode' required: true responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.CSINode' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1.CSINode' application/vnd.kubernetes.protobuf: schema: - type: object + $ref: '#/components/schemas/v1.CSINode' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSINode' description: OK "201": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.CSINode' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1.CSINode' application/vnd.kubernetes.protobuf: schema: - type: object + $ref: '#/components/schemas/v1.CSINode' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSINode' description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSINode' + description: Accepted "401": content: {} description: Unauthorized tags: - - custom_objects + - storage_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSINode + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}: + /apis/storage.k8s.io/v1/csinodes/{name}: delete: - description: Deletes the specified namespace scoped custom object - operationId: deleteNamespacedCustomObject + description: delete a CSINode + operationId: deleteCSINode parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace + - description: name of the CSINode in: path - name: namespace + name: name required: true schema: type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty schema: type: string - - description: the custom object's name - in: path - name: name - required: true + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun schema: type: string - description: "The duration in seconds before the object should be deleted.\ @@ -81164,6 +81779,21 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: "Deprecated: please use the PropagationPolicy, this field will\ \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ @@ -81175,19 +81805,14 @@ paths: - description: "Whether and how garbage collection will be performed. Either\ \ this field or OrphanDependents may be set, but not both. The default policy\ \ is decided by the existing finalizer set in the metadata.finalizers and\ - \ the resource-specific default policy." + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string requestBody: content: application/json: @@ -81199,50 +81824,64 @@ paths: content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.CSINode' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSINode' description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSINode' + description: Accepted "401": content: {} description: Unauthorized tags: - - custom_objects + - storage_v1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSINode + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json + - application/vnd.kubernetes.protobuf + - application/yaml get: - description: Returns a namespace scoped custom object - operationId: getNamespacedCustomObject + description: read the specified CSINode + operationId: readCSINode parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. + - description: name of the CSINode in: path - name: plural + name: name required: true schema: type: string - - description: the custom object's name - in: path - name: name - required: true + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty schema: type: string responses: @@ -81250,48 +81889,47 @@ paths: content: application/json: schema: - type: object - description: A single Resource + $ref: '#/components/schemas/v1.CSINode' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSINode' + description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - storage_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSINode + version: v1 x-accepts: + - application/cbor - application/json + - application/vnd.kubernetes.protobuf + - application/yaml patch: - description: patch the specified namespace scoped custom object - operationId: patchNamespacedCustomObject + description: partially update the specified CSINode + operationId: patchCSINode parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. + - description: name of the CSINode in: path - name: plural + name: name required: true schema: type: string - - description: the custom object's name - in: path - name: name - required: true + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty schema: type: string - description: "When present, indicates that modifications should not be persisted.\ @@ -81323,8 +81961,7 @@ paths: \ fields. This is the default in v1.23+ - Strict: This will fail the request\ \ with a BadRequest error if any unknown fields would be dropped from the\ \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -81340,58 +81977,71 @@ paths: content: application/json: schema: - type: object - description: The JSON schema of the Resource to patch. + $ref: '#/components/schemas/v1.Patch' required: true responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.CSINode' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSINode' description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSINode' + description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - storage_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSINode + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json + - application/vnd.kubernetes.protobuf + - application/yaml put: - description: replace the specified namespace scoped custom object - operationId: replaceNamespacedCustomObject + description: replace the specified CSINode + operationId: replaceCSINode parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. + - description: name of the CSINode in: path - name: plural + name: name required: true schema: type: string - - description: the custom object's name - in: path - name: name - required: true + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty schema: type: string - description: "When present, indicates that modifications should not be persisted.\ @@ -81421,8 +82071,7 @@ paths: \ fields. This is the default in v1.23+ - Strict: This will fail the request\ \ with a BadRequest error if any unknown fields would be dropped from the\ \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -81431,117 +82080,219 @@ paths: content: application/json: schema: - type: object - description: The JSON schema of the Resource to replace. + $ref: '#/components/schemas/v1.CSINode' required: true responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.CSINode' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSINode' description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSINode' + description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - storage_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSINode + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status: + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1/csistoragecapacities: get: - description: read status of the specified namespace scoped custom object - operationId: getNamespacedCustomObjectStatus + description: list or watch objects of kind CSIStorageCapacity + operationId: listCSIStorageCapacityForAllNamespaces parameters: - - description: the custom resource's group - in: path - name: group - required: true + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue schema: type: string - - description: the custom resource's version - in: path - name: version - required: true + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector schema: type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector schema: type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty schema: type: string - - description: the custom object's name - in: path - name: name - required: true + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch schema: type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.CSIStorageCapacityList' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1.CSIStorageCapacityList' application/vnd.kubernetes.protobuf: schema: - type: object + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - storage_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - patch: - description: partially update status of the specified namespace scoped custom - object - operationId: patchNamespacedCustomObjectStatus + /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities: + delete: + description: delete collection of CSIStorageCapacity + operationId: deleteCollectionNamespacedCSIStorageCapacity parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty schema: type: string - - description: the custom object's name - in: path - name: name - required: true + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue schema: type: string - description: "When present, indicates that modifications should not be persisted.\ @@ -81552,119 +82303,322 @@ paths: name: dryRun schema: type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. in: query - name: fieldManager + name: fieldSelector schema: type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query - name: fieldValidation + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector schema: type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. in: query - name: force + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents schema: type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer requestBody: content: application/json: schema: - description: The JSON schema of the Resource to patch. - type: object - required: true + $ref: '#/components/schemas/v1.DeleteOptions' + required: false responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - type: object + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - storage_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - put: - description: replace status of the specified namespace scoped custom object - operationId: replaceNamespacedCustomObjectStatus + get: + description: list or watch objects of kind CSIStorageCapacity + operationId: listNamespacedCSIStorageCapacity parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty schema: type: string - - description: the custom object's name - in: path - name: name - required: true + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue schema: type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. in: query - name: dryRun + name: fieldSelector schema: type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. in: query - name: fieldManager + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + post: + description: create a CSIStorageCapacity + operationId: createNamespacedCSIStorageCapacity + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager schema: type: string - description: "fieldValidation instructs the server on how to handle objects\ @@ -81679,8 +82633,7 @@ paths: \ fields. This is the default in v1.23+ - Strict: This will fail the request\ \ with a BadRequest error if any unknown fields would be dropped from the\ \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -81689,138 +82642,277 @@ paths: content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.CSIStorageCapacity' required: true responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - type: object + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' description: OK "201": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - type: object + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + description: Accepted "401": content: {} description: Unauthorized tags: - - custom_objects + - storage_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale: - get: - description: read scale of the specified namespace scoped custom object - operationId: getNamespacedCustomObjectScale + /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}: + delete: + description: delete a CSIStorageCapacity + operationId: deleteNamespacedCSIStorageCapacity parameters: - - description: the custom resource's group + - description: name of the CSIStorageCapacity in: path - name: group + name: name required: true schema: type: string - - description: the custom resource's version + - description: "object name and auth scope, such as for teams and projects" in: path - name: version + name: namespace required: true schema: type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty schema: type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun schema: type: string - - description: the custom object's name - in: path - name: name - required: true + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy schema: type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - type: object + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted "401": content: {} description: Unauthorized tags: - - custom_objects + - storage_v1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - patch: - description: partially update scale of the specified namespace scoped custom - object - operationId: patchNamespacedCustomObjectScale + get: + description: read the specified CSIStorageCapacity + operationId: readNamespacedCSIStorageCapacity parameters: - - description: the custom resource's group + - description: name of the CSIStorageCapacity in: path - name: group + name: name required: true schema: type: string - - description: the custom resource's version + - description: "object name and auth scope, such as for teams and projects" in: path - name: version + name: namespace required: true schema: type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty schema: type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified CSIStorageCapacity + operationId: patchNamespacedCSIStorageCapacity + parameters: + - description: name of the CSIStorageCapacity in: path - name: plural + name: name required: true schema: type: string - - description: the custom object's name + - description: "object name and auth scope, such as for teams and projects" in: path - name: name + name: namespace required: true schema: type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string - description: "When present, indicates that modifications should not be persisted.\ \ An invalid or unrecognized dryRun directive will result in an error response\ \ and no further processing of the request. Valid values are: - All: all\ @@ -81850,8 +82942,7 @@ paths: \ fields. This is the default in v1.23+ - Strict: This will fail the request\ \ with a BadRequest error if any unknown fields would be dropped from the\ \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -81867,66 +82958,77 @@ paths: content: application/json: schema: - description: The JSON schema of the Resource to patch. - type: object + $ref: '#/components/schemas/v1.Patch' required: true responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - type: object + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - storage_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace scale of the specified namespace scoped custom object - operationId: replaceNamespacedCustomObjectScale + description: replace the specified CSIStorageCapacity + operationId: replaceNamespacedCSIStorageCapacity parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version + - description: name of the CSIStorageCapacity in: path - name: version + name: name required: true schema: type: string - - description: The custom resource's namespace + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty schema: type: string - description: "When present, indicates that modifications should not be persisted.\ @@ -81956,8 +83058,7 @@ paths: \ fields. This is the default in v1.23+ - Strict: This will fail the request\ \ with a BadRequest error if any unknown fields would be dropped from the\ \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -81966,9562 +83067,16771 @@ paths: content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.CSIStorageCapacity' required: true responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - type: object + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' description: OK "201": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - type: object + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - storage_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /.well-known/openid-configuration: - get: - description: "get service account issuer OpenID configuration, also known as\ - \ the 'OIDC discovery doc'" - operationId: getServiceAccountIssuerOpenIDConfiguration + /apis/storage.k8s.io/v1/storageclasses: + delete: + description: delete collection of StorageClass + operationId: deleteCollectionStorageClass + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false responses: "200": content: application/json: schema: - type: string + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - WellKnown + - storage_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: StorageClass + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: + - application/cbor - application/json - /openid/v1/jwks: + - application/vnd.kubernetes.protobuf + - application/yaml get: - description: get service account issuer OpenID JSON Web Key Set (contains public - token verification keys) - operationId: getServiceAccountIssuerOpenIDKeyset + description: list or watch objects of kind StorageClass + operationId: listStorageClass + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean responses: "200": content: - application/jwk-set+json: + application/json: schema: - type: string + $ref: '#/components/schemas/v1.StorageClassList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StorageClassList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StorageClassList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StorageClassList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.StorageClassList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.StorageClassList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.StorageClassList' description: OK "401": content: {} description: Unauthorized tags: - - openid + - storage_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: StorageClass + version: v1 x-accepts: - - application/jwk-set+json -components: - schemas: - v1.AuditAnnotation: - description: AuditAnnotation describes how to produce an audit annotation for - an API request. - example: - valueExpression: valueExpression - key: key - properties: - key: - description: |- - key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. - - The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}". - - If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. - - Required. + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + post: + description: create a StorageClass + operationId: createStorageClass + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - valueExpression: - description: |- - valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. - - If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. - - Required. + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: type: string - required: - - key - - valueExpression - type: object - v1.ExpressionWarning: - description: ExpressionWarning is a warning information that targets a specific - expression. - example: - fieldRef: fieldRef - warning: warning - properties: - fieldRef: - description: "The path to the field that refers the expression. For example,\ - \ the reference to the expression of the first item of validations is\ - \ \"spec.validations[0].expression\"" + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: type: string - warning: - description: "The content of type checking information in a human-readable\ - \ form. Each line of the warning contains the type that the expression\ - \ is checked against, followed by the type check error from the compiler." + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: type: string - required: - - fieldRef - - warning - type: object - v1.MatchCondition: - description: MatchCondition represents a condition which must by fulfilled for - a request to be sent to a webhook. - example: - expression: expression + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StorageClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StorageClass' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StorageClass' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: StorageClass + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1/storageclasses/{name}: + delete: + description: delete a StorageClass + operationId: deleteStorageClass + parameters: + - description: name of the StorageClass + in: path name: name - properties: - expression: - description: |- - Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: - - 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. - See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the - request resource. - Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ - - Required. + required: true + schema: type: string - name: - description: |- - Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') - - Required. + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - required: - - expression - - name - type: object - v1.MatchResources: - description: "MatchResources decides whether to run the admission control policy\ - \ on an object based on whether it meets the match criteria. The exclude rules\ - \ take precedence over include rules (if a resource matches both, it is excluded)" - example: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - excludeResourceRules: - description: "ExcludeResourceRules describes what operations on what resources/subresources\ - \ the ValidatingAdmissionPolicy should not care about. The exclude rules\ - \ take precedence over include rules (if a resource matches both, it is\ - \ excluded)" - items: - $ref: '#/components/schemas/v1.NamedRuleWithOperations' - type: array - x-kubernetes-list-type: atomic - matchPolicy: - description: |- - matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. - - Defaults to "Equivalent" + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: type: string - namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' - objectSelector: - $ref: '#/components/schemas/v1.LabelSelector' - resourceRules: - description: ResourceRules describes what operations on what resources/subresources - the ValidatingAdmissionPolicy matches. The policy cares about an operation - if it matches _any_ Rule. - items: - $ref: '#/components/schemas/v1.NamedRuleWithOperations' - type: array - x-kubernetes-list-type: atomic - type: object - x-kubernetes-map-type: atomic - v1.MutatingWebhook: - description: MutatingWebhook describes an admission webhook and the resources - and operations it applies to. - example: - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - reinvocationPolicy: reinvocationPolicy + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StorageClass' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StorageClass' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: StorageClass + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: read the specified StorageClass + operationId: readStorageClass + parameters: + - description: name of the StorageClass + in: path name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 6 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - properties: - admissionReviewVersions: - description: "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`\ - \ versions the Webhook expects. API server will try to use first version\ - \ in the list which it supports. If none of the versions specified in\ - \ this list supported by API server, validation will fail for this object.\ - \ If a persisted webhook configuration specifies allowed versions and\ - \ does not include any versions known to the API Server, calls to the\ - \ webhook will fail and be subject to the failure policy." - items: - type: string - type: array - x-kubernetes-list-type: atomic - clientConfig: - $ref: '#/components/schemas/admissionregistration.v1.WebhookClientConfig' - failurePolicy: - description: FailurePolicy defines how unrecognized errors from the admission - endpoint are handled - allowed values are Ignore or Fail. Defaults to - Fail. + required: true + schema: type: string - matchConditions: - description: |- - MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StorageClass' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: StorageClass + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified StorageClass + operationId: patchStorageClass + parameters: + - description: name of the StorageClass + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StorageClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StorageClass' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: StorageClass + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified StorageClass + operationId: replaceStorageClass + parameters: + - description: name of the StorageClass + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StorageClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StorageClass' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: StorageClass + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1/volumeattachments: + delete: + description: delete collection of VolumeAttachment + operationId: deleteCollectionVolumeAttachment + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - The exact matching logic is (in order): - 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. - 2. If ALL matchConditions evaluate to TRUE, the webhook is called. - 3. If any matchCondition evaluates to an error (but none are FALSE): - - If failurePolicy=Fail, reject the request - - If failurePolicy=Ignore, the error is ignored and the webhook is skipped - items: - $ref: '#/components/schemas/v1.MatchCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - matchPolicy: - description: |- - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - Defaults to "Equivalent" + Defaults to unset + in: query + name: resourceVersionMatch + schema: type: string - name: - description: "The name of the admission webhook. Name should be fully qualified,\ - \ e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of\ - \ the webhook, and kubernetes.io is the name of the organization. Required." + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: list or watch objects of kind VolumeAttachment + operationId: listVolumeAttachment + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' - objectSelector: - $ref: '#/components/schemas/v1.LabelSelector' - reinvocationPolicy: - description: |- - reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - Never: the webhook will not be called more than once in a single admission evaluation. + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - Defaults to "Never". + Defaults to unset + in: query + name: resourceVersion + schema: type: string - rules: - description: "Rules describes what operations on what resources/subresources\ - \ the webhook cares about. The webhook cares about an operation if it\ - \ matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks\ - \ and MutatingAdmissionWebhooks from putting the cluster in a state which\ - \ cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks\ - \ and MutatingAdmissionWebhooks are never called on admission requests\ - \ for ValidatingWebhookConfiguration and MutatingWebhookConfiguration\ - \ objects." - items: - $ref: '#/components/schemas/v1.RuleWithOperations' - type: array - x-kubernetes-list-type: atomic - sideEffects: - description: "SideEffects states whether this webhook has side effects.\ - \ Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1\ - \ may also specify Some or Unknown). Webhooks with side effects MUST implement\ - \ a reconciliation system, since a request may be rejected by a future\ - \ step in the admission chain and the side effects therefore need to be\ - \ undone. Requests with the dryRun attribute will be auto-rejected if\ - \ they match a webhook with sideEffects == Unknown or Some." + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: type: string - timeoutSeconds: - description: "TimeoutSeconds specifies the timeout for this webhook. After\ - \ the timeout passes, the webhook call will be ignored or the API call\ - \ will fail based on the failure policy. The timeout value must be between\ - \ 1 and 30 seconds. Default to 10 seconds." - format: int32 + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: type: integer - required: - - admissionReviewVersions - - clientConfig - - name - - sideEffects - type: object - v1.MutatingWebhookConfiguration: - description: MutatingWebhookConfiguration describes the configuration of and - admission webhook that accept or reject and may change the object. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - webhooks: - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - reinvocationPolicy: reinvocationPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 6 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - reinvocationPolicy: reinvocationPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 6 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - kind: kind - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" - type: string - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - webhooks: - description: Webhooks is a list of webhooks and the affected resources and - operations. - items: - $ref: '#/components/schemas/v1.MutatingWebhook' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - type: object + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachmentList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachmentList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachmentList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachmentList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.VolumeAttachmentList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.VolumeAttachmentList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.VolumeAttachmentList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: MutatingWebhookConfiguration + group: storage.k8s.io + kind: VolumeAttachment version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.MutatingWebhookConfigurationList: - description: MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - webhooks: - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - reinvocationPolicy: reinvocationPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 6 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - reinvocationPolicy: reinvocationPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 6 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - kind: kind - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - webhooks: - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - reinvocationPolicy: reinvocationPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 6 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - reinvocationPolicy: reinvocationPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 6 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - kind: kind - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" - type: string - items: - description: List of MutatingWebhookConfiguration. - items: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' - type: array - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + post: + description: create a VolumeAttachment + operationId: createVolumeAttachment + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: MutatingWebhookConfigurationList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.NamedRuleWithOperations: - description: NamedRuleWithOperations is a tuple of Operations and Resources - with ResourceNames. - example: - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - properties: - apiGroups: - description: "APIGroups is the API groups the resources belong to. '*' is\ - \ all groups. If '*' is present, the length of the slice must be one.\ - \ Required." - items: - type: string - type: array - x-kubernetes-list-type: atomic - apiVersions: - description: "APIVersions is the API versions the resources belong to. '*'\ - \ is all versions. If '*' is present, the length of the slice must be\ - \ one. Required." - items: - type: string - type: array - x-kubernetes-list-type: atomic - operations: - description: "Operations is the operations the admission hook cares about\ - \ - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and\ - \ any future admission operations that are added. If '*' is present, the\ - \ length of the slice must be one. Required." - items: - type: string - type: array - x-kubernetes-list-type: atomic - resourceNames: - description: ResourceNames is an optional white list of names that the rule - applies to. An empty set means that everything is allowed. - items: - type: string - type: array - x-kubernetes-list-type: atomic - resources: - description: |- - Resources is a list of resources this rule applies to. - - For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. - - If wildcard is present, the validation rule will ensure resources do not overlap with each other. - - Depending on the enclosing object, subresources might not be allowed. Required. - items: - type: string - type: array - x-kubernetes-list-type: atomic - scope: - description: "scope specifies the scope of this rule. Valid values are \"\ - Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped\ - \ resources will match this rule. Namespace API objects are cluster-scoped.\ - \ \"Namespaced\" means that only namespaced resources will match this\ - \ rule. \"*\" means that there are no scope restrictions. Subresources\ - \ match the scope of their parent resource. Default is \"*\"." + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: type: string - type: object - x-kubernetes-map-type: atomic - v1.ParamKind: - description: ParamKind is a tuple of Group Kind and Version. - example: - apiVersion: apiVersion - kind: kind - properties: - apiVersion: - description: APIVersion is the API group version the resources belong to. - In format of "group/version". Required. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: type: string - kind: - description: Kind is the API kind the resources belong to. Required. + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: type: string - type: object - x-kubernetes-map-type: atomic - v1.ParamRef: - description: ParamRef describes how to locate the params to be used as input - to expressions of rules applied by a policy binding. - example: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1/volumeattachments/{name}: + delete: + description: delete a VolumeAttachment + operationId: deleteVolumeAttachment + parameters: + - description: name of the VolumeAttachment + in: path name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - properties: - name: - description: |- - name is the name of the resource being referenced. - - One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. - - A single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped. + required: true + schema: type: string - namespace: - description: |- - namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. - - A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - - - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - - - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - parameterNotFoundAction: - description: |- - `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. - - Allowed values are `Allow` or `Deny` - - Required + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: type: string - selector: - $ref: '#/components/schemas/v1.LabelSelector' - type: object - x-kubernetes-map-type: atomic - v1.RuleWithOperations: - description: RuleWithOperations is a tuple of Operations and Resources. It is - recommended to make sure that all the tuple expansions are valid. - example: - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - properties: - apiGroups: - description: "APIGroups is the API groups the resources belong to. '*' is\ - \ all groups. If '*' is present, the length of the slice must be one.\ - \ Required." - items: - type: string - type: array - x-kubernetes-list-type: atomic - apiVersions: - description: "APIVersions is the API versions the resources belong to. '*'\ - \ is all versions. If '*' is present, the length of the slice must be\ - \ one. Required." - items: - type: string - type: array - x-kubernetes-list-type: atomic - operations: - description: "Operations is the operations the admission hook cares about\ - \ - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and\ - \ any future admission operations that are added. If '*' is present, the\ - \ length of the slice must be one. Required." - items: - type: string - type: array - x-kubernetes-list-type: atomic - resources: - description: |- - Resources is a list of resources this rule applies to. - - For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. - - If wildcard is present, the validation rule will ensure resources do not overlap with each other. - - Depending on the enclosing object, subresources might not be allowed. Required. - items: - type: string - type: array - x-kubernetes-list-type: atomic - scope: - description: "scope specifies the scope of this rule. Valid values are \"\ - Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped\ - \ resources will match this rule. Namespace API objects are cluster-scoped.\ - \ \"Namespaced\" means that only namespaced resources will match this\ - \ rule. \"*\" means that there are no scope restrictions. Subresources\ - \ match the scope of their parent resource. Default is \"*\"." + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: type: string - type: object - admissionregistration.v1.ServiceReference: - description: ServiceReference holds a reference to Service.legacy.k8s.io - example: - path: path - port: 0 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: read the specified VolumeAttachment + operationId: readVolumeAttachment + parameters: + - description: name of the VolumeAttachment + in: path name: name - namespace: namespace - properties: - name: - description: '`name` is the name of the service. Required' - type: string - namespace: - description: '`namespace` is the namespace of the service. Required' + required: true + schema: type: string - path: - description: '`path` is an optional URL path which will be sent in any request - to this service.' + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - port: - description: "If specified, the port on the service that hosting webhook.\ - \ Default to 443 for backward compatibility. `port` should be a valid\ - \ port number (1-65535, inclusive)." - format: int32 - type: integer - required: - - name - - namespace - type: object - v1.TypeChecking: - description: TypeChecking contains results of type checking the expressions - in the ValidatingAdmissionPolicy - example: - expressionWarnings: - - fieldRef: fieldRef - warning: warning - - fieldRef: fieldRef - warning: warning - properties: - expressionWarnings: - description: The type checking warnings for each expression. - items: - $ref: '#/components/schemas/v1.ExpressionWarning' - type: array - x-kubernetes-list-type: atomic - type: object - v1.ValidatingAdmissionPolicy: - description: ValidatingAdmissionPolicy describes the definition of an admission - validation policy that accepts or rejects an object without changing it. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - variables: - - expression: expression - name: name - - expression: expression - name: name - paramKind: - apiVersion: apiVersion - kind: kind - auditAnnotations: - - valueExpression: valueExpression - key: key - - valueExpression: valueExpression - key: key - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - matchConstraints: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validations: - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - failurePolicy: failurePolicy - status: - typeChecking: - expressionWarnings: - - fieldRef: fieldRef - warning: warning - - fieldRef: fieldRef - warning: warning - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 0 - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" - type: string - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicySpec' - status: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyStatus' - type: object + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: get x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + group: storage.k8s.io + kind: VolumeAttachment version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.ValidatingAdmissionPolicyBinding: - description: |- - ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. - - For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. - - The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - paramRef: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - policyName: policyName - matchResources: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validationActions: - - validationActions - - validationActions - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified VolumeAttachment + operationId: patchVolumeAttachment + parameters: + - description: name of the VolumeAttachment + in: path + name: name + required: true + schema: type: string - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingSpec' - type: object + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: patch x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + group: storage.k8s.io + kind: VolumeAttachment version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.ValidatingAdmissionPolicyBindingList: - description: ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - paramRef: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - policyName: policyName - matchResources: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validationActions: - - validationActions - - validationActions - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - paramRef: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - policyName: policyName - matchResources: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validationActions: - - validationActions - - validationActions - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified VolumeAttachment + operationId: replaceVolumeAttachment + parameters: + - description: name of the VolumeAttachment + in: path + name: name + required: true + schema: type: string - items: - description: List of PolicyBinding. - items: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' - type: array - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBindingList + group: storage.k8s.io + kind: VolumeAttachment version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.ValidatingAdmissionPolicyBindingSpec: - description: ValidatingAdmissionPolicyBindingSpec is the specification of the - ValidatingAdmissionPolicyBinding. - example: - paramRef: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - policyName: policyName - matchResources: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validationActions: - - validationActions - - validationActions - properties: - matchResources: - $ref: '#/components/schemas/v1.MatchResources' - paramRef: - $ref: '#/components/schemas/v1.ParamRef' - policyName: - description: "PolicyName references a ValidatingAdmissionPolicy name which\ - \ the ValidatingAdmissionPolicyBinding binds to. If the referenced resource\ - \ does not exist, this binding is considered invalid and will be ignored\ - \ Required." + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1/volumeattachments/{name}/status: + get: + description: read status of the specified VolumeAttachment + operationId: readVolumeAttachmentStatus + parameters: + - description: name of the VolumeAttachment + in: path + name: name + required: true + schema: type: string - validationActions: - description: |- - validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified VolumeAttachment + operationId: patchVolumeAttachmentStatus + parameters: + - description: name of the VolumeAttachment + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace status of the specified VolumeAttachment + operationId: replaceVolumeAttachmentStatus + parameters: + - description: name of the VolumeAttachment + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1/watch/csidrivers: {} + /apis/storage.k8s.io/v1/watch/csidrivers/{name}: {} + /apis/storage.k8s.io/v1/watch/csinodes: {} + /apis/storage.k8s.io/v1/watch/csinodes/{name}: {} + /apis/storage.k8s.io/v1/watch/csistoragecapacities: {} + /apis/storage.k8s.io/v1/watch/namespaces/{namespace}/csistoragecapacities: {} + /apis/storage.k8s.io/v1/watch/namespaces/{namespace}/csistoragecapacities/{name}: {} + /apis/storage.k8s.io/v1/watch/storageclasses: {} + /apis/storage.k8s.io/v1/watch/storageclasses/{name}: {} + /apis/storage.k8s.io/v1/watch/volumeattachments: {} + /apis/storage.k8s.io/v1/watch/volumeattachments/{name}: {} + /apis/storage.k8s.io/v1alpha1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1alpha1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1alpha1/volumeattributesclasses: + delete: + description: delete collection of VolumeAttributesClass + operationId: deleteCollectionVolumeAttributesClass + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - The supported actions values are: + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - "Deny" specifies that a validation failure results in a denied request. + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - "Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. - "Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]"` + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: list or watch objects of kind VolumeAttributesClass + operationId: listVolumeAttributesClass + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - Clients should expect to handle additional values by ignoring any values not recognized. + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - "Deny" and "Warn" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - Required. - items: - type: string - type: array - x-kubernetes-list-type: set - type: object - v1.ValidatingAdmissionPolicyList: - description: ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - variables: - - expression: expression - name: name - - expression: expression - name: name - paramKind: - apiVersion: apiVersion - kind: kind - auditAnnotations: - - valueExpression: valueExpression - key: key - - valueExpression: valueExpression - key: key - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - matchConstraints: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validations: - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - failurePolicy: failurePolicy - status: - typeChecking: - expressionWarnings: - - fieldRef: fieldRef - warning: warning - - fieldRef: fieldRef - warning: warning - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 0 - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - variables: - - expression: expression - name: name - - expression: expression - name: name - paramKind: - apiVersion: apiVersion - kind: kind - auditAnnotations: - - valueExpression: valueExpression - key: key - - valueExpression: valueExpression - key: key - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - matchConstraints: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validations: - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - failurePolicy: failurePolicy - status: - typeChecking: - expressionWarnings: - - fieldRef: fieldRef - warning: warning - - fieldRef: fieldRef - warning: warning - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 0 - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" - type: string - items: - description: List of ValidatingAdmissionPolicy. - items: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' - type: array - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + Defaults to unset + in: query + name: resourceVersion + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.ValidatingAdmissionPolicySpec: - description: ValidatingAdmissionPolicySpec is the specification of the desired - behavior of the AdmissionPolicy. - example: - variables: - - expression: expression - name: name - - expression: expression - name: name - paramKind: - apiVersion: apiVersion - kind: kind - auditAnnotations: - - valueExpression: valueExpression - key: key - - valueExpression: valueExpression - key: key - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - matchConstraints: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validations: - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - failurePolicy: failurePolicy - properties: - auditAnnotations: - description: auditAnnotations contains CEL expressions which are used to - produce audit annotations for the audit event of the API request. validations - and auditAnnotations may not both be empty; a least one of validations - or auditAnnotations is required. - items: - $ref: '#/components/schemas/v1.AuditAnnotation' - type: array - x-kubernetes-list-type: atomic - failurePolicy: - description: |- - failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. - - A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. - - failurePolicy does not define how validations that evaluate to false are handled. - - When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - Allowed values are Ignore or Fail. Defaults to Fail. + Defaults to unset + in: query + name: resourceVersionMatch + schema: type: string - matchConditions: - description: |- - MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. - - If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - The exact matching logic is (in order): - 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. - 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. - 3. If any matchCondition evaluates to an error (but none are FALSE): - - If failurePolicy=Fail, reject the request - - If failurePolicy=Ignore, the policy is skipped - items: - $ref: '#/components/schemas/v1.MatchCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - matchConstraints: - $ref: '#/components/schemas/v1.MatchResources' - paramKind: - $ref: '#/components/schemas/v1.ParamKind' - validations: - description: Validations contain CEL expressions which is used to apply - the validation. Validations and AuditAnnotations may not both be empty; - a minimum of one Validations or AuditAnnotations is required. - items: - $ref: '#/components/schemas/v1.Validation' - type: array - x-kubernetes-list-type: atomic - variables: - description: |- - Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. - The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. - items: - $ref: '#/components/schemas/v1.Variable' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - type: object - v1.ValidatingAdmissionPolicyStatus: - description: ValidatingAdmissionPolicyStatus represents the status of an admission - validation policy. - example: - typeChecking: - expressionWarnings: - - fieldRef: fieldRef - warning: warning - - fieldRef: fieldRef - warning: warning - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 0 - properties: - conditions: - description: The conditions represent the latest available observations - of a policy's current state. - items: - $ref: '#/components/schemas/v1.Condition' - type: array - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - observedGeneration: - description: The generation observed by the controller. - format: int64 + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: type: integer - typeChecking: - $ref: '#/components/schemas/v1.TypeChecking' - type: object - v1.ValidatingWebhook: - description: ValidatingWebhook describes an admission webhook and the resources - and operations it applies to. - example: - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 0 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - properties: - admissionReviewVersions: - description: "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`\ - \ versions the Webhook expects. API server will try to use first version\ - \ in the list which it supports. If none of the versions specified in\ - \ this list supported by API server, validation will fail for this object.\ - \ If a persisted webhook configuration specifies allowed versions and\ - \ does not include any versions known to the API Server, calls to the\ - \ webhook will fail and be subject to the failure policy." - items: - type: string - type: array - x-kubernetes-list-type: atomic - clientConfig: - $ref: '#/components/schemas/admissionregistration.v1.WebhookClientConfig' - failurePolicy: - description: FailurePolicy defines how unrecognized errors from the admission - endpoint are handled - allowed values are Ignore or Fail. Defaults to - Fail. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1alpha1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + post: + description: create a VolumeAttributesClass + operationId: createVolumeAttributesClass + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - matchConditions: - description: |- - MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. - - The exact matching logic is (in order): - 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. - 2. If ALL matchConditions evaluate to TRUE, the webhook is called. - 3. If any matchCondition evaluates to an error (but none are FALSE): - - If failurePolicy=Fail, reject the request - - If failurePolicy=Ignore, the error is ignored and the webhook is skipped - items: - $ref: '#/components/schemas/v1.MatchCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - matchPolicy: - description: |- - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - - Defaults to "Equivalent" + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: type: string - name: - description: "The name of the admission webhook. Name should be fully qualified,\ - \ e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of\ - \ the webhook, and kubernetes.io is the name of the organization. Required." + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: type: string - namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' - objectSelector: - $ref: '#/components/schemas/v1.LabelSelector' - rules: - description: "Rules describes what operations on what resources/subresources\ - \ the webhook cares about. The webhook cares about an operation if it\ - \ matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks\ - \ and MutatingAdmissionWebhooks from putting the cluster in a state which\ - \ cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks\ - \ and MutatingAdmissionWebhooks are never called on admission requests\ - \ for ValidatingWebhookConfiguration and MutatingWebhookConfiguration\ - \ objects." - items: - $ref: '#/components/schemas/v1.RuleWithOperations' - type: array - x-kubernetes-list-type: atomic - sideEffects: - description: "SideEffects states whether this webhook has side effects.\ - \ Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1\ - \ may also specify Some or Unknown). Webhooks with side effects MUST implement\ - \ a reconciliation system, since a request may be rejected by a future\ - \ step in the admission chain and the side effects therefore need to be\ - \ undone. Requests with the dryRun attribute will be auto-rejected if\ - \ they match a webhook with sideEffects == Unknown or Some." + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: type: string - timeoutSeconds: - description: "TimeoutSeconds specifies the timeout for this webhook. After\ - \ the timeout passes, the webhook call will be ignored or the API call\ - \ will fail based on the failure policy. The timeout value must be between\ - \ 1 and 30 seconds. Default to 10 seconds." - format: int32 - type: integer - required: - - admissionReviewVersions - - clientConfig - - name - - sideEffects - type: object - v1.ValidatingWebhookConfiguration: - description: ValidatingWebhookConfiguration describes the configuration of and - admission webhook that accept or reject and object without changing it. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - webhooks: - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 0 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 0 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - kind: kind - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1alpha1/volumeattributesclasses/{name}: + delete: + description: delete a VolumeAttributesClass + operationId: deleteVolumeAttributesClass + parameters: + - description: name of the VolumeAttributesClass + in: path + name: name + required: true + schema: type: string - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - webhooks: - description: Webhooks is a list of webhooks and the affected resources and - operations. - items: - $ref: '#/components/schemas/v1.ValidatingWebhook' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - type: object + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1alpha1 + x-kubernetes-action: delete x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: ValidatingWebhookConfiguration - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.ValidatingWebhookConfigurationList: - description: ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - webhooks: - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 0 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 0 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - kind: kind - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - webhooks: - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 0 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 0 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - kind: kind - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: read the specified VolumeAttributesClass + operationId: readVolumeAttributesClass + parameters: + - description: name of the VolumeAttributesClass + in: path + name: name + required: true + schema: type: string - items: - description: List of ValidatingWebhookConfiguration. - items: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' - type: array - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1alpha1 + x-kubernetes-action: get x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: ValidatingWebhookConfigurationList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.Validation: - description: Validation specifies the CEL expression which is used to apply - the validation. - example: - reason: reason - expression: expression - messageExpression: messageExpression - message: message - properties: - expression: - description: "Expression represents the expression which will be evaluated\ - \ by CEL. ref: https://github.com/google/cel-spec CEL expressions have\ - \ access to the contents of the API request/response, organized into CEL\ - \ variables as well as some other useful variables:\n\n- 'object' - The\ - \ object from the incoming request. The value is null for DELETE requests.\ - \ - 'oldObject' - The existing object. The value is null for CREATE requests.\ - \ - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).\ - \ - 'params' - Parameter resource referred to by the policy binding being\ - \ evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject'\ - \ - The namespace object that the incoming object belongs to. The value\ - \ is null for cluster-scoped resources. - 'variables' - Map of composited\ - \ variables, from its name to its lazily evaluated value.\n For example,\ - \ a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer'\ - \ - A CEL Authorizer. May be used to perform authorization checks for\ - \ the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n\ - - 'authorizer.requestResource' - A CEL ResourceCheck constructed from\ - \ the 'authorizer' and configured with the\n request resource.\n\nThe\ - \ `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are\ - \ always accessible from the root of the object. No other metadata properties\ - \ are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*`\ - \ are accessible. Accessible property names are escaped according to the\ - \ following rules when accessed in the expression: - '__' escapes to '__underscores__'\ - \ - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes\ - \ to '__slash__' - Property names that exactly match a CEL RESERVED keyword\ - \ escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\"\ - , \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\"\ - , \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"\ - package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing\ - \ a property named \"namespace\": {\"Expression\": \"object.__namespace__\ - \ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\"\ - : \"object.x__dash__prop > 0\"}\n - Expression accessing a property named\ - \ \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"\ - }\n\nEquality on arrays with list type of 'set' or 'map' ignores element\ - \ order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type\ - \ use the semantics of the list type:\n - 'set': `X + Y` performs a union\ - \ where the array positions of all elements in `X` are preserved and\n\ - \ non-intersecting elements in `Y` are appended, retaining their partial\ - \ order.\n - 'map': `X + Y` performs a merge where the array positions\ - \ of all keys in `X` are preserved but the values\n are overwritten\ - \ by values in `Y` when the key sets of `X` and `Y` intersect. Elements\ - \ in `Y` with\n non-intersecting keys are appended, retaining their\ - \ partial order.\nRequired." + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1alpha1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified VolumeAttributesClass + operationId: patchVolumeAttributesClass + parameters: + - description: name of the VolumeAttributesClass + in: path + name: name + required: true + schema: type: string - message: - description: "Message represents the message displayed when validation fails.\ - \ The message is required if the Expression contains line breaks. The\ - \ message must not contain line breaks. If unset, the message is \"failed\ - \ rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\"\ - \ If the Expression contains line breaks. Message is required. The message\ - \ must not contain line breaks. If unset, the message is \"failed Expression:\ - \ {Expression}\"." + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - messageExpression: - description: "messageExpression declares a CEL expression that evaluates\ - \ to the validation failure message that is returned when this rule fails.\ - \ Since messageExpression is used as a failure message, it must evaluate\ - \ to a string. If both message and messageExpression are present on a\ - \ validation, then messageExpression will be used if validation fails.\ - \ If messageExpression results in a runtime error, the runtime error is\ - \ logged, and the validation failure message is produced as if the messageExpression\ - \ field were unset. If messageExpression evaluates to an empty string,\ - \ a string with only spaces, or a string that contains line breaks, then\ - \ the validation failure message will also be produced as if the messageExpression\ - \ field were unset, and the fact that messageExpression produced an empty\ - \ string/string with only spaces/string with line breaks will be logged.\ - \ messageExpression has access to all the same variables as the `expression`\ - \ except for 'authorizer' and 'authorizer.requestResource'. Example: \"\ - object.x must be less than max (\"+string(params.max)+\")\"" + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: type: string - reason: - description: "Reason represents a machine-readable description of why this\ - \ validation failed. If this is the first validation in the list to fail,\ - \ this reason, as well as the corresponding HTTP response code, are used\ - \ in the HTTP response to the client. The currently supported reasons\ - \ are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\"\ - . If not set, StatusReasonInvalid is used in the response to the client." + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: type: string - required: - - expression - type: object - v1.Variable: - description: Variable is the definition of a variable that is used for composition. - A variable is defined as a named expression. - example: - expression: expression + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified VolumeAttributesClass + operationId: replaceVolumeAttributesClass + parameters: + - description: name of the VolumeAttributesClass + in: path name: name - properties: - expression: - description: Expression is the expression that will be evaluated as the - value of the variable. The CEL expression has access to the same identifiers - as the CEL expressions in Validation. + required: true + schema: type: string - name: - description: "Name is the name of the variable. The name must be a valid\ - \ CEL identifier and unique among all variables. The variable can be accessed\ - \ in other expressions through `variables` For example, if name is \"\ - foo\", the variable will be available as `variables.foo`" + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - required: - - expression - - name - type: object - x-kubernetes-map-type: atomic - admissionregistration.v1.WebhookClientConfig: - description: WebhookClientConfig contains the information to make a TLS connection - with the webhook - example: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - properties: - caBundle: - description: "`caBundle` is a PEM encoded CA bundle which will be used to\ - \ validate the webhook's server certificate. If unspecified, system trust\ - \ roots on the apiserver are used." - format: byte - pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: type: string - service: - $ref: '#/components/schemas/admissionregistration.v1.ServiceReference' - url: - description: |- - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: type: string - type: object - v1alpha1.ApplyConfiguration: - description: ApplyConfiguration defines the desired configuration values of - an object. - example: - expression: expression - properties: - expression: - description: "expression will be evaluated by CEL to create an apply configuration.\ - \ ref: https://github.com/google/cel-spec\n\nApply configurations are\ - \ declared in CEL using object initialization. For example, this CEL expression\ - \ returns an apply configuration to set a single field:\n\n\tObject{\n\ - \t spec: Object.spec{\n\t serviceAccountName: \"example\"\n\t }\n\ - \t}\n\nApply configurations may not modify atomic structs, maps or arrays\ - \ due to the risk of accidental deletion of values not included in the\ - \ apply configuration.\n\nCEL expressions have access to the object types\ - \ needed to create apply configurations:\n\n- 'Object' - CEL type of the\ - \ resource object. - 'Object.' - CEL type of object field (such\ - \ as 'Object.spec') - 'Object.....`\ - \ - CEL type of nested field (such as 'Object.spec.containers')\n\nCEL\ - \ expressions have access to the contents of the API request, organized\ - \ into CEL variables as well as some other useful variables:\n\n- 'object'\ - \ - The object from the incoming request. The value is null for DELETE\ - \ requests. - 'oldObject' - The existing object. The value is null for\ - \ CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).\ - \ - 'params' - Parameter resource referred to by the policy binding being\ - \ evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject'\ - \ - The namespace object that the incoming object belongs to. The value\ - \ is null for cluster-scoped resources. - 'variables' - Map of composited\ - \ variables, from its name to its lazily evaluated value.\n For example,\ - \ a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer'\ - \ - A CEL Authorizer. May be used to perform authorization checks for\ - \ the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n\ - - 'authorizer.requestResource' - A CEL ResourceCheck constructed from\ - \ the 'authorizer' and configured with the\n request resource.\n\nThe\ - \ `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are\ - \ always accessible from the root of the object. No other metadata properties\ - \ are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*`\ - \ are accessible. Required." + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: type: string - type: object - v1alpha1.JSONPatch: - description: JSONPatch defines a JSON Patch. - example: - expression: expression - properties: - expression: - description: "expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/).\ - \ ref: https://github.com/google/cel-spec\n\nexpression must return an\ - \ array of JSONPatch values.\n\nFor example, this CEL expression returns\ - \ a JSON patch to conditionally modify a value:\n\n\t [\n\t JSONPatch{op:\ - \ \"test\", path: \"/spec/example\", value: \"Red\"},\n\t JSONPatch{op:\ - \ \"replace\", path: \"/spec/example\", value: \"Green\"}\n\t ]\n\nTo\ - \ define an object for the patch value, use Object types. For example:\n\ - \n\t [\n\t JSONPatch{\n\t op: \"add\",\n\t path: \"/spec/selector\"\ - ,\n\t value: Object.spec.selector{matchLabels: {\"environment\":\ - \ \"test\"}}\n\t }\n\t ]\n\nTo use strings containing '/' and '~'\ - \ as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example:\n\n\ - \t [\n\t JSONPatch{\n\t op: \"add\",\n\t path: \"/metadata/labels/\"\ - \ + jsonpatch.escapeKey(\"example.com/environment\"),\n\t value:\ - \ \"test\"\n\t },\n\t ]\n\nCEL expressions have access to the types\ - \ needed to create JSON patches and objects:\n\n- 'JSONPatch' - CEL type\ - \ of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path'\ - \ and 'value'.\n See [JSON patch](https://jsonpatch.com/) for more details.\ - \ The 'value' field may be set to any of: string,\n integer, array, map\ - \ or object. If set, the 'path' and 'from' fields must be set to a\n\ - \ [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string,\ - \ where the 'jsonpatch.escapeKey()' CEL\n function may be used to escape\ - \ path keys containing '/' and '~'.\n- 'Object' - CEL type of the resource\ - \ object. - 'Object.' - CEL type of object field (such as 'Object.spec')\ - \ - 'Object.....` - CEL type of nested\ - \ field (such as 'Object.spec.containers')\n\nCEL expressions have access\ - \ to the contents of the API request, organized into CEL variables as\ - \ well as some other useful variables:\n\n- 'object' - The object from\ - \ the incoming request. The value is null for DELETE requests. - 'oldObject'\ - \ - The existing object. The value is null for CREATE requests. - 'request'\ - \ - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).\ - \ - 'params' - Parameter resource referred to by the policy binding being\ - \ evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject'\ - \ - The namespace object that the incoming object belongs to. The value\ - \ is null for cluster-scoped resources. - 'variables' - Map of composited\ - \ variables, from its name to its lazily evaluated value.\n For example,\ - \ a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer'\ - \ - A CEL Authorizer. May be used to perform authorization checks for\ - \ the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n\ - - 'authorizer.requestResource' - A CEL ResourceCheck constructed from\ - \ the 'authorizer' and configured with the\n request resource.\n\nCEL\ - \ expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries)\ - \ as well as:\n\n- 'jsonpatch.escapeKey' - Performs JSONPatch key escaping.\ - \ '~' and '/' are escaped as '~0' and `~1' respectively).\n\nOnly property\ - \ names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required." + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1alpha1/watch/volumeattributesclasses: {} + /apis/storage.k8s.io/v1alpha1/watch/volumeattributesclasses/{name}: {} + /apis/storage.k8s.io/v1beta1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1beta1/volumeattributesclasses: + delete: + description: delete collection of VolumeAttributesClass + operationId: deleteCollectionVolumeAttributesClass + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - type: object - v1alpha1.MatchCondition: - example: - expression: expression - name: name - properties: - expression: - description: |- - Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: - - 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. - See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the - request resource. - Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - Required. + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: type: string - name: - description: |- - Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') - - Required. + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: type: string - required: - - expression - - name - type: object - v1alpha1.MatchResources: - description: "MatchResources decides whether to run the admission control policy\ - \ on an object based on whether it meets the match criteria. The exclude rules\ - \ take precedence over include rules (if a resource matches both, it is excluded)" - example: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - excludeResourceRules: - description: "ExcludeResourceRules describes what operations on what resources/subresources\ - \ the ValidatingAdmissionPolicy should not care about. The exclude rules\ - \ take precedence over include rules (if a resource matches both, it is\ - \ excluded)" - items: - $ref: '#/components/schemas/v1alpha1.NamedRuleWithOperations' - type: array - x-kubernetes-list-type: atomic - matchPolicy: - description: |- - matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - Defaults to "Equivalent" + Defaults to unset + in: query + name: resourceVersionMatch + schema: type: string - namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' - objectSelector: - $ref: '#/components/schemas/v1.LabelSelector' - resourceRules: - description: ResourceRules describes what operations on what resources/subresources - the ValidatingAdmissionPolicy matches. The policy cares about an operation - if it matches _any_ Rule. - items: - $ref: '#/components/schemas/v1alpha1.NamedRuleWithOperations' - type: array - x-kubernetes-list-type: atomic - type: object - x-kubernetes-map-type: atomic - v1alpha1.MutatingAdmissionPolicy: - description: MutatingAdmissionPolicy describes the definition of an admission - mutation policy that mutates the object coming into admission chain. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - reinvocationPolicy: reinvocationPolicy - variables: - - expression: expression - name: name - - expression: expression - name: name - mutations: - - patchType: patchType - applyConfiguration: - expression: expression - jsonPatch: - expression: expression - - patchType: patchType - applyConfiguration: - expression: expression - jsonPatch: - expression: expression - paramKind: - apiVersion: apiVersion - kind: kind - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - matchConstraints: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: list or watch objects of kind VolumeAttributesClass + operationId: listVolumeAttributesClass + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicySpec' - type: object - x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: MutatingAdmissionPolicy - version: v1alpha1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1alpha1.MutatingAdmissionPolicyBinding: - description: |- - MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters. + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - paramRef: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - policyName: policyName - matchResources: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + Defaults to unset + in: query + name: resourceVersion + schema: type: string - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingSpec' - type: object + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: MutatingAdmissionPolicyBinding - version: v1alpha1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1alpha1.MutatingAdmissionPolicyBindingList: - description: MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - paramRef: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - policyName: policyName - matchResources: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - paramRef: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - policyName: policyName - matchResources: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1beta1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + post: + description: create a VolumeAttributesClass + operationId: createVolumeAttributesClass + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - items: - description: List of PolicyBinding. - items: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' - type: array - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-kubernetes-action: post x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: MutatingAdmissionPolicyBindingList - version: v1alpha1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1alpha1.MutatingAdmissionPolicyBindingSpec: - description: MutatingAdmissionPolicyBindingSpec is the specification of the - MutatingAdmissionPolicyBinding. - example: - paramRef: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - policyName: policyName - matchResources: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - matchResources: - $ref: '#/components/schemas/v1alpha1.MatchResources' - paramRef: - $ref: '#/components/schemas/v1alpha1.ParamRef' - policyName: - description: "policyName references a MutatingAdmissionPolicy name which\ - \ the MutatingAdmissionPolicyBinding binds to. If the referenced resource\ - \ does not exist, this binding is considered invalid and will be ignored\ - \ Required." + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}: + delete: + description: delete a VolumeAttributesClass + operationId: deleteVolumeAttributesClass + parameters: + - description: name of the VolumeAttributesClass + in: path + name: name + required: true + schema: type: string - type: object - v1alpha1.MutatingAdmissionPolicyList: - description: MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - reinvocationPolicy: reinvocationPolicy - variables: - - expression: expression - name: name - - expression: expression - name: name - mutations: - - patchType: patchType - applyConfiguration: - expression: expression - jsonPatch: - expression: expression - - patchType: patchType - applyConfiguration: - expression: expression - jsonPatch: - expression: expression - paramKind: - apiVersion: apiVersion - kind: kind - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - matchConstraints: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - reinvocationPolicy: reinvocationPolicy - variables: - - expression: expression - name: name - - expression: expression - name: name - mutations: - - patchType: patchType - applyConfiguration: - expression: expression - jsonPatch: - expression: expression - - patchType: patchType - applyConfiguration: - expression: expression - jsonPatch: - expression: expression - paramKind: - apiVersion: apiVersion - kind: kind - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - matchConstraints: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - items: - description: List of ValidatingAdmissionPolicy. - items: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' - type: array - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-kubernetes-action: delete x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: MutatingAdmissionPolicyList - version: v1alpha1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1alpha1.MutatingAdmissionPolicySpec: - description: MutatingAdmissionPolicySpec is the specification of the desired - behavior of the admission policy. - example: - reinvocationPolicy: reinvocationPolicy - variables: - - expression: expression - name: name - - expression: expression - name: name - mutations: - - patchType: patchType - applyConfiguration: - expression: expression - jsonPatch: - expression: expression - - patchType: patchType - applyConfiguration: - expression: expression - jsonPatch: - expression: expression - paramKind: - apiVersion: apiVersion - kind: kind - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - matchConstraints: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - properties: - failurePolicy: - description: |- - failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. - - A policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource. - - failurePolicy does not define how validations that evaluate to false are handled. - - Allowed values are Ignore or Fail. Defaults to Fail. + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: read the specified VolumeAttributesClass + operationId: readVolumeAttributesClass + parameters: + - description: name of the VolumeAttributesClass + in: path + name: name + required: true + schema: type: string - matchConditions: - description: |- - matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. - - If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. - - The exact matching logic is (in order): - 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. - 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. - 3. If any matchCondition evaluates to an error (but none are FALSE): - - If failurePolicy=Fail, reject the request - - If failurePolicy=Ignore, the policy is skipped - items: - $ref: '#/components/schemas/v1alpha1.MatchCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - matchConstraints: - $ref: '#/components/schemas/v1alpha1.MatchResources' - mutations: - description: "mutations contain operations to perform on matching objects.\ - \ mutations may not be empty; a minimum of one mutation is required. mutations\ - \ are evaluated in order, and are reinvoked according to the reinvocationPolicy.\ - \ The mutations of a policy are invoked for each binding of this policy\ - \ and reinvocation of mutations occurs on a per binding basis." - items: - $ref: '#/components/schemas/v1alpha1.Mutation' - type: array - x-kubernetes-list-type: atomic - paramKind: - $ref: '#/components/schemas/v1alpha1.ParamKind' - reinvocationPolicy: - description: |- - reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". - - Never: These mutations will not be called more than once per binding in a single admission evaluation. - - IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required. + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - variables: - description: |- - variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except matchConditions because matchConditions are evaluated before the rest of the policy. - - The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, variables must be sorted by the order of first appearance and acyclic. - items: - $ref: '#/components/schemas/v1alpha1.Variable' - type: array - x-kubernetes-list-type: atomic - type: object - v1alpha1.Mutation: - description: Mutation specifies the CEL expression which is used to apply the - Mutation. - example: - patchType: patchType - applyConfiguration: - expression: expression - jsonPatch: - expression: expression - properties: - applyConfiguration: - $ref: '#/components/schemas/v1alpha1.ApplyConfiguration' - jsonPatch: - $ref: '#/components/schemas/v1alpha1.JSONPatch' - patchType: - description: patchType indicates the patch strategy used. Allowed values - are "ApplyConfiguration" and "JSONPatch". Required. + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified VolumeAttributesClass + operationId: patchVolumeAttributesClass + parameters: + - description: name of the VolumeAttributesClass + in: path + name: name + required: true + schema: type: string - required: - - patchType - type: object - v1alpha1.NamedRuleWithOperations: - description: NamedRuleWithOperations is a tuple of Operations and Resources - with ResourceNames. - example: - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - properties: - apiGroups: - description: "APIGroups is the API groups the resources belong to. '*' is\ - \ all groups. If '*' is present, the length of the slice must be one.\ - \ Required." - items: - type: string - type: array - x-kubernetes-list-type: atomic - apiVersions: - description: "APIVersions is the API versions the resources belong to. '*'\ - \ is all versions. If '*' is present, the length of the slice must be\ - \ one. Required." - items: - type: string - type: array - x-kubernetes-list-type: atomic - operations: - description: "Operations is the operations the admission hook cares about\ - \ - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and\ - \ any future admission operations that are added. If '*' is present, the\ - \ length of the slice must be one. Required." - items: - type: string - type: array - x-kubernetes-list-type: atomic - resourceNames: - description: ResourceNames is an optional white list of names that the rule - applies to. An empty set means that everything is allowed. - items: - type: string - type: array - x-kubernetes-list-type: atomic - resources: - description: |- - Resources is a list of resources this rule applies to. - - For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. - - If wildcard is present, the validation rule will ensure resources do not overlap with each other. - - Depending on the enclosing object, subresources might not be allowed. Required. - items: - type: string - type: array - x-kubernetes-list-type: atomic - scope: - description: "scope specifies the scope of this rule. Valid values are \"\ - Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped\ - \ resources will match this rule. Namespace API objects are cluster-scoped.\ - \ \"Namespaced\" means that only namespaced resources will match this\ - \ rule. \"*\" means that there are no scope restrictions. Subresources\ - \ match the scope of their parent resource. Default is \"*\"." + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - type: object - x-kubernetes-map-type: atomic - v1alpha1.ParamKind: - description: ParamKind is a tuple of Group Kind and Version. - example: - apiVersion: apiVersion - kind: kind - properties: - apiVersion: - description: APIVersion is the API group version the resources belong to. - In format of "group/version". Required. + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: type: string - kind: - description: Kind is the API kind the resources belong to. Required. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: type: string - type: object - x-kubernetes-map-type: atomic - v1alpha1.ParamRef: - description: ParamRef describes how to locate the params to be used as input - to expressions of rules applied by a policy binding. - example: + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified VolumeAttributesClass + operationId: replaceVolumeAttributesClass + parameters: + - description: name of the VolumeAttributesClass + in: path name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - properties: - name: - description: |- - `name` is the name of the resource being referenced. - - `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. + required: true + schema: type: string - namespace: - description: |- - namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. - - A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - - - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - - - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - parameterNotFoundAction: - description: |- - `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. - - Allowed values are `Allow` or `Deny` Default to `Deny` + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: type: string - selector: - $ref: '#/components/schemas/v1.LabelSelector' - type: object - x-kubernetes-map-type: atomic - v1alpha1.Variable: - description: Variable is the definition of a variable that is used for composition. - example: - expression: expression - name: name - properties: - expression: - description: Expression is the expression that will be evaluated as the - value of the variable. The CEL expression has access to the same identifiers - as the CEL expressions in Validation. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: type: string - name: - description: "Name is the name of the variable. The name must be a valid\ - \ CEL identifier and unique among all variables. The variable can be accessed\ - \ in other expressions through `variables` For example, if name is \"\ - foo\", the variable will be available as `variables.foo`" + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: type: string - required: - - expression - - name - type: object - v1beta1.AuditAnnotation: - description: AuditAnnotation describes how to produce an audit annotation for - an API request. - example: - valueExpression: valueExpression - key: key - properties: - key: - description: |- - key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. - - The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}". - - If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. - - Required. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1beta1/watch/volumeattributesclasses: {} + /apis/storage.k8s.io/v1beta1/watch/volumeattributesclasses/{name}: {} + /apis/storagemigration.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storagemigration + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storagemigration.k8s.io/v1alpha1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations: + delete: + description: delete collection of StorageVersionMigration + operationId: deleteCollectionStorageVersionMigration + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - valueExpression: - description: |- - valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. - - If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - Required. + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: type: string - required: - - key - - valueExpression - type: object - v1beta1.ExpressionWarning: - description: ExpressionWarning is a warning information that targets a specific - expression. - example: - fieldRef: fieldRef - warning: warning - properties: - fieldRef: - description: "The path to the field that refers the expression. For example,\ - \ the reference to the expression of the first item of validations is\ - \ \"spec.validations[0].expression\"" + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: type: string - warning: - description: "The content of type checking information in a human-readable\ - \ form. Each line of the warning contains the type that the expression\ - \ is checked against, followed by the type check error from the compiler." + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: type: string - required: - - fieldRef - - warning - type: object - v1beta1.MatchCondition: - description: MatchCondition represents a condition which must be fulfilled for - a request to be sent to a webhook. - example: - expression: expression - name: name - properties: - expression: - description: |- - Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: - - 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. - See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the - request resource. - Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ - - Required. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: type: string - name: - description: |- - Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - Required. + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: type: string - required: - - expression - - name - type: object - v1beta1.MatchResources: - description: "MatchResources decides whether to run the admission control policy\ - \ on an object based on whether it meets the match criteria. The exclude rules\ - \ take precedence over include rules (if a resource matches both, it is excluded)" - example: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - excludeResourceRules: - description: "ExcludeResourceRules describes what operations on what resources/subresources\ - \ the ValidatingAdmissionPolicy should not care about. The exclude rules\ - \ take precedence over include rules (if a resource matches both, it is\ - \ excluded)" - items: - $ref: '#/components/schemas/v1beta1.NamedRuleWithOperations' - type: array - x-kubernetes-list-type: atomic - matchPolicy: - description: |- - matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - Defaults to "Equivalent" + Defaults to unset + in: query + name: resourceVersionMatch + schema: type: string - namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' - objectSelector: - $ref: '#/components/schemas/v1.LabelSelector' - resourceRules: - description: ResourceRules describes what operations on what resources/subresources - the ValidatingAdmissionPolicy matches. The policy cares about an operation - if it matches _any_ Rule. - items: - $ref: '#/components/schemas/v1beta1.NamedRuleWithOperations' - type: array - x-kubernetes-list-type: atomic - type: object - x-kubernetes-map-type: atomic - v1beta1.NamedRuleWithOperations: - description: NamedRuleWithOperations is a tuple of Operations and Resources - with ResourceNames. - example: - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - properties: - apiGroups: - description: "APIGroups is the API groups the resources belong to. '*' is\ - \ all groups. If '*' is present, the length of the slice must be one.\ - \ Required." - items: - type: string - type: array - x-kubernetes-list-type: atomic - apiVersions: - description: "APIVersions is the API versions the resources belong to. '*'\ - \ is all versions. If '*' is present, the length of the slice must be\ - \ one. Required." - items: - type: string - type: array - x-kubernetes-list-type: atomic - operations: - description: "Operations is the operations the admission hook cares about\ - \ - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and\ - \ any future admission operations that are added. If '*' is present, the\ - \ length of the slice must be one. Required." - items: - type: string - type: array - x-kubernetes-list-type: atomic - resourceNames: - description: ResourceNames is an optional white list of names that the rule - applies to. An empty set means that everything is allowed. - items: - type: string - type: array - x-kubernetes-list-type: atomic - resources: - description: |- - Resources is a list of resources this rule applies to. + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. - If wildcard is present, the validation rule will ensure resources do not overlap with each other. + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: list or watch objects of kind StorageVersionMigration + operationId: listStorageVersionMigration + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - Depending on the enclosing object, subresources might not be allowed. Required. - items: - type: string - type: array - x-kubernetes-list-type: atomic - scope: - description: "scope specifies the scope of this rule. Valid values are \"\ - Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped\ - \ resources will match this rule. Namespace API objects are cluster-scoped.\ - \ \"Namespaced\" means that only namespaced resources will match this\ - \ rule. \"*\" means that there are no scope restrictions. Subresources\ - \ match the scope of their parent resource. Default is \"*\"." + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: type: string - type: object - x-kubernetes-map-type: atomic - v1beta1.ParamKind: - description: ParamKind is a tuple of Group Kind and Version. - example: - apiVersion: apiVersion - kind: kind - properties: - apiVersion: - description: APIVersion is the API group version the resources belong to. - In format of "group/version". Required. + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: type: string - kind: - description: Kind is the API kind the resources belong to. Required. + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: type: string - type: object - x-kubernetes-map-type: atomic - v1beta1.ParamRef: - description: ParamRef describes how to locate the params to be used as input - to expressions of rules applied by a policy binding. - example: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - properties: - name: - description: |- - name is the name of the resource being referenced. + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - A single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped. + Defaults to unset + in: query + name: resourceVersion + schema: type: string - namespace: - description: |- - namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. - - A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - - - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. + Defaults to unset + in: query + name: resourceVersionMatch + schema: type: string - parameterNotFoundAction: - description: |- - `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - Allowed values are `Allow` or `Deny` + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. - Required - type: string - selector: - $ref: '#/components/schemas/v1.LabelSelector' - type: object - x-kubernetes-map-type: atomic - v1beta1.TypeChecking: - description: TypeChecking contains results of type checking the expressions - in the ValidatingAdmissionPolicy - example: - expressionWarnings: - - fieldRef: fieldRef - warning: warning - - fieldRef: fieldRef - warning: warning - properties: - expressionWarnings: - description: The type checking warnings for each expression. - items: - $ref: '#/components/schemas/v1beta1.ExpressionWarning' - type: array - x-kubernetes-list-type: atomic - type: object - v1beta1.ValidatingAdmissionPolicy: - description: ValidatingAdmissionPolicy describes the definition of an admission - validation policy that accepts or rejects an object without changing it. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - variables: - - expression: expression - name: name - - expression: expression - name: name - paramKind: - apiVersion: apiVersion - kind: kind - auditAnnotations: - - valueExpression: valueExpression - key: key - - valueExpression: valueExpression - key: key - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - matchConstraints: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validations: - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - failurePolicy: failurePolicy - status: - typeChecking: - expressionWarnings: - - fieldRef: fieldRef - warning: warning - - fieldRef: fieldRef - warning: warning - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 0 - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + post: + description: create a StorageVersionMigration + operationId: createStorageVersionMigration + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicySpec' - status: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyStatus' - type: object - x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1beta1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1beta1.ValidatingAdmissionPolicyBinding: - description: |- - ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. - - For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. - - The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - paramRef: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - policyName: policyName - matchResources: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validationActions: - - validationActions - - validationActions - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: type: string - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingSpec' - type: object + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: post x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding - version: v1beta1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1beta1.ValidatingAdmissionPolicyBindingList: - description: ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - paramRef: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - policyName: policyName - matchResources: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validationActions: - - validationActions - - validationActions - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - paramRef: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - policyName: policyName - matchResources: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validationActions: - - validationActions - - validationActions - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}: + delete: + description: delete a StorageVersionMigration + operationId: deleteStorageVersionMigration + parameters: + - description: name of the StorageVersionMigration + in: path + name: name + required: true + schema: type: string - items: - description: List of PolicyBinding. - items: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' - type: array - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBindingList - version: v1beta1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1beta1.ValidatingAdmissionPolicyBindingSpec: - description: ValidatingAdmissionPolicyBindingSpec is the specification of the - ValidatingAdmissionPolicyBinding. - example: - paramRef: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - policyName: policyName - matchResources: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validationActions: - - validationActions - - validationActions - properties: - matchResources: - $ref: '#/components/schemas/v1beta1.MatchResources' - paramRef: - $ref: '#/components/schemas/v1beta1.ParamRef' - policyName: - description: "PolicyName references a ValidatingAdmissionPolicy name which\ - \ the ValidatingAdmissionPolicyBinding binds to. If the referenced resource\ - \ does not exist, this binding is considered invalid and will be ignored\ - \ Required." - type: string - validationActions: - description: |- - validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. - - Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. - - validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. - - The supported actions values are: - - "Deny" specifies that a validation failure results in a denied request. - - "Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. - - "Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]"` - - Clients should expect to handle additional values by ignoring any values not recognized. - - "Deny" and "Warn" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. - - Required. - items: - type: string - type: array - x-kubernetes-list-type: set - type: object - v1beta1.ValidatingAdmissionPolicyList: - description: ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - variables: - - expression: expression - name: name - - expression: expression - name: name - paramKind: - apiVersion: apiVersion - kind: kind - auditAnnotations: - - valueExpression: valueExpression - key: key - - valueExpression: valueExpression - key: key - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - matchConstraints: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validations: - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - failurePolicy: failurePolicy - status: - typeChecking: - expressionWarnings: - - fieldRef: fieldRef - warning: warning - - fieldRef: fieldRef - warning: warning - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 0 - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - variables: - - expression: expression - name: name - - expression: expression - name: name - paramKind: - apiVersion: apiVersion - kind: kind - auditAnnotations: - - valueExpression: valueExpression - key: key - - valueExpression: valueExpression - key: key - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - matchConstraints: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validations: - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - failurePolicy: failurePolicy - status: - typeChecking: - expressionWarnings: - - fieldRef: fieldRef - warning: warning - - fieldRef: fieldRef - warning: warning - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 0 - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: type: string - items: - description: List of ValidatingAdmissionPolicy. - items: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - type: array - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: delete x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyList - version: v1beta1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1beta1.ValidatingAdmissionPolicySpec: - description: ValidatingAdmissionPolicySpec is the specification of the desired - behavior of the AdmissionPolicy. - example: - variables: - - expression: expression - name: name - - expression: expression - name: name - paramKind: - apiVersion: apiVersion - kind: kind - auditAnnotations: - - valueExpression: valueExpression - key: key - - valueExpression: valueExpression - key: key - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - matchConstraints: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validations: - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - failurePolicy: failurePolicy - properties: - auditAnnotations: - description: auditAnnotations contains CEL expressions which are used to - produce audit annotations for the audit event of the API request. validations - and auditAnnotations may not both be empty; a least one of validations - or auditAnnotations is required. - items: - $ref: '#/components/schemas/v1beta1.AuditAnnotation' - type: array - x-kubernetes-list-type: atomic - failurePolicy: - description: |- - failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. - - A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. - - failurePolicy does not define how validations that evaluate to false are handled. - - When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. - - Allowed values are Ignore or Fail. Defaults to Fail. + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: read the specified StorageVersionMigration + operationId: readStorageVersionMigration + parameters: + - description: name of the StorageVersionMigration + in: path + name: name + required: true + schema: type: string - matchConditions: - description: |- - MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. - - If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. - - The exact matching logic is (in order): - 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. - 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. - 3. If any matchCondition evaluates to an error (but none are FALSE): - - If failurePolicy=Fail, reject the request - - If failurePolicy=Ignore, the policy is skipped - items: - $ref: '#/components/schemas/v1beta1.MatchCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - matchConstraints: - $ref: '#/components/schemas/v1beta1.MatchResources' - paramKind: - $ref: '#/components/schemas/v1beta1.ParamKind' - validations: - description: Validations contain CEL expressions which is used to apply - the validation. Validations and AuditAnnotations may not both be empty; - a minimum of one Validations or AuditAnnotations is required. - items: - $ref: '#/components/schemas/v1beta1.Validation' - type: array - x-kubernetes-list-type: atomic - variables: - description: |- - Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. - - The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. - items: - $ref: '#/components/schemas/v1beta1.Variable' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - type: object - v1beta1.ValidatingAdmissionPolicyStatus: - description: ValidatingAdmissionPolicyStatus represents the status of an admission - validation policy. - example: - typeChecking: - expressionWarnings: - - fieldRef: fieldRef - warning: warning - - fieldRef: fieldRef - warning: warning - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 0 - properties: - conditions: - description: The conditions represent the latest available observations - of a policy's current state. - items: - $ref: '#/components/schemas/v1.Condition' - type: array - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - observedGeneration: - description: The generation observed by the controller. - format: int64 - type: integer - typeChecking: - $ref: '#/components/schemas/v1beta1.TypeChecking' - type: object - v1beta1.Validation: - description: Validation specifies the CEL expression which is used to apply - the validation. - example: - reason: reason - expression: expression - messageExpression: messageExpression - message: message - properties: - expression: - description: "Expression represents the expression which will be evaluated\ - \ by CEL. ref: https://github.com/google/cel-spec CEL expressions have\ - \ access to the contents of the API request/response, organized into CEL\ - \ variables as well as some other useful variables:\n\n- 'object' - The\ - \ object from the incoming request. The value is null for DELETE requests.\ - \ - 'oldObject' - The existing object. The value is null for CREATE requests.\ - \ - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).\ - \ - 'params' - Parameter resource referred to by the policy binding being\ - \ evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject'\ - \ - The namespace object that the incoming object belongs to. The value\ - \ is null for cluster-scoped resources. - 'variables' - Map of composited\ - \ variables, from its name to its lazily evaluated value.\n For example,\ - \ a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer'\ - \ - A CEL Authorizer. May be used to perform authorization checks for\ - \ the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n\ - - 'authorizer.requestResource' - A CEL ResourceCheck constructed from\ - \ the 'authorizer' and configured with the\n request resource.\n\nThe\ - \ `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are\ - \ always accessible from the root of the object. No other metadata properties\ - \ are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*`\ - \ are accessible. Accessible property names are escaped according to the\ - \ following rules when accessed in the expression: - '__' escapes to '__underscores__'\ - \ - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes\ - \ to '__slash__' - Property names that exactly match a CEL RESERVED keyword\ - \ escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\"\ - , \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\"\ - , \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"\ - package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing\ - \ a property named \"namespace\": {\"Expression\": \"object.__namespace__\ - \ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\"\ - : \"object.x__dash__prop > 0\"}\n - Expression accessing a property named\ - \ \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"\ - }\n\nEquality on arrays with list type of 'set' or 'map' ignores element\ - \ order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type\ - \ use the semantics of the list type:\n - 'set': `X + Y` performs a union\ - \ where the array positions of all elements in `X` are preserved and\n\ - \ non-intersecting elements in `Y` are appended, retaining their partial\ - \ order.\n - 'map': `X + Y` performs a merge where the array positions\ - \ of all keys in `X` are preserved but the values\n are overwritten\ - \ by values in `Y` when the key sets of `X` and `Y` intersect. Elements\ - \ in `Y` with\n non-intersecting keys are appended, retaining their\ - \ partial order.\nRequired." + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - message: - description: "Message represents the message displayed when validation fails.\ - \ The message is required if the Expression contains line breaks. The\ - \ message must not contain line breaks. If unset, the message is \"failed\ - \ rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\"\ - \ If the Expression contains line breaks. Message is required. The message\ - \ must not contain line breaks. If unset, the message is \"failed Expression:\ - \ {Expression}\"." + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified StorageVersionMigration + operationId: patchStorageVersionMigration + parameters: + - description: name of the StorageVersionMigration + in: path + name: name + required: true + schema: type: string - messageExpression: - description: "messageExpression declares a CEL expression that evaluates\ - \ to the validation failure message that is returned when this rule fails.\ - \ Since messageExpression is used as a failure message, it must evaluate\ - \ to a string. If both message and messageExpression are present on a\ - \ validation, then messageExpression will be used if validation fails.\ - \ If messageExpression results in a runtime error, the runtime error is\ - \ logged, and the validation failure message is produced as if the messageExpression\ - \ field were unset. If messageExpression evaluates to an empty string,\ - \ a string with only spaces, or a string that contains line breaks, then\ - \ the validation failure message will also be produced as if the messageExpression\ - \ field were unset, and the fact that messageExpression produced an empty\ - \ string/string with only spaces/string with line breaks will be logged.\ - \ messageExpression has access to all the same variables as the `expression`\ - \ except for 'authorizer' and 'authorizer.requestResource'. Example: \"\ - object.x must be less than max (\"+string(params.max)+\")\"" + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - reason: - description: "Reason represents a machine-readable description of why this\ - \ validation failed. If this is the first validation in the list to fail,\ - \ this reason, as well as the corresponding HTTP response code, are used\ - \ in the HTTP response to the client. The currently supported reasons\ - \ are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\"\ - . If not set, StatusReasonInvalid is used in the response to the client." + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: type: string - required: - - expression - type: object - v1beta1.Variable: - description: Variable is the definition of a variable that is used for composition. - A variable is defined as a named expression. - example: - expression: expression - name: name - properties: - expression: - description: Expression is the expression that will be evaluated as the - value of the variable. The CEL expression has access to the same identifiers - as the CEL expressions in Validation. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: type: string - name: - description: "Name is the name of the variable. The name must be a valid\ - \ CEL identifier and unique among all variables. The variable can be accessed\ - \ in other expressions through `variables` For example, if name is \"\ - foo\", the variable will be available as `variables.foo`" + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: type: string - required: - - expression - - name - type: object - x-kubernetes-map-type: atomic - v1alpha1.ServerStorageVersion: - description: An API server instance reports the version it can decode and the - version it encodes objects to when persisting objects in the backend. - example: - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - servedVersions: - - servedVersions - - servedVersions - properties: - apiServerID: - description: The ID of the reporting API server. + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified StorageVersionMigration + operationId: replaceStorageVersionMigration + parameters: + - description: name of the StorageVersionMigration + in: path + name: name + required: true + schema: type: string - decodableVersions: - description: The API server can decode objects encoded in these versions. - The encodingVersion must be included in the decodableVersions. - items: - type: string - type: array - x-kubernetes-list-type: set - encodingVersion: - description: "The API server encodes the object to this version when persisting\ - \ it in the backend (e.g., etcd)." + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - servedVersions: - description: The API server can serve these versions. DecodableVersions - must include all ServedVersions. - items: - type: string - type: array - x-kubernetes-list-type: set - type: object - v1alpha1.StorageVersion: - description: Storage version of a specific resource. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: "{}" - status: - commonEncodingVersion: commonEncodingVersion - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - storageVersions: - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - servedVersions: - - servedVersions - - servedVersions - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - servedVersions: - - servedVersions - - servedVersions - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: type: string - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - description: Spec is an empty spec. It is here to comply with Kubernetes - API style. - properties: {} - type: object - status: - $ref: '#/components/schemas/v1alpha1.StorageVersionStatus' - required: - - spec - - status - type: object + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - - group: internal.apiserver.k8s.io - kind: StorageVersion + group: storagemigration.k8s.io + kind: StorageVersionMigration version: v1alpha1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1alpha1.StorageVersionCondition: - description: Describes the state of the storageVersion at a certain point. - example: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - properties: - lastTransitionTime: - description: Last time the condition transitioned from one status to another. - format: date-time + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}/status: + get: + description: read status of the specified StorageVersionMigration + operationId: readStorageVersionMigrationStatus + parameters: + - description: name of the StorageVersionMigration + in: path + name: name + required: true + schema: type: string - message: - description: A human readable message indicating details about the transition. + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - observedGeneration: - description: "If set, this represents the .metadata.generation that the\ - \ condition was set based upon." - format: int64 - type: integer - reason: - description: The reason for the condition's last transition. + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified StorageVersionMigration + operationId: patchStorageVersionMigrationStatus + parameters: + - description: name of the StorageVersionMigration + in: path + name: name + required: true + schema: type: string - status: - description: "Status of the condition, one of True, False, Unknown." + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - type: - description: Type of the condition. + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: type: string - required: - - message - - reason - - status - - type - type: object - v1alpha1.StorageVersionList: - description: A list of StorageVersions. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: "{}" - status: - commonEncodingVersion: commonEncodingVersion - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - storageVersions: - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - servedVersions: - - servedVersions - - servedVersions - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - servedVersions: - - servedVersions - - servedVersions - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: "{}" - status: - commonEncodingVersion: commonEncodingVersion - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - storageVersions: - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - servedVersions: - - servedVersions - - servedVersions - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - servedVersions: - - servedVersions - - servedVersions - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: type: string - items: - description: Items holds a list of StorageVersion - items: - $ref: '#/components/schemas/v1alpha1.StorageVersion' - type: array - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: patch x-kubernetes-group-version-kind: - - group: internal.apiserver.k8s.io - kind: StorageVersionList + group: storagemigration.k8s.io + kind: StorageVersionMigration version: v1alpha1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1alpha1.StorageVersionStatus: - description: API server instances report the versions they can decode and the - version they encode objects to when persisting objects in the backend. - example: - commonEncodingVersion: commonEncodingVersion - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - storageVersions: - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - servedVersions: - - servedVersions - - servedVersions - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - servedVersions: - - servedVersions - - servedVersions - properties: - commonEncodingVersion: - description: "If all API server instances agree on the same encoding storage\ - \ version, then this field is set to that version. Otherwise this field\ - \ is left empty. API servers should finish updating its storageVersionStatus\ - \ entry before serving write operations, so that this field will be in\ - \ sync with the reality." + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace status of the specified StorageVersionMigration + operationId: replaceStorageVersionMigrationStatus + parameters: + - description: name of the StorageVersionMigration + in: path + name: name + required: true + schema: type: string - conditions: - description: The latest available observations of the storageVersion's state. - items: - $ref: '#/components/schemas/v1alpha1.StorageVersionCondition' - type: array - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - storageVersions: - description: The reported versions per API server instance. - items: - $ref: '#/components/schemas/v1alpha1.ServerStorageVersion' - type: array - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - apiServerID - type: object - v1.ControllerRevision: - description: "ControllerRevision implements an immutable snapshot of state data.\ - \ Clients are responsible for serializing and deserializing the objects that\ - \ contain their internal state. Once a ControllerRevision has been successfully\ - \ created, it can not be updated. The API Server will fail validation of all\ - \ requests that attempt to mutate the Data field. ControllerRevisions may,\ - \ however, be deleted. Note that, due to its use by both the DaemonSet and\ - \ StatefulSet controllers for update and rollback, this object is beta. However,\ - \ it may be subject to name and representation changes in future releases,\ - \ and clients should not depend on its stability. It is primarily for internal\ - \ use by controllers." - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - data: "{}" - kind: kind - revision: 0 - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: type: string - data: - description: Data is the serialized representation of the state. - properties: {} - type: object - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - revision: - description: Revision indicates the revision of the state represented by - Data. - format: int64 - type: integer - required: - - revision - type: object + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - - group: apps - kind: ControllerRevision - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.ControllerRevisionList: - description: ControllerRevisionList is a resource containing a list of ControllerRevision - objects. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - data: "{}" - kind: kind - revision: 0 - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - data: "{}" - kind: kind - revision: 0 - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storagemigration.k8s.io/v1alpha1/watch/storageversionmigrations: {} + /apis/storagemigration.k8s.io/v1alpha1/watch/storageversionmigrations/{name}: {} + /logs/: + get: + operationId: logFileListHandler + responses: + "401": + content: {} + description: Unauthorized + tags: + - logs + x-accepts: + - application/json + /logs/{logpath}: + get: + operationId: logFileHandler + parameters: + - description: path to the log + in: path + name: logpath + required: true + schema: type: string - items: - description: Items is the list of ControllerRevisions - items: - $ref: '#/components/schemas/v1.ControllerRevision' - type: array - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + responses: + "401": + content: {} + description: Unauthorized + tags: + - logs + x-accepts: + - application/json + /version/: + get: + description: get the version information for this server + operationId: getCode + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/version.Info' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - version + x-accepts: + - application/json + /apis/{group}/{version}: + get: + description: get available resources + operationId: getAPIResources + parameters: + - description: The custom resource's group name + in: path + name: group + required: true + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: apps - kind: ControllerRevisionList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.DaemonSet: - description: DaemonSet represents the configuration of a daemon set. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 9 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - fsGroup: 7 - fsGroupChangePolicy: fsGroupChangePolicy - seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - runAsUser: 4 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - supplementalGroups: - - 5 - - 5 - supplementalGroupsPolicy: supplementalGroupsPolicy - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulingGates: - - name: name - - name: name - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: - key: null - hostIPC: true - topologySpreadConstraints: - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 3 - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - defaultMode: 5 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - image: - reference: reference - pullPolicy: pullPolicy - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 6 - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 3 - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-accepts: + - application/json + /apis/{group}/{version}/{resource_plural}: + get: + description: list or watch namespace scoped custom objects + operationId: listCustomObjectForAllNamespaces + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: resource_plural + required: true + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored. If the feature gate WatchBookmarks is not enabled\ + \ in apiserver, this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "When specified with a watch call, shows changes that occur after\ + \ that particular version of a resource. Defaults to changes from the beginning\ + \ of history. When specified for list: - if unset, then the result is returned\ + \ from remote storage based on quorum-read flag; - if it's 0, then we simply\ + \ return what we currently have in cache, no guarantee; - if set to non\ + \ zero, then the result is at least as fresh as given rv." + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + type: object + application/json;stream=watch: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-accepts: + - application/json + - application/json;stream=watch + /apis/{group}/{version}/{plural}: + delete: + description: Delete collection of cluster scoped custom objects + operationId: deleteCollectionClusterCustomObject + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy." + in: query + name: propagationPolicy + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/json + get: + description: list or watch cluster scoped custom objects + operationId: listClusterCustomObject + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored. If the feature gate WatchBookmarks is not enabled\ + \ in apiserver, this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "When specified with a watch call, shows changes that occur after\ + \ that particular version of a resource. Defaults to changes from the beginning\ + \ of history. When specified for list: - if unset, then the result is returned\ + \ from remote storage based on quorum-read flag; - if it's 0, then we simply\ + \ return what we currently have in cache, no guarantee; - if set to non\ + \ zero, then the result is at least as fresh as given rv." + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + type: object + application/json;stream=watch: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-accepts: + - application/json + - application/json;stream=watch + post: + description: Creates a cluster scoped Custom object + operationId: createClusterCustomObject + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + type: object + description: The JSON schema of the Resource to create. + required: true + responses: + "201": + content: + application/json: + schema: + type: object + description: Created + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/json + /apis/{group}/{version}/namespaces/{namespace}/{plural}: + delete: + description: Delete collection of namespace scoped custom objects + operationId: deleteCollectionNamespacedCustomObject + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy." + in: query + name: propagationPolicy + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/json + get: + description: list or watch namespace scoped custom objects + operationId: listNamespacedCustomObject + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored. If the feature gate WatchBookmarks is not enabled\ + \ in apiserver, this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "When specified with a watch call, shows changes that occur after\ + \ that particular version of a resource. Defaults to changes from the beginning\ + \ of history. When specified for list: - if unset, then the result is returned\ + \ from remote storage based on quorum-read flag; - if it's 0, then we simply\ + \ return what we currently have in cache, no guarantee; - if set to non\ + \ zero, then the result is at least as fresh as given rv." + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + type: object + application/json;stream=watch: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-accepts: + - application/json + - application/json;stream=watch + post: + description: Creates a namespace scoped Custom object + operationId: createNamespacedCustomObject + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + type: object + description: The JSON schema of the Resource to create. + required: true + responses: + "201": + content: + application/json: + schema: + type: object + description: Created + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/json + /apis/{group}/{version}/{plural}/{name}: + delete: + description: Deletes the specified cluster scoped custom object + operationId: deleteClusterCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom object's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy." + in: query + name: propagationPolicy + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/json + get: + description: Returns a cluster scoped custom object + operationId: getClusterCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom object's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + type: object + description: A single Resource + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-accepts: + - application/json + patch: + description: patch the specified cluster scoped custom object + operationId: patchClusterCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom object's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + type: object + description: The JSON schema of the Resource to patch. + required: true + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/json + put: + description: replace the specified cluster scoped custom object + operationId: replaceClusterCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom object's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + type: object + description: The JSON schema of the Resource to replace. + required: true + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/json + /apis/{group}/{version}/{plural}/{name}/status: + get: + description: read status of the specified cluster scoped custom object + operationId: getClusterCustomObjectStatus + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified cluster scoped custom + object + operationId: patchClusterCustomObjectStatus + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + description: The JSON schema of the Resource to patch. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace status of the cluster scoped specified custom object + operationId: replaceClusterCustomObjectStatus + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "201": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: Created + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/{group}/{version}/{plural}/{name}/scale: + get: + description: read scale of the specified custom object + operationId: getClusterCustomObjectScale + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update scale of the specified cluster scoped custom object + operationId: patchClusterCustomObjectScale + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + description: The JSON schema of the Resource to patch. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace scale of the specified cluster scoped custom object + operationId: replaceClusterCustomObjectScale + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "201": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: Created + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}: + delete: + description: Deletes the specified namespace scoped custom object + operationId: deleteNamespacedCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy." + in: query + name: propagationPolicy + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/json + get: + description: Returns a namespace scoped custom object + operationId: getNamespacedCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + type: object + description: A single Resource + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-accepts: + - application/json + patch: + description: patch the specified namespace scoped custom object + operationId: patchNamespacedCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + type: object + description: The JSON schema of the Resource to patch. + required: true + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/json + put: + description: replace the specified namespace scoped custom object + operationId: replaceNamespacedCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + type: object + description: The JSON schema of the Resource to replace. + required: true + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/json + /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status: + get: + description: read status of the specified namespace scoped custom object + operationId: getNamespacedCustomObjectStatus + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified namespace scoped custom + object + operationId: patchNamespacedCustomObjectStatus + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + description: The JSON schema of the Resource to patch. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace status of the specified namespace scoped custom object + operationId: replaceNamespacedCustomObjectStatus + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "201": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: Created + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale: + get: + description: read scale of the specified namespace scoped custom object + operationId: getNamespacedCustomObjectScale + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update scale of the specified namespace scoped custom + object + operationId: patchNamespacedCustomObjectScale + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + description: The JSON schema of the Resource to patch. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace scale of the specified namespace scoped custom object + operationId: replaceNamespacedCustomObjectScale + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "201": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: Created + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /.well-known/openid-configuration: + get: + description: "get service account issuer OpenID configuration, also known as\ + \ the 'OIDC discovery doc'" + operationId: getServiceAccountIssuerOpenIDConfiguration + responses: + "200": + content: + application/json: + schema: + type: string + description: OK + "401": + content: {} + description: Unauthorized + tags: + - WellKnown + x-accepts: + - application/json + /openid/v1/jwks: + get: + description: get service account issuer OpenID JSON Web Key Set (contains public + token verification keys) + operationId: getServiceAccountIssuerOpenIDKeyset + responses: + "200": + content: + application/jwk-set+json: + schema: + type: string + description: OK + "401": + content: {} + description: Unauthorized + tags: + - openid + x-accepts: + - application/jwk-set+json +components: + schemas: + v1.AuditAnnotation: + description: AuditAnnotation describes how to produce an audit annotation for + an API request. + example: + valueExpression: valueExpression + key: key + properties: + key: + description: |- + key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. + + The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}". + + If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. + + Required. + type: string + valueExpression: + description: |- + valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. + + If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. + + Required. + type: string + required: + - key + - valueExpression + type: object + v1.ExpressionWarning: + description: ExpressionWarning is a warning information that targets a specific + expression. + example: + fieldRef: fieldRef + warning: warning + properties: + fieldRef: + description: "The path to the field that refers the expression. For example,\ + \ the reference to the expression of the first item of validations is\ + \ \"spec.validations[0].expression\"" + type: string + warning: + description: "The content of type checking information in a human-readable\ + \ form. Each line of the warning contains the type that the expression\ + \ is checked against, followed by the type check error from the compiler." + type: string + required: + - fieldRef + - warning + type: object + v1.MatchCondition: + description: MatchCondition represents a condition which must by fulfilled for + a request to be sent to a webhook. + example: + expression: expression + name: name + properties: + expression: + description: |- + Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: + + 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. + See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz + 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the + request resource. + Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ + + Required. + type: string + name: + description: |- + Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') + + Required. + type: string + required: + - expression + - name + type: object + v1.MatchResources: + description: "MatchResources decides whether to run the admission control policy\ + \ on an object based on whether it meets the match criteria. The exclude rules\ + \ take precedence over include rules (if a resource matches both, it is excluded)" + example: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + excludeResourceRules: + description: "ExcludeResourceRules describes what operations on what resources/subresources\ + \ the ValidatingAdmissionPolicy should not care about. The exclude rules\ + \ take precedence over include rules (if a resource matches both, it is\ + \ excluded)" + items: + $ref: '#/components/schemas/v1.NamedRuleWithOperations' + type: array + x-kubernetes-list-type: atomic + matchPolicy: + description: |- + matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. + + Defaults to "Equivalent" + type: string + namespaceSelector: + $ref: '#/components/schemas/v1.LabelSelector' + objectSelector: + $ref: '#/components/schemas/v1.LabelSelector' + resourceRules: + description: ResourceRules describes what operations on what resources/subresources + the ValidatingAdmissionPolicy matches. The policy cares about an operation + if it matches _any_ Rule. + items: + $ref: '#/components/schemas/v1.NamedRuleWithOperations' + type: array + x-kubernetes-list-type: atomic + type: object + x-kubernetes-map-type: atomic + v1.MutatingWebhook: + description: MutatingWebhook describes an admission webhook and the resources + and operations it applies to. + example: + admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + reinvocationPolicy: reinvocationPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 6 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + properties: + admissionReviewVersions: + description: "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`\ + \ versions the Webhook expects. API server will try to use first version\ + \ in the list which it supports. If none of the versions specified in\ + \ this list supported by API server, validation will fail for this object.\ + \ If a persisted webhook configuration specifies allowed versions and\ + \ does not include any versions known to the API Server, calls to the\ + \ webhook will fail and be subject to the failure policy." + items: + type: string + type: array + x-kubernetes-list-type: atomic + clientConfig: + $ref: '#/components/schemas/admissionregistration.v1.WebhookClientConfig' + failurePolicy: + description: FailurePolicy defines how unrecognized errors from the admission + endpoint are handled - allowed values are Ignore or Fail. Defaults to + Fail. + type: string + matchConditions: + description: |- + MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. + + The exact matching logic is (in order): + 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. + 2. If ALL matchConditions evaluate to TRUE, the webhook is called. + 3. If any matchCondition evaluates to an error (but none are FALSE): + - If failurePolicy=Fail, reject the request + - If failurePolicy=Ignore, the error is ignored and the webhook is skipped + items: + $ref: '#/components/schemas/v1.MatchCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + matchPolicy: + description: |- + matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + + Defaults to "Equivalent" + type: string + name: + description: "The name of the admission webhook. Name should be fully qualified,\ + \ e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of\ + \ the webhook, and kubernetes.io is the name of the organization. Required." + type: string + namespaceSelector: + $ref: '#/components/schemas/v1.LabelSelector' + objectSelector: + $ref: '#/components/schemas/v1.LabelSelector' + reinvocationPolicy: + description: |- + reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". + + Never: the webhook will not be called more than once in a single admission evaluation. + + IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. + + Defaults to "Never". + type: string + rules: + description: "Rules describes what operations on what resources/subresources\ + \ the webhook cares about. The webhook cares about an operation if it\ + \ matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks\ + \ and MutatingAdmissionWebhooks from putting the cluster in a state which\ + \ cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks\ + \ and MutatingAdmissionWebhooks are never called on admission requests\ + \ for ValidatingWebhookConfiguration and MutatingWebhookConfiguration\ + \ objects." + items: + $ref: '#/components/schemas/v1.RuleWithOperations' + type: array + x-kubernetes-list-type: atomic + sideEffects: + description: "SideEffects states whether this webhook has side effects.\ + \ Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1\ + \ may also specify Some or Unknown). Webhooks with side effects MUST implement\ + \ a reconciliation system, since a request may be rejected by a future\ + \ step in the admission chain and the side effects therefore need to be\ + \ undone. Requests with the dryRun attribute will be auto-rejected if\ + \ they match a webhook with sideEffects == Unknown or Some." + type: string + timeoutSeconds: + description: "TimeoutSeconds specifies the timeout for this webhook. After\ + \ the timeout passes, the webhook call will be ignored or the API call\ + \ will fail based on the failure policy. The timeout value must be between\ + \ 1 and 30 seconds. Default to 10 seconds." + format: int32 + type: integer + required: + - admissionReviewVersions + - clientConfig + - name + - sideEffects + type: object + v1.MutatingWebhookConfiguration: + description: MutatingWebhookConfiguration describes the configuration of and + admission webhook that accept or reject and may change the object. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + webhooks: + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + reinvocationPolicy: reinvocationPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 6 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + reinvocationPolicy: reinvocationPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 6 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + kind: kind + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + webhooks: + description: Webhooks is a list of webhooks and the affected resources and + operations. + items: + $ref: '#/components/schemas/v1.MutatingWebhook' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: MutatingWebhookConfiguration + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.MutatingWebhookConfigurationList: + description: MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + webhooks: + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + reinvocationPolicy: reinvocationPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 6 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + reinvocationPolicy: reinvocationPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 6 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + kind: kind + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + webhooks: + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + reinvocationPolicy: reinvocationPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 6 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + reinvocationPolicy: reinvocationPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 6 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + kind: kind + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: List of MutatingWebhookConfiguration. + items: + $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: MutatingWebhookConfigurationList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.NamedRuleWithOperations: + description: NamedRuleWithOperations is a tuple of Operations and Resources + with ResourceNames. + example: + resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + properties: + apiGroups: + description: "APIGroups is the API groups the resources belong to. '*' is\ + \ all groups. If '*' is present, the length of the slice must be one.\ + \ Required." + items: + type: string + type: array + x-kubernetes-list-type: atomic + apiVersions: + description: "APIVersions is the API versions the resources belong to. '*'\ + \ is all versions. If '*' is present, the length of the slice must be\ + \ one. Required." + items: + type: string + type: array + x-kubernetes-list-type: atomic + operations: + description: "Operations is the operations the admission hook cares about\ + \ - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and\ + \ any future admission operations that are added. If '*' is present, the\ + \ length of the slice must be one. Required." + items: + type: string + type: array + x-kubernetes-list-type: atomic + resourceNames: + description: ResourceNames is an optional white list of names that the rule + applies to. An empty set means that everything is allowed. + items: + type: string + type: array + x-kubernetes-list-type: atomic + resources: + description: |- + Resources is a list of resources this rule applies to. + + For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + + If wildcard is present, the validation rule will ensure resources do not overlap with each other. + + Depending on the enclosing object, subresources might not be allowed. Required. + items: + type: string + type: array + x-kubernetes-list-type: atomic + scope: + description: "scope specifies the scope of this rule. Valid values are \"\ + Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped\ + \ resources will match this rule. Namespace API objects are cluster-scoped.\ + \ \"Namespaced\" means that only namespaced resources will match this\ + \ rule. \"*\" means that there are no scope restrictions. Subresources\ + \ match the scope of their parent resource. Default is \"*\"." + type: string + type: object + x-kubernetes-map-type: atomic + v1.ParamKind: + description: ParamKind is a tuple of Group Kind and Version. + example: + apiVersion: apiVersion + kind: kind + properties: + apiVersion: + description: APIVersion is the API group version the resources belong to. + In format of "group/version". Required. + type: string + kind: + description: Kind is the API kind the resources belong to. Required. + type: string + type: object + x-kubernetes-map-type: atomic + v1.ParamRef: + description: ParamRef describes how to locate the params to be used as input + to expressions of rules applied by a policy binding. + example: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + properties: + name: + description: |- + name is the name of the resource being referenced. + + One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. + + A single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped. + type: string + namespace: + description: |- + namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. + + A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. + + - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. + + - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. + type: string + parameterNotFoundAction: + description: |- + `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. + + Allowed values are `Allow` or `Deny` + + Required + type: string + selector: + $ref: '#/components/schemas/v1.LabelSelector' + type: object + x-kubernetes-map-type: atomic + v1.RuleWithOperations: + description: RuleWithOperations is a tuple of Operations and Resources. It is + recommended to make sure that all the tuple expansions are valid. + example: + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + properties: + apiGroups: + description: "APIGroups is the API groups the resources belong to. '*' is\ + \ all groups. If '*' is present, the length of the slice must be one.\ + \ Required." + items: + type: string + type: array + x-kubernetes-list-type: atomic + apiVersions: + description: "APIVersions is the API versions the resources belong to. '*'\ + \ is all versions. If '*' is present, the length of the slice must be\ + \ one. Required." + items: + type: string + type: array + x-kubernetes-list-type: atomic + operations: + description: "Operations is the operations the admission hook cares about\ + \ - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and\ + \ any future admission operations that are added. If '*' is present, the\ + \ length of the slice must be one. Required." + items: + type: string + type: array + x-kubernetes-list-type: atomic + resources: + description: |- + Resources is a list of resources this rule applies to. + + For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + + If wildcard is present, the validation rule will ensure resources do not overlap with each other. + + Depending on the enclosing object, subresources might not be allowed. Required. + items: + type: string + type: array + x-kubernetes-list-type: atomic + scope: + description: "scope specifies the scope of this rule. Valid values are \"\ + Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped\ + \ resources will match this rule. Namespace API objects are cluster-scoped.\ + \ \"Namespaced\" means that only namespaced resources will match this\ + \ rule. \"*\" means that there are no scope restrictions. Subresources\ + \ match the scope of their parent resource. Default is \"*\"." + type: string + type: object + admissionregistration.v1.ServiceReference: + description: ServiceReference holds a reference to Service.legacy.k8s.io + example: + path: path + port: 0 + name: name + namespace: namespace + properties: + name: + description: '`name` is the name of the service. Required' + type: string + namespace: + description: '`namespace` is the namespace of the service. Required' + type: string + path: + description: '`path` is an optional URL path which will be sent in any request + to this service.' + type: string + port: + description: "If specified, the port on the service that hosting webhook.\ + \ Default to 443 for backward compatibility. `port` should be a valid\ + \ port number (1-65535, inclusive)." + format: int32 + type: integer + required: + - name + - namespace + type: object + v1.TypeChecking: + description: TypeChecking contains results of type checking the expressions + in the ValidatingAdmissionPolicy + example: + expressionWarnings: + - fieldRef: fieldRef + warning: warning + - fieldRef: fieldRef + warning: warning + properties: + expressionWarnings: + description: The type checking warnings for each expression. + items: + $ref: '#/components/schemas/v1.ExpressionWarning' + type: array + x-kubernetes-list-type: atomic + type: object + v1.ValidatingAdmissionPolicy: + description: ValidatingAdmissionPolicy describes the definition of an admission + validation policy that accepts or rejects an object without changing it. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + variables: + - expression: expression + name: name + - expression: expression + name: name + paramKind: + apiVersion: apiVersion + kind: kind + auditAnnotations: + - valueExpression: valueExpression + key: key + - valueExpression: valueExpression + key: key + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validations: + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + failurePolicy: failurePolicy + status: + typeChecking: + expressionWarnings: + - fieldRef: fieldRef + warning: warning + - fieldRef: fieldRef + warning: warning + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + observedGeneration: 0 + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicySpec' + status: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyStatus' + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicy + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ValidatingAdmissionPolicyBinding: + description: |- + ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. + + For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. + + The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validationActions: + - validationActions + - validationActions + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingSpec' + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicyBinding + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ValidatingAdmissionPolicyBindingList: + description: ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validationActions: + - validationActions + - validationActions + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validationActions: + - validationActions + - validationActions + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: List of PolicyBinding. + items: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicyBindingList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.ValidatingAdmissionPolicyBindingSpec: + description: ValidatingAdmissionPolicyBindingSpec is the specification of the + ValidatingAdmissionPolicyBinding. + example: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validationActions: + - validationActions + - validationActions + properties: + matchResources: + $ref: '#/components/schemas/v1.MatchResources' + paramRef: + $ref: '#/components/schemas/v1.ParamRef' + policyName: + description: "PolicyName references a ValidatingAdmissionPolicy name which\ + \ the ValidatingAdmissionPolicyBinding binds to. If the referenced resource\ + \ does not exist, this binding is considered invalid and will be ignored\ + \ Required." + type: string + validationActions: + description: |- + validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. + + Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. + + validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. + + The supported actions values are: + + "Deny" specifies that a validation failure results in a denied request. + + "Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. + + "Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]"` + + Clients should expect to handle additional values by ignoring any values not recognized. + + "Deny" and "Warn" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. + + Required. + items: + type: string + type: array + x-kubernetes-list-type: set + type: object + v1.ValidatingAdmissionPolicyList: + description: ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + variables: + - expression: expression + name: name + - expression: expression + name: name + paramKind: + apiVersion: apiVersion + kind: kind + auditAnnotations: + - valueExpression: valueExpression + key: key + - valueExpression: valueExpression + key: key + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validations: + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + failurePolicy: failurePolicy + status: + typeChecking: + expressionWarnings: + - fieldRef: fieldRef + warning: warning + - fieldRef: fieldRef + warning: warning + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + observedGeneration: 0 + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + variables: + - expression: expression + name: name + - expression: expression + name: name + paramKind: + apiVersion: apiVersion + kind: kind + auditAnnotations: + - valueExpression: valueExpression + key: key + - valueExpression: valueExpression + key: key + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validations: + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + failurePolicy: failurePolicy + status: + typeChecking: + expressionWarnings: + - fieldRef: fieldRef + warning: warning + - fieldRef: fieldRef + warning: warning + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + observedGeneration: 0 + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: List of ValidatingAdmissionPolicy. + items: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicyList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.ValidatingAdmissionPolicySpec: + description: ValidatingAdmissionPolicySpec is the specification of the desired + behavior of the AdmissionPolicy. + example: + variables: + - expression: expression + name: name + - expression: expression + name: name + paramKind: + apiVersion: apiVersion + kind: kind + auditAnnotations: + - valueExpression: valueExpression + key: key + - valueExpression: valueExpression + key: key + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validations: + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + failurePolicy: failurePolicy + properties: + auditAnnotations: + description: auditAnnotations contains CEL expressions which are used to + produce audit annotations for the audit event of the API request. validations + and auditAnnotations may not both be empty; a least one of validations + or auditAnnotations is required. + items: + $ref: '#/components/schemas/v1.AuditAnnotation' + type: array + x-kubernetes-list-type: atomic + failurePolicy: + description: |- + failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. + + A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. + + failurePolicy does not define how validations that evaluate to false are handled. + + When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. + + Allowed values are Ignore or Fail. Defaults to Fail. + type: string + matchConditions: + description: |- + MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. + + If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. + + The exact matching logic is (in order): + 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. + 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. + 3. If any matchCondition evaluates to an error (but none are FALSE): + - If failurePolicy=Fail, reject the request + - If failurePolicy=Ignore, the policy is skipped + items: + $ref: '#/components/schemas/v1.MatchCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + matchConstraints: + $ref: '#/components/schemas/v1.MatchResources' + paramKind: + $ref: '#/components/schemas/v1.ParamKind' + validations: + description: Validations contain CEL expressions which is used to apply + the validation. Validations and AuditAnnotations may not both be empty; + a minimum of one Validations or AuditAnnotations is required. + items: + $ref: '#/components/schemas/v1.Validation' + type: array + x-kubernetes-list-type: atomic + variables: + description: |- + Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. + + The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. + items: + $ref: '#/components/schemas/v1.Variable' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + type: object + v1.ValidatingAdmissionPolicyStatus: + description: ValidatingAdmissionPolicyStatus represents the status of an admission + validation policy. + example: + typeChecking: + expressionWarnings: + - fieldRef: fieldRef + warning: warning + - fieldRef: fieldRef + warning: warning + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + observedGeneration: 0 + properties: + conditions: + description: The conditions represent the latest available observations + of a policy's current state. + items: + $ref: '#/components/schemas/v1.Condition' + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + observedGeneration: + description: The generation observed by the controller. + format: int64 + type: integer + typeChecking: + $ref: '#/components/schemas/v1.TypeChecking' + type: object + v1.ValidatingWebhook: + description: ValidatingWebhook describes an admission webhook and the resources + and operations it applies to. + example: + admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 0 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + properties: + admissionReviewVersions: + description: "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`\ + \ versions the Webhook expects. API server will try to use first version\ + \ in the list which it supports. If none of the versions specified in\ + \ this list supported by API server, validation will fail for this object.\ + \ If a persisted webhook configuration specifies allowed versions and\ + \ does not include any versions known to the API Server, calls to the\ + \ webhook will fail and be subject to the failure policy." + items: + type: string + type: array + x-kubernetes-list-type: atomic + clientConfig: + $ref: '#/components/schemas/admissionregistration.v1.WebhookClientConfig' + failurePolicy: + description: FailurePolicy defines how unrecognized errors from the admission + endpoint are handled - allowed values are Ignore or Fail. Defaults to + Fail. + type: string + matchConditions: + description: |- + MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. + + The exact matching logic is (in order): + 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. + 2. If ALL matchConditions evaluate to TRUE, the webhook is called. + 3. If any matchCondition evaluates to an error (but none are FALSE): + - If failurePolicy=Fail, reject the request + - If failurePolicy=Ignore, the error is ignored and the webhook is skipped + items: + $ref: '#/components/schemas/v1.MatchCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + matchPolicy: + description: |- + matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + + Defaults to "Equivalent" + type: string + name: + description: "The name of the admission webhook. Name should be fully qualified,\ + \ e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of\ + \ the webhook, and kubernetes.io is the name of the organization. Required." + type: string + namespaceSelector: + $ref: '#/components/schemas/v1.LabelSelector' + objectSelector: + $ref: '#/components/schemas/v1.LabelSelector' + rules: + description: "Rules describes what operations on what resources/subresources\ + \ the webhook cares about. The webhook cares about an operation if it\ + \ matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks\ + \ and MutatingAdmissionWebhooks from putting the cluster in a state which\ + \ cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks\ + \ and MutatingAdmissionWebhooks are never called on admission requests\ + \ for ValidatingWebhookConfiguration and MutatingWebhookConfiguration\ + \ objects." + items: + $ref: '#/components/schemas/v1.RuleWithOperations' + type: array + x-kubernetes-list-type: atomic + sideEffects: + description: "SideEffects states whether this webhook has side effects.\ + \ Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1\ + \ may also specify Some or Unknown). Webhooks with side effects MUST implement\ + \ a reconciliation system, since a request may be rejected by a future\ + \ step in the admission chain and the side effects therefore need to be\ + \ undone. Requests with the dryRun attribute will be auto-rejected if\ + \ they match a webhook with sideEffects == Unknown or Some." + type: string + timeoutSeconds: + description: "TimeoutSeconds specifies the timeout for this webhook. After\ + \ the timeout passes, the webhook call will be ignored or the API call\ + \ will fail based on the failure policy. The timeout value must be between\ + \ 1 and 30 seconds. Default to 10 seconds." + format: int32 + type: integer + required: + - admissionReviewVersions + - clientConfig + - name + - sideEffects + type: object + v1.ValidatingWebhookConfiguration: + description: ValidatingWebhookConfiguration describes the configuration of and + admission webhook that accept or reject and object without changing it. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + webhooks: + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 0 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 0 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + kind: kind + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + webhooks: + description: Webhooks is a list of webhooks and the affected resources and + operations. + items: + $ref: '#/components/schemas/v1.ValidatingWebhook' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: ValidatingWebhookConfiguration + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ValidatingWebhookConfigurationList: + description: ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + webhooks: + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 0 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 0 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + kind: kind + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + webhooks: + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 0 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 0 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + kind: kind + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: List of ValidatingWebhookConfiguration. + items: + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: ValidatingWebhookConfigurationList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.Validation: + description: Validation specifies the CEL expression which is used to apply + the validation. + example: + reason: reason + expression: expression + messageExpression: messageExpression + message: message + properties: + expression: + description: "Expression represents the expression which will be evaluated\ + \ by CEL. ref: https://github.com/google/cel-spec CEL expressions have\ + \ access to the contents of the API request/response, organized into CEL\ + \ variables as well as some other useful variables:\n\n- 'object' - The\ + \ object from the incoming request. The value is null for DELETE requests.\ + \ - 'oldObject' - The existing object. The value is null for CREATE requests.\ + \ - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).\ + \ - 'params' - Parameter resource referred to by the policy binding being\ + \ evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject'\ + \ - The namespace object that the incoming object belongs to. The value\ + \ is null for cluster-scoped resources. - 'variables' - Map of composited\ + \ variables, from its name to its lazily evaluated value.\n For example,\ + \ a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer'\ + \ - A CEL Authorizer. May be used to perform authorization checks for\ + \ the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n\ + - 'authorizer.requestResource' - A CEL ResourceCheck constructed from\ + \ the 'authorizer' and configured with the\n request resource.\n\nThe\ + \ `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are\ + \ always accessible from the root of the object. No other metadata properties\ + \ are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*`\ + \ are accessible. Accessible property names are escaped according to the\ + \ following rules when accessed in the expression: - '__' escapes to '__underscores__'\ + \ - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes\ + \ to '__slash__' - Property names that exactly match a CEL RESERVED keyword\ + \ escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\"\ + , \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\"\ + , \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"\ + package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing\ + \ a property named \"namespace\": {\"Expression\": \"object.__namespace__\ + \ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\"\ + : \"object.x__dash__prop > 0\"}\n - Expression accessing a property named\ + \ \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"\ + }\n\nEquality on arrays with list type of 'set' or 'map' ignores element\ + \ order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type\ + \ use the semantics of the list type:\n - 'set': `X + Y` performs a union\ + \ where the array positions of all elements in `X` are preserved and\n\ + \ non-intersecting elements in `Y` are appended, retaining their partial\ + \ order.\n - 'map': `X + Y` performs a merge where the array positions\ + \ of all keys in `X` are preserved but the values\n are overwritten\ + \ by values in `Y` when the key sets of `X` and `Y` intersect. Elements\ + \ in `Y` with\n non-intersecting keys are appended, retaining their\ + \ partial order.\nRequired." + type: string + message: + description: "Message represents the message displayed when validation fails.\ + \ The message is required if the Expression contains line breaks. The\ + \ message must not contain line breaks. If unset, the message is \"failed\ + \ rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\"\ + \ If the Expression contains line breaks. Message is required. The message\ + \ must not contain line breaks. If unset, the message is \"failed Expression:\ + \ {Expression}\"." + type: string + messageExpression: + description: "messageExpression declares a CEL expression that evaluates\ + \ to the validation failure message that is returned when this rule fails.\ + \ Since messageExpression is used as a failure message, it must evaluate\ + \ to a string. If both message and messageExpression are present on a\ + \ validation, then messageExpression will be used if validation fails.\ + \ If messageExpression results in a runtime error, the runtime error is\ + \ logged, and the validation failure message is produced as if the messageExpression\ + \ field were unset. If messageExpression evaluates to an empty string,\ + \ a string with only spaces, or a string that contains line breaks, then\ + \ the validation failure message will also be produced as if the messageExpression\ + \ field were unset, and the fact that messageExpression produced an empty\ + \ string/string with only spaces/string with line breaks will be logged.\ + \ messageExpression has access to all the same variables as the `expression`\ + \ except for 'authorizer' and 'authorizer.requestResource'. Example: \"\ + object.x must be less than max (\"+string(params.max)+\")\"" + type: string + reason: + description: "Reason represents a machine-readable description of why this\ + \ validation failed. If this is the first validation in the list to fail,\ + \ this reason, as well as the corresponding HTTP response code, are used\ + \ in the HTTP response to the client. The currently supported reasons\ + \ are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\"\ + . If not set, StatusReasonInvalid is used in the response to the client." + type: string + required: + - expression + type: object + v1.Variable: + description: Variable is the definition of a variable that is used for composition. + A variable is defined as a named expression. + example: + expression: expression + name: name + properties: + expression: + description: Expression is the expression that will be evaluated as the + value of the variable. The CEL expression has access to the same identifiers + as the CEL expressions in Validation. + type: string + name: + description: "Name is the name of the variable. The name must be a valid\ + \ CEL identifier and unique among all variables. The variable can be accessed\ + \ in other expressions through `variables` For example, if name is \"\ + foo\", the variable will be available as `variables.foo`" + type: string + required: + - expression + - name + type: object + x-kubernetes-map-type: atomic + admissionregistration.v1.WebhookClientConfig: + description: WebhookClientConfig contains the information to make a TLS connection + with the webhook + example: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + properties: + caBundle: + description: "`caBundle` is a PEM encoded CA bundle which will be used to\ + \ validate the webhook's server certificate. If unspecified, system trust\ + \ roots on the apiserver are used." + format: byte + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" + type: string + service: + $ref: '#/components/schemas/admissionregistration.v1.ServiceReference' + url: + description: |- + `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + type: string + type: object + v1alpha1.ApplyConfiguration: + description: ApplyConfiguration defines the desired configuration values of + an object. + example: + expression: expression + properties: + expression: + description: "expression will be evaluated by CEL to create an apply configuration.\ + \ ref: https://github.com/google/cel-spec\n\nApply configurations are\ + \ declared in CEL using object initialization. For example, this CEL expression\ + \ returns an apply configuration to set a single field:\n\n\tObject{\n\ + \t spec: Object.spec{\n\t serviceAccountName: \"example\"\n\t }\n\ + \t}\n\nApply configurations may not modify atomic structs, maps or arrays\ + \ due to the risk of accidental deletion of values not included in the\ + \ apply configuration.\n\nCEL expressions have access to the object types\ + \ needed to create apply configurations:\n\n- 'Object' - CEL type of the\ + \ resource object. - 'Object.' - CEL type of object field (such\ + \ as 'Object.spec') - 'Object.....`\ + \ - CEL type of nested field (such as 'Object.spec.containers')\n\nCEL\ + \ expressions have access to the contents of the API request, organized\ + \ into CEL variables as well as some other useful variables:\n\n- 'object'\ + \ - The object from the incoming request. The value is null for DELETE\ + \ requests. - 'oldObject' - The existing object. The value is null for\ + \ CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).\ + \ - 'params' - Parameter resource referred to by the policy binding being\ + \ evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject'\ + \ - The namespace object that the incoming object belongs to. The value\ + \ is null for cluster-scoped resources. - 'variables' - Map of composited\ + \ variables, from its name to its lazily evaluated value.\n For example,\ + \ a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer'\ + \ - A CEL Authorizer. May be used to perform authorization checks for\ + \ the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n\ + - 'authorizer.requestResource' - A CEL ResourceCheck constructed from\ + \ the 'authorizer' and configured with the\n request resource.\n\nThe\ + \ `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are\ + \ always accessible from the root of the object. No other metadata properties\ + \ are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*`\ + \ are accessible. Required." + type: string + type: object + v1alpha1.JSONPatch: + description: JSONPatch defines a JSON Patch. + example: + expression: expression + properties: + expression: + description: "expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/).\ + \ ref: https://github.com/google/cel-spec\n\nexpression must return an\ + \ array of JSONPatch values.\n\nFor example, this CEL expression returns\ + \ a JSON patch to conditionally modify a value:\n\n\t [\n\t JSONPatch{op:\ + \ \"test\", path: \"/spec/example\", value: \"Red\"},\n\t JSONPatch{op:\ + \ \"replace\", path: \"/spec/example\", value: \"Green\"}\n\t ]\n\nTo\ + \ define an object for the patch value, use Object types. For example:\n\ + \n\t [\n\t JSONPatch{\n\t op: \"add\",\n\t path: \"/spec/selector\"\ + ,\n\t value: Object.spec.selector{matchLabels: {\"environment\":\ + \ \"test\"}}\n\t }\n\t ]\n\nTo use strings containing '/' and '~'\ + \ as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example:\n\n\ + \t [\n\t JSONPatch{\n\t op: \"add\",\n\t path: \"/metadata/labels/\"\ + \ + jsonpatch.escapeKey(\"example.com/environment\"),\n\t value:\ + \ \"test\"\n\t },\n\t ]\n\nCEL expressions have access to the types\ + \ needed to create JSON patches and objects:\n\n- 'JSONPatch' - CEL type\ + \ of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path'\ + \ and 'value'.\n See [JSON patch](https://jsonpatch.com/) for more details.\ + \ The 'value' field may be set to any of: string,\n integer, array, map\ + \ or object. If set, the 'path' and 'from' fields must be set to a\n\ + \ [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string,\ + \ where the 'jsonpatch.escapeKey()' CEL\n function may be used to escape\ + \ path keys containing '/' and '~'.\n- 'Object' - CEL type of the resource\ + \ object. - 'Object.' - CEL type of object field (such as 'Object.spec')\ + \ - 'Object.....` - CEL type of nested\ + \ field (such as 'Object.spec.containers')\n\nCEL expressions have access\ + \ to the contents of the API request, organized into CEL variables as\ + \ well as some other useful variables:\n\n- 'object' - The object from\ + \ the incoming request. The value is null for DELETE requests. - 'oldObject'\ + \ - The existing object. The value is null for CREATE requests. - 'request'\ + \ - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).\ + \ - 'params' - Parameter resource referred to by the policy binding being\ + \ evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject'\ + \ - The namespace object that the incoming object belongs to. The value\ + \ is null for cluster-scoped resources. - 'variables' - Map of composited\ + \ variables, from its name to its lazily evaluated value.\n For example,\ + \ a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer'\ + \ - A CEL Authorizer. May be used to perform authorization checks for\ + \ the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n\ + - 'authorizer.requestResource' - A CEL ResourceCheck constructed from\ + \ the 'authorizer' and configured with the\n request resource.\n\nCEL\ + \ expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries)\ + \ as well as:\n\n- 'jsonpatch.escapeKey' - Performs JSONPatch key escaping.\ + \ '~' and '/' are escaped as '~0' and `~1' respectively).\n\nOnly property\ + \ names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required." + type: string + type: object + v1alpha1.MatchCondition: + example: + expression: expression + name: name + properties: + expression: + description: |- + Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: + + 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. + See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz + 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the + request resource. + Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ + + Required. + type: string + name: + description: |- + Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') + + Required. + type: string + required: + - expression + - name + type: object + v1alpha1.MatchResources: + description: "MatchResources decides whether to run the admission control policy\ + \ on an object based on whether it meets the match criteria. The exclude rules\ + \ take precedence over include rules (if a resource matches both, it is excluded)" + example: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + excludeResourceRules: + description: "ExcludeResourceRules describes what operations on what resources/subresources\ + \ the policy should not care about. The exclude rules take precedence\ + \ over include rules (if a resource matches both, it is excluded)" + items: + $ref: '#/components/schemas/v1alpha1.NamedRuleWithOperations' + type: array + x-kubernetes-list-type: atomic + matchPolicy: + description: |- + matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, the admission policy does not consider requests to apps/v1beta1 or extensions/v1beta1 API groups. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, the admission policy **does** consider requests made to apps/v1beta1 or extensions/v1beta1 API groups. The API server translates the request to a matched resource API if necessary. + + Defaults to "Equivalent" + type: string + namespaceSelector: + $ref: '#/components/schemas/v1.LabelSelector' + objectSelector: + $ref: '#/components/schemas/v1.LabelSelector' + resourceRules: + description: ResourceRules describes what operations on what resources/subresources + the admission policy matches. The policy cares about an operation if it + matches _any_ Rule. + items: + $ref: '#/components/schemas/v1alpha1.NamedRuleWithOperations' + type: array + x-kubernetes-list-type: atomic + type: object + x-kubernetes-map-type: atomic + v1alpha1.MutatingAdmissionPolicy: + description: MutatingAdmissionPolicy describes the definition of an admission + mutation policy that mutates the object coming into admission chain. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + reinvocationPolicy: reinvocationPolicy + variables: + - expression: expression + name: name + - expression: expression + name: name + mutations: + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + paramKind: + apiVersion: apiVersion + kind: kind + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicySpec' + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicy + version: v1alpha1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1alpha1.MutatingAdmissionPolicyBinding: + description: |- + MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters. + + For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). + + Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingSpec' + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicyBinding + version: v1alpha1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1alpha1.MutatingAdmissionPolicyBindingList: + description: MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: List of PolicyBinding. + items: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicyBindingList + version: v1alpha1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1alpha1.MutatingAdmissionPolicyBindingSpec: + description: MutatingAdmissionPolicyBindingSpec is the specification of the + MutatingAdmissionPolicyBinding. + example: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + matchResources: + $ref: '#/components/schemas/v1alpha1.MatchResources' + paramRef: + $ref: '#/components/schemas/v1alpha1.ParamRef' + policyName: + description: "policyName references a MutatingAdmissionPolicy name which\ + \ the MutatingAdmissionPolicyBinding binds to. If the referenced resource\ + \ does not exist, this binding is considered invalid and will be ignored\ + \ Required." + type: string + type: object + v1alpha1.MutatingAdmissionPolicyList: + description: MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + reinvocationPolicy: reinvocationPolicy + variables: + - expression: expression + name: name + - expression: expression + name: name + mutations: + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + paramKind: + apiVersion: apiVersion + kind: kind + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + reinvocationPolicy: reinvocationPolicy + variables: + - expression: expression + name: name + - expression: expression + name: name + mutations: + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + paramKind: + apiVersion: apiVersion + kind: kind + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: List of ValidatingAdmissionPolicy. + items: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicyList + version: v1alpha1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1alpha1.MutatingAdmissionPolicySpec: + description: MutatingAdmissionPolicySpec is the specification of the desired + behavior of the admission policy. + example: + reinvocationPolicy: reinvocationPolicy + variables: + - expression: expression + name: name + - expression: expression + name: name + mutations: + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + paramKind: + apiVersion: apiVersion + kind: kind + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + properties: + failurePolicy: + description: |- + failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. + + A policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource. + + failurePolicy does not define how validations that evaluate to false are handled. + + Allowed values are Ignore or Fail. Defaults to Fail. + type: string + matchConditions: + description: |- + matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. + + If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. + + The exact matching logic is (in order): + 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. + 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. + 3. If any matchCondition evaluates to an error (but none are FALSE): + - If failurePolicy=Fail, reject the request + - If failurePolicy=Ignore, the policy is skipped + items: + $ref: '#/components/schemas/v1alpha1.MatchCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + matchConstraints: + $ref: '#/components/schemas/v1alpha1.MatchResources' + mutations: + description: "mutations contain operations to perform on matching objects.\ + \ mutations may not be empty; a minimum of one mutation is required. mutations\ + \ are evaluated in order, and are reinvoked according to the reinvocationPolicy.\ + \ The mutations of a policy are invoked for each binding of this policy\ + \ and reinvocation of mutations occurs on a per binding basis." + items: + $ref: '#/components/schemas/v1alpha1.Mutation' + type: array + x-kubernetes-list-type: atomic + paramKind: + $ref: '#/components/schemas/v1alpha1.ParamKind' + reinvocationPolicy: + description: |- + reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". + + Never: These mutations will not be called more than once per binding in a single admission evaluation. + + IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required. + type: string + variables: + description: |- + variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except matchConditions because matchConditions are evaluated before the rest of the policy. + + The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, variables must be sorted by the order of first appearance and acyclic. + items: + $ref: '#/components/schemas/v1alpha1.Variable' + type: array + x-kubernetes-list-type: atomic + type: object + v1alpha1.Mutation: + description: Mutation specifies the CEL expression which is used to apply the + Mutation. + example: + patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + properties: + applyConfiguration: + $ref: '#/components/schemas/v1alpha1.ApplyConfiguration' + jsonPatch: + $ref: '#/components/schemas/v1alpha1.JSONPatch' + patchType: + description: patchType indicates the patch strategy used. Allowed values + are "ApplyConfiguration" and "JSONPatch". Required. + type: string + required: + - patchType + type: object + v1alpha1.NamedRuleWithOperations: + description: NamedRuleWithOperations is a tuple of Operations and Resources + with ResourceNames. + example: + resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + properties: + apiGroups: + description: "APIGroups is the API groups the resources belong to. '*' is\ + \ all groups. If '*' is present, the length of the slice must be one.\ + \ Required." + items: + type: string + type: array + x-kubernetes-list-type: atomic + apiVersions: + description: "APIVersions is the API versions the resources belong to. '*'\ + \ is all versions. If '*' is present, the length of the slice must be\ + \ one. Required." + items: + type: string + type: array + x-kubernetes-list-type: atomic + operations: + description: "Operations is the operations the admission hook cares about\ + \ - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and\ + \ any future admission operations that are added. If '*' is present, the\ + \ length of the slice must be one. Required." + items: + type: string + type: array + x-kubernetes-list-type: atomic + resourceNames: + description: ResourceNames is an optional white list of names that the rule + applies to. An empty set means that everything is allowed. + items: + type: string + type: array + x-kubernetes-list-type: atomic + resources: + description: |- + Resources is a list of resources this rule applies to. + + For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + + If wildcard is present, the validation rule will ensure resources do not overlap with each other. + + Depending on the enclosing object, subresources might not be allowed. Required. + items: + type: string + type: array + x-kubernetes-list-type: atomic + scope: + description: "scope specifies the scope of this rule. Valid values are \"\ + Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped\ + \ resources will match this rule. Namespace API objects are cluster-scoped.\ + \ \"Namespaced\" means that only namespaced resources will match this\ + \ rule. \"*\" means that there are no scope restrictions. Subresources\ + \ match the scope of their parent resource. Default is \"*\"." + type: string + type: object + x-kubernetes-map-type: atomic + v1alpha1.ParamKind: + description: ParamKind is a tuple of Group Kind and Version. + example: + apiVersion: apiVersion + kind: kind + properties: + apiVersion: + description: APIVersion is the API group version the resources belong to. + In format of "group/version". Required. + type: string + kind: + description: Kind is the API kind the resources belong to. Required. + type: string + type: object + x-kubernetes-map-type: atomic + v1alpha1.ParamRef: + description: ParamRef describes how to locate the params to be used as input + to expressions of rules applied by a policy binding. + example: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + properties: + name: + description: |- + `name` is the name of the resource being referenced. + + `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. + type: string + namespace: + description: |- + namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. + + A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. + + - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. + + - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. + type: string + parameterNotFoundAction: + description: |- + `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. + + Allowed values are `Allow` or `Deny` Default to `Deny` + type: string + selector: + $ref: '#/components/schemas/v1.LabelSelector' + type: object + x-kubernetes-map-type: atomic + v1alpha1.Variable: + description: Variable is the definition of a variable that is used for composition. + example: + expression: expression + name: name + properties: + expression: + description: Expression is the expression that will be evaluated as the + value of the variable. The CEL expression has access to the same identifiers + as the CEL expressions in Validation. + type: string + name: + description: "Name is the name of the variable. The name must be a valid\ + \ CEL identifier and unique among all variables. The variable can be accessed\ + \ in other expressions through `variables` For example, if name is \"\ + foo\", the variable will be available as `variables.foo`" + type: string + required: + - expression + - name + type: object + v1beta1.AuditAnnotation: + description: AuditAnnotation describes how to produce an audit annotation for + an API request. + example: + valueExpression: valueExpression + key: key + properties: + key: + description: |- + key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. + + The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}". + + If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. + + Required. + type: string + valueExpression: + description: |- + valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. + + If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. + + Required. + type: string + required: + - key + - valueExpression + type: object + v1beta1.ExpressionWarning: + description: ExpressionWarning is a warning information that targets a specific + expression. + example: + fieldRef: fieldRef + warning: warning + properties: + fieldRef: + description: "The path to the field that refers the expression. For example,\ + \ the reference to the expression of the first item of validations is\ + \ \"spec.validations[0].expression\"" + type: string + warning: + description: "The content of type checking information in a human-readable\ + \ form. Each line of the warning contains the type that the expression\ + \ is checked against, followed by the type check error from the compiler." + type: string + required: + - fieldRef + - warning + type: object + v1beta1.MatchCondition: + description: MatchCondition represents a condition which must be fulfilled for + a request to be sent to a webhook. + example: + expression: expression + name: name + properties: + expression: + description: |- + Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: + + 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. + See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz + 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the + request resource. + Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ + + Required. + type: string + name: + description: |- + Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') + + Required. + type: string + required: + - expression + - name + type: object + v1beta1.MatchResources: + description: "MatchResources decides whether to run the admission control policy\ + \ on an object based on whether it meets the match criteria. The exclude rules\ + \ take precedence over include rules (if a resource matches both, it is excluded)" + example: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + excludeResourceRules: + description: "ExcludeResourceRules describes what operations on what resources/subresources\ + \ the ValidatingAdmissionPolicy should not care about. The exclude rules\ + \ take precedence over include rules (if a resource matches both, it is\ + \ excluded)" + items: + $ref: '#/components/schemas/v1beta1.NamedRuleWithOperations' + type: array + x-kubernetes-list-type: atomic + matchPolicy: + description: |- + matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. + + Defaults to "Equivalent" + type: string + namespaceSelector: + $ref: '#/components/schemas/v1.LabelSelector' + objectSelector: + $ref: '#/components/schemas/v1.LabelSelector' + resourceRules: + description: ResourceRules describes what operations on what resources/subresources + the ValidatingAdmissionPolicy matches. The policy cares about an operation + if it matches _any_ Rule. + items: + $ref: '#/components/schemas/v1beta1.NamedRuleWithOperations' + type: array + x-kubernetes-list-type: atomic + type: object + x-kubernetes-map-type: atomic + v1beta1.NamedRuleWithOperations: + description: NamedRuleWithOperations is a tuple of Operations and Resources + with ResourceNames. + example: + resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + properties: + apiGroups: + description: "APIGroups is the API groups the resources belong to. '*' is\ + \ all groups. If '*' is present, the length of the slice must be one.\ + \ Required." + items: + type: string + type: array + x-kubernetes-list-type: atomic + apiVersions: + description: "APIVersions is the API versions the resources belong to. '*'\ + \ is all versions. If '*' is present, the length of the slice must be\ + \ one. Required." + items: + type: string + type: array + x-kubernetes-list-type: atomic + operations: + description: "Operations is the operations the admission hook cares about\ + \ - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and\ + \ any future admission operations that are added. If '*' is present, the\ + \ length of the slice must be one. Required." + items: + type: string + type: array + x-kubernetes-list-type: atomic + resourceNames: + description: ResourceNames is an optional white list of names that the rule + applies to. An empty set means that everything is allowed. + items: + type: string + type: array + x-kubernetes-list-type: atomic + resources: + description: |- + Resources is a list of resources this rule applies to. + + For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + + If wildcard is present, the validation rule will ensure resources do not overlap with each other. + + Depending on the enclosing object, subresources might not be allowed. Required. + items: + type: string + type: array + x-kubernetes-list-type: atomic + scope: + description: "scope specifies the scope of this rule. Valid values are \"\ + Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped\ + \ resources will match this rule. Namespace API objects are cluster-scoped.\ + \ \"Namespaced\" means that only namespaced resources will match this\ + \ rule. \"*\" means that there are no scope restrictions. Subresources\ + \ match the scope of their parent resource. Default is \"*\"." + type: string + type: object + x-kubernetes-map-type: atomic + v1beta1.ParamKind: + description: ParamKind is a tuple of Group Kind and Version. + example: + apiVersion: apiVersion + kind: kind + properties: + apiVersion: + description: APIVersion is the API group version the resources belong to. + In format of "group/version". Required. + type: string + kind: + description: Kind is the API kind the resources belong to. Required. + type: string + type: object + x-kubernetes-map-type: atomic + v1beta1.ParamRef: + description: ParamRef describes how to locate the params to be used as input + to expressions of rules applied by a policy binding. + example: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + properties: + name: + description: |- + name is the name of the resource being referenced. + + One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. + + A single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped. + type: string + namespace: + description: |- + namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. + + A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. + + - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. + + - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. + type: string + parameterNotFoundAction: + description: |- + `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. + + Allowed values are `Allow` or `Deny` + + Required + type: string + selector: + $ref: '#/components/schemas/v1.LabelSelector' + type: object + x-kubernetes-map-type: atomic + v1beta1.TypeChecking: + description: TypeChecking contains results of type checking the expressions + in the ValidatingAdmissionPolicy + example: + expressionWarnings: + - fieldRef: fieldRef + warning: warning + - fieldRef: fieldRef + warning: warning + properties: + expressionWarnings: + description: The type checking warnings for each expression. + items: + $ref: '#/components/schemas/v1beta1.ExpressionWarning' + type: array + x-kubernetes-list-type: atomic + type: object + v1beta1.ValidatingAdmissionPolicy: + description: ValidatingAdmissionPolicy describes the definition of an admission + validation policy that accepts or rejects an object without changing it. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + variables: + - expression: expression + name: name + - expression: expression + name: name + paramKind: + apiVersion: apiVersion + kind: kind + auditAnnotations: + - valueExpression: valueExpression + key: key + - valueExpression: valueExpression + key: key + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validations: + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + failurePolicy: failurePolicy + status: + typeChecking: + expressionWarnings: + - fieldRef: fieldRef + warning: warning + - fieldRef: fieldRef + warning: warning + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + observedGeneration: 0 + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicySpec' + status: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyStatus' + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicy + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1beta1.ValidatingAdmissionPolicyBinding: + description: |- + ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. + + For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. + + The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validationActions: + - validationActions + - validationActions + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingSpec' + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicyBinding + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1beta1.ValidatingAdmissionPolicyBindingList: + description: ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validationActions: + - validationActions + - validationActions + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validationActions: + - validationActions + - validationActions + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: List of PolicyBinding. + items: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicyBindingList + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1beta1.ValidatingAdmissionPolicyBindingSpec: + description: ValidatingAdmissionPolicyBindingSpec is the specification of the + ValidatingAdmissionPolicyBinding. + example: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validationActions: + - validationActions + - validationActions + properties: + matchResources: + $ref: '#/components/schemas/v1beta1.MatchResources' + paramRef: + $ref: '#/components/schemas/v1beta1.ParamRef' + policyName: + description: "PolicyName references a ValidatingAdmissionPolicy name which\ + \ the ValidatingAdmissionPolicyBinding binds to. If the referenced resource\ + \ does not exist, this binding is considered invalid and will be ignored\ + \ Required." + type: string + validationActions: + description: |- + validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. + + Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. + + validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. + + The supported actions values are: + + "Deny" specifies that a validation failure results in a denied request. + + "Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. + + "Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]"` + + Clients should expect to handle additional values by ignoring any values not recognized. + + "Deny" and "Warn" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. + + Required. + items: + type: string + type: array + x-kubernetes-list-type: set + type: object + v1beta1.ValidatingAdmissionPolicyList: + description: ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + variables: + - expression: expression + name: name + - expression: expression + name: name + paramKind: + apiVersion: apiVersion + kind: kind + auditAnnotations: + - valueExpression: valueExpression + key: key + - valueExpression: valueExpression + key: key + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validations: + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + failurePolicy: failurePolicy + status: + typeChecking: + expressionWarnings: + - fieldRef: fieldRef + warning: warning + - fieldRef: fieldRef + warning: warning + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + observedGeneration: 0 + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + variables: + - expression: expression + name: name + - expression: expression + name: name + paramKind: + apiVersion: apiVersion + kind: kind + auditAnnotations: + - valueExpression: valueExpression + key: key + - valueExpression: valueExpression + key: key + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validations: + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + failurePolicy: failurePolicy + status: + typeChecking: + expressionWarnings: + - fieldRef: fieldRef + warning: warning + - fieldRef: fieldRef + warning: warning + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + observedGeneration: 0 + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: List of ValidatingAdmissionPolicy. + items: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicyList + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1beta1.ValidatingAdmissionPolicySpec: + description: ValidatingAdmissionPolicySpec is the specification of the desired + behavior of the AdmissionPolicy. + example: + variables: + - expression: expression + name: name + - expression: expression + name: name + paramKind: + apiVersion: apiVersion + kind: kind + auditAnnotations: + - valueExpression: valueExpression + key: key + - valueExpression: valueExpression + key: key + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validations: + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + failurePolicy: failurePolicy + properties: + auditAnnotations: + description: auditAnnotations contains CEL expressions which are used to + produce audit annotations for the audit event of the API request. validations + and auditAnnotations may not both be empty; a least one of validations + or auditAnnotations is required. + items: + $ref: '#/components/schemas/v1beta1.AuditAnnotation' + type: array + x-kubernetes-list-type: atomic + failurePolicy: + description: |- + failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. + + A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. + + failurePolicy does not define how validations that evaluate to false are handled. + + When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. + + Allowed values are Ignore or Fail. Defaults to Fail. + type: string + matchConditions: + description: |- + MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. + + If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. + + The exact matching logic is (in order): + 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. + 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. + 3. If any matchCondition evaluates to an error (but none are FALSE): + - If failurePolicy=Fail, reject the request + - If failurePolicy=Ignore, the policy is skipped + items: + $ref: '#/components/schemas/v1beta1.MatchCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + matchConstraints: + $ref: '#/components/schemas/v1beta1.MatchResources' + paramKind: + $ref: '#/components/schemas/v1beta1.ParamKind' + validations: + description: Validations contain CEL expressions which is used to apply + the validation. Validations and AuditAnnotations may not both be empty; + a minimum of one Validations or AuditAnnotations is required. + items: + $ref: '#/components/schemas/v1beta1.Validation' + type: array + x-kubernetes-list-type: atomic + variables: + description: |- + Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. + + The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. + items: + $ref: '#/components/schemas/v1beta1.Variable' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + type: object + v1beta1.ValidatingAdmissionPolicyStatus: + description: ValidatingAdmissionPolicyStatus represents the status of an admission + validation policy. + example: + typeChecking: + expressionWarnings: + - fieldRef: fieldRef + warning: warning + - fieldRef: fieldRef + warning: warning + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + observedGeneration: 0 + properties: + conditions: + description: The conditions represent the latest available observations + of a policy's current state. + items: + $ref: '#/components/schemas/v1.Condition' + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + observedGeneration: + description: The generation observed by the controller. + format: int64 + type: integer + typeChecking: + $ref: '#/components/schemas/v1beta1.TypeChecking' + type: object + v1beta1.Validation: + description: Validation specifies the CEL expression which is used to apply + the validation. + example: + reason: reason + expression: expression + messageExpression: messageExpression + message: message + properties: + expression: + description: "Expression represents the expression which will be evaluated\ + \ by CEL. ref: https://github.com/google/cel-spec CEL expressions have\ + \ access to the contents of the API request/response, organized into CEL\ + \ variables as well as some other useful variables:\n\n- 'object' - The\ + \ object from the incoming request. The value is null for DELETE requests.\ + \ - 'oldObject' - The existing object. The value is null for CREATE requests.\ + \ - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).\ + \ - 'params' - Parameter resource referred to by the policy binding being\ + \ evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject'\ + \ - The namespace object that the incoming object belongs to. The value\ + \ is null for cluster-scoped resources. - 'variables' - Map of composited\ + \ variables, from its name to its lazily evaluated value.\n For example,\ + \ a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer'\ + \ - A CEL Authorizer. May be used to perform authorization checks for\ + \ the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n\ + - 'authorizer.requestResource' - A CEL ResourceCheck constructed from\ + \ the 'authorizer' and configured with the\n request resource.\n\nThe\ + \ `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are\ + \ always accessible from the root of the object. No other metadata properties\ + \ are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*`\ + \ are accessible. Accessible property names are escaped according to the\ + \ following rules when accessed in the expression: - '__' escapes to '__underscores__'\ + \ - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes\ + \ to '__slash__' - Property names that exactly match a CEL RESERVED keyword\ + \ escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\"\ + , \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\"\ + , \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"\ + package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing\ + \ a property named \"namespace\": {\"Expression\": \"object.__namespace__\ + \ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\"\ + : \"object.x__dash__prop > 0\"}\n - Expression accessing a property named\ + \ \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"\ + }\n\nEquality on arrays with list type of 'set' or 'map' ignores element\ + \ order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type\ + \ use the semantics of the list type:\n - 'set': `X + Y` performs a union\ + \ where the array positions of all elements in `X` are preserved and\n\ + \ non-intersecting elements in `Y` are appended, retaining their partial\ + \ order.\n - 'map': `X + Y` performs a merge where the array positions\ + \ of all keys in `X` are preserved but the values\n are overwritten\ + \ by values in `Y` when the key sets of `X` and `Y` intersect. Elements\ + \ in `Y` with\n non-intersecting keys are appended, retaining their\ + \ partial order.\nRequired." + type: string + message: + description: "Message represents the message displayed when validation fails.\ + \ The message is required if the Expression contains line breaks. The\ + \ message must not contain line breaks. If unset, the message is \"failed\ + \ rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\"\ + \ If the Expression contains line breaks. Message is required. The message\ + \ must not contain line breaks. If unset, the message is \"failed Expression:\ + \ {Expression}\"." + type: string + messageExpression: + description: "messageExpression declares a CEL expression that evaluates\ + \ to the validation failure message that is returned when this rule fails.\ + \ Since messageExpression is used as a failure message, it must evaluate\ + \ to a string. If both message and messageExpression are present on a\ + \ validation, then messageExpression will be used if validation fails.\ + \ If messageExpression results in a runtime error, the runtime error is\ + \ logged, and the validation failure message is produced as if the messageExpression\ + \ field were unset. If messageExpression evaluates to an empty string,\ + \ a string with only spaces, or a string that contains line breaks, then\ + \ the validation failure message will also be produced as if the messageExpression\ + \ field were unset, and the fact that messageExpression produced an empty\ + \ string/string with only spaces/string with line breaks will be logged.\ + \ messageExpression has access to all the same variables as the `expression`\ + \ except for 'authorizer' and 'authorizer.requestResource'. Example: \"\ + object.x must be less than max (\"+string(params.max)+\")\"" + type: string + reason: + description: "Reason represents a machine-readable description of why this\ + \ validation failed. If this is the first validation in the list to fail,\ + \ this reason, as well as the corresponding HTTP response code, are used\ + \ in the HTTP response to the client. The currently supported reasons\ + \ are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\"\ + . If not set, StatusReasonInvalid is used in the response to the client." + type: string + required: + - expression + type: object + v1beta1.Variable: + description: Variable is the definition of a variable that is used for composition. + A variable is defined as a named expression. + example: + expression: expression + name: name + properties: + expression: + description: Expression is the expression that will be evaluated as the + value of the variable. The CEL expression has access to the same identifiers + as the CEL expressions in Validation. + type: string + name: + description: "Name is the name of the variable. The name must be a valid\ + \ CEL identifier and unique among all variables. The variable can be accessed\ + \ in other expressions through `variables` For example, if name is \"\ + foo\", the variable will be available as `variables.foo`" + type: string + required: + - expression + - name + type: object + x-kubernetes-map-type: atomic + v1alpha1.ServerStorageVersion: + description: An API server instance reports the version it can decode and the + version it encodes objects to when persisting objects in the backend. + example: + apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + servedVersions: + - servedVersions + - servedVersions + properties: + apiServerID: + description: The ID of the reporting API server. + type: string + decodableVersions: + description: The API server can decode objects encoded in these versions. + The encodingVersion must be included in the decodableVersions. + items: + type: string + type: array + x-kubernetes-list-type: set + encodingVersion: + description: "The API server encodes the object to this version when persisting\ + \ it in the backend (e.g., etcd)." + type: string + servedVersions: + description: The API server can serve these versions. DecodableVersions + must include all ServedVersions. + items: + type: string + type: array + x-kubernetes-list-type: set + type: object + v1alpha1.StorageVersion: + description: Storage version of a specific resource. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: "{}" + status: + commonEncodingVersion: commonEncodingVersion + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + storageVersions: + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + servedVersions: + - servedVersions + - servedVersions + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + servedVersions: + - servedVersions + - servedVersions + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + description: Spec is an empty spec. It is here to comply with Kubernetes + API style. + properties: {} + type: object + status: + $ref: '#/components/schemas/v1alpha1.StorageVersionStatus' + required: + - spec + - status + type: object + x-kubernetes-group-version-kind: + - group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1alpha1.StorageVersionCondition: + description: Describes the state of the storageVersion at a certain point. + example: + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + lastTransitionTime: + description: Last time the condition transitioned from one status to another. + format: date-time + type: string + message: + description: A human readable message indicating details about the transition. + type: string + observedGeneration: + description: "If set, this represents the .metadata.generation that the\ + \ condition was set based upon." + format: int64 + type: integer + reason: + description: The reason for the condition's last transition. + type: string + status: + description: "Status of the condition, one of True, False, Unknown." + type: string + type: + description: Type of the condition. + type: string + required: + - message + - reason + - status + - type + type: object + v1alpha1.StorageVersionList: + description: A list of StorageVersions. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: "{}" + status: + commonEncodingVersion: commonEncodingVersion + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + storageVersions: + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + servedVersions: + - servedVersions + - servedVersions + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + servedVersions: + - servedVersions + - servedVersions + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: "{}" + status: + commonEncodingVersion: commonEncodingVersion + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + storageVersions: + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + servedVersions: + - servedVersions + - servedVersions + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + servedVersions: + - servedVersions + - servedVersions + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: Items holds a list of StorageVersion + items: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: internal.apiserver.k8s.io + kind: StorageVersionList + version: v1alpha1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1alpha1.StorageVersionStatus: + description: API server instances report the versions they can decode and the + version they encode objects to when persisting objects in the backend. + example: + commonEncodingVersion: commonEncodingVersion + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + storageVersions: + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + servedVersions: + - servedVersions + - servedVersions + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + servedVersions: + - servedVersions + - servedVersions + properties: + commonEncodingVersion: + description: "If all API server instances agree on the same encoding storage\ + \ version, then this field is set to that version. Otherwise this field\ + \ is left empty. API servers should finish updating its storageVersionStatus\ + \ entry before serving write operations, so that this field will be in\ + \ sync with the reality." + type: string + conditions: + description: The latest available observations of the storageVersion's state. + items: + $ref: '#/components/schemas/v1alpha1.StorageVersionCondition' + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + storageVersions: + description: The reported versions per API server instance. + items: + $ref: '#/components/schemas/v1alpha1.ServerStorageVersion' + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - apiServerID + type: object + v1.ControllerRevision: + description: "ControllerRevision implements an immutable snapshot of state data.\ + \ Clients are responsible for serializing and deserializing the objects that\ + \ contain their internal state. Once a ControllerRevision has been successfully\ + \ created, it can not be updated. The API Server will fail validation of all\ + \ requests that attempt to mutate the Data field. ControllerRevisions may,\ + \ however, be deleted. Note that, due to its use by both the DaemonSet and\ + \ StatefulSet controllers for update and rollback, this object is beta. However,\ + \ it may be subject to name and representation changes in future releases,\ + \ and clients should not depend on its stability. It is primarily for internal\ + \ use by controllers." + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + data: "{}" + kind: kind + revision: 0 + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + data: + description: Data is the serialized representation of the state. + properties: {} + type: object + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + revision: + description: Revision indicates the revision of the state represented by + Data. + format: int64 + type: integer + required: + - revision + type: object + x-kubernetes-group-version-kind: + - group: apps + kind: ControllerRevision + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ControllerRevisionList: + description: ControllerRevisionList is a resource containing a list of ControllerRevision + objects. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + data: "{}" + kind: kind + revision: 0 + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + data: "{}" + kind: kind + revision: 0 + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: Items is the list of ControllerRevisions + items: + $ref: '#/components/schemas/v1.ControllerRevision' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: apps + kind: ControllerRevisionList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.DaemonSet: + description: DaemonSet represents the configuration of a daemon set. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + template: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 9 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + fsGroup: 7 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulingGates: + - name: name + - name: name + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: + key: null + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path key: key - mode: 3 path: path @@ -91862,6 +100172,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -92130,6 +100441,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -92497,6 +100809,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -92764,6 +101077,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -93032,6 +101346,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -93299,6 +101614,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -95078,6 +103394,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -95346,6 +103663,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -95713,6 +104031,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -95980,6 +104299,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -96248,6 +104568,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -96515,6 +104836,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -98229,6 +106551,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -98497,6 +106820,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -98864,6 +107188,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -99131,6 +107456,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -99399,6 +107725,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -99666,6 +107993,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -101361,6 +109689,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -101629,6 +109958,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -101996,6 +110326,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -102263,6 +110594,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -102531,6 +110863,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -102798,6 +111131,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -104622,6 +112956,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -104890,6 +113225,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -105257,6 +113593,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -105524,6 +113861,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -105792,6 +114130,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -106059,6 +114398,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -106550,8 +114890,9 @@ components: maxUnavailable: maxUnavailable progressDeadlineSeconds: 6 status: - unavailableReplicas: 2 + unavailableReplicas: 4 replicas: 3 + terminatingReplicas: 2 readyReplicas: 9 collisionCount: 2 conditions: @@ -106567,7 +114908,7 @@ components: type: type lastUpdateTime: 2000-01-23T04:56:07.000+00:00 status: status - updatedReplicas: 4 + updatedReplicas: 7 availableReplicas: 5 observedGeneration: 7 properties: @@ -107846,6 +116187,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -108114,6 +116456,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -108481,6 +116824,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -108748,6 +117092,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -109016,6 +117361,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -109283,6 +117629,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -109774,8 +118121,9 @@ components: maxUnavailable: maxUnavailable progressDeadlineSeconds: 6 status: - unavailableReplicas: 2 + unavailableReplicas: 4 replicas: 3 + terminatingReplicas: 2 readyReplicas: 9 collisionCount: 2 conditions: @@ -109791,7 +118139,7 @@ components: type: type lastUpdateTime: 2000-01-23T04:56:07.000+00:00 status: status - updatedReplicas: 4 + updatedReplicas: 7 availableReplicas: 5 observedGeneration: 7 - metadata: @@ -111000,6 +119348,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -111268,6 +119617,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -111635,6 +119985,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -111902,6 +120253,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -112170,6 +120522,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -112437,6 +120790,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -112928,8 +121282,9 @@ components: maxUnavailable: maxUnavailable progressDeadlineSeconds: 6 status: - unavailableReplicas: 2 + unavailableReplicas: 4 replicas: 3 + terminatingReplicas: 2 readyReplicas: 9 collisionCount: 2 conditions: @@ -112945,7 +121300,7 @@ components: type: type lastUpdateTime: 2000-01-23T04:56:07.000+00:00 status: status - updatedReplicas: 4 + updatedReplicas: 7 availableReplicas: 5 observedGeneration: 7 properties: @@ -114136,6 +122491,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -114404,6 +122760,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -114771,6 +123128,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -115038,6 +123396,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -115306,6 +123665,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -115573,6 +123933,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -116106,8 +124467,9 @@ components: v1.DeploymentStatus: description: DeploymentStatus is the most recently observed status of the Deployment. example: - unavailableReplicas: 2 + unavailableReplicas: 4 replicas: 3 + terminatingReplicas: 2 readyReplicas: 9 collisionCount: 2 conditions: @@ -116123,13 +124485,13 @@ components: type: type lastUpdateTime: 2000-01-23T04:56:07.000+00:00 status: status - updatedReplicas: 4 + updatedReplicas: 7 availableReplicas: 5 observedGeneration: 7 properties: availableReplicas: - description: Total number of available pods (ready for at least minReadySeconds) - targeted by this deployment. + description: Total number of available non-terminating pods (ready for at + least minReadySeconds) targeted by this deployment. format: int32 type: integer collisionCount: @@ -116154,15 +124516,22 @@ components: format: int64 type: integer readyReplicas: - description: readyReplicas is the number of pods targeted by this Deployment + description: Total number of non-terminating pods targeted by this Deployment with a Ready Condition. format: int32 type: integer replicas: - description: Total number of non-terminated pods targeted by this deployment + description: Total number of non-terminating pods targeted by this deployment (their labels match the selector). format: int32 type: integer + terminatingReplicas: + description: |- + Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase. + + This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field. + format: int32 + type: integer unavailableReplicas: description: Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment @@ -116171,7 +124540,7 @@ components: format: int32 type: integer updatedReplicas: - description: Total number of non-terminated pods targeted by this deployment + description: Total number of non-terminating pods targeted by this deployment that have the desired template spec. format: int32 type: integer @@ -117402,6 +125771,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -117670,6 +126040,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -118037,6 +126408,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -118304,6 +126676,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -118572,6 +126945,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -118839,6 +127213,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -119324,6 +127699,7 @@ components: status: fullyLabeledReplicas: 5 replicas: 7 + terminatingReplicas: 9 readyReplicas: 2 conditions: - reason: reason @@ -120610,6 +128986,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -120878,6 +129255,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -121245,6 +129623,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -121512,6 +129891,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -121780,6 +130160,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -122047,6 +130428,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -122532,6 +130914,7 @@ components: status: fullyLabeledReplicas: 5 replicas: 7 + terminatingReplicas: 9 readyReplicas: 2 conditions: - reason: reason @@ -123752,6 +132135,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -124020,6 +132404,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -124387,6 +132772,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -124654,6 +133040,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -124922,6 +133309,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -125189,6 +133577,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -125674,6 +134063,7 @@ components: status: fullyLabeledReplicas: 5 replicas: 7 + terminatingReplicas: 9 readyReplicas: 2 conditions: - reason: reason @@ -125695,7 +134085,7 @@ components: \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string items: - description: "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller" + description: "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset" items: $ref: '#/components/schemas/v1.ReplicaSet' type: array @@ -126875,6 +135265,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -127143,6 +135534,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -127510,6 +135902,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -127777,6 +136170,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -128045,6 +136439,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -128312,6 +136707,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -128803,9 +137199,9 @@ components: format: int32 type: integer replicas: - description: "Replicas is the number of desired replicas. This is a pointer\ + description: "Replicas is the number of desired pods. This is a pointer\ \ to distinguish between explicit zero and unspecified. Defaults to 1.\ - \ More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller" + \ More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset" format: int32 type: integer selector: @@ -128820,6 +137216,7 @@ components: example: fullyLabeledReplicas: 5 replicas: 7 + terminatingReplicas: 9 readyReplicas: 2 conditions: - reason: reason @@ -128836,8 +137233,8 @@ components: observedGeneration: 5 properties: availableReplicas: - description: The number of available replicas (ready for at least minReadySeconds) - for this replica set. + description: The number of available non-terminating pods (ready for at + least minReadySeconds) for this replica set. format: int32 type: integer conditions: @@ -128852,8 +137249,8 @@ components: - type x-kubernetes-patch-merge-key: type fullyLabeledReplicas: - description: The number of pods that have labels matching the labels of - the pod template of the replicaset. + description: The number of non-terminating pods that have labels matching + the labels of the pod template of the replicaset. format: int32 type: integer observedGeneration: @@ -128862,13 +137259,20 @@ components: format: int64 type: integer readyReplicas: - description: readyReplicas is the number of pods targeted by this ReplicaSet + description: The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition. format: int32 type: integer replicas: - description: "Replicas is the most recently observed number of replicas.\ - \ More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller" + description: "Replicas is the most recently observed number of non-terminating\ + \ pods. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset" + format: int32 + type: integer + terminatingReplicas: + description: |- + The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase. + + This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field. format: int32 type: integer required: @@ -130153,6 +138557,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -130421,6 +138826,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -130788,6 +139194,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -131055,6 +139462,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -131323,6 +139731,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -131590,6 +139999,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -133602,6 +142012,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -133870,6 +142281,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -134237,6 +142649,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -134504,6 +142917,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -134772,6 +143186,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -135039,6 +143454,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -136986,6 +145402,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -137254,6 +145671,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -137621,6 +146039,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -137888,6 +146307,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -138156,6 +146576,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -138423,6 +146844,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -140387,6 +148809,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -140655,6 +149078,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -141022,6 +149446,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -141289,6 +149714,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -141557,6 +149983,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -141824,6 +150251,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -142607,7 +151035,6 @@ components: x-kubernetes-list-type: atomic required: - selector - - serviceName - template type: object v1.StatefulSetStatus: @@ -142811,467 +151238,15 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' status: - $ref: '#/components/schemas/v1.SelfSubjectReviewStatus' - type: object - x-kubernetes-group-version-kind: - - group: authentication.k8s.io - kind: SelfSubjectReview - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.SelfSubjectReviewStatus: - description: SelfSubjectReviewStatus is filled by the kube-apiserver and sent - back to a user. - example: - userInfo: - uid: uid - extra: - key: - - extra - - extra - groups: - - groups - - groups - username: username - properties: - userInfo: - $ref: '#/components/schemas/v1.UserInfo' - type: object - authentication.v1.TokenRequest: - description: TokenRequest requests a token for a given service account. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - boundObjectRef: - uid: uid - apiVersion: apiVersion - kind: kind - name: name - expirationSeconds: 0 - audiences: - - audiences - - audiences - status: - expirationTimestamp: 2000-01-23T04:56:07.000+00:00 - token: token - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" - type: string - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.TokenRequestSpec' - status: - $ref: '#/components/schemas/v1.TokenRequestStatus' - required: - - spec - type: object - x-kubernetes-group-version-kind: - - group: authentication.k8s.io - kind: TokenRequest - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.TokenRequestSpec: - description: TokenRequestSpec contains client provided parameters of a token - request. - example: - boundObjectRef: - uid: uid - apiVersion: apiVersion - kind: kind - name: name - expirationSeconds: 0 - audiences: - - audiences - - audiences - properties: - audiences: - description: "Audiences are the intendend audiences of the token. A recipient\ - \ of a token must identify themself with an identifier in the list of\ - \ audiences of the token, and otherwise should reject the token. A token\ - \ issued for multiple audiences may be used to authenticate against any\ - \ of the audiences listed but implies a high degree of trust between the\ - \ target audiences." - items: - type: string - type: array - x-kubernetes-list-type: atomic - boundObjectRef: - $ref: '#/components/schemas/v1.BoundObjectReference' - expirationSeconds: - description: ExpirationSeconds is the requested duration of validity of - the request. The token issuer may return a token with a different validity - duration so a client needs to check the 'expiration' field in a response. - format: int64 - type: integer - required: - - audiences - type: object - v1.TokenRequestStatus: - description: TokenRequestStatus is the result of a token request. - example: - expirationTimestamp: 2000-01-23T04:56:07.000+00:00 - token: token - properties: - expirationTimestamp: - description: ExpirationTimestamp is the time of expiration of the returned - token. - format: date-time - type: string - token: - description: Token is the opaque bearer token. - type: string - required: - - expirationTimestamp - - token - type: object - v1.TokenReview: - description: "TokenReview attempts to authenticate a token to a known user.\ - \ Note: TokenReview requests may be cached by the webhook token authenticator\ - \ plugin in the kube-apiserver." - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - audiences: - - audiences - - audiences - token: token - status: - authenticated: true - audiences: - - audiences - - audiences - error: error - user: - uid: uid - extra: - key: - - extra - - extra - groups: - - groups - - groups - username: username - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" - type: string - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.TokenReviewSpec' - status: - $ref: '#/components/schemas/v1.TokenReviewStatus' - required: - - spec - type: object - x-kubernetes-group-version-kind: - - group: authentication.k8s.io - kind: TokenReview - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.TokenReviewSpec: - description: TokenReviewSpec is a description of the token authentication request. - example: - audiences: - - audiences - - audiences - token: token - properties: - audiences: - description: "Audiences is a list of the identifiers that the resource server\ - \ presented with the token identifies as. Audience-aware token authenticators\ - \ will verify that the token was intended for at least one of the audiences\ - \ in this list. If no audiences are provided, the audience will default\ - \ to the audience of the Kubernetes apiserver." - items: - type: string - type: array - x-kubernetes-list-type: atomic - token: - description: Token is the opaque bearer token. - type: string - type: object - v1.TokenReviewStatus: - description: TokenReviewStatus is the result of the token authentication request. - example: - authenticated: true - audiences: - - audiences - - audiences - error: error - user: - uid: uid - extra: - key: - - extra - - extra - groups: - - groups - - groups - username: username - properties: - audiences: - description: "Audiences are audience identifiers chosen by the authenticator\ - \ that are compatible with both the TokenReview and token. An identifier\ - \ is any identifier in the intersection of the TokenReviewSpec audiences\ - \ and the token's audiences. A client of the TokenReview API that sets\ - \ the spec.audiences field should validate that a compatible audience\ - \ identifier is returned in the status.audiences field to ensure that\ - \ the TokenReview server is audience aware. If a TokenReview returns an\ - \ empty status.audience field where status.authenticated is \"true\",\ - \ the token is valid against the audience of the Kubernetes API server." - items: - type: string - type: array - x-kubernetes-list-type: atomic - authenticated: - description: Authenticated indicates that the token was associated with - a known user. - type: boolean - error: - description: Error indicates that the token couldn't be checked - type: string - user: - $ref: '#/components/schemas/v1.UserInfo' - type: object - v1.UserInfo: - description: UserInfo holds the information about the user needed to implement - the user.Info interface. - example: - uid: uid - extra: - key: - - extra - - extra - groups: - - groups - - groups - username: username - properties: - extra: - additionalProperties: - items: - type: string - type: array - description: Any additional information provided by the authenticator. - type: object - groups: - description: The names of groups this user is a part of. - items: - type: string - type: array - x-kubernetes-list-type: atomic - uid: - description: "A unique value that identifies this user across time. If this\ - \ user is deleted and another user by the same name is added, they will\ - \ have different UIDs." - type: string - username: - description: The name that uniquely identifies this user among all active - users. - type: string - type: object - v1beta1.SelfSubjectReview: - description: "SelfSubjectReview contains the user information that the kube-apiserver\ - \ has about the user making this request. When using impersonation, users\ - \ will receive the user info of the user being impersonated. If impersonation\ - \ or request header authentication is used, any extra keys will have their\ - \ case ignored and returned as lowercase." - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - status: - userInfo: - uid: uid - extra: - key: - - extra - - extra - groups: - - groups - - groups - username: username - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" - type: string - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - status: - $ref: '#/components/schemas/v1beta1.SelfSubjectReviewStatus' + $ref: '#/components/schemas/v1.SelfSubjectReviewStatus' type: object x-kubernetes-group-version-kind: - group: authentication.k8s.io kind: SelfSubjectReview - version: v1beta1 + version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1beta1.SelfSubjectReviewStatus: + v1.SelfSubjectReviewStatus: description: SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. example: @@ -143289,6 +151264,352 @@ components: userInfo: $ref: '#/components/schemas/v1.UserInfo' type: object + authentication.v1.TokenRequest: + description: TokenRequest requests a token for a given service account. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + boundObjectRef: + uid: uid + apiVersion: apiVersion + kind: kind + name: name + expirationSeconds: 0 + audiences: + - audiences + - audiences + status: + expirationTimestamp: 2000-01-23T04:56:07.000+00:00 + token: token + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.TokenRequestSpec' + status: + $ref: '#/components/schemas/v1.TokenRequestStatus' + required: + - spec + type: object + x-kubernetes-group-version-kind: + - group: authentication.k8s.io + kind: TokenRequest + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.TokenRequestSpec: + description: TokenRequestSpec contains client provided parameters of a token + request. + example: + boundObjectRef: + uid: uid + apiVersion: apiVersion + kind: kind + name: name + expirationSeconds: 0 + audiences: + - audiences + - audiences + properties: + audiences: + description: "Audiences are the intendend audiences of the token. A recipient\ + \ of a token must identify themself with an identifier in the list of\ + \ audiences of the token, and otherwise should reject the token. A token\ + \ issued for multiple audiences may be used to authenticate against any\ + \ of the audiences listed but implies a high degree of trust between the\ + \ target audiences." + items: + type: string + type: array + x-kubernetes-list-type: atomic + boundObjectRef: + $ref: '#/components/schemas/v1.BoundObjectReference' + expirationSeconds: + description: ExpirationSeconds is the requested duration of validity of + the request. The token issuer may return a token with a different validity + duration so a client needs to check the 'expiration' field in a response. + format: int64 + type: integer + required: + - audiences + type: object + v1.TokenRequestStatus: + description: TokenRequestStatus is the result of a token request. + example: + expirationTimestamp: 2000-01-23T04:56:07.000+00:00 + token: token + properties: + expirationTimestamp: + description: ExpirationTimestamp is the time of expiration of the returned + token. + format: date-time + type: string + token: + description: Token is the opaque bearer token. + type: string + required: + - expirationTimestamp + - token + type: object + v1.TokenReview: + description: "TokenReview attempts to authenticate a token to a known user.\ + \ Note: TokenReview requests may be cached by the webhook token authenticator\ + \ plugin in the kube-apiserver." + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + audiences: + - audiences + - audiences + token: token + status: + authenticated: true + audiences: + - audiences + - audiences + error: error + user: + uid: uid + extra: + key: + - extra + - extra + groups: + - groups + - groups + username: username + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.TokenReviewSpec' + status: + $ref: '#/components/schemas/v1.TokenReviewStatus' + required: + - spec + type: object + x-kubernetes-group-version-kind: + - group: authentication.k8s.io + kind: TokenReview + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.TokenReviewSpec: + description: TokenReviewSpec is a description of the token authentication request. + example: + audiences: + - audiences + - audiences + token: token + properties: + audiences: + description: "Audiences is a list of the identifiers that the resource server\ + \ presented with the token identifies as. Audience-aware token authenticators\ + \ will verify that the token was intended for at least one of the audiences\ + \ in this list. If no audiences are provided, the audience will default\ + \ to the audience of the Kubernetes apiserver." + items: + type: string + type: array + x-kubernetes-list-type: atomic + token: + description: Token is the opaque bearer token. + type: string + type: object + v1.TokenReviewStatus: + description: TokenReviewStatus is the result of the token authentication request. + example: + authenticated: true + audiences: + - audiences + - audiences + error: error + user: + uid: uid + extra: + key: + - extra + - extra + groups: + - groups + - groups + username: username + properties: + audiences: + description: "Audiences are audience identifiers chosen by the authenticator\ + \ that are compatible with both the TokenReview and token. An identifier\ + \ is any identifier in the intersection of the TokenReviewSpec audiences\ + \ and the token's audiences. A client of the TokenReview API that sets\ + \ the spec.audiences field should validate that a compatible audience\ + \ identifier is returned in the status.audiences field to ensure that\ + \ the TokenReview server is audience aware. If a TokenReview returns an\ + \ empty status.audience field where status.authenticated is \"true\",\ + \ the token is valid against the audience of the Kubernetes API server." + items: + type: string + type: array + x-kubernetes-list-type: atomic + authenticated: + description: Authenticated indicates that the token was associated with + a known user. + type: boolean + error: + description: Error indicates that the token couldn't be checked + type: string + user: + $ref: '#/components/schemas/v1.UserInfo' + type: object + v1.UserInfo: + description: UserInfo holds the information about the user needed to implement + the user.Info interface. + example: + uid: uid + extra: + key: + - extra + - extra + groups: + - groups + - groups + username: username + properties: + extra: + additionalProperties: + items: + type: string + type: array + description: Any additional information provided by the authenticator. + type: object + groups: + description: The names of groups this user is a part of. + items: + type: string + type: array + x-kubernetes-list-type: atomic + uid: + description: "A unique value that identifies this user across time. If this\ + \ user is deleted and another user by the same name is added, they will\ + \ have different UIDs." + type: string + username: + description: The name that uniquely identifies this user among all active + users. + type: string + type: object v1.FieldSelectorAttributes: description: "FieldSelectorAttributes indicates a field limited access. Webhook\ \ authors are encouraged to * ensure rawSelector and requirements are not\ @@ -144948,12 +153269,12 @@ components: - value type: object v2.HPAScalingRules: - description: "HPAScalingRules configures the scaling behavior for one direction.\ - \ These Rules are applied after calculating DesiredReplicas from metrics for\ - \ the HPA. They can limit the scaling velocity by specifying scaling policies.\ - \ They can prevent flapping by specifying the stabilization window, so that\ - \ the number of replicas is not set instantly, instead, the safest value from\ - \ the stabilization window is chosen." + description: |- + HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance. + + Scaling Policy Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen. + + The tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations. (Note that setting a tolerance requires enabling the alpha HPAConfigurableTolerance feature gate.) example: selectPolicy: selectPolicy stabilizationWindowSeconds: 1 @@ -144964,11 +153285,14 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance properties: policies: description: "policies is a list of potential scaling polices which can\ - \ be used during scaling. At least one policy must be specified, otherwise\ - \ the HPAScalingRules will be discarded as invalid" + \ be used during scaling. If not set, use the default values: - For scale\ + \ up: allow doubling the number of pods, or an absolute change of 4 pods\ + \ in a 15s window. - For scale down: allow all pods to be removed in a\ + \ 15s window." items: $ref: '#/components/schemas/v2.HPAScalingPolicy' type: array @@ -144986,6 +153310,44 @@ components: \ down: 300 (i.e. the stabilization window is 300 seconds long)." format: int32 type: integer + tolerance: + description: "Quantity is a fixed-point representation of a number. It provides\ + \ convenient marshaling/unmarshaling in JSON and YAML, in addition to\ + \ String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\ + ``` ::= \n\n\t(Note that \ + \ may be empty, from the \"\" case in .)\n\n \ + \ ::= 0 | 1 | ... | 9 ::= | \ + \ ::= | . | . | .\ + \ ::= \"+\" | \"-\" ::= |\ + \ ::= | \ + \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ + \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ + \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ + \ ::= \"e\" | \"E\" ```\n\nNo matter which\ + \ of the three exponent forms is used, no quantity may represent a number\ + \ greater than 2^63-1 in magnitude, nor may it have more than 3 decimal\ + \ places. Numbers larger or more precise will be capped or rounded up.\ + \ (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future\ + \ if we require larger or smaller quantities.\n\nWhen a Quantity is parsed\ + \ from a string, it will remember the type of suffix it had, and will\ + \ use the same type again when it is serialized.\n\nBefore serializing,\ + \ Quantity will be put in \"canonical form\". This means that Exponent/suffix\ + \ will be adjusted up or down (with a corresponding increase or decrease\ + \ in Mantissa) such that:\n\n- No precision is lost - No fractional digits\ + \ will be emitted - The exponent (or suffix) is as large as possible.\n\ + \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ + \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ + \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ + \ by a floating point number. That is the whole point of this exercise.\n\ + \nNon-canonical values will still parse as long as they are well formed,\ + \ but will be re-emitted in their canonical form. (So always use canonical\ + \ form, or don't diff.)\n\nThis format is intended to make it difficult\ + \ to use these numbers without writing some sort of special handling code\ + \ in the hopes that that will cause implementors to also use a fixed point\ + \ implementation." + format: quantity + type: string type: object v2.HorizontalPodAutoscaler: description: "HorizontalPodAutoscaler is the configuration for a horizontal\ @@ -145227,6 +153589,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleDown: selectPolicy: selectPolicy stabilizationWindowSeconds: 1 @@ -145237,6 +153600,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleTargetRef: apiVersion: apiVersion kind: kind @@ -145459,6 +153823,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleDown: selectPolicy: selectPolicy stabilizationWindowSeconds: 1 @@ -145469,6 +153834,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance properties: scaleDown: $ref: '#/components/schemas/v2.HPAScalingRules' @@ -145754,6 +154120,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleDown: selectPolicy: selectPolicy stabilizationWindowSeconds: 1 @@ -145764,6 +154131,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleTargetRef: apiVersion: apiVersion kind: kind @@ -146182,6 +154550,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleDown: selectPolicy: selectPolicy stabilizationWindowSeconds: 1 @@ -146192,6 +154561,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleTargetRef: apiVersion: apiVersion kind: kind @@ -146592,6 +154962,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleDown: selectPolicy: selectPolicy stabilizationWindowSeconds: 1 @@ -146602,6 +154973,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleTargetRef: apiVersion: apiVersion kind: kind @@ -148753,6 +157125,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -149021,6 +157394,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -149388,6 +157762,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -149655,6 +158030,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -149923,6 +158299,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -150190,6 +158567,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -152028,6 +160406,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -152296,6 +160675,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -152663,6 +161043,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -152930,6 +161311,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -153198,6 +161580,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -153465,6 +161848,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -155268,6 +163652,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -155536,6 +163921,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -155903,6 +164289,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -156170,6 +164557,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -156438,6 +164826,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -156705,6 +165094,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -158490,6 +166880,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -158758,6 +167149,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -159125,6 +167517,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -159392,6 +167785,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -159660,6 +168054,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -159927,6 +168322,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -161751,6 +170147,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -162019,6 +170416,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -162386,6 +170784,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -162653,6 +171052,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -162921,6 +171321,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -163188,6 +171589,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -165017,6 +173419,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -165285,6 +173688,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -165652,6 +174056,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -165919,6 +174324,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -166187,6 +174593,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -166454,6 +174861,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -168214,6 +176622,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -168482,6 +176891,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -168849,6 +177259,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -169116,6 +177527,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -169384,6 +177796,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -169651,6 +178064,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -171392,6 +179806,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -171660,6 +180075,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -172027,6 +180443,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -172294,6 +180711,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -172562,6 +180980,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -172829,6 +181248,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -173371,9 +181791,7 @@ components: \ before marking this index as failed. When enabled the number of failures\ \ per index is kept in the pod's batch.kubernetes.io/job-index-failure-count\ \ annotation. It can only be set when Job's completionMode=Indexed, and\ - \ the Pod's restart policy is Never. The field is immutable. This field\ - \ is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature\ - \ gate is enabled (enabled by default)." + \ the Pod's restart policy is Never. The field is immutable." format: int32 type: integer completionMode: @@ -173419,9 +181837,7 @@ components: \ execution of all of its indexes and is marked with the `Complete` Job\ \ condition. It can only be specified when backoffLimitPerIndex is set.\ \ It can be null or up to completions. It is required and must be less\ - \ than or equal to 10^4 when is completions greater than 10^5. This field\ - \ is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature\ - \ gate is enabled (enabled by default)." + \ than or equal to 10^4 when is completions greater than 10^5." format: int32 type: integer parallelism: @@ -173547,10 +181963,15 @@ components: format: int32 type: integer failedIndexes: - description: |- - FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". The set of failed indexes cannot overlap with the set of completed indexes. - - This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). + description: "FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex\ + \ is set. The indexes are represented in the text format analogous as\ + \ for the `completedIndexes` field, ie. they are kept as decimal integers\ + \ separated by commas. The numbers are listed in increasing order. Three\ + \ or more consecutive numbers are compressed and represented by the first\ + \ and last element of the series, separated by a hyphen. For example,\ + \ if the failed indexes are 1, 3, 4, 5 and 7, they are represented as\ + \ \"1,3-5,7\". The set of failed indexes cannot overlap with the set of\ + \ completed indexes." type: string ready: description: The number of active pods which have a Ready condition and @@ -174789,6 +183210,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -175057,6 +183479,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -175424,6 +183847,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -175691,6 +184115,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -175959,6 +184384,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -176226,6 +184652,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -176891,8 +185318,6 @@ components: running pods are terminated. - FailIndex: indicates that the pod's index is marked as Failed and will not be restarted. - This value is beta-level. It can be used when the - `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). - Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created. - Count: indicates that the pod is handled in the default way - the @@ -177784,6 +186209,258 @@ components: required: - trustBundle type: object + v1beta1.ClusterTrustBundle: + description: |- + ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates). + + ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to. + + It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + trustBundle: trustBundle + signerName: signerName + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleSpec' + required: + - spec + type: object + x-kubernetes-group-version-kind: + - group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1beta1.ClusterTrustBundleList: + description: ClusterTrustBundleList is a collection of ClusterTrustBundle objects + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + trustBundle: trustBundle + signerName: signerName + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + trustBundle: trustBundle + signerName: signerName + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: items is a collection of ClusterTrustBundle objects + items: + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: certificates.k8s.io + kind: ClusterTrustBundleList + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1beta1.ClusterTrustBundleSpec: + description: ClusterTrustBundleSpec contains the signer and trust anchors. + example: + trustBundle: trustBundle + signerName: signerName + properties: + signerName: + description: |- + signerName indicates the associated signer, if any. + + In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName= verb=attest. + + If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`. + + If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix. + + List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector. + type: string + trustBundle: + description: |- + trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates. + + The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers. + + Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data. + type: string + required: + - trustBundle + type: object v1.Lease: description: Lease defines a lease concept. example: @@ -178338,8 +187015,291 @@ components: \ Lease return different strategies, the strategy provided by the candidate\ \ with the latest BinaryVersion will be used. If there is still conflict,\ \ this is a user error and coordinated leader election will not operate\ - \ the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection\ - \ feature gate to be enabled." + \ the Lease until resolved." + type: string + required: + - binaryVersion + - leaseName + - strategy + type: object + v1beta1.LeaseCandidate: + description: LeaseCandidate defines a candidate for a Lease object. Candidates + are created such that coordinated leader election will pick the best leader + from the list of candidates. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + renewTime: 2000-01-23T04:56:07.000+00:00 + binaryVersion: binaryVersion + emulationVersion: emulationVersion + pingTime: 2000-01-23T04:56:07.000+00:00 + leaseName: leaseName + strategy: strategy + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1beta1.LeaseCandidateSpec' + type: object + x-kubernetes-group-version-kind: + - group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1beta1.LeaseCandidateList: + description: LeaseCandidateList is a list of Lease objects. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + renewTime: 2000-01-23T04:56:07.000+00:00 + binaryVersion: binaryVersion + emulationVersion: emulationVersion + pingTime: 2000-01-23T04:56:07.000+00:00 + leaseName: leaseName + strategy: strategy + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + renewTime: 2000-01-23T04:56:07.000+00:00 + binaryVersion: binaryVersion + emulationVersion: emulationVersion + pingTime: 2000-01-23T04:56:07.000+00:00 + leaseName: leaseName + strategy: strategy + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: items is a list of schema objects. + items: + $ref: '#/components/schemas/v1beta1.LeaseCandidate' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: coordination.k8s.io + kind: LeaseCandidateList + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1beta1.LeaseCandidateSpec: + description: LeaseCandidateSpec is a specification of a Lease. + example: + renewTime: 2000-01-23T04:56:07.000+00:00 + binaryVersion: binaryVersion + emulationVersion: emulationVersion + pingTime: 2000-01-23T04:56:07.000+00:00 + leaseName: leaseName + strategy: strategy + properties: + binaryVersion: + description: BinaryVersion is the binary version. It must be in a semver + format without leading `v`. This field is required. + type: string + emulationVersion: + description: EmulationVersion is the emulation version. It must be in a + semver format without leading `v`. EmulationVersion must be less than + or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion" + type: string + leaseName: + description: LeaseName is the name of the lease for which this candidate + is contending. The limits on this field are the same as on Lease.name. + Multiple lease candidates may reference the same Lease.name. This field + is immutable. + type: string + pingTime: + description: "PingTime is the last time that the server has requested the\ + \ LeaseCandidate to renew. It is only done during leader election to check\ + \ if any LeaseCandidates have become ineligible. When PingTime is updated,\ + \ the LeaseCandidate will respond by updating RenewTime." + format: date-time + type: string + renewTime: + description: "RenewTime is the time that the LeaseCandidate was last updated.\ + \ Any time a Lease needs to do leader election, the PingTime field is\ + \ updated to signal to the LeaseCandidate that they should update the\ + \ RenewTime. Old LeaseCandidate objects are also garbage collected if\ + \ it has been hours since the last renew. The PingTime field is updated\ + \ regularly to prevent garbage collection for still active LeaseCandidates." + format: date-time + type: string + strategy: + description: "Strategy is the strategy that coordinated leader election\ + \ will use for picking the leader. If multiple candidates for the same\ + \ Lease return different strategies, the strategy provided by the candidate\ + \ with the latest BinaryVersion will be used. If there is still conflict,\ + \ this is a user error and coordinated leader election will not operate\ + \ the Lease until resolved." type: string required: - binaryVersion @@ -180257,6 +189217,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -180575,11 +189536,11 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 properties: running: @@ -180603,11 +189564,11 @@ components: description: ContainerStateTerminated is a terminated state of a container. example: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 properties: containerID: @@ -180670,7 +189631,7 @@ components: health: health image: image imageID: imageID - restartCount: 0 + restartCount: 7 resources: claims: - request: request @@ -180690,11 +189651,11 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -180717,20 +189678,21 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID + stopSignal: stopSignal user: linux: - uid: 0 - gid: 7 + uid: 4 + gid: 6 supplementalGroups: - - 6 - - 6 + - 0 + - 0 properties: allocatedResources: additionalProperties: @@ -180799,6 +189761,9 @@ components: type: boolean state: $ref: '#/components/schemas/v1.ContainerState' + stopSignal: + description: StopSignal reports the effective stop signal for this container + type: string user: $ref: '#/components/schemas/v1.ContainerUser' volumeMounts: @@ -180822,11 +189787,11 @@ components: description: ContainerUser represents user identity information example: linux: - uid: 0 - gid: 7 + uid: 4 + gid: 6 supplementalGroups: - - 6 - - 6 + - 0 + - 0 properties: linux: $ref: '#/components/schemas/v1.LinuxContainerUser' @@ -181005,7 +189970,8 @@ components: type: string type: object v1.EndpointAddress: - description: EndpointAddress is a tuple that describes single IP address. + description: "EndpointAddress is a tuple that describes single IP address. Deprecated:\ + \ This API is deprecated in v1.33+." example: nodeName: nodeName targetRef: @@ -181038,7 +190004,8 @@ components: type: object x-kubernetes-map-type: atomic core.v1.EndpointPort: - description: EndpointPort is a tuple that describes a single port. + description: "EndpointPort is a tuple that describes a single port. Deprecated:\ + \ This API is deprecated in v1.33+." example: protocol: protocol port: 0 @@ -181082,7 +190049,7 @@ components: ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675},\ \ {\"name\": \"b\", \"port\": 309}]\n\t}\n\nThe resulting set of endpoints\ \ can be viewed as:\n\n\ta: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n\tb: [ 10.10.1.1:309,\ - \ 10.10.2.2:309 ]" + \ 10.10.2.2:309 ]\n\nDeprecated: This API is deprecated in v1.33+." example: notReadyAddresses: - nodeName: nodeName @@ -181170,7 +190137,10 @@ components: \ [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t\ \ },\n\t {\n\t Addresses: [{\"ip\": \"10.10.3.3\"}],\n\t Ports:\ \ [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n\t \ - \ },\n\t]" + \ },\n\t]\n\nEndpoints is a legacy API and does not contain information about\ + \ all Service features. Use discoveryv1.EndpointSlice for complete information\ + \ about Service endpoints.\n\nDeprecated: This API is deprecated in v1.33+.\ + \ Use discoveryv1.EndpointSlice." example: metadata: generation: 6 @@ -181364,7 +190334,8 @@ components: x-implements: - io.kubernetes.client.common.KubernetesObject v1.EndpointsList: - description: EndpointsList is a list of endpoints. + description: "EndpointsList is a list of endpoints. Deprecated: This API is\ + \ deprecated in v1.33+." example: metadata: remainingItemCount: 1 @@ -181720,7 +190691,7 @@ components: x-implements: - io.kubernetes.client.common.KubernetesListObject v1.EnvFromSource: - description: EnvFromSource represents the source of a set of ConfigMaps + description: EnvFromSource represents the source of a set of ConfigMaps or Secrets example: configMapRef: name: name @@ -181733,7 +190704,7 @@ components: configMapRef: $ref: '#/components/schemas/v1.ConfigMapEnvSource' prefix: - description: An optional identifier to prepend to each key in the ConfigMap. + description: Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER. type: string secretRef: @@ -181945,6 +190916,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -183366,11 +192338,18 @@ components: value: value - name: name value: value + stopSignal: stopSignal properties: postStart: $ref: '#/components/schemas/v1.LifecycleHandler' preStop: $ref: '#/components/schemas/v1.LifecycleHandler' + stopSignal: + description: "StopSignal defines which signal will be sent to a container\ + \ when it is being stopped. If not specified, the default is defined by\ + \ the container runtime in use. StopSignal can only be set for Pods with\ + \ a non-empty .spec.os.name" + type: string type: object v1.LifecycleHandler: description: "LifecycleHandler defines a specific action that should be taken\ @@ -183397,18 +192376,912 @@ components: - name: name value: value properties: - exec: - $ref: '#/components/schemas/v1.ExecAction' - httpGet: - $ref: '#/components/schemas/v1.HTTPGetAction' - sleep: - $ref: '#/components/schemas/v1.SleepAction' - tcpSocket: - $ref: '#/components/schemas/v1.TCPSocketAction' + exec: + $ref: '#/components/schemas/v1.ExecAction' + httpGet: + $ref: '#/components/schemas/v1.HTTPGetAction' + sleep: + $ref: '#/components/schemas/v1.SleepAction' + tcpSocket: + $ref: '#/components/schemas/v1.TCPSocketAction' + type: object + v1.LimitRange: + description: LimitRange sets resource usage limits for each kind of resource + in a Namespace. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + limits: + - default: + key: null + min: + key: null + max: + key: null + maxLimitRequestRatio: + key: null + type: type + defaultRequest: + key: null + - default: + key: null + min: + key: null + max: + key: null + maxLimitRequestRatio: + key: null + type: type + defaultRequest: + key: null + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.LimitRangeSpec' + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: LimitRange + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.LimitRangeItem: + description: LimitRangeItem defines a min/max usage limit for any resource that + matches on kind. + example: + default: + key: null + min: + key: null + max: + key: null + maxLimitRequestRatio: + key: null + type: type + defaultRequest: + key: null + properties: + default: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: Default resource requirement limit value by resource name if + resource limit is omitted. + type: object + defaultRequest: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: DefaultRequest is the default resource requirement request + value by resource name if resource request is omitted. + type: object + max: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: Max usage constraints on this kind by resource name. + type: object + maxLimitRequestRatio: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: "MaxLimitRequestRatio if specified, the named resource must\ + \ have a request and limit that are both non-zero where limit divided\ + \ by request is less than or equal to the enumerated value; this represents\ + \ the max burst for the named resource." + type: object + min: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: Min usage constraints on this kind by resource name. + type: object + type: + description: Type of resource that this limit applies to. + type: string + required: + - type + type: object + v1.LimitRangeList: + description: LimitRangeList is a list of LimitRange items. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + limits: + - default: + key: null + min: + key: null + max: + key: null + maxLimitRequestRatio: + key: null + type: type + defaultRequest: + key: null + - default: + key: null + min: + key: null + max: + key: null + maxLimitRequestRatio: + key: null + type: type + defaultRequest: + key: null + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + limits: + - default: + key: null + min: + key: null + max: + key: null + maxLimitRequestRatio: + key: null + type: type + defaultRequest: + key: null + - default: + key: null + min: + key: null + max: + key: null + maxLimitRequestRatio: + key: null + type: type + defaultRequest: + key: null + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" + items: + $ref: '#/components/schemas/v1.LimitRange' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: LimitRangeList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.LimitRangeSpec: + description: LimitRangeSpec defines a min/max usage limit for resources that + match on kind. + example: + limits: + - default: + key: null + min: + key: null + max: + key: null + maxLimitRequestRatio: + key: null + type: type + defaultRequest: + key: null + - default: + key: null + min: + key: null + max: + key: null + maxLimitRequestRatio: + key: null + type: type + defaultRequest: + key: null + properties: + limits: + description: Limits is the list of LimitRangeItem objects that are enforced. + items: + $ref: '#/components/schemas/v1.LimitRangeItem' + type: array + x-kubernetes-list-type: atomic + required: + - limits + type: object + v1.LinuxContainerUser: + description: LinuxContainerUser represents user identity information in Linux + containers + example: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + properties: + gid: + description: GID is the primary gid initially attached to the first process + in the container + format: int64 + type: integer + supplementalGroups: + description: SupplementalGroups are the supplemental groups initially attached + to the first process in the container + items: + format: int64 + type: integer + type: array + x-kubernetes-list-type: atomic + uid: + description: UID is the primary uid initially attached to the first process + in the container + format: int64 + type: integer + required: + - gid + - uid + type: object + v1.LoadBalancerIngress: + description: "LoadBalancerIngress represents the status of a load-balancer ingress\ + \ point: traffic intended for the service should be sent to an ingress point." + example: + ipMode: ipMode + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 2 + error: error + - protocol: protocol + port: 2 + error: error + properties: + hostname: + description: Hostname is set for load-balancer ingress points that are DNS + based (typically AWS load-balancers) + type: string + ip: + description: IP is set for load-balancer ingress points that are IP based + (typically GCE or OpenStack load-balancers) + type: string + ipMode: + description: "IPMode specifies how the load-balancer IP behaves, and may\ + \ only be specified when the ip field is specified. Setting this to \"\ + VIP\" indicates that traffic is delivered to the node with the destination\ + \ set to the load-balancer's IP and port. Setting this to \"Proxy\" indicates\ + \ that traffic is delivered to the node or pod with the destination set\ + \ to the node's IP and node port or the pod's IP and port. Service implementations\ + \ may use this information to adjust traffic routing." + type: string + ports: + description: "Ports is a list of records of service ports If used, every\ + \ port defined in the service should have an entry in it" + items: + $ref: '#/components/schemas/v1.PortStatus' + type: array + x-kubernetes-list-type: atomic + type: object + v1.LoadBalancerStatus: + description: LoadBalancerStatus represents the status of a load-balancer. + example: + ingress: + - ipMode: ipMode + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 2 + error: error + - protocol: protocol + port: 2 + error: error + - ipMode: ipMode + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 2 + error: error + - protocol: protocol + port: 2 + error: error + properties: + ingress: + description: Ingress is a list containing ingress points for the load-balancer. + Traffic intended for the service should be sent to these ingress points. + items: + $ref: '#/components/schemas/v1.LoadBalancerIngress' + type: array + x-kubernetes-list-type: atomic + type: object + v1.LocalObjectReference: + description: LocalObjectReference contains enough information to let you locate + the referenced object inside the same namespace. + example: + name: name + properties: + name: + description: "Name of the referent. This field is effectively required,\ + \ but due to backwards compatibility is allowed to be empty. Instances\ + \ of this type with an empty value here are almost certainly wrong. More\ + \ info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + type: string + type: object + x-kubernetes-map-type: atomic + v1.LocalVolumeSource: + description: Local represents directly-attached storage with node affinity + example: + path: path + fsType: fsType + properties: + fsType: + description: "fsType is the filesystem type to mount. It applies only when\ + \ the Path is a block device. Must be a filesystem type supported by the\ + \ host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default\ + \ value is to auto-select a filesystem if unspecified." + type: string + path: + description: "path of the full path to the volume on the node. It can be\ + \ either a directory or block device (disk, partition, ...)." + type: string + required: + - path + type: object + v1.ModifyVolumeStatus: + description: ModifyVolumeStatus represents the status object of ControllerModifyVolume + operation + example: + targetVolumeAttributesClassName: targetVolumeAttributesClassName + status: status + properties: + status: + description: "status is the status of the ControllerModifyVolume operation.\ + \ It can be in any of following states:\n - Pending\n Pending indicates\ + \ that the PersistentVolumeClaim cannot be modified due to unmet requirements,\ + \ such as\n the specified VolumeAttributesClass not existing.\n - InProgress\n\ + \ InProgress indicates that the volume is being modified.\n - Infeasible\n\ + \ Infeasible indicates that the request has been rejected as invalid\ + \ by the CSI driver. To\n\t resolve the error, a valid VolumeAttributesClass\ + \ needs to be specified.\nNote: New statuses can be added in the future.\ + \ Consumers should check for unknown statuses and fail appropriately." + type: string + targetVolumeAttributesClassName: + description: targetVolumeAttributesClassName is the name of the VolumeAttributesClass + the PVC currently being reconciled + type: string + required: + - status + type: object + v1.NFSVolumeSource: + description: Represents an NFS mount that lasts the lifetime of a pod. NFS volumes + do not support ownership management or SELinux relabeling. + example: + path: path + server: server + readOnly: true + properties: + path: + description: "path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs" + type: string + readOnly: + description: "readOnly here will force the NFS export to be mounted with\ + \ read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs" + type: boolean + server: + description: "server is the hostname or IP address of the NFS server. More\ + \ info: https://kubernetes.io/docs/concepts/storage/volumes#nfs" + type: string + required: + - path + - server + type: object + v1.Namespace: + description: Namespace provides a scope for Names. Use of multiple namespaces + is optional. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + finalizers: + - finalizers + - finalizers + status: + phase: phase + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.NamespaceSpec' + status: + $ref: '#/components/schemas/v1.NamespaceStatus' + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: Namespace + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.NamespaceCondition: + description: NamespaceCondition contains details about state of namespace. + example: + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + properties: + lastTransitionTime: + description: Last time the condition transitioned from one status to another. + format: date-time + type: string + message: + description: Human-readable message indicating details about last transition. + type: string + reason: + description: "Unique, one-word, CamelCase reason for the condition's last\ + \ transition." + type: string + status: + description: "Status of the condition, one of True, False, Unknown." + type: string + type: + description: Type of namespace controller condition. + type: string + required: + - status + - type + type: object + v1.NamespaceList: + description: NamespaceList is a list of Namespaces. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + finalizers: + - finalizers + - finalizers + status: + phase: phase + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + finalizers: + - finalizers + - finalizers + status: + phase: phase + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: "Items is the list of Namespace objects in the list. More info:\ + \ https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/" + items: + $ref: '#/components/schemas/v1.Namespace' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: NamespaceList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.NamespaceSpec: + description: NamespaceSpec describes the attributes on a Namespace. + example: + finalizers: + - finalizers + - finalizers + properties: + finalizers: + description: "Finalizers is an opaque list of values that must be empty\ + \ to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/" + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + v1.NamespaceStatus: + description: NamespaceStatus is information about the current status of a Namespace. + example: + phase: phase + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + properties: + conditions: + description: Represents the latest available observations of a namespace's + current state. + items: + $ref: '#/components/schemas/v1.NamespaceCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + phase: + description: "Phase is the current lifecycle phase of the namespace. More\ + \ info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/" + type: string type: object - v1.LimitRange: - description: LimitRange sets resource usage limits for each kind of resource - in a Namespace. + v1.Node: + description: Node is a worker node in Kubernetes. Each node will have a unique + identifier in the cache (i.e. in etcd). example: metadata: generation: 6 @@ -183459,29 +193332,120 @@ components: apiVersion: apiVersion kind: kind spec: - limits: - - default: - key: null - min: - key: null - max: - key: null - maxLimitRequestRatio: - key: null + podCIDRs: + - podCIDRs + - podCIDRs + providerID: providerID + externalID: externalID + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + configSource: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + unschedulable: true + podCIDR: podCIDR + status: + daemonEndpoints: + kubeletEndpoint: + Port: 0 + phase: phase + allocatable: + key: null + addresses: + - address: address type: type - defaultRequest: - key: null - - default: - key: null - min: - key: null - max: - key: null - maxLimitRequestRatio: - key: null + - address: address type: type - defaultRequest: - key: null + images: + - names: + - names + - names + sizeBytes: 6 + - names: + - names + - names + sizeBytes: 6 + runtimeHandlers: + - features: + userNamespaces: true + recursiveReadOnlyMounts: true + name: name + - features: + userNamespaces: true + recursiveReadOnlyMounts: true + name: name + volumesAttached: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + capacity: + key: null + features: + supplementalGroupsPolicy: true + volumesInUse: + - volumesInUse + - volumesInUse + nodeInfo: + machineID: machineID + swap: + capacity: 1 + bootID: bootID + containerRuntimeVersion: containerRuntimeVersion + kernelVersion: kernelVersion + kubeletVersion: kubeletVersion + systemUUID: systemUUID + kubeProxyVersion: kubeProxyVersion + operatingSystem: operatingSystem + architecture: architecture + osImage: osImage + conditions: + - reason: reason + lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + config: + lastKnownGood: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + active: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + assigned: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + error: error properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -183496,68 +193460,273 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1.LimitRangeSpec' + $ref: '#/components/schemas/v1.NodeSpec' + status: + $ref: '#/components/schemas/v1.NodeStatus' type: object x-kubernetes-group-version-kind: - group: "" - kind: LimitRange + kind: Node version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.LimitRangeItem: - description: LimitRangeItem defines a min/max usage limit for any resource that - matches on kind. + v1.NodeAddress: + description: NodeAddress contains information for the node's address. example: - default: - key: null - min: - key: null - max: - key: null - maxLimitRequestRatio: - key: null + address: address type: type - defaultRequest: - key: null properties: - default: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: Default resource requirement limit value by resource name if - resource limit is omitted. - type: object - defaultRequest: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: DefaultRequest is the default resource requirement request - value by resource name if resource request is omitted. - type: object - max: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: Max usage constraints on this kind by resource name. - type: object - maxLimitRequestRatio: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: "MaxLimitRequestRatio if specified, the named resource must\ - \ have a request and limit that are both non-zero where limit divided\ - \ by request is less than or equal to the enumerated value; this represents\ - \ the max burst for the named resource." - type: object - min: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: Min usage constraints on this kind by resource name. - type: object + address: + description: The node address. + type: string type: - description: Type of resource that this limit applies to. + description: "Node address type, one of Hostname, ExternalIP or InternalIP." type: string required: + - address - type type: object - v1.LimitRangeList: - description: LimitRangeList is a list of LimitRange items. + v1.NodeAffinity: + description: Node affinity is a group of node affinity scheduling rules. + example: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + properties: + preferredDuringSchedulingIgnoredDuringExecution: + description: "The scheduler will prefer to schedule pods to nodes that satisfy\ + \ the affinity expressions specified by this field, but it may choose\ + \ a node that violates one or more of the expressions. The node that is\ + \ most preferred is the one with the greatest sum of weights, i.e. for\ + \ each node that meets all of the scheduling requirements (resource request,\ + \ requiredDuringScheduling affinity expressions, etc.), compute a sum\ + \ by iterating through the elements of this field and adding \"weight\"\ + \ to the sum if the node matches the corresponding matchExpressions; the\ + \ node(s) with the highest sum are the most preferred." + items: + $ref: '#/components/schemas/v1.PreferredSchedulingTerm' + type: array + x-kubernetes-list-type: atomic + requiredDuringSchedulingIgnoredDuringExecution: + $ref: '#/components/schemas/v1.NodeSelector' + type: object + v1.NodeCondition: + description: NodeCondition contains condition information for a node. + example: + reason: reason + lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + properties: + lastHeartbeatTime: + description: Last time we got an update on a given condition. + format: date-time + type: string + lastTransitionTime: + description: Last time the condition transit from one status to another. + format: date-time + type: string + message: + description: Human readable message indicating details about last transition. + type: string + reason: + description: (brief) reason for the condition's last transition. + type: string + status: + description: "Status of the condition, one of True, False, Unknown." + type: string + type: + description: Type of node condition. + type: string + required: + - status + - type + type: object + v1.NodeConfigSource: + description: NodeConfigSource specifies a source of node configuration. Exactly + one subfield (excluding metadata) must be non-nil. This API is deprecated + since 1.22 + example: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + properties: + configMap: + $ref: '#/components/schemas/v1.ConfigMapNodeConfigSource' + type: object + v1.NodeConfigStatus: + description: NodeConfigStatus describes the status of the config assigned by + Node.Spec.ConfigSource. + example: + lastKnownGood: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + active: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + assigned: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + error: error + properties: + active: + $ref: '#/components/schemas/v1.NodeConfigSource' + assigned: + $ref: '#/components/schemas/v1.NodeConfigSource' + error: + description: "Error describes any problems reconciling the Spec.ConfigSource\ + \ to the Active config. Errors may occur, for example, attempting to checkpoint\ + \ Spec.ConfigSource to the local Assigned record, attempting to checkpoint\ + \ the payload associated with Spec.ConfigSource, attempting to load or\ + \ validate the Assigned config, etc. Errors may occur at different points\ + \ while syncing config. Earlier errors (e.g. download or checkpointing\ + \ errors) will not result in a rollback to LastKnownGood, and may resolve\ + \ across Kubelet retries. Later errors (e.g. loading or validating a checkpointed\ + \ config) will result in a rollback to LastKnownGood. In the latter case,\ + \ it is usually possible to resolve the error by fixing the config assigned\ + \ in Spec.ConfigSource. You can find additional information for debugging\ + \ by searching the error message in the Kubelet log. Error is a human-readable\ + \ description of the error state; machines can check whether or not Error\ + \ is empty, but should not rely on the stability of the Error text across\ + \ Kubelet versions." + type: string + lastKnownGood: + $ref: '#/components/schemas/v1.NodeConfigSource' + type: object + v1.NodeDaemonEndpoints: + description: NodeDaemonEndpoints lists ports opened by daemons running on the + Node. + example: + kubeletEndpoint: + Port: 0 + properties: + kubeletEndpoint: + $ref: '#/components/schemas/v1.DaemonEndpoint' + type: object + v1.NodeFeatures: + description: NodeFeatures describes the set of features implemented by the CRI + implementation. The features contained in the NodeFeatures should depend only + on the cri implementation independent of runtime handlers. + example: + supplementalGroupsPolicy: true + properties: + supplementalGroupsPolicy: + description: SupplementalGroupsPolicy is set to true if the runtime supports + SupplementalGroupsPolicy and ContainerUser. + type: boolean + type: object + v1.NodeList: + description: NodeList is the whole list of all Nodes which have been registered + with master. example: metadata: remainingItemCount: 1 @@ -183616,29 +193785,120 @@ components: apiVersion: apiVersion kind: kind spec: - limits: - - default: - key: null - min: - key: null - max: - key: null - maxLimitRequestRatio: - key: null + podCIDRs: + - podCIDRs + - podCIDRs + providerID: providerID + externalID: externalID + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + configSource: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + unschedulable: true + podCIDR: podCIDR + status: + daemonEndpoints: + kubeletEndpoint: + Port: 0 + phase: phase + allocatable: + key: null + addresses: + - address: address type: type - defaultRequest: - key: null - - default: - key: null - min: - key: null - max: - key: null - maxLimitRequestRatio: - key: null + - address: address type: type - defaultRequest: - key: null + images: + - names: + - names + - names + sizeBytes: 6 + - names: + - names + - names + sizeBytes: 6 + runtimeHandlers: + - features: + userNamespaces: true + recursiveReadOnlyMounts: true + name: name + - features: + userNamespaces: true + recursiveReadOnlyMounts: true + name: name + volumesAttached: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + capacity: + key: null + features: + supplementalGroupsPolicy: true + volumesInUse: + - volumesInUse + - volumesInUse + nodeInfo: + machineID: machineID + swap: + capacity: 1 + bootID: bootID + containerRuntimeVersion: containerRuntimeVersion + kernelVersion: kernelVersion + kubeletVersion: kubeletVersion + systemUUID: systemUUID + kubeProxyVersion: kubeProxyVersion + operatingSystem: operatingSystem + architecture: architecture + osImage: osImage + conditions: + - reason: reason + lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + config: + lastKnownGood: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + active: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + assigned: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + error: error - metadata: generation: 6 finalizers: @@ -183688,29 +193948,120 @@ components: apiVersion: apiVersion kind: kind spec: - limits: - - default: - key: null - min: - key: null - max: - key: null - maxLimitRequestRatio: - key: null + podCIDRs: + - podCIDRs + - podCIDRs + providerID: providerID + externalID: externalID + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + configSource: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + unschedulable: true + podCIDR: podCIDR + status: + daemonEndpoints: + kubeletEndpoint: + Port: 0 + phase: phase + allocatable: + key: null + addresses: + - address: address type: type - defaultRequest: - key: null - - default: - key: null - min: - key: null - max: - key: null - maxLimitRequestRatio: - key: null + - address: address type: type - defaultRequest: - key: null + images: + - names: + - names + - names + sizeBytes: 6 + - names: + - names + - names + sizeBytes: 6 + runtimeHandlers: + - features: + userNamespaces: true + recursiveReadOnlyMounts: true + name: name + - features: + userNamespaces: true + recursiveReadOnlyMounts: true + name: name + volumesAttached: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + capacity: + key: null + features: + supplementalGroupsPolicy: true + volumesInUse: + - volumesInUse + - volumesInUse + nodeInfo: + machineID: machineID + swap: + capacity: 1 + bootID: bootID + containerRuntimeVersion: containerRuntimeVersion + kernelVersion: kernelVersion + kubeletVersion: kubeletVersion + systemUUID: systemUUID + kubeProxyVersion: kubeProxyVersion + operatingSystem: operatingSystem + architecture: architecture + osImage: osImage + conditions: + - reason: reason + lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + config: + lastKnownGood: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + active: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + assigned: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + error: error properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -183718,9 +194069,9 @@ components: \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string items: - description: "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" + description: List of nodes items: - $ref: '#/components/schemas/v1.LimitRange' + $ref: '#/components/schemas/v1.Node' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -183734,236 +194085,547 @@ components: type: object x-kubernetes-group-version-kind: - group: "" - kind: LimitRangeList + kind: NodeList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.LimitRangeSpec: - description: LimitRangeSpec defines a min/max usage limit for resources that - match on kind. + v1.NodeRuntimeHandler: + description: NodeRuntimeHandler is a set of runtime handler information. example: - limits: - - default: - key: null - min: - key: null - max: - key: null - maxLimitRequestRatio: - key: null + features: + userNamespaces: true + recursiveReadOnlyMounts: true + name: name + properties: + features: + $ref: '#/components/schemas/v1.NodeRuntimeHandlerFeatures' + name: + description: Runtime handler name. Empty for the default runtime handler. + type: string + type: object + v1.NodeRuntimeHandlerFeatures: + description: NodeRuntimeHandlerFeatures is a set of features implemented by + the runtime handler. + example: + userNamespaces: true + recursiveReadOnlyMounts: true + properties: + recursiveReadOnlyMounts: + description: RecursiveReadOnlyMounts is set to true if the runtime handler + supports RecursiveReadOnlyMounts. + type: boolean + userNamespaces: + description: "UserNamespaces is set to true if the runtime handler supports\ + \ UserNamespaces, including for volumes." + type: boolean + type: object + v1.NodeSelector: + description: "A node selector represents the union of the results of one or\ + \ more label queries over a set of nodes; that is, it represents the OR of\ + \ the selectors represented by the node selector terms." + example: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + properties: + nodeSelectorTerms: + description: Required. A list of node selector terms. The terms are ORed. + items: + $ref: '#/components/schemas/v1.NodeSelectorTerm' + type: array + x-kubernetes-list-type: atomic + required: + - nodeSelectorTerms + type: object + x-kubernetes-map-type: atomic + v1.NodeSelectorRequirement: + description: "A node selector requirement is a selector that contains values,\ + \ a key, and an operator that relates the key and values." + example: + values: + - values + - values + key: key + operator: operator + properties: + key: + description: The label key that the selector applies to. + type: string + operator: + description: "Represents a key's relationship to a set of values. Valid\ + \ operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt." + type: string + values: + description: "An array of string values. If the operator is In or NotIn,\ + \ the values array must be non-empty. If the operator is Exists or DoesNotExist,\ + \ the values array must be empty. If the operator is Gt or Lt, the values\ + \ array must have a single element, which will be interpreted as an integer.\ + \ This array is replaced during a strategic merge patch." + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + v1.NodeSelectorTerm: + description: A null or empty node selector term matches no objects. The requirements + of them are ANDed. The TopologySelectorTerm type implements a subset of the + NodeSelectorTerm. + example: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + properties: + matchExpressions: + description: A list of node selector requirements by node's labels. + items: + $ref: '#/components/schemas/v1.NodeSelectorRequirement' + type: array + x-kubernetes-list-type: atomic + matchFields: + description: A list of node selector requirements by node's fields. + items: + $ref: '#/components/schemas/v1.NodeSelectorRequirement' + type: array + x-kubernetes-list-type: atomic + type: object + x-kubernetes-map-type: atomic + v1.NodeSpec: + description: NodeSpec describes the attributes that a node is created with. + example: + podCIDRs: + - podCIDRs + - podCIDRs + providerID: providerID + externalID: externalID + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + configSource: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + unschedulable: true + podCIDR: podCIDR + properties: + configSource: + $ref: '#/components/schemas/v1.NodeConfigSource' + externalID: + description: "Deprecated. Not all kubelets will set this field. Remove field\ + \ after 1.13. see: https://issues.k8s.io/61966" + type: string + podCIDR: + description: PodCIDR represents the pod IP range assigned to the node. + type: string + podCIDRs: + description: "podCIDRs represents the IP ranges assigned to the node for\ + \ usage by Pods on that node. If this field is specified, the 0th entry\ + \ must match the podCIDR field. It may contain at most 1 value for each\ + \ of IPv4 and IPv6." + items: + type: string + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: set + providerID: + description: "ID of the node assigned by the cloud provider in the format:\ + \ ://" + type: string + taints: + description: "If specified, the node's taints." + items: + $ref: '#/components/schemas/v1.Taint' + type: array + x-kubernetes-list-type: atomic + unschedulable: + description: "Unschedulable controls node schedulability of new pods. By\ + \ default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration" + type: boolean + type: object + v1.NodeStatus: + description: NodeStatus is information about the current status of a node. + example: + daemonEndpoints: + kubeletEndpoint: + Port: 0 + phase: phase + allocatable: + key: null + addresses: + - address: address + type: type + - address: address + type: type + images: + - names: + - names + - names + sizeBytes: 6 + - names: + - names + - names + sizeBytes: 6 + runtimeHandlers: + - features: + userNamespaces: true + recursiveReadOnlyMounts: true + name: name + - features: + userNamespaces: true + recursiveReadOnlyMounts: true + name: name + volumesAttached: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + capacity: + key: null + features: + supplementalGroupsPolicy: true + volumesInUse: + - volumesInUse + - volumesInUse + nodeInfo: + machineID: machineID + swap: + capacity: 1 + bootID: bootID + containerRuntimeVersion: containerRuntimeVersion + kernelVersion: kernelVersion + kubeletVersion: kubeletVersion + systemUUID: systemUUID + kubeProxyVersion: kubeProxyVersion + operatingSystem: operatingSystem + architecture: architecture + osImage: osImage + conditions: + - reason: reason + lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message type: type - defaultRequest: - key: null - - default: - key: null - min: - key: null - max: - key: null - maxLimitRequestRatio: - key: null + status: status + - reason: reason + lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message type: type - defaultRequest: - key: null + status: status + config: + lastKnownGood: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + active: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + assigned: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + error: error properties: - limits: - description: Limits is the list of LimitRangeItem objects that are enforced. + addresses: + description: "List of addresses reachable to the node. Queried from cloud\ + \ provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#addresses\ + \ Note: This field is declared as mergeable, but the merge key is not\ + \ sufficiently unique, which can cause data corruption when it is merged.\ + \ Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391\ + \ for an example. Consumers should assume that addresses can change during\ + \ the lifetime of a Node. However, there are some exceptions where this\ + \ may not be possible, such as Pods that inherit a Node's address in its\ + \ own status or consumers of the downward API (status.hostIP)." items: - $ref: '#/components/schemas/v1.LimitRangeItem' + $ref: '#/components/schemas/v1.NodeAddress' type: array - x-kubernetes-list-type: atomic - required: - - limits - type: object - v1.LinuxContainerUser: - description: LinuxContainerUser represents user identity information in Linux - containers - example: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - properties: - gid: - description: GID is the primary gid initially attached to the first process - in the container - format: int64 - type: integer - supplementalGroups: - description: SupplementalGroups are the supplemental groups initially attached - to the first process in the container + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + allocatable: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: Allocatable represents the resources of a node that are available + for scheduling. Defaults to Capacity. + type: object + capacity: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: "Capacity represents the total resources of a node. More info:\ + \ https://kubernetes.io/docs/reference/node/node-status/#capacity" + type: object + conditions: + description: "Conditions is an array of current observed node conditions.\ + \ More info: https://kubernetes.io/docs/reference/node/node-status/#condition" items: - format: int64 - type: integer + $ref: '#/components/schemas/v1.NodeCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + config: + $ref: '#/components/schemas/v1.NodeConfigStatus' + daemonEndpoints: + $ref: '#/components/schemas/v1.NodeDaemonEndpoints' + features: + $ref: '#/components/schemas/v1.NodeFeatures' + images: + description: List of container images on this node + items: + $ref: '#/components/schemas/v1.ContainerImage' type: array x-kubernetes-list-type: atomic - uid: - description: UID is the primary uid initially attached to the first process - in the container - format: int64 - type: integer - required: - - gid - - uid - type: object - v1.LoadBalancerIngress: - description: "LoadBalancerIngress represents the status of a load-balancer ingress\ - \ point: traffic intended for the service should be sent to an ingress point." - example: - ipMode: ipMode - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 2 - error: error - - protocol: protocol - port: 2 - error: error - properties: - hostname: - description: Hostname is set for load-balancer ingress points that are DNS - based (typically AWS load-balancers) - type: string - ip: - description: IP is set for load-balancer ingress points that are IP based - (typically GCE or OpenStack load-balancers) - type: string - ipMode: - description: "IPMode specifies how the load-balancer IP behaves, and may\ - \ only be specified when the ip field is specified. Setting this to \"\ - VIP\" indicates that traffic is delivered to the node with the destination\ - \ set to the load-balancer's IP and port. Setting this to \"Proxy\" indicates\ - \ that traffic is delivered to the node or pod with the destination set\ - \ to the node's IP and node port or the pod's IP and port. Service implementations\ - \ may use this information to adjust traffic routing." + nodeInfo: + $ref: '#/components/schemas/v1.NodeSystemInfo' + phase: + description: "NodePhase is the recently observed lifecycle phase of the\ + \ node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase\ + \ The field is never populated, and now is deprecated." type: string - ports: - description: "Ports is a list of records of service ports If used, every\ - \ port defined in the service should have an entry in it" + runtimeHandlers: + description: The available runtime handlers. items: - $ref: '#/components/schemas/v1.PortStatus' + $ref: '#/components/schemas/v1.NodeRuntimeHandler' type: array x-kubernetes-list-type: atomic - type: object - v1.LoadBalancerStatus: - description: LoadBalancerStatus represents the status of a load-balancer. - example: - ingress: - - ipMode: ipMode - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 2 - error: error - - protocol: protocol - port: 2 - error: error - - ipMode: ipMode - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 2 - error: error - - protocol: protocol - port: 2 - error: error - properties: - ingress: - description: Ingress is a list containing ingress points for the load-balancer. - Traffic intended for the service should be sent to these ingress points. + volumesAttached: + description: List of volumes that are attached to the node. items: - $ref: '#/components/schemas/v1.LoadBalancerIngress' + $ref: '#/components/schemas/v1.AttachedVolume' + type: array + x-kubernetes-list-type: atomic + volumesInUse: + description: List of attachable volumes in use (mounted) by the node. + items: + type: string type: array x-kubernetes-list-type: atomic type: object - v1.LocalObjectReference: - description: LocalObjectReference contains enough information to let you locate - the referenced object inside the same namespace. + v1.NodeSwapStatus: + description: NodeSwapStatus represents swap memory information. example: - name: name + capacity: 1 properties: - name: - description: "Name of the referent. This field is effectively required,\ - \ but due to backwards compatibility is allowed to be empty. Instances\ - \ of this type with an empty value here are almost certainly wrong. More\ - \ info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" - type: string + capacity: + description: Total amount of swap memory in bytes. + format: int64 + type: integer type: object - x-kubernetes-map-type: atomic - v1.LocalVolumeSource: - description: Local represents directly-attached storage with node affinity + v1.NodeSystemInfo: + description: NodeSystemInfo is a set of ids/uuids to uniquely identify the node. example: - path: path - fsType: fsType + machineID: machineID + swap: + capacity: 1 + bootID: bootID + containerRuntimeVersion: containerRuntimeVersion + kernelVersion: kernelVersion + kubeletVersion: kubeletVersion + systemUUID: systemUUID + kubeProxyVersion: kubeProxyVersion + operatingSystem: operatingSystem + architecture: architecture + osImage: osImage properties: - fsType: - description: "fsType is the filesystem type to mount. It applies only when\ - \ the Path is a block device. Must be a filesystem type supported by the\ - \ host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default\ - \ value is to auto-select a filesystem if unspecified." + architecture: + description: The Architecture reported by the node type: string - path: - description: "path of the full path to the volume on the node. It can be\ - \ either a directory or block device (disk, partition, ...)." + bootID: + description: Boot ID reported by the node. + type: string + containerRuntimeVersion: + description: ContainerRuntime Version reported by the node through runtime + remote API (e.g. containerd://1.4.2). + type: string + kernelVersion: + description: Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). + type: string + kubeProxyVersion: + description: "Deprecated: KubeProxy Version reported by the node." + type: string + kubeletVersion: + description: Kubelet Version reported by the node. + type: string + machineID: + description: "MachineID reported by the node. For unique machine identification\ + \ in the cluster this field is preferred. Learn more from man(5) machine-id:\ + \ http://man7.org/linux/man-pages/man5/machine-id.5.html" + type: string + operatingSystem: + description: The Operating System reported by the node + type: string + osImage: + description: OS Image reported by the node from /etc/os-release (e.g. Debian + GNU/Linux 7 (wheezy)). + type: string + swap: + $ref: '#/components/schemas/v1.NodeSwapStatus' + systemUUID: + description: SystemUUID reported by the node. For unique machine identification + MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid type: string required: - - path + - architecture + - bootID + - containerRuntimeVersion + - kernelVersion + - kubeProxyVersion + - kubeletVersion + - machineID + - operatingSystem + - osImage + - systemUUID type: object - v1.ModifyVolumeStatus: - description: ModifyVolumeStatus represents the status object of ControllerModifyVolume - operation + v1.ObjectFieldSelector: + description: ObjectFieldSelector selects an APIVersioned field of an object. example: - targetVolumeAttributesClassName: targetVolumeAttributesClassName - status: status + apiVersion: apiVersion + fieldPath: fieldPath properties: - status: - description: "status is the status of the ControllerModifyVolume operation.\ - \ It can be in any of following states:\n - Pending\n Pending indicates\ - \ that the PersistentVolumeClaim cannot be modified due to unmet requirements,\ - \ such as\n the specified VolumeAttributesClass not existing.\n - InProgress\n\ - \ InProgress indicates that the volume is being modified.\n - Infeasible\n\ - \ Infeasible indicates that the request has been rejected as invalid\ - \ by the CSI driver. To\n\t resolve the error, a valid VolumeAttributesClass\ - \ needs to be specified.\nNote: New statuses can be added in the future.\ - \ Consumers should check for unknown statuses and fail appropriately." + apiVersion: + description: "Version of the schema the FieldPath is written in terms of,\ + \ defaults to \"v1\"." type: string - targetVolumeAttributesClassName: - description: targetVolumeAttributesClassName is the name of the VolumeAttributesClass - the PVC currently being reconciled + fieldPath: + description: Path of the field to select in the specified API version. type: string required: - - status + - fieldPath type: object - v1.NFSVolumeSource: - description: Represents an NFS mount that lasts the lifetime of a pod. NFS volumes - do not support ownership management or SELinux relabeling. + x-kubernetes-map-type: atomic + v1.ObjectReference: + description: ObjectReference contains enough information to let you inspect + or modify the referred object. example: - path: path - server: server - readOnly: true + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace properties: - path: - description: "path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs" + apiVersion: + description: API version of the referent. type: string - readOnly: - description: "readOnly here will force the NFS export to be mounted with\ - \ read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs" - type: boolean - server: - description: "server is the hostname or IP address of the NFS server. More\ - \ info: https://kubernetes.io/docs/concepts/storage/volumes#nfs" + fieldPath: + description: "If referring to a piece of an object instead of an entire\ + \ object, this string should contain a valid JSON/Go field access statement,\ + \ such as desiredState.manifest.containers[2]. For example, if the object\ + \ reference is to a container within a pod, this would take on a value\ + \ like: \"spec.containers{name}\" (where \"name\" refers to the name of\ + \ the container that triggered the event) or if no container name is specified\ + \ \"spec.containers[2]\" (container with index 2 in this pod). This syntax\ + \ is chosen only to have some well-defined way of referencing a part of\ + \ an object." + type: string + kind: + description: "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + name: + description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + type: string + namespace: + description: "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/" + type: string + resourceVersion: + description: "Specific resourceVersion to which this reference is made,\ + \ if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency" + type: string + uid: + description: "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids" type: string - required: - - path - - server type: object - v1.Namespace: - description: Namespace provides a scope for Names. Use of multiple namespaces - is optional. + x-kubernetes-map-type: atomic + v1.PersistentVolume: + description: "PersistentVolume (PV) is a storage resource provisioned by an\ + \ administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes" example: metadata: generation: 6 @@ -184014,22 +194676,391 @@ components: apiVersion: apiVersion kind: kind spec: + claimRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + secretNamespace: secretNamespace + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + volumeAttributesClassName: volumeAttributesClassName + mountOptions: + - mountOptions + - mountOptions + local: + path: path + fsType: fsType + capacity: + key: null + cephfs: + path: path + secretRef: + name: name + namespace: namespace + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + accessModes: + - accessModes + - accessModes + glusterfs: + path: path + endpoints: endpoints + readOnly: true + endpointsNamespace: endpointsNamespace + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + namespace: namespace + volumeID: volumeID + readOnly: true + fsType: fsType + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + nodeAffinity: + required: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + volumeMode: volumeMode + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 0 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + namespace: namespace + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + storageClassName: storageClassName + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + readOnly: true + fsType: fsType + csi: + controllerPublishSecretRef: + name: name + namespace: namespace + driver: driver + nodePublishSecretRef: + name: name + namespace: namespace + nodeStageSecretRef: + name: name + namespace: namespace + volumeHandle: volumeHandle + nodeExpandSecretRef: + name: name + namespace: namespace + readOnly: true + controllerExpandSecretRef: + name: name + namespace: namespace + fsType: fsType + volumeAttributes: + key: volumeAttributes + nfs: + path: path + server: server + readOnly: true + persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + status: + phase: phase + reason: reason + lastPhaseTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.PersistentVolumeSpec' + status: + $ref: '#/components/schemas/v1.PersistentVolumeStatus' + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: PersistentVolume + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.PersistentVolumeClaim: + description: PersistentVolumeClaim is a user's request for and claim to a persistent + volume + example: + metadata: + generation: 6 finalizers: - finalizers - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode status: phase: phase + allocatedResources: + key: null + currentVolumeAttributesClassName: currentVolumeAttributesClassName + allocatedResourceStatuses: + key: allocatedResourceStatuses + accessModes: + - accessModes + - accessModes conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + modifyVolumeStatus: + targetVolumeAttributesClassName: targetVolumeAttributesClassName status: status + capacity: + key: null properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -184044,48 +195075,59 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1.NamespaceSpec' + $ref: '#/components/schemas/v1.PersistentVolumeClaimSpec' status: - $ref: '#/components/schemas/v1.NamespaceStatus' + $ref: '#/components/schemas/v1.PersistentVolumeClaimStatus' type: object x-kubernetes-group-version-kind: - group: "" - kind: Namespace + kind: PersistentVolumeClaim version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.NamespaceCondition: - description: NamespaceCondition contains details about state of namespace. + v1.PersistentVolumeClaimCondition: + description: PersistentVolumeClaimCondition contains details about state of + pvc example: reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status properties: + lastProbeTime: + description: lastProbeTime is the time we probed the condition. + format: date-time + type: string lastTransitionTime: - description: Last time the condition transitioned from one status to another. + description: lastTransitionTime is the time the condition transitioned from + one status to another. format: date-time type: string message: - description: Human-readable message indicating details about last transition. + description: message is the human-readable message indicating details about + last transition. type: string reason: - description: "Unique, one-word, CamelCase reason for the condition's last\ - \ transition." + description: "reason is a unique, this should be a short, machine understandable\ + \ string that gives the reason for condition's last transition. If it\ + \ reports \"Resizing\" that means the underlying persistent volume is\ + \ being resized." type: string status: - description: "Status of the condition, one of True, False, Unknown." + description: "Status is the status of the condition. Can be True, False,\ + \ Unknown. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=state%20of%20pvc-,conditions.status,-(string)%2C%20required" type: string type: - description: Type of namespace controller condition. + description: "Type is the type of the condition. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=set%20to%20%27ResizeStarted%27.-,PersistentVolumeClaimCondition,-contains%20details%20about" type: string required: - status - type type: object - v1.NamespaceList: - description: NamespaceList is a list of Namespaces. + v1.PersistentVolumeClaimList: + description: PersistentVolumeClaimList is a list of PersistentVolumeClaim items. example: metadata: remainingItemCount: 1 @@ -184144,22 +195186,69 @@ components: apiVersion: apiVersion kind: kind spec: - finalizers: - - finalizers - - finalizers + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode status: phase: phase + allocatedResources: + key: null + currentVolumeAttributesClassName: currentVolumeAttributesClassName + allocatedResourceStatuses: + key: allocatedResourceStatuses + accessModes: + - accessModes + - accessModes conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status + modifyVolumeStatus: + targetVolumeAttributesClassName: targetVolumeAttributesClassName + status: status + capacity: + key: null - metadata: generation: 6 finalizers: @@ -184209,22 +195298,69 @@ components: apiVersion: apiVersion kind: kind spec: - finalizers: - - finalizers - - finalizers + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode status: phase: phase + allocatedResources: + key: null + currentVolumeAttributesClassName: currentVolumeAttributesClassName + allocatedResourceStatuses: + key: allocatedResourceStatuses + accessModes: + - accessModes + - accessModes conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + modifyVolumeStatus: + targetVolumeAttributesClassName: targetVolumeAttributesClassName status: status + capacity: + key: null properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -184232,10 +195368,9 @@ components: \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string items: - description: "Items is the list of Namespace objects in the list. More info:\ - \ https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/" + description: "items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" items: - $ref: '#/components/schemas/v1.Namespace' + $ref: '#/components/schemas/v1.PersistentVolumeClaim' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -184249,60 +195384,225 @@ components: type: object x-kubernetes-group-version-kind: - group: "" - kind: NamespaceList + kind: PersistentVolumeClaimList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.NamespaceSpec: - description: NamespaceSpec describes the attributes on a Namespace. + v1.PersistentVolumeClaimSpec: + description: PersistentVolumeClaimSpec describes the common attributes of storage + devices and allows a Source for provider-specific attributes example: - finalizers: - - finalizers - - finalizers + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode properties: - finalizers: - description: "Finalizers is an opaque list of values that must be empty\ - \ to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/" + accessModes: + description: "accessModes contains the desired access modes the volume should\ + \ have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1" items: type: string type: array x-kubernetes-list-type: atomic + dataSource: + $ref: '#/components/schemas/v1.TypedLocalObjectReference' + dataSourceRef: + $ref: '#/components/schemas/v1.TypedObjectReference' + resources: + $ref: '#/components/schemas/v1.VolumeResourceRequirements' + selector: + $ref: '#/components/schemas/v1.LabelSelector' + storageClassName: + description: "storageClassName is the name of the StorageClass required\ + \ by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1" + type: string + volumeAttributesClassName: + description: "volumeAttributesClassName may be used to set the VolumeAttributesClass\ + \ used by this claim. If specified, the CSI driver will create or update\ + \ the volume with the attributes defined in the corresponding VolumeAttributesClass.\ + \ This has a different purpose than storageClassName, it can be changed\ + \ after the claim is created. An empty string value means that no VolumeAttributesClass\ + \ will be applied to the claim but it's not allowed to reset this field\ + \ to empty string once it is set. If unspecified and the PersistentVolumeClaim\ + \ is unbound, the default VolumeAttributesClass will be set by the persistentvolume\ + \ controller if it exists. If the resource referred to by volumeAttributesClass\ + \ does not exist, this PersistentVolumeClaim will be set to a Pending\ + \ state, as reflected by the modifyVolumeStatus field, until such as a\ + \ resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/\ + \ (Beta) Using this field requires the VolumeAttributesClass feature gate\ + \ to be enabled (off by default)." + type: string + volumeMode: + description: volumeMode defines what type of volume is required by the claim. + Value of Filesystem is implied when not included in claim spec. + type: string + volumeName: + description: volumeName is the binding reference to the PersistentVolume + backing this claim. + type: string type: object - v1.NamespaceStatus: - description: NamespaceStatus is information about the current status of a Namespace. + v1.PersistentVolumeClaimStatus: + description: PersistentVolumeClaimStatus is the current status of a persistent + volume claim. example: phase: phase + allocatedResources: + key: null + currentVolumeAttributesClassName: currentVolumeAttributesClassName + allocatedResourceStatuses: + key: allocatedResourceStatuses + accessModes: + - accessModes + - accessModes conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + modifyVolumeStatus: + targetVolumeAttributesClassName: targetVolumeAttributesClassName status: status + capacity: + key: null properties: + accessModes: + description: "accessModes contains the actual access modes the volume backing\ + \ the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1" + items: + type: string + type: array + x-kubernetes-list-type: atomic + allocatedResourceStatuses: + additionalProperties: + type: string + description: "allocatedResourceStatuses stores status of resource being\ + \ resized for the given PVC. Key names follow standard Kubernetes label\ + \ syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage\ + \ - the capacity of the volume.\n\t* Custom resources must use implementation-defined\ + \ prefixed names such as \"example.com/my-custom-resource\"\nApart from\ + \ above values - keys that are unprefixed or have kubernetes.io prefix\ + \ are considered reserved and hence may not be used.\n\nClaimResourceStatus\ + \ can be in any of following states:\n\t- ControllerResizeInProgress:\n\ + \t\tState set when resize controller starts resizing the volume in control-plane.\n\ + \t- ControllerResizeFailed:\n\t\tState set when resize has failed in resize\ + \ controller with a terminal error.\n\t- NodeResizePending:\n\t\tState\ + \ set when resize controller has finished resizing the volume but further\ + \ resizing of\n\t\tvolume is needed on the node.\n\t- NodeResizeInProgress:\n\ + \t\tState set when kubelet starts resizing the volume.\n\t- NodeResizeFailed:\n\ + \t\tState set when resizing has failed in kubelet with a terminal error.\ + \ Transient errors don't set\n\t\tNodeResizeFailed.\nFor example: if expanding\ + \ a PVC for more capacity - this field can be one of the following states:\n\ + \t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\ + \n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\ + \n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\ + \n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\ + \n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\ + \nWhen this field is not set, it means that no resize operation is in\ + \ progress for the given PVC.\n\nA controller that receives PVC update\ + \ with previously unknown resourceName or ClaimResourceStatus should ignore\ + \ the update for the purpose it was designed. For example - a controller\ + \ that only is responsible for resizing capacity of the volume, should\ + \ ignore PVC updates that change other valid resources associated with\ + \ PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure\ + \ feature." + type: object + x-kubernetes-map-type: granular + allocatedResources: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: "allocatedResources tracks the resources allocated to a PVC\ + \ including its capacity. Key names follow standard Kubernetes label syntax.\ + \ Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the\ + \ capacity of the volume.\n\t* Custom resources must use implementation-defined\ + \ prefixed names such as \"example.com/my-custom-resource\"\nApart from\ + \ above values - keys that are unprefixed or have kubernetes.io prefix\ + \ are considered reserved and hence may not be used.\n\nCapacity reported\ + \ here may be larger than the actual capacity when a volume expansion\ + \ operation is requested. For storage quota, the larger value from allocatedResources\ + \ and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources\ + \ alone is used for quota calculation. If a volume expansion capacity\ + \ request is lowered, allocatedResources is only lowered if there are\ + \ no expansion operations in progress and if the actual volume capacity\ + \ is equal or lower than the requested capacity.\n\nA controller that\ + \ receives PVC update with previously unknown resourceName should ignore\ + \ the update for the purpose it was designed. For example - a controller\ + \ that only is responsible for resizing capacity of the volume, should\ + \ ignore PVC updates that change other valid resources associated with\ + \ PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure\ + \ feature." + type: object + capacity: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: capacity represents the actual resources of the underlying + volume. + type: object conditions: - description: Represents the latest available observations of a namespace's - current state. + description: conditions is the current Condition of persistent volume claim. + If underlying persistent volume is being resized then the Condition will + be set to 'Resizing'. items: - $ref: '#/components/schemas/v1.NamespaceCondition' + $ref: '#/components/schemas/v1.PersistentVolumeClaimCondition' type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map x-kubernetes-list-map-keys: - type x-kubernetes-patch-merge-key: type + currentVolumeAttributesClassName: + description: "currentVolumeAttributesClassName is the current name of the\ + \ VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass\ + \ applied to this PersistentVolumeClaim This is a beta field and requires\ + \ enabling VolumeAttributesClass feature (off by default)." + type: string + modifyVolumeStatus: + $ref: '#/components/schemas/v1.ModifyVolumeStatus' phase: - description: "Phase is the current lifecycle phase of the namespace. More\ - \ info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/" + description: phase represents the current phase of PersistentVolumeClaim. type: string type: object - v1.Node: - description: Node is a worker node in Kubernetes. Each node will have a unique - identifier in the cache (i.e. in etcd). + v1.PersistentVolumeClaimTemplate: + description: PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim + objects as part of an EphemeralVolumeSource. example: metadata: generation: 6 @@ -184350,236 +195650,21 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - apiVersion: apiVersion - kind: kind spec: - podCIDRs: - - podCIDRs - - podCIDRs - providerID: providerID - externalID: externalID - taints: - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - configSource: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - unschedulable: true - podCIDR: podCIDR - status: - daemonEndpoints: - kubeletEndpoint: - Port: 0 - phase: phase - allocatable: - key: null - addresses: - - address: address - type: type - - address: address - type: type - images: - - names: - - names - - names - sizeBytes: 6 - - names: - - names - - names - sizeBytes: 6 - runtimeHandlers: - - features: - userNamespaces: true - recursiveReadOnlyMounts: true - name: name - - features: - userNamespaces: true - recursiveReadOnlyMounts: true - name: name - volumesAttached: - - devicePath: devicePath - name: name - - devicePath: devicePath + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind name: name - capacity: - key: null - features: - supplementalGroupsPolicy: true - volumesInUse: - - volumesInUse - - volumesInUse - nodeInfo: - machineID: machineID - bootID: bootID - containerRuntimeVersion: containerRuntimeVersion - kernelVersion: kernelVersion - kubeletVersion: kubeletVersion - systemUUID: systemUUID - kubeProxyVersion: kubeProxyVersion - operatingSystem: operatingSystem - architecture: architecture - osImage: osImage - conditions: - - reason: reason - lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - config: - lastKnownGood: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - active: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - assigned: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - error: error - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" - type: string - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.NodeSpec' - status: - $ref: '#/components/schemas/v1.NodeStatus' - type: object - x-kubernetes-group-version-kind: - - group: "" - kind: Node - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.NodeAddress: - description: NodeAddress contains information for the node's address. - example: - address: address - type: type - properties: - address: - description: The node address. - type: string - type: - description: "Node address type, one of Hostname, ExternalIP or InternalIP." - type: string - required: - - address - - type - type: object - v1.NodeAffinity: - description: Node affinity is a group of node affinity scheduling rules. - example: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: matchExpressions: - values: - values @@ -184591,161 +195676,46 @@ components: - values key: key operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: "The scheduler will prefer to schedule pods to nodes that satisfy\ - \ the affinity expressions specified by this field, but it may choose\ - \ a node that violates one or more of the expressions. The node that is\ - \ most preferred is the one with the greatest sum of weights, i.e. for\ - \ each node that meets all of the scheduling requirements (resource request,\ - \ requiredDuringScheduling affinity expressions, etc.), compute a sum\ - \ by iterating through the elements of this field and adding \"weight\"\ - \ to the sum if the node matches the corresponding matchExpressions; the\ - \ node(s) with the highest sum are the most preferred." - items: - $ref: '#/components/schemas/v1.PreferredSchedulingTerm' - type: array - x-kubernetes-list-type: atomic - requiredDuringSchedulingIgnoredDuringExecution: - $ref: '#/components/schemas/v1.NodeSelector' - type: object - v1.NodeCondition: - description: NodeCondition contains condition information for a node. - example: - reason: reason - lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode properties: - lastHeartbeatTime: - description: Last time we got an update on a given condition. - format: date-time - type: string - lastTransitionTime: - description: Last time the condition transit from one status to another. - format: date-time - type: string - message: - description: Human readable message indicating details about last transition. - type: string - reason: - description: (brief) reason for the condition's last transition. - type: string - status: - description: "Status of the condition, one of True, False, Unknown." - type: string - type: - description: Type of node condition. - type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.PersistentVolumeClaimSpec' required: - - status - - type - type: object - v1.NodeConfigSource: - description: NodeConfigSource specifies a source of node configuration. Exactly - one subfield (excluding metadata) must be non-nil. This API is deprecated - since 1.22 - example: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - properties: - configMap: - $ref: '#/components/schemas/v1.ConfigMapNodeConfigSource' + - spec type: object - v1.NodeConfigStatus: - description: NodeConfigStatus describes the status of the config assigned by - Node.Spec.ConfigSource. + v1.PersistentVolumeClaimVolumeSource: + description: "PersistentVolumeClaimVolumeSource references the user's PVC in\ + \ the same namespace. This volume finds the bound PV and mounts that volume\ + \ for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper\ + \ around another type of volume that is owned by someone else (the system)." example: - lastKnownGood: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - active: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - assigned: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - error: error + claimName: claimName + readOnly: true properties: - active: - $ref: '#/components/schemas/v1.NodeConfigSource' - assigned: - $ref: '#/components/schemas/v1.NodeConfigSource' - error: - description: "Error describes any problems reconciling the Spec.ConfigSource\ - \ to the Active config. Errors may occur, for example, attempting to checkpoint\ - \ Spec.ConfigSource to the local Assigned record, attempting to checkpoint\ - \ the payload associated with Spec.ConfigSource, attempting to load or\ - \ validate the Assigned config, etc. Errors may occur at different points\ - \ while syncing config. Earlier errors (e.g. download or checkpointing\ - \ errors) will not result in a rollback to LastKnownGood, and may resolve\ - \ across Kubelet retries. Later errors (e.g. loading or validating a checkpointed\ - \ config) will result in a rollback to LastKnownGood. In the latter case,\ - \ it is usually possible to resolve the error by fixing the config assigned\ - \ in Spec.ConfigSource. You can find additional information for debugging\ - \ by searching the error message in the Kubelet log. Error is a human-readable\ - \ description of the error state; machines can check whether or not Error\ - \ is empty, but should not rely on the stability of the Error text across\ - \ Kubelet versions." + claimName: + description: "claimName is the name of a PersistentVolumeClaim in the same\ + \ namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" type: string - lastKnownGood: - $ref: '#/components/schemas/v1.NodeConfigSource' - type: object - v1.NodeDaemonEndpoints: - description: NodeDaemonEndpoints lists ports opened by daemons running on the - Node. - example: - kubeletEndpoint: - Port: 0 - properties: - kubeletEndpoint: - $ref: '#/components/schemas/v1.DaemonEndpoint' - type: object - v1.NodeFeatures: - description: NodeFeatures describes the set of features implemented by the CRI - implementation. The features contained in the NodeFeatures should depend only - on the cri implementation independent of runtime handlers. - example: - supplementalGroupsPolicy: true - properties: - supplementalGroupsPolicy: - description: SupplementalGroupsPolicy is set to true if the runtime supports - SupplementalGroupsPolicy and ContainerUser. + readOnly: + description: readOnly Will force the ReadOnly setting in VolumeMounts. Default + false. type: boolean + required: + - claimName type: object - v1.NodeList: - description: NodeList is the whole list of all Nodes which have been registered - with master. + v1.PersistentVolumeList: + description: PersistentVolumeList is a list of PersistentVolume items. example: metadata: remainingItemCount: 1 @@ -184804,118 +195774,251 @@ components: apiVersion: apiVersion kind: kind spec: - podCIDRs: - - podCIDRs - - podCIDRs - providerID: providerID - externalID: externalID - taints: - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - configSource: - configMap: + claimRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + secretNamespace: secretNamespace + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + volumeAttributesClassName: volumeAttributesClassName + mountOptions: + - mountOptions + - mountOptions + local: + path: path + fsType: fsType + capacity: + key: null + cephfs: + path: path + secretRef: + name: name + namespace: namespace + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + accessModes: + - accessModes + - accessModes + glusterfs: + path: path + endpoints: endpoints + readOnly: true + endpointsNamespace: endpointsNamespace + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + namespace: namespace + volumeID: volumeID + readOnly: true + fsType: fsType + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + nodeAffinity: + required: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + volumeMode: volumeMode + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 0 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + namespace: namespace + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + storageClassName: storageClassName + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: uid: uid - kubeletConfigKey: kubeletConfigKey + apiVersion: apiVersion + kind: kind resourceVersion: resourceVersion + fieldPath: fieldPath name: name namespace: namespace - unschedulable: true - podCIDR: podCIDR + readOnly: true + fsType: fsType + csi: + controllerPublishSecretRef: + name: name + namespace: namespace + driver: driver + nodePublishSecretRef: + name: name + namespace: namespace + nodeStageSecretRef: + name: name + namespace: namespace + volumeHandle: volumeHandle + nodeExpandSecretRef: + name: name + namespace: namespace + readOnly: true + controllerExpandSecretRef: + name: name + namespace: namespace + fsType: fsType + volumeAttributes: + key: volumeAttributes + nfs: + path: path + server: server + readOnly: true + persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type status: - daemonEndpoints: - kubeletEndpoint: - Port: 0 phase: phase - allocatable: - key: null - addresses: - - address: address - type: type - - address: address - type: type - images: - - names: - - names - - names - sizeBytes: 6 - - names: - - names - - names - sizeBytes: 6 - runtimeHandlers: - - features: - userNamespaces: true - recursiveReadOnlyMounts: true - name: name - - features: - userNamespaces: true - recursiveReadOnlyMounts: true - name: name - volumesAttached: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - capacity: - key: null - features: - supplementalGroupsPolicy: true - volumesInUse: - - volumesInUse - - volumesInUse - nodeInfo: - machineID: machineID - bootID: bootID - containerRuntimeVersion: containerRuntimeVersion - kernelVersion: kernelVersion - kubeletVersion: kubeletVersion - systemUUID: systemUUID - kubeProxyVersion: kubeProxyVersion - operatingSystem: operatingSystem - architecture: architecture - osImage: osImage - conditions: - - reason: reason - lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - config: - lastKnownGood: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - active: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - assigned: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - error: error + reason: reason + lastPhaseTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message - metadata: generation: 6 finalizers: @@ -184965,118 +196068,251 @@ components: apiVersion: apiVersion kind: kind spec: - podCIDRs: - - podCIDRs - - podCIDRs - providerID: providerID - externalID: externalID - taints: - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - configSource: - configMap: + claimRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + secretNamespace: secretNamespace + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + volumeAttributesClassName: volumeAttributesClassName + mountOptions: + - mountOptions + - mountOptions + local: + path: path + fsType: fsType + capacity: + key: null + cephfs: + path: path + secretRef: + name: name + namespace: namespace + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + accessModes: + - accessModes + - accessModes + glusterfs: + path: path + endpoints: endpoints + readOnly: true + endpointsNamespace: endpointsNamespace + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + namespace: namespace + volumeID: volumeID + readOnly: true + fsType: fsType + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + nodeAffinity: + required: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + volumeMode: volumeMode + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 0 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + namespace: namespace + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + storageClassName: storageClassName + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: uid: uid - kubeletConfigKey: kubeletConfigKey + apiVersion: apiVersion + kind: kind resourceVersion: resourceVersion + fieldPath: fieldPath name: name namespace: namespace - unschedulable: true - podCIDR: podCIDR + readOnly: true + fsType: fsType + csi: + controllerPublishSecretRef: + name: name + namespace: namespace + driver: driver + nodePublishSecretRef: + name: name + namespace: namespace + nodeStageSecretRef: + name: name + namespace: namespace + volumeHandle: volumeHandle + nodeExpandSecretRef: + name: name + namespace: namespace + readOnly: true + controllerExpandSecretRef: + name: name + namespace: namespace + fsType: fsType + volumeAttributes: + key: volumeAttributes + nfs: + path: path + server: server + readOnly: true + persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type status: - daemonEndpoints: - kubeletEndpoint: - Port: 0 phase: phase - allocatable: - key: null - addresses: - - address: address - type: type - - address: address - type: type - images: - - names: - - names - - names - sizeBytes: 6 - - names: - - names - - names - sizeBytes: 6 - runtimeHandlers: - - features: - userNamespaces: true - recursiveReadOnlyMounts: true - name: name - - features: - userNamespaces: true - recursiveReadOnlyMounts: true - name: name - volumesAttached: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - capacity: - key: null - features: - supplementalGroupsPolicy: true - volumesInUse: - - volumesInUse - - volumesInUse - nodeInfo: - machineID: machineID - bootID: bootID - containerRuntimeVersion: containerRuntimeVersion - kernelVersion: kernelVersion - kubeletVersion: kubeletVersion - systemUUID: systemUUID - kubeProxyVersion: kubeProxyVersion - operatingSystem: operatingSystem - architecture: architecture - osImage: osImage - conditions: - - reason: reason - lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - config: - lastKnownGood: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - active: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - assigned: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - error: error + reason: reason + lastPhaseTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -185084,9 +196320,9 @@ components: \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string items: - description: List of nodes + description: "items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes" items: - $ref: '#/components/schemas/v1.Node' + $ref: '#/components/schemas/v1.PersistentVolume' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -185100,531 +196336,400 @@ components: type: object x-kubernetes-group-version-kind: - group: "" - kind: NodeList + kind: PersistentVolumeList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.NodeRuntimeHandler: - description: NodeRuntimeHandler is a set of runtime handler information. - example: - features: - userNamespaces: true - recursiveReadOnlyMounts: true - name: name - properties: - features: - $ref: '#/components/schemas/v1.NodeRuntimeHandlerFeatures' - name: - description: Runtime handler name. Empty for the default runtime handler. - type: string - type: object - v1.NodeRuntimeHandlerFeatures: - description: NodeRuntimeHandlerFeatures is a set of features implemented by - the runtime handler. - example: - userNamespaces: true - recursiveReadOnlyMounts: true - properties: - recursiveReadOnlyMounts: - description: RecursiveReadOnlyMounts is set to true if the runtime handler - supports RecursiveReadOnlyMounts. - type: boolean - userNamespaces: - description: "UserNamespaces is set to true if the runtime handler supports\ - \ UserNamespaces, including for volumes." - type: boolean - type: object - v1.NodeSelector: - description: "A node selector represents the union of the results of one or\ - \ more label queries over a set of nodes; that is, it represents the OR of\ - \ the selectors represented by the node selector terms." - example: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - properties: - nodeSelectorTerms: - description: Required. A list of node selector terms. The terms are ORed. - items: - $ref: '#/components/schemas/v1.NodeSelectorTerm' - type: array - x-kubernetes-list-type: atomic - required: - - nodeSelectorTerms - type: object - x-kubernetes-map-type: atomic - v1.NodeSelectorRequirement: - description: "A node selector requirement is a selector that contains values,\ - \ a key, and an operator that relates the key and values." - example: - values: - - values - - values - key: key - operator: operator - properties: - key: - description: The label key that the selector applies to. - type: string - operator: - description: "Represents a key's relationship to a set of values. Valid\ - \ operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt." - type: string - values: - description: "An array of string values. If the operator is In or NotIn,\ - \ the values array must be non-empty. If the operator is Exists or DoesNotExist,\ - \ the values array must be empty. If the operator is Gt or Lt, the values\ - \ array must have a single element, which will be interpreted as an integer.\ - \ This array is replaced during a strategic merge patch." - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - v1.NodeSelectorTerm: - description: A null or empty node selector term matches no objects. The requirements - of them are ANDed. The TopologySelectorTerm type implements a subset of the - NodeSelectorTerm. - example: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - properties: - matchExpressions: - description: A list of node selector requirements by node's labels. - items: - $ref: '#/components/schemas/v1.NodeSelectorRequirement' - type: array - x-kubernetes-list-type: atomic - matchFields: - description: A list of node selector requirements by node's fields. - items: - $ref: '#/components/schemas/v1.NodeSelectorRequirement' - type: array - x-kubernetes-list-type: atomic - type: object - x-kubernetes-map-type: atomic - v1.NodeSpec: - description: NodeSpec describes the attributes that a node is created with. + v1.PersistentVolumeSpec: + description: PersistentVolumeSpec is the specification of a persistent volume. example: - podCIDRs: - - podCIDRs - - podCIDRs - providerID: providerID - externalID: externalID - taints: - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - configSource: - configMap: + claimRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + secretNamespace: secretNamespace + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + volumeAttributesClassName: volumeAttributesClassName + mountOptions: + - mountOptions + - mountOptions + local: + path: path + fsType: fsType + capacity: + key: null + cephfs: + path: path + secretRef: + name: name + namespace: namespace + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + accessModes: + - accessModes + - accessModes + glusterfs: + path: path + endpoints: endpoints + readOnly: true + endpointsNamespace: endpointsNamespace + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + namespace: namespace + volumeID: volumeID + readOnly: true + fsType: fsType + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + nodeAffinity: + required: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + volumeMode: volumeMode + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 0 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + namespace: namespace + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + storageClassName: storageClassName + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: uid: uid - kubeletConfigKey: kubeletConfigKey + apiVersion: apiVersion + kind: kind resourceVersion: resourceVersion + fieldPath: fieldPath name: name namespace: namespace - unschedulable: true - podCIDR: podCIDR + readOnly: true + fsType: fsType + csi: + controllerPublishSecretRef: + name: name + namespace: namespace + driver: driver + nodePublishSecretRef: + name: name + namespace: namespace + nodeStageSecretRef: + name: name + namespace: namespace + volumeHandle: volumeHandle + nodeExpandSecretRef: + name: name + namespace: namespace + readOnly: true + controllerExpandSecretRef: + name: name + namespace: namespace + fsType: fsType + volumeAttributes: + key: volumeAttributes + nfs: + path: path + server: server + readOnly: true + persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type properties: - configSource: - $ref: '#/components/schemas/v1.NodeConfigSource' - externalID: - description: "Deprecated. Not all kubelets will set this field. Remove field\ - \ after 1.13. see: https://issues.k8s.io/61966" - type: string - podCIDR: - description: PodCIDR represents the pod IP range assigned to the node. - type: string - podCIDRs: - description: "podCIDRs represents the IP ranges assigned to the node for\ - \ usage by Pods on that node. If this field is specified, the 0th entry\ - \ must match the podCIDR field. It may contain at most 1 value for each\ - \ of IPv4 and IPv6." + accessModes: + description: "accessModes contains all ways the volume can be mounted. More\ + \ info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes" items: type: string type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: set - providerID: - description: "ID of the node assigned by the cloud provider in the format:\ - \ ://" - type: string - taints: - description: "If specified, the node's taints." - items: - $ref: '#/components/schemas/v1.Taint' - type: array x-kubernetes-list-type: atomic - unschedulable: - description: "Unschedulable controls node schedulability of new pods. By\ - \ default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration" - type: boolean - type: object - v1.NodeStatus: - description: NodeStatus is information about the current status of a node. - example: - daemonEndpoints: - kubeletEndpoint: - Port: 0 - phase: phase - allocatable: - key: null - addresses: - - address: address - type: type - - address: address - type: type - images: - - names: - - names - - names - sizeBytes: 6 - - names: - - names - - names - sizeBytes: 6 - runtimeHandlers: - - features: - userNamespaces: true - recursiveReadOnlyMounts: true - name: name - - features: - userNamespaces: true - recursiveReadOnlyMounts: true - name: name - volumesAttached: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - capacity: - key: null - features: - supplementalGroupsPolicy: true - volumesInUse: - - volumesInUse - - volumesInUse - nodeInfo: - machineID: machineID - bootID: bootID - containerRuntimeVersion: containerRuntimeVersion - kernelVersion: kernelVersion - kubeletVersion: kubeletVersion - systemUUID: systemUUID - kubeProxyVersion: kubeProxyVersion - operatingSystem: operatingSystem - architecture: architecture - osImage: osImage - conditions: - - reason: reason - lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - config: - lastKnownGood: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - active: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - assigned: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - error: error - properties: - addresses: - description: "List of addresses reachable to the node. Queried from cloud\ - \ provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#addresses\ - \ Note: This field is declared as mergeable, but the merge key is not\ - \ sufficiently unique, which can cause data corruption when it is merged.\ - \ Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391\ - \ for an example. Consumers should assume that addresses can change during\ - \ the lifetime of a Node. However, there are some exceptions where this\ - \ may not be possible, such as Pods that inherit a Node's address in its\ - \ own status or consumers of the downward API (status.hostIP)." - items: - $ref: '#/components/schemas/v1.NodeAddress' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - x-kubernetes-patch-merge-key: type - allocatable: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: Allocatable represents the resources of a node that are available - for scheduling. Defaults to Capacity. - type: object + awsElasticBlockStore: + $ref: '#/components/schemas/v1.AWSElasticBlockStoreVolumeSource' + azureDisk: + $ref: '#/components/schemas/v1.AzureDiskVolumeSource' + azureFile: + $ref: '#/components/schemas/v1.AzureFilePersistentVolumeSource' capacity: additionalProperties: $ref: '#/components/schemas/resource.Quantity' - description: "Capacity represents the total resources of a node. More info:\ - \ https://kubernetes.io/docs/reference/node/node-status/#capacity" + description: "capacity is the description of the persistent volume's resources\ + \ and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity" type: object - conditions: - description: "Conditions is an array of current observed node conditions.\ - \ More info: https://kubernetes.io/docs/reference/node/node-status/#condition" - items: - $ref: '#/components/schemas/v1.NodeCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - x-kubernetes-patch-merge-key: type - config: - $ref: '#/components/schemas/v1.NodeConfigStatus' - daemonEndpoints: - $ref: '#/components/schemas/v1.NodeDaemonEndpoints' - features: - $ref: '#/components/schemas/v1.NodeFeatures' - images: - description: List of container images on this node - items: - $ref: '#/components/schemas/v1.ContainerImage' - type: array - x-kubernetes-list-type: atomic - nodeInfo: - $ref: '#/components/schemas/v1.NodeSystemInfo' - phase: - description: "NodePhase is the recently observed lifecycle phase of the\ - \ node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase\ - \ The field is never populated, and now is deprecated." - type: string - runtimeHandlers: - description: The available runtime handlers. - items: - $ref: '#/components/schemas/v1.NodeRuntimeHandler' - type: array - x-kubernetes-list-type: atomic - volumesAttached: - description: List of volumes that are attached to the node. - items: - $ref: '#/components/schemas/v1.AttachedVolume' - type: array - x-kubernetes-list-type: atomic - volumesInUse: - description: List of attachable volumes in use (mounted) by the node. + cephfs: + $ref: '#/components/schemas/v1.CephFSPersistentVolumeSource' + cinder: + $ref: '#/components/schemas/v1.CinderPersistentVolumeSource' + claimRef: + $ref: '#/components/schemas/v1.ObjectReference' + csi: + $ref: '#/components/schemas/v1.CSIPersistentVolumeSource' + fc: + $ref: '#/components/schemas/v1.FCVolumeSource' + flexVolume: + $ref: '#/components/schemas/v1.FlexPersistentVolumeSource' + flocker: + $ref: '#/components/schemas/v1.FlockerVolumeSource' + gcePersistentDisk: + $ref: '#/components/schemas/v1.GCEPersistentDiskVolumeSource' + glusterfs: + $ref: '#/components/schemas/v1.GlusterfsPersistentVolumeSource' + hostPath: + $ref: '#/components/schemas/v1.HostPathVolumeSource' + iscsi: + $ref: '#/components/schemas/v1.ISCSIPersistentVolumeSource' + local: + $ref: '#/components/schemas/v1.LocalVolumeSource' + mountOptions: + description: "mountOptions is the list of mount options, e.g. [\"ro\", \"\ + soft\"]. Not validated - mount will simply fail if one is invalid. More\ + \ info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options" items: type: string type: array x-kubernetes-list-type: atomic - type: object - v1.NodeSystemInfo: - description: NodeSystemInfo is a set of ids/uuids to uniquely identify the node. - example: - machineID: machineID - bootID: bootID - containerRuntimeVersion: containerRuntimeVersion - kernelVersion: kernelVersion - kubeletVersion: kubeletVersion - systemUUID: systemUUID - kubeProxyVersion: kubeProxyVersion - operatingSystem: operatingSystem - architecture: architecture - osImage: osImage - properties: - architecture: - description: The Architecture reported by the node - type: string - bootID: - description: Boot ID reported by the node. - type: string - containerRuntimeVersion: - description: ContainerRuntime Version reported by the node through runtime - remote API (e.g. containerd://1.4.2). - type: string - kernelVersion: - description: Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). - type: string - kubeProxyVersion: - description: "Deprecated: KubeProxy Version reported by the node." - type: string - kubeletVersion: - description: Kubelet Version reported by the node. - type: string - machineID: - description: "MachineID reported by the node. For unique machine identification\ - \ in the cluster this field is preferred. Learn more from man(5) machine-id:\ - \ http://man7.org/linux/man-pages/man5/machine-id.5.html" + nfs: + $ref: '#/components/schemas/v1.NFSVolumeSource' + nodeAffinity: + $ref: '#/components/schemas/v1.VolumeNodeAffinity' + persistentVolumeReclaimPolicy: + description: "persistentVolumeReclaimPolicy defines what happens to a persistent\ + \ volume when released from its claim. Valid options are Retain (default\ + \ for manually created PersistentVolumes), Delete (default for dynamically\ + \ provisioned PersistentVolumes), and Recycle (deprecated). Recycle must\ + \ be supported by the volume plugin underlying this PersistentVolume.\ + \ More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming" type: string - operatingSystem: - description: The Operating System reported by the node + photonPersistentDisk: + $ref: '#/components/schemas/v1.PhotonPersistentDiskVolumeSource' + portworxVolume: + $ref: '#/components/schemas/v1.PortworxVolumeSource' + quobyte: + $ref: '#/components/schemas/v1.QuobyteVolumeSource' + rbd: + $ref: '#/components/schemas/v1.RBDPersistentVolumeSource' + scaleIO: + $ref: '#/components/schemas/v1.ScaleIOPersistentVolumeSource' + storageClassName: + description: storageClassName is the name of StorageClass to which this + persistent volume belongs. Empty value means that this volume does not + belong to any StorageClass. type: string - osImage: - description: OS Image reported by the node from /etc/os-release (e.g. Debian - GNU/Linux 7 (wheezy)). + storageos: + $ref: '#/components/schemas/v1.StorageOSPersistentVolumeSource' + volumeAttributesClassName: + description: "Name of VolumeAttributesClass to which this persistent volume\ + \ belongs. Empty value is not allowed. When this field is not set, it\ + \ indicates that this volume does not belong to any VolumeAttributesClass.\ + \ This field is mutable and can be changed by the CSI driver after a volume\ + \ has been updated successfully to a new class. For an unbound PersistentVolume,\ + \ the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims\ + \ during the binding process. This is a beta field and requires enabling\ + \ VolumeAttributesClass feature (off by default)." type: string - systemUUID: - description: SystemUUID reported by the node. For unique machine identification - MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid + volumeMode: + description: volumeMode defines if a volume is intended to be used with + a formatted filesystem or to remain in raw block state. Value of Filesystem + is implied when not included in spec. type: string - required: - - architecture - - bootID - - containerRuntimeVersion - - kernelVersion - - kubeProxyVersion - - kubeletVersion - - machineID - - operatingSystem - - osImage - - systemUUID + vsphereVolume: + $ref: '#/components/schemas/v1.VsphereVirtualDiskVolumeSource' type: object - v1.ObjectFieldSelector: - description: ObjectFieldSelector selects an APIVersioned field of an object. + v1.PersistentVolumeStatus: + description: PersistentVolumeStatus is the current status of a persistent volume. example: - apiVersion: apiVersion - fieldPath: fieldPath + phase: phase + reason: reason + lastPhaseTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message properties: - apiVersion: - description: "Version of the schema the FieldPath is written in terms of,\ - \ defaults to \"v1\"." + lastPhaseTransitionTime: + description: lastPhaseTransitionTime is the time the phase transitioned + from one to another and automatically resets to current time everytime + a volume phase transitions. + format: date-time type: string - fieldPath: - description: Path of the field to select in the specified API version. + message: + description: message is a human-readable message indicating details about + why the volume is in this state. + type: string + phase: + description: "phase indicates if a volume is available, bound to a claim,\ + \ or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase" + type: string + reason: + description: reason is a brief CamelCase string that describes any failure + and is meant for machine parsing and tidy display in the CLI. type: string - required: - - fieldPath type: object - x-kubernetes-map-type: atomic - v1.ObjectReference: - description: ObjectReference contains enough information to let you inspect - or modify the referred object. + v1.PhotonPersistentDiskVolumeSource: + description: Represents a Photon Controller persistent disk resource. example: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace + pdID: pdID + fsType: fsType properties: - apiVersion: - description: API version of the referent. - type: string - fieldPath: - description: "If referring to a piece of an object instead of an entire\ - \ object, this string should contain a valid JSON/Go field access statement,\ - \ such as desiredState.manifest.containers[2]. For example, if the object\ - \ reference is to a container within a pod, this would take on a value\ - \ like: \"spec.containers{name}\" (where \"name\" refers to the name of\ - \ the container that triggered the event) or if no container name is specified\ - \ \"spec.containers[2]\" (container with index 2 in this pod). This syntax\ - \ is chosen only to have some well-defined way of referencing a part of\ - \ an object." - type: string - kind: - description: "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" - type: string - namespace: - description: "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/" - type: string - resourceVersion: - description: "Specific resourceVersion to which this reference is made,\ - \ if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency" + fsType: + description: "fsType is the filesystem type to mount. Must be a filesystem\ + \ type supported by the host operating system. Ex. \"ext4\", \"xfs\",\ + \ \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified." type: string - uid: - description: "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids" + pdID: + description: pdID is the ID that identifies Photon Controller persistent + disk type: string + required: + - pdID type: object - x-kubernetes-map-type: atomic - v1.PersistentVolume: - description: "PersistentVolume (PV) is a storage resource provisioned by an\ - \ administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes" + v1.Pod: + description: Pod is a collection of containers that can run on a host. This + resource is created by clients and scheduled onto hosts. example: metadata: generation: 6 @@ -185675,1203 +196780,2611 @@ components: apiVersion: apiVersion kind: kind spec: - claimRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - secretNamespace: secretNamespace - readOnly: true - shareName: shareName - flexVolume: - driver: driver + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 9 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers options: - key: options - secretRef: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + fsGroup: 7 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulingGates: + - name: name + - name: name + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: + key: null + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP name: name - namespace: namespace - readOnly: true - fsType: fsType - volumeAttributesClassName: volumeAttributesClassName - mountOptions: - - mountOptions - - mountOptions - local: - path: path - fsType: fsType - capacity: - key: null - cephfs: - path: path - secretRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - namespace: namespace - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - namespace: namespace - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - accessModes: - - accessModes - - accessModes - glusterfs: - path: path - endpoints: endpoints - readOnly: true - endpointsNamespace: endpointsNamespace - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - namespace: namespace - volumeID: volumeID - readOnly: true - fsType: fsType - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - nodeAffinity: - required: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchFields: - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - volumeMode: volumeMode - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 0 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - namespace: namespace - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - storageClassName: storageClassName - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath name: name - namespace: namespace - readOnly: true - fsType: fsType - csi: - controllerPublishSecretRef: + - devicePath: devicePath name: name - namespace: namespace - driver: driver - nodePublishSecretRef: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP name: name - namespace: namespace - nodeStageSecretRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - namespace: namespace - volumeHandle: volumeHandle - nodeExpandSecretRef: + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - namespace: namespace - readOnly: true - controllerExpandSecretRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - namespace: namespace - fsType: fsType - volumeAttributes: - key: volumeAttributes - nfs: - path: path - server: server - readOnly: true - persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - status: - phase: phase - reason: reason - lastPhaseTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" - type: string - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.PersistentVolumeSpec' - status: - $ref: '#/components/schemas/v1.PersistentVolumeStatus' - type: object - x-kubernetes-group-version-kind: - - group: "" - kind: PersistentVolume - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.PersistentVolumeClaim: - description: PersistentVolumeClaim is a user's request for and claim to a persistent - volume - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 6 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName name: name - volumeMode: volumeMode - status: - phase: phase - allocatedResources: - key: null - currentVolumeAttributesClassName: currentVolumeAttributesClassName - allocatedResourceStatuses: - key: allocatedResourceStatuses - accessModes: - - accessModes - - accessModes - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - modifyVolumeStatus: - targetVolumeAttributesClassName: targetVolumeAttributesClassName - status: status - capacity: - key: null - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" - type: string - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.PersistentVolumeClaimSpec' - status: - $ref: '#/components/schemas/v1.PersistentVolumeClaimStatus' - type: object - x-kubernetes-group-version-kind: - - group: "" - kind: PersistentVolumeClaim - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.PersistentVolumeClaimCondition: - description: PersistentVolumeClaimCondition contains details about state of - pvc - example: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - properties: - lastProbeTime: - description: lastProbeTime is the time we probed the condition. - format: date-time - type: string - lastTransitionTime: - description: lastTransitionTime is the time the condition transitioned from - one status to another. - format: date-time - type: string - message: - description: message is the human-readable message indicating details about - last transition. - type: string - reason: - description: "reason is a unique, this should be a short, machine understandable\ - \ string that gives the reason for condition's last transition. If it\ - \ reports \"Resizing\" that means the underlying persistent volume is\ - \ being resized." - type: string - status: - description: "Status is the status of the condition. Can be True, False,\ - \ Unknown. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=state%20of%20pvc-,conditions.status,-(string)%2C%20required" - type: string - type: - description: "Type is the type of the condition. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=set%20to%20%27ResizeStarted%27.-,PersistentVolumeClaimCondition,-contains%20details%20about" - type: string - required: - - status - - type - type: object - v1.PersistentVolumeClaimList: - description: PersistentVolumeClaimList is a list of PersistentVolumeClaim items. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind + - devicePath: devicePath name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir resources: + claims: + - request: request + name: name + - request: request + name: name requests: key: null limits: key: null - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - volumeMode: volumeMode - status: - phase: phase - allocatedResources: - key: null - currentVolumeAttributesClassName: currentVolumeAttributesClassName - allocatedResourceStatuses: - key: allocatedResourceStatuses - accessModes: - - accessModes - - accessModes - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - modifyVolumeStatus: - targetVolumeAttributesClassName: targetVolumeAttributesClassName - status: status - capacity: - key: null - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir resources: + claims: + - request: request + name: name + - request: request + name: name requests: key: null limits: key: null - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - volumeMode: volumeMode - status: - phase: phase - allocatedResources: - key: null - currentVolumeAttributesClassName: currentVolumeAttributesClassName - allocatedResourceStatuses: - key: allocatedResourceStatuses - accessModes: - - accessModes - - accessModes - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - modifyVolumeStatus: - targetVolumeAttributesClassName: targetVolumeAttributesClassName - status: status - capacity: - key: null - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" - type: string - items: - description: "items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" - items: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' - type: array - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: "" - kind: PersistentVolumeClaimList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.PersistentVolumeClaimSpec: - description: PersistentVolumeClaimSpec describes the common attributes of storage - devices and allows a Source for provider-specific attributes - example: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - properties: - accessModes: - description: "accessModes contains the desired access modes the volume should\ - \ have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1" - items: - type: string - type: array - x-kubernetes-list-type: atomic - dataSource: - $ref: '#/components/schemas/v1.TypedLocalObjectReference' - dataSourceRef: - $ref: '#/components/schemas/v1.TypedObjectReference' - resources: - $ref: '#/components/schemas/v1.VolumeResourceRequirements' - selector: - $ref: '#/components/schemas/v1.LabelSelector' - storageClassName: - description: "storageClassName is the name of the StorageClass required\ - \ by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1" - type: string - volumeAttributesClassName: - description: "volumeAttributesClassName may be used to set the VolumeAttributesClass\ - \ used by this claim. If specified, the CSI driver will create or update\ - \ the volume with the attributes defined in the corresponding VolumeAttributesClass.\ - \ This has a different purpose than storageClassName, it can be changed\ - \ after the claim is created. An empty string value means that no VolumeAttributesClass\ - \ will be applied to the claim but it's not allowed to reset this field\ - \ to empty string once it is set. If unspecified and the PersistentVolumeClaim\ - \ is unbound, the default VolumeAttributesClass will be set by the persistentvolume\ - \ controller if it exists. If the resource referred to by volumeAttributesClass\ - \ does not exist, this PersistentVolumeClaim will be set to a Pending\ - \ state, as reflected by the modifyVolumeStatus field, until such as a\ - \ resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/\ - \ (Beta) Using this field requires the VolumeAttributesClass feature gate\ - \ to be enabled (off by default)." - type: string - volumeMode: - description: volumeMode defines what type of volume is required by the claim. - Value of Filesystem is implied when not included in claim spec. - type: string - volumeName: - description: volumeName is the binding reference to the PersistentVolume - backing this claim. - type: string - type: object - v1.PersistentVolumeClaimStatus: - description: PersistentVolumeClaimStatus is the current status of a persistent - volume claim. - example: - phase: phase - allocatedResources: - key: null - currentVolumeAttributesClassName: currentVolumeAttributesClassName - allocatedResourceStatuses: - key: allocatedResourceStatuses - accessModes: - - accessModes - - accessModes - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - modifyVolumeStatus: - targetVolumeAttributesClassName: targetVolumeAttributesClassName - status: status - capacity: - key: null - properties: - accessModes: - description: "accessModes contains the actual access modes the volume backing\ - \ the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1" - items: - type: string - type: array - x-kubernetes-list-type: atomic - allocatedResourceStatuses: - additionalProperties: - type: string - description: "allocatedResourceStatuses stores status of resource being\ - \ resized for the given PVC. Key names follow standard Kubernetes label\ - \ syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage\ - \ - the capacity of the volume.\n\t* Custom resources must use implementation-defined\ - \ prefixed names such as \"example.com/my-custom-resource\"\nApart from\ - \ above values - keys that are unprefixed or have kubernetes.io prefix\ - \ are considered reserved and hence may not be used.\n\nClaimResourceStatus\ - \ can be in any of following states:\n\t- ControllerResizeInProgress:\n\ - \t\tState set when resize controller starts resizing the volume in control-plane.\n\ - \t- ControllerResizeFailed:\n\t\tState set when resize has failed in resize\ - \ controller with a terminal error.\n\t- NodeResizePending:\n\t\tState\ - \ set when resize controller has finished resizing the volume but further\ - \ resizing of\n\t\tvolume is needed on the node.\n\t- NodeResizeInProgress:\n\ - \t\tState set when kubelet starts resizing the volume.\n\t- NodeResizeFailed:\n\ - \t\tState set when resizing has failed in kubelet with a terminal error.\ - \ Transient errors don't set\n\t\tNodeResizeFailed.\nFor example: if expanding\ - \ a PVC for more capacity - this field can be one of the following states:\n\ - \t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\ - \n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\ - \n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\ - \n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\ - \n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\ - \nWhen this field is not set, it means that no resize operation is in\ - \ progress for the given PVC.\n\nA controller that receives PVC update\ - \ with previously unknown resourceName or ClaimResourceStatus should ignore\ - \ the update for the purpose it was designed. For example - a controller\ - \ that only is responsible for resizing capacity of the volume, should\ - \ ignore PVC updates that change other valid resources associated with\ - \ PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure\ - \ feature." - type: object - x-kubernetes-map-type: granular - allocatedResources: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: "allocatedResources tracks the resources allocated to a PVC\ - \ including its capacity. Key names follow standard Kubernetes label syntax.\ - \ Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the\ - \ capacity of the volume.\n\t* Custom resources must use implementation-defined\ - \ prefixed names such as \"example.com/my-custom-resource\"\nApart from\ - \ above values - keys that are unprefixed or have kubernetes.io prefix\ - \ are considered reserved and hence may not be used.\n\nCapacity reported\ - \ here may be larger than the actual capacity when a volume expansion\ - \ operation is requested. For storage quota, the larger value from allocatedResources\ - \ and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources\ - \ alone is used for quota calculation. If a volume expansion capacity\ - \ request is lowered, allocatedResources is only lowered if there are\ - \ no expansion operations in progress and if the actual volume capacity\ - \ is equal or lower than the requested capacity.\n\nA controller that\ - \ receives PVC update with previously unknown resourceName should ignore\ - \ the update for the purpose it was designed. For example - a controller\ - \ that only is responsible for resizing capacity of the volume, should\ - \ ignore PVC updates that change other valid resources associated with\ - \ PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure\ - \ feature." - type: object - capacity: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: capacity represents the actual resources of the underlying - volume. - type: object - conditions: - description: conditions is the current Condition of persistent volume claim. - If underlying persistent volume is being resized then the Condition will - be set to 'Resizing'. - items: - $ref: '#/components/schemas/v1.PersistentVolumeClaimCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - x-kubernetes-patch-merge-key: type - currentVolumeAttributesClassName: - description: "currentVolumeAttributesClassName is the current name of the\ - \ VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass\ - \ applied to this PersistentVolumeClaim This is a beta field and requires\ - \ enabling VolumeAttributesClass feature (off by default)." - type: string - modifyVolumeStatus: - $ref: '#/components/schemas/v1.ModifyVolumeStatus' - phase: - description: phase represents the current phase of PersistentVolumeClaim. - type: string - type: object - v1.PersistentVolumeClaimTemplate: - description: PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim - objects as part of an EphemeralVolumeSource. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal name: name - volumeMode: volumeMode - properties: - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.PersistentVolumeClaimSpec' - required: - - spec - type: object - v1.PersistentVolumeClaimVolumeSource: - description: "PersistentVolumeClaimVolumeSource references the user's PVC in\ - \ the same namespace. This volume finds the bound PV and mounts that volume\ - \ for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper\ - \ around another type of volume that is owned by someone else (the system)." - example: - claimName: claimName - readOnly: true - properties: - claimName: - description: "claimName is the name of a PersistentVolumeClaim in the same\ - \ namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" - type: string - readOnly: - description: readOnly Will force the ReadOnly setting in VolumeMounts. Default - false. - type: boolean - required: - - claimName - type: object - v1.PersistentVolumeList: - description: PersistentVolumeList is a list of PersistentVolume items. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - claimRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - namespace: namespace - quobyte: - volume: volume - registry: registry readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - secretNamespace: secretNamespace + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name - namespace: namespace - readOnly: true - fsType: fsType - volumeAttributesClassName: volumeAttributesClassName - mountOptions: - - mountOptions - - mountOptions - local: - path: path - fsType: fsType - capacity: - key: null - cephfs: - path: path + optional: true + prefix: prefix secretRef: name: name - namespace: namespace - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix secretRef: name: name - namespace: namespace - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - accessModes: - - accessModes - - accessModes - glusterfs: - path: path - endpoints: endpoints - readOnly: true - endpointsNamespace: endpointsNamespace - gcePersistentDisk: - partition: 6 + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix secretRef: name: name - namespace: namespace - volumeID: volumeID - readOnly: true - fsType: fsType - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: nodeAffinity: - required: + requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - values: @@ -186917,257 +199430,218 @@ components: - values key: key operator: operator - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - volumeMode: volumeMode - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 0 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - namespace: namespace - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - storageClassName: storageClassName - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - readOnly: true - fsType: fsType - csi: - controllerPublishSecretRef: - name: name - namespace: namespace - driver: driver - nodePublishSecretRef: - name: name - namespace: namespace - nodeStageSecretRef: - name: name - namespace: namespace - volumeHandle: volumeHandle - nodeExpandSecretRef: - name: name - namespace: namespace - readOnly: true - controllerExpandSecretRef: - name: name - namespace: namespace - fsType: fsType - volumeAttributes: - key: volumeAttributes - nfs: - path: path - server: server - readOnly: true - persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - status: - phase: phase - reason: reason - lastPhaseTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - claimRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - secretNamespace: secretNamespace - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - volumeAttributesClassName: volumeAttributesClassName - mountOptions: - - mountOptions - - mountOptions - local: - path: path - fsType: fsType - capacity: - key: null - cephfs: - path: path - secretRef: - name: name - namespace: namespace - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - accessModes: - - accessModes - - accessModes - glusterfs: - path: path - endpoints: endpoints - readOnly: true - endpointsNamespace: endpointsNamespace - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - namespace: namespace - volumeID: volumeID - readOnly: true - fsType: fsType - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - nodeAffinity: - required: - nodeSelectorTerms: - - matchExpressions: + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: - values: - values - values @@ -187178,7 +199652,10 @@ components: - values key: key operator: operator - matchFields: + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: - values: - values - values @@ -187189,7 +199666,20 @@ components: - values key: key operator: operator - - matchExpressions: + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: - values: - values - values @@ -187200,7 +199690,10 @@ components: - values key: key operator: operator - matchFields: + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: - values: - values - values @@ -187211,238 +199704,998 @@ components: - values key: key operator: operator - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - volumeMode: volumeMode - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 0 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + status: + phase: phase + resourceClaimStatuses: + - resourceClaimName: resourceClaimName + name: name + - resourceClaimName: resourceClaimName + name: name + reason: reason + containerStatuses: + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request name: name - namespace: namespace - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: + - request: request name: name - namespace: namespace + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - storageClassName: storageClassName - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request name: name - namespace: namespace + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name readOnly: true - fsType: fsType - csi: - controllerPublishSecretRef: + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + hostIP: hostIP + nominatedNodeName: nominatedNodeName + message: message + podIPs: + - ip: ip + - ip: ip + podIP: podIP + ephemeralContainerStatuses: + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request name: name - namespace: namespace - driver: driver - nodePublishSecretRef: + - request: request name: name - namespace: namespace - nodeStageSecretRef: + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request name: name - namespace: namespace - volumeHandle: volumeHandle - nodeExpandSecretRef: + - request: request name: name - namespace: namespace + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name readOnly: true - controllerExpandSecretRef: + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + hostIPs: + - ip: ip + - ip: ip + resize: resize + startTime: 2000-01-23T04:56:07.000+00:00 + qosClass: qosClass + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 3 + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 3 + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + initContainerStatuses: + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request name: name - namespace: namespace - fsType: fsType - volumeAttributes: - key: volumeAttributes - nfs: - path: path - server: server + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name readOnly: true - persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy - portworxVolume: - volumeID: volumeID + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs + recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - status: - phase: phase - reason: reason - lastPhaseTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + observedGeneration: 8 properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ \ of an object. Servers should convert recognized schemas to the latest\ \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string - items: - description: "items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes" - items: - $ref: '#/components/schemas/v1.PersistentVolume' - type: array kind: description: "Kind is a string value representing the REST resource this\ \ object represents. Servers may infer this from the endpoint the client\ \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.PodSpec' + status: + $ref: '#/components/schemas/v1.PodStatus' type: object x-kubernetes-group-version-kind: - group: "" - kind: PersistentVolumeList + kind: Pod version: v1 x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.PersistentVolumeSpec: - description: PersistentVolumeSpec is the specification of a persistent volume. + - io.kubernetes.client.common.KubernetesObject + v1.PodAffinity: + description: Pod affinity is a group of inter pod affinity scheduling rules. example: - claimRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - secretNamespace: secretNamespace - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - volumeAttributesClassName: volumeAttributesClassName - mountOptions: - - mountOptions - - mountOptions - local: - path: path - fsType: fsType - capacity: - key: null - cephfs: - path: path - secretRef: - name: name - namespace: namespace - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - accessModes: - - accessModes - - accessModes - glusterfs: - path: path - endpoints: endpoints - readOnly: true - endpointsNamespace: endpointsNamespace - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - namespace: namespace - volumeID: volumeID - readOnly: true - fsType: fsType - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - nodeAffinity: - required: - nodeSelectorTerms: - - matchExpressions: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + properties: + preferredDuringSchedulingIgnoredDuringExecution: + description: "The scheduler will prefer to schedule pods to nodes that satisfy\ + \ the affinity expressions specified by this field, but it may choose\ + \ a node that violates one or more of the expressions. The node that is\ + \ most preferred is the one with the greatest sum of weights, i.e. for\ + \ each node that meets all of the scheduling requirements (resource request,\ + \ requiredDuringScheduling affinity expressions, etc.), compute a sum\ + \ by iterating through the elements of this field and adding \"weight\"\ + \ to the sum if the node has pods which matches the corresponding podAffinityTerm;\ + \ the node(s) with the highest sum are the most preferred." + items: + $ref: '#/components/schemas/v1.WeightedPodAffinityTerm' + type: array + x-kubernetes-list-type: atomic + requiredDuringSchedulingIgnoredDuringExecution: + description: "If the affinity requirements specified by this field are not\ + \ met at scheduling time, the pod will not be scheduled onto the node.\ + \ If the affinity requirements specified by this field cease to be met\ + \ at some point during pod execution (e.g. due to a pod label update),\ + \ the system may or may not try to eventually evict the pod from its node.\ + \ When there are multiple elements, the lists of nodes corresponding to\ + \ each podAffinityTerm are intersected, i.e. all terms must be satisfied." + items: + $ref: '#/components/schemas/v1.PodAffinityTerm' + type: array + x-kubernetes-list-type: atomic + type: object + v1.PodAffinityTerm: + description: "Defines a set of pods (namely those matching the labelSelector\ + \ relative to the given namespace(s)) that this pod should be co-located (affinity)\ + \ or not co-located (anti-affinity) with, where co-located is defined as running\ + \ on a node whose value of the label with key matches that of\ + \ any node on which a pod of the set of pods is running" + example: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + properties: + labelSelector: + $ref: '#/components/schemas/v1.LabelSelector' + matchLabelKeys: + description: "MatchLabelKeys is a set of pod label keys to select which\ + \ pods will be taken into consideration. The keys are used to lookup values\ + \ from the incoming pod labels, those key-value labels are merged with\ + \ `labelSelector` as `key in (value)` to select the group of existing\ + \ pods which pods will be taken into consideration for the incoming pod's\ + \ pod (anti) affinity. Keys that don't exist in the incoming pod labels\ + \ will be ignored. The default value is empty. The same key is forbidden\ + \ to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys\ + \ cannot be set when labelSelector isn't set." + items: + type: string + type: array + x-kubernetes-list-type: atomic + mismatchLabelKeys: + description: "MismatchLabelKeys is a set of pod label keys to select which\ + \ pods will be taken into consideration. The keys are used to lookup values\ + \ from the incoming pod labels, those key-value labels are merged with\ + \ `labelSelector` as `key notin (value)` to select the group of existing\ + \ pods which pods will be taken into consideration for the incoming pod's\ + \ pod (anti) affinity. Keys that don't exist in the incoming pod labels\ + \ will be ignored. The default value is empty. The same key is forbidden\ + \ to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys\ + \ cannot be set when labelSelector isn't set." + items: + type: string + type: array + x-kubernetes-list-type: atomic + namespaceSelector: + $ref: '#/components/schemas/v1.LabelSelector' + namespaces: + description: namespaces specifies a static list of namespace names that + the term applies to. The term is applied to the union of the namespaces + listed in this field and the ones selected by namespaceSelector. null + or empty namespaces list and null namespaceSelector means "this pod's + namespace". + items: + type: string + type: array + x-kubernetes-list-type: atomic + topologyKey: + description: "This pod should be co-located (affinity) or not co-located\ + \ (anti-affinity) with the pods matching the labelSelector in the specified\ + \ namespaces, where co-located is defined as running on a node whose value\ + \ of the label with key topologyKey matches that of any node on which\ + \ any of the selected pods is running. Empty topologyKey is not allowed." + type: string + required: + - topologyKey + type: object + v1.PodAntiAffinity: + description: Pod anti affinity is a group of inter pod anti affinity scheduling + rules. + example: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: - values: - values - values @@ -187453,7 +200706,10 @@ components: - values key: key operator: operator - matchFields: + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: - values: - values - values @@ -187464,7 +200720,22 @@ components: - values key: key operator: operator - - matchExpressions: + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: - values: - values - values @@ -187475,7 +200746,10 @@ components: - values key: key operator: operator - matchFields: + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: - values: - values - values @@ -187486,1378 +200760,1249 @@ components: - values key: key operator: operator - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - volumeMode: volumeMode - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 0 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - namespace: namespace - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - storageClassName: storageClassName - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - readOnly: true - fsType: fsType - csi: - controllerPublishSecretRef: - name: name - namespace: namespace - driver: driver - nodePublishSecretRef: - name: name - namespace: namespace - nodeStageSecretRef: - name: name - namespace: namespace - volumeHandle: volumeHandle - nodeExpandSecretRef: - name: name - namespace: namespace - readOnly: true - controllerExpandSecretRef: - name: name - namespace: namespace - fsType: fsType - volumeAttributes: - key: volumeAttributes - nfs: - path: path - server: server - readOnly: true - persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 properties: - accessModes: - description: "accessModes contains all ways the volume can be mounted. More\ - \ info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes" + preferredDuringSchedulingIgnoredDuringExecution: + description: "The scheduler will prefer to schedule pods to nodes that satisfy\ + \ the anti-affinity expressions specified by this field, but it may choose\ + \ a node that violates one or more of the expressions. The node that is\ + \ most preferred is the one with the greatest sum of weights, i.e. for\ + \ each node that meets all of the scheduling requirements (resource request,\ + \ requiredDuringScheduling anti-affinity expressions, etc.), compute a\ + \ sum by iterating through the elements of this field and adding \"weight\"\ + \ to the sum if the node has pods which matches the corresponding podAffinityTerm;\ + \ the node(s) with the highest sum are the most preferred." items: - type: string + $ref: '#/components/schemas/v1.WeightedPodAffinityTerm' type: array x-kubernetes-list-type: atomic - awsElasticBlockStore: - $ref: '#/components/schemas/v1.AWSElasticBlockStoreVolumeSource' - azureDisk: - $ref: '#/components/schemas/v1.AzureDiskVolumeSource' - azureFile: - $ref: '#/components/schemas/v1.AzureFilePersistentVolumeSource' - capacity: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: "capacity is the description of the persistent volume's resources\ - \ and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity" - type: object - cephfs: - $ref: '#/components/schemas/v1.CephFSPersistentVolumeSource' - cinder: - $ref: '#/components/schemas/v1.CinderPersistentVolumeSource' - claimRef: - $ref: '#/components/schemas/v1.ObjectReference' - csi: - $ref: '#/components/schemas/v1.CSIPersistentVolumeSource' - fc: - $ref: '#/components/schemas/v1.FCVolumeSource' - flexVolume: - $ref: '#/components/schemas/v1.FlexPersistentVolumeSource' - flocker: - $ref: '#/components/schemas/v1.FlockerVolumeSource' - gcePersistentDisk: - $ref: '#/components/schemas/v1.GCEPersistentDiskVolumeSource' - glusterfs: - $ref: '#/components/schemas/v1.GlusterfsPersistentVolumeSource' - hostPath: - $ref: '#/components/schemas/v1.HostPathVolumeSource' - iscsi: - $ref: '#/components/schemas/v1.ISCSIPersistentVolumeSource' - local: - $ref: '#/components/schemas/v1.LocalVolumeSource' - mountOptions: - description: "mountOptions is the list of mount options, e.g. [\"ro\", \"\ - soft\"]. Not validated - mount will simply fail if one is invalid. More\ - \ info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options" + requiredDuringSchedulingIgnoredDuringExecution: + description: "If the anti-affinity requirements specified by this field\ + \ are not met at scheduling time, the pod will not be scheduled onto the\ + \ node. If the anti-affinity requirements specified by this field cease\ + \ to be met at some point during pod execution (e.g. due to a pod label\ + \ update), the system may or may not try to eventually evict the pod from\ + \ its node. When there are multiple elements, the lists of nodes corresponding\ + \ to each podAffinityTerm are intersected, i.e. all terms must be satisfied." items: - type: string + $ref: '#/components/schemas/v1.PodAffinityTerm' type: array x-kubernetes-list-type: atomic - nfs: - $ref: '#/components/schemas/v1.NFSVolumeSource' - nodeAffinity: - $ref: '#/components/schemas/v1.VolumeNodeAffinity' - persistentVolumeReclaimPolicy: - description: "persistentVolumeReclaimPolicy defines what happens to a persistent\ - \ volume when released from its claim. Valid options are Retain (default\ - \ for manually created PersistentVolumes), Delete (default for dynamically\ - \ provisioned PersistentVolumes), and Recycle (deprecated). Recycle must\ - \ be supported by the volume plugin underlying this PersistentVolume.\ - \ More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming" - type: string - photonPersistentDisk: - $ref: '#/components/schemas/v1.PhotonPersistentDiskVolumeSource' - portworxVolume: - $ref: '#/components/schemas/v1.PortworxVolumeSource' - quobyte: - $ref: '#/components/schemas/v1.QuobyteVolumeSource' - rbd: - $ref: '#/components/schemas/v1.RBDPersistentVolumeSource' - scaleIO: - $ref: '#/components/schemas/v1.ScaleIOPersistentVolumeSource' - storageClassName: - description: storageClassName is the name of StorageClass to which this - persistent volume belongs. Empty value means that this volume does not - belong to any StorageClass. - type: string - storageos: - $ref: '#/components/schemas/v1.StorageOSPersistentVolumeSource' - volumeAttributesClassName: - description: "Name of VolumeAttributesClass to which this persistent volume\ - \ belongs. Empty value is not allowed. When this field is not set, it\ - \ indicates that this volume does not belong to any VolumeAttributesClass.\ - \ This field is mutable and can be changed by the CSI driver after a volume\ - \ has been updated successfully to a new class. For an unbound PersistentVolume,\ - \ the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims\ - \ during the binding process. This is a beta field and requires enabling\ - \ VolumeAttributesClass feature (off by default)." - type: string - volumeMode: - description: volumeMode defines if a volume is intended to be used with - a formatted filesystem or to remain in raw block state. Value of Filesystem - is implied when not included in spec. - type: string - vsphereVolume: - $ref: '#/components/schemas/v1.VsphereVirtualDiskVolumeSource' type: object - v1.PersistentVolumeStatus: - description: PersistentVolumeStatus is the current status of a persistent volume. + v1.PodCondition: + description: PodCondition contains details for the current condition of this + pod. example: - phase: phase reason: reason - lastPhaseTransitionTime: 2000-01-23T04:56:07.000+00:00 + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message + type: type + observedGeneration: 3 + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status properties: - lastPhaseTransitionTime: - description: lastPhaseTransitionTime is the time the phase transitioned - from one to another and automatically resets to current time everytime - a volume phase transitions. + lastProbeTime: + description: Last time we probed the condition. format: date-time type: string - message: - description: message is a human-readable message indicating details about - why the volume is in this state. + lastTransitionTime: + description: Last time the condition transitioned from one status to another. + format: date-time type: string - phase: - description: "phase indicates if a volume is available, bound to a claim,\ - \ or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase" + message: + description: Human-readable message indicating details about last transition. type: string + observedGeneration: + description: "If set, this represents the .metadata.generation that the\ + \ pod condition was set based upon. This is an alpha field. Enable PodObservedGenerationTracking\ + \ to be able to use this field." + format: int64 + type: integer reason: - description: reason is a brief CamelCase string that describes any failure - and is meant for machine parsing and tidy display in the CLI. + description: "Unique, one-word, CamelCase reason for the condition's last\ + \ transition." type: string + status: + description: "Status is the status of the condition. Can be True, False,\ + \ Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions" + type: string + type: + description: "Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions" + type: string + required: + - status + - type type: object - v1.PhotonPersistentDiskVolumeSource: - description: Represents a Photon Controller persistent disk resource. + v1.PodDNSConfig: + description: PodDNSConfig defines the DNS parameters of a pod in addition to + those generated from DNSPolicy. example: - pdID: pdID - fsType: fsType + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value properties: - fsType: - description: "fsType is the filesystem type to mount. Must be a filesystem\ - \ type supported by the host operating system. Ex. \"ext4\", \"xfs\",\ - \ \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified." + nameservers: + description: A list of DNS name server IP addresses. This will be appended + to the base nameservers generated from DNSPolicy. Duplicated nameservers + will be removed. + items: + type: string + type: array + x-kubernetes-list-type: atomic + options: + description: A list of DNS resolver options. This will be merged with the + base options generated from DNSPolicy. Duplicated entries will be removed. + Resolution options given in Options will override those that appear in + the base DNSPolicy. + items: + $ref: '#/components/schemas/v1.PodDNSConfigOption' + type: array + x-kubernetes-list-type: atomic + searches: + description: A list of DNS search domains for host-name lookup. This will + be appended to the base search paths generated from DNSPolicy. Duplicated + search paths will be removed. + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + v1.PodDNSConfigOption: + description: PodDNSConfigOption defines DNS resolver options of a pod. + example: + name: name + value: value + properties: + name: + description: Name is this DNS resolver option's name. Required. type: string - pdID: - description: pdID is the ID that identifies Photon Controller persistent - disk + value: + description: Value is this DNS resolver option's value. + type: string + type: object + v1.PodIP: + description: PodIP represents a single IP address allocated to the pod. + example: + ip: ip + properties: + ip: + description: IP is the IP address assigned to the pod type: string required: - - pdID + - ip type: object - v1.Pod: - description: Pod is a collection of containers that can run on a host. This - resource is created by clients and scheduled onto hosts. + v1.PodList: + description: PodList is a list of Pods. example: metadata: - generation: 6 - finalizers: - - finalizers - - finalizers + remainingItemCount: 1 + continue: continue resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace apiVersion: apiVersion kind: kind - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 9 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 9 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: - name: name - value: value - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + fsGroup: 7 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - fsGroup: 7 - fsGroupChangePolicy: fsGroupChangePolicy - seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulingGates: - name: name - value: value - runAsUser: 4 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - supplementalGroups: - - 5 - - 5 - supplementalGroupsPolicy: supplementalGroupsPolicy - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulingGates: - - name: name - - name: name - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: - key: null - hostIPC: true - topologySpreadConstraints: - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + - name: name + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: + key: null + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 3 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + secret: name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 3 - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - key: key - - mode: 3 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 3 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - - downwardAPI: - items: - - mode: 1 + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: name: name - optional: true - signerName: signerName - defaultMode: 5 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - image: - reference: reference - pullPolicy: pullPolicy - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 6 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes name: name - optional: true - items: - - mode: 3 + nfs: path: path - key: key - - mode: 3 + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 3 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + secret: name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 3 - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - key: key - - mode: 3 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 3 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - - downwardAPI: - items: - - mode: 1 + serviceAccountToken: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: name: name - optional: true - signerName: signerName - defaultMode: 5 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - image: - reference: reference - pullPolicy: pullPolicy - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 - items: - - mode: 1 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: + type: type + resources: + claims: + - request: request name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: + - request: request name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 6 - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: + requests: + key: null + limits: + key: null + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: + - devicePath: devicePath name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - lifecycle: - postStart: - sleep: - seconds: 5 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -188868,16 +202013,91 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -188888,244 +202108,170 @@ components: value: value - name: name value: value - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - env: - - name: name - value: value - valueFrom: - secretKeyRef: + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - lifecycle: - postStart: - sleep: - seconds: 5 + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -189136,16 +202282,91 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -189156,343 +202377,153 @@ components: value: value - name: name value: value - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + - request: request name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP + requests: + key: null + limits: + key: null + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args name: name - containerPort: 7 - hostPort: 1 + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 6 restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -189503,16 +202534,68 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -189523,243 +202606,264 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - prefix: prefix - secretRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - - configMapRef: + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - prefix: prefix - secretRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -189770,16 +202874,137 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -189790,244 +203015,52 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -190038,16 +203071,68 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -190058,243 +203143,192 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - prefix: prefix - secretRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - - configMapRef: + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - prefix: prefix - secretRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -190305,16 +203339,209 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -190325,234 +203552,127 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: matchExpressions: - values: - values @@ -190590,9 +203710,7 @@ components: namespaces: - namespaces - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: + - labelSelector: matchExpressions: - values: - values @@ -190630,88 +203748,90 @@ components: namespaces: - namespaces - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: matchExpressions: - values: - values @@ -190749,9 +203869,7 @@ components: namespaces: - namespaces - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: + - labelSelector: matchExpressions: - values: - values @@ -190789,1120 +203907,590 @@ components: namespaces: - namespaces - namespaces - weight: 1 - hostPID: true - status: - phase: phase - resourceClaimStatuses: - - resourceClaimName: resourceClaimName - name: name - - resourceClaimName: resourceClaimName - name: name - reason: reason - containerStatuses: - - allocatedResourcesStatus: - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - - name: name + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + status: + phase: phase + resourceClaimStatuses: + - resourceClaimName: resourceClaimName + name: name + - resourceClaimName: resourceClaimName + name: name + reason: reason + containerStatuses: + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath name: name - - request: request + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath name: name - requests: - key: null - limits: + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath + ready: true name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true - name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - - allocatedResourcesStatus: - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - - name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath name: name - - request: request + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath name: name - requests: - key: null - limits: + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath + ready: true name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true - name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - hostIP: hostIP - nominatedNodeName: nominatedNodeName - message: message - podIPs: - - ip: ip - - ip: ip - podIP: podIP - ephemeralContainerStatuses: - - allocatedResourcesStatus: - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - - name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + hostIP: hostIP + nominatedNodeName: nominatedNodeName + message: message + podIPs: + - ip: ip + - ip: ip + podIP: podIP + ephemeralContainerStatuses: + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath name: name - - request: request + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath name: name - requests: - key: null - limits: + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath + ready: true name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true - name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - - allocatedResourcesStatus: - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - - name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath name: name - - request: request + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath name: name - requests: - key: null - limits: + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath + ready: true name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true - name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - hostIPs: - - ip: ip - - ip: ip - resize: resize - startTime: 2000-01-23T04:56:07.000+00:00 - qosClass: qosClass - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - initContainerStatuses: - - allocatedResourcesStatus: - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - - name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + hostIPs: + - ip: ip + - ip: ip + resize: resize + startTime: 2000-01-23T04:56:07.000+00:00 + qosClass: qosClass + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 3 + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 3 + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + initContainerStatuses: + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath name: name - - request: request + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath name: name - requests: - key: null - limits: + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath + ready: true name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true - name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - - allocatedResourcesStatus: - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - - name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath name: name - - request: request + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath name: name - requests: - key: null - limits: + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath + ready: true name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true - name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" - type: string - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.PodSpec' - status: - $ref: '#/components/schemas/v1.PodStatus' - type: object - x-kubernetes-group-version-kind: - - group: "" - kind: Pod - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.PodAffinity: - description: Pod affinity is a group of inter pod affinity scheduling rules. - example: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: "The scheduler will prefer to schedule pods to nodes that satisfy\ - \ the affinity expressions specified by this field, but it may choose\ - \ a node that violates one or more of the expressions. The node that is\ - \ most preferred is the one with the greatest sum of weights, i.e. for\ - \ each node that meets all of the scheduling requirements (resource request,\ - \ requiredDuringScheduling affinity expressions, etc.), compute a sum\ - \ by iterating through the elements of this field and adding \"weight\"\ - \ to the sum if the node has pods which matches the corresponding podAffinityTerm;\ - \ the node(s) with the highest sum are the most preferred." - items: - $ref: '#/components/schemas/v1.WeightedPodAffinityTerm' - type: array - x-kubernetes-list-type: atomic - requiredDuringSchedulingIgnoredDuringExecution: - description: "If the affinity requirements specified by this field are not\ - \ met at scheduling time, the pod will not be scheduled onto the node.\ - \ If the affinity requirements specified by this field cease to be met\ - \ at some point during pod execution (e.g. due to a pod label update),\ - \ the system may or may not try to eventually evict the pod from its node.\ - \ When there are multiple elements, the lists of nodes corresponding to\ - \ each podAffinityTerm are intersected, i.e. all terms must be satisfied." - items: - $ref: '#/components/schemas/v1.PodAffinityTerm' - type: array - x-kubernetes-list-type: atomic - type: object - v1.PodAffinityTerm: - description: "Defines a set of pods (namely those matching the labelSelector\ - \ relative to the given namespace(s)) that this pod should be co-located (affinity)\ - \ or not co-located (anti-affinity) with, where co-located is defined as running\ - \ on a node whose value of the label with key matches that of\ - \ any node on which a pod of the set of pods is running" - example: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - properties: - labelSelector: - $ref: '#/components/schemas/v1.LabelSelector' - matchLabelKeys: - description: "MatchLabelKeys is a set of pod label keys to select which\ - \ pods will be taken into consideration. The keys are used to lookup values\ - \ from the incoming pod labels, those key-value labels are merged with\ - \ `labelSelector` as `key in (value)` to select the group of existing\ - \ pods which pods will be taken into consideration for the incoming pod's\ - \ pod (anti) affinity. Keys that don't exist in the incoming pod labels\ - \ will be ignored. The default value is empty. The same key is forbidden\ - \ to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys\ - \ cannot be set when labelSelector isn't set. This is a beta field and\ - \ requires enabling MatchLabelKeysInPodAffinity feature gate (enabled\ - \ by default)." - items: - type: string - type: array - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: "MismatchLabelKeys is a set of pod label keys to select which\ - \ pods will be taken into consideration. The keys are used to lookup values\ - \ from the incoming pod labels, those key-value labels are merged with\ - \ `labelSelector` as `key notin (value)` to select the group of existing\ - \ pods which pods will be taken into consideration for the incoming pod's\ - \ pod (anti) affinity. Keys that don't exist in the incoming pod labels\ - \ will be ignored. The default value is empty. The same key is forbidden\ - \ to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys\ - \ cannot be set when labelSelector isn't set. This is a beta field and\ - \ requires enabling MatchLabelKeysInPodAffinity feature gate (enabled\ - \ by default)." - items: - type: string - type: array - x-kubernetes-list-type: atomic - namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' - namespaces: - description: namespaces specifies a static list of namespace names that - the term applies to. The term is applied to the union of the namespaces - listed in this field and the ones selected by namespaceSelector. null - or empty namespaces list and null namespaceSelector means "this pod's - namespace". - items: - type: string - type: array - x-kubernetes-list-type: atomic - topologyKey: - description: "This pod should be co-located (affinity) or not co-located\ - \ (anti-affinity) with the pods matching the labelSelector in the specified\ - \ namespaces, where co-located is defined as running on a node whose value\ - \ of the label with key topologyKey matches that of any node on which\ - \ any of the selected pods is running. Empty topologyKey is not allowed." - type: string - required: - - topologyKey - type: object - v1.PodAntiAffinity: - description: Pod anti affinity is a group of inter pod anti affinity scheduling - rules. - example: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: "The scheduler will prefer to schedule pods to nodes that satisfy\ - \ the anti-affinity expressions specified by this field, but it may choose\ - \ a node that violates one or more of the expressions. The node that is\ - \ most preferred is the one with the greatest sum of weights, i.e. for\ - \ each node that meets all of the scheduling requirements (resource request,\ - \ requiredDuringScheduling anti-affinity expressions, etc.), compute a\ - \ sum by iterating through the elements of this field and adding \"weight\"\ - \ to the sum if the node has pods which matches the corresponding podAffinityTerm;\ - \ the node(s) with the highest sum are the most preferred." - items: - $ref: '#/components/schemas/v1.WeightedPodAffinityTerm' - type: array - x-kubernetes-list-type: atomic - requiredDuringSchedulingIgnoredDuringExecution: - description: "If the anti-affinity requirements specified by this field\ - \ are not met at scheduling time, the pod will not be scheduled onto the\ - \ node. If the anti-affinity requirements specified by this field cease\ - \ to be met at some point during pod execution (e.g. due to a pod label\ - \ update), the system may or may not try to eventually evict the pod from\ - \ its node. When there are multiple elements, the lists of nodes corresponding\ - \ to each podAffinityTerm are intersected, i.e. all terms must be satisfied." - items: - $ref: '#/components/schemas/v1.PodAffinityTerm' - type: array - x-kubernetes-list-type: atomic - type: object - v1.PodCondition: - description: PodCondition contains details for the current condition of this - pod. - example: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - properties: - lastProbeTime: - description: Last time we probed the condition. - format: date-time - type: string - lastTransitionTime: - description: Last time the condition transitioned from one status to another. - format: date-time - type: string - message: - description: Human-readable message indicating details about last transition. - type: string - reason: - description: "Unique, one-word, CamelCase reason for the condition's last\ - \ transition." - type: string - status: - description: "Status is the status of the condition. Can be True, False,\ - \ Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions" - type: string - type: - description: "Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions" - type: string - required: - - status - - type - type: object - v1.PodDNSConfig: - description: PodDNSConfig defines the DNS parameters of a pod in addition to - those generated from DNSPolicy. - example: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - properties: - nameservers: - description: A list of DNS name server IP addresses. This will be appended - to the base nameservers generated from DNSPolicy. Duplicated nameservers - will be removed. - items: - type: string - type: array - x-kubernetes-list-type: atomic - options: - description: A list of DNS resolver options. This will be merged with the - base options generated from DNSPolicy. Duplicated entries will be removed. - Resolution options given in Options will override those that appear in - the base DNSPolicy. - items: - $ref: '#/components/schemas/v1.PodDNSConfigOption' - type: array - x-kubernetes-list-type: atomic - searches: - description: A list of DNS search domains for host-name lookup. This will - be appended to the base search paths generated from DNSPolicy. Duplicated - search paths will be removed. - items: - type: string - type: array - x-kubernetes-list-type: atomic - type: object - v1.PodDNSConfigOption: - description: PodDNSConfigOption defines DNS resolver options of a pod. - example: - name: name - value: value - properties: - name: - description: Name is this DNS resolver option's name. Required. - type: string - value: - description: Value is this DNS resolver option's value. - type: string - type: object - v1.PodIP: - description: PodIP represents a single IP address allocated to the pod. - example: - ip: ip - properties: - ip: - description: IP is the IP address assigned to the pod - type: string - required: - - ip - type: object - v1.PodList: - description: PodList is a list of Pods. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + observedGeneration: 8 - metadata: generation: 6 finalizers: @@ -193061,6 +205649,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -193329,6 +205918,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -193454,298 +206044,31 @@ components: key: key fieldRef: apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true + serviceAccount: serviceAccount + priority: 6 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: - volumeDevices: - devicePath: devicePath name: name @@ -193963,6 +206286,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -194013,7 +206337,6 @@ components: secretRef: name: name optional: true - initContainers: - volumeDevices: - devicePath: devicePath name: name @@ -194231,6 +206554,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -194281,6 +206605,7 @@ components: secretRef: name: name optional: true + initContainers: - volumeDevices: - devicePath: devicePath name: name @@ -194498,6 +206823,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -194548,855 +206874,44 @@ components: secretRef: name: name optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - status: - phase: phase - resourceClaimStatuses: - - resourceClaimName: resourceClaimName - name: name - - resourceClaimName: resourceClaimName - name: name - reason: reason - containerStatuses: - - allocatedResourcesStatus: - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true - name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - - allocatedResourcesStatus: - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true - name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - hostIP: hostIP - nominatedNodeName: nominatedNodeName - message: message - podIPs: - - ip: ip - - ip: ip - podIP: podIP - ephemeralContainerStatuses: - - allocatedResourcesStatus: - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true - name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - - allocatedResourcesStatus: - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true - name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - hostIPs: - - ip: ip - - ip: ip - resize: resize - startTime: 2000-01-23T04:56:07.000+00:00 - qosClass: qosClass - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - initContainerStatuses: - - allocatedResourcesStatus: - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath + - volumeDevices: + - devicePath: devicePath name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath + - devicePath: devicePath name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true - name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - - allocatedResourcesStatus: - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health image: image - imageID: imageID - restartCount: 0 + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir resources: claims: - request: request @@ -195407,329 +206922,404 @@ components: key: null limits: key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true - name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 9 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - fsGroup: 7 - fsGroupChangePolicy: fsGroupChangePolicy - seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 - runAsNonRoot: true - sysctls: + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: - name: name value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name value: value - runAsUser: 4 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - supplementalGroups: - - 5 - - 5 - supplementalGroupsPolicy: supplementalGroupsPolicy - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulingGates: - - name: name - - name: name - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: - key: null - hostIPC: true - topologySpreadConstraints: - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - volumes: - - quobyte: - volume: volume - registry: registry + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix secretRef: name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: matchExpressions: - values: - values @@ -195743,74 +207333,7 @@ components: operator: operator matchLabels: key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 3 - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: + namespaceSelector: matchExpressions: - values: - values @@ -195824,55 +207347,18 @@ components: operator: operator matchLabels: key: matchLabels - name: name - optional: true - signerName: signerName - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: labelSelector: matchExpressions: - values: @@ -195887,261 +207373,112 @@ components: operator: operator matchLabels: key: matchLabels - name: name - optional: true - signerName: signerName - defaultMode: 5 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - image: - reference: reference - pullPolicy: pullPolicy - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 6 - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: matchExpressions: - values: - values @@ -196155,74 +207492,7 @@ components: operator: operator matchLabels: key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 3 - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: + namespaceSelector: matchExpressions: - values: - values @@ -196236,55 +207506,18 @@ components: operator: operator matchLabels: key: matchLabels - name: name - optional: true - signerName: signerName - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: labelSelector: matchExpressions: - values: @@ -196299,65 +207532,1049 @@ components: operator: operator matchLabels: key: matchLabels - name: name - optional: true - signerName: signerName - defaultMode: 5 - cephfs: - path: path - secretRef: + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + status: + phase: phase + resourceClaimStatuses: + - resourceClaimName: resourceClaimName + name: name + - resourceClaimName: resourceClaimName + name: name + reason: reason + containerStatuses: + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + hostIP: hostIP + nominatedNodeName: nominatedNodeName + message: message + podIPs: + - ip: ip + - ip: ip + podIP: podIP + ephemeralContainerStatuses: + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + hostIPs: + - ip: ip + - ip: ip + resize: resize + startTime: 2000-01-23T04:56:07.000+00:00 + qosClass: qosClass + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 3 + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 3 + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + initContainerStatuses: + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + observedGeneration: 8 + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: "List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md" + items: + $ref: '#/components/schemas/v1.Pod' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: PodList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.PodOS: + description: PodOS defines the OS parameters of a pod. + example: + name: name + properties: + name: + description: "Name is the name of the operating system. The currently supported\ + \ values are linux and windows. Additional value may be defined in future\ + \ and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration\ + \ Clients should expect to handle additional values and treat unrecognized\ + \ values in this field as os: null" + type: string + required: + - name + type: object + v1.PodReadinessGate: + description: PodReadinessGate contains the reference to a pod condition + example: + conditionType: conditionType + properties: + conditionType: + description: ConditionType refers to a condition in the pod's condition + list with matching type. + type: string + required: + - conditionType + type: object + v1.PodResourceClaim: + description: |- + PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod. + + It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name. + example: + resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + properties: + name: + description: Name uniquely identifies this resource claim inside the pod. + This must be a DNS_LABEL. + type: string + resourceClaimName: + description: |- + ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. + + Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. + type: string + resourceClaimTemplateName: + description: |- + ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. + + The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. + + This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. + + Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. + type: string + required: + - name + type: object + v1.PodResourceClaimStatus: + description: PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim + which references a ResourceClaimTemplate. It stores the generated name for + the corresponding ResourceClaim. + example: + resourceClaimName: resourceClaimName + name: name + properties: + name: + description: "Name uniquely identifies this resource claim inside the pod.\ + \ This must match the name of an entry in pod.spec.resourceClaims, which\ + \ implies that the string must be a DNS_LABEL." + type: string + resourceClaimName: + description: "ResourceClaimName is the name of the ResourceClaim that was\ + \ generated for the Pod in the namespace of the Pod. If this is unset,\ + \ then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims\ + \ entry can be ignored in this case." + type: string + required: + - name + type: object + v1.PodSchedulingGate: + description: PodSchedulingGate is associated to a Pod to guard its scheduling. + example: + name: name + properties: + name: + description: Name of the scheduling gate. Each scheduling gate must have + a unique name field. + type: string + required: + - name + type: object + v1.PodSecurityContext: + description: PodSecurityContext holds pod-level security attributes and common + container settings. Some fields are also present in container.securityContext. Field + values of container.securityContext take precedence over field values of PodSecurityContext. + example: + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + fsGroup: 7 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy + properties: + appArmorProfile: + $ref: '#/components/schemas/v1.AppArmorProfile' + fsGroup: + description: |- + A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows. + format: int64 + type: integer + fsGroupChangePolicy: + description: "fsGroupChangePolicy defines behavior of changing ownership\ + \ and permission of the volume before being exposed inside Pod. This field\ + \ will only apply to volume types which support fsGroup based ownership(and\ + \ permissions). It will have no effect on ephemeral volume types such\ + \ as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\"\ + \ and \"Always\". If not specified, \"Always\" is used. Note that this\ + \ field cannot be set when spec.os.name is windows." + type: string + runAsGroup: + description: "The GID to run the entrypoint of the container process. Uses\ + \ runtime default if unset. May also be set in SecurityContext. If set\ + \ in both SecurityContext and PodSecurityContext, the value specified\ + \ in SecurityContext takes precedence for that container. Note that this\ + \ field cannot be set when spec.os.name is windows." + format: int64 + type: integer + runAsNonRoot: + description: "Indicates that the container must run as a non-root user.\ + \ If true, the Kubelet will validate the image at runtime to ensure that\ + \ it does not run as UID 0 (root) and fail to start the container if it\ + \ does. If unset or false, no such validation will be performed. May also\ + \ be set in SecurityContext. If set in both SecurityContext and PodSecurityContext,\ + \ the value specified in SecurityContext takes precedence." + type: boolean + runAsUser: + description: "The UID to run the entrypoint of the container process. Defaults\ + \ to user specified in image metadata if unspecified. May also be set\ + \ in SecurityContext. If set in both SecurityContext and PodSecurityContext,\ + \ the value specified in SecurityContext takes precedence for that container.\ + \ Note that this field cannot be set when spec.os.name is windows." + format: int64 + type: integer + seLinuxChangePolicy: + description: |- + seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are "MountOption" and "Recursive". + + "Recursive" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. + + "MountOption" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their CSIDriver instance. Other volumes are always re-labelled recursively. "MountOption" value is allowed only when SELinuxMount feature gate is enabled. + + If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes and "Recursive" for all other volumes. + + This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. + + All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. Note that this field cannot be set when spec.os.name is windows. + type: string + seLinuxOptions: + $ref: '#/components/schemas/v1.SELinuxOptions' + seccompProfile: + $ref: '#/components/schemas/v1.SeccompProfile' + supplementalGroups: + description: "A list of groups applied to the first process run in each\ + \ container, in addition to the container's primary GID and fsGroup (if\ + \ specified). If the SupplementalGroupsPolicy feature is enabled, the\ + \ supplementalGroupsPolicy field determines whether these are in addition\ + \ to or instead of any group memberships defined in the container image.\ + \ If unspecified, no additional groups are added, though group memberships\ + \ defined in the container image may still be used, depending on the supplementalGroupsPolicy\ + \ field. Note that this field cannot be set when spec.os.name is windows." + items: + format: int64 + type: integer + type: array + x-kubernetes-list-type: atomic + supplementalGroupsPolicy: + description: "Defines how supplemental groups of the first container processes\ + \ are calculated. Valid values are \"Merge\" and \"Strict\". If not specified,\ + \ \"Merge\" is used. (Alpha) Using the field requires the SupplementalGroupsPolicy\ + \ feature gate to be enabled and the container runtime must implement\ + \ support for this feature. Note that this field cannot be set when spec.os.name\ + \ is windows." + type: string + sysctls: + description: Sysctls hold a list of namespaced sysctls used for the pod. + Pods with unsupported sysctls (by the container runtime) might fail to + launch. Note that this field cannot be set when spec.os.name is windows. + items: + $ref: '#/components/schemas/v1.Sysctl' + type: array + x-kubernetes-list-type: atomic + windowsOptions: + $ref: '#/components/schemas/v1.WindowsSecurityContextOptions' + type: object + v1.PodSpec: + description: PodSpec is a description of a pod. + example: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 9 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + fsGroup: 7 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulingGates: + - name: name + - name: name + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: + key: null + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - image: - reference: reference - pullPolicy: pullPolicy - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: items: - mode: 1 path: path @@ -196377,43 +208594,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors configMap: - defaultMode: 6 name: name optional: true items: @@ -196423,3552 +208604,3996 @@ components: - mode: 3 path: path key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + secret: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: + optional: true + items: + - mode: 3 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: + key: key + - mode: 3 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path resourceFieldRef: divisor: divisor resource: resource containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key + - mode: 1 + path: path resourceFieldRef: divisor: divisor resource: resource containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key fieldRef: apiVersion: apiVersion fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath + configMap: name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: + optional: true + items: + - mode: 3 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + key: key + - mode: 3 + path: path + key: key + secret: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: + optional: true + items: + - mode: 3 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: + key: key + - mode: 3 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - - request: request + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind name: name - requests: - key: null - limits: - key: null - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path resourceFieldRef: divisor: divisor resource: resource containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key + - mode: 1 + path: path resourceFieldRef: divisor: divisor resource: resource containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key fieldRef: apiVersion: apiVersion fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath + configMap: name: name - - devicePath: devicePath + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: + optional: true + items: + - mode: 3 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: + key: key + - mode: 3 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path resourceFieldRef: divisor: divisor resource: resource containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key + - mode: 1 + path: path resourceFieldRef: divisor: divisor resource: resource containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP + configMap: name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 6 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - status: - phase: phase - resourceClaimStatuses: - - resourceClaimName: resourceClaimName + optional: true + prefix: prefix + secretRef: name: name - - resourceClaimName: resourceClaimName + optional: true + - configMapRef: name: name - reason: reason - containerStatuses: - - allocatedResourcesStatus: - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true + optional: true + prefix: prefix + secretRef: name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - - allocatedResourcesStatus: + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health + value: value - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - hostIP: hostIP - nominatedNodeName: nominatedNodeName - message: message - podIPs: - - ip: ip - - ip: ip - podIP: podIP - ephemeralContainerStatuses: - - allocatedResourcesStatus: + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health + value: value - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - - allocatedResourcesStatus: + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health + value: value - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - hostIPs: - - ip: ip - - ip: ip - resize: resize - startTime: 2000-01-23T04:56:07.000+00:00 - qosClass: qosClass - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message + user: user + appArmorProfile: + localhostProfile: localhostProfile type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - initContainerStatuses: - - allocatedResourcesStatus: + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health + value: value - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true - name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - - allocatedResourcesStatus: - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + activeDeadlineSeconds: + description: Optional duration in seconds the pod may be active on the node + relative to StartTime before the system will actively try to mark it failed + and kill associated containers. Value must be a positive integer. + format: int64 + type: integer + affinity: + $ref: '#/components/schemas/v1.Affinity' + automountServiceAccountToken: + description: AutomountServiceAccountToken indicates whether a service account + token should be automatically mounted. + type: boolean + containers: + description: List of containers belonging to the pod. Containers cannot + currently be added or removed. There must be at least one container in + a Pod. Cannot be updated. + items: + $ref: '#/components/schemas/v1.Container' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + dnsConfig: + $ref: '#/components/schemas/v1.PodDNSConfig' + dnsPolicy: + description: "Set DNS policy for the pod. Defaults to \"ClusterFirst\".\ + \ Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default'\ + \ or 'None'. DNS parameters given in DNSConfig will be merged with the\ + \ policy selected with DNSPolicy. To have DNS options set along with hostNetwork,\ + \ you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'." type: string - items: - description: "List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md" + enableServiceLinks: + description: "EnableServiceLinks indicates whether information about services\ + \ should be injected into pod's environment variables, matching the syntax\ + \ of Docker links. Optional: Defaults to true." + type: boolean + ephemeralContainers: + description: "List of ephemeral containers run in this pod. Ephemeral containers\ + \ may be run in an existing pod to perform user-initiated actions such\ + \ as debugging. This list cannot be specified when creating a pod, and\ + \ it cannot be modified by updating the pod spec. In order to add an ephemeral\ + \ container to an existing pod, use the pod's ephemeralcontainers subresource." items: - $ref: '#/components/schemas/v1.Pod' + $ref: '#/components/schemas/v1.EphemeralContainer' type: array - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + hostAliases: + description: HostAliases is an optional list of hosts and IPs that will + be injected into the pod's hosts file if specified. + items: + $ref: '#/components/schemas/v1.HostAlias' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - ip + x-kubernetes-patch-merge-key: ip + hostIPC: + description: "Use the host's ipc namespace. Optional: Default to false." + type: boolean + hostNetwork: + description: "Host networking requested for this pod. Use the host's network\ + \ namespace. If this option is set, the ports that will be used must be\ + \ specified. Default to false." + type: boolean + hostPID: + description: "Use the host's pid namespace. Optional: Default to false." + type: boolean + hostUsers: + description: "Use the host's user namespace. Optional: Default to true.\ + \ If set to true or not present, the pod will be run in the host user\ + \ namespace, useful for when the pod needs a feature only available to\ + \ the host user namespace, such as loading a kernel module with CAP_SYS_MODULE.\ + \ When set to false, a new userns is created for the pod. Setting false\ + \ is useful for mitigating container breakout vulnerabilities even allowing\ + \ users to run their containers as root without actually having root privileges\ + \ on the host. This field is alpha-level and is only honored by servers\ + \ that enable the UserNamespacesSupport feature." + type: boolean + hostname: + description: "Specifies the hostname of the Pod If not specified, the pod's\ + \ hostname will be set to a system-defined value." type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: "" - kind: PodList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.PodOS: - description: PodOS defines the OS parameters of a pod. - example: - name: name - properties: - name: - description: "Name is the name of the operating system. The currently supported\ - \ values are linux and windows. Additional value may be defined in future\ - \ and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration\ - \ Clients should expect to handle additional values and treat unrecognized\ - \ values in this field as os: null" + imagePullSecrets: + description: "ImagePullSecrets is an optional list of references to secrets\ + \ in the same namespace to use for pulling any of the images used by this\ + \ PodSpec. If specified, these secrets will be passed to individual puller\ + \ implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod" + items: + $ref: '#/components/schemas/v1.LocalObjectReference' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + initContainers: + description: "List of initialization containers belonging to the pod. Init\ + \ containers are executed in order prior to containers being started.\ + \ If any init container fails, the pod is considered to have failed and\ + \ is handled according to its restartPolicy. The name for an init container\ + \ or normal container must be unique among all containers. Init containers\ + \ may not have Lifecycle actions, Readiness probes, Liveness probes, or\ + \ Startup probes. The resourceRequirements of an init container are taken\ + \ into account during scheduling by finding the highest request/limit\ + \ for each resource type, and then using the max of that value or the\ + \ sum of the normal containers. Limits are applied to init containers\ + \ in a similar fashion. Init containers cannot currently be added or removed.\ + \ Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/" + items: + $ref: '#/components/schemas/v1.Container' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + nodeName: + description: "NodeName indicates in which node this pod is scheduled. If\ + \ empty, this pod is a candidate for scheduling by the scheduler defined\ + \ in schedulerName. Once this field is set, the kubelet for this node\ + \ becomes responsible for the lifecycle of this pod. This field should\ + \ not be used to express a desire for the pod to be scheduled on a specific\ + \ node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename" type: string - required: - - name - type: object - v1.PodReadinessGate: - description: PodReadinessGate contains the reference to a pod condition - example: - conditionType: conditionType - properties: - conditionType: - description: ConditionType refers to a condition in the pod's condition - list with matching type. + nodeSelector: + additionalProperties: + type: string + description: "NodeSelector is a selector which must be true for the pod\ + \ to fit on a node. Selector which must match a node's labels for the\ + \ pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/" + type: object + x-kubernetes-map-type: atomic + os: + $ref: '#/components/schemas/v1.PodOS' + overhead: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: "Overhead represents the resource overhead associated with\ + \ running a pod for a given RuntimeClass. This field will be autopopulated\ + \ at admission time by the RuntimeClass admission controller. If the RuntimeClass\ + \ admission controller is enabled, overhead must not be set in Pod create\ + \ requests. The RuntimeClass admission controller will reject Pod create\ + \ requests which have the overhead already set. If RuntimeClass is configured\ + \ and selected in the PodSpec, Overhead will be set to the value defined\ + \ in the corresponding RuntimeClass, otherwise it will remain unset and\ + \ treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md" + type: object + preemptionPolicy: + description: "PreemptionPolicy is the Policy for preempting pods with lower\ + \ priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority\ + \ if unset." type: string - required: - - conditionType - type: object - v1.PodResourceClaim: - description: |- - PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod. - - It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name. - example: - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - properties: - name: - description: Name uniquely identifies this resource claim inside the pod. - This must be a DNS_LABEL. + priority: + description: "The priority value. Various system components use this field\ + \ to find the priority of the pod. When Priority Admission Controller\ + \ is enabled, it prevents users from setting this field. The admission\ + \ controller populates this field from PriorityClassName. The higher the\ + \ value, the higher the priority." + format: int32 + type: integer + priorityClassName: + description: "If specified, indicates the pod's priority. \"system-node-critical\"\ + \ and \"system-cluster-critical\" are two special keywords which indicate\ + \ the highest priorities with the former being the highest priority. Any\ + \ other name must be defined by creating a PriorityClass object with that\ + \ name. If not specified, the pod priority will be default or zero if\ + \ there is no default." type: string - resourceClaimName: + readinessGates: + description: "If specified, all readiness gates will be evaluated for pod\ + \ readiness. A pod is ready when all its containers are ready AND all\ + \ conditions specified in the readiness gates have status equal to \"\ + True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates" + items: + $ref: '#/components/schemas/v1.PodReadinessGate' + type: array + x-kubernetes-list-type: atomic + resourceClaims: description: |- - ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. + ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. - Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. + This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. + + This field is immutable. + items: + $ref: '#/components/schemas/v1.PodResourceClaim' + type: array + x-kubernetes-patch-strategy: "merge,retainKeys" + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + resources: + $ref: '#/components/schemas/v1.ResourceRequirements' + restartPolicy: + description: "Restart policy for all containers within the pod. One of Always,\ + \ OnFailure, Never. In some contexts, only a subset of those values may\ + \ be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy" type: string - resourceClaimTemplateName: + runtimeClassName: + description: "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io\ + \ group, which should be used to run this pod. If no RuntimeClass resource\ + \ matches the named class, the pod will not be run. If unset or empty,\ + \ the \"legacy\" RuntimeClass will be used, which is an implicit class\ + \ with an empty definition that uses the default runtime handler. More\ + \ info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class" + type: string + schedulerName: + description: "If specified, the pod will be dispatched by specified scheduler.\ + \ If not specified, the pod will be dispatched by default scheduler." + type: string + schedulingGates: description: |- - ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. - - The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. - - This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. + SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. - Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. - type: string - required: - - name - type: object - v1.PodResourceClaimStatus: - description: PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim - which references a ResourceClaimTemplate. It stores the generated name for - the corresponding ResourceClaim. - example: - resourceClaimName: resourceClaimName - name: name - properties: - name: - description: "Name uniquely identifies this resource claim inside the pod.\ - \ This must match the name of an entry in pod.spec.resourceClaims, which\ - \ implies that the string must be a DNS_LABEL." + SchedulingGates can only be set at pod creation time, and be removed only afterwards. + items: + $ref: '#/components/schemas/v1.PodSchedulingGate' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + securityContext: + $ref: '#/components/schemas/v1.PodSecurityContext' + serviceAccount: + description: "DeprecatedServiceAccount is a deprecated alias for ServiceAccountName.\ + \ Deprecated: Use serviceAccountName instead." type: string - resourceClaimName: - description: "ResourceClaimName is the name of the ResourceClaim that was\ - \ generated for the Pod in the namespace of the Pod. If this is unset,\ - \ then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims\ - \ entry can be ignored in this case." + serviceAccountName: + description: "ServiceAccountName is the name of the ServiceAccount to use\ + \ to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/" type: string - required: - - name - type: object - v1.PodSchedulingGate: - description: PodSchedulingGate is associated to a Pod to guard its scheduling. - example: - name: name - properties: - name: - description: Name of the scheduling gate. Each scheduling gate must have - a unique name field. + setHostnameAsFQDN: + description: "If true the pod's hostname will be configured as the pod's\ + \ FQDN, rather than the leaf name (the default). In Linux containers,\ + \ this means setting the FQDN in the hostname field of the kernel (the\ + \ nodename field of struct utsname). In Windows containers, this means\ + \ setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\ + \\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN.\ + \ If a pod does not have FQDN, this has no effect. Default to false." + type: boolean + shareProcessNamespace: + description: "Share a single process namespace between all of the containers\ + \ in a pod. When this is set containers will be able to view and signal\ + \ processes from other containers in the same pod, and the first process\ + \ in each container will not be assigned PID 1. HostPID and ShareProcessNamespace\ + \ cannot both be set. Optional: Default to false." + type: boolean + subdomain: + description: "If specified, the fully qualified Pod hostname will be \"\ + ...svc.\". If not\ + \ specified, the pod will not have a domainname at all." type: string + terminationGracePeriodSeconds: + description: "Optional duration in seconds the pod needs to terminate gracefully.\ + \ May be decreased in delete request. Value must be non-negative integer.\ + \ The value zero indicates stop immediately via the kill signal (no opportunity\ + \ to shut down). If this value is nil, the default grace period will be\ + \ used instead. The grace period is the duration in seconds after the\ + \ processes running in the pod are sent a termination signal and the time\ + \ when the processes are forcibly halted with a kill signal. Set this\ + \ value longer than the expected cleanup time for your process. Defaults\ + \ to 30 seconds." + format: int64 + type: integer + tolerations: + description: "If specified, the pod's tolerations." + items: + $ref: '#/components/schemas/v1.Toleration' + type: array + x-kubernetes-list-type: atomic + topologySpreadConstraints: + description: TopologySpreadConstraints describes how a group of pods ought + to spread across topology domains. Scheduler will schedule pods in a way + which abides by the constraints. All topologySpreadConstraints are ANDed. + items: + $ref: '#/components/schemas/v1.TopologySpreadConstraint' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - topologyKey + - whenUnsatisfiable + x-kubernetes-patch-merge-key: topologyKey + volumes: + description: "List of volumes that can be mounted by containers belonging\ + \ to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes" + items: + $ref: '#/components/schemas/v1.Volume' + type: array + x-kubernetes-patch-strategy: "merge,retainKeys" + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name required: - - name + - containers type: object - v1.PodSecurityContext: - description: PodSecurityContext holds pod-level security attributes and common - container settings. Some fields are also present in container.securityContext. Field - values of container.securityContext take precedence over field values of PodSecurityContext. + v1.PodStatus: + description: "PodStatus represents information about the status of a pod. Status\ + \ may trail the actual state of a system, especially if the node that hosts\ + \ the pod cannot contact the control plane." example: - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile + phase: phase + resourceClaimStatuses: + - resourceClaimName: resourceClaimName + name: name + - resourceClaimName: resourceClaimName + name: name + reason: reason + containerStatuses: + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + hostIP: hostIP + nominatedNodeName: nominatedNodeName + message: message + podIPs: + - ip: ip + - ip: ip + podIP: podIP + ephemeralContainerStatuses: + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + hostIPs: + - ip: ip + - ip: ip + resize: resize + startTime: 2000-01-23T04:56:07.000+00:00 + qosClass: qosClass + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message type: type - fsGroup: 7 - fsGroupChangePolicy: fsGroupChangePolicy - seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - runAsUser: 4 - seccompProfile: - localhostProfile: localhostProfile + observedGeneration: 3 + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - supplementalGroups: - - 5 - - 5 - supplementalGroupsPolicy: supplementalGroupsPolicy + observedGeneration: 3 + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + initContainerStatuses: + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + observedGeneration: 8 properties: - appArmorProfile: - $ref: '#/components/schemas/v1.AppArmorProfile' - fsGroup: - description: |- - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows. - format: int64 - type: integer - fsGroupChangePolicy: - description: "fsGroupChangePolicy defines behavior of changing ownership\ - \ and permission of the volume before being exposed inside Pod. This field\ - \ will only apply to volume types which support fsGroup based ownership(and\ - \ permissions). It will have no effect on ephemeral volume types such\ - \ as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\"\ - \ and \"Always\". If not specified, \"Always\" is used. Note that this\ - \ field cannot be set when spec.os.name is windows." + conditions: + description: "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions" + items: + $ref: '#/components/schemas/v1.PodCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + containerStatuses: + description: "Statuses of containers in this pod. Each container in the\ + \ pod should have at most one status in this list, and all statuses should\ + \ be for containers in the pod. However this is not enforced. If a status\ + \ for a non-existent container is present in the list, or the list has\ + \ duplicate names, the behavior of various Kubernetes components is not\ + \ defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status" + items: + $ref: '#/components/schemas/v1.ContainerStatus' + type: array + x-kubernetes-list-type: atomic + ephemeralContainerStatuses: + description: "Statuses for any ephemeral containers that have run in this\ + \ pod. Each ephemeral container in the pod should have at most one status\ + \ in this list, and all statuses should be for containers in the pod.\ + \ However this is not enforced. If a status for a non-existent container\ + \ is present in the list, or the list has duplicate names, the behavior\ + \ of various Kubernetes components is not defined and those statuses might\ + \ be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status" + items: + $ref: '#/components/schemas/v1.ContainerStatus' + type: array + x-kubernetes-list-type: atomic + hostIP: + description: hostIP holds the IP address of the host to which the pod is + assigned. Empty if the pod has not started yet. A pod can be assigned + to a node that has a problem in kubelet which in turns mean that HostIP + will not be updated even if there is a node is assigned to pod + type: string + hostIPs: + description: "hostIPs holds the IP addresses allocated to the host. If this\ + \ field is specified, the first entry must match the hostIP field. This\ + \ list is empty if the pod has not started yet. A pod can be assigned\ + \ to a node that has a problem in kubelet which in turns means that HostIPs\ + \ will not be updated even if there is a node is assigned to this pod." + items: + $ref: '#/components/schemas/v1.HostIP' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: atomic + x-kubernetes-patch-merge-key: ip + initContainerStatuses: + description: "Statuses of init containers in this pod. The most recent successful\ + \ non-restartable init container will have ready = true, the most recently\ + \ started container will have startTime set. Each init container in the\ + \ pod should have at most one status in this list, and all statuses should\ + \ be for containers in the pod. However this is not enforced. If a status\ + \ for a non-existent container is present in the list, or the list has\ + \ duplicate names, the behavior of various Kubernetes components is not\ + \ defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status" + items: + $ref: '#/components/schemas/v1.ContainerStatus' + type: array + x-kubernetes-list-type: atomic + message: + description: A human readable message indicating details about why the pod + is in this condition. type: string - runAsGroup: - description: "The GID to run the entrypoint of the container process. Uses\ - \ runtime default if unset. May also be set in SecurityContext. If set\ - \ in both SecurityContext and PodSecurityContext, the value specified\ - \ in SecurityContext takes precedence for that container. Note that this\ - \ field cannot be set when spec.os.name is windows." - format: int64 - type: integer - runAsNonRoot: - description: "Indicates that the container must run as a non-root user.\ - \ If true, the Kubelet will validate the image at runtime to ensure that\ - \ it does not run as UID 0 (root) and fail to start the container if it\ - \ does. If unset or false, no such validation will be performed. May also\ - \ be set in SecurityContext. If set in both SecurityContext and PodSecurityContext,\ - \ the value specified in SecurityContext takes precedence." - type: boolean - runAsUser: - description: "The UID to run the entrypoint of the container process. Defaults\ - \ to user specified in image metadata if unspecified. May also be set\ - \ in SecurityContext. If set in both SecurityContext and PodSecurityContext,\ - \ the value specified in SecurityContext takes precedence for that container.\ - \ Note that this field cannot be set when spec.os.name is windows." + nominatedNodeName: + description: "nominatedNodeName is set only when this pod preempts other\ + \ pods on the node, but it cannot be scheduled right away as preemption\ + \ victims receive their graceful termination periods. This field does\ + \ not guarantee that the pod will be scheduled on this node. Scheduler\ + \ may decide to place the pod elsewhere if other nodes become available\ + \ sooner. Scheduler may also decide to give the resources on this node\ + \ to a higher priority pod that is created after preemption. As a result,\ + \ this field may be different than PodSpec.nodeName when the pod is scheduled." + type: string + observedGeneration: + description: "If set, this represents the .metadata.generation that the\ + \ pod status was set based upon. This is an alpha field. Enable PodObservedGenerationTracking\ + \ to be able to use this field." format: int64 type: integer - seLinuxChangePolicy: + phase: description: |- - seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are "MountOption" and "Recursive". - - "Recursive" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. - - "MountOption" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their CSIDriver instance. Other volumes are always re-labelled recursively. "MountOption" value is allowed only when SELinuxMount feature gate is enabled. - - If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes and "Recursive" for all other volumes. + The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: - This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. + Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. - All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. Note that this field cannot be set when spec.os.name is windows. + More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase type: string - seLinuxOptions: - $ref: '#/components/schemas/v1.SELinuxOptions' - seccompProfile: - $ref: '#/components/schemas/v1.SeccompProfile' - supplementalGroups: - description: "A list of groups applied to the first process run in each\ - \ container, in addition to the container's primary GID and fsGroup (if\ - \ specified). If the SupplementalGroupsPolicy feature is enabled, the\ - \ supplementalGroupsPolicy field determines whether these are in addition\ - \ to or instead of any group memberships defined in the container image.\ - \ If unspecified, no additional groups are added, though group memberships\ - \ defined in the container image may still be used, depending on the supplementalGroupsPolicy\ - \ field. Note that this field cannot be set when spec.os.name is windows." + podIP: + description: podIP address allocated to the pod. Routable at least within + the cluster. Empty if not yet allocated. + type: string + podIPs: + description: "podIPs holds the IP addresses allocated to the pod. If this\ + \ field is specified, the 0th entry must match the podIP field. Pods may\ + \ be allocated at most 1 value for each of IPv4 and IPv6. This list is\ + \ empty if no IPs have been allocated yet." items: - format: int64 - type: integer + $ref: '#/components/schemas/v1.PodIP' type: array - x-kubernetes-list-type: atomic - supplementalGroupsPolicy: - description: "Defines how supplemental groups of the first container processes\ - \ are calculated. Valid values are \"Merge\" and \"Strict\". If not specified,\ - \ \"Merge\" is used. (Alpha) Using the field requires the SupplementalGroupsPolicy\ - \ feature gate to be enabled and the container runtime must implement\ - \ support for this feature. Note that this field cannot be set when spec.os.name\ - \ is windows." + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - ip + x-kubernetes-patch-merge-key: ip + qosClass: + description: "The Quality of Service (QOS) classification assigned to the\ + \ pod based on resource requirements See PodQOSClass type for available\ + \ QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes" type: string - sysctls: - description: Sysctls hold a list of namespaced sysctls used for the pod. - Pods with unsupported sysctls (by the container runtime) might fail to - launch. Note that this field cannot be set when spec.os.name is windows. + reason: + description: A brief CamelCase message indicating details about why the + pod is in this state. e.g. 'Evicted' + type: string + resize: + description: "Status of resources resize desired for pod's containers. It\ + \ is empty if no resources resize is pending. Any changes to container\ + \ resources will automatically set this to \"Proposed\" Deprecated: Resize\ + \ status is moved to two pod conditions PodResizePending and PodResizeInProgress.\ + \ PodResizePending will track states where the spec has been resized,\ + \ but the Kubelet has not yet allocated the resources. PodResizeInProgress\ + \ will track in-progress resizes, and should be present whenever allocated\ + \ resources != acknowledged resources." + type: string + resourceClaimStatuses: + description: Status of resource claims. items: - $ref: '#/components/schemas/v1.Sysctl' + $ref: '#/components/schemas/v1.PodResourceClaimStatus' type: array - x-kubernetes-list-type: atomic - windowsOptions: - $ref: '#/components/schemas/v1.WindowsSecurityContextOptions' + x-kubernetes-patch-strategy: "merge,retainKeys" + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + startTime: + description: RFC 3339 date and time at which the object was acknowledged + by the Kubelet. This is before the Kubelet pulled the container image(s) + for the pod. + format: date-time + type: string type: object - v1.PodSpec: - description: PodSpec is a description of a pod. + v1.PodTemplate: + description: PodTemplate describes a template for creating copies of a predefined + pod. example: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 9 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - fsGroup: 7 - fsGroupChangePolicy: fsGroupChangePolicy - seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - runAsUser: 4 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - supplementalGroups: - - 5 - - 5 - supplementalGroupsPolicy: supplementalGroupsPolicy - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulingGates: - - name: name - - name: name - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: - key: null - hostIPC: true - topologySpreadConstraints: - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values + template: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 9 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + fsGroup: 7 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value key: key operator: operator - - values: - - values - - values + - effect: effect + tolerationSeconds: 9 + value: value key: key operator: operator - matchLabels: - key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: + automountServiceAccountToken: true + schedulingGates: + - name: name + - name: name + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 3 - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: + key: null + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values key: key - - mode: 3 - path: path + operator: operator + - values: + - values + - values key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values key: key - - mode: 3 - path: path + operator: operator + - values: + - values + - values key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - defaultMode: 5 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - image: - reference: reference - pullPolicy: pullPolicy - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 6 - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 3 - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode secret: - name: name + secretName: secretName + defaultMode: 3 optional: true items: - mode: 3 @@ -199977,30 +212602,190 @@ components: - mode: 3 path: path key: key - serviceAccountToken: + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - - downwardAPI: + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 items: - mode: 1 path: path @@ -200020,7 +212805,43 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors configMap: + defaultMode: 6 name: name optional: true items: @@ -200030,8 +212851,161 @@ components: - mode: 3 path: path key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode secret: - name: name + secretName: secretName + defaultMode: 3 optional: true items: - mode: 3 @@ -200040,4316 +213014,3786 @@ components: - mode: 3 path: path key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - defaultMode: 5 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - image: - reference: reference - pullPolicy: pullPolicy - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 6 - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - env: - - name: name - value: value - valueFrom: - secretKeyRef: + type: type + resources: + claims: + - request: request name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + - request: request name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + requests: + key: null + limits: + key: null + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + - devicePath: devicePath name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: - name: name value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy command: - command - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + - devicePath: devicePath name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: - name: name value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy command: - command - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request + args: + - args + - args name: name - - request: request + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 6 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: - name: name value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy command: - command - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: - name: name value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy command: - command - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + - devicePath: devicePath name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: - name: name value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - properties: - activeDeadlineSeconds: - description: Optional duration in seconds the pod may be active on the node - relative to StartTime before the system will actively try to mark it failed - and kill associated containers. Value must be a positive integer. - format: int64 - type: integer - affinity: - $ref: '#/components/schemas/v1.Affinity' - automountServiceAccountToken: - description: AutomountServiceAccountToken indicates whether a service account - token should be automatically mounted. - type: boolean - containers: - description: List of containers belonging to the pod. Containers cannot - currently be added or removed. There must be at least one container in - a Pod. Cannot be updated. - items: - $ref: '#/components/schemas/v1.Container' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - dnsConfig: - $ref: '#/components/schemas/v1.PodDNSConfig' - dnsPolicy: - description: "Set DNS policy for the pod. Defaults to \"ClusterFirst\".\ - \ Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default'\ - \ or 'None'. DNS parameters given in DNSConfig will be merged with the\ - \ policy selected with DNSPolicy. To have DNS options set along with hostNetwork,\ - \ you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'." - type: string - enableServiceLinks: - description: "EnableServiceLinks indicates whether information about services\ - \ should be injected into pod's environment variables, matching the syntax\ - \ of Docker links. Optional: Defaults to true." - type: boolean - ephemeralContainers: - description: "List of ephemeral containers run in this pod. Ephemeral containers\ - \ may be run in an existing pod to perform user-initiated actions such\ - \ as debugging. This list cannot be specified when creating a pod, and\ - \ it cannot be modified by updating the pod spec. In order to add an ephemeral\ - \ container to an existing pod, use the pod's ephemeralcontainers subresource." - items: - $ref: '#/components/schemas/v1.EphemeralContainer' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - hostAliases: - description: HostAliases is an optional list of hosts and IPs that will - be injected into the pod's hosts file if specified. - items: - $ref: '#/components/schemas/v1.HostAlias' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - ip - x-kubernetes-patch-merge-key: ip - hostIPC: - description: "Use the host's ipc namespace. Optional: Default to false." - type: boolean - hostNetwork: - description: "Host networking requested for this pod. Use the host's network\ - \ namespace. If this option is set, the ports that will be used must be\ - \ specified. Default to false." - type: boolean - hostPID: - description: "Use the host's pid namespace. Optional: Default to false." - type: boolean - hostUsers: - description: "Use the host's user namespace. Optional: Default to true.\ - \ If set to true or not present, the pod will be run in the host user\ - \ namespace, useful for when the pod needs a feature only available to\ - \ the host user namespace, such as loading a kernel module with CAP_SYS_MODULE.\ - \ When set to false, a new userns is created for the pod. Setting false\ - \ is useful for mitigating container breakout vulnerabilities even allowing\ - \ users to run their containers as root without actually having root privileges\ - \ on the host. This field is alpha-level and is only honored by servers\ - \ that enable the UserNamespacesSupport feature." - type: boolean - hostname: - description: "Specifies the hostname of the Pod If not specified, the pod's\ - \ hostname will be set to a system-defined value." - type: string - imagePullSecrets: - description: "ImagePullSecrets is an optional list of references to secrets\ - \ in the same namespace to use for pulling any of the images used by this\ - \ PodSpec. If specified, these secrets will be passed to individual puller\ - \ implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod" - items: - $ref: '#/components/schemas/v1.LocalObjectReference' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - initContainers: - description: "List of initialization containers belonging to the pod. Init\ - \ containers are executed in order prior to containers being started.\ - \ If any init container fails, the pod is considered to have failed and\ - \ is handled according to its restartPolicy. The name for an init container\ - \ or normal container must be unique among all containers. Init containers\ - \ may not have Lifecycle actions, Readiness probes, Liveness probes, or\ - \ Startup probes. The resourceRequirements of an init container are taken\ - \ into account during scheduling by finding the highest request/limit\ - \ for each resource type, and then using the max of of that value or the\ - \ sum of the normal containers. Limits are applied to init containers\ - \ in a similar fashion. Init containers cannot currently be added or removed.\ - \ Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/" - items: - $ref: '#/components/schemas/v1.Container' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - nodeName: - description: "NodeName indicates in which node this pod is scheduled. If\ - \ empty, this pod is a candidate for scheduling by the scheduler defined\ - \ in schedulerName. Once this field is set, the kubelet for this node\ - \ becomes responsible for the lifecycle of this pod. This field should\ - \ not be used to express a desire for the pod to be scheduled on a specific\ - \ node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename" - type: string - nodeSelector: - additionalProperties: - type: string - description: "NodeSelector is a selector which must be true for the pod\ - \ to fit on a node. Selector which must match a node's labels for the\ - \ pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/" - type: object - x-kubernetes-map-type: atomic - os: - $ref: '#/components/schemas/v1.PodOS' - overhead: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: "Overhead represents the resource overhead associated with\ - \ running a pod for a given RuntimeClass. This field will be autopopulated\ - \ at admission time by the RuntimeClass admission controller. If the RuntimeClass\ - \ admission controller is enabled, overhead must not be set in Pod create\ - \ requests. The RuntimeClass admission controller will reject Pod create\ - \ requests which have the overhead already set. If RuntimeClass is configured\ - \ and selected in the PodSpec, Overhead will be set to the value defined\ - \ in the corresponding RuntimeClass, otherwise it will remain unset and\ - \ treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md" - type: object - preemptionPolicy: - description: "PreemptionPolicy is the Policy for preempting pods with lower\ - \ priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority\ - \ if unset." - type: string - priority: - description: "The priority value. Various system components use this field\ - \ to find the priority of the pod. When Priority Admission Controller\ - \ is enabled, it prevents users from setting this field. The admission\ - \ controller populates this field from PriorityClassName. The higher the\ - \ value, the higher the priority." - format: int32 - type: integer - priorityClassName: - description: "If specified, indicates the pod's priority. \"system-node-critical\"\ - \ and \"system-cluster-critical\" are two special keywords which indicate\ - \ the highest priorities with the former being the highest priority. Any\ - \ other name must be defined by creating a PriorityClass object with that\ - \ name. If not specified, the pod priority will be default or zero if\ - \ there is no default." - type: string - readinessGates: - description: "If specified, all readiness gates will be evaluated for pod\ - \ readiness. A pod is ready when all its containers are ready AND all\ - \ conditions specified in the readiness gates have status equal to \"\ - True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates" - items: - $ref: '#/components/schemas/v1.PodReadinessGate' - type: array - x-kubernetes-list-type: atomic - resourceClaims: - description: |- - ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. - - This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. - - This field is immutable. - items: - $ref: '#/components/schemas/v1.PodResourceClaim' - type: array - x-kubernetes-patch-strategy: "merge,retainKeys" - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - resources: - $ref: '#/components/schemas/v1.ResourceRequirements' - restartPolicy: - description: "Restart policy for all containers within the pod. One of Always,\ - \ OnFailure, Never. In some contexts, only a subset of those values may\ - \ be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy" - type: string - runtimeClassName: - description: "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io\ - \ group, which should be used to run this pod. If no RuntimeClass resource\ - \ matches the named class, the pod will not be run. If unset or empty,\ - \ the \"legacy\" RuntimeClass will be used, which is an implicit class\ - \ with an empty definition that uses the default runtime handler. More\ - \ info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class" - type: string - schedulerName: - description: "If specified, the pod will be dispatched by specified scheduler.\ - \ If not specified, the pod will be dispatched by default scheduler." - type: string - schedulingGates: - description: |- - SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. - - SchedulingGates can only be set at pod creation time, and be removed only afterwards. - items: - $ref: '#/components/schemas/v1.PodSchedulingGate' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - securityContext: - $ref: '#/components/schemas/v1.PodSecurityContext' - serviceAccount: - description: "DeprecatedServiceAccount is a deprecated alias for ServiceAccountName.\ - \ Deprecated: Use serviceAccountName instead." - type: string - serviceAccountName: - description: "ServiceAccountName is the name of the ServiceAccount to use\ - \ to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/" - type: string - setHostnameAsFQDN: - description: "If true the pod's hostname will be configured as the pod's\ - \ FQDN, rather than the leaf name (the default). In Linux containers,\ - \ this means setting the FQDN in the hostname field of the kernel (the\ - \ nodename field of struct utsname). In Windows containers, this means\ - \ setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\ - \\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN.\ - \ If a pod does not have FQDN, this has no effect. Default to false." - type: boolean - shareProcessNamespace: - description: "Share a single process namespace between all of the containers\ - \ in a pod. When this is set containers will be able to view and signal\ - \ processes from other containers in the same pod, and the first process\ - \ in each container will not be assigned PID 1. HostPID and ShareProcessNamespace\ - \ cannot both be set. Optional: Default to false." - type: boolean - subdomain: - description: "If specified, the fully qualified Pod hostname will be \"\ - ...svc.\". If not\ - \ specified, the pod will not have a domainname at all." - type: string - terminationGracePeriodSeconds: - description: "Optional duration in seconds the pod needs to terminate gracefully.\ - \ May be decreased in delete request. Value must be non-negative integer.\ - \ The value zero indicates stop immediately via the kill signal (no opportunity\ - \ to shut down). If this value is nil, the default grace period will be\ - \ used instead. The grace period is the duration in seconds after the\ - \ processes running in the pod are sent a termination signal and the time\ - \ when the processes are forcibly halted with a kill signal. Set this\ - \ value longer than the expected cleanup time for your process. Defaults\ - \ to 30 seconds." - format: int64 - type: integer - tolerations: - description: "If specified, the pod's tolerations." - items: - $ref: '#/components/schemas/v1.Toleration' - type: array - x-kubernetes-list-type: atomic - topologySpreadConstraints: - description: TopologySpreadConstraints describes how a group of pods ought - to spread across topology domains. Scheduler will schedule pods in a way - which abides by the constraints. All topologySpreadConstraints are ANDed. - items: - $ref: '#/components/schemas/v1.TopologySpreadConstraint' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - topologyKey - - whenUnsatisfiable - x-kubernetes-patch-merge-key: topologyKey - volumes: - description: "List of volumes that can be mounted by containers belonging\ - \ to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes" - items: - $ref: '#/components/schemas/v1.Volume' - type: array - x-kubernetes-patch-strategy: "merge,retainKeys" - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - required: - - containers - type: object - v1.PodStatus: - description: "PodStatus represents information about the status of a pod. Status\ - \ may trail the actual state of a system, especially if the node that hosts\ - \ the pod cannot contact the control plane." - example: - phase: phase - resourceClaimStatuses: - - resourceClaimName: resourceClaimName - name: name - - resourceClaimName: resourceClaimName - name: name - reason: reason - containerStatuses: - - allocatedResourcesStatus: - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true - name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - - allocatedResourcesStatus: - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true - name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - hostIP: hostIP - nominatedNodeName: nominatedNodeName - message: message - podIPs: - - ip: ip - - ip: ip - podIP: podIP - ephemeralContainerStatuses: - - allocatedResourcesStatus: - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true - name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - - allocatedResourcesStatus: - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true - name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - hostIPs: - - ip: ip - - ip: ip - resize: resize - startTime: 2000-01-23T04:56:07.000+00:00 - qosClass: qosClass - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - initContainerStatuses: - - allocatedResourcesStatus: - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true - name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 - - allocatedResourcesStatus: - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request - name: name - - request: request + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal name: name - requests: - key: null - limits: - key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - user: - linux: - uid: 0 - gid: 7 - supplementalGroups: - - 6 - - 6 + namespace: namespace + apiVersion: apiVersion + kind: kind properties: - conditions: - description: "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions" - items: - $ref: '#/components/schemas/v1.PodCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - x-kubernetes-patch-merge-key: type - containerStatuses: - description: "Statuses of containers in this pod. Each container in the\ - \ pod should have at most one status in this list, and all statuses should\ - \ be for containers in the pod. However this is not enforced. If a status\ - \ for a non-existent container is present in the list, or the list has\ - \ duplicate names, the behavior of various Kubernetes components is not\ - \ defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status" - items: - $ref: '#/components/schemas/v1.ContainerStatus' - type: array - x-kubernetes-list-type: atomic - ephemeralContainerStatuses: - description: "Statuses for any ephemeral containers that have run in this\ - \ pod. Each ephemeral container in the pod should have at most one status\ - \ in this list, and all statuses should be for containers in the pod.\ - \ However this is not enforced. If a status for a non-existent container\ - \ is present in the list, or the list has duplicate names, the behavior\ - \ of various Kubernetes components is not defined and those statuses might\ - \ be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status" - items: - $ref: '#/components/schemas/v1.ContainerStatus' - type: array - x-kubernetes-list-type: atomic - hostIP: - description: hostIP holds the IP address of the host to which the pod is - assigned. Empty if the pod has not started yet. A pod can be assigned - to a node that has a problem in kubelet which in turns mean that HostIP - will not be updated even if there is a node is assigned to pod - type: string - hostIPs: - description: "hostIPs holds the IP addresses allocated to the host. If this\ - \ field is specified, the first entry must match the hostIP field. This\ - \ list is empty if the pod has not started yet. A pod can be assigned\ - \ to a node that has a problem in kubelet which in turns means that HostIPs\ - \ will not be updated even if there is a node is assigned to this pod." - items: - $ref: '#/components/schemas/v1.HostIP' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: atomic - x-kubernetes-patch-merge-key: ip - initContainerStatuses: - description: "Statuses of init containers in this pod. The most recent successful\ - \ non-restartable init container will have ready = true, the most recently\ - \ started container will have startTime set. Each init container in the\ - \ pod should have at most one status in this list, and all statuses should\ - \ be for containers in the pod. However this is not enforced. If a status\ - \ for a non-existent container is present in the list, or the list has\ - \ duplicate names, the behavior of various Kubernetes components is not\ - \ defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status" - items: - $ref: '#/components/schemas/v1.ContainerStatus' - type: array - x-kubernetes-list-type: atomic - message: - description: A human readable message indicating details about why the pod - is in this condition. - type: string - nominatedNodeName: - description: "nominatedNodeName is set only when this pod preempts other\ - \ pods on the node, but it cannot be scheduled right away as preemption\ - \ victims receive their graceful termination periods. This field does\ - \ not guarantee that the pod will be scheduled on this node. Scheduler\ - \ may decide to place the pod elsewhere if other nodes become available\ - \ sooner. Scheduler may also decide to give the resources on this node\ - \ to a higher priority pod that is created after preemption. As a result,\ - \ this field may be different than PodSpec.nodeName when the pod is scheduled." - type: string - phase: - description: |- - The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: - - Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. - - More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase - type: string - podIP: - description: podIP address allocated to the pod. Routable at least within - the cluster. Empty if not yet allocated. - type: string - podIPs: - description: "podIPs holds the IP addresses allocated to the pod. If this\ - \ field is specified, the 0th entry must match the podIP field. Pods may\ - \ be allocated at most 1 value for each of IPv4 and IPv6. This list is\ - \ empty if no IPs have been allocated yet." - items: - $ref: '#/components/schemas/v1.PodIP' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - ip - x-kubernetes-patch-merge-key: ip - qosClass: - description: "The Quality of Service (QOS) classification assigned to the\ - \ pod based on resource requirements See PodQOSClass type for available\ - \ QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes" - type: string - reason: - description: A brief CamelCase message indicating details about why the - pod is in this state. e.g. 'Evicted' - type: string - resize: - description: Status of resources resize desired for pod's containers. It - is empty if no resources resize is pending. Any changes to container resources - will automatically set this to "Proposed" + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string - resourceClaimStatuses: - description: Status of resource claims. - items: - $ref: '#/components/schemas/v1.PodResourceClaimStatus' - type: array - x-kubernetes-patch-strategy: "merge,retainKeys" - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - startTime: - description: RFC 3339 date and time at which the object was acknowledged - by the Kubelet. This is before the Kubelet pulled the container image(s) - for the pod. - format: date-time + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + template: + $ref: '#/components/schemas/v1.PodTemplateSpec' type: object - v1.PodTemplate: - description: PodTemplate describes a template for creating copies of a predefined - pod. + x-kubernetes-group-version-kind: + - group: "" + kind: PodTemplate + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.PodTemplateList: + description: PodTemplateList is a list of PodTemplates. example: - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 9 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - fsGroup: 7 - fsGroupChangePolicy: fsGroupChangePolicy - seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - runAsUser: 4 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - supplementalGroups: - - 5 - - 5 - supplementalGroupsPolicy: supplementalGroupsPolicy - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulingGates: - - name: name - - name: name - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - template: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: - key: null - hostIPC: true - topologySpreadConstraints: - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 9 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + fsGroup: 7 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulingGates: + - name: name + - name: name + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: + key: null + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 3 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + secret: name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 3 - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 1 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - key: key - - mode: 3 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - key: key - secret: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 path: path - labelSelector: - matchExpressions: - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 3 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - - downwardAPI: - items: - - mode: 1 + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 3 path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: + key: key + - mode: 3 path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: name: name - optional: true - signerName: signerName - defaultMode: 5 - cephfs: - path: path - secretRef: + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + resources: + claims: + - request: request name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: + - request: request name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - image: - reference: reference - pullPolicy: pullPolicy - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: + requests: + key: null + limits: + key: null + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: + - devicePath: devicePath name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 6 - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 3 - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 1 + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: name: name optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: + prefix: prefix + secretRef: name: name optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels + - configMapRef: name: name optional: true - signerName: signerName - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: + prefix: prefix + secretRef: name: name optional: true - items: - - mode: 3 - path: path + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - - mode: 3 - path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - - mode: 3 - path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - defaultMode: 5 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - image: - reference: reference - pullPolicy: pullPolicy - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 6 - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - lifecycle: - postStart: - sleep: - seconds: 5 + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -204360,16 +216804,91 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -204380,244 +216899,153 @@ components: value: value - name: name value: value - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - env: - - name: name - value: value - valueFrom: - secretKeyRef: + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args name: name - containerPort: 7 - hostPort: 1 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 6 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - lifecycle: - postStart: - sleep: - seconds: 5 + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -204628,16 +217056,68 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -204648,343 +217128,192 @@ components: value: value - name: name value: value - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - prefix: prefix - secretRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - - request: request + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - requests: - key: null - limits: - key: null - env: - - name: name - value: value - valueFrom: - secretKeyRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request + - volumeDevices: + - devicePath: devicePath name: name - - request: request + - devicePath: devicePath name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -204995,16 +217324,68 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -205015,263 +217396,137 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - prefix: prefix - secretRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - - request: request + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -205282,244 +217537,52 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -205530,16 +217593,68 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -205550,243 +217665,192 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - prefix: prefix - secretRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - - configMapRef: + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - prefix: prefix - secretRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -205797,16 +217861,68 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -205817,234 +217933,268 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: matchExpressions: - values: - values @@ -206082,9 +218232,7 @@ components: namespaces: - namespaces - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: + - labelSelector: matchExpressions: - values: - values @@ -206122,88 +218270,90 @@ components: namespaces: - namespaces - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: matchExpressions: - values: - values @@ -206241,9 +218391,7 @@ components: namespaces: - namespaces - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: + - labelSelector: matchExpressions: - values: - values @@ -206281,89 +218429,136 @@ components: namespaces: - namespaces - namespaces - weight: 1 - hostPID: true - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" - type: string - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - template: - $ref: '#/components/schemas/v1.PodTemplateSpec' - type: object - x-kubernetes-group-version-kind: - - group: "" - kind: PodTemplate - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.PodTemplateList: - description: PodTemplateList is a list of PodTemplates. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: + namespace: namespace + apiVersion: apiVersion + kind: kind - template: metadata: generation: 6 @@ -207521,6 +219716,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -207789,6 +219985,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -208156,6 +220353,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -208423,6 +220621,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -208691,6 +220890,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -208958,6 +221158,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -209472,302 +221673,437 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 9 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - fsGroup: 7 - fsGroupChangePolicy: fsGroupChangePolicy - seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - runAsUser: 4 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - supplementalGroups: - - 5 - - 5 - supplementalGroupsPolicy: supplementalGroupsPolicy - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: List of pod templates + items: + $ref: '#/components/schemas/v1.PodTemplate' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: PodTemplateList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.PodTemplateSpec: + description: PodTemplateSpec describes the data a pod should have when created + from a template + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 9 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + fsGroup: 7 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulingGates: + - name: name + - name: name + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: + key: null + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values key: key operator: operator - - effect: effect - tolerationSeconds: 9 - value: value + - values: + - values + - values key: key operator: operator - automountServiceAccountToken: true - schedulingGates: - - name: name - - name: name - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: - key: null - hostIPC: true - topologySpreadConstraints: - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 3 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values + secret: + name: name + optional: true + items: + - mode: 3 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode secret: - secretName: secretName - defaultMode: 3 + name: name optional: true items: - mode: 3 @@ -209776,190 +222112,316 @@ components: - mode: 3 path: path key: key - projected: - sources: - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - defaultMode: 5 - cephfs: + serviceAccountToken: path: path - secretRef: + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - image: - reference: reference - pullPolicy: pullPolicy - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: items: - mode: 1 path: path @@ -209979,43 +222441,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors configMap: - defaultMode: 6 name: name optional: true items: @@ -210025,161 +222451,8 @@ components: - mode: 3 path: path key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode secret: - secretName: secretName - defaultMode: 3 + name: name optional: true items: - mode: 3 @@ -210188,190 +222461,30 @@ components: - mode: 3 path: path key: key - projected: - sources: - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - defaultMode: 5 - cephfs: + serviceAccountToken: path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - image: - reference: reference - pullPolicy: pullPolicy - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: items: - mode: 1 path: path @@ -210391,43 +222504,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors configMap: - defaultMode: 6 name: name optional: true items: @@ -210437,2179 +222514,2733 @@ components: - mode: 3 path: path key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: name: name - nfs: + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: path: path - type: type - resources: - claims: - - request: request + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - request: request + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - requests: - key: null - limits: - key: null - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - containerPort: 7 - hostPort: 1 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 6 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - args: - - args - - args + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - containerPort: 7 - hostPort: 1 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - resourceClaimName: resourceClaimName + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request name: name - resourceClaimTemplateName: resourceClaimTemplateName - - resourceClaimName: resourceClaimName + - request: request name: name - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true + operator: operator + - values: + - values + - values key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true + operator: operator + - values: + - values + - values key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true + operator: operator + - values: + - values + - values key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true + operator: operator + - values: + - values + - values key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + properties: + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.PodSpec' + type: object + v1.PortStatus: + description: PortStatus represents the error condition of a service port + example: + protocol: protocol + port: 2 + error: error + properties: + error: + description: |- + Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use + CamelCase names + - cloud provider specific error values must have names that comply with the + format foo.example.com/CamelCase. + type: string + port: + description: Port is the port number of the service port of which status + is recorded here + format: int32 + type: integer + protocol: + description: "Protocol is the protocol of the service port of which status\ + \ is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\"" + type: string + required: + - port + - protocol + type: object + v1.PortworxVolumeSource: + description: PortworxVolumeSource represents a Portworx volume resource. + example: + volumeID: volumeID + readOnly: true + fsType: fsType + properties: + fsType: + description: "fSType represents the filesystem type to mount Must be a filesystem\ + \ type supported by the host operating system. Ex. \"ext4\", \"xfs\".\ + \ Implicitly inferred to be \"ext4\" if unspecified." + type: string + readOnly: + description: readOnly defaults to false (read/write). ReadOnly here will + force the ReadOnly setting in VolumeMounts. + type: boolean + volumeID: + description: volumeID uniquely identifies a Portworx volume + type: string + required: + - volumeID + type: object + v1.PreferredSchedulingTerm: + description: An empty preferred scheduling term matches all objects with implicit + weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no + objects (i.e. is also a no-op). + example: + preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + properties: + preference: + $ref: '#/components/schemas/v1.NodeSelectorTerm' + weight: + description: "Weight associated with matching the corresponding nodeSelectorTerm,\ + \ in the range 1-100." + format: int32 + type: integer + required: + - preference + - weight + type: object + v1.Probe: + description: Probe describes a health check to be performed against a container + to determine whether it is alive or ready to receive traffic. + example: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + properties: + exec: + $ref: '#/components/schemas/v1.ExecAction' + failureThreshold: + description: Minimum consecutive failures for the probe to be considered + failed after having succeeded. Defaults to 3. Minimum value is 1. + format: int32 + type: integer + grpc: + $ref: '#/components/schemas/v1.GRPCAction' + httpGet: + $ref: '#/components/schemas/v1.HTTPGetAction' + initialDelaySeconds: + description: "Number of seconds after the container has started before liveness\ + \ probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + format: int32 + type: integer + periodSeconds: + description: How often (in seconds) to perform the probe. Default to 10 + seconds. Minimum value is 1. + format: int32 + type: integer + successThreshold: + description: Minimum consecutive successes for the probe to be considered + successful after having failed. Defaults to 1. Must be 1 for liveness + and startup. Minimum value is 1. + format: int32 + type: integer + tcpSocket: + $ref: '#/components/schemas/v1.TCPSocketAction' + terminationGracePeriodSeconds: + description: "Optional duration in seconds the pod needs to terminate gracefully\ + \ upon probe failure. The grace period is the duration in seconds after\ + \ the processes running in the pod are sent a termination signal and the\ + \ time when the processes are forcibly halted with a kill signal. Set\ + \ this value longer than the expected cleanup time for your process. If\ + \ this value is nil, the pod's terminationGracePeriodSeconds will be used.\ + \ Otherwise, this value overrides the value provided by the pod spec.\ + \ Value must be non-negative integer. The value zero indicates stop immediately\ + \ via the kill signal (no opportunity to shut down). This is a beta field\ + \ and requires enabling ProbeTerminationGracePeriod feature gate. Minimum\ + \ value is 1. spec.terminationGracePeriodSeconds is used if unset." + format: int64 + type: integer + timeoutSeconds: + description: "Number of seconds after which the probe times out. Defaults\ + \ to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + format: int32 + type: integer + type: object + v1.ProjectedVolumeSource: + description: Represents a projected volume source + example: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: name: name - namespace: namespace - apiVersion: apiVersion - kind: kind + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + defaultMode: + description: "defaultMode are the mode bits used to set permissions on created\ + \ files by default. Must be an octal value between 0000 and 0777 or a\ + \ decimal value between 0 and 511. YAML accepts both octal and decimal\ + \ values, JSON requires decimal values for mode bits. Directories within\ + \ the path are not affected by this setting. This might be in conflict\ + \ with other options that affect the file mode, like fsGroup, and the\ + \ result can be other mode bits set." + format: int32 + type: integer + sources: + description: sources is the list of volume projections. Each entry in this + list handles one source. + items: + $ref: '#/components/schemas/v1.VolumeProjection' + type: array + x-kubernetes-list-type: atomic + type: object + v1.QuobyteVolumeSource: + description: Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte + volumes do not support ownership management or SELinux relabeling. + example: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + properties: + group: + description: group to map volume access to Default is no group type: string - items: - description: List of pod templates + readOnly: + description: readOnly here will force the Quobyte volume to be mounted with + read-only permissions. Defaults to false. + type: boolean + registry: + description: registry represents a single or multiple Quobyte Registry services + specified as a string as host:port pair (multiple entries are separated + with commas) which acts as the central registry for volumes + type: string + tenant: + description: "tenant owning the given Quobyte volume in the Backend Used\ + \ with dynamically provisioned Quobyte volumes, value is set by the plugin" + type: string + user: + description: user to map volume access to Defaults to serivceaccount user + type: string + volume: + description: volume is a string that references an already created Quobyte + volume by name. + type: string + required: + - registry + - volume + type: object + v1.RBDPersistentVolumeSource: + description: Represents a Rados Block Device mount that lasts the lifetime of + a pod. RBD volumes support ownership management and SELinux relabeling. + example: + image: image + pool: pool + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + properties: + fsType: + description: "fsType is the filesystem type of the volume that you want\ + \ to mount. Tip: Ensure that the filesystem type is supported by the host\ + \ operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly\ + \ inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd" + type: string + image: + description: "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + type: string + keyring: + description: "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring.\ + \ More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + type: string + monitors: + description: "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" items: - $ref: '#/components/schemas/v1.PodTemplate' + type: string type: array - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + x-kubernetes-list-type: atomic + pool: + description: "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + type: string + readOnly: + description: "readOnly here will force the ReadOnly setting in VolumeMounts.\ + \ Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + type: boolean + secretRef: + $ref: '#/components/schemas/v1.SecretReference' + user: + description: "user is the rados user name. Default is admin. More info:\ + \ https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' required: - - items + - image + - monitors type: object - x-kubernetes-group-version-kind: - - group: "" - kind: PodTemplateList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.PodTemplateSpec: - description: PodTemplateSpec describes the data a pod should have when created - from a template + v1.RBDVolumeSource: + description: Represents a Rados Block Device mount that lasts the lifetime of + a pod. RBD volumes support ownership management and SELinux relabeling. + example: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + properties: + fsType: + description: "fsType is the filesystem type of the volume that you want\ + \ to mount. Tip: Ensure that the filesystem type is supported by the host\ + \ operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly\ + \ inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd" + type: string + image: + description: "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + type: string + keyring: + description: "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring.\ + \ More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + type: string + monitors: + description: "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + items: + type: string + type: array + x-kubernetes-list-type: atomic + pool: + description: "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + type: string + readOnly: + description: "readOnly here will force the ReadOnly setting in VolumeMounts.\ + \ Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + type: boolean + secretRef: + $ref: '#/components/schemas/v1.LocalObjectReference' + user: + description: "user is the rados user name. Default is admin. More info:\ + \ https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + type: string + required: + - image + - monitors + type: object + v1.ReplicationController: + description: ReplicationController represents the configuration of a replication + controller. example: metadata: generation: 6 @@ -212657,360 +225288,305 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace + apiVersion: apiVersion + kind: kind spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 9 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - fsGroup: 7 - fsGroupChangePolicy: fsGroupChangePolicy - seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - runAsUser: 4 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - supplementalGroups: - - 5 - - 5 - supplementalGroupsPolicy: supplementalGroupsPolicy - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulingGates: - - name: name - - name: name - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: - key: null - hostIPC: true - topologySpreadConstraints: - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values + template: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 9 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + fsGroup: 7 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value key: key operator: operator - - values: - - values - - values + - effect: effect + tolerationSeconds: 9 + value: value key: key operator: operator - matchLabels: - key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: + automountServiceAccountToken: true + schedulingGates: + - name: name + - name: name + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 3 - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: + key: null + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values key: key - - mode: 3 - path: path + operator: operator + - values: + - values + - values key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values key: key - - mode: 3 - path: path + operator: operator + - values: + - values + - values key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode secret: - name: name + secretName: secretName + defaultMode: 3 optional: true items: - mode: 3 @@ -213019,316 +225595,190 @@ components: - mode: 3 path: path key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - defaultMode: 5 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - image: - reference: reference - pullPolicy: pullPolicy - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 6 - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind + secretRef: name: name - namespace: namespace + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + secretRef: name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 3 - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - projected: - sources: - - downwardAPI: + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 items: - mode: 1 path: path @@ -213348,7 +225798,43 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors configMap: + defaultMode: 6 name: name optional: true items: @@ -213358,8 +225844,161 @@ components: - mode: 3 path: path key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode secret: - name: name + secretName: secretName + defaultMode: 3 optional: true items: - mode: 3 @@ -213368,30 +226007,190 @@ components: - mode: 3 path: path key: key - serviceAccountToken: + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - - downwardAPI: + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 items: - mode: 1 path: path @@ -213411,7 +226210,43 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors configMap: + defaultMode: 6 name: name optional: true items: @@ -213421,3904 +226256,3592 @@ components: - mode: 3 path: path key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - defaultMode: 5 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - image: - reference: reference - pullPolicy: pullPolicy - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 6 - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes name: name - requests: - key: null - limits: - key: null - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: + nfs: path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - env: - - name: name - value: value - valueFrom: - secretKeyRef: + type: type + resources: + claims: + - request: request name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + - request: request name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + requests: + key: null + limits: + key: null + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + - devicePath: devicePath name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: - name: name value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy command: - command - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request + args: + - args + - args name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + - devicePath: devicePath name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: - name: name value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy command: - command - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + args: + - args + - args + name: name + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 6 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: - name: name value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy command: - command - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + - devicePath: devicePath name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: - name: name value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy command: - command - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: - name: name value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy command: - command - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: - name: name value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy command: - command - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + replicas: 6 + selector: + key: selector + minReadySeconds: 0 + status: + fullyLabeledReplicas: 5 + replicas: 7 + readyReplicas: 2 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + availableReplicas: 1 + observedGeneration: 5 properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1.PodSpec' - type: object - v1.PortStatus: - description: PortStatus represents the error condition of a service port - example: - protocol: protocol - port: 2 - error: error - properties: - error: - description: |- - Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use - CamelCase names - - cloud provider specific error values must have names that comply with the - format foo.example.com/CamelCase. - type: string - port: - description: Port is the port number of the service port of which status - is recorded here - format: int32 - type: integer - protocol: - description: "Protocol is the protocol of the service port of which status\ - \ is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\"" - type: string - required: - - port - - protocol - type: object - v1.PortworxVolumeSource: - description: PortworxVolumeSource represents a Portworx volume resource. - example: - volumeID: volumeID - readOnly: true - fsType: fsType - properties: - fsType: - description: "fSType represents the filesystem type to mount Must be a filesystem\ - \ type supported by the host operating system. Ex. \"ext4\", \"xfs\".\ - \ Implicitly inferred to be \"ext4\" if unspecified." - type: string - readOnly: - description: readOnly defaults to false (read/write). ReadOnly here will - force the ReadOnly setting in VolumeMounts. - type: boolean - volumeID: - description: volumeID uniquely identifies a Portworx volume - type: string - required: - - volumeID - type: object - v1.PreferredSchedulingTerm: - description: An empty preferred scheduling term matches all objects with implicit - weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no - objects (i.e. is also a no-op). - example: - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - properties: - preference: - $ref: '#/components/schemas/v1.NodeSelectorTerm' - weight: - description: "Weight associated with matching the corresponding nodeSelectorTerm,\ - \ in the range 1-100." - format: int32 - type: integer - required: - - preference - - weight - type: object - v1.Probe: - description: Probe describes a health check to be performed against a container - to determine whether it is alive or ready to receive traffic. - example: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - properties: - exec: - $ref: '#/components/schemas/v1.ExecAction' - failureThreshold: - description: Minimum consecutive failures for the probe to be considered - failed after having succeeded. Defaults to 3. Minimum value is 1. - format: int32 - type: integer - grpc: - $ref: '#/components/schemas/v1.GRPCAction' - httpGet: - $ref: '#/components/schemas/v1.HTTPGetAction' - initialDelaySeconds: - description: "Number of seconds after the container has started before liveness\ - \ probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" - format: int32 - type: integer - periodSeconds: - description: How often (in seconds) to perform the probe. Default to 10 - seconds. Minimum value is 1. - format: int32 - type: integer - successThreshold: - description: Minimum consecutive successes for the probe to be considered - successful after having failed. Defaults to 1. Must be 1 for liveness - and startup. Minimum value is 1. - format: int32 - type: integer - tcpSocket: - $ref: '#/components/schemas/v1.TCPSocketAction' - terminationGracePeriodSeconds: - description: "Optional duration in seconds the pod needs to terminate gracefully\ - \ upon probe failure. The grace period is the duration in seconds after\ - \ the processes running in the pod are sent a termination signal and the\ - \ time when the processes are forcibly halted with a kill signal. Set\ - \ this value longer than the expected cleanup time for your process. If\ - \ this value is nil, the pod's terminationGracePeriodSeconds will be used.\ - \ Otherwise, this value overrides the value provided by the pod spec.\ - \ Value must be non-negative integer. The value zero indicates stop immediately\ - \ via the kill signal (no opportunity to shut down). This is a beta field\ - \ and requires enabling ProbeTerminationGracePeriod feature gate. Minimum\ - \ value is 1. spec.terminationGracePeriodSeconds is used if unset." - format: int64 - type: integer - timeoutSeconds: - description: "Number of seconds after which the probe times out. Defaults\ - \ to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" - format: int32 - type: integer - type: object - v1.ProjectedVolumeSource: - description: Represents a projected volume source - example: - sources: - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - defaultMode: 5 - properties: - defaultMode: - description: "defaultMode are the mode bits used to set permissions on created\ - \ files by default. Must be an octal value between 0000 and 0777 or a\ - \ decimal value between 0 and 511. YAML accepts both octal and decimal\ - \ values, JSON requires decimal values for mode bits. Directories within\ - \ the path are not affected by this setting. This might be in conflict\ - \ with other options that affect the file mode, like fsGroup, and the\ - \ result can be other mode bits set." - format: int32 - type: integer - sources: - description: sources is the list of volume projections. Each entry in this - list handles one source. - items: - $ref: '#/components/schemas/v1.VolumeProjection' - type: array - x-kubernetes-list-type: atomic - type: object - v1.QuobyteVolumeSource: - description: Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte - volumes do not support ownership management or SELinux relabeling. - example: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - properties: - group: - description: group to map volume access to Default is no group - type: string - readOnly: - description: readOnly here will force the Quobyte volume to be mounted with - read-only permissions. Defaults to false. - type: boolean - registry: - description: registry represents a single or multiple Quobyte Registry services - specified as a string as host:port pair (multiple entries are separated - with commas) which acts as the central registry for volumes - type: string - tenant: - description: "tenant owning the given Quobyte volume in the Backend Used\ - \ with dynamically provisioned Quobyte volumes, value is set by the plugin" - type: string - user: - description: user to map volume access to Defaults to serivceaccount user - type: string - volume: - description: volume is a string that references an already created Quobyte - volume by name. - type: string - required: - - registry - - volume - type: object - v1.RBDPersistentVolumeSource: - description: Represents a Rados Block Device mount that lasts the lifetime of - a pod. RBD volumes support ownership management and SELinux relabeling. - example: - image: image - pool: pool - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - properties: - fsType: - description: "fsType is the filesystem type of the volume that you want\ - \ to mount. Tip: Ensure that the filesystem type is supported by the host\ - \ operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly\ - \ inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd" - type: string - image: - description: "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" - type: string - keyring: - description: "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring.\ - \ More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" - type: string - monitors: - description: "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" - items: - type: string - type: array - x-kubernetes-list-type: atomic - pool: - description: "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" - type: string - readOnly: - description: "readOnly here will force the ReadOnly setting in VolumeMounts.\ - \ Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" - type: boolean - secretRef: - $ref: '#/components/schemas/v1.SecretReference' - user: - description: "user is the rados user name. Default is admin. More info:\ - \ https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" - type: string - required: - - image - - monitors + $ref: '#/components/schemas/v1.ReplicationControllerSpec' + status: + $ref: '#/components/schemas/v1.ReplicationControllerStatus' type: object - v1.RBDVolumeSource: - description: Represents a Rados Block Device mount that lasts the lifetime of - a pod. RBD volumes support ownership management and SELinux relabeling. + x-kubernetes-group-version-kind: + - group: "" + kind: ReplicationController + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ReplicationControllerCondition: + description: ReplicationControllerCondition describes the state of a replication + controller at a certain point. example: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status properties: - fsType: - description: "fsType is the filesystem type of the volume that you want\ - \ to mount. Tip: Ensure that the filesystem type is supported by the host\ - \ operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly\ - \ inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd" + lastTransitionTime: + description: The last time the condition transitioned from one status to + another. + format: date-time type: string - image: - description: "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + message: + description: A human readable message indicating details about the transition. type: string - keyring: - description: "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring.\ - \ More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + reason: + description: The reason for the condition's last transition. type: string - monitors: - description: "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" - items: - type: string - type: array - x-kubernetes-list-type: atomic - pool: - description: "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + status: + description: "Status of the condition, one of True, False, Unknown." type: string - readOnly: - description: "readOnly here will force the ReadOnly setting in VolumeMounts.\ - \ Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" - type: boolean - secretRef: - $ref: '#/components/schemas/v1.LocalObjectReference' - user: - description: "user is the rados user name. Default is admin. More info:\ - \ https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + type: + description: Type of replication controller condition. type: string required: - - image - - monitors + - status + - type type: object - v1.ReplicationController: - description: ReplicationController represents the configuration of a replication - controller. + v1.ReplicationControllerList: + description: ReplicationControllerList is a collection of replication controllers. example: metadata: - generation: 6 - finalizers: - - finalizers - - finalizers + remainingItemCount: 1 + continue: continue resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace apiVersion: apiVersion kind: kind - spec: - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 9 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + template: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 9 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - fsGroup: 7 - fsGroupChangePolicy: fsGroupChangePolicy - seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 - runAsNonRoot: true - sysctls: - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + fsGroup: 7 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 value: value - - name: name + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 value: value - runAsUser: 4 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - supplementalGroups: - - 5 - - 5 - supplementalGroupsPolicy: supplementalGroupsPolicy - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulingGates: - - name: name - - name: name - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: - key: null - hostIPC: true - topologySpreadConstraints: - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + key: key + operator: operator + automountServiceAccountToken: true + schedulingGates: + - name: name + - name: name + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: + key: null + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 3 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + secret: name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 3 - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - key: key - - mode: 3 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 3 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - - downwardAPI: - items: - - mode: 1 + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: name: name - optional: true - signerName: signerName - defaultMode: 5 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - image: - reference: reference - pullPolicy: pullPolicy - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 6 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes name: name - optional: true - items: - - mode: 3 + nfs: path: path - key: key - - mode: 3 + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 3 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + secret: name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 3 - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 1 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - key: key - - mode: 3 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - key: key - secret: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 3 path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: + key: key + - mode: 3 path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: name: name - optional: true - signerName: signerName - defaultMode: 5 - cephfs: - path: path - secretRef: + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + resources: + claims: + - request: request name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: + - request: request name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - image: - reference: reference - pullPolicy: pullPolicy - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: + requests: + key: null + limits: + key: null + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: + - devicePath: devicePath name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 6 - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - lifecycle: - postStart: - sleep: - seconds: 5 + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -217329,16 +229852,91 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -217349,244 +229947,45 @@ components: value: value - name: name value: value - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - env: - - name: name - value: value - valueFrom: - secretKeyRef: + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - lifecycle: - postStart: - sleep: - seconds: 5 + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -217597,16 +229996,104 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 6 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -217617,343 +230104,68 @@ components: value: value - name: name value: value - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + - request: request name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -217964,16 +230176,137 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -217984,243 +230317,51 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -218231,16 +230372,68 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -218251,244 +230444,193 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - prefix: prefix - secretRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - - configMapRef: + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - prefix: prefix - secretRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -218499,16 +230641,68 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -218519,243 +230713,192 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - prefix: prefix - secretRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - - configMapRef: + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - prefix: prefix - secretRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -218766,16 +230909,68 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -218786,234 +230981,268 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: matchExpressions: - values: - values @@ -219051,9 +231280,7 @@ components: namespaces: - namespaces - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: + - labelSelector: matchExpressions: - values: - values @@ -219091,88 +231318,90 @@ components: namespaces: - namespaces - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: matchExpressions: - values: - values @@ -219210,9 +231439,7 @@ components: namespaces: - namespaces - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: + - labelSelector: matchExpressions: - values: - values @@ -219250,95 +231477,109 @@ components: namespaces: - namespaces - namespaces - weight: 1 - hostPID: true - replicas: 6 - selector: - key: selector - minReadySeconds: 0 - status: - fullyLabeledReplicas: 5 - replicas: 7 - readyReplicas: 2 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - availableReplicas: 1 - observedGeneration: 5 - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" - type: string - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.ReplicationControllerSpec' - status: - $ref: '#/components/schemas/v1.ReplicationControllerStatus' - type: object - x-kubernetes-group-version-kind: - - group: "" - kind: ReplicationController - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.ReplicationControllerCondition: - description: ReplicationControllerCondition describes the state of a replication - controller at a certain point. - example: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - properties: - lastTransitionTime: - description: The last time the condition transitioned from one status to - another. - format: date-time - type: string - message: - description: A human readable message indicating details about the transition. - type: string - reason: - description: The reason for the condition's last transition. - type: string - status: - description: "Status of the condition, one of True, False, Unknown." - type: string - type: - description: Type of replication controller condition. - type: string - required: - - status - - type - type: object - v1.ReplicationControllerList: - description: ReplicationControllerList is a collection of replication controllers. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + replicas: 6 + selector: + key: selector + minReadySeconds: 0 + status: + fullyLabeledReplicas: 5 + replicas: 7 + readyReplicas: 2 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + availableReplicas: 1 + observedGeneration: 5 - metadata: generation: 6 finalizers: @@ -220545,6 +232786,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -220813,6 +233055,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -221180,6 +233423,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -221447,6 +233691,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -221715,6 +233960,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -221982,6 +234228,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: @@ -222469,7 +234716,39 @@ components: status: status availableReplicas: 1 observedGeneration: 5 - - metadata: + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: "List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller" + items: + $ref: '#/components/schemas/v1.ReplicationController' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: ReplicationControllerList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.ReplicationControllerSpec: + description: ReplicationControllerSpec is the specification of a replication + controller. + example: + template: + metadata: generation: 6 finalizers: - finalizers @@ -222515,305 +234794,297 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - apiVersion: apiVersion - kind: kind spec: - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 9 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - fsGroup: 7 - fsGroupChangePolicy: fsGroupChangePolicy - seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - runAsUser: 4 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - supplementalGroups: - - 5 - - 5 - supplementalGroupsPolicy: supplementalGroupsPolicy - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 9 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + fsGroup: 7 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulingGates: + - name: name + - name: name + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: + key: null + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values key: key operator: operator - - effect: effect - tolerationSeconds: 9 - value: value + - values: + - values + - values key: key operator: operator - automountServiceAccountToken: true - schedulingGates: - - name: name - - name: name - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: - key: null - hostIPC: true - topologySpreadConstraints: - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key secret: - secretName: secretName - defaultMode: 3 + name: name optional: true items: - mode: 3 @@ -222822,190 +235093,30 @@ components: - mode: 3 path: path key: key - projected: - sources: - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - defaultMode: 5 - cephfs: + serviceAccountToken: path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - image: - reference: reference - pullPolicy: pullPolicy - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: items: - mode: 1 path: path @@ -223025,43 +235136,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors configMap: - defaultMode: 6 name: name optional: true items: @@ -223071,161 +235146,8 @@ components: - mode: 3 path: path key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode secret: - secretName: secretName - defaultMode: 3 + name: name optional: true items: - mode: 3 @@ -223234,190 +235156,379 @@ components: - mode: 3 path: path key: key - projected: - sources: - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - defaultMode: 5 - cephfs: + serviceAccountToken: path: path - secretRef: + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace volumeName: volumeName - secretRef: + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - image: - reference: reference - pullPolicy: pullPolicy - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: items: - mode: 1 path: path @@ -223437,2200 +235548,6401 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors configMap: - defaultMode: 6 name: name optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: name: name - nfs: + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: path: path - type: type - resources: - claims: - - request: request + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - request: request + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - requests: - key: null - limits: - key: null - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - containerPort: 7 - hostPort: 1 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 6 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - containerPort: 7 - hostPort: 1 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - resourceClaimName: resourceClaimName + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request name: name - resourceClaimTemplateName: resourceClaimTemplateName - - resourceClaimName: resourceClaimName + - request: request name: name - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath + value: value - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - replicas: 6 + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + replicas: 6 + selector: + key: selector + minReadySeconds: 0 + properties: + minReadySeconds: + description: "Minimum number of seconds for which a newly created pod should\ + \ be ready without any of its container crashing, for it to be considered\ + \ available. Defaults to 0 (pod will be considered available as soon as\ + \ it is ready)" + format: int32 + type: integer + replicas: + description: "Replicas is the number of desired replicas. This is a pointer\ + \ to distinguish between explicit zero and unspecified. Defaults to 1.\ + \ More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller" + format: int32 + type: integer + selector: + additionalProperties: + type: string + description: "Selector is a label query over pods that should match the\ + \ Replicas count. If Selector is empty, it is defaulted to the labels\ + \ present on the Pod template. Label keys and values that must match in\ + \ order to be controlled by this replication controller, if empty defaulted\ + \ to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + type: object + x-kubernetes-map-type: atomic + template: + $ref: '#/components/schemas/v1.PodTemplateSpec' + type: object + v1.ReplicationControllerStatus: + description: ReplicationControllerStatus represents the current status of a + replication controller. + example: + fullyLabeledReplicas: 5 + replicas: 7 + readyReplicas: 2 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + availableReplicas: 1 + observedGeneration: 5 + properties: + availableReplicas: + description: The number of available replicas (ready for at least minReadySeconds) + for this replication controller. + format: int32 + type: integer + conditions: + description: Represents the latest available observations of a replication + controller's current state. + items: + $ref: '#/components/schemas/v1.ReplicationControllerCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + fullyLabeledReplicas: + description: The number of pods that have labels matching the labels of + the pod template of the replication controller. + format: int32 + type: integer + observedGeneration: + description: ObservedGeneration reflects the generation of the most recently + observed replication controller. + format: int64 + type: integer + readyReplicas: + description: The number of ready replicas for this replication controller. + format: int32 + type: integer + replicas: + description: "Replicas is the most recently observed number of replicas.\ + \ More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller" + format: int32 + type: integer + required: + - replicas + type: object + v1.ResourceClaim: + description: ResourceClaim references one entry in PodSpec.ResourceClaims. + example: + request: request + name: name + properties: + name: + description: Name must match the name of one entry in pod.spec.resourceClaims + of the Pod where this field is used. It makes that resource available + inside a container. + type: string + request: + description: "Request is the name chosen for a request in the referenced\ + \ claim. If empty, everything from the claim is made available, otherwise\ + \ only the result of this request." + type: string + required: + - name + type: object + v1.ResourceFieldSelector: + description: "ResourceFieldSelector represents container resources (cpu, memory)\ + \ and their output format" + example: + divisor: divisor + resource: resource + containerName: containerName + properties: + containerName: + description: "Container name: required for volumes, optional for env vars" + type: string + divisor: + description: "Quantity is a fixed-point representation of a number. It provides\ + \ convenient marshaling/unmarshaling in JSON and YAML, in addition to\ + \ String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\ + ``` ::= \n\n\t(Note that \ + \ may be empty, from the \"\" case in .)\n\n \ + \ ::= 0 | 1 | ... | 9 ::= | \ + \ ::= | . | . | .\ + \ ::= \"+\" | \"-\" ::= |\ + \ ::= | \ + \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ + \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ + \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ + \ ::= \"e\" | \"E\" ```\n\nNo matter which\ + \ of the three exponent forms is used, no quantity may represent a number\ + \ greater than 2^63-1 in magnitude, nor may it have more than 3 decimal\ + \ places. Numbers larger or more precise will be capped or rounded up.\ + \ (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future\ + \ if we require larger or smaller quantities.\n\nWhen a Quantity is parsed\ + \ from a string, it will remember the type of suffix it had, and will\ + \ use the same type again when it is serialized.\n\nBefore serializing,\ + \ Quantity will be put in \"canonical form\". This means that Exponent/suffix\ + \ will be adjusted up or down (with a corresponding increase or decrease\ + \ in Mantissa) such that:\n\n- No precision is lost - No fractional digits\ + \ will be emitted - The exponent (or suffix) is as large as possible.\n\ + \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ + \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ + \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ + \ by a floating point number. That is the whole point of this exercise.\n\ + \nNon-canonical values will still parse as long as they are well formed,\ + \ but will be re-emitted in their canonical form. (So always use canonical\ + \ form, or don't diff.)\n\nThis format is intended to make it difficult\ + \ to use these numbers without writing some sort of special handling code\ + \ in the hopes that that will cause implementors to also use a fixed point\ + \ implementation." + format: quantity + type: string + resource: + description: "Required: resource to select" + type: string + required: + - resource + type: object + x-kubernetes-map-type: atomic + v1.ResourceHealth: + description: ResourceHealth represents the health of a resource. It has the + latest device health information. This is a part of KEP https://kep.k8s.io/4680. + example: + resourceID: resourceID + health: health + properties: + health: + description: |- + Health of the resource. can be one of: + - Healthy: operates as normal + - Unhealthy: reported unhealthy. We consider this a temporary health issue + since we do not have a mechanism today to distinguish + temporary and permanent issues. + - Unknown: The status cannot be determined. + For example, Device Plugin got unregistered and hasn't been re-registered since. + + In future we may want to introduce the PermanentlyUnhealthy Status. + type: string + resourceID: + description: ResourceID is the unique identifier of the resource. See the + ResourceID type for more information. + type: string + required: + - resourceID + type: object + v1.ResourceQuota: + description: ResourceQuota sets aggregate quota restrictions enforced per namespace + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + scopeSelector: + matchExpressions: + - scopeName: scopeName + values: + - values + - values + operator: operator + - scopeName: scopeName + values: + - values + - values + operator: operator + hard: + key: null + scopes: + - scopes + - scopes + status: + hard: + key: null + used: + key: null + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.ResourceQuotaSpec' + status: + $ref: '#/components/schemas/v1.ResourceQuotaStatus' + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: ResourceQuota + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ResourceQuotaList: + description: ResourceQuotaList is a list of ResourceQuota items. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + scopeSelector: + matchExpressions: + - scopeName: scopeName + values: + - values + - values + operator: operator + - scopeName: scopeName + values: + - values + - values + operator: operator + hard: + key: null + scopes: + - scopes + - scopes + status: + hard: + key: null + used: + key: null + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + scopeSelector: + matchExpressions: + - scopeName: scopeName + values: + - values + - values + operator: operator + - scopeName: scopeName + values: + - values + - values + operator: operator + hard: + key: null + scopes: + - scopes + - scopes + status: + hard: + key: null + used: + key: null + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: "Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/" + items: + $ref: '#/components/schemas/v1.ResourceQuota' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: ResourceQuotaList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.ResourceQuotaSpec: + description: ResourceQuotaSpec defines the desired hard limits to enforce for + Quota. + example: + scopeSelector: + matchExpressions: + - scopeName: scopeName + values: + - values + - values + operator: operator + - scopeName: scopeName + values: + - values + - values + operator: operator + hard: + key: null + scopes: + - scopes + - scopes + properties: + hard: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: "hard is the set of desired hard limits for each named resource.\ + \ More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/" + type: object + scopeSelector: + $ref: '#/components/schemas/v1.ScopeSelector' + scopes: + description: "A collection of filters that must match each object tracked\ + \ by a quota. If not specified, the quota matches all objects." + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + v1.ResourceQuotaStatus: + description: ResourceQuotaStatus defines the enforced hard limits and observed + use. + example: + hard: + key: null + used: + key: null + properties: + hard: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: "Hard is the set of enforced hard limits for each named resource.\ + \ More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/" + type: object + used: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: Used is the current observed total usage of the resource in + the namespace. + type: object + type: object + v1.ResourceRequirements: + description: ResourceRequirements describes the compute resource requirements. + example: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + properties: + claims: + description: |- + Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. + + This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. + + This field is immutable. It can only be set for containers. + items: + $ref: '#/components/schemas/v1.ResourceClaim' + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + limits: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: "Limits describes the maximum amount of compute resources allowed.\ + \ More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" + type: object + requests: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: "Requests describes the minimum amount of compute resources\ + \ required. If Requests is omitted for a container, it defaults to Limits\ + \ if that is explicitly specified, otherwise to an implementation-defined\ + \ value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" + type: object + type: object + v1.ResourceStatus: + description: ResourceStatus represents the status of a single resource allocated + to a Pod. + example: + name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + properties: + name: + description: "Name of the resource. Must be unique within the pod and in\ + \ case of non-DRA resource, match one of the resources from the pod spec.\ + \ For DRA resources, the value must be \"claim:/\"\ + . When this status is reported about a container, the \"claim_name\" and\ + \ \"request\" must match one of the claims of this container." + type: string + resources: + description: "List of unique resources health. Each element in the list\ + \ contains an unique resource ID and its health. At a minimum, for the\ + \ lifetime of a Pod, resource ID must uniquely identify the resource allocated\ + \ to the Pod on the Node. If other Pod on the same Node reports the status\ + \ with the same resource ID, it must be the same resource they share.\ + \ See ResourceID type definition for a specific format it has in various\ + \ use cases." + items: + $ref: '#/components/schemas/v1.ResourceHealth' + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - resourceID + required: + - name + type: object + v1.SELinuxOptions: + description: SELinuxOptions are the labels to be applied to the container + example: + role: role + level: level + type: type + user: user + properties: + level: + description: Level is SELinux level label that applies to the container. + type: string + role: + description: Role is a SELinux role label that applies to the container. + type: string + type: + description: Type is a SELinux type label that applies to the container. + type: string + user: + description: User is a SELinux user label that applies to the container. + type: string + type: object + v1.ScaleIOPersistentVolumeSource: + description: ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume + example: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + properties: + fsType: + description: "fsType is the filesystem type to mount. Must be a filesystem\ + \ type supported by the host operating system. Ex. \"ext4\", \"xfs\",\ + \ \"ntfs\". Default is \"xfs\"" + type: string + gateway: + description: gateway is the host address of the ScaleIO API Gateway. + type: string + protectionDomain: + description: protectionDomain is the name of the ScaleIO Protection Domain + for the configured storage. + type: string + readOnly: + description: readOnly defaults to false (read/write). ReadOnly here will + force the ReadOnly setting in VolumeMounts. + type: boolean + secretRef: + $ref: '#/components/schemas/v1.SecretReference' + sslEnabled: + description: "sslEnabled is the flag to enable/disable SSL communication\ + \ with Gateway, default false" + type: boolean + storageMode: + description: storageMode indicates whether the storage for a volume should + be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + type: string + storagePool: + description: storagePool is the ScaleIO Storage Pool associated with the + protection domain. + type: string + system: + description: system is the name of the storage system as configured in ScaleIO. + type: string + volumeName: + description: volumeName is the name of a volume already created in the ScaleIO + system that is associated with this volume source. + type: string + required: + - gateway + - secretRef + - system + type: object + v1.ScaleIOVolumeSource: + description: ScaleIOVolumeSource represents a persistent ScaleIO volume + example: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + properties: + fsType: + description: "fsType is the filesystem type to mount. Must be a filesystem\ + \ type supported by the host operating system. Ex. \"ext4\", \"xfs\",\ + \ \"ntfs\". Default is \"xfs\"." + type: string + gateway: + description: gateway is the host address of the ScaleIO API Gateway. + type: string + protectionDomain: + description: protectionDomain is the name of the ScaleIO Protection Domain + for the configured storage. + type: string + readOnly: + description: readOnly Defaults to false (read/write). ReadOnly here will + force the ReadOnly setting in VolumeMounts. + type: boolean + secretRef: + $ref: '#/components/schemas/v1.LocalObjectReference' + sslEnabled: + description: "sslEnabled Flag enable/disable SSL communication with Gateway,\ + \ default false" + type: boolean + storageMode: + description: storageMode indicates whether the storage for a volume should + be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + type: string + storagePool: + description: storagePool is the ScaleIO Storage Pool associated with the + protection domain. + type: string + system: + description: system is the name of the storage system as configured in ScaleIO. + type: string + volumeName: + description: volumeName is the name of a volume already created in the ScaleIO + system that is associated with this volume source. + type: string + required: + - gateway + - secretRef + - system + type: object + v1.ScopeSelector: + description: A scope selector represents the AND of the selectors represented + by the scoped-resource selector requirements. + example: + matchExpressions: + - scopeName: scopeName + values: + - values + - values + operator: operator + - scopeName: scopeName + values: + - values + - values + operator: operator + properties: + matchExpressions: + description: A list of scope selector requirements by scope of the resources. + items: + $ref: '#/components/schemas/v1.ScopedResourceSelectorRequirement' + type: array + x-kubernetes-list-type: atomic + type: object + x-kubernetes-map-type: atomic + v1.ScopedResourceSelectorRequirement: + description: "A scoped-resource selector requirement is a selector that contains\ + \ values, a scope name, and an operator that relates the scope name and values." + example: + scopeName: scopeName + values: + - values + - values + operator: operator + properties: + operator: + description: "Represents a scope's relationship to a set of values. Valid\ + \ operators are In, NotIn, Exists, DoesNotExist." + type: string + scopeName: + description: The name of the scope that the selector applies to. + type: string + values: + description: "An array of string values. If the operator is In or NotIn,\ + \ the values array must be non-empty. If the operator is Exists or DoesNotExist,\ + \ the values array must be empty. This array is replaced during a strategic\ + \ merge patch." + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - operator + - scopeName + type: object + v1.SeccompProfile: + description: SeccompProfile defines a pod/container's seccomp profile settings. + Only one profile source may be set. + example: + localhostProfile: localhostProfile + type: type + properties: + localhostProfile: + description: "localhostProfile indicates a profile defined in a file on\ + \ the node should be used. The profile must be preconfigured on the node\ + \ to work. Must be a descending path, relative to the kubelet's configured\ + \ seccomp profile location. Must be set if type is \"Localhost\". Must\ + \ NOT be set for any other type." + type: string + type: + description: |- + type indicates which kind of seccomp profile will be applied. Valid options are: + + Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied. + type: string + required: + - type + type: object + x-kubernetes-unions: + - discriminator: type + fields-to-discriminateBy: + localhostProfile: LocalhostProfile + v1.Secret: + description: Secret holds secret data of a certain type. The total bytes of + the values in the Data field must be less than MaxSecretSize bytes. + example: + immutable: true + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + data: + key: data + kind: kind + type: type + stringData: + key: stringData + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + data: + additionalProperties: + format: byte + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" + type: string + description: "Data contains the secret data. Each key must consist of alphanumeric\ + \ characters, '-', '_' or '.'. The serialized form of the secret data\ + \ is a base64 encoded string, representing the arbitrary (possibly non-string)\ + \ data value here. Described in https://tools.ietf.org/html/rfc4648#section-4" + type: object + immutable: + description: "Immutable, if set to true, ensures that data stored in the\ + \ Secret cannot be updated (only object metadata can be modified). If\ + \ not set to true, the field can be modified at any time. Defaulted to\ + \ nil." + type: boolean + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + stringData: + additionalProperties: + type: string + description: "stringData allows specifying non-binary secret data in string\ + \ form. It is provided as a write-only input field for convenience. All\ + \ keys and values are merged into the data field on write, overwriting\ + \ any existing values. The stringData field is never output when reading\ + \ from the API." + type: object + type: + description: "Used to facilitate programmatic handling of secret data. More\ + \ info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types" + type: string + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: Secret + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.SecretEnvSource: + description: |- + SecretEnvSource selects a Secret to populate the environment variables with. + + The contents of the target Secret's Data field will represent the key-value pairs as environment variables. + example: + name: name + optional: true + properties: + name: + description: "Name of the referent. This field is effectively required,\ + \ but due to backwards compatibility is allowed to be empty. Instances\ + \ of this type with an empty value here are almost certainly wrong. More\ + \ info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + type: string + optional: + description: Specify whether the Secret must be defined + type: boolean + type: object + v1.SecretKeySelector: + description: SecretKeySelector selects a key of a Secret. + example: + name: name + optional: true + key: key + properties: + key: + description: The key of the secret to select from. Must be a valid secret + key. + type: string + name: + description: "Name of the referent. This field is effectively required,\ + \ but due to backwards compatibility is allowed to be empty. Instances\ + \ of this type with an empty value here are almost certainly wrong. More\ + \ info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + type: string + optional: + description: Specify whether the Secret or its key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + v1.SecretList: + description: SecretList is a list of Secret. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - immutable: true + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + data: + key: data + kind: kind + type: type + stringData: + key: stringData + - immutable: true + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + data: + key: data + kind: kind + type: type + stringData: + key: stringData + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret" + items: + $ref: '#/components/schemas/v1.Secret' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: SecretList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.SecretProjection: + description: |- + Adapts a secret into a projected volume. + + The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode. + example: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + properties: + items: + description: "items if unspecified, each key-value pair in the Data field\ + \ of the referenced Secret will be projected into the volume as a file\ + \ whose name is the key and content is the value. If specified, the listed\ + \ keys will be projected into the specified paths, and unlisted keys will\ + \ not be present. If a key is specified which is not present in the Secret,\ + \ the volume setup will error unless it is marked optional. Paths must\ + \ be relative and may not contain the '..' path or start with '..'." + items: + $ref: '#/components/schemas/v1.KeyToPath' + type: array + x-kubernetes-list-type: atomic + name: + description: "Name of the referent. This field is effectively required,\ + \ but due to backwards compatibility is allowed to be empty. Instances\ + \ of this type with an empty value here are almost certainly wrong. More\ + \ info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + type: string + optional: + description: optional field specify whether the Secret or its key must be + defined + type: boolean + type: object + v1.SecretReference: + description: SecretReference represents a Secret Reference. It has enough information + to retrieve secret in any namespace + example: + name: name + namespace: namespace + properties: + name: + description: name is unique within a namespace to reference a secret resource. + type: string + namespace: + description: namespace defines the space within which the secret name must + be unique. + type: string + type: object + x-kubernetes-map-type: atomic + v1.SecretVolumeSource: + description: |- + Adapts a Secret into a volume. + + The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling. + example: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + properties: + defaultMode: + description: "defaultMode is Optional: mode bits used to set permissions\ + \ on created files by default. Must be an octal value between 0000 and\ + \ 0777 or a decimal value between 0 and 511. YAML accepts both octal and\ + \ decimal values, JSON requires decimal values for mode bits. Defaults\ + \ to 0644. Directories within the path are not affected by this setting.\ + \ This might be in conflict with other options that affect the file mode,\ + \ like fsGroup, and the result can be other mode bits set." + format: int32 + type: integer + items: + description: "items If unspecified, each key-value pair in the Data field\ + \ of the referenced Secret will be projected into the volume as a file\ + \ whose name is the key and content is the value. If specified, the listed\ + \ keys will be projected into the specified paths, and unlisted keys will\ + \ not be present. If a key is specified which is not present in the Secret,\ + \ the volume setup will error unless it is marked optional. Paths must\ + \ be relative and may not contain the '..' path or start with '..'." + items: + $ref: '#/components/schemas/v1.KeyToPath' + type: array + x-kubernetes-list-type: atomic + optional: + description: optional field specify whether the Secret or its keys must + be defined + type: boolean + secretName: + description: "secretName is the name of the secret in the pod's namespace\ + \ to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret" + type: string + type: object + v1.SecurityContext: + description: "SecurityContext holds security configuration that will be applied\ + \ to a container. Some fields are present in both SecurityContext and PodSecurityContext.\ + \ When both are set, the values in SecurityContext take precedence." + example: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + properties: + allowPrivilegeEscalation: + description: "AllowPrivilegeEscalation controls whether a process can gain\ + \ more privileges than its parent process. This bool directly controls\ + \ if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation\ + \ is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN\ + \ Note that this field cannot be set when spec.os.name is windows." + type: boolean + appArmorProfile: + $ref: '#/components/schemas/v1.AppArmorProfile' + capabilities: + $ref: '#/components/schemas/v1.Capabilities' + privileged: + description: Run container in privileged mode. Processes in privileged containers + are essentially equivalent to root on the host. Defaults to false. Note + that this field cannot be set when spec.os.name is windows. + type: boolean + procMount: + description: procMount denotes the type of proc mount to use for the containers. + The default value is Default which uses the container runtime defaults + for readonly paths and masked paths. This requires the ProcMountType feature + flag to be enabled. Note that this field cannot be set when spec.os.name + is windows. + type: string + readOnlyRootFilesystem: + description: Whether this container has a read-only root filesystem. Default + is false. Note that this field cannot be set when spec.os.name is windows. + type: boolean + runAsGroup: + description: "The GID to run the entrypoint of the container process. Uses\ + \ runtime default if unset. May also be set in PodSecurityContext. If\ + \ set in both SecurityContext and PodSecurityContext, the value specified\ + \ in SecurityContext takes precedence. Note that this field cannot be\ + \ set when spec.os.name is windows." + format: int64 + type: integer + runAsNonRoot: + description: "Indicates that the container must run as a non-root user.\ + \ If true, the Kubelet will validate the image at runtime to ensure that\ + \ it does not run as UID 0 (root) and fail to start the container if it\ + \ does. If unset or false, no such validation will be performed. May also\ + \ be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext,\ + \ the value specified in SecurityContext takes precedence." + type: boolean + runAsUser: + description: "The UID to run the entrypoint of the container process. Defaults\ + \ to user specified in image metadata if unspecified. May also be set\ + \ in PodSecurityContext. If set in both SecurityContext and PodSecurityContext,\ + \ the value specified in SecurityContext takes precedence. Note that this\ + \ field cannot be set when spec.os.name is windows." + format: int64 + type: integer + seLinuxOptions: + $ref: '#/components/schemas/v1.SELinuxOptions' + seccompProfile: + $ref: '#/components/schemas/v1.SeccompProfile' + windowsOptions: + $ref: '#/components/schemas/v1.WindowsSecurityContextOptions' + type: object + v1.Service: + description: "Service is a named abstraction of software service (for example,\ + \ mysql) consisting of local port (for example 3306) that the proxy listens\ + \ on, and the selector that determines which pods will answer requests sent\ + \ through the proxy." + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + clusterIPs: + - clusterIPs + - clusterIPs + healthCheckNodePort: 0 + ipFamilyPolicy: ipFamilyPolicy + externalIPs: + - externalIPs + - externalIPs + sessionAffinity: sessionAffinity + trafficDistribution: trafficDistribution + allocateLoadBalancerNodePorts: true + ports: + - protocol: protocol + port: 1 + appProtocol: appProtocol + name: name + nodePort: 6 + targetPort: targetPort + - protocol: protocol + port: 1 + appProtocol: appProtocol + name: name + nodePort: 6 + targetPort: targetPort + type: type + loadBalancerClass: loadBalancerClass + sessionAffinityConfig: + clientIP: + timeoutSeconds: 5 + ipFamilies: + - ipFamilies + - ipFamilies + loadBalancerIP: loadBalancerIP + externalName: externalName + loadBalancerSourceRanges: + - loadBalancerSourceRanges + - loadBalancerSourceRanges + externalTrafficPolicy: externalTrafficPolicy + selector: + key: selector + publishNotReadyAddresses: true + internalTrafficPolicy: internalTrafficPolicy + clusterIP: clusterIP + status: + loadBalancer: + ingress: + - ipMode: ipMode + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 2 + error: error + - protocol: protocol + port: 2 + error: error + - ipMode: ipMode + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 2 + error: error + - protocol: protocol + port: 2 + error: error + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.ServiceSpec' + status: + $ref: '#/components/schemas/v1.ServiceStatus' + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: Service + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ServiceAccount: + description: "ServiceAccount binds together: * a name, understood by users,\ + \ and perhaps by peripheral systems, for an identity * a principal that can\ + \ be authenticated and authorized * a set of secrets" + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + automountServiceAccountToken: true + kind: kind + imagePullSecrets: + - name: name + - name: name + secrets: + - uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + - uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + automountServiceAccountToken: + description: AutomountServiceAccountToken indicates whether pods running + as this service account should have an API token automatically mounted. + Can be overridden at the pod level. + type: boolean + imagePullSecrets: + description: "ImagePullSecrets is a list of references to secrets in the\ + \ same namespace to use for pulling any images in pods that reference\ + \ this ServiceAccount. ImagePullSecrets are distinct from Secrets because\ + \ Secrets can be mounted in the pod, but ImagePullSecrets are only accessed\ + \ by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod" + items: + $ref: '#/components/schemas/v1.LocalObjectReference' + type: array + x-kubernetes-list-type: atomic + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + secrets: + description: "Secrets is a list of the secrets in the same namespace that\ + \ pods running using this ServiceAccount are allowed to use. Pods are\ + \ only limited to this list if this service account has a \"kubernetes.io/enforce-mountable-secrets\"\ + \ annotation set to \"true\". The \"kubernetes.io/enforce-mountable-secrets\"\ + \ annotation is deprecated since v1.32. Prefer separate namespaces to\ + \ isolate access to mounted secrets. This field should not be used to\ + \ find auto-generated service account token secrets for use outside of\ + \ pods. Instead, tokens can be requested directly using the TokenRequest\ + \ API, or service account token secrets can be manually created. More\ + \ info: https://kubernetes.io/docs/concepts/configuration/secret" + items: + $ref: '#/components/schemas/v1.ObjectReference' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: ServiceAccount + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ServiceAccountList: + description: ServiceAccountList is a list of ServiceAccount objects + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + automountServiceAccountToken: true + kind: kind + imagePullSecrets: + - name: name + - name: name + secrets: + - uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + - uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + automountServiceAccountToken: true + kind: kind + imagePullSecrets: + - name: name + - name: name + secrets: + - uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + - uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/" + items: + $ref: '#/components/schemas/v1.ServiceAccount' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: ServiceAccountList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.ServiceAccountTokenProjection: + description: ServiceAccountTokenProjection represents a projected service account + token volume. This projection can be used to insert a service account token + into the pods runtime filesystem for use against APIs (Kubernetes API Server + or otherwise). + example: + path: path + audience: audience + expirationSeconds: 6 + properties: + audience: + description: "audience is the intended audience of the token. A recipient\ + \ of a token must identify itself with an identifier specified in the\ + \ audience of the token, and otherwise should reject the token. The audience\ + \ defaults to the identifier of the apiserver." + type: string + expirationSeconds: + description: "expirationSeconds is the requested duration of validity of\ + \ the service account token. As the token approaches expiration, the kubelet\ + \ volume plugin will proactively rotate the service account token. The\ + \ kubelet will start trying to rotate the token if the token is older\ + \ than 80 percent of its time to live or if the token is older than 24\ + \ hours.Defaults to 1 hour and must be at least 10 minutes." + format: int64 + type: integer + path: + description: path is the path relative to the mount point of the file to + project the token into. + type: string + required: + - path + type: object + v1.ServiceList: + description: ServiceList holds a list of services. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + clusterIPs: + - clusterIPs + - clusterIPs + healthCheckNodePort: 0 + ipFamilyPolicy: ipFamilyPolicy + externalIPs: + - externalIPs + - externalIPs + sessionAffinity: sessionAffinity + trafficDistribution: trafficDistribution + allocateLoadBalancerNodePorts: true + ports: + - protocol: protocol + port: 1 + appProtocol: appProtocol + name: name + nodePort: 6 + targetPort: targetPort + - protocol: protocol + port: 1 + appProtocol: appProtocol + name: name + nodePort: 6 + targetPort: targetPort + type: type + loadBalancerClass: loadBalancerClass + sessionAffinityConfig: + clientIP: + timeoutSeconds: 5 + ipFamilies: + - ipFamilies + - ipFamilies + loadBalancerIP: loadBalancerIP + externalName: externalName + loadBalancerSourceRanges: + - loadBalancerSourceRanges + - loadBalancerSourceRanges + externalTrafficPolicy: externalTrafficPolicy + selector: + key: selector + publishNotReadyAddresses: true + internalTrafficPolicy: internalTrafficPolicy + clusterIP: clusterIP + status: + loadBalancer: + ingress: + - ipMode: ipMode + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 2 + error: error + - protocol: protocol + port: 2 + error: error + - ipMode: ipMode + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 2 + error: error + - protocol: protocol + port: 2 + error: error + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + clusterIPs: + - clusterIPs + - clusterIPs + healthCheckNodePort: 0 + ipFamilyPolicy: ipFamilyPolicy + externalIPs: + - externalIPs + - externalIPs + sessionAffinity: sessionAffinity + trafficDistribution: trafficDistribution + allocateLoadBalancerNodePorts: true + ports: + - protocol: protocol + port: 1 + appProtocol: appProtocol + name: name + nodePort: 6 + targetPort: targetPort + - protocol: protocol + port: 1 + appProtocol: appProtocol + name: name + nodePort: 6 + targetPort: targetPort + type: type + loadBalancerClass: loadBalancerClass + sessionAffinityConfig: + clientIP: + timeoutSeconds: 5 + ipFamilies: + - ipFamilies + - ipFamilies + loadBalancerIP: loadBalancerIP + externalName: externalName + loadBalancerSourceRanges: + - loadBalancerSourceRanges + - loadBalancerSourceRanges + externalTrafficPolicy: externalTrafficPolicy selector: key: selector - minReadySeconds: 0 + publishNotReadyAddresses: true + internalTrafficPolicy: internalTrafficPolicy + clusterIP: clusterIP status: - fullyLabeledReplicas: 5 - replicas: 7 - readyReplicas: 2 + loadBalancer: + ingress: + - ipMode: ipMode + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 2 + error: error + - protocol: protocol + port: 2 + error: error + - ipMode: ipMode + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 2 + error: error + - protocol: protocol + port: 2 + error: error conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status - availableReplicas: 1 - observedGeneration: 5 properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ \ of an object. Servers should convert recognized schemas to the latest\ \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string - items: - description: "List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller" + items: + description: List of services + items: + $ref: '#/components/schemas/v1.Service' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: ServiceList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.ServicePort: + description: ServicePort contains information on service's port. + example: + protocol: protocol + port: 1 + appProtocol: appProtocol + name: name + nodePort: 6 + targetPort: targetPort + properties: + appProtocol: + description: |- + The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: + + * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). + + * Kubernetes-defined prefixed names: + * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- + * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 + * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 + + * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. + type: string + name: + description: "The name of this port within the service. This must be a DNS_LABEL.\ + \ All ports within a ServiceSpec must have unique names. When considering\ + \ the endpoints for a Service, this must match the 'name' field in the\ + \ EndpointPort. Optional if only one ServicePort is defined on this service." + type: string + nodePort: + description: "The port on each node on which this service is exposed when\ + \ type is NodePort or LoadBalancer. Usually assigned by the system. If\ + \ a value is specified, in-range, and not in use it will be used, otherwise\ + \ the operation will fail. If not specified, a port will be allocated\ + \ if this Service requires one. If this field is specified when creating\ + \ a Service which does not need it, creation will fail. This field will\ + \ be wiped when updating a Service to no longer need it (e.g. changing\ + \ type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport" + format: int32 + type: integer + port: + description: The port that will be exposed by this service. + format: int32 + type: integer + protocol: + description: "The IP protocol for this port. Supports \"TCP\", \"UDP\",\ + \ and \"SCTP\". Default is TCP." + type: string + targetPort: + description: "IntOrString is a type that can hold an int32 or a string.\ + \ When used in JSON or YAML marshalling and unmarshalling, it produces\ + \ or consumes the inner type. This allows you to have, for example, a\ + \ JSON field that can accept a name or number." + format: int-or-string + type: string + required: + - port + type: object + v1.ServiceSpec: + description: ServiceSpec describes the attributes that a user creates on a service. + example: + clusterIPs: + - clusterIPs + - clusterIPs + healthCheckNodePort: 0 + ipFamilyPolicy: ipFamilyPolicy + externalIPs: + - externalIPs + - externalIPs + sessionAffinity: sessionAffinity + trafficDistribution: trafficDistribution + allocateLoadBalancerNodePorts: true + ports: + - protocol: protocol + port: 1 + appProtocol: appProtocol + name: name + nodePort: 6 + targetPort: targetPort + - protocol: protocol + port: 1 + appProtocol: appProtocol + name: name + nodePort: 6 + targetPort: targetPort + type: type + loadBalancerClass: loadBalancerClass + sessionAffinityConfig: + clientIP: + timeoutSeconds: 5 + ipFamilies: + - ipFamilies + - ipFamilies + loadBalancerIP: loadBalancerIP + externalName: externalName + loadBalancerSourceRanges: + - loadBalancerSourceRanges + - loadBalancerSourceRanges + externalTrafficPolicy: externalTrafficPolicy + selector: + key: selector + publishNotReadyAddresses: true + internalTrafficPolicy: internalTrafficPolicy + clusterIP: clusterIP + properties: + allocateLoadBalancerNodePorts: + description: "allocateLoadBalancerNodePorts defines if NodePorts will be\ + \ automatically allocated for services with type LoadBalancer. Default\ + \ is \"true\". It may be set to \"false\" if the cluster load-balancer\ + \ does not rely on NodePorts. If the caller requests specific NodePorts\ + \ (by specifying a value), those requests will be respected, regardless\ + \ of this field. This field may only be set for services with type LoadBalancer\ + \ and will be cleared if the type is changed to any other type." + type: boolean + clusterIP: + description: "clusterIP is the IP address of the service and is usually\ + \ assigned randomly. If an address is specified manually, is in-range\ + \ (as per system configuration), and is not in use, it will be allocated\ + \ to the service; otherwise creation of the service will fail. This field\ + \ may not be changed through updates unless the type field is also being\ + \ changed to ExternalName (which requires this field to be blank) or the\ + \ type field is being changed from ExternalName (in which case this field\ + \ may optionally be specified, as describe above). Valid values are \"\ + None\", empty string (\"\"), or a valid IP address. Setting this to \"\ + None\" makes a \"headless service\" (no virtual IP), which is useful when\ + \ direct endpoint connections are preferred and proxying is not required.\ + \ Only applies to types ClusterIP, NodePort, and LoadBalancer. If this\ + \ field is specified when creating a Service of type ExternalName, creation\ + \ will fail. This field will be wiped when updating a Service to type\ + \ ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies" + type: string + clusterIPs: + description: |- + ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are "None", empty string (""), or a valid IP address. Setting this to "None" makes a "headless service" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value. + + This field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + items: + type: string + type: array + x-kubernetes-list-type: atomic + externalIPs: + description: externalIPs is a list of IP addresses for which nodes in the + cluster will also accept traffic for this service. These IPs are not + managed by Kubernetes. The user is responsible for ensuring that traffic + arrives at a node with this IP. A common example is external load-balancers + that are not part of the Kubernetes system. + items: + type: string + type: array + x-kubernetes-list-type: atomic + externalName: + description: externalName is the external reference that discovery mechanisms + will return as an alias for this service (e.g. a DNS CNAME record). No + proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) + and requires `type` to be "ExternalName". + type: string + externalTrafficPolicy: + description: "externalTrafficPolicy describes how nodes distribute service\ + \ traffic they receive on one of the Service's \"externally-facing\" addresses\ + \ (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\"\ + , the proxy will configure the service in a way that assumes that external\ + \ load balancers will take care of balancing the service traffic between\ + \ nodes, and so each node will deliver traffic only to the node-local\ + \ endpoints of the service, without masquerading the client source IP.\ + \ (Traffic mistakenly sent to a node with no endpoints will be dropped.)\ + \ The default value, \"Cluster\", uses the standard behavior of routing\ + \ to all endpoints evenly (possibly modified by topology and other features).\ + \ Note that traffic sent to an External IP or LoadBalancer IP from within\ + \ the cluster will always get \"Cluster\" semantics, but clients sending\ + \ to a NodePort from within the cluster may need to take traffic policy\ + \ into account when picking a node." + type: string + healthCheckNodePort: + description: "healthCheckNodePort specifies the healthcheck nodePort for\ + \ the service. This only applies when type is set to LoadBalancer and\ + \ externalTrafficPolicy is set to Local. If a value is specified, is in-range,\ + \ and is not in use, it will be used. If not specified, a value will\ + \ be automatically allocated. External systems (e.g. load-balancers)\ + \ can use this port to determine if a given node holds endpoints for this\ + \ service or not. If this field is specified when creating a Service\ + \ which does not need it, creation will fail. This field will be wiped\ + \ when updating a Service to no longer need it (e.g. changing type). This\ + \ field cannot be updated once set." + format: int32 + type: integer + internalTrafficPolicy: + description: "InternalTrafficPolicy describes how nodes distribute service\ + \ traffic they receive on the ClusterIP. If set to \"Local\", the proxy\ + \ will assume that pods only want to talk to endpoints of the service\ + \ on the same node as the pod, dropping the traffic if there are no local\ + \ endpoints. The default value, \"Cluster\", uses the standard behavior\ + \ of routing to all endpoints evenly (possibly modified by topology and\ + \ other features)." + type: string + ipFamilies: + description: |- + IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are "IPv4" and "IPv6". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to "headless" services. This field will be wiped when updating a Service to type ExternalName. + + This field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. + items: + type: string + type: array + x-kubernetes-list-type: atomic + ipFamilyPolicy: + description: "IPFamilyPolicy represents the dual-stack-ness requested or\ + \ required by this Service. If there is no value provided, then this field\ + \ will be set to SingleStack. Services can be \"SingleStack\" (a single\ + \ IP family), \"PreferDualStack\" (two IP families on dual-stack configured\ + \ clusters or a single IP family on single-stack clusters), or \"RequireDualStack\"\ + \ (two IP families on dual-stack configured clusters, otherwise fail).\ + \ The ipFamilies and clusterIPs fields depend on the value of this field.\ + \ This field will be wiped when updating a service to type ExternalName." + type: string + loadBalancerClass: + description: "loadBalancerClass is the class of the load balancer implementation\ + \ this Service belongs to. If specified, the value of this field must\ + \ be a label-style identifier, with an optional prefix, e.g. \"internal-vip\"\ + \ or \"example.com/internal-vip\". Unprefixed names are reserved for end-users.\ + \ This field can only be set when the Service type is 'LoadBalancer'.\ + \ If not set, the default load balancer implementation is used, today\ + \ this is typically done through the cloud provider integration, but should\ + \ apply for any default implementation. If set, it is assumed that a load\ + \ balancer implementation is watching for Services with a matching class.\ + \ Any default load balancer implementation (e.g. cloud providers) should\ + \ ignore Services that set this field. This field can only be set when\ + \ creating or updating a Service to type 'LoadBalancer'. Once set, it\ + \ can not be changed. This field will be wiped when a service is updated\ + \ to a non 'LoadBalancer' type." + type: string + loadBalancerIP: + description: "Only applies to Service Type: LoadBalancer. This feature depends\ + \ on whether the underlying cloud-provider supports specifying the loadBalancerIP\ + \ when a load balancer is created. This field will be ignored if the cloud-provider\ + \ does not support the feature. Deprecated: This field was under-specified\ + \ and its meaning varies across implementations. Using it is non-portable\ + \ and it may not support dual-stack. Users are encouraged to use implementation-specific\ + \ annotations when available." + type: string + loadBalancerSourceRanges: + description: "If specified and supported by the platform, this will restrict\ + \ traffic through the cloud-provider load-balancer will be restricted\ + \ to the specified client IPs. This field will be ignored if the cloud-provider\ + \ does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/" + items: + type: string + type: array + x-kubernetes-list-type: atomic + ports: + description: "The list of ports that are exposed by this service. More info:\ + \ https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies" + items: + $ref: '#/components/schemas/v1.ServicePort' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - port + - protocol + x-kubernetes-patch-merge-key: port + publishNotReadyAddresses: + description: publishNotReadyAddresses indicates that any agent which deals + with endpoints for this Service should disregard any indications of ready/not-ready. + The primary use case for setting this field is for a StatefulSet's Headless + Service to propagate SRV DNS records for its Pods for the purpose of peer + discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice + resources for Services interpret this to mean that all endpoints are considered + "ready" even if the Pods themselves are not. Agents which consume only + Kubernetes generated endpoints through the Endpoints or EndpointSlice + resources can safely assume this behavior. + type: boolean + selector: + additionalProperties: + type: string + description: "Route service traffic to pods with label keys and values matching\ + \ this selector. If empty or not present, the service is assumed to have\ + \ an external process managing its endpoints, which Kubernetes will not\ + \ modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.\ + \ Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/" + type: object + x-kubernetes-map-type: atomic + sessionAffinity: + description: "Supports \"ClientIP\" and \"None\". Used to maintain session\ + \ affinity. Enable client IP based session affinity. Must be ClientIP\ + \ or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies" + type: string + sessionAffinityConfig: + $ref: '#/components/schemas/v1.SessionAffinityConfig' + trafficDistribution: + description: "TrafficDistribution offers a way to express preferences for\ + \ how traffic is distributed to Service endpoints. Implementations can\ + \ use this field as a hint, but are not required to guarantee strict adherence.\ + \ If the field is not set, the implementation will apply its default routing\ + \ strategy. If set to \"PreferClose\", implementations should prioritize\ + \ endpoints that are in the same zone." + type: string + type: + description: "type determines how the Service is exposed. Defaults to ClusterIP.\ + \ Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer.\ + \ \"ClusterIP\" allocates a cluster-internal IP address for load-balancing\ + \ to endpoints. Endpoints are determined by the selector or if that is\ + \ not specified, by manual construction of an Endpoints object or EndpointSlice\ + \ objects. If clusterIP is \"None\", no virtual IP is allocated and the\ + \ endpoints are published as a set of endpoints rather than a virtual\ + \ IP. \"NodePort\" builds on ClusterIP and allocates a port on every node\ + \ which routes to the same endpoints as the clusterIP. \"LoadBalancer\"\ + \ builds on NodePort and creates an external load-balancer (if supported\ + \ in the current cloud) which routes to the same endpoints as the clusterIP.\ + \ \"ExternalName\" aliases this service to the specified externalName.\ + \ Several other fields do not apply to ExternalName services. More info:\ + \ https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types" + type: string + type: object + v1.ServiceStatus: + description: ServiceStatus represents the current status of a service. + example: + loadBalancer: + ingress: + - ipMode: ipMode + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 2 + error: error + - protocol: protocol + port: 2 + error: error + - ipMode: ipMode + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 2 + error: error + - protocol: protocol + port: 2 + error: error + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + properties: + conditions: + description: Current service state + items: + $ref: '#/components/schemas/v1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + loadBalancer: + $ref: '#/components/schemas/v1.LoadBalancerStatus' + type: object + v1.SessionAffinityConfig: + description: SessionAffinityConfig represents the configurations of session + affinity. + example: + clientIP: + timeoutSeconds: 5 + properties: + clientIP: + $ref: '#/components/schemas/v1.ClientIPConfig' + type: object + v1.SleepAction: + description: SleepAction describes a "sleep" action. + example: + seconds: 5 + properties: + seconds: + description: Seconds is the number of seconds to sleep. + format: int64 + type: integer + required: + - seconds + type: object + v1.StorageOSPersistentVolumeSource: + description: Represents a StorageOS persistent volume resource. + example: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + readOnly: true + fsType: fsType + properties: + fsType: + description: "fsType is the filesystem type to mount. Must be a filesystem\ + \ type supported by the host operating system. Ex. \"ext4\", \"xfs\",\ + \ \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified." + type: string + readOnly: + description: readOnly defaults to false (read/write). ReadOnly here will + force the ReadOnly setting in VolumeMounts. + type: boolean + secretRef: + $ref: '#/components/schemas/v1.ObjectReference' + volumeName: + description: volumeName is the human-readable name of the StorageOS volume. Volume + names are only unique within a namespace. + type: string + volumeNamespace: + description: volumeNamespace specifies the scope of the volume within StorageOS. If + no namespace is specified then the Pod's namespace will be used. This + allows the Kubernetes name scoping to be mirrored within StorageOS for + tighter integration. Set VolumeName to any name to override the default + behaviour. Set to "default" if you are not using namespaces within StorageOS. + Namespaces that do not pre-exist within StorageOS will be created. + type: string + type: object + v1.StorageOSVolumeSource: + description: Represents a StorageOS persistent volume resource. + example: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + properties: + fsType: + description: "fsType is the filesystem type to mount. Must be a filesystem\ + \ type supported by the host operating system. Ex. \"ext4\", \"xfs\",\ + \ \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified." + type: string + readOnly: + description: readOnly defaults to false (read/write). ReadOnly here will + force the ReadOnly setting in VolumeMounts. + type: boolean + secretRef: + $ref: '#/components/schemas/v1.LocalObjectReference' + volumeName: + description: volumeName is the human-readable name of the StorageOS volume. Volume + names are only unique within a namespace. + type: string + volumeNamespace: + description: volumeNamespace specifies the scope of the volume within StorageOS. If + no namespace is specified then the Pod's namespace will be used. This + allows the Kubernetes name scoping to be mirrored within StorageOS for + tighter integration. Set VolumeName to any name to override the default + behaviour. Set to "default" if you are not using namespaces within StorageOS. + Namespaces that do not pre-exist within StorageOS will be created. + type: string + type: object + v1.Sysctl: + description: Sysctl defines a kernel parameter to be set + example: + name: name + value: value + properties: + name: + description: Name of a property to set + type: string + value: + description: Value of a property to set + type: string + required: + - name + - value + type: object + v1.TCPSocketAction: + description: TCPSocketAction describes an action based on opening a socket + example: + port: port + host: host + properties: + host: + description: "Optional: Host name to connect to, defaults to the pod IP." + type: string + port: + description: "IntOrString is a type that can hold an int32 or a string.\ + \ When used in JSON or YAML marshalling and unmarshalling, it produces\ + \ or consumes the inner type. This allows you to have, for example, a\ + \ JSON field that can accept a name or number." + format: int-or-string + type: string + required: + - port + type: object + v1.Taint: + description: The node this Taint is attached to has the "effect" on any pod + that does not tolerate the Taint. + example: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + properties: + effect: + description: "Required. The effect of the taint on pods that do not tolerate\ + \ the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute." + type: string + key: + description: Required. The taint key to be applied to a node. + type: string + timeAdded: + description: TimeAdded represents the time at which the taint was added. + It is only written for NoExecute taints. + format: date-time + type: string + value: + description: The taint value corresponding to the taint key. + type: string + required: + - effect + - key + type: object + v1.Toleration: + description: "The pod this Toleration is attached to tolerates any taint that\ + \ matches the triple using the matching operator ." + example: + effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + properties: + effect: + description: "Effect indicates the taint effect to match. Empty means match\ + \ all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule\ + \ and NoExecute." + type: string + key: + description: "Key is the taint key that the toleration applies to. Empty\ + \ means match all taint keys. If the key is empty, operator must be Exists;\ + \ this combination means to match all values and all keys." + type: string + operator: + description: "Operator represents a key's relationship to the value. Valid\ + \ operators are Exists and Equal. Defaults to Equal. Exists is equivalent\ + \ to wildcard for value, so that a pod can tolerate all taints of a particular\ + \ category." + type: string + tolerationSeconds: + description: "TolerationSeconds represents the period of time the toleration\ + \ (which must be of effect NoExecute, otherwise this field is ignored)\ + \ tolerates the taint. By default, it is not set, which means tolerate\ + \ the taint forever (do not evict). Zero and negative values will be treated\ + \ as 0 (evict immediately) by the system." + format: int64 + type: integer + value: + description: "Value is the taint value the toleration matches to. If the\ + \ operator is Exists, the value should be empty, otherwise just a regular\ + \ string." + type: string + type: object + v1.TopologySelectorLabelRequirement: + description: A topology selector requirement is a selector that matches given + label. This is an alpha feature and may change in the future. + example: + values: + - values + - values + key: key + properties: + key: + description: The label key that the selector applies to. + type: string + values: + description: An array of string values. One value must match the label to + be selected. Each entry in Values is ORed. + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - values + type: object + v1.TopologySelectorTerm: + description: A topology selector term represents the result of label queries. + A null or empty topology selector term matches no objects. The requirements + of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. + This is an alpha feature and may change in the future. + example: + matchLabelExpressions: + - values: + - values + - values + key: key + - values: + - values + - values + key: key + properties: + matchLabelExpressions: + description: A list of topology selector requirements by labels. + items: + $ref: '#/components/schemas/v1.TopologySelectorLabelRequirement' + type: array + x-kubernetes-list-type: atomic + type: object + x-kubernetes-map-type: atomic + v1.TopologySpreadConstraint: + description: TopologySpreadConstraint specifies how to spread matching pods + among the given topology. + example: + nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + properties: + labelSelector: + $ref: '#/components/schemas/v1.LabelSelector' + matchLabelKeys: + description: |- + MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. + + This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). + items: + type: string + type: array + x-kubernetes-list-type: atomic + maxSkew: + description: "MaxSkew describes the degree to which pods may be unevenly\ + \ distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum\ + \ permitted difference between the number of matching pods in the target\ + \ topology and the global minimum. The global minimum is the minimum number\ + \ of matching pods in an eligible domain or zero if the number of eligible\ + \ domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew\ + \ is set to 1, and pods with the same labelSelector spread as 2/2/1: In\ + \ this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P\ + \ | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled\ + \ to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make\ + \ the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew\ + \ is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`,\ + \ it is used to give higher precedence to topologies that satisfy it.\ + \ It's a required field. Default value is 1 and 0 is not allowed." + format: int32 + type: integer + minDomains: + description: |- + MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. + + For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. + format: int32 + type: integer + nodeAffinityPolicy: + description: |- + NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. + + If this value is nil, the behavior is equivalent to the Honor policy. + type: string + nodeTaintsPolicy: + description: |- + NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. + + If this value is nil, the behavior is equivalent to the Ignore policy. + type: string + topologyKey: + description: "TopologyKey is the key of node labels. Nodes that have a label\ + \ with this key and identical values are considered to be in the same\ + \ topology. We consider each as a \"bucket\", and try to\ + \ put balanced number of pods into each bucket. We define a domain as\ + \ a particular instance of a topology. Also, we define an eligible domain\ + \ as a domain whose nodes meet the requirements of nodeAffinityPolicy\ + \ and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\"\ + , each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\"\ + , each zone is a domain of that topology. It's a required field." + type: string + whenUnsatisfiable: + description: |- + WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, + but giving higher precedence to topologies that would help reduce the + skew. + A constraint is considered "Unsatisfiable" for an incoming pod if and only if every possible node assignment for that pod would violate "MaxSkew" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + type: string + required: + - maxSkew + - topologyKey + - whenUnsatisfiable + type: object + v1.TypedLocalObjectReference: + description: TypedLocalObjectReference contains enough information to let you + locate the typed referenced object inside the same namespace. + example: + apiGroup: apiGroup + kind: kind + name: name + properties: + apiGroup: + description: "APIGroup is the group for the resource being referenced. If\ + \ APIGroup is not specified, the specified Kind must be in the core API\ + \ group. For any other third-party types, APIGroup is required." + type: string + kind: + description: Kind is the type of resource being referenced + type: string + name: + description: Name is the name of resource being referenced + type: string + required: + - kind + - name + type: object + x-kubernetes-map-type: atomic + v1.TypedObjectReference: + description: TypedObjectReference contains enough information to let you locate + the typed referenced object + example: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + properties: + apiGroup: + description: "APIGroup is the group for the resource being referenced. If\ + \ APIGroup is not specified, the specified Kind must be in the core API\ + \ group. For any other third-party types, APIGroup is required." + type: string + kind: + description: Kind is the type of resource being referenced + type: string + name: + description: Name is the name of resource being referenced + type: string + namespace: + description: "Namespace is the namespace of resource being referenced Note\ + \ that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant\ + \ object is required in the referent namespace to allow that namespace's\ + \ owner to accept the reference. See the ReferenceGrant documentation\ + \ for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource\ + \ feature gate to be enabled." + type: string + required: + - kind + - name + type: object + v1.Volume: + description: Volume represents a named volume in a pod that may be accessed + by any container in the pod. + example: + quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + properties: + awsElasticBlockStore: + $ref: '#/components/schemas/v1.AWSElasticBlockStoreVolumeSource' + azureDisk: + $ref: '#/components/schemas/v1.AzureDiskVolumeSource' + azureFile: + $ref: '#/components/schemas/v1.AzureFileVolumeSource' + cephfs: + $ref: '#/components/schemas/v1.CephFSVolumeSource' + cinder: + $ref: '#/components/schemas/v1.CinderVolumeSource' + configMap: + $ref: '#/components/schemas/v1.ConfigMapVolumeSource' + csi: + $ref: '#/components/schemas/v1.CSIVolumeSource' + downwardAPI: + $ref: '#/components/schemas/v1.DownwardAPIVolumeSource' + emptyDir: + $ref: '#/components/schemas/v1.EmptyDirVolumeSource' + ephemeral: + $ref: '#/components/schemas/v1.EphemeralVolumeSource' + fc: + $ref: '#/components/schemas/v1.FCVolumeSource' + flexVolume: + $ref: '#/components/schemas/v1.FlexVolumeSource' + flocker: + $ref: '#/components/schemas/v1.FlockerVolumeSource' + gcePersistentDisk: + $ref: '#/components/schemas/v1.GCEPersistentDiskVolumeSource' + gitRepo: + $ref: '#/components/schemas/v1.GitRepoVolumeSource' + glusterfs: + $ref: '#/components/schemas/v1.GlusterfsVolumeSource' + hostPath: + $ref: '#/components/schemas/v1.HostPathVolumeSource' + image: + $ref: '#/components/schemas/v1.ImageVolumeSource' + iscsi: + $ref: '#/components/schemas/v1.ISCSIVolumeSource' + name: + description: "name of the volume. Must be a DNS_LABEL and unique within\ + \ the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + type: string + nfs: + $ref: '#/components/schemas/v1.NFSVolumeSource' + persistentVolumeClaim: + $ref: '#/components/schemas/v1.PersistentVolumeClaimVolumeSource' + photonPersistentDisk: + $ref: '#/components/schemas/v1.PhotonPersistentDiskVolumeSource' + portworxVolume: + $ref: '#/components/schemas/v1.PortworxVolumeSource' + projected: + $ref: '#/components/schemas/v1.ProjectedVolumeSource' + quobyte: + $ref: '#/components/schemas/v1.QuobyteVolumeSource' + rbd: + $ref: '#/components/schemas/v1.RBDVolumeSource' + scaleIO: + $ref: '#/components/schemas/v1.ScaleIOVolumeSource' + secret: + $ref: '#/components/schemas/v1.SecretVolumeSource' + storageos: + $ref: '#/components/schemas/v1.StorageOSVolumeSource' + vsphereVolume: + $ref: '#/components/schemas/v1.VsphereVirtualDiskVolumeSource' + required: + - name + type: object + v1.VolumeDevice: + description: volumeDevice describes a mapping of a raw block device within a + container. + example: + devicePath: devicePath + name: name + properties: + devicePath: + description: devicePath is the path inside of the container that the device + will be mapped to. + type: string + name: + description: name must match the name of a persistentVolumeClaim in the + pod + type: string + required: + - devicePath + - name + type: object + v1.VolumeMount: + description: VolumeMount describes a mounting of a Volume within a container. + example: + mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + properties: + mountPath: + description: Path within the container at which the volume should be mounted. Must + not contain ':'. + type: string + mountPropagation: + description: "mountPropagation determines how mounts are propagated from\ + \ the host to container and the other way around. When not set, MountPropagationNone\ + \ is used. This field is beta in 1.10. When RecursiveReadOnly is set to\ + \ IfPossible or to Enabled, MountPropagation must be None or unspecified\ + \ (which defaults to None)." + type: string + name: + description: This must match the Name of a Volume. + type: string + readOnly: + description: "Mounted read-only if true, read-write otherwise (false or\ + \ unspecified). Defaults to false." + type: boolean + recursiveReadOnly: + description: |- + RecursiveReadOnly specifies whether read-only mounts should be handled recursively. + + If ReadOnly is false, this field has no meaning and must be unspecified. + + If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. + + If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). + + If this field is not specified, it is treated as an equivalent of Disabled. + type: string + subPath: + description: Path within the volume from which the container's volume should + be mounted. Defaults to "" (volume's root). + type: string + subPathExpr: + description: Expanded path within the volume from which the container's + volume should be mounted. Behaves similarly to SubPath but environment + variable references $(VAR_NAME) are expanded using the container's environment. + Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + type: string + required: + - mountPath + - name + type: object + v1.VolumeMountStatus: + description: VolumeMountStatus shows status of volume mounts. + example: + mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + properties: + mountPath: + description: MountPath corresponds to the original VolumeMount. + type: string + name: + description: Name corresponds to the name of the original VolumeMount. + type: string + readOnly: + description: ReadOnly corresponds to the original VolumeMount. + type: boolean + recursiveReadOnly: + description: "RecursiveReadOnly must be set to Disabled, Enabled, or unspecified\ + \ (for non-readonly mounts). An IfPossible value in the original VolumeMount\ + \ must be translated to Disabled or Enabled, depending on the mount result." + type: string + required: + - mountPath + - name + type: object + v1.VolumeNodeAffinity: + description: VolumeNodeAffinity defines constraints that limit what nodes this + volume can be accessed from. + example: + required: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + properties: + required: + $ref: '#/components/schemas/v1.NodeSelector' + type: object + v1.VolumeProjection: + description: Projection that may be projected along with other supported volume + types. Exactly one of these fields must be set. + example: + downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + properties: + clusterTrustBundle: + $ref: '#/components/schemas/v1.ClusterTrustBundleProjection' + configMap: + $ref: '#/components/schemas/v1.ConfigMapProjection' + downwardAPI: + $ref: '#/components/schemas/v1.DownwardAPIProjection' + secret: + $ref: '#/components/schemas/v1.SecretProjection' + serviceAccountToken: + $ref: '#/components/schemas/v1.ServiceAccountTokenProjection' + type: object + v1.VolumeResourceRequirements: + description: VolumeResourceRequirements describes the storage resource requirements + for a volume. + example: + requests: + key: null + limits: + key: null + properties: + limits: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: "Limits describes the maximum amount of compute resources allowed.\ + \ More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" + type: object + requests: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: "Requests describes the minimum amount of compute resources\ + \ required. If Requests is omitted for a container, it defaults to Limits\ + \ if that is explicitly specified, otherwise to an implementation-defined\ + \ value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" + type: object + type: object + v1.VsphereVirtualDiskVolumeSource: + description: Represents a vSphere volume resource. + example: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + properties: + fsType: + description: "fsType is filesystem type to mount. Must be a filesystem type\ + \ supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\"\ + . Implicitly inferred to be \"ext4\" if unspecified." + type: string + storagePolicyID: + description: storagePolicyID is the storage Policy Based Management (SPBM) + profile ID associated with the StoragePolicyName. + type: string + storagePolicyName: + description: storagePolicyName is the storage Policy Based Management (SPBM) + profile name. + type: string + volumePath: + description: volumePath is the path that identifies vSphere volume vmdk + type: string + required: + - volumePath + type: object + v1.WeightedPodAffinityTerm: + description: The weights of all of the matched WeightedPodAffinityTerm fields + are added per-node to find the most preferred node(s) + example: + podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + properties: + podAffinityTerm: + $ref: '#/components/schemas/v1.PodAffinityTerm' + weight: + description: "weight associated with matching the corresponding podAffinityTerm,\ + \ in the range 1-100." + format: int32 + type: integer + required: + - podAffinityTerm + - weight + type: object + v1.WindowsSecurityContextOptions: + description: WindowsSecurityContextOptions contain Windows-specific options + and credentials. + example: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + properties: + gmsaCredentialSpec: + description: GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) + inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName + field. + type: string + gmsaCredentialSpecName: + description: GMSACredentialSpecName is the name of the GMSA credential spec + to use. + type: string + hostProcess: + description: "HostProcess determines if a container should be run as a 'Host\ + \ Process' container. All of a Pod's containers must have the same effective\ + \ HostProcess value (it is not allowed to have a mix of HostProcess containers\ + \ and non-HostProcess containers). In addition, if HostProcess is true\ + \ then HostNetwork must also be set to true." + type: boolean + runAsUserName: + description: "The UserName in Windows to run the entrypoint of the container\ + \ process. Defaults to the user specified in image metadata if unspecified.\ + \ May also be set in PodSecurityContext. If set in both SecurityContext\ + \ and PodSecurityContext, the value specified in SecurityContext takes\ + \ precedence." + type: string + type: object + v1.Endpoint: + description: Endpoint represents a single logical "backend" implementing a service. + example: + nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + addresses: + - addresses + - addresses + hostname: hostname + zone: zone + hints: + forZones: + - name: name + - name: name + forNodes: + - name: name + - name: name + conditions: + ready: true + terminating: true + serving: true + deprecatedTopology: + key: deprecatedTopology + properties: + addresses: + description: "addresses of this endpoint. For EndpointSlices of addressType\ + \ \"IPv4\" or \"IPv6\", the values are IP addresses in canonical form.\ + \ The syntax and semantics of other addressType values are not defined.\ + \ This must contain at least one address but no more than 100. EndpointSlices\ + \ generated by the EndpointSlice controller will always have exactly 1\ + \ address. No semantics are defined for additional addresses beyond the\ + \ first, and kube-proxy does not look at them." + items: + type: string + type: array + x-kubernetes-list-type: set + conditions: + $ref: '#/components/schemas/v1.EndpointConditions' + deprecatedTopology: + additionalProperties: + type: string + description: "deprecatedTopology contains topology information part of the\ + \ v1beta1 API. This field is deprecated, and will be removed when the\ + \ v1beta1 API is removed (no sooner than kubernetes v1.24). While this\ + \ field can hold values, it is not writable through the v1 API, and any\ + \ attempts to write to it will be silently ignored. Topology information\ + \ can be found in the zone and nodeName fields instead." + type: object + hints: + $ref: '#/components/schemas/v1.EndpointHints' + hostname: + description: hostname of this endpoint. This field may be used by consumers + of endpoints to distinguish endpoints from each other (e.g. in DNS names). + Multiple endpoints which use the same hostname should be considered fungible + (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label + (RFC 1123) validation. + type: string + nodeName: + description: nodeName represents the name of the Node hosting this endpoint. + This can be used to determine endpoints local to a Node. + type: string + targetRef: + $ref: '#/components/schemas/v1.ObjectReference' + zone: + description: zone is the name of the Zone this endpoint exists in. + type: string + required: + - addresses + type: object + v1.EndpointConditions: + description: EndpointConditions represents the current condition of an endpoint. + example: + ready: true + terminating: true + serving: true + properties: + ready: + description: "ready indicates that this endpoint is ready to receive traffic,\ + \ according to whatever system is managing the endpoint. A nil value should\ + \ be interpreted as \"true\". In general, an endpoint should be marked\ + \ ready if it is serving and not terminating, though this can be overridden\ + \ in some cases, such as when the associated Service has set the publishNotReadyAddresses\ + \ flag." + type: boolean + serving: + description: "serving indicates that this endpoint is able to receive traffic,\ + \ according to whatever system is managing the endpoint. For endpoints\ + \ backed by pods, the EndpointSlice controller will mark the endpoint\ + \ as serving if the pod's Ready condition is True. A nil value should\ + \ be interpreted as \"true\"." + type: boolean + terminating: + description: terminating indicates that this endpoint is terminating. A + nil value should be interpreted as "false". + type: boolean + type: object + v1.EndpointHints: + description: EndpointHints provides hints describing how an endpoint should + be consumed. + example: + forZones: + - name: name + - name: name + forNodes: + - name: name + - name: name + properties: + forNodes: + description: forNodes indicates the node(s) this endpoint should be consumed + by when using topology aware routing. May contain a maximum of 8 entries. + This is an Alpha feature and is only used when the PreferSameTrafficDistribution + feature gate is enabled. + items: + $ref: '#/components/schemas/v1.ForNode' + type: array + x-kubernetes-list-type: atomic + forZones: + description: forZones indicates the zone(s) this endpoint should be consumed + by when using topology aware routing. May contain a maximum of 8 entries. + items: + $ref: '#/components/schemas/v1.ForZone' + type: array + x-kubernetes-list-type: atomic + type: object + discovery.v1.EndpointPort: + description: EndpointPort represents a Port used by an EndpointSlice + example: + protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + properties: + appProtocol: + description: |- + The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: + + * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). + + * Kubernetes-defined prefixed names: + * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- + * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 + * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 + + * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. + type: string + name: + description: "name represents the name of this port. All ports in an EndpointSlice\ + \ must have a unique name. If the EndpointSlice is derived from a Kubernetes\ + \ service, this corresponds to the Service.ports[].name. Name must either\ + \ be an empty string or pass DNS_LABEL validation: * must be no more than\ + \ 63 characters long. * must consist of lower case alphanumeric characters\ + \ or '-'. * must start and end with an alphanumeric character. Default\ + \ is empty string." + type: string + port: + description: "port represents the port number of the endpoint. If the EndpointSlice\ + \ is derived from a Kubernetes service, this must be set to the service's\ + \ target port. EndpointSlices used for other purposes may have a nil port." + format: int32 + type: integer + protocol: + description: "protocol represents the IP protocol for this port. Must be\ + \ UDP, TCP, or SCTP. Default is TCP." + type: string + type: object + x-kubernetes-map-type: atomic + v1.EndpointSlice: + description: EndpointSlice represents a set of service endpoints. Most EndpointSlices + are created by the EndpointSlice controller to represent the Pods selected + by Service objects. For a given service there may be multiple EndpointSlice + objects which must be joined to produce the full set of endpoints; you can + find all of the slices for a given service by listing EndpointSlices in the + service's namespace whose `kubernetes.io/service-name` label contains the + service's name. + example: + endpoints: + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + addresses: + - addresses + - addresses + hostname: hostname + zone: zone + hints: + forZones: + - name: name + - name: name + forNodes: + - name: name + - name: name + conditions: + ready: true + terminating: true + serving: true + deprecatedTopology: + key: deprecatedTopology + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + addresses: + - addresses + - addresses + hostname: hostname + zone: zone + hints: + forZones: + - name: name + - name: name + forNodes: + - name: name + - name: name + conditions: + ready: true + terminating: true + serving: true + deprecatedTopology: + key: deprecatedTopology + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + addressType: addressType + kind: kind + ports: + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + properties: + addressType: + description: "addressType specifies the type of address carried by this\ + \ EndpointSlice. All addresses in this slice must be the same type. This\ + \ field is immutable after creation. The following address types are currently\ + \ supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an\ + \ IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. (Deprecated)\ + \ The EndpointSlice controller only generates, and kube-proxy only processes,\ + \ slices of addressType \"IPv4\" and \"IPv6\". No semantics are defined\ + \ for the \"FQDN\" type." + type: string + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + endpoints: + description: endpoints is a list of unique endpoints in this slice. Each + slice may include a maximum of 1000 endpoints. items: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: '#/components/schemas/v1.Endpoint' type: array + x-kubernetes-list-type: atomic kind: description: "Kind is a string value representing the REST resource this\ \ object represents. Servers may infer this from the endpoint the client\ \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: - $ref: '#/components/schemas/v1.ListMeta' + $ref: '#/components/schemas/v1.ObjectMeta' + ports: + description: "ports specifies the list of network ports exposed by each\ + \ endpoint in this slice. Each port must have a unique name. Each slice\ + \ may include a maximum of 100 ports. Services always have at least 1\ + \ port, so EndpointSlices generated by the EndpointSlice controller will\ + \ likewise always have at least 1 port. EndpointSlices used for other\ + \ purposes may have an empty ports list." + items: + $ref: '#/components/schemas/discovery.v1.EndpointPort' + type: array + x-kubernetes-list-type: atomic required: - - items + - addressType + - endpoints type: object x-kubernetes-group-version-kind: - - group: "" - kind: ReplicationControllerList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.ReplicationControllerSpec: - description: ReplicationControllerSpec is the specification of a replication - controller. + - group: discovery.k8s.io + kind: EndpointSlice + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.EndpointSliceList: + description: EndpointSliceList represents a list of endpoint slices example: - template: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - endpoints: + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + addresses: + - addresses + - addresses + hostname: hostname + zone: zone + hints: + forZones: + - name: name + - name: name + forNodes: + - name: name + - name: name + conditions: + ready: true + terminating: true + serving: true + deprecatedTopology: + key: deprecatedTopology + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + addresses: + - addresses + - addresses + hostname: hostname + zone: zone + hints: + forZones: + - name: name + - name: name + forNodes: + - name: name + - name: name + conditions: + ready: true + terminating: true + serving: true + deprecatedTopology: + key: deprecatedTopology metadata: generation: 6 finalizers: @@ -225677,3057 +241989,1402 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 9 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - fsGroup: 7 - fsGroupChangePolicy: fsGroupChangePolicy - seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - runAsUser: 4 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - supplementalGroups: - - 5 - - 5 - supplementalGroupsPolicy: supplementalGroupsPolicy - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulingGates: - - name: name - - name: name - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: - key: null - hostIPC: true - topologySpreadConstraints: - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 3 - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - defaultMode: 5 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - image: - reference: reference - pullPolicy: pullPolicy - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 6 - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes + apiVersion: apiVersion + addressType: addressType + kind: kind + ports: + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + - endpoints: + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 3 - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - defaultMode: 5 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - image: - reference: reference - pullPolicy: pullPolicy - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 6 - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes + namespace: namespace + addresses: + - addresses + - addresses + hostname: hostname + zone: zone + hints: + forZones: + - name: name + - name: name + forNodes: + - name: name + - name: name + conditions: + ready: true + terminating: true + serving: true + deprecatedTopology: + key: deprecatedTopology + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - env: + namespace: namespace + addresses: + - addresses + - addresses + hostname: hostname + zone: zone + hints: + forZones: - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args + forNodes: + - name: name + - name: name + conditions: + ready: true + terminating: true + serving: true + deprecatedTopology: + key: deprecatedTopology + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + addressType: addressType + kind: kind + ports: + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: items is the list of endpoint slices + items: + $ref: '#/components/schemas/v1.EndpointSlice' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: discovery.k8s.io + kind: EndpointSliceList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.ForNode: + description: ForNode provides information about which nodes should consume this + endpoint. + example: + name: name + properties: + name: + description: name represents the name of the node. + type: string + required: + - name + type: object + v1.ForZone: + description: ForZone provides information about which zones should consume this + endpoint. + example: + name: name + properties: + name: + description: name represents the name of the zone. + type: string + required: + - name + type: object + events.v1.Event: + description: "Event is a report of an event somewhere in the cluster. It generally\ + \ denotes some state change in the system. Events have a limited retention\ + \ time and triggers and messages may evolve with time. Event consumers should\ + \ not rely on the timing of an event with a given Reason reflecting a consistent\ + \ underlying trigger, or the continued existence of events with that Reason.\ + \ Events should be treated as informative, best-effort, supplemental data." + example: + note: note + reason: reason + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + reportingInstance: reportingInstance + deprecatedCount: 0 + kind: kind + deprecatedSource: + component: component + host: host + type: type + deprecatedLastTimestamp: 2000-01-23T04:56:07.000+00:00 + regarding: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + deprecatedFirstTimestamp: 2000-01-23T04:56:07.000+00:00 + apiVersion: apiVersion + reportingController: reportingController + related: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + series: + count: 6 + lastObservedTime: 2000-01-23T04:56:07.000+00:00 + eventTime: 2000-01-23T04:56:07.000+00:00 + action: action + properties: + action: + description: action is what action was taken/failed regarding to the regarding + object. It is machine-readable. This field cannot be empty for new Events + and it can have at most 128 characters. + type: string + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + deprecatedCount: + description: deprecatedCount is the deprecated field assuring backward compatibility + with core.v1 Event type. + format: int32 + type: integer + deprecatedFirstTimestamp: + description: deprecatedFirstTimestamp is the deprecated field assuring backward + compatibility with core.v1 Event type. + format: date-time + type: string + deprecatedLastTimestamp: + description: deprecatedLastTimestamp is the deprecated field assuring backward + compatibility with core.v1 Event type. + format: date-time + type: string + deprecatedSource: + $ref: '#/components/schemas/v1.EventSource' + eventTime: + description: eventTime is the time when this Event was first observed. It + is required. + format: date-time + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + note: + description: "note is a human-readable description of the status of this\ + \ operation. Maximal length of the note is 1kB, but libraries should be\ + \ prepared to handle values up to 64kB." + type: string + reason: + description: reason is why the action was taken. It is human-readable. This + field cannot be empty for new Events and it can have at most 128 characters. + type: string + regarding: + $ref: '#/components/schemas/v1.ObjectReference' + related: + $ref: '#/components/schemas/v1.ObjectReference' + reportingController: + description: "reportingController is the name of the controller that emitted\ + \ this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty\ + \ for new Events." + type: string + reportingInstance: + description: "reportingInstance is the ID of the controller instance, e.g.\ + \ `kubelet-xyzf`. This field cannot be empty for new Events and it can\ + \ have at most 128 characters." + type: string + series: + $ref: '#/components/schemas/events.v1.EventSeries' + type: + description: "type is the type of this event (Normal, Warning), new types\ + \ could be added in the future. It is machine-readable. This field cannot\ + \ be empty for new Events." + type: string + required: + - eventTime + type: object + x-kubernetes-group-version-kind: + - group: events.k8s.io + kind: Event + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + events.v1.EventList: + description: EventList is a list of Event objects. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - note: note + reason: reason + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + reportingInstance: reportingInstance + deprecatedCount: 0 + kind: kind + deprecatedSource: + component: component + host: host + type: type + deprecatedLastTimestamp: 2000-01-23T04:56:07.000+00:00 + regarding: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + deprecatedFirstTimestamp: 2000-01-23T04:56:07.000+00:00 + apiVersion: apiVersion + reportingController: reportingController + related: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + series: + count: 6 + lastObservedTime: 2000-01-23T04:56:07.000+00:00 + eventTime: 2000-01-23T04:56:07.000+00:00 + action: action + - note: note + reason: reason + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + reportingInstance: reportingInstance + deprecatedCount: 0 + kind: kind + deprecatedSource: + component: component + host: host + type: type + deprecatedLastTimestamp: 2000-01-23T04:56:07.000+00:00 + regarding: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + deprecatedFirstTimestamp: 2000-01-23T04:56:07.000+00:00 + apiVersion: apiVersion + reportingController: reportingController + related: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + series: + count: 6 + lastObservedTime: 2000-01-23T04:56:07.000+00:00 + eventTime: 2000-01-23T04:56:07.000+00:00 + action: action + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: items is a list of schema objects. + items: + $ref: '#/components/schemas/events.v1.Event' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: events.k8s.io + kind: EventList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + events.v1.EventSeries: + description: "EventSeries contain information on series of events, i.e. thing\ + \ that was/is happening continuously for some time. How often to update the\ + \ EventSeries is up to the event reporters. The default event reporter in\ + \ \"k8s.io/client-go/tools/events/event_broadcaster.go\" shows how this struct\ + \ is updated on heartbeats and can guide customized reporter implementations." + example: + count: 6 + lastObservedTime: 2000-01-23T04:56:07.000+00:00 + properties: + count: + description: count is the number of occurrences in this series up to the + last heartbeat time. + format: int32 + type: integer + lastObservedTime: + description: lastObservedTime is the time when last Event from the series + was seen before last heartbeat. + format: date-time + type: string + required: + - count + - lastObservedTime + type: object + v1.ExemptPriorityLevelConfiguration: + description: "ExemptPriorityLevelConfiguration describes the configurable aspects\ + \ of the handling of exempt requests. In the mandatory exempt configuration\ + \ object the values in the fields here can be modified by authorized users,\ + \ unlike the rest of the `spec`." + example: + lendablePercent: 0 + nominalConcurrencyShares: 6 + properties: + lendablePercent: + description: |- + `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. + + LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) + format: int32 + type: integer + nominalConcurrencyShares: + description: |- + `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values: + + NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) + + Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero. + format: int32 + type: integer + type: object + v1.FlowDistinguisherMethod: + description: FlowDistinguisherMethod specifies the method of a flow distinguisher. + example: + type: type + properties: + type: + description: '`type` is the type of flow distinguisher method The supported + types are "ByUser" and "ByNamespace". Required.' + type: string + required: + - type + type: object + v1.FlowSchema: + description: "FlowSchema defines the schema of a group of flows. Note that a\ + \ flow is made up of a set of inbound API requests with similar attributes\ + \ and is identified by a pair of strings: the name of the FlowSchema and a\ + \ \"flow distinguisher\"." + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + priorityLevelConfiguration: + name: name + matchingPrecedence: 0 + rules: + - nonResourceRules: + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + resourceRules: + - clusterScope: true resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + - clusterScope: true resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + subjects: + - kind: kind + serviceAccount: name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP + namespace: namespace + user: name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + group: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + - kind: kind + serviceAccount: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath + namespace: namespace + user: name: name - - devicePath: devicePath + group: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir + - nonResourceRules: + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + resourceRules: + - clusterScope: true resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + subjects: + - kind: kind + serviceAccount: name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP + namespace: namespace + user: name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + group: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + - kind: kind + serviceAccount: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath + namespace: namespace + user: name: name - - devicePath: devicePath + group: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request + distinguisherMethod: + type: type + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.FlowSchemaSpec' + status: + $ref: '#/components/schemas/v1.FlowSchemaStatus' + type: object + x-kubernetes-group-version-kind: + - group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.FlowSchemaCondition: + description: FlowSchemaCondition describes conditions for a FlowSchema. + example: + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + properties: + lastTransitionTime: + description: '`lastTransitionTime` is the last time the condition transitioned + from one status to another.' + format: date-time + type: string + message: + description: '`message` is a human-readable message indicating details about + last transition.' + type: string + reason: + description: "`reason` is a unique, one-word, CamelCase reason for the condition's\ + \ last transition." + type: string + status: + description: "`status` is the status of the condition. Can be True, False,\ + \ Unknown. Required." + type: string + type: + description: '`type` is the type of the condition. Required.' + type: string + type: object + v1.FlowSchemaList: + description: FlowSchemaList is a list of FlowSchema objects. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + priorityLevelConfiguration: + name: name + matchingPrecedence: 0 + rules: + - nonResourceRules: + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + resourceRules: + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + subjects: + - kind: kind + serviceAccount: name: name - - request: request + namespace: namespace + user: name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: + group: name: name - optional: true - prefix: prefix - secretRef: + - kind: kind + serviceAccount: name: name - optional: true - - configMapRef: + namespace: namespace + user: name: name - optional: true - prefix: prefix - secretRef: + group: name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request + - nonResourceRules: + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + resourceRules: + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + subjects: + - kind: kind + serviceAccount: name: name - - request: request + namespace: namespace + user: name: name - requests: - key: null - limits: - key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: + group: name: name - optional: true - prefix: prefix - secretRef: + - kind: kind + serviceAccount: name: name - optional: true - - configMapRef: + namespace: namespace + user: name: name - optional: true - prefix: prefix - secretRef: + group: name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - replicas: 6 - selector: - key: selector - minReadySeconds: 0 + distinguisherMethod: + type: type + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + priorityLevelConfiguration: + name: name + matchingPrecedence: 0 + rules: + - nonResourceRules: + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + resourceRules: + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + subjects: + - kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name + - kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name + - nonResourceRules: + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + resourceRules: + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + subjects: + - kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name + - kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name + distinguisherMethod: + type: type + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status properties: - minReadySeconds: - description: "Minimum number of seconds for which a newly created pod should\ - \ be ready without any of its container crashing, for it to be considered\ - \ available. Defaults to 0 (pod will be considered available as soon as\ - \ it is ready)" - format: int32 - type: integer - replicas: - description: "Replicas is the number of desired replicas. This is a pointer\ - \ to distinguish between explicit zero and unspecified. Defaults to 1.\ - \ More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller" + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: '`items` is a list of FlowSchemas.' + items: + $ref: '#/components/schemas/v1.FlowSchema' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: flowcontrol.apiserver.k8s.io + kind: FlowSchemaList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.FlowSchemaSpec: + description: FlowSchemaSpec describes how the FlowSchema's specification looks + like. + example: + priorityLevelConfiguration: + name: name + matchingPrecedence: 0 + rules: + - nonResourceRules: + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + resourceRules: + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + subjects: + - kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name + - kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name + - nonResourceRules: + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + resourceRules: + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + subjects: + - kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name + - kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name + distinguisherMethod: + type: type + properties: + distinguisherMethod: + $ref: '#/components/schemas/v1.FlowDistinguisherMethod' + matchingPrecedence: + description: "`matchingPrecedence` is used to choose among the FlowSchemas\ + \ that match a given request. The chosen FlowSchema is among those with\ + \ the numerically lowest (which we take to be logically highest) MatchingPrecedence.\ + \ Each MatchingPrecedence value must be ranged in [1,10000]. Note that\ + \ if the precedence is not specified, it will be set to 1000 as default." format: int32 type: integer - selector: - additionalProperties: - type: string - description: "Selector is a label query over pods that should match the\ - \ Replicas count. If Selector is empty, it is defaulted to the labels\ - \ present on the Pod template. Label keys and values that must match in\ - \ order to be controlled by this replication controller, if empty defaulted\ - \ to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" - type: object - x-kubernetes-map-type: atomic - template: - $ref: '#/components/schemas/v1.PodTemplateSpec' + priorityLevelConfiguration: + $ref: '#/components/schemas/v1.PriorityLevelConfigurationReference' + rules: + description: "`rules` describes which requests will match this flow schema.\ + \ This FlowSchema matches a request if and only if at least one member\ + \ of rules matches the request. if it is an empty slice, there will be\ + \ no requests matching the FlowSchema." + items: + $ref: '#/components/schemas/v1.PolicyRulesWithSubjects' + type: array + x-kubernetes-list-type: atomic + required: + - priorityLevelConfiguration type: object - v1.ReplicationControllerStatus: - description: ReplicationControllerStatus represents the current status of a - replication controller. + v1.FlowSchemaStatus: + description: FlowSchemaStatus represents the current state of a FlowSchema. example: - fullyLabeledReplicas: 5 - replicas: 7 - readyReplicas: 2 conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -228739,150 +243396,239 @@ components: message: message type: type status: status - availableReplicas: 1 - observedGeneration: 5 properties: - availableReplicas: - description: The number of available replicas (ready for at least minReadySeconds) - for this replication controller. - format: int32 - type: integer conditions: - description: Represents the latest available observations of a replication - controller's current state. + description: '`conditions` is a list of the current states of FlowSchema.' items: - $ref: '#/components/schemas/v1.ReplicationControllerCondition' + $ref: '#/components/schemas/v1.FlowSchemaCondition' type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map x-kubernetes-list-map-keys: - type x-kubernetes-patch-merge-key: type - fullyLabeledReplicas: - description: The number of pods that have labels matching the labels of - the pod template of the replication controller. - format: int32 - type: integer - observedGeneration: - description: ObservedGeneration reflects the generation of the most recently - observed replication controller. - format: int64 - type: integer - readyReplicas: - description: The number of ready replicas for this replication controller. - format: int32 - type: integer - replicas: - description: "Replicas is the most recently observed number of replicas.\ - \ More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller" - format: int32 - type: integer - required: - - replicas type: object - v1.ResourceClaim: - description: ResourceClaim references one entry in PodSpec.ResourceClaims. + v1.GroupSubject: + description: GroupSubject holds detailed information for group-kind subject. example: - request: request name: name properties: name: - description: Name must match the name of one entry in pod.spec.resourceClaims - of the Pod where this field is used. It makes that resource available - inside a container. - type: string - request: - description: "Request is the name chosen for a request in the referenced\ - \ claim. If empty, everything from the claim is made available, otherwise\ - \ only the result of this request." + description: "name is the user group that matches, or \"*\" to match all\ + \ user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go\ + \ for some well-known group names. Required." type: string required: - name type: object - v1.ResourceFieldSelector: - description: "ResourceFieldSelector represents container resources (cpu, memory)\ - \ and their output format" + v1.LimitResponse: + description: LimitResponse defines how to handle requests that can not be executed + right now. example: - divisor: divisor - resource: resource - containerName: containerName + queuing: + handSize: 5 + queues: 7 + queueLengthLimit: 2 + type: type properties: - containerName: - description: "Container name: required for volumes, optional for env vars" - type: string - divisor: - description: "Quantity is a fixed-point representation of a number. It provides\ - \ convenient marshaling/unmarshaling in JSON and YAML, in addition to\ - \ String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\ - ``` ::= \n\n\t(Note that \ - \ may be empty, from the \"\" case in .)\n\n \ - \ ::= 0 | 1 | ... | 9 ::= | \ - \ ::= | . | . | .\ - \ ::= \"+\" | \"-\" ::= |\ - \ ::= | \ - \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ - (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ - \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ - \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ - \ ::= \"e\" | \"E\" ```\n\nNo matter which\ - \ of the three exponent forms is used, no quantity may represent a number\ - \ greater than 2^63-1 in magnitude, nor may it have more than 3 decimal\ - \ places. Numbers larger or more precise will be capped or rounded up.\ - \ (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future\ - \ if we require larger or smaller quantities.\n\nWhen a Quantity is parsed\ - \ from a string, it will remember the type of suffix it had, and will\ - \ use the same type again when it is serialized.\n\nBefore serializing,\ - \ Quantity will be put in \"canonical form\". This means that Exponent/suffix\ - \ will be adjusted up or down (with a corresponding increase or decrease\ - \ in Mantissa) such that:\n\n- No precision is lost - No fractional digits\ - \ will be emitted - The exponent (or suffix) is as large as possible.\n\ - \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ - \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ - \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ - \ by a floating point number. That is the whole point of this exercise.\n\ - \nNon-canonical values will still parse as long as they are well formed,\ - \ but will be re-emitted in their canonical form. (So always use canonical\ - \ form, or don't diff.)\n\nThis format is intended to make it difficult\ - \ to use these numbers without writing some sort of special handling code\ - \ in the hopes that that will cause implementors to also use a fixed point\ - \ implementation." - format: quantity - type: string - resource: - description: "Required: resource to select" + queuing: + $ref: '#/components/schemas/v1.QueuingConfiguration' + type: + description: '`type` is "Queue" or "Reject". "Queue" means that requests + that can not be executed upon arrival are held in a queue until they can + be executed or a queuing limit is reached. "Reject" means that requests + that can not be executed upon arrival are rejected. Required.' type: string required: - - resource + - type type: object - x-kubernetes-map-type: atomic - v1.ResourceHealth: - description: ResourceHealth represents the health of a resource. It has the - latest device health information. This is a part of KEP https://kep.k8s.io/4680. + x-kubernetes-unions: + - discriminator: type + fields-to-discriminateBy: + queuing: Queuing + v1.LimitedPriorityLevelConfiguration: + description: |- + LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: + - How are requests for this priority level limited? + - What should be done with requests that exceed the limit? example: - resourceID: resourceID - health: health + lendablePercent: 5 + borrowingLimitPercent: 1 + limitResponse: + queuing: + handSize: 5 + queues: 7 + queueLengthLimit: 2 + type: type + nominalConcurrencyShares: 9 properties: - health: + borrowingLimitPercent: description: |- - Health of the resource. can be one of: - - Healthy: operates as normal - - Unhealthy: reported unhealthy. We consider this a temporary health issue - since we do not have a mechanism today to distinguish - temporary and permanent issues. - - Unknown: The status cannot be determined. - For example, Device Plugin got unregistered and hasn't been re-registered since. + `borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows. - In future we may want to introduce the PermanentlyUnhealthy Status. - type: string - resourceID: - description: ResourceID is the unique identifier of the resource. See the - ResourceID type for more information. - type: string + BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) + + The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite. + format: int32 + type: integer + lendablePercent: + description: |- + `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. + + LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) + format: int32 + type: integer + limitResponse: + $ref: '#/components/schemas/v1.LimitResponse' + nominalConcurrencyShares: + description: |- + `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values: + + NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) + + Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. + + If not specified, this field defaults to a value of 30. + + Setting this field to zero supports the construction of a "jail" for this priority level that is used to hold some request(s) + format: int32 + type: integer + type: object + v1.NonResourcePolicyRule: + description: NonResourcePolicyRule is a predicate that matches non-resource + requests according to their verb and the target non-resource URL. A NonResourcePolicyRule + matches a request if and only if both (a) at least one member of verbs matches + the request and (b) at least one member of nonResourceURLs matches the request. + example: + verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + properties: + nonResourceURLs: + description: |- + `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: + - "/healthz" is legal + - "/hea*" is illegal + - "/hea" is legal but matches nothing + - "/hea/*" also matches nothing + - "/healthz/*" matches all per-component health checks. + "*" matches all non-resource urls. if it is present, it must be the only entry. Required. + items: + type: string + type: array + x-kubernetes-list-type: set + verbs: + description: "`verbs` is a list of matching verbs and may not be empty.\ + \ \"*\" matches all verbs. If it is present, it must be the only entry.\ + \ Required." + items: + type: string + type: array + x-kubernetes-list-type: set required: - - resourceID + - nonResourceURLs + - verbs type: object - v1.ResourceQuota: - description: ResourceQuota sets aggregate quota restrictions enforced per namespace + v1.PolicyRulesWithSubjects: + description: "PolicyRulesWithSubjects prescribes a test that applies to a request\ + \ to an apiserver. The test considers the subject making the request, the\ + \ verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects\ + \ matches a request if and only if both (a) at least one member of subjects\ + \ matches the request and (b) at least one member of resourceRules or nonResourceRules\ + \ matches the request." + example: + nonResourceRules: + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + resourceRules: + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + subjects: + - kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name + - kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name + properties: + nonResourceRules: + description: '`nonResourceRules` is a list of NonResourcePolicyRules that + identify matching requests according to their verb and the target non-resource + URL.' + items: + $ref: '#/components/schemas/v1.NonResourcePolicyRule' + type: array + x-kubernetes-list-type: atomic + resourceRules: + description: '`resourceRules` is a slice of ResourcePolicyRules that identify + matching requests according to their verb and the target resource. At + least one of `resourceRules` and `nonResourceRules` has to be non-empty.' + items: + $ref: '#/components/schemas/v1.ResourcePolicyRule' + type: array + x-kubernetes-list-type: atomic + subjects: + description: "subjects is the list of normal user, serviceaccount, or group\ + \ that this rule cares about. There must be at least one member in this\ + \ slice. A slice that includes both the system:authenticated and system:unauthenticated\ + \ user groups matches every request. Required." + items: + $ref: '#/components/schemas/flowcontrol.v1.Subject' + type: array + x-kubernetes-list-type: atomic + required: + - subjects + type: object + v1.PriorityLevelConfiguration: + description: PriorityLevelConfiguration represents the configuration of a priority + level. example: metadata: generation: 6 @@ -228933,28 +243679,32 @@ components: apiVersion: apiVersion kind: kind spec: - scopeSelector: - matchExpressions: - - scopeName: scopeName - values: - - values - - values - operator: operator - - scopeName: scopeName - values: - - values - - values - operator: operator - hard: - key: null - scopes: - - scopes - - scopes + limited: + lendablePercent: 5 + borrowingLimitPercent: 1 + limitResponse: + queuing: + handSize: 5 + queues: 7 + queueLengthLimit: 2 + type: type + nominalConcurrencyShares: 9 + exempt: + lendablePercent: 0 + nominalConcurrencyShares: 6 + type: type status: - hard: - key: null - used: - key: null + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -228969,18 +243719,50 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1.ResourceQuotaSpec' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationSpec' status: - $ref: '#/components/schemas/v1.ResourceQuotaStatus' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationStatus' type: object x-kubernetes-group-version-kind: - - group: "" - kind: ResourceQuota + - group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.ResourceQuotaList: - description: ResourceQuotaList is a list of ResourceQuota items. + v1.PriorityLevelConfigurationCondition: + description: PriorityLevelConfigurationCondition defines the condition of priority + level. + example: + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + properties: + lastTransitionTime: + description: '`lastTransitionTime` is the last time the condition transitioned + from one status to another.' + format: date-time + type: string + message: + description: '`message` is a human-readable message indicating details about + last transition.' + type: string + reason: + description: "`reason` is a unique, one-word, CamelCase reason for the condition's\ + \ last transition." + type: string + status: + description: "`status` is the status of the condition. Can be True, False,\ + \ Unknown. Required." + type: string + type: + description: '`type` is the type of the condition. Required.' + type: string + type: object + v1.PriorityLevelConfigurationList: + description: PriorityLevelConfigurationList is a list of PriorityLevelConfiguration + objects. example: metadata: remainingItemCount: 1 @@ -229039,28 +243821,32 @@ components: apiVersion: apiVersion kind: kind spec: - scopeSelector: - matchExpressions: - - scopeName: scopeName - values: - - values - - values - operator: operator - - scopeName: scopeName - values: - - values - - values - operator: operator - hard: - key: null - scopes: - - scopes - - scopes + limited: + lendablePercent: 5 + borrowingLimitPercent: 1 + limitResponse: + queuing: + handSize: 5 + queues: 7 + queueLengthLimit: 2 + type: type + nominalConcurrencyShares: 9 + exempt: + lendablePercent: 0 + nominalConcurrencyShares: 6 + type: type status: - hard: - key: null - used: - key: null + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status - metadata: generation: 6 finalizers: @@ -229110,28 +243896,32 @@ components: apiVersion: apiVersion kind: kind spec: - scopeSelector: - matchExpressions: - - scopeName: scopeName - values: - - values - - values - operator: operator - - scopeName: scopeName - values: - - values - - values - operator: operator - hard: - key: null - scopes: - - scopes - - scopes + limited: + lendablePercent: 5 + borrowingLimitPercent: 1 + limitResponse: + queuing: + handSize: 5 + queues: 7 + queueLengthLimit: 2 + type: type + nominalConcurrencyShares: 9 + exempt: + lendablePercent: 0 + nominalConcurrencyShares: 6 + type: type status: - hard: - key: null - used: - key: null + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -229139,9 +243929,9 @@ components: \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string items: - description: "Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/" + description: '`items` is a list of request-priorities.' items: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -229154,369 +243944,357 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: "" - kind: ResourceQuotaList + - group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfigurationList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.ResourceQuotaSpec: - description: ResourceQuotaSpec defines the desired hard limits to enforce for - Quota. + v1.PriorityLevelConfigurationReference: + description: PriorityLevelConfigurationReference contains information that points + to the "request-priority" being used. example: - scopeSelector: - matchExpressions: - - scopeName: scopeName - values: - - values - - values - operator: operator - - scopeName: scopeName - values: - - values - - values - operator: operator - hard: - key: null - scopes: - - scopes - - scopes + name: name properties: - hard: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: "hard is the set of desired hard limits for each named resource.\ - \ More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/" - type: object - scopeSelector: - $ref: '#/components/schemas/v1.ScopeSelector' - scopes: - description: "A collection of filters that must match each object tracked\ - \ by a quota. If not specified, the quota matches all objects." + name: + description: '`name` is the name of the priority level configuration being + referenced Required.' + type: string + required: + - name + type: object + v1.PriorityLevelConfigurationSpec: + description: PriorityLevelConfigurationSpec specifies the configuration of a + priority level. + example: + limited: + lendablePercent: 5 + borrowingLimitPercent: 1 + limitResponse: + queuing: + handSize: 5 + queues: 7 + queueLengthLimit: 2 + type: type + nominalConcurrencyShares: 9 + exempt: + lendablePercent: 0 + nominalConcurrencyShares: 6 + type: type + properties: + exempt: + $ref: '#/components/schemas/v1.ExemptPriorityLevelConfiguration' + limited: + $ref: '#/components/schemas/v1.LimitedPriorityLevelConfiguration' + type: + description: '`type` indicates whether this priority level is subject to + limitation on request execution. A value of `"Exempt"` means that requests + of this priority level are not subject to a limit (and thus are never + queued) and do not detract from the capacity made available to other priority + levels. A value of `"Limited"` means that (a) requests of this priority + level _are_ subject to limits and (b) some of the server''s limited capacity + is made available exclusively to this priority level. Required.' + type: string + required: + - type + type: object + x-kubernetes-unions: + - discriminator: type + fields-to-discriminateBy: + exempt: Exempt + limited: Limited + v1.PriorityLevelConfigurationStatus: + description: PriorityLevelConfigurationStatus represents the current state of + a "request-priority". + example: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + properties: + conditions: + description: '`conditions` is the current state of "request-priority".' + items: + $ref: '#/components/schemas/v1.PriorityLevelConfigurationCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + v1.QueuingConfiguration: + description: QueuingConfiguration holds the configuration parameters for queuing + example: + handSize: 5 + queues: 7 + queueLengthLimit: 2 + properties: + handSize: + description: "`handSize` is a small positive number that configures the\ + \ shuffle sharding of requests into queues. When enqueuing a request\ + \ at this priority level the request's flow identifier (a string pair)\ + \ is hashed and the hash value is used to shuffle the list of queues and\ + \ deal a hand of the size specified here. The request is put into one\ + \ of the shortest queues in that hand. `handSize` must be no larger than\ + \ `queues`, and should be significantly smaller (so that a few heavy flows\ + \ do not saturate most of the queues). See the user-facing documentation\ + \ for more extensive guidance on setting this field. This field has a\ + \ default value of 8." + format: int32 + type: integer + queueLengthLimit: + description: "`queueLengthLimit` is the maximum number of requests allowed\ + \ to be waiting in a given queue of this priority level at a time; excess\ + \ requests are rejected. This value must be positive. If not specified,\ + \ it will be defaulted to 50." + format: int32 + type: integer + queues: + description: '`queues` is the number of queues for this priority level. + The queues exist independently at each apiserver. The value must be positive. Setting + it to 1 effectively precludes shufflesharding and thus makes the distinguisher + method of associated flow schemas irrelevant. This field has a default + value of 64.' + format: int32 + type: integer + type: object + v1.ResourcePolicyRule: + description: "ResourcePolicyRule is a predicate that matches some resource requests,\ + \ testing the request's verb and the target resource. A ResourcePolicyRule\ + \ matches a resource request if and only if: (a) at least one member of verbs\ + \ matches the request, (b) at least one member of apiGroups matches the request,\ + \ (c) at least one member of resources matches the request, and (d) either\ + \ (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`)\ + \ and clusterScope is true or (d2) the request specifies a namespace and least\ + \ one member of namespaces matches the request's namespace." + example: + clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + properties: + apiGroups: + description: "`apiGroups` is a list of matching API groups and may not be\ + \ empty. \"*\" matches all API groups and, if present, must be the only\ + \ entry. Required." + items: + type: string + type: array + x-kubernetes-list-type: set + clusterScope: + description: '`clusterScope` indicates whether to match requests that do + not specify a namespace (which happens either because the resource is + not namespaced or the request targets all namespaces). If this field is + omitted or false then the `namespaces` field must contain a non-empty + list.' + type: boolean + namespaces: + description: "`namespaces` is a list of target namespaces that restricts\ + \ matches. A request that specifies a target namespace matches only if\ + \ either (a) this list contains that target namespace or (b) this list\ + \ contains \"*\". Note that \"*\" matches any specified namespace but\ + \ does not match a request that _does not specify_ a namespace (see the\ + \ `clusterScope` field for that). This list may be empty, but only if\ + \ `clusterScope` is true." items: type: string type: array - x-kubernetes-list-type: atomic - type: object - v1.ResourceQuotaStatus: - description: ResourceQuotaStatus defines the enforced hard limits and observed - use. - example: - hard: - key: null - used: - key: null - properties: - hard: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: "Hard is the set of enforced hard limits for each named resource.\ - \ More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/" - type: object - used: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: Used is the current observed total usage of the resource in - the namespace. - type: object - type: object - v1.ResourceRequirements: - description: ResourceRequirements describes the compute resource requirements. - example: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - properties: - claims: - description: |- - Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. - - This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. - - This field is immutable. It can only be set for containers. + x-kubernetes-list-type: set + resources: + description: "`resources` is a list of matching resources (i.e., lowercase\ + \ and plural) with, if desired, subresource. For example, [ \"services\"\ + , \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources\ + \ and, if present, must be the only entry. Required." items: - $ref: '#/components/schemas/v1.ResourceClaim' + type: string type: array - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - limits: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: "Limits describes the maximum amount of compute resources allowed.\ - \ More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" - type: object - requests: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: "Requests describes the minimum amount of compute resources\ - \ required. If Requests is omitted for a container, it defaults to Limits\ - \ if that is explicitly specified, otherwise to an implementation-defined\ - \ value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" - type: object + x-kubernetes-list-type: set + verbs: + description: "`verbs` is a list of matching verbs and may not be empty.\ + \ \"*\" matches all verbs and, if present, must be the only entry. Required." + items: + type: string + type: array + x-kubernetes-list-type: set + required: + - apiGroups + - resources + - verbs type: object - v1.ResourceStatus: - description: ResourceStatus represents the status of a single resource allocated - to a Pod. + v1.ServiceAccountSubject: + description: ServiceAccountSubject holds detailed information for service-account-kind + subject. example: name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health + namespace: namespace properties: name: - description: "Name of the resource. Must be unique within the pod and in\ - \ case of non-DRA resource, match one of the resources from the pod spec.\ - \ For DRA resources, the value must be \"claim:/\"\ - . When this status is reported about a container, the \"claim_name\" and\ - \ \"request\" must match one of the claims of this container." + description: "`name` is the name of matching ServiceAccount objects, or\ + \ \"*\" to match regardless of name. Required." + type: string + namespace: + description: '`namespace` is the namespace of matching ServiceAccount objects. + Required.' type: string - resources: - description: "List of unique resources health. Each element in the list\ - \ contains an unique resource ID and its health. At a minimum, for the\ - \ lifetime of a Pod, resource ID must uniquely identify the resource allocated\ - \ to the Pod on the Node. If other Pod on the same Node reports the status\ - \ with the same resource ID, it must be the same resource they share.\ - \ See ResourceID type definition for a specific format it has in various\ - \ use cases." - items: - $ref: '#/components/schemas/v1.ResourceHealth' - type: array - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - resourceID required: - name + - namespace type: object - v1.SELinuxOptions: - description: SELinuxOptions are the labels to be applied to the container + flowcontrol.v1.Subject: + description: "Subject matches the originator of a request, as identified by\ + \ the request authentication system. There are three ways of matching an originator;\ + \ by user, group, or service account." example: - role: role - level: level - type: type - user: user + kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name properties: - level: - description: Level is SELinux level label that applies to the container. - type: string - role: - description: Role is a SELinux role label that applies to the container. - type: string - type: - description: Type is a SELinux type label that applies to the container. + group: + $ref: '#/components/schemas/v1.GroupSubject' + kind: + description: '`kind` indicates which one of the other fields is non-empty. + Required' type: string + serviceAccount: + $ref: '#/components/schemas/v1.ServiceAccountSubject' user: - description: User is a SELinux user label that applies to the container. - type: string + $ref: '#/components/schemas/v1.UserSubject' + required: + - kind type: object - v1.ScaleIOPersistentVolumeSource: - description: ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume + x-kubernetes-unions: + - discriminator: kind + fields-to-discriminateBy: + group: Group + serviceAccount: ServiceAccount + user: User + v1.UserSubject: + description: UserSubject holds detailed information for user-kind subject. example: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway + name: name properties: - fsType: - description: "fsType is the filesystem type to mount. Must be a filesystem\ - \ type supported by the host operating system. Ex. \"ext4\", \"xfs\",\ - \ \"ntfs\". Default is \"xfs\"" - type: string - gateway: - description: gateway is the host address of the ScaleIO API Gateway. - type: string - protectionDomain: - description: protectionDomain is the name of the ScaleIO Protection Domain - for the configured storage. - type: string - readOnly: - description: readOnly defaults to false (read/write). ReadOnly here will - force the ReadOnly setting in VolumeMounts. - type: boolean - secretRef: - $ref: '#/components/schemas/v1.SecretReference' - sslEnabled: - description: "sslEnabled is the flag to enable/disable SSL communication\ - \ with Gateway, default false" - type: boolean - storageMode: - description: storageMode indicates whether the storage for a volume should - be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - type: string - storagePool: - description: storagePool is the ScaleIO Storage Pool associated with the - protection domain. - type: string - system: - description: system is the name of the storage system as configured in ScaleIO. - type: string - volumeName: - description: volumeName is the name of a volume already created in the ScaleIO - system that is associated with this volume source. + name: + description: "`name` is the username that matches, or \"*\" to match all\ + \ usernames. Required." type: string required: - - gateway - - secretRef - - system + - name type: object - v1.ScaleIOVolumeSource: - description: ScaleIOVolumeSource represents a persistent ScaleIO volume + v1.HTTPIngressPath: + description: HTTPIngressPath associates a path with a backend. Incoming urls + matching the path are forwarded to the backend. example: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway + path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType properties: - fsType: - description: "fsType is the filesystem type to mount. Must be a filesystem\ - \ type supported by the host operating system. Ex. \"ext4\", \"xfs\",\ - \ \"ntfs\". Default is \"xfs\"." - type: string - gateway: - description: gateway is the host address of the ScaleIO API Gateway. - type: string - protectionDomain: - description: protectionDomain is the name of the ScaleIO Protection Domain - for the configured storage. - type: string - readOnly: - description: readOnly Defaults to false (read/write). ReadOnly here will - force the ReadOnly setting in VolumeMounts. - type: boolean - secretRef: - $ref: '#/components/schemas/v1.LocalObjectReference' - sslEnabled: - description: "sslEnabled Flag enable/disable SSL communication with Gateway,\ - \ default false" - type: boolean - storageMode: - description: storageMode indicates whether the storage for a volume should - be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - type: string - storagePool: - description: storagePool is the ScaleIO Storage Pool associated with the - protection domain. - type: string - system: - description: system is the name of the storage system as configured in ScaleIO. + backend: + $ref: '#/components/schemas/v1.IngressBackend' + path: + description: path is matched against the path of an incoming request. Currently + it can contain characters disallowed from the conventional "path" part + of a URL as defined by RFC 3986. Paths must begin with a '/' and must + be present when using PathType with value "Exact" or "Prefix". type: string - volumeName: - description: volumeName is the name of a volume already created in the ScaleIO - system that is associated with this volume source. + pathType: + description: |- + pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is + done on a path element by element basis. A path element refers is the + list of labels in the path split by the '/' separator. A request is a + match for path p if every p is an element-wise prefix of p of the + request path. Note that if the last element of the path is a substring + of the last element in request path, it is not a match (e.g. /foo/bar + matches /foo/bar/baz, but does not match /foo/barbaz). + * ImplementationSpecific: Interpretation of the Path matching is up to + the IngressClass. Implementations can treat this as a separate PathType + or treat it identically to Prefix or Exact path types. + Implementations are required to support all path types. type: string required: - - gateway - - secretRef - - system - type: object - v1.ScopeSelector: - description: A scope selector represents the AND of the selectors represented - by the scoped-resource selector requirements. - example: - matchExpressions: - - scopeName: scopeName - values: - - values - - values - operator: operator - - scopeName: scopeName - values: - - values - - values - operator: operator - properties: - matchExpressions: - description: A list of scope selector requirements by scope of the resources. - items: - $ref: '#/components/schemas/v1.ScopedResourceSelectorRequirement' - type: array - x-kubernetes-list-type: atomic + - backend + - pathType type: object - x-kubernetes-map-type: atomic - v1.ScopedResourceSelectorRequirement: - description: "A scoped-resource selector requirement is a selector that contains\ - \ values, a scope name, and an operator that relates the scope name and values." + v1.HTTPIngressRuleValue: + description: "HTTPIngressRuleValue is a list of http selectors pointing to backends.\ + \ In the example: http:///? -> backend where where\ + \ parts of the url correspond to RFC 3986, this resource will be used to match\ + \ against everything after the last '/' and before the first '?' or '#'." example: - scopeName: scopeName - values: - - values - - values - operator: operator + paths: + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType properties: - operator: - description: "Represents a scope's relationship to a set of values. Valid\ - \ operators are In, NotIn, Exists, DoesNotExist." - type: string - scopeName: - description: The name of the scope that the selector applies to. - type: string - values: - description: "An array of string values. If the operator is In or NotIn,\ - \ the values array must be non-empty. If the operator is Exists or DoesNotExist,\ - \ the values array must be empty. This array is replaced during a strategic\ - \ merge patch." + paths: + description: paths is a collection of paths that map requests to backends. items: - type: string + $ref: '#/components/schemas/v1.HTTPIngressPath' type: array x-kubernetes-list-type: atomic required: - - operator - - scopeName - type: object - v1.SeccompProfile: - description: SeccompProfile defines a pod/container's seccomp profile settings. - Only one profile source may be set. - example: - localhostProfile: localhostProfile - type: type - properties: - localhostProfile: - description: "localhostProfile indicates a profile defined in a file on\ - \ the node should be used. The profile must be preconfigured on the node\ - \ to work. Must be a descending path, relative to the kubelet's configured\ - \ seccomp profile location. Must be set if type is \"Localhost\". Must\ - \ NOT be set for any other type." - type: string - type: - description: |- - type indicates which kind of seccomp profile will be applied. Valid options are: - - Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied. - type: string - required: - - type + - paths type: object - x-kubernetes-unions: - - discriminator: type - fields-to-discriminateBy: - localhostProfile: LocalhostProfile - v1.Secret: - description: Secret holds secret data of a certain type. The total bytes of - the values in the Data field must be less than MaxSecretSize bytes. + v1.IPAddress: + description: "IPAddress represents a single IP of a single IP Family. The object\ + \ is designed to be used by APIs that operate on IP addresses. The object\ + \ is used by the Service core API for allocation of IP addresses. An IP address\ + \ can be represented in different formats, to guarantee the uniqueness of\ + \ the IP, the name of the object is the IP address in canonical format, four\ + \ decimal digits separated by dots suppressing leading zeros for IPv4 and\ + \ the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1\ + \ or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1" example: - immutable: true metadata: generation: 6 finalizers: @@ -229564,34 +244342,19 @@ components: name: name namespace: namespace apiVersion: apiVersion - data: - key: data kind: kind - type: type - stringData: - key: stringData + spec: + parentRef: + resource: resource + name: name + namespace: namespace + group: group properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ \ of an object. Servers should convert recognized schemas to the latest\ \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string - data: - additionalProperties: - format: byte - pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" - type: string - description: "Data contains the secret data. Each key must consist of alphanumeric\ - \ characters, '-', '_' or '.'. The serialized form of the secret data\ - \ is a base64 encoded string, representing the arbitrary (possibly non-string)\ - \ data value here. Described in https://tools.ietf.org/html/rfc4648#section-4" - type: object - immutable: - description: "Immutable, if set to true, ensures that data stored in the\ - \ Secret cannot be updated (only object metadata can be modified). If\ - \ not set to true, the field can be modified at any time. Defaulted to\ - \ nil." - type: boolean kind: description: "Kind is a string value representing the REST resource this\ \ object represents. Servers may infer this from the endpoint the client\ @@ -229599,71 +244362,17 @@ components: type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' - stringData: - additionalProperties: - type: string - description: "stringData allows specifying non-binary secret data in string\ - \ form. It is provided as a write-only input field for convenience. All\ - \ keys and values are merged into the data field on write, overwriting\ - \ any existing values. The stringData field is never output when reading\ - \ from the API." - type: object - type: - description: "Used to facilitate programmatic handling of secret data. More\ - \ info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types" - type: string + spec: + $ref: '#/components/schemas/v1.IPAddressSpec' type: object x-kubernetes-group-version-kind: - - group: "" - kind: Secret + - group: networking.k8s.io + kind: IPAddress version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.SecretEnvSource: - description: |- - SecretEnvSource selects a Secret to populate the environment variables with. - - The contents of the target Secret's Data field will represent the key-value pairs as environment variables. - example: - name: name - optional: true - properties: - name: - description: "Name of the referent. This field is effectively required,\ - \ but due to backwards compatibility is allowed to be empty. Instances\ - \ of this type with an empty value here are almost certainly wrong. More\ - \ info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" - type: string - optional: - description: Specify whether the Secret must be defined - type: boolean - type: object - v1.SecretKeySelector: - description: SecretKeySelector selects a key of a Secret. - example: - name: name - optional: true - key: key - properties: - key: - description: The key of the secret to select from. Must be a valid secret - key. - type: string - name: - description: "Name of the referent. This field is effectively required,\ - \ but due to backwards compatibility is allowed to be empty. Instances\ - \ of this type with an empty value here are almost certainly wrong. More\ - \ info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" - type: string - optional: - description: Specify whether the Secret or its key must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - v1.SecretList: - description: SecretList is a list of Secret. + v1.IPAddressList: + description: IPAddressList contains a list of IPAddress. example: metadata: remainingItemCount: 1 @@ -229673,8 +244382,7 @@ components: apiVersion: apiVersion kind: kind items: - - immutable: true - metadata: + - metadata: generation: 6 finalizers: - finalizers @@ -229721,14 +244429,14 @@ components: name: name namespace: namespace apiVersion: apiVersion - data: - key: data kind: kind - type: type - stringData: - key: stringData - - immutable: true - metadata: + spec: + parentRef: + resource: resource + name: name + namespace: namespace + group: group + - metadata: generation: 6 finalizers: - finalizers @@ -229775,12 +244483,13 @@ components: name: name namespace: namespace apiVersion: apiVersion - data: - key: data kind: kind - type: type - stringData: - key: stringData + spec: + parentRef: + resource: resource + name: name + namespace: namespace + group: group properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -229788,9 +244497,9 @@ components: \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string items: - description: "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret" + description: items is the list of IPAddresses. items: - $ref: '#/components/schemas/v1.Secret' + $ref: '#/components/schemas/v1.IPAddress' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -229803,213 +244512,56 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: "" - kind: SecretList + - group: networking.k8s.io + kind: IPAddressList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.SecretProjection: - description: |- - Adapts a secret into a projected volume. - - The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode. + v1.IPAddressSpec: + description: IPAddressSpec describe the attributes in an IP Address. example: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key + parentRef: + resource: resource + name: name + namespace: namespace + group: group properties: - items: - description: "items if unspecified, each key-value pair in the Data field\ - \ of the referenced Secret will be projected into the volume as a file\ - \ whose name is the key and content is the value. If specified, the listed\ - \ keys will be projected into the specified paths, and unlisted keys will\ - \ not be present. If a key is specified which is not present in the Secret,\ - \ the volume setup will error unless it is marked optional. Paths must\ - \ be relative and may not contain the '..' path or start with '..'." - items: - $ref: '#/components/schemas/v1.KeyToPath' - type: array - x-kubernetes-list-type: atomic - name: - description: "Name of the referent. This field is effectively required,\ - \ but due to backwards compatibility is allowed to be empty. Instances\ - \ of this type with an empty value here are almost certainly wrong. More\ - \ info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" - type: string - optional: - description: optional field specify whether the Secret or its key must be - defined - type: boolean + parentRef: + $ref: '#/components/schemas/v1.ParentReference' + required: + - parentRef type: object - v1.SecretReference: - description: SecretReference represents a Secret Reference. It has enough information - to retrieve secret in any namespace + v1.IPBlock: + description: "IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"\ + 2001:db8::/64\") that is allowed to the pods matched by a NetworkPolicySpec's\ + \ podSelector. The except entry describes CIDRs that should not be included\ + \ within this rule." example: - name: name - namespace: namespace + cidr: cidr + except: + - except + - except properties: - name: - description: name is unique within a namespace to reference a secret resource. - type: string - namespace: - description: namespace defines the space within which the secret name must - be unique. + cidr: + description: cidr is a string representing the IPBlock Valid examples are + "192.168.1.0/24" or "2001:db8::/64" type: string - type: object - x-kubernetes-map-type: atomic - v1.SecretVolumeSource: - description: |- - Adapts a Secret into a volume. - - The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling. - example: - secretName: secretName - defaultMode: 3 - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - properties: - defaultMode: - description: "defaultMode is Optional: mode bits used to set permissions\ - \ on created files by default. Must be an octal value between 0000 and\ - \ 0777 or a decimal value between 0 and 511. YAML accepts both octal and\ - \ decimal values, JSON requires decimal values for mode bits. Defaults\ - \ to 0644. Directories within the path are not affected by this setting.\ - \ This might be in conflict with other options that affect the file mode,\ - \ like fsGroup, and the result can be other mode bits set." - format: int32 - type: integer - items: - description: "items If unspecified, each key-value pair in the Data field\ - \ of the referenced Secret will be projected into the volume as a file\ - \ whose name is the key and content is the value. If specified, the listed\ - \ keys will be projected into the specified paths, and unlisted keys will\ - \ not be present. If a key is specified which is not present in the Secret,\ - \ the volume setup will error unless it is marked optional. Paths must\ - \ be relative and may not contain the '..' path or start with '..'." + except: + description: except is a slice of CIDRs that should not be included within + an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except + values will be rejected if they are outside the cidr range items: - $ref: '#/components/schemas/v1.KeyToPath' + type: string type: array x-kubernetes-list-type: atomic - optional: - description: optional field specify whether the Secret or its keys must - be defined - type: boolean - secretName: - description: "secretName is the name of the secret in the pod's namespace\ - \ to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret" - type: string - type: object - v1.SecurityContext: - description: "SecurityContext holds security configuration that will be applied\ - \ to a container. Some fields are present in both SecurityContext and PodSecurityContext.\ - \ When both are set, the values in SecurityContext take precedence." - example: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - properties: - allowPrivilegeEscalation: - description: "AllowPrivilegeEscalation controls whether a process can gain\ - \ more privileges than its parent process. This bool directly controls\ - \ if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation\ - \ is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN\ - \ Note that this field cannot be set when spec.os.name is windows." - type: boolean - appArmorProfile: - $ref: '#/components/schemas/v1.AppArmorProfile' - capabilities: - $ref: '#/components/schemas/v1.Capabilities' - privileged: - description: Run container in privileged mode. Processes in privileged containers - are essentially equivalent to root on the host. Defaults to false. Note - that this field cannot be set when spec.os.name is windows. - type: boolean - procMount: - description: procMount denotes the type of proc mount to use for the containers. - The default value is Default which uses the container runtime defaults - for readonly paths and masked paths. This requires the ProcMountType feature - flag to be enabled. Note that this field cannot be set when spec.os.name - is windows. - type: string - readOnlyRootFilesystem: - description: Whether this container has a read-only root filesystem. Default - is false. Note that this field cannot be set when spec.os.name is windows. - type: boolean - runAsGroup: - description: "The GID to run the entrypoint of the container process. Uses\ - \ runtime default if unset. May also be set in PodSecurityContext. If\ - \ set in both SecurityContext and PodSecurityContext, the value specified\ - \ in SecurityContext takes precedence. Note that this field cannot be\ - \ set when spec.os.name is windows." - format: int64 - type: integer - runAsNonRoot: - description: "Indicates that the container must run as a non-root user.\ - \ If true, the Kubelet will validate the image at runtime to ensure that\ - \ it does not run as UID 0 (root) and fail to start the container if it\ - \ does. If unset or false, no such validation will be performed. May also\ - \ be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext,\ - \ the value specified in SecurityContext takes precedence." - type: boolean - runAsUser: - description: "The UID to run the entrypoint of the container process. Defaults\ - \ to user specified in image metadata if unspecified. May also be set\ - \ in PodSecurityContext. If set in both SecurityContext and PodSecurityContext,\ - \ the value specified in SecurityContext takes precedence. Note that this\ - \ field cannot be set when spec.os.name is windows." - format: int64 - type: integer - seLinuxOptions: - $ref: '#/components/schemas/v1.SELinuxOptions' - seccompProfile: - $ref: '#/components/schemas/v1.SeccompProfile' - windowsOptions: - $ref: '#/components/schemas/v1.WindowsSecurityContextOptions' + required: + - cidr type: object - v1.Service: - description: "Service is a named abstraction of software service (for example,\ - \ mysql) consisting of local port (for example 3306) that the proxy listens\ - \ on, and the selector that determines which pods will answer requests sent\ - \ through the proxy." + v1.Ingress: + description: "Ingress is a collection of rules that allow inbound connections\ + \ to reach the endpoints defined by a backend. An Ingress can be configured\ + \ to give services externally-reachable urls, load balance traffic, terminate\ + \ SSL, offer name based virtual hosting etc." example: metadata: generation: 6 @@ -230060,85 +244612,102 @@ components: apiVersion: apiVersion kind: kind spec: - clusterIPs: - - clusterIPs - - clusterIPs - healthCheckNodePort: 0 - ipFamilyPolicy: ipFamilyPolicy - externalIPs: - - externalIPs - - externalIPs - sessionAffinity: sessionAffinity - trafficDistribution: trafficDistribution - allocateLoadBalancerNodePorts: true - ports: - - protocol: protocol - port: 1 - appProtocol: appProtocol - name: name - nodePort: 6 - targetPort: targetPort - - protocol: protocol - port: 1 - appProtocol: appProtocol - name: name - nodePort: 6 - targetPort: targetPort - type: type - loadBalancerClass: loadBalancerClass - sessionAffinityConfig: - clientIP: - timeoutSeconds: 5 - ipFamilies: - - ipFamilies - - ipFamilies - loadBalancerIP: loadBalancerIP - externalName: externalName - loadBalancerSourceRanges: - - loadBalancerSourceRanges - - loadBalancerSourceRanges - externalTrafficPolicy: externalTrafficPolicy - selector: - key: selector - publishNotReadyAddresses: true - internalTrafficPolicy: internalTrafficPolicy - clusterIP: clusterIP + defaultBackend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + ingressClassName: ingressClassName + rules: + - host: host + http: + paths: + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - host: host + http: + paths: + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + tls: + - secretName: secretName + hosts: + - hosts + - hosts + - secretName: secretName + hosts: + - hosts + - hosts status: loadBalancer: ingress: - - ipMode: ipMode - hostname: hostname + - hostname: hostname ip: ip ports: - protocol: protocol - port: 2 + port: 6 error: error - protocol: protocol - port: 2 + port: 6 error: error - - ipMode: ipMode - hostname: hostname + - hostname: hostname ip: ip ports: - protocol: protocol - port: 2 + port: 6 error: error - protocol: protocol - port: 2 + port: 6 error: error - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -230153,20 +244722,42 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1.ServiceSpec' + $ref: '#/components/schemas/v1.IngressSpec' status: - $ref: '#/components/schemas/v1.ServiceStatus' + $ref: '#/components/schemas/v1.IngressStatus' type: object x-kubernetes-group-version-kind: - - group: "" - kind: Service + - group: networking.k8s.io + kind: Ingress version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.ServiceAccount: - description: "ServiceAccount binds together: * a name, understood by users,\ - \ and perhaps by peripheral systems, for an identity * a principal that can\ - \ be authenticated and authorized * a set of secrets" + v1.IngressBackend: + description: IngressBackend describes all endpoints for a given service and + port. + example: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + properties: + resource: + $ref: '#/components/schemas/v1.TypedLocalObjectReference' + service: + $ref: '#/components/schemas/v1.IngressServiceBackend' + type: object + v1.IngressClass: + description: "IngressClass represents the class of the Ingress, referenced by\ + \ the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation\ + \ can be used to indicate that an IngressClass should be considered default.\ + \ When a single IngressClass resource has this annotation set to true, new\ + \ Ingress resources without a class specified will be assigned this default\ + \ class." example: metadata: generation: 6 @@ -230215,47 +244806,21 @@ components: name: name namespace: namespace apiVersion: apiVersion - automountServiceAccountToken: true kind: kind - imagePullSecrets: - - name: name - - name: name - secrets: - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace + spec: + controller: controller + parameters: + apiGroup: apiGroup + kind: kind + scope: scope + name: name + namespace: namespace properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ \ of an object. Servers should convert recognized schemas to the latest\ \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" - type: string - automountServiceAccountToken: - description: AutomountServiceAccountToken indicates whether pods running - as this service account should have an API token automatically mounted. - Can be overridden at the pod level. - type: boolean - imagePullSecrets: - description: "ImagePullSecrets is a list of references to secrets in the\ - \ same namespace to use for pulling any images in pods that reference\ - \ this ServiceAccount. ImagePullSecrets are distinct from Secrets because\ - \ Secrets can be mounted in the pod, but ImagePullSecrets are only accessed\ - \ by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod" - items: - $ref: '#/components/schemas/v1.LocalObjectReference' - type: array - x-kubernetes-list-type: atomic + type: string kind: description: "Kind is a string value representing the REST resource this\ \ object represents. Servers may infer this from the endpoint the client\ @@ -230263,34 +244828,17 @@ components: type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' - secrets: - description: "Secrets is a list of the secrets in the same namespace that\ - \ pods running using this ServiceAccount are allowed to use. Pods are\ - \ only limited to this list if this service account has a \"kubernetes.io/enforce-mountable-secrets\"\ - \ annotation set to \"true\". The \"kubernetes.io/enforce-mountable-secrets\"\ - \ annotation is deprecated since v1.32. Prefer separate namespaces to\ - \ isolate access to mounted secrets. This field should not be used to\ - \ find auto-generated service account token secrets for use outside of\ - \ pods. Instead, tokens can be requested directly using the TokenRequest\ - \ API, or service account token secrets can be manually created. More\ - \ info: https://kubernetes.io/docs/concepts/configuration/secret" - items: - $ref: '#/components/schemas/v1.ObjectReference' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name + spec: + $ref: '#/components/schemas/v1.IngressClassSpec' type: object x-kubernetes-group-version-kind: - - group: "" - kind: ServiceAccount + - group: networking.k8s.io + kind: IngressClass version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.ServiceAccountList: - description: ServiceAccountList is a list of ServiceAccount objects + v1.IngressClassList: + description: IngressClassList is a collection of IngressClasses. example: metadata: remainingItemCount: 1 @@ -230347,26 +244895,15 @@ components: name: name namespace: namespace apiVersion: apiVersion - automountServiceAccountToken: true kind: kind - imagePullSecrets: - - name: name - - name: name - secrets: - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace + spec: + controller: controller + parameters: + apiGroup: apiGroup + kind: kind + scope: scope + name: name + namespace: namespace - metadata: generation: 6 finalizers: @@ -230414,26 +244951,15 @@ components: name: name namespace: namespace apiVersion: apiVersion - automountServiceAccountToken: true kind: kind - imagePullSecrets: - - name: name - - name: name - secrets: - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace + spec: + controller: controller + parameters: + apiGroup: apiGroup + kind: kind + scope: scope + name: name + namespace: namespace properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -230441,9 +244967,9 @@ components: \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string items: - description: "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/" + description: items is the list of IngressClasses. items: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: '#/components/schemas/v1.IngressClass' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -230456,45 +244982,69 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: "" - kind: ServiceAccountList + - group: networking.k8s.io + kind: IngressClassList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.ServiceAccountTokenProjection: - description: ServiceAccountTokenProjection represents a projected service account - token volume. This projection can be used to insert a service account token - into the pods runtime filesystem for use against APIs (Kubernetes API Server - or otherwise). + v1.IngressClassParametersReference: + description: IngressClassParametersReference identifies an API object. This + can be used to specify a cluster or namespace-scoped resource. example: - path: path - audience: audience - expirationSeconds: 6 + apiGroup: apiGroup + kind: kind + scope: scope + name: name + namespace: namespace properties: - audience: - description: "audience is the intended audience of the token. A recipient\ - \ of a token must identify itself with an identifier specified in the\ - \ audience of the token, and otherwise should reject the token. The audience\ - \ defaults to the identifier of the apiserver." + apiGroup: + description: "apiGroup is the group for the resource being referenced. If\ + \ APIGroup is not specified, the specified Kind must be in the core API\ + \ group. For any other third-party types, APIGroup is required." type: string - expirationSeconds: - description: "expirationSeconds is the requested duration of validity of\ - \ the service account token. As the token approaches expiration, the kubelet\ - \ volume plugin will proactively rotate the service account token. The\ - \ kubelet will start trying to rotate the token if the token is older\ - \ than 80 percent of its time to live or if the token is older than 24\ - \ hours.Defaults to 1 hour and must be at least 10 minutes." - format: int64 - type: integer - path: - description: path is the path relative to the mount point of the file to - project the token into. + kind: + description: kind is the type of resource being referenced. + type: string + name: + description: name is the name of resource being referenced. + type: string + namespace: + description: namespace is the namespace of the resource being referenced. + This field is required when scope is set to "Namespace" and must be unset + when scope is set to "Cluster". + type: string + scope: + description: scope represents if this refers to a cluster or namespace scoped + resource. This may be set to "Cluster" (default) or "Namespace". type: string required: - - path + - kind + - name type: object - v1.ServiceList: - description: ServiceList holds a list of services. + v1.IngressClassSpec: + description: IngressClassSpec provides information about the class of an Ingress. + example: + controller: controller + parameters: + apiGroup: apiGroup + kind: kind + scope: scope + name: name + namespace: namespace + properties: + controller: + description: "controller refers to the name of the controller that should\ + \ handle this class. This allows for different \"flavors\" that are controlled\ + \ by the same controller. For example, you may have different parameters\ + \ for the same implementing controller. This should be specified as a\ + \ domain-prefixed path no more than 250 characters in length, e.g. \"\ + acme.io/ingress-controller\". This field is immutable." + type: string + parameters: + $ref: '#/components/schemas/v1.IngressClassParametersReference' + type: object + v1.IngressList: + description: IngressList is a collection of Ingress. example: metadata: remainingItemCount: 1 @@ -230553,85 +245103,102 @@ components: apiVersion: apiVersion kind: kind spec: - clusterIPs: - - clusterIPs - - clusterIPs - healthCheckNodePort: 0 - ipFamilyPolicy: ipFamilyPolicy - externalIPs: - - externalIPs - - externalIPs - sessionAffinity: sessionAffinity - trafficDistribution: trafficDistribution - allocateLoadBalancerNodePorts: true - ports: - - protocol: protocol - port: 1 - appProtocol: appProtocol - name: name - nodePort: 6 - targetPort: targetPort - - protocol: protocol - port: 1 - appProtocol: appProtocol - name: name - nodePort: 6 - targetPort: targetPort - type: type - loadBalancerClass: loadBalancerClass - sessionAffinityConfig: - clientIP: - timeoutSeconds: 5 - ipFamilies: - - ipFamilies - - ipFamilies - loadBalancerIP: loadBalancerIP - externalName: externalName - loadBalancerSourceRanges: - - loadBalancerSourceRanges - - loadBalancerSourceRanges - externalTrafficPolicy: externalTrafficPolicy - selector: - key: selector - publishNotReadyAddresses: true - internalTrafficPolicy: internalTrafficPolicy - clusterIP: clusterIP + defaultBackend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + ingressClassName: ingressClassName + rules: + - host: host + http: + paths: + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - host: host + http: + paths: + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + tls: + - secretName: secretName + hosts: + - hosts + - hosts + - secretName: secretName + hosts: + - hosts + - hosts status: loadBalancer: ingress: - - ipMode: ipMode - hostname: hostname + - hostname: hostname ip: ip ports: - protocol: protocol - port: 2 + port: 6 error: error - protocol: protocol - port: 2 + port: 6 error: error - - ipMode: ipMode - hostname: hostname + - hostname: hostname ip: ip ports: - protocol: protocol - port: 2 + port: 6 error: error - protocol: protocol - port: 2 + port: 6 error: error - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - metadata: generation: 6 finalizers: @@ -230681,963 +245248,511 @@ components: apiVersion: apiVersion kind: kind spec: - clusterIPs: - - clusterIPs - - clusterIPs - healthCheckNodePort: 0 - ipFamilyPolicy: ipFamilyPolicy - externalIPs: - - externalIPs - - externalIPs - sessionAffinity: sessionAffinity - trafficDistribution: trafficDistribution - allocateLoadBalancerNodePorts: true - ports: - - protocol: protocol - port: 1 - appProtocol: appProtocol - name: name - nodePort: 6 - targetPort: targetPort - - protocol: protocol - port: 1 - appProtocol: appProtocol - name: name - nodePort: 6 - targetPort: targetPort - type: type - loadBalancerClass: loadBalancerClass - sessionAffinityConfig: - clientIP: - timeoutSeconds: 5 - ipFamilies: - - ipFamilies - - ipFamilies - loadBalancerIP: loadBalancerIP - externalName: externalName - loadBalancerSourceRanges: - - loadBalancerSourceRanges - - loadBalancerSourceRanges - externalTrafficPolicy: externalTrafficPolicy - selector: - key: selector - publishNotReadyAddresses: true - internalTrafficPolicy: internalTrafficPolicy - clusterIP: clusterIP + defaultBackend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + ingressClassName: ingressClassName + rules: + - host: host + http: + paths: + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - host: host + http: + paths: + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + tls: + - secretName: secretName + hosts: + - hosts + - hosts + - secretName: secretName + hosts: + - hosts + - hosts status: loadBalancer: ingress: - - ipMode: ipMode - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 2 - error: error - - protocol: protocol - port: 2 - error: error - - ipMode: ipMode - hostname: hostname + - hostname: hostname ip: ip ports: - protocol: protocol - port: 2 + port: 6 error: error - protocol: protocol - port: 2 + port: 6 + error: error + - hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 6 + error: error + - protocol: protocol + port: 6 error: error - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" - type: string - items: - description: List of services - items: - $ref: '#/components/schemas/v1.Service' - type: array - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: "" - kind: ServiceList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.ServicePort: - description: ServicePort contains information on service's port. - example: - protocol: protocol - port: 1 - appProtocol: appProtocol - name: name - nodePort: 6 - targetPort: targetPort - properties: - appProtocol: - description: |- - The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: - - * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). - - * Kubernetes-defined prefixed names: - * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- - * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 - * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 - - * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. - type: string - name: - description: "The name of this port within the service. This must be a DNS_LABEL.\ - \ All ports within a ServiceSpec must have unique names. When considering\ - \ the endpoints for a Service, this must match the 'name' field in the\ - \ EndpointPort. Optional if only one ServicePort is defined on this service." - type: string - nodePort: - description: "The port on each node on which this service is exposed when\ - \ type is NodePort or LoadBalancer. Usually assigned by the system. If\ - \ a value is specified, in-range, and not in use it will be used, otherwise\ - \ the operation will fail. If not specified, a port will be allocated\ - \ if this Service requires one. If this field is specified when creating\ - \ a Service which does not need it, creation will fail. This field will\ - \ be wiped when updating a Service to no longer need it (e.g. changing\ - \ type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport" - format: int32 - type: integer - port: - description: The port that will be exposed by this service. - format: int32 - type: integer - protocol: - description: "The IP protocol for this port. Supports \"TCP\", \"UDP\",\ - \ and \"SCTP\". Default is TCP." - type: string - targetPort: - description: "IntOrString is a type that can hold an int32 or a string.\ - \ When used in JSON or YAML marshalling and unmarshalling, it produces\ - \ or consumes the inner type. This allows you to have, for example, a\ - \ JSON field that can accept a name or number." - format: int-or-string - type: string - required: - - port - type: object - v1.ServiceSpec: - description: ServiceSpec describes the attributes that a user creates on a service. - example: - clusterIPs: - - clusterIPs - - clusterIPs - healthCheckNodePort: 0 - ipFamilyPolicy: ipFamilyPolicy - externalIPs: - - externalIPs - - externalIPs - sessionAffinity: sessionAffinity - trafficDistribution: trafficDistribution - allocateLoadBalancerNodePorts: true - ports: - - protocol: protocol - port: 1 - appProtocol: appProtocol - name: name - nodePort: 6 - targetPort: targetPort - - protocol: protocol - port: 1 - appProtocol: appProtocol - name: name - nodePort: 6 - targetPort: targetPort - type: type - loadBalancerClass: loadBalancerClass - sessionAffinityConfig: - clientIP: - timeoutSeconds: 5 - ipFamilies: - - ipFamilies - - ipFamilies - loadBalancerIP: loadBalancerIP - externalName: externalName - loadBalancerSourceRanges: - - loadBalancerSourceRanges - - loadBalancerSourceRanges - externalTrafficPolicy: externalTrafficPolicy - selector: - key: selector - publishNotReadyAddresses: true - internalTrafficPolicy: internalTrafficPolicy - clusterIP: clusterIP - properties: - allocateLoadBalancerNodePorts: - description: "allocateLoadBalancerNodePorts defines if NodePorts will be\ - \ automatically allocated for services with type LoadBalancer. Default\ - \ is \"true\". It may be set to \"false\" if the cluster load-balancer\ - \ does not rely on NodePorts. If the caller requests specific NodePorts\ - \ (by specifying a value), those requests will be respected, regardless\ - \ of this field. This field may only be set for services with type LoadBalancer\ - \ and will be cleared if the type is changed to any other type." - type: boolean - clusterIP: - description: "clusterIP is the IP address of the service and is usually\ - \ assigned randomly. If an address is specified manually, is in-range\ - \ (as per system configuration), and is not in use, it will be allocated\ - \ to the service; otherwise creation of the service will fail. This field\ - \ may not be changed through updates unless the type field is also being\ - \ changed to ExternalName (which requires this field to be blank) or the\ - \ type field is being changed from ExternalName (in which case this field\ - \ may optionally be specified, as describe above). Valid values are \"\ - None\", empty string (\"\"), or a valid IP address. Setting this to \"\ - None\" makes a \"headless service\" (no virtual IP), which is useful when\ - \ direct endpoint connections are preferred and proxying is not required.\ - \ Only applies to types ClusterIP, NodePort, and LoadBalancer. If this\ - \ field is specified when creating a Service of type ExternalName, creation\ - \ will fail. This field will be wiped when updating a Service to type\ - \ ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies" - type: string - clusterIPs: - description: |- - ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are "None", empty string (""), or a valid IP address. Setting this to "None" makes a "headless service" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value. - - This field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - items: - type: string - type: array - x-kubernetes-list-type: atomic - externalIPs: - description: externalIPs is a list of IP addresses for which nodes in the - cluster will also accept traffic for this service. These IPs are not - managed by Kubernetes. The user is responsible for ensuring that traffic - arrives at a node with this IP. A common example is external load-balancers - that are not part of the Kubernetes system. - items: - type: string - type: array - x-kubernetes-list-type: atomic - externalName: - description: externalName is the external reference that discovery mechanisms - will return as an alias for this service (e.g. a DNS CNAME record). No - proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) - and requires `type` to be "ExternalName". - type: string - externalTrafficPolicy: - description: "externalTrafficPolicy describes how nodes distribute service\ - \ traffic they receive on one of the Service's \"externally-facing\" addresses\ - \ (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\"\ - , the proxy will configure the service in a way that assumes that external\ - \ load balancers will take care of balancing the service traffic between\ - \ nodes, and so each node will deliver traffic only to the node-local\ - \ endpoints of the service, without masquerading the client source IP.\ - \ (Traffic mistakenly sent to a node with no endpoints will be dropped.)\ - \ The default value, \"Cluster\", uses the standard behavior of routing\ - \ to all endpoints evenly (possibly modified by topology and other features).\ - \ Note that traffic sent to an External IP or LoadBalancer IP from within\ - \ the cluster will always get \"Cluster\" semantics, but clients sending\ - \ to a NodePort from within the cluster may need to take traffic policy\ - \ into account when picking a node." - type: string - healthCheckNodePort: - description: "healthCheckNodePort specifies the healthcheck nodePort for\ - \ the service. This only applies when type is set to LoadBalancer and\ - \ externalTrafficPolicy is set to Local. If a value is specified, is in-range,\ - \ and is not in use, it will be used. If not specified, a value will\ - \ be automatically allocated. External systems (e.g. load-balancers)\ - \ can use this port to determine if a given node holds endpoints for this\ - \ service or not. If this field is specified when creating a Service\ - \ which does not need it, creation will fail. This field will be wiped\ - \ when updating a Service to no longer need it (e.g. changing type). This\ - \ field cannot be updated once set." - format: int32 - type: integer - internalTrafficPolicy: - description: "InternalTrafficPolicy describes how nodes distribute service\ - \ traffic they receive on the ClusterIP. If set to \"Local\", the proxy\ - \ will assume that pods only want to talk to endpoints of the service\ - \ on the same node as the pod, dropping the traffic if there are no local\ - \ endpoints. The default value, \"Cluster\", uses the standard behavior\ - \ of routing to all endpoints evenly (possibly modified by topology and\ - \ other features)." - type: string - ipFamilies: - description: |- - IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are "IPv4" and "IPv6". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to "headless" services. This field will be wiped when updating a Service to type ExternalName. - - This field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. - items: - type: string - type: array - x-kubernetes-list-type: atomic - ipFamilyPolicy: - description: "IPFamilyPolicy represents the dual-stack-ness requested or\ - \ required by this Service. If there is no value provided, then this field\ - \ will be set to SingleStack. Services can be \"SingleStack\" (a single\ - \ IP family), \"PreferDualStack\" (two IP families on dual-stack configured\ - \ clusters or a single IP family on single-stack clusters), or \"RequireDualStack\"\ - \ (two IP families on dual-stack configured clusters, otherwise fail).\ - \ The ipFamilies and clusterIPs fields depend on the value of this field.\ - \ This field will be wiped when updating a service to type ExternalName." - type: string - loadBalancerClass: - description: "loadBalancerClass is the class of the load balancer implementation\ - \ this Service belongs to. If specified, the value of this field must\ - \ be a label-style identifier, with an optional prefix, e.g. \"internal-vip\"\ - \ or \"example.com/internal-vip\". Unprefixed names are reserved for end-users.\ - \ This field can only be set when the Service type is 'LoadBalancer'.\ - \ If not set, the default load balancer implementation is used, today\ - \ this is typically done through the cloud provider integration, but should\ - \ apply for any default implementation. If set, it is assumed that a load\ - \ balancer implementation is watching for Services with a matching class.\ - \ Any default load balancer implementation (e.g. cloud providers) should\ - \ ignore Services that set this field. This field can only be set when\ - \ creating or updating a Service to type 'LoadBalancer'. Once set, it\ - \ can not be changed. This field will be wiped when a service is updated\ - \ to a non 'LoadBalancer' type." - type: string - loadBalancerIP: - description: "Only applies to Service Type: LoadBalancer. This feature depends\ - \ on whether the underlying cloud-provider supports specifying the loadBalancerIP\ - \ when a load balancer is created. This field will be ignored if the cloud-provider\ - \ does not support the feature. Deprecated: This field was under-specified\ - \ and its meaning varies across implementations. Using it is non-portable\ - \ and it may not support dual-stack. Users are encouraged to use implementation-specific\ - \ annotations when available." - type: string - loadBalancerSourceRanges: - description: "If specified and supported by the platform, this will restrict\ - \ traffic through the cloud-provider load-balancer will be restricted\ - \ to the specified client IPs. This field will be ignored if the cloud-provider\ - \ does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/" - items: - type: string - type: array - x-kubernetes-list-type: atomic - ports: - description: "The list of ports that are exposed by this service. More info:\ - \ https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies" - items: - $ref: '#/components/schemas/v1.ServicePort' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - port - - protocol - x-kubernetes-patch-merge-key: port - publishNotReadyAddresses: - description: publishNotReadyAddresses indicates that any agent which deals - with endpoints for this Service should disregard any indications of ready/not-ready. - The primary use case for setting this field is for a StatefulSet's Headless - Service to propagate SRV DNS records for its Pods for the purpose of peer - discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice - resources for Services interpret this to mean that all endpoints are considered - "ready" even if the Pods themselves are not. Agents which consume only - Kubernetes generated endpoints through the Endpoints or EndpointSlice - resources can safely assume this behavior. - type: boolean - selector: - additionalProperties: - type: string - description: "Route service traffic to pods with label keys and values matching\ - \ this selector. If empty or not present, the service is assumed to have\ - \ an external process managing its endpoints, which Kubernetes will not\ - \ modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.\ - \ Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/" - type: object - x-kubernetes-map-type: atomic - sessionAffinity: - description: "Supports \"ClientIP\" and \"None\". Used to maintain session\ - \ affinity. Enable client IP based session affinity. Must be ClientIP\ - \ or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies" - type: string - sessionAffinityConfig: - $ref: '#/components/schemas/v1.SessionAffinityConfig' - trafficDistribution: - description: "TrafficDistribution offers a way to express preferences for\ - \ how traffic is distributed to Service endpoints. Implementations can\ - \ use this field as a hint, but are not required to guarantee strict adherence.\ - \ If the field is not set, the implementation will apply its default routing\ - \ strategy. If set to \"PreferClose\", implementations should prioritize\ - \ endpoints that are topologically close (e.g., same zone). This is a\ - \ beta field and requires enabling ServiceTrafficDistribution feature." - type: string - type: - description: "type determines how the Service is exposed. Defaults to ClusterIP.\ - \ Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer.\ - \ \"ClusterIP\" allocates a cluster-internal IP address for load-balancing\ - \ to endpoints. Endpoints are determined by the selector or if that is\ - \ not specified, by manual construction of an Endpoints object or EndpointSlice\ - \ objects. If clusterIP is \"None\", no virtual IP is allocated and the\ - \ endpoints are published as a set of endpoints rather than a virtual\ - \ IP. \"NodePort\" builds on ClusterIP and allocates a port on every node\ - \ which routes to the same endpoints as the clusterIP. \"LoadBalancer\"\ - \ builds on NodePort and creates an external load-balancer (if supported\ - \ in the current cloud) which routes to the same endpoints as the clusterIP.\ - \ \"ExternalName\" aliases this service to the specified externalName.\ - \ Several other fields do not apply to ExternalName services. More info:\ - \ https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types" - type: string - type: object - v1.ServiceStatus: - description: ServiceStatus represents the current status of a service. - example: - loadBalancer: - ingress: - - ipMode: ipMode - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 2 - error: error - - protocol: protocol - port: 2 - error: error - - ipMode: ipMode - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 2 - error: error - - protocol: protocol - port: 2 - error: error - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - properties: - conditions: - description: Current service state - items: - $ref: '#/components/schemas/v1.Condition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - x-kubernetes-patch-merge-key: type - loadBalancer: - $ref: '#/components/schemas/v1.LoadBalancerStatus' - type: object - v1.SessionAffinityConfig: - description: SessionAffinityConfig represents the configurations of session - affinity. - example: - clientIP: - timeoutSeconds: 5 - properties: - clientIP: - $ref: '#/components/schemas/v1.ClientIPConfig' - type: object - v1.SleepAction: - description: SleepAction describes a "sleep" action. - example: - seconds: 5 - properties: - seconds: - description: Seconds is the number of seconds to sleep. - format: int64 - type: integer - required: - - seconds - type: object - v1.StorageOSPersistentVolumeSource: - description: Represents a StorageOS persistent volume resource. - example: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - readOnly: true - fsType: fsType - properties: - fsType: - description: "fsType is the filesystem type to mount. Must be a filesystem\ - \ type supported by the host operating system. Ex. \"ext4\", \"xfs\",\ - \ \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified." - type: string - readOnly: - description: readOnly defaults to false (read/write). ReadOnly here will - force the ReadOnly setting in VolumeMounts. - type: boolean - secretRef: - $ref: '#/components/schemas/v1.ObjectReference' - volumeName: - description: volumeName is the human-readable name of the StorageOS volume. Volume - names are only unique within a namespace. - type: string - volumeNamespace: - description: volumeNamespace specifies the scope of the volume within StorageOS. If - no namespace is specified then the Pod's namespace will be used. This - allows the Kubernetes name scoping to be mirrored within StorageOS for - tighter integration. Set VolumeName to any name to override the default - behaviour. Set to "default" if you are not using namespaces within StorageOS. - Namespaces that do not pre-exist within StorageOS will be created. - type: string - type: object - v1.StorageOSVolumeSource: - description: Represents a StorageOS persistent volume resource. - example: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - properties: - fsType: - description: "fsType is the filesystem type to mount. Must be a filesystem\ - \ type supported by the host operating system. Ex. \"ext4\", \"xfs\",\ - \ \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified." - type: string - readOnly: - description: readOnly defaults to false (read/write). ReadOnly here will - force the ReadOnly setting in VolumeMounts. - type: boolean - secretRef: - $ref: '#/components/schemas/v1.LocalObjectReference' - volumeName: - description: volumeName is the human-readable name of the StorageOS volume. Volume - names are only unique within a namespace. - type: string - volumeNamespace: - description: volumeNamespace specifies the scope of the volume within StorageOS. If - no namespace is specified then the Pod's namespace will be used. This - allows the Kubernetes name scoping to be mirrored within StorageOS for - tighter integration. Set VolumeName to any name to override the default - behaviour. Set to "default" if you are not using namespaces within StorageOS. - Namespaces that do not pre-exist within StorageOS will be created. - type: string - type: object - v1.Sysctl: - description: Sysctl defines a kernel parameter to be set - example: - name: name - value: value - properties: - name: - description: Name of a property to set - type: string - value: - description: Value of a property to set - type: string - required: - - name - - value - type: object - v1.TCPSocketAction: - description: TCPSocketAction describes an action based on opening a socket - example: - port: port - host: host - properties: - host: - description: "Optional: Host name to connect to, defaults to the pod IP." - type: string - port: - description: "IntOrString is a type that can hold an int32 or a string.\ - \ When used in JSON or YAML marshalling and unmarshalling, it produces\ - \ or consumes the inner type. This allows you to have, for example, a\ - \ JSON field that can accept a name or number." - format: int-or-string - type: string - required: - - port - type: object - v1.Taint: - description: The node this Taint is attached to has the "effect" on any pod - that does not tolerate the Taint. - example: - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - properties: - effect: - description: "Required. The effect of the taint on pods that do not tolerate\ - \ the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute." - type: string - key: - description: Required. The taint key to be applied to a node. - type: string - timeAdded: - description: TimeAdded represents the time at which the taint was added. - It is only written for NoExecute taints. - format: date-time - type: string - value: - description: The taint value corresponding to the taint key. - type: string - required: - - effect - - key - type: object - v1.Toleration: - description: "The pod this Toleration is attached to tolerates any taint that\ - \ matches the triple using the matching operator ." - example: - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator properties: - effect: - description: "Effect indicates the taint effect to match. Empty means match\ - \ all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule\ - \ and NoExecute." - type: string - key: - description: "Key is the taint key that the toleration applies to. Empty\ - \ means match all taint keys. If the key is empty, operator must be Exists;\ - \ this combination means to match all values and all keys." - type: string - operator: - description: "Operator represents a key's relationship to the value. Valid\ - \ operators are Exists and Equal. Defaults to Equal. Exists is equivalent\ - \ to wildcard for value, so that a pod can tolerate all taints of a particular\ - \ category." + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string - tolerationSeconds: - description: "TolerationSeconds represents the period of time the toleration\ - \ (which must be of effect NoExecute, otherwise this field is ignored)\ - \ tolerates the taint. By default, it is not set, which means tolerate\ - \ the taint forever (do not evict). Zero and negative values will be treated\ - \ as 0 (evict immediately) by the system." - format: int64 - type: integer - value: - description: "Value is the taint value the toleration matches to. If the\ - \ operator is Exists, the value should be empty, otherwise just a regular\ - \ string." + items: + description: items is the list of Ingress. + items: + $ref: '#/components/schemas/v1.Ingress' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items type: object - v1.TopologySelectorLabelRequirement: - description: A topology selector requirement is a selector that matches given - label. This is an alpha feature and may change in the future. + x-kubernetes-group-version-kind: + - group: networking.k8s.io + kind: IngressList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.IngressLoadBalancerIngress: + description: IngressLoadBalancerIngress represents the status of a load-balancer + ingress point. example: - values: - - values - - values - key: key + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 6 + error: error + - protocol: protocol + port: 6 + error: error properties: - key: - description: The label key that the selector applies to. + hostname: + description: hostname is set for load-balancer ingress points that are DNS + based. type: string - values: - description: An array of string values. One value must match the label to - be selected. Each entry in Values is ORed. + ip: + description: ip is set for load-balancer ingress points that are IP based. + type: string + ports: + description: ports provides information about the ports exposed by this + LoadBalancer. items: - type: string + $ref: '#/components/schemas/v1.IngressPortStatus' type: array x-kubernetes-list-type: atomic - required: - - key - - values type: object - v1.TopologySelectorTerm: - description: A topology selector term represents the result of label queries. - A null or empty topology selector term matches no objects. The requirements - of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. - This is an alpha feature and may change in the future. + v1.IngressLoadBalancerStatus: + description: IngressLoadBalancerStatus represents the status of a load-balancer. example: - matchLabelExpressions: - - values: - - values - - values - key: key - - values: - - values - - values - key: key + ingress: + - hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 6 + error: error + - protocol: protocol + port: 6 + error: error + - hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 6 + error: error + - protocol: protocol + port: 6 + error: error properties: - matchLabelExpressions: - description: A list of topology selector requirements by labels. + ingress: + description: ingress is a list containing ingress points for the load-balancer. items: - $ref: '#/components/schemas/v1.TopologySelectorLabelRequirement' + $ref: '#/components/schemas/v1.IngressLoadBalancerIngress' type: array x-kubernetes-list-type: atomic type: object - x-kubernetes-map-type: atomic - v1.TopologySpreadConstraint: - description: TopologySpreadConstraint specifies how to spread matching pods - among the given topology. + v1.IngressPortStatus: + description: IngressPortStatus represents the error condition of a service port example: - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys + protocol: protocol + port: 6 + error: error properties: - labelSelector: - $ref: '#/components/schemas/v1.LabelSelector' - matchLabelKeys: - description: |- - MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. - - This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - maxSkew: - description: "MaxSkew describes the degree to which pods may be unevenly\ - \ distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum\ - \ permitted difference between the number of matching pods in the target\ - \ topology and the global minimum. The global minimum is the minimum number\ - \ of matching pods in an eligible domain or zero if the number of eligible\ - \ domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew\ - \ is set to 1, and pods with the same labelSelector spread as 2/2/1: In\ - \ this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P\ - \ | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled\ - \ to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make\ - \ the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew\ - \ is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`,\ - \ it is used to give higher precedence to topologies that satisfy it.\ - \ It's a required field. Default value is 1 and 0 is not allowed." - format: int32 - type: integer - minDomains: + error: description: |- - MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. - - For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. + error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use + CamelCase names + - cloud provider specific error values must have names that comply with the + format foo.example.com/CamelCase. + type: string + port: + description: port is the port number of the ingress port. format: int32 type: integer - nodeAffinityPolicy: - description: |- - NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. - - If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. - type: string - nodeTaintsPolicy: - description: |- - NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. - - If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. - type: string - topologyKey: - description: "TopologyKey is the key of node labels. Nodes that have a label\ - \ with this key and identical values are considered to be in the same\ - \ topology. We consider each as a \"bucket\", and try to\ - \ put balanced number of pods into each bucket. We define a domain as\ - \ a particular instance of a topology. Also, we define an eligible domain\ - \ as a domain whose nodes meet the requirements of nodeAffinityPolicy\ - \ and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\"\ - , each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\"\ - , each zone is a domain of that topology. It's a required field." - type: string - whenUnsatisfiable: - description: |- - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, - but giving higher precedence to topologies that would help reduce the - skew. - A constraint is considered "Unsatisfiable" for an incoming pod if and only if every possible node assignment for that pod would violate "MaxSkew" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + protocol: + description: "protocol is the protocol of the ingress port. The supported\ + \ values are: \"TCP\", \"UDP\", \"SCTP\"" type: string required: - - maxSkew - - topologyKey - - whenUnsatisfiable + - port + - protocol type: object - v1.TypedLocalObjectReference: - description: TypedLocalObjectReference contains enough information to let you - locate the typed referenced object inside the same namespace. + v1.IngressRule: + description: "IngressRule represents the rules mapping the paths under a specified\ + \ host to the related backend services. Incoming requests are first evaluated\ + \ for a host match, then routed to the backend associated with the matching\ + \ IngressRuleValue." example: - apiGroup: apiGroup - kind: kind - name: name + host: host + http: + paths: + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType properties: - apiGroup: - description: "APIGroup is the group for the resource being referenced. If\ - \ APIGroup is not specified, the specified Kind must be in the core API\ - \ group. For any other third-party types, APIGroup is required." - type: string - kind: - description: Kind is the type of resource being referenced - type: string - name: - description: Name is the name of resource being referenced + host: + description: "host is the fully qualified domain name of a network host,\ + \ as defined by RFC 3986. Note the following deviations from the \"host\"\ + \ part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently\ + \ an IngressRuleValue can only apply to\n the IP in the Spec of the\ + \ parent Ingress.\n2. The `:` delimiter is not respected because ports\ + \ are not allowed.\n\t Currently the port of an Ingress is implicitly\ + \ :80 for http and\n\t :443 for https.\nBoth these may change in the\ + \ future. Incoming requests are matched against the host before the IngressRuleValue.\ + \ If the host is unspecified, the Ingress routes all traffic based on\ + \ the specified IngressRuleValue.\n\nhost can be \"precise\" which is\ + \ a domain name without the terminating dot of a network host (e.g. \"\ + foo.bar.com\") or \"wildcard\", which is a domain name prefixed with a\ + \ single wildcard label (e.g. \"*.foo.com\"). The wildcard character '*'\ + \ must appear by itself as the first DNS label and matches only a single\ + \ label. You cannot have a wildcard label by itself (e.g. Host == \"*\"\ + ). Requests will be matched against the Host field in the following way:\ + \ 1. If host is precise, the request matches this rule if the http host\ + \ header is equal to Host. 2. If host is a wildcard, then the request\ + \ matches this rule if the http host header is to equal to the suffix\ + \ (removing the first label) of the wildcard rule." type: string - required: - - kind - - name + http: + $ref: '#/components/schemas/v1.HTTPIngressRuleValue' type: object - x-kubernetes-map-type: atomic - v1.TypedObjectReference: - description: TypedObjectReference contains enough information to let you locate - the typed referenced object + v1.IngressServiceBackend: + description: IngressServiceBackend references a Kubernetes Service as a Backend. example: - apiGroup: apiGroup - kind: kind + port: + number: 0 + name: name name: name - namespace: namespace properties: - apiGroup: - description: "APIGroup is the group for the resource being referenced. If\ - \ APIGroup is not specified, the specified Kind must be in the core API\ - \ group. For any other third-party types, APIGroup is required." - type: string - kind: - description: Kind is the type of resource being referenced - type: string name: - description: Name is the name of resource being referenced - type: string - namespace: - description: "Namespace is the namespace of resource being referenced Note\ - \ that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant\ - \ object is required in the referent namespace to allow that namespace's\ - \ owner to accept the reference. See the ReferenceGrant documentation\ - \ for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource\ - \ feature gate to be enabled." + description: name is the referenced service. The service must exist in the + same namespace as the Ingress object. type: string + port: + $ref: '#/components/schemas/v1.ServiceBackendPort' required: - - kind - name type: object - v1.Volume: - description: Volume represents a named volume in a pod that may be accessed - by any container in the pod. + v1.IngressSpec: + description: IngressSpec describes the Ingress the user wishes to exist. example: - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: + defaultBackend: + resource: + apiGroup: apiGroup + kind: kind name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + service: + port: + number: 0 name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: + name: name + ingressClassName: ingressClassName + rules: + - host: host + http: + paths: + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - host: host + http: + paths: + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + tls: + - secretName: secretName + hosts: + - hosts + - hosts + - secretName: secretName + hosts: + - hosts + - hosts + properties: + defaultBackend: + $ref: '#/components/schemas/v1.IngressBackend' + ingressClassName: + description: "ingressClassName is the name of an IngressClass cluster resource.\ + \ Ingress controller implementations use this field to know whether they\ + \ should be serving this Ingress resource, by a transitive connection\ + \ (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class`\ + \ annotation (simple constant name) was never formally defined, it was\ + \ widely supported by Ingress controllers to create a direct binding between\ + \ Ingress controller and Ingress resources. Newly created Ingress resources\ + \ should prefer using the field. However, even though the annotation is\ + \ officially deprecated, for backwards compatibility reasons, ingress\ + \ controllers should still honor that annotation if present." + type: string + rules: + description: "rules is a list of host rules used to configure the Ingress.\ + \ If unspecified, or no rule matches, all traffic is sent to the default\ + \ backend." + items: + $ref: '#/components/schemas/v1.IngressRule' + type: array + x-kubernetes-list-type: atomic + tls: + description: "tls represents the TLS configuration. Currently the Ingress\ + \ only supports a single TLS port, 443. If multiple members of this list\ + \ specify different hosts, they will be multiplexed on the same port according\ + \ to the hostname specified through the SNI TLS extension, if the ingress\ + \ controller fulfilling the ingress supports SNI." + items: + $ref: '#/components/schemas/v1.IngressTLS' + type: array + x-kubernetes-list-type: atomic + type: object + v1.IngressStatus: + description: IngressStatus describe the current state of the Ingress. + example: + loadBalancer: + ingress: + - hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 6 + error: error + - protocol: protocol + port: 6 + error: error + - hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 6 + error: error + - protocol: protocol + port: 6 + error: error + properties: + loadBalancer: + $ref: '#/components/schemas/v1.IngressLoadBalancerStatus' + type: object + v1.IngressTLS: + description: IngressTLS describes the transport layer security associated with + an ingress. + example: + secretName: secretName + hosts: + - hosts + - hosts + properties: + hosts: + description: "hosts is a list of hosts included in the TLS certificate.\ + \ The values in this list must match the name/s used in the tlsSecret.\ + \ Defaults to the wildcard host setting for the loadbalancer controller\ + \ fulfilling this Ingress, if left unspecified." + items: + type: string + type: array + x-kubernetes-list-type: atomic + secretName: + description: "secretName is the name of the secret used to terminate TLS\ + \ traffic on port 443. Field is left optional to allow TLS routing based\ + \ on SNI hostname alone. If the SNI host in a listener conflicts with\ + \ the \"Host\" header field used by an IngressRule, the SNI host is used\ + \ for termination and value of the \"Host\" header is used for routing." + type: string + type: object + v1.NetworkPolicy: + description: NetworkPolicy describes what network traffic is allowed for a set + of Pods + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + ingress: + - from: + - podSelector: matchExpressions: - values: - values @@ -231651,74 +245766,12 @@ components: operator: operator matchLabels: key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 3 - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: matchExpressions: - values: - values @@ -231732,56 +245785,266 @@ components: operator: operator matchLabels: key: matchLabels - name: name - optional: true - signerName: signerName - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + - from: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + policyTypes: + - policyTypes + - policyTypes + egress: + - to: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + - to: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: matchExpressions: - values: - values @@ -231795,832 +246058,1492 @@ components: operator: operator matchLabels: key: matchLabels - name: name - optional: true - signerName: signerName - defaultMode: 5 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - image: - reference: reference - pullPolicy: pullPolicy - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 6 - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 properties: - awsElasticBlockStore: - $ref: '#/components/schemas/v1.AWSElasticBlockStoreVolumeSource' - azureDisk: - $ref: '#/components/schemas/v1.AzureDiskVolumeSource' - azureFile: - $ref: '#/components/schemas/v1.AzureFileVolumeSource' - cephfs: - $ref: '#/components/schemas/v1.CephFSVolumeSource' - cinder: - $ref: '#/components/schemas/v1.CinderVolumeSource' - configMap: - $ref: '#/components/schemas/v1.ConfigMapVolumeSource' - csi: - $ref: '#/components/schemas/v1.CSIVolumeSource' - downwardAPI: - $ref: '#/components/schemas/v1.DownwardAPIVolumeSource' - emptyDir: - $ref: '#/components/schemas/v1.EmptyDirVolumeSource' - ephemeral: - $ref: '#/components/schemas/v1.EphemeralVolumeSource' - fc: - $ref: '#/components/schemas/v1.FCVolumeSource' - flexVolume: - $ref: '#/components/schemas/v1.FlexVolumeSource' - flocker: - $ref: '#/components/schemas/v1.FlockerVolumeSource' - gcePersistentDisk: - $ref: '#/components/schemas/v1.GCEPersistentDiskVolumeSource' - gitRepo: - $ref: '#/components/schemas/v1.GitRepoVolumeSource' - glusterfs: - $ref: '#/components/schemas/v1.GlusterfsVolumeSource' - hostPath: - $ref: '#/components/schemas/v1.HostPathVolumeSource' - image: - $ref: '#/components/schemas/v1.ImageVolumeSource' - iscsi: - $ref: '#/components/schemas/v1.ISCSIVolumeSource' - name: - description: "name of the volume. Must be a DNS_LABEL and unique within\ - \ the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string - nfs: - $ref: '#/components/schemas/v1.NFSVolumeSource' - persistentVolumeClaim: - $ref: '#/components/schemas/v1.PersistentVolumeClaimVolumeSource' - photonPersistentDisk: - $ref: '#/components/schemas/v1.PhotonPersistentDiskVolumeSource' - portworxVolume: - $ref: '#/components/schemas/v1.PortworxVolumeSource' - projected: - $ref: '#/components/schemas/v1.ProjectedVolumeSource' - quobyte: - $ref: '#/components/schemas/v1.QuobyteVolumeSource' - rbd: - $ref: '#/components/schemas/v1.RBDVolumeSource' - scaleIO: - $ref: '#/components/schemas/v1.ScaleIOVolumeSource' - secret: - $ref: '#/components/schemas/v1.SecretVolumeSource' - storageos: - $ref: '#/components/schemas/v1.StorageOSVolumeSource' - vsphereVolume: - $ref: '#/components/schemas/v1.VsphereVirtualDiskVolumeSource' - required: - - name + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.NetworkPolicySpec' type: object - v1.VolumeDevice: - description: volumeDevice describes a mapping of a raw block device within a - container. + x-kubernetes-group-version-kind: + - group: networking.k8s.io + kind: NetworkPolicy + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.NetworkPolicyEgressRule: + description: NetworkPolicyEgressRule describes a particular set of traffic that + is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic + must match both ports and to. This type is beta-level in 1.8 example: - devicePath: devicePath - name: name + to: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 properties: - devicePath: - description: devicePath is the path inside of the container that the device - will be mapped to. - type: string - name: - description: name must match the name of a persistentVolumeClaim in the - pod - type: string - required: - - devicePath - - name + ports: + description: "ports is a list of destination ports for outgoing traffic.\ + \ Each item in this list is combined using a logical OR. If this field\ + \ is empty or missing, this rule matches all ports (traffic not restricted\ + \ by port). If this field is present and contains at least one item, then\ + \ this rule allows traffic only if the traffic matches at least one port\ + \ in the list." + items: + $ref: '#/components/schemas/v1.NetworkPolicyPort' + type: array + x-kubernetes-list-type: atomic + to: + description: "to is a list of destinations for outgoing traffic of pods\ + \ selected for this rule. Items in this list are combined using a logical\ + \ OR operation. If this field is empty or missing, this rule matches all\ + \ destinations (traffic not restricted by destination). If this field\ + \ is present and contains at least one item, this rule allows traffic\ + \ only if the traffic matches at least one item in the to list." + items: + $ref: '#/components/schemas/v1.NetworkPolicyPeer' + type: array + x-kubernetes-list-type: atomic type: object - v1.VolumeMount: - description: VolumeMount describes a mounting of a Volume within a container. + v1.NetworkPolicyIngressRule: + description: NetworkPolicyIngressRule describes a particular set of traffic + that is allowed to the pods matched by a NetworkPolicySpec's podSelector. + The traffic must match both ports and from. example: - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr + from: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 properties: - mountPath: - description: Path within the container at which the volume should be mounted. Must - not contain ':'. - type: string - mountPropagation: - description: "mountPropagation determines how mounts are propagated from\ - \ the host to container and the other way around. When not set, MountPropagationNone\ - \ is used. This field is beta in 1.10. When RecursiveReadOnly is set to\ - \ IfPossible or to Enabled, MountPropagation must be None or unspecified\ - \ (which defaults to None)." - type: string - name: - description: This must match the Name of a Volume. - type: string - readOnly: - description: "Mounted read-only if true, read-write otherwise (false or\ - \ unspecified). Defaults to false." - type: boolean - recursiveReadOnly: - description: |- - RecursiveReadOnly specifies whether read-only mounts should be handled recursively. - - If ReadOnly is false, this field has no meaning and must be unspecified. - - If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. - - If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). - - If this field is not specified, it is treated as an equivalent of Disabled. - type: string - subPath: - description: Path within the volume from which the container's volume should - be mounted. Defaults to "" (volume's root). - type: string - subPathExpr: - description: Expanded path within the volume from which the container's - volume should be mounted. Behaves similarly to SubPath but environment - variable references $(VAR_NAME) are expanded using the container's environment. - Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - type: string - required: - - mountPath - - name + from: + description: "from is a list of sources which should be able to access the\ + \ pods selected for this rule. Items in this list are combined using a\ + \ logical OR operation. If this field is empty or missing, this rule matches\ + \ all sources (traffic not restricted by source). If this field is present\ + \ and contains at least one item, this rule allows traffic only if the\ + \ traffic matches at least one item in the from list." + items: + $ref: '#/components/schemas/v1.NetworkPolicyPeer' + type: array + x-kubernetes-list-type: atomic + ports: + description: "ports is a list of ports which should be made accessible on\ + \ the pods selected for this rule. Each item in this list is combined\ + \ using a logical OR. If this field is empty or missing, this rule matches\ + \ all ports (traffic not restricted by port). If this field is present\ + \ and contains at least one item, then this rule allows traffic only if\ + \ the traffic matches at least one port in the list." + items: + $ref: '#/components/schemas/v1.NetworkPolicyPort' + type: array + x-kubernetes-list-type: atomic type: object - v1.VolumeMountStatus: - description: VolumeMountStatus shows status of volume mounts. + v1.NetworkPolicyList: + description: NetworkPolicyList is a list of NetworkPolicy objects. example: - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + ingress: + - from: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + - from: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + policyTypes: + - policyTypes + - policyTypes + egress: + - to: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + - to: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + ingress: + - from: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + - from: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + policyTypes: + - policyTypes + - policyTypes + egress: + - to: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + - to: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 properties: - mountPath: - description: MountPath corresponds to the original VolumeMount. - type: string - name: - description: Name corresponds to the name of the original VolumeMount. + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string - readOnly: - description: ReadOnly corresponds to the original VolumeMount. - type: boolean - recursiveReadOnly: - description: "RecursiveReadOnly must be set to Disabled, Enabled, or unspecified\ - \ (for non-readonly mounts). An IfPossible value in the original VolumeMount\ - \ must be translated to Disabled or Enabled, depending on the mount result." + items: + description: items is a list of schema objects. + items: + $ref: '#/components/schemas/v1.NetworkPolicy' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' required: - - mountPath - - name - type: object - v1.VolumeNodeAffinity: - description: VolumeNodeAffinity defines constraints that limit what nodes this - volume can be accessed from. - example: - required: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - properties: - required: - $ref: '#/components/schemas/v1.NodeSelector' + - items type: object - v1.VolumeProjection: - description: Projection that may be projected along with other supported volume - types. Exactly one of these fields must be set. + x-kubernetes-group-version-kind: + - group: networking.k8s.io + kind: NetworkPolicyList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.NetworkPolicyPeer: + description: NetworkPolicyPeer describes a peer to allow traffic to/from. Only + certain combinations of fields are allowed example: - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path + podSelector: + matchExpressions: + - values: + - values + - values key: key - - mode: 3 - path: path + operator: operator + - values: + - values + - values key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values key: key - - mode: 3 - path: path + operator: operator + - values: + - values + - values key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true - signerName: signerName - properties: - clusterTrustBundle: - $ref: '#/components/schemas/v1.ClusterTrustBundleProjection' - configMap: - $ref: '#/components/schemas/v1.ConfigMapProjection' - downwardAPI: - $ref: '#/components/schemas/v1.DownwardAPIProjection' - secret: - $ref: '#/components/schemas/v1.SecretProjection' - serviceAccountToken: - $ref: '#/components/schemas/v1.ServiceAccountTokenProjection' - type: object - v1.VolumeResourceRequirements: - description: VolumeResourceRequirements describes the storage resource requirements - for a volume. - example: - requests: - key: null - limits: - key: null - properties: - limits: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: "Limits describes the maximum amount of compute resources allowed.\ - \ More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" - type: object - requests: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: "Requests describes the minimum amount of compute resources\ - \ required. If Requests is omitted for a container, it defaults to Limits\ - \ if that is explicitly specified, otherwise to an implementation-defined\ - \ value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" - type: object - type: object - v1.VsphereVirtualDiskVolumeSource: - description: Represents a vSphere volume resource. - example: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType + operator: operator + matchLabels: + key: matchLabels properties: - fsType: - description: "fsType is filesystem type to mount. Must be a filesystem type\ - \ supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\"\ - . Implicitly inferred to be \"ext4\" if unspecified." - type: string - storagePolicyID: - description: storagePolicyID is the storage Policy Based Management (SPBM) - profile ID associated with the StoragePolicyName. - type: string - storagePolicyName: - description: storagePolicyName is the storage Policy Based Management (SPBM) - profile name. - type: string - volumePath: - description: volumePath is the path that identifies vSphere volume vmdk - type: string - required: - - volumePath + ipBlock: + $ref: '#/components/schemas/v1.IPBlock' + namespaceSelector: + $ref: '#/components/schemas/v1.LabelSelector' + podSelector: + $ref: '#/components/schemas/v1.LabelSelector' type: object - v1.WeightedPodAffinityTerm: - description: The weights of all of the matched WeightedPodAffinityTerm fields - are added per-node to find the most preferred node(s) + v1.NetworkPolicyPort: + description: NetworkPolicyPort describes a port to allow traffic on example: - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 + protocol: protocol + port: port + endPort: 0 properties: - podAffinityTerm: - $ref: '#/components/schemas/v1.PodAffinityTerm' - weight: - description: "weight associated with matching the corresponding podAffinityTerm,\ - \ in the range 1-100." + endPort: + description: "endPort indicates that the range of ports from port to endPort\ + \ if set, inclusive, should be allowed by the policy. This field cannot\ + \ be defined if the port field is not defined or if the port field is\ + \ defined as a named (string) port. The endPort must be equal or greater\ + \ than port." format: int32 type: integer - required: - - podAffinityTerm - - weight - type: object - v1.WindowsSecurityContextOptions: - description: WindowsSecurityContextOptions contain Windows-specific options - and credentials. - example: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - properties: - gmsaCredentialSpec: - description: GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) - inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName - field. - type: string - gmsaCredentialSpecName: - description: GMSACredentialSpecName is the name of the GMSA credential spec - to use. - type: string - hostProcess: - description: "HostProcess determines if a container should be run as a 'Host\ - \ Process' container. All of a Pod's containers must have the same effective\ - \ HostProcess value (it is not allowed to have a mix of HostProcess containers\ - \ and non-HostProcess containers). In addition, if HostProcess is true\ - \ then HostNetwork must also be set to true." - type: boolean - runAsUserName: - description: "The UserName in Windows to run the entrypoint of the container\ - \ process. Defaults to the user specified in image metadata if unspecified.\ - \ May also be set in PodSecurityContext. If set in both SecurityContext\ - \ and PodSecurityContext, the value specified in SecurityContext takes\ - \ precedence." - type: string - type: object - v1.Endpoint: - description: Endpoint represents a single logical "backend" implementing a service. - example: - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - addresses: - - addresses - - addresses - hostname: hostname - zone: zone - hints: - forZones: - - name: name - - name: name - conditions: - ready: true - terminating: true - serving: true - deprecatedTopology: - key: deprecatedTopology - properties: - addresses: - description: "addresses of this endpoint. The contents of this field are\ - \ interpreted according to the corresponding EndpointSlice addressType\ - \ field. Consumers must handle different types of addresses in the context\ - \ of their own capabilities. This must contain at least one address but\ - \ no more than 100. These are all assumed to be fungible and clients may\ - \ choose to only use the first element. Refer to: https://issue.k8s.io/106267" - items: - type: string - type: array - x-kubernetes-list-type: set - conditions: - $ref: '#/components/schemas/v1.EndpointConditions' - deprecatedTopology: - additionalProperties: - type: string - description: "deprecatedTopology contains topology information part of the\ - \ v1beta1 API. This field is deprecated, and will be removed when the\ - \ v1beta1 API is removed (no sooner than kubernetes v1.24). While this\ - \ field can hold values, it is not writable through the v1 API, and any\ - \ attempts to write to it will be silently ignored. Topology information\ - \ can be found in the zone and nodeName fields instead." - type: object - hints: - $ref: '#/components/schemas/v1.EndpointHints' - hostname: - description: hostname of this endpoint. This field may be used by consumers - of endpoints to distinguish endpoints from each other (e.g. in DNS names). - Multiple endpoints which use the same hostname should be considered fungible - (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label - (RFC 1123) validation. - type: string - nodeName: - description: nodeName represents the name of the Node hosting this endpoint. - This can be used to determine endpoints local to a Node. + port: + description: "IntOrString is a type that can hold an int32 or a string.\ + \ When used in JSON or YAML marshalling and unmarshalling, it produces\ + \ or consumes the inner type. This allows you to have, for example, a\ + \ JSON field that can accept a name or number." + format: int-or-string type: string - targetRef: - $ref: '#/components/schemas/v1.ObjectReference' - zone: - description: zone is the name of the Zone this endpoint exists in. + protocol: + description: "protocol represents the protocol (TCP, UDP, or SCTP) which\ + \ traffic must match. If not specified, this field defaults to TCP." type: string - required: - - addresses - type: object - v1.EndpointConditions: - description: EndpointConditions represents the current condition of an endpoint. - example: - ready: true - terminating: true - serving: true - properties: - ready: - description: "ready indicates that this endpoint is prepared to receive\ - \ traffic, according to whatever system is managing the endpoint. A nil\ - \ value indicates an unknown state. In most cases consumers should interpret\ - \ this unknown state as ready. For compatibility reasons, ready should\ - \ never be \"true\" for terminating endpoints, except when the normal\ - \ readiness behavior is being explicitly overridden, for example when\ - \ the associated Service has set the publishNotReadyAddresses flag." - type: boolean - serving: - description: "serving is identical to ready except that it is set regardless\ - \ of the terminating state of endpoints. This condition should be set\ - \ to true for a ready endpoint that is terminating. If nil, consumers\ - \ should defer to the ready condition." - type: boolean - terminating: - description: terminating indicates that this endpoint is terminating. A - nil value indicates an unknown state. Consumers should interpret this - unknown state to mean that the endpoint is not terminating. - type: boolean type: object - v1.EndpointHints: - description: EndpointHints provides hints describing how an endpoint should - be consumed. + v1.NetworkPolicySpec: + description: NetworkPolicySpec provides the specification of a NetworkPolicy example: - forZones: - - name: name - - name: name + ingress: + - from: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + - from: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + policyTypes: + - policyTypes + - policyTypes + egress: + - to: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + - to: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 properties: - forZones: - description: forZones indicates the zone(s) this endpoint should be consumed - by to enable topology aware routing. + egress: + description: "egress is a list of egress rules to be applied to the selected\ + \ pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting\ + \ the pod (and cluster policy otherwise allows the traffic), OR if the\ + \ traffic matches at least one egress rule across all of the NetworkPolicy\ + \ objects whose podSelector matches the pod. If this field is empty then\ + \ this NetworkPolicy limits all outgoing traffic (and serves solely to\ + \ ensure that the pods it selects are isolated by default). This field\ + \ is beta-level in 1.8" items: - $ref: '#/components/schemas/v1.ForZone' + $ref: '#/components/schemas/v1.NetworkPolicyEgressRule' + type: array + x-kubernetes-list-type: atomic + ingress: + description: "ingress is a list of ingress rules to be applied to the selected\ + \ pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting\ + \ the pod (and cluster policy otherwise allows the traffic), OR if the\ + \ traffic source is the pod's local node, OR if the traffic matches at\ + \ least one ingress rule across all of the NetworkPolicy objects whose\ + \ podSelector matches the pod. If this field is empty then this NetworkPolicy\ + \ does not allow any traffic (and serves solely to ensure that the pods\ + \ it selects are isolated by default)" + items: + $ref: '#/components/schemas/v1.NetworkPolicyIngressRule' + type: array + x-kubernetes-list-type: atomic + podSelector: + $ref: '#/components/schemas/v1.LabelSelector' + policyTypes: + description: "policyTypes is a list of rule types that the NetworkPolicy\ + \ relates to. Valid options are [\"Ingress\"], [\"Egress\"], or [\"Ingress\"\ + , \"Egress\"]. If this field is not specified, it will default based on\ + \ the existence of ingress or egress rules; policies that contain an egress\ + \ section are assumed to affect egress, and all policies (whether or not\ + \ they contain an ingress section) are assumed to affect ingress. If you\ + \ want to write an egress-only policy, you must explicitly specify policyTypes\ + \ [ \"Egress\" ]. Likewise, if you want to write a policy that specifies\ + \ that no egress is allowed, you must specify a policyTypes value that\ + \ include \"Egress\" (since such a policy would not include an egress\ + \ section and would otherwise default to just [ \"Ingress\" ]). This field\ + \ is beta-level in 1.8" + items: + type: string type: array x-kubernetes-list-type: atomic + required: + - podSelector type: object - discovery.v1.EndpointPort: - description: EndpointPort represents a Port used by an EndpointSlice + v1.ParentReference: + description: ParentReference describes a reference to a parent object. example: - protocol: protocol - port: 0 - appProtocol: appProtocol + resource: resource name: name + namespace: namespace + group: group properties: - appProtocol: - description: |- - The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: - - * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). - - * Kubernetes-defined prefixed names: - * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- - * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 - * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 - - * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. + group: + description: Group is the group of the object being referenced. type: string name: - description: "name represents the name of this port. All ports in an EndpointSlice\ - \ must have a unique name. If the EndpointSlice is derived from a Kubernetes\ - \ service, this corresponds to the Service.ports[].name. Name must either\ - \ be an empty string or pass DNS_LABEL validation: * must be no more than\ - \ 63 characters long. * must consist of lower case alphanumeric characters\ - \ or '-'. * must start and end with an alphanumeric character. Default\ - \ is empty string." + description: Name is the name of the object being referenced. type: string - port: - description: "port represents the port number of the endpoint. If this is\ - \ not specified, ports are not restricted and must be interpreted in the\ - \ context of the specific consumer." + namespace: + description: Namespace is the namespace of the object being referenced. + type: string + resource: + description: Resource is the resource of the object being referenced. + type: string + required: + - name + - resource + type: object + v1.ServiceBackendPort: + description: ServiceBackendPort is the service port being referenced. + example: + number: 0 + name: name + properties: + name: + description: name is the name of the port on the Service. This is a mutually + exclusive setting with "Number". + type: string + number: + description: number is the numerical port number (e.g. 80) on the Service. + This is a mutually exclusive setting with "Name". format: int32 type: integer - protocol: - description: "protocol represents the IP protocol for this port. Must be\ - \ UDP, TCP, or SCTP. Default is TCP." - type: string type: object x-kubernetes-map-type: atomic - v1.EndpointSlice: - description: "EndpointSlice represents a subset of the endpoints that implement\ - \ a service. For a given service there may be multiple EndpointSlice objects,\ - \ selected by labels, which must be joined to produce the full set of endpoints." + v1.ServiceCIDR: + description: ServiceCIDR defines a range of IP addresses using CIDR format (e.g. + 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs + to Service objects. example: - endpoints: - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - addresses: - - addresses - - addresses - hostname: hostname - zone: zone - hints: - forZones: - - name: name - - name: name - conditions: - ready: true - terminating: true - serving: true - deprecatedTopology: - key: deprecatedTopology - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - addresses: - - addresses - - addresses - hostname: hostname - zone: zone - hints: - forZones: - - name: name - - name: name - conditions: - ready: true - terminating: true - serving: true - deprecatedTopology: - key: deprecatedTopology metadata: generation: 6 finalizers: @@ -232668,37 +247591,31 @@ components: name: name namespace: namespace apiVersion: apiVersion - addressType: addressType kind: kind - ports: - - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name - - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name + spec: + cidrs: + - cidrs + - cidrs + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status properties: - addressType: - description: "addressType specifies the type of address carried by this\ - \ EndpointSlice. All addresses in this slice must be the same type. This\ - \ field is immutable after creation. The following address types are currently\ - \ supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an\ - \ IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name." - type: string apiVersion: description: "APIVersion defines the versioned schema of this representation\ \ of an object. Servers should convert recognized schemas to the latest\ \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string - endpoints: - description: endpoints is a list of unique endpoints in this slice. Each - slice may include a maximum of 1000 endpoints. - items: - $ref: '#/components/schemas/v1.Endpoint' - type: array - x-kubernetes-list-type: atomic kind: description: "Kind is a string value representing the REST resource this\ \ object represents. Servers may infer this from the endpoint the client\ @@ -232706,28 +247623,19 @@ components: type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' - ports: - description: "ports specifies the list of network ports exposed by each\ - \ endpoint in this slice. Each port must have a unique name. When ports\ - \ is empty, it indicates that there are no defined ports. When a port\ - \ is defined with a nil port value, it indicates \"all ports\". Each slice\ - \ may include a maximum of 100 ports." - items: - $ref: '#/components/schemas/discovery.v1.EndpointPort' - type: array - x-kubernetes-list-type: atomic - required: - - addressType - - endpoints + spec: + $ref: '#/components/schemas/v1.ServiceCIDRSpec' + status: + $ref: '#/components/schemas/v1.ServiceCIDRStatus' type: object x-kubernetes-group-version-kind: - - group: discovery.k8s.io - kind: EndpointSlice + - group: networking.k8s.io + kind: ServiceCIDR version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.EndpointSliceList: - description: EndpointSliceList represents a list of endpoint slices + v1.ServiceCIDRList: + description: ServiceCIDRList contains a list of ServiceCIDR objects. example: metadata: remainingItemCount: 1 @@ -232737,56 +247645,73 @@ components: apiVersion: apiVersion kind: kind items: - - endpoints: - - nodeName: nodeName - targetRef: - uid: uid + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true apiVersion: apiVersion kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath name: name - namespace: namespace - addresses: - - addresses - - addresses - hostname: hostname - zone: zone - hints: - forZones: - - name: name - - name: name - conditions: - ready: true - terminating: true - serving: true - deprecatedTopology: - key: deprecatedTopology - - nodeName: nodeName - targetRef: - uid: uid + blockOwnerDeletion: true + - uid: uid + controller: true apiVersion: apiVersion kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath name: name - namespace: namespace - addresses: - - addresses - - addresses - hostname: hostname - zone: zone - hints: - forZones: - - name: name - - name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + cidrs: + - cidrs + - cidrs + status: conditions: - ready: true - terminating: true - serving: true - deprecatedTopology: - key: deprecatedTopology - metadata: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - metadata: generation: 6 finalizers: - finalizers @@ -232833,67 +247758,250 @@ components: name: name namespace: namespace apiVersion: apiVersion - addressType: addressType kind: kind - ports: - - protocol: protocol - port: 0 - appProtocol: appProtocol + spec: + cidrs: + - cidrs + - cidrs + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: items is the list of ServiceCIDRs. + items: + $ref: '#/components/schemas/v1.ServiceCIDR' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: networking.k8s.io + kind: ServiceCIDRList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.ServiceCIDRSpec: + description: ServiceCIDRSpec define the CIDRs the user wants to use for allocating + ClusterIPs for Services. + example: + cidrs: + - cidrs + - cidrs + properties: + cidrs: + description: "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\"\ + \ or \"2001:db8::/64\") from which to assign service cluster IPs. Max\ + \ of two CIDRs is allowed, one of each IP family. This field is immutable." + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + v1.ServiceCIDRStatus: + description: ServiceCIDRStatus describes the current state of the ServiceCIDR. + example: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + properties: + conditions: + description: conditions holds an array of metav1.Condition that describe + the state of the ServiceCIDR. Current service state + items: + $ref: '#/components/schemas/v1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + v1beta1.IPAddress: + description: "IPAddress represents a single IP of a single IP Family. The object\ + \ is designed to be used by APIs that operate on IP addresses. The object\ + \ is used by the Service core API for allocation of IP addresses. An IP address\ + \ can be represented in different formats, to guarantee the uniqueness of\ + \ the IP, the name of the object is the IP address in canonical format, four\ + \ decimal digits separated by dots suppressing leading zeros for IPv4 and\ + \ the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1\ + \ or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1" + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - - protocol: protocol - port: 0 - appProtocol: appProtocol + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - - endpoints: - - nodeName: nodeName - targetRef: - uid: uid + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + parentRef: + resource: resource + name: name + namespace: namespace + group: group + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1beta1.IPAddressSpec' + type: object + x-kubernetes-group-version-kind: + - group: networking.k8s.io + kind: IPAddress + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1beta1.IPAddressList: + description: IPAddressList contains a list of IPAddress. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true apiVersion: apiVersion kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath name: name - namespace: namespace - addresses: - - addresses - - addresses - hostname: hostname - zone: zone - hints: - forZones: - - name: name - - name: name - conditions: - ready: true - terminating: true - serving: true - deprecatedTopology: - key: deprecatedTopology - - nodeName: nodeName - targetRef: - uid: uid + blockOwnerDeletion: true + - uid: uid + controller: true apiVersion: apiVersion kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + parentRef: + resource: resource name: name namespace: namespace - addresses: - - addresses - - addresses - hostname: hostname - zone: zone - hints: - forZones: - - name: name - - name: name - conditions: - ready: true - terminating: true - serving: true - deprecatedTopology: - key: deprecatedTopology - metadata: + group: group + - metadata: generation: 6 finalizers: - finalizers @@ -232940,17 +248048,13 @@ components: name: name namespace: namespace apiVersion: apiVersion - addressType: addressType kind: kind - ports: - - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name - - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name + spec: + parentRef: + resource: resource + name: name + namespace: namespace + group: group properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -232958,9 +248062,9 @@ components: \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string items: - description: items is the list of endpoint slices + description: items is the list of IPAddresses. items: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.IPAddress' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -232973,33 +248077,54 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: discovery.k8s.io - kind: EndpointSliceList - version: v1 + - group: networking.k8s.io + kind: IPAddressList + version: v1beta1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.ForZone: - description: ForZone provides information about which zones should consume this - endpoint. + v1beta1.IPAddressSpec: + description: IPAddressSpec describe the attributes in an IP Address. + example: + parentRef: + resource: resource + name: name + namespace: namespace + group: group + properties: + parentRef: + $ref: '#/components/schemas/v1beta1.ParentReference' + required: + - parentRef + type: object + v1beta1.ParentReference: + description: ParentReference describes a reference to a parent object. example: + resource: resource name: name + namespace: namespace + group: group properties: + group: + description: Group is the group of the object being referenced. + type: string name: - description: name represents the name of the zone. + description: Name is the name of the object being referenced. + type: string + namespace: + description: Namespace is the namespace of the object being referenced. + type: string + resource: + description: Resource is the resource of the object being referenced. type: string required: - name + - resource type: object - events.v1.Event: - description: "Event is a report of an event somewhere in the cluster. It generally\ - \ denotes some state change in the system. Events have a limited retention\ - \ time and triggers and messages may evolve with time. Event consumers should\ - \ not rely on the timing of an event with a given Reason reflecting a consistent\ - \ underlying trigger, or the continued existence of events with that Reason.\ - \ Events should be treated as informative, best-effort, supplemental data." + v1beta1.ServiceCIDR: + description: ServiceCIDR defines a range of IP addresses using CIDR format (e.g. + 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs + to Service objects. example: - note: note - reason: reason metadata: generation: 6 finalizers: @@ -233046,71 +248171,32 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - reportingInstance: reportingInstance - deprecatedCount: 0 - kind: kind - deprecatedSource: - component: component - host: host - type: type - deprecatedLastTimestamp: 2000-01-23T04:56:07.000+00:00 - regarding: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - deprecatedFirstTimestamp: 2000-01-23T04:56:07.000+00:00 apiVersion: apiVersion - reportingController: reportingController - related: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - series: - count: 6 - lastObservedTime: 2000-01-23T04:56:07.000+00:00 - eventTime: 2000-01-23T04:56:07.000+00:00 - action: action + kind: kind + spec: + cidrs: + - cidrs + - cidrs + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status properties: - action: - description: action is what action was taken/failed regarding to the regarding - object. It is machine-readable. This field cannot be empty for new Events - and it can have at most 128 characters. - type: string apiVersion: description: "APIVersion defines the versioned schema of this representation\ \ of an object. Servers should convert recognized schemas to the latest\ \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string - deprecatedCount: - description: deprecatedCount is the deprecated field assuring backward compatibility - with core.v1 Event type. - format: int32 - type: integer - deprecatedFirstTimestamp: - description: deprecatedFirstTimestamp is the deprecated field assuring backward - compatibility with core.v1 Event type. - format: date-time - type: string - deprecatedLastTimestamp: - description: deprecatedLastTimestamp is the deprecated field assuring backward - compatibility with core.v1 Event type. - format: date-time - type: string - deprecatedSource: - $ref: '#/components/schemas/v1.EventSource' - eventTime: - description: eventTime is the time when this Event was first observed. It - is required. - format: date-time - type: string kind: description: "Kind is a string value representing the REST resource this\ \ object represents. Servers may infer this from the endpoint the client\ @@ -233118,47 +248204,19 @@ components: type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' - note: - description: "note is a human-readable description of the status of this\ - \ operation. Maximal length of the note is 1kB, but libraries should be\ - \ prepared to handle values up to 64kB." - type: string - reason: - description: reason is why the action was taken. It is human-readable. This - field cannot be empty for new Events and it can have at most 128 characters. - type: string - regarding: - $ref: '#/components/schemas/v1.ObjectReference' - related: - $ref: '#/components/schemas/v1.ObjectReference' - reportingController: - description: "reportingController is the name of the controller that emitted\ - \ this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty\ - \ for new Events." - type: string - reportingInstance: - description: "reportingInstance is the ID of the controller instance, e.g.\ - \ `kubelet-xyzf`. This field cannot be empty for new Events and it can\ - \ have at most 128 characters." - type: string - series: - $ref: '#/components/schemas/events.v1.EventSeries' - type: - description: "type is the type of this event (Normal, Warning), new types\ - \ could be added in the future. It is machine-readable. This field cannot\ - \ be empty for new Events." - type: string - required: - - eventTime + spec: + $ref: '#/components/schemas/v1beta1.ServiceCIDRSpec' + status: + $ref: '#/components/schemas/v1beta1.ServiceCIDRStatus' type: object x-kubernetes-group-version-kind: - - group: events.k8s.io - kind: Event - version: v1 + - group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-implements: - io.kubernetes.client.common.KubernetesObject - events.v1.EventList: - description: EventList is a list of Event objects. + v1beta1.ServiceCIDRList: + description: ServiceCIDRList contains a list of ServiceCIDR objects. example: metadata: remainingItemCount: 1 @@ -233168,9 +248226,7 @@ components: apiVersion: apiVersion kind: kind items: - - note: note - reason: reason - metadata: + - metadata: generation: 6 finalizers: - finalizers @@ -233216,41 +248272,27 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - reportingInstance: reportingInstance - deprecatedCount: 0 - kind: kind - deprecatedSource: - component: component - host: host - type: type - deprecatedLastTimestamp: 2000-01-23T04:56:07.000+00:00 - regarding: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - deprecatedFirstTimestamp: 2000-01-23T04:56:07.000+00:00 apiVersion: apiVersion - reportingController: reportingController - related: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - series: - count: 6 - lastObservedTime: 2000-01-23T04:56:07.000+00:00 - eventTime: 2000-01-23T04:56:07.000+00:00 - action: action - - note: note - reason: reason - metadata: + kind: kind + spec: + cidrs: + - cidrs + - cidrs + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - metadata: generation: 6 finalizers: - finalizers @@ -233296,38 +248338,26 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - reportingInstance: reportingInstance - deprecatedCount: 0 - kind: kind - deprecatedSource: - component: component - host: host - type: type - deprecatedLastTimestamp: 2000-01-23T04:56:07.000+00:00 - regarding: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - deprecatedFirstTimestamp: 2000-01-23T04:56:07.000+00:00 apiVersion: apiVersion - reportingController: reportingController - related: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - series: - count: 6 - lastObservedTime: 2000-01-23T04:56:07.000+00:00 - eventTime: 2000-01-23T04:56:07.000+00:00 - action: action + kind: kind + spec: + cidrs: + - cidrs + - cidrs + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -233335,9 +248365,9 @@ components: \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string items: - description: items is a list of schema objects. + description: items is the list of ServiceCIDRs. items: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -233350,79 +248380,80 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: events.k8s.io - kind: EventList - version: v1 + - group: networking.k8s.io + kind: ServiceCIDRList + version: v1beta1 x-implements: - io.kubernetes.client.common.KubernetesListObject - events.v1.EventSeries: - description: "EventSeries contain information on series of events, i.e. thing\ - \ that was/is happening continuously for some time. How often to update the\ - \ EventSeries is up to the event reporters. The default event reporter in\ - \ \"k8s.io/client-go/tools/events/event_broadcaster.go\" shows how this struct\ - \ is updated on heartbeats and can guide customized reporter implementations." + v1beta1.ServiceCIDRSpec: + description: ServiceCIDRSpec define the CIDRs the user wants to use for allocating + ClusterIPs for Services. example: - count: 6 - lastObservedTime: 2000-01-23T04:56:07.000+00:00 + cidrs: + - cidrs + - cidrs properties: - count: - description: count is the number of occurrences in this series up to the - last heartbeat time. - format: int32 - type: integer - lastObservedTime: - description: lastObservedTime is the time when last Event from the series - was seen before last heartbeat. - format: date-time - type: string - required: - - count - - lastObservedTime + cidrs: + description: "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\"\ + \ or \"2001:db8::/64\") from which to assign service cluster IPs. Max\ + \ of two CIDRs is allowed, one of each IP family. This field is immutable." + items: + type: string + type: array + x-kubernetes-list-type: atomic type: object - v1.ExemptPriorityLevelConfiguration: - description: "ExemptPriorityLevelConfiguration describes the configurable aspects\ - \ of the handling of exempt requests. In the mandatory exempt configuration\ - \ object the values in the fields here can be modified by authorized users,\ - \ unlike the rest of the `spec`." + v1beta1.ServiceCIDRStatus: + description: ServiceCIDRStatus describes the current state of the ServiceCIDR. example: - lendablePercent: 0 - nominalConcurrencyShares: 6 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status properties: - lendablePercent: - description: |- - `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. - - LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) - format: int32 - type: integer - nominalConcurrencyShares: - description: |- - `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values: - - NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) - - Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero. - format: int32 - type: integer + conditions: + description: conditions holds an array of metav1.Condition that describe + the state of the ServiceCIDR. Current service state + items: + $ref: '#/components/schemas/v1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type type: object - v1.FlowDistinguisherMethod: - description: FlowDistinguisherMethod specifies the method of a flow distinguisher. + v1.Overhead: + description: Overhead structure represents the resource overhead associated + with running a pod. example: - type: type + podFixed: + key: null properties: - type: - description: '`type` is the type of flow distinguisher method The supported - types are "ByUser" and "ByNamespace". Required.' - type: string - required: - - type + podFixed: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: podFixed represents the fixed resource overhead associated + with running a pod. + type: object type: object - v1.FlowSchema: - description: "FlowSchema defines the schema of a group of flows. Note that a\ - \ flow is made up of a set of inbound API requests with similar attributes\ - \ and is identified by a pair of strings: the name of the FlowSchema and a\ - \ \"flow distinguisher\"." + v1.RuntimeClass: + description: "RuntimeClass defines a class of container runtime supported in\ + \ the cluster. The RuntimeClass is used to determine which container runtime\ + \ is used to run all containers in a pod. RuntimeClasses are manually defined\ + \ by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet\ + \ is responsible for resolving the RuntimeClassName reference before running\ + \ the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/" example: + handler: handler metadata: generation: 6 finalizers: @@ -233471,145 +248502,40 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - spec: - priorityLevelConfiguration: - name: name - matchingPrecedence: 0 - rules: - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - distinguisherMethod: - type: type - status: - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status + overhead: + podFixed: + key: null + scheduling: + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + nodeSelector: + key: nodeSelector properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ \ of an object. Servers should convert recognized schemas to the latest\ \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string + handler: + description: "handler specifies the underlying runtime and configuration\ + \ that the CRI implementation will use to handle pods of this class. The\ + \ possible values are specific to the node & CRI configuration. It is\ + \ assumed that all handlers are available on every node, and handlers\ + \ of the same name are equivalent on every node. For example, a handler\ + \ called \"runc\" might specify that the runc OCI runtime (using native\ + \ Linux containers) will be used to run the containers in a pod. The Handler\ + \ must be lowercase, conform to the DNS Label (RFC 1123) requirements,\ + \ and is immutable." + type: string kind: description: "Kind is a string value representing the REST resource this\ \ object represents. Servers may infer this from the endpoint the client\ @@ -233617,49 +248543,21 @@ components: type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.FlowSchemaSpec' - status: - $ref: '#/components/schemas/v1.FlowSchemaStatus' + overhead: + $ref: '#/components/schemas/v1.Overhead' + scheduling: + $ref: '#/components/schemas/v1.Scheduling' + required: + - handler type: object x-kubernetes-group-version-kind: - - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + - group: node.k8s.io + kind: RuntimeClass version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.FlowSchemaCondition: - description: FlowSchemaCondition describes conditions for a FlowSchema. - example: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - properties: - lastTransitionTime: - description: '`lastTransitionTime` is the last time the condition transitioned - from one status to another.' - format: date-time - type: string - message: - description: '`message` is a human-readable message indicating details about - last transition.' - type: string - reason: - description: "`reason` is a unique, one-word, CamelCase reason for the condition's\ - \ last transition." - type: string - status: - description: "`status` is the status of the condition. Can be True, False,\ - \ Unknown. Required." - type: string - type: - description: '`type` is the type of the condition. Required.' - type: string - type: object - v1.FlowSchemaList: - description: FlowSchemaList is a list of FlowSchema objects. + v1.RuntimeClassList: + description: RuntimeClassList is a list of RuntimeClass objects. example: metadata: remainingItemCount: 1 @@ -233669,7 +248567,8 @@ components: apiVersion: apiVersion kind: kind items: - - metadata: + - handler: handler + metadata: generation: 6 finalizers: - finalizers @@ -233717,140 +248616,25 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - spec: - priorityLevelConfiguration: - name: name - matchingPrecedence: 0 - rules: - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - distinguisherMethod: - type: type - status: - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - metadata: + overhead: + podFixed: + key: null + scheduling: + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + nodeSelector: + key: nodeSelector + - handler: handler + metadata: generation: 6 finalizers: - finalizers @@ -233898,139 +248682,23 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - spec: - priorityLevelConfiguration: - name: name - matchingPrecedence: 0 - rules: - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - distinguisherMethod: - type: type - status: - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status + overhead: + podFixed: + key: null + scheduling: + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + nodeSelector: + key: nodeSelector properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -234038,9 +248706,9 @@ components: \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string items: - description: '`items` is a list of FlowSchemas.' + description: items is a list of schema objects. items: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.RuntimeClass' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -234053,407 +248721,139 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: flowcontrol.apiserver.k8s.io - kind: FlowSchemaList + - group: node.k8s.io + kind: RuntimeClassList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.FlowSchemaSpec: - description: FlowSchemaSpec describes how the FlowSchema's specification looks - like. - example: - priorityLevelConfiguration: - name: name - matchingPrecedence: 0 - rules: - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - distinguisherMethod: - type: type - properties: - distinguisherMethod: - $ref: '#/components/schemas/v1.FlowDistinguisherMethod' - matchingPrecedence: - description: "`matchingPrecedence` is used to choose among the FlowSchemas\ - \ that match a given request. The chosen FlowSchema is among those with\ - \ the numerically lowest (which we take to be logically highest) MatchingPrecedence.\ - \ Each MatchingPrecedence value must be ranged in [1,10000]. Note that\ - \ if the precedence is not specified, it will be set to 1000 as default." - format: int32 - type: integer - priorityLevelConfiguration: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationReference' - rules: - description: "`rules` describes which requests will match this flow schema.\ - \ This FlowSchema matches a request if and only if at least one member\ - \ of rules matches the request. if it is an empty slice, there will be\ - \ no requests matching the FlowSchema." - items: - $ref: '#/components/schemas/v1.PolicyRulesWithSubjects' - type: array - x-kubernetes-list-type: atomic - required: - - priorityLevelConfiguration - type: object - v1.FlowSchemaStatus: - description: FlowSchemaStatus represents the current state of a FlowSchema. - example: - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - properties: - conditions: - description: '`conditions` is a list of the current states of FlowSchema.' - items: - $ref: '#/components/schemas/v1.FlowSchemaCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - x-kubernetes-patch-merge-key: type - type: object - v1.GroupSubject: - description: GroupSubject holds detailed information for group-kind subject. - example: - name: name - properties: - name: - description: "name is the user group that matches, or \"*\" to match all\ - \ user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go\ - \ for some well-known group names. Required." - type: string - required: - - name - type: object - v1.LimitResponse: - description: LimitResponse defines how to handle requests that can not be executed - right now. - example: - queuing: - handSize: 5 - queues: 7 - queueLengthLimit: 2 - type: type - properties: - queuing: - $ref: '#/components/schemas/v1.QueuingConfiguration' - type: - description: '`type` is "Queue" or "Reject". "Queue" means that requests - that can not be executed upon arrival are held in a queue until they can - be executed or a queuing limit is reached. "Reject" means that requests - that can not be executed upon arrival are rejected. Required.' - type: string - required: - - type - type: object - x-kubernetes-unions: - - discriminator: type - fields-to-discriminateBy: - queuing: Queuing - v1.LimitedPriorityLevelConfiguration: - description: |- - LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: - - How are requests for this priority level limited? - - What should be done with requests that exceed the limit? - example: - lendablePercent: 5 - borrowingLimitPercent: 1 - limitResponse: - queuing: - handSize: 5 - queues: 7 - queueLengthLimit: 2 - type: type - nominalConcurrencyShares: 9 - properties: - borrowingLimitPercent: - description: |- - `borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows. - - BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) - - The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite. - format: int32 - type: integer - lendablePercent: - description: |- - `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. - - LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) - format: int32 - type: integer - limitResponse: - $ref: '#/components/schemas/v1.LimitResponse' - nominalConcurrencyShares: - description: |- - `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values: - - NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) - - Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. - - If not specified, this field defaults to a value of 30. - - Setting this field to zero supports the construction of a "jail" for this priority level that is used to hold some request(s) - format: int32 - type: integer - type: object - v1.NonResourcePolicyRule: - description: NonResourcePolicyRule is a predicate that matches non-resource - requests according to their verb and the target non-resource URL. A NonResourcePolicyRule - matches a request if and only if both (a) at least one member of verbs matches - the request and (b) at least one member of nonResourceURLs matches the request. + v1.Scheduling: + description: Scheduling specifies the scheduling constraints for nodes supporting + a RuntimeClass. example: - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + nodeSelector: + key: nodeSelector properties: - nonResourceURLs: - description: |- - `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: - - "/healthz" is legal - - "/hea*" is illegal - - "/hea" is legal but matches nothing - - "/hea/*" also matches nothing - - "/healthz/*" matches all per-component health checks. - "*" matches all non-resource urls. if it is present, it must be the only entry. Required. - items: + nodeSelector: + additionalProperties: type: string - type: array - x-kubernetes-list-type: set - verbs: - description: "`verbs` is a list of matching verbs and may not be empty.\ - \ \"*\" matches all verbs. If it is present, it must be the only entry.\ - \ Required." + description: nodeSelector lists labels that must be present on nodes that + support this RuntimeClass. Pods using this RuntimeClass can only be scheduled + to a node matched by this selector. The RuntimeClass nodeSelector is merged + with a pod's existing nodeSelector. Any conflicts will cause the pod to + be rejected in admission. + type: object + x-kubernetes-map-type: atomic + tolerations: + description: "tolerations are appended (excluding duplicates) to pods running\ + \ with this RuntimeClass during admission, effectively unioning the set\ + \ of nodes tolerated by the pod and the RuntimeClass." items: - type: string + $ref: '#/components/schemas/v1.Toleration' type: array - x-kubernetes-list-type: set - required: - - nonResourceURLs - - verbs + x-kubernetes-list-type: atomic type: object - v1.PolicyRulesWithSubjects: - description: "PolicyRulesWithSubjects prescribes a test that applies to a request\ - \ to an apiserver. The test considers the subject making the request, the\ - \ verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects\ - \ matches a request if and only if both (a) at least one member of subjects\ - \ matches the request and (b) at least one member of resourceRules or nonResourceRules\ - \ matches the request." + v1.Eviction: + description: Eviction evicts a pod from its node subject to certain policies + and safety constraints. This is a subresource of Pod. A request to cause + such an eviction is created by POSTing to .../pods//evictions. example: - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: + deleteOptions: + orphanDependents: true + apiVersion: apiVersion + dryRun: + - dryRun + - dryRun + kind: kind + preconditions: + uid: uid + resourceVersion: resourceVersion + ignoreStoreReadErrorWithClusterBreakingPotential: true + gracePeriodSeconds: 0 + propagationPolicy: propagationPolicy + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - group: + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind properties: - nonResourceRules: - description: '`nonResourceRules` is a list of NonResourcePolicyRules that - identify matching requests according to their verb and the target non-resource - URL.' - items: - $ref: '#/components/schemas/v1.NonResourcePolicyRule' - type: array - x-kubernetes-list-type: atomic - resourceRules: - description: '`resourceRules` is a slice of ResourcePolicyRules that identify - matching requests according to their verb and the target resource. At - least one of `resourceRules` and `nonResourceRules` has to be non-empty.' - items: - $ref: '#/components/schemas/v1.ResourcePolicyRule' - type: array - x-kubernetes-list-type: atomic - subjects: - description: "subjects is the list of normal user, serviceaccount, or group\ - \ that this rule cares about. There must be at least one member in this\ - \ slice. A slice that includes both the system:authenticated and system:unauthenticated\ - \ user groups matches every request. Required." - items: - $ref: '#/components/schemas/flowcontrol.v1.Subject' - type: array - x-kubernetes-list-type: atomic - required: - - subjects - type: object - v1.PriorityLevelConfiguration: - description: PriorityLevelConfiguration represents the configuration of a priority - level. + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + deleteOptions: + $ref: '#/components/schemas/v1.DeleteOptions' + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + type: object + x-kubernetes-group-version-kind: + - group: policy + kind: Eviction + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.PodDisruptionBudget: + description: PodDisruptionBudget is an object to define the max disruption that + can be caused to a collection of pods example: metadata: generation: 6 @@ -234504,32 +248904,44 @@ components: apiVersion: apiVersion kind: kind spec: - limited: - lendablePercent: 5 - borrowingLimitPercent: 1 - limitResponse: - queuing: - handSize: 5 - queues: 7 - queueLengthLimit: 2 - type: type - nominalConcurrencyShares: 9 - exempt: - lendablePercent: 0 - nominalConcurrencyShares: 6 - type: type + minAvailable: minAvailable + maxUnavailable: maxUnavailable + unhealthyPodEvictionPolicy: unhealthyPodEvictionPolicy + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels status: + currentHealthy: 0 + expectedPods: 5 + disruptionsAllowed: 1 + disruptedPods: + key: 2000-01-23T04:56:07.000+00:00 conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status + observedGeneration: 5 + desiredHealthy: 6 properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -234544,50 +248956,18 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationSpec' + $ref: '#/components/schemas/v1.PodDisruptionBudgetSpec' status: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationStatus' + $ref: '#/components/schemas/v1.PodDisruptionBudgetStatus' type: object x-kubernetes-group-version-kind: - - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + - group: policy + kind: PodDisruptionBudget version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.PriorityLevelConfigurationCondition: - description: PriorityLevelConfigurationCondition defines the condition of priority - level. - example: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - properties: - lastTransitionTime: - description: '`lastTransitionTime` is the last time the condition transitioned - from one status to another.' - format: date-time - type: string - message: - description: '`message` is a human-readable message indicating details about - last transition.' - type: string - reason: - description: "`reason` is a unique, one-word, CamelCase reason for the condition's\ - \ last transition." - type: string - status: - description: "`status` is the status of the condition. Can be True, False,\ - \ Unknown. Required." - type: string - type: - description: '`type` is the type of the condition. Required.' - type: string - type: object - v1.PriorityLevelConfigurationList: - description: PriorityLevelConfigurationList is a list of PriorityLevelConfiguration - objects. + v1.PodDisruptionBudgetList: + description: PodDisruptionBudgetList is a collection of PodDisruptionBudgets. example: metadata: remainingItemCount: 1 @@ -234646,32 +249026,44 @@ components: apiVersion: apiVersion kind: kind spec: - limited: - lendablePercent: 5 - borrowingLimitPercent: 1 - limitResponse: - queuing: - handSize: 5 - queues: 7 - queueLengthLimit: 2 - type: type - nominalConcurrencyShares: 9 - exempt: - lendablePercent: 0 - nominalConcurrencyShares: 6 - type: type + minAvailable: minAvailable + maxUnavailable: maxUnavailable + unhealthyPodEvictionPolicy: unhealthyPodEvictionPolicy + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels status: + currentHealthy: 0 + expectedPods: 5 + disruptionsAllowed: 1 + disruptedPods: + key: 2000-01-23T04:56:07.000+00:00 conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status + observedGeneration: 5 + desiredHealthy: 6 - metadata: generation: 6 finalizers: @@ -234721,32 +249113,44 @@ components: apiVersion: apiVersion kind: kind spec: - limited: - lendablePercent: 5 - borrowingLimitPercent: 1 - limitResponse: - queuing: - handSize: 5 - queues: 7 - queueLengthLimit: 2 - type: type - nominalConcurrencyShares: 9 - exempt: - lendablePercent: 0 - nominalConcurrencyShares: 6 - type: type + minAvailable: minAvailable + maxUnavailable: maxUnavailable + unhealthyPodEvictionPolicy: unhealthyPodEvictionPolicy + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels status: + currentHealthy: 0 + expectedPods: 5 + disruptionsAllowed: 1 + disruptedPods: + key: 2000-01-23T04:56:07.000+00:00 conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status + observedGeneration: 5 + desiredHealthy: 6 properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -234754,9 +249158,9 @@ components: \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string items: - description: '`items` is a list of request-priorities.' + description: Items is a list of PodDisruptionBudgets items: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.PodDisruptionBudget' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -234769,378 +249173,197 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfigurationList + - group: policy + kind: PodDisruptionBudgetList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.PriorityLevelConfigurationReference: - description: PriorityLevelConfigurationReference contains information that points - to the "request-priority" being used. + v1.PodDisruptionBudgetSpec: + description: PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. example: - name: name + minAvailable: minAvailable + maxUnavailable: maxUnavailable + unhealthyPodEvictionPolicy: unhealthyPodEvictionPolicy + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels properties: - name: - description: '`name` is the name of the priority level configuration being - referenced Required.' + maxUnavailable: + description: "IntOrString is a type that can hold an int32 or a string.\ + \ When used in JSON or YAML marshalling and unmarshalling, it produces\ + \ or consumes the inner type. This allows you to have, for example, a\ + \ JSON field that can accept a name or number." + format: int-or-string type: string - required: - - name - type: object - v1.PriorityLevelConfigurationSpec: - description: PriorityLevelConfigurationSpec specifies the configuration of a - priority level. - example: - limited: - lendablePercent: 5 - borrowingLimitPercent: 1 - limitResponse: - queuing: - handSize: 5 - queues: 7 - queueLengthLimit: 2 - type: type - nominalConcurrencyShares: 9 - exempt: - lendablePercent: 0 - nominalConcurrencyShares: 6 - type: type - properties: - exempt: - $ref: '#/components/schemas/v1.ExemptPriorityLevelConfiguration' - limited: - $ref: '#/components/schemas/v1.LimitedPriorityLevelConfiguration' - type: - description: '`type` indicates whether this priority level is subject to - limitation on request execution. A value of `"Exempt"` means that requests - of this priority level are not subject to a limit (and thus are never - queued) and do not detract from the capacity made available to other priority - levels. A value of `"Limited"` means that (a) requests of this priority - level _are_ subject to limits and (b) some of the server''s limited capacity - is made available exclusively to this priority level. Required.' + minAvailable: + description: "IntOrString is a type that can hold an int32 or a string.\ + \ When used in JSON or YAML marshalling and unmarshalling, it produces\ + \ or consumes the inner type. This allows you to have, for example, a\ + \ JSON field that can accept a name or number." + format: int-or-string + type: string + selector: + $ref: '#/components/schemas/v1.LabelSelector' + unhealthyPodEvictionPolicy: + description: |- + UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type="Ready",status="True". + + Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. + + IfHealthyBudget policy means that running pods (status.phase="Running"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. + + AlwaysAllow policy means that all running pods (status.phase="Running"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. + + Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field. type: string - required: - - type type: object - x-kubernetes-unions: - - discriminator: type - fields-to-discriminateBy: - exempt: Exempt - limited: Limited - v1.PriorityLevelConfigurationStatus: - description: PriorityLevelConfigurationStatus represents the current state of - a "request-priority". + v1.PodDisruptionBudgetStatus: + description: PodDisruptionBudgetStatus represents information about the status + of a PodDisruptionBudget. Status may trail the actual state of a system. example: + currentHealthy: 0 + expectedPods: 5 + disruptionsAllowed: 1 + disruptedPods: + key: 2000-01-23T04:56:07.000+00:00 conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status + observedGeneration: 5 + desiredHealthy: 6 properties: conditions: - description: '`conditions` is the current state of "request-priority".' + description: |- + Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute + the number of allowed disruptions. Therefore no disruptions are + allowed and the status of the condition will be False. + - InsufficientPods: The number of pods are either at or below the number + required by the PodDisruptionBudget. No disruptions are + allowed and the status of the condition will be False. + - SufficientPods: There are more pods than required by the PodDisruptionBudget. + The condition will be True, and the number of allowed + disruptions are provided by the disruptionsAllowed property. items: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationCondition' + $ref: '#/components/schemas/v1.Condition' type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map x-kubernetes-list-map-keys: - type x-kubernetes-patch-merge-key: type - type: object - v1.QueuingConfiguration: - description: QueuingConfiguration holds the configuration parameters for queuing - example: - handSize: 5 - queues: 7 - queueLengthLimit: 2 - properties: - handSize: - description: "`handSize` is a small positive number that configures the\ - \ shuffle sharding of requests into queues. When enqueuing a request\ - \ at this priority level the request's flow identifier (a string pair)\ - \ is hashed and the hash value is used to shuffle the list of queues and\ - \ deal a hand of the size specified here. The request is put into one\ - \ of the shortest queues in that hand. `handSize` must be no larger than\ - \ `queues`, and should be significantly smaller (so that a few heavy flows\ - \ do not saturate most of the queues). See the user-facing documentation\ - \ for more extensive guidance on setting this field. This field has a\ - \ default value of 8." + currentHealthy: + description: current number of healthy pods format: int32 type: integer - queueLengthLimit: - description: "`queueLengthLimit` is the maximum number of requests allowed\ - \ to be waiting in a given queue of this priority level at a time; excess\ - \ requests are rejected. This value must be positive. If not specified,\ - \ it will be defaulted to 50." + desiredHealthy: + description: minimum desired number of healthy pods format: int32 type: integer - queues: - description: '`queues` is the number of queues for this priority level. - The queues exist independently at each apiserver. The value must be positive. Setting - it to 1 effectively precludes shufflesharding and thus makes the distinguisher - method of associated flow schemas irrelevant. This field has a default - value of 64.' + disruptedPods: + additionalProperties: + description: Time is a wrapper around time.Time which supports correct + marshaling to YAML and JSON. Wrappers are provided for many of the + factory methods that the time package offers. + format: date-time + type: string + description: DisruptedPods contains information about pods whose eviction + was processed by the API server eviction subresource handler but has not + yet been observed by the PodDisruptionBudget controller. A pod will be + in this map from the time when the API server processed the eviction request + to the time when the pod is seen by PDB controller as having been marked + for deletion (or after a timeout). The key in the map is the name of the + pod and the value is the time when the API server processed the eviction + request. If the deletion didn't occur and a pod is still there it will + be removed from the list automatically by PodDisruptionBudget controller + after some time. If everything goes smooth this map should be empty for + the most of the time. Large number of entries in the map may indicate + problems with pod deletions. + type: object + disruptionsAllowed: + description: Number of pod disruptions that are currently allowed. format: int32 type: integer - type: object - v1.ResourcePolicyRule: - description: "ResourcePolicyRule is a predicate that matches some resource requests,\ - \ testing the request's verb and the target resource. A ResourcePolicyRule\ - \ matches a resource request if and only if: (a) at least one member of verbs\ - \ matches the request, (b) at least one member of apiGroups matches the request,\ - \ (c) at least one member of resources matches the request, and (d) either\ - \ (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`)\ - \ and clusterScope is true or (d2) the request specifies a namespace and least\ - \ one member of namespaces matches the request's namespace." - example: - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - properties: - apiGroups: - description: "`apiGroups` is a list of matching API groups and may not be\ - \ empty. \"*\" matches all API groups and, if present, must be the only\ - \ entry. Required." - items: - type: string - type: array - x-kubernetes-list-type: set - clusterScope: - description: '`clusterScope` indicates whether to match requests that do - not specify a namespace (which happens either because the resource is - not namespaced or the request targets all namespaces). If this field is - omitted or false then the `namespaces` field must contain a non-empty - list.' - type: boolean - namespaces: - description: "`namespaces` is a list of target namespaces that restricts\ - \ matches. A request that specifies a target namespace matches only if\ - \ either (a) this list contains that target namespace or (b) this list\ - \ contains \"*\". Note that \"*\" matches any specified namespace but\ - \ does not match a request that _does not specify_ a namespace (see the\ - \ `clusterScope` field for that). This list may be empty, but only if\ - \ `clusterScope` is true." - items: - type: string - type: array - x-kubernetes-list-type: set - resources: - description: "`resources` is a list of matching resources (i.e., lowercase\ - \ and plural) with, if desired, subresource. For example, [ \"services\"\ - , \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources\ - \ and, if present, must be the only entry. Required." - items: - type: string - type: array - x-kubernetes-list-type: set - verbs: - description: "`verbs` is a list of matching verbs and may not be empty.\ - \ \"*\" matches all verbs and, if present, must be the only entry. Required." - items: - type: string - type: array - x-kubernetes-list-type: set - required: - - apiGroups - - resources - - verbs - type: object - v1.ServiceAccountSubject: - description: ServiceAccountSubject holds detailed information for service-account-kind - subject. - example: - name: name - namespace: namespace - properties: - name: - description: "`name` is the name of matching ServiceAccount objects, or\ - \ \"*\" to match regardless of name. Required." - type: string - namespace: - description: '`namespace` is the namespace of matching ServiceAccount objects. - Required.' - type: string - required: - - name - - namespace - type: object - flowcontrol.v1.Subject: - description: "Subject matches the originator of a request, as identified by\ - \ the request authentication system. There are three ways of matching an originator;\ - \ by user, group, or service account." - example: - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - properties: - group: - $ref: '#/components/schemas/v1.GroupSubject' - kind: - description: '`kind` indicates which one of the other fields is non-empty. - Required' - type: string - serviceAccount: - $ref: '#/components/schemas/v1.ServiceAccountSubject' - user: - $ref: '#/components/schemas/v1.UserSubject' - required: - - kind - type: object - x-kubernetes-unions: - - discriminator: kind - fields-to-discriminateBy: - group: Group - serviceAccount: ServiceAccount - user: User - v1.UserSubject: - description: UserSubject holds detailed information for user-kind subject. - example: - name: name - properties: - name: - description: "`name` is the username that matches, or \"*\" to match all\ - \ usernames. Required." - type: string - required: - - name - type: object - v1.HTTPIngressPath: - description: HTTPIngressPath associates a path with a backend. Incoming urls - matching the path are forwarded to the backend. - example: - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - properties: - backend: - $ref: '#/components/schemas/v1.IngressBackend' - path: - description: path is matched against the path of an incoming request. Currently - it can contain characters disallowed from the conventional "path" part - of a URL as defined by RFC 3986. Paths must begin with a '/' and must - be present when using PathType with value "Exact" or "Prefix". - type: string - pathType: - description: |- - pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is - done on a path element by element basis. A path element refers is the - list of labels in the path split by the '/' separator. A request is a - match for path p if every p is an element-wise prefix of p of the - request path. Note that if the last element of the path is a substring - of the last element in request path, it is not a match (e.g. /foo/bar - matches /foo/bar/baz, but does not match /foo/barbaz). - * ImplementationSpecific: Interpretation of the Path matching is up to - the IngressClass. Implementations can treat this as a separate PathType - or treat it identically to Prefix or Exact path types. - Implementations are required to support all path types. - type: string - required: - - backend - - pathType - type: object - v1.HTTPIngressRuleValue: - description: "HTTPIngressRuleValue is a list of http selectors pointing to backends.\ - \ In the example: http:///? -> backend where where\ - \ parts of the url correspond to RFC 3986, this resource will be used to match\ - \ against everything after the last '/' and before the first '?' or '#'." - example: - paths: - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - properties: - paths: - description: paths is a collection of paths that map requests to backends. - items: - $ref: '#/components/schemas/v1.HTTPIngressPath' - type: array - x-kubernetes-list-type: atomic + expectedPods: + description: total number of pods counted by this disruption budget + format: int32 + type: integer + observedGeneration: + description: Most recent generation observed when updating this PDB status. + DisruptionsAllowed and other status information is valid only if observedGeneration + equals to PDB's object generation. + format: int64 + type: integer required: - - paths + - currentHealthy + - desiredHealthy + - disruptionsAllowed + - expectedPods type: object - v1.IPBlock: - description: "IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"\ - 2001:db8::/64\") that is allowed to the pods matched by a NetworkPolicySpec's\ - \ podSelector. The except entry describes CIDRs that should not be included\ - \ within this rule." + v1.AggregationRule: + description: AggregationRule describes how to locate ClusterRoles to aggregate + into the ClusterRole example: - cidr: cidr - except: - - except - - except + clusterRoleSelectors: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels properties: - cidr: - description: cidr is a string representing the IPBlock Valid examples are - "192.168.1.0/24" or "2001:db8::/64" - type: string - except: - description: except is a slice of CIDRs that should not be included within - an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except - values will be rejected if they are outside the cidr range + clusterRoleSelectors: + description: "ClusterRoleSelectors holds a list of selectors which will\ + \ be used to find ClusterRoles and create the rules. If any of the selectors\ + \ match, then the ClusterRole's permissions will be added" items: - type: string + $ref: '#/components/schemas/v1.LabelSelector' type: array x-kubernetes-list-type: atomic - required: - - cidr type: object - v1.Ingress: - description: "Ingress is a collection of rules that allow inbound connections\ - \ to reach the endpoints defined by a backend. An Ingress can be configured\ - \ to give services externally-reachable urls, load balance traffic, terminate\ - \ SSL, offer name based virtual hosting etc." + v1.ClusterRole: + description: "ClusterRole is a cluster level, logical grouping of PolicyRules\ + \ that can be referenced as a unit by a RoleBinding or ClusterRoleBinding." example: metadata: generation: 6 @@ -235188,106 +249411,70 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace + aggregationRule: + clusterRoleSelectors: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels apiVersion: apiVersion kind: kind - spec: - defaultBackend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - ingressClassName: ingressClassName - rules: - - host: host - http: - paths: - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - host: host - http: - paths: - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - tls: - - secretName: secretName - hosts: - - hosts - - hosts - - secretName: secretName - hosts: - - hosts - - hosts - status: - loadBalancer: - ingress: - - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error - - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error + rules: + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs properties: + aggregationRule: + $ref: '#/components/schemas/v1.AggregationRule' apiVersion: description: "APIVersion defines the versioned schema of this representation\ \ of an object. Servers should convert recognized schemas to the latest\ @@ -235300,43 +249487,23 @@ components: type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.IngressSpec' - status: - $ref: '#/components/schemas/v1.IngressStatus' + rules: + description: Rules holds all the PolicyRules for this ClusterRole + items: + $ref: '#/components/schemas/v1.PolicyRule' + type: array + x-kubernetes-list-type: atomic type: object x-kubernetes-group-version-kind: - - group: networking.k8s.io - kind: Ingress + - group: rbac.authorization.k8s.io + kind: ClusterRole version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.IngressBackend: - description: IngressBackend describes all endpoints for a given service and - port. - example: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - properties: - resource: - $ref: '#/components/schemas/v1.TypedLocalObjectReference' - service: - $ref: '#/components/schemas/v1.IngressServiceBackend' - type: object - v1.IngressClass: - description: "IngressClass represents the class of the Ingress, referenced by\ - \ the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation\ - \ can be used to indicate that an IngressClass should be considered default.\ - \ When a single IngressClass resource has this annotation set to true, new\ - \ Ingress resources without a class specified will be assigned this default\ - \ class." + v1.ClusterRoleBinding: + description: "ClusterRoleBinding references a ClusterRole, but not contain it.\ + \ It can reference a ClusterRole in the global namespace, and adds who information\ + \ via Subject." example: metadata: generation: 6 @@ -235386,14 +249553,19 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - spec: - controller: controller - parameters: - apiGroup: apiGroup - kind: kind - scope: scope - name: name - namespace: namespace + subjects: + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + roleRef: + apiGroup: apiGroup + kind: kind + name: name properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -235407,17 +249579,25 @@ components: type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.IngressClassSpec' + roleRef: + $ref: '#/components/schemas/v1.RoleRef' + subjects: + description: Subjects holds references to the objects the role applies to. + items: + $ref: '#/components/schemas/rbac.v1.Subject' + type: array + x-kubernetes-list-type: atomic + required: + - roleRef type: object x-kubernetes-group-version-kind: - - group: networking.k8s.io - kind: IngressClass + - group: rbac.authorization.k8s.io + kind: ClusterRoleBinding version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.IngressClassList: - description: IngressClassList is a collection of IngressClasses. + v1.ClusterRoleBindingList: + description: ClusterRoleBindingList is a collection of ClusterRoleBindings example: metadata: remainingItemCount: 1 @@ -235475,14 +249655,19 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - spec: - controller: controller - parameters: - apiGroup: apiGroup - kind: kind - scope: scope - name: name - namespace: namespace + subjects: + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + roleRef: + apiGroup: apiGroup + kind: kind + name: name - metadata: generation: 6 finalizers: @@ -235531,14 +249716,19 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - spec: - controller: controller - parameters: - apiGroup: apiGroup - kind: kind - scope: scope - name: name - namespace: namespace + subjects: + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + roleRef: + apiGroup: apiGroup + kind: kind + name: name properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -235546,9 +249736,9 @@ components: \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string items: - description: items is the list of IngressClasses. + description: Items is a list of ClusterRoleBindings items: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.ClusterRoleBinding' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -235561,69 +249751,13 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: networking.k8s.io - kind: IngressClassList + - group: rbac.authorization.k8s.io + kind: ClusterRoleBindingList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.IngressClassParametersReference: - description: IngressClassParametersReference identifies an API object. This - can be used to specify a cluster or namespace-scoped resource. - example: - apiGroup: apiGroup - kind: kind - scope: scope - name: name - namespace: namespace - properties: - apiGroup: - description: "apiGroup is the group for the resource being referenced. If\ - \ APIGroup is not specified, the specified Kind must be in the core API\ - \ group. For any other third-party types, APIGroup is required." - type: string - kind: - description: kind is the type of resource being referenced. - type: string - name: - description: name is the name of resource being referenced. - type: string - namespace: - description: namespace is the namespace of the resource being referenced. - This field is required when scope is set to "Namespace" and must be unset - when scope is set to "Cluster". - type: string - scope: - description: scope represents if this refers to a cluster or namespace scoped - resource. This may be set to "Cluster" (default) or "Namespace". - type: string - required: - - kind - - name - type: object - v1.IngressClassSpec: - description: IngressClassSpec provides information about the class of an Ingress. - example: - controller: controller - parameters: - apiGroup: apiGroup - kind: kind - scope: scope - name: name - namespace: namespace - properties: - controller: - description: "controller refers to the name of the controller that should\ - \ handle this class. This allows for different \"flavors\" that are controlled\ - \ by the same controller. For example, you may have different parameters\ - \ for the same implementing controller. This should be specified as a\ - \ domain-prefixed path no more than 250 characters in length, e.g. \"\ - acme.io/ingress-controller\". This field is immutable." - type: string - parameters: - $ref: '#/components/schemas/v1.IngressClassParametersReference' - type: object - v1.IngressList: - description: IngressList is a collection of Ingress. + v1.ClusterRoleList: + description: ClusterRoleList is a collection of ClusterRoles example: metadata: remainingItemCount: 1 @@ -235679,105 +249813,67 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace + aggregationRule: + clusterRoleSelectors: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels apiVersion: apiVersion kind: kind - spec: - defaultBackend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - ingressClassName: ingressClassName - rules: - - host: host - http: - paths: - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - host: host - http: - paths: - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - tls: - - secretName: secretName - hosts: - - hosts - - hosts - - secretName: secretName - hosts: - - hosts - - hosts - status: - loadBalancer: - ingress: - - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error - - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error + rules: + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs - metadata: generation: 6 finalizers: @@ -235824,105 +249920,67 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace + aggregationRule: + clusterRoleSelectors: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels apiVersion: apiVersion kind: kind - spec: - defaultBackend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - ingressClassName: ingressClassName - rules: - - host: host - http: - paths: - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - host: host - http: - paths: - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - tls: - - secretName: secretName - hosts: - - hosts - - hosts - - secretName: secretName - hosts: - - hosts - - hosts - status: - loadBalancer: - ingress: - - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error - - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error + rules: + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -235930,9 +249988,9 @@ components: \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string items: - description: items is the list of Ingress. + description: Items is a list of ClusterRoles items: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.ClusterRole' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -235945,340 +250003,79 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: networking.k8s.io - kind: IngressList + - group: rbac.authorization.k8s.io + kind: ClusterRoleList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.IngressLoadBalancerIngress: - description: IngressLoadBalancerIngress represents the status of a load-balancer - ingress point. + v1.PolicyRule: + description: "PolicyRule holds information that describes a policy rule, but\ + \ does not contain information about who the rule applies to or which namespace\ + \ the rule applies to." example: - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error + resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs properties: - hostname: - description: hostname is set for load-balancer ingress points that are DNS - based. - type: string - ip: - description: ip is set for load-balancer ingress points that are IP based. - type: string - ports: - description: ports provides information about the ports exposed by this - LoadBalancer. + apiGroups: + description: "APIGroups is the name of the APIGroup that contains the resources.\ + \ If multiple API groups are specified, any action requested against\ + \ one of the enumerated resources in any API group will be allowed. \"\ + \" represents the core API group and \"*\" represents all API groups." items: - $ref: '#/components/schemas/v1.IngressPortStatus' + type: string type: array x-kubernetes-list-type: atomic - type: object - v1.IngressLoadBalancerStatus: - description: IngressLoadBalancerStatus represents the status of a load-balancer. - example: - ingress: - - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error - - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error - properties: - ingress: - description: ingress is a list containing ingress points for the load-balancer. + nonResourceURLs: + description: "NonResourceURLs is a set of partial urls that a user should\ + \ have access to. *s are allowed, but only as the full, final step in\ + \ the path Since non-resource URLs are not namespaced, this field is only\ + \ applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules\ + \ can either apply to API resources (such as \"pods\" or \"secrets\")\ + \ or non-resource URL paths (such as \"/api\"), but not both." items: - $ref: '#/components/schemas/v1.IngressLoadBalancerIngress' + type: string type: array x-kubernetes-list-type: atomic - type: object - v1.IngressPortStatus: - description: IngressPortStatus represents the error condition of a service port - example: - protocol: protocol - port: 6 - error: error - properties: - error: - description: |- - error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use - CamelCase names - - cloud provider specific error values must have names that comply with the - format foo.example.com/CamelCase. - type: string - port: - description: port is the port number of the ingress port. - format: int32 - type: integer - protocol: - description: "protocol is the protocol of the ingress port. The supported\ - \ values are: \"TCP\", \"UDP\", \"SCTP\"" - type: string - required: - - port - - protocol - type: object - v1.IngressRule: - description: "IngressRule represents the rules mapping the paths under a specified\ - \ host to the related backend services. Incoming requests are first evaluated\ - \ for a host match, then routed to the backend associated with the matching\ - \ IngressRuleValue." - example: - host: host - http: - paths: - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - properties: - host: - description: "host is the fully qualified domain name of a network host,\ - \ as defined by RFC 3986. Note the following deviations from the \"host\"\ - \ part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently\ - \ an IngressRuleValue can only apply to\n the IP in the Spec of the\ - \ parent Ingress.\n2. The `:` delimiter is not respected because ports\ - \ are not allowed.\n\t Currently the port of an Ingress is implicitly\ - \ :80 for http and\n\t :443 for https.\nBoth these may change in the\ - \ future. Incoming requests are matched against the host before the IngressRuleValue.\ - \ If the host is unspecified, the Ingress routes all traffic based on\ - \ the specified IngressRuleValue.\n\nhost can be \"precise\" which is\ - \ a domain name without the terminating dot of a network host (e.g. \"\ - foo.bar.com\") or \"wildcard\", which is a domain name prefixed with a\ - \ single wildcard label (e.g. \"*.foo.com\"). The wildcard character '*'\ - \ must appear by itself as the first DNS label and matches only a single\ - \ label. You cannot have a wildcard label by itself (e.g. Host == \"*\"\ - ). Requests will be matched against the Host field in the following way:\ - \ 1. If host is precise, the request matches this rule if the http host\ - \ header is equal to Host. 2. If host is a wildcard, then the request\ - \ matches this rule if the http host header is to equal to the suffix\ - \ (removing the first label) of the wildcard rule." - type: string - http: - $ref: '#/components/schemas/v1.HTTPIngressRuleValue' - type: object - v1.IngressServiceBackend: - description: IngressServiceBackend references a Kubernetes Service as a Backend. - example: - port: - number: 0 - name: name - name: name - properties: - name: - description: name is the referenced service. The service must exist in the - same namespace as the Ingress object. - type: string - port: - $ref: '#/components/schemas/v1.ServiceBackendPort' - required: - - name - type: object - v1.IngressSpec: - description: IngressSpec describes the Ingress the user wishes to exist. - example: - defaultBackend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - ingressClassName: ingressClassName - rules: - - host: host - http: - paths: - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - host: host - http: - paths: - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - tls: - - secretName: secretName - hosts: - - hosts - - hosts - - secretName: secretName - hosts: - - hosts - - hosts - properties: - defaultBackend: - $ref: '#/components/schemas/v1.IngressBackend' - ingressClassName: - description: "ingressClassName is the name of an IngressClass cluster resource.\ - \ Ingress controller implementations use this field to know whether they\ - \ should be serving this Ingress resource, by a transitive connection\ - \ (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class`\ - \ annotation (simple constant name) was never formally defined, it was\ - \ widely supported by Ingress controllers to create a direct binding between\ - \ Ingress controller and Ingress resources. Newly created Ingress resources\ - \ should prefer using the field. However, even though the annotation is\ - \ officially deprecated, for backwards compatibility reasons, ingress\ - \ controllers should still honor that annotation if present." - type: string - rules: - description: "rules is a list of host rules used to configure the Ingress.\ - \ If unspecified, or no rule matches, all traffic is sent to the default\ - \ backend." + resourceNames: + description: ResourceNames is an optional white list of names that the rule + applies to. An empty set means that everything is allowed. items: - $ref: '#/components/schemas/v1.IngressRule' + type: string type: array x-kubernetes-list-type: atomic - tls: - description: "tls represents the TLS configuration. Currently the Ingress\ - \ only supports a single TLS port, 443. If multiple members of this list\ - \ specify different hosts, they will be multiplexed on the same port according\ - \ to the hostname specified through the SNI TLS extension, if the ingress\ - \ controller fulfilling the ingress supports SNI." + resources: + description: Resources is a list of resources this rule applies to. '*' + represents all resources. items: - $ref: '#/components/schemas/v1.IngressTLS' + type: string type: array x-kubernetes-list-type: atomic - type: object - v1.IngressStatus: - description: IngressStatus describe the current state of the Ingress. - example: - loadBalancer: - ingress: - - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error - - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error - properties: - loadBalancer: - $ref: '#/components/schemas/v1.IngressLoadBalancerStatus' - type: object - v1.IngressTLS: - description: IngressTLS describes the transport layer security associated with - an ingress. - example: - secretName: secretName - hosts: - - hosts - - hosts - properties: - hosts: - description: "hosts is a list of hosts included in the TLS certificate.\ - \ The values in this list must match the name/s used in the tlsSecret.\ - \ Defaults to the wildcard host setting for the loadbalancer controller\ - \ fulfilling this Ingress, if left unspecified." + verbs: + description: Verbs is a list of Verbs that apply to ALL the ResourceKinds + contained in this rule. '*' represents all verbs. items: type: string type: array x-kubernetes-list-type: atomic - secretName: - description: "secretName is the name of the secret used to terminate TLS\ - \ traffic on port 443. Field is left optional to allow TLS routing based\ - \ on SNI hostname alone. If the SNI host in a listener conflicts with\ - \ the \"Host\" header field used by an IngressRule, the SNI host is used\ - \ for termination and value of the \"Host\" header is used for routing." - type: string + required: + - verbs type: object - v1.NetworkPolicy: - description: NetworkPolicy describes what network traffic is allowed for a set - of Pods + v1.Role: + description: "Role is a namespaced, logical grouping of PolicyRules that can\ + \ be referenced as a unit by a RoleBinding." example: metadata: generation: 6 @@ -236328,322 +250125,131 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - spec: - ingress: - - from: - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ports: - - protocol: protocol - port: port - endPort: 0 - - protocol: protocol - port: port - endPort: 0 - - from: - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ports: - - protocol: protocol - port: port - endPort: 0 - - protocol: protocol - port: port - endPort: 0 - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - policyTypes: - - policyTypes - - policyTypes - egress: - - to: - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ports: - - protocol: protocol - port: port - endPort: 0 - - protocol: protocol - port: port - endPort: 0 - - to: - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ports: - - protocol: protocol - port: port - endPort: 0 - - protocol: protocol - port: port - endPort: 0 + rules: + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + rules: + description: Rules holds all the PolicyRules for this Role + items: + $ref: '#/components/schemas/v1.PolicyRule' + type: array + x-kubernetes-list-type: atomic + type: object + x-kubernetes-group-version-kind: + - group: rbac.authorization.k8s.io + kind: Role + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.RoleBinding: + description: "RoleBinding references a role, but does not contain it. It can\ + \ reference a Role in the same namespace or a ClusterRole in the global namespace.\ + \ It adds who information via Subjects and namespace information by which\ + \ namespace it exists in. RoleBindings in a given namespace only have effect\ + \ in that namespace." + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + subjects: + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + roleRef: + apiGroup: apiGroup + kind: kind + name: name properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -236657,223 +250263,25 @@ components: type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.NetworkPolicySpec' + roleRef: + $ref: '#/components/schemas/v1.RoleRef' + subjects: + description: Subjects holds references to the objects the role applies to. + items: + $ref: '#/components/schemas/rbac.v1.Subject' + type: array + x-kubernetes-list-type: atomic + required: + - roleRef type: object x-kubernetes-group-version-kind: - - group: networking.k8s.io - kind: NetworkPolicy + - group: rbac.authorization.k8s.io + kind: RoleBinding version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.NetworkPolicyEgressRule: - description: NetworkPolicyEgressRule describes a particular set of traffic that - is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic - must match both ports and to. This type is beta-level in 1.8 - example: - to: - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ports: - - protocol: protocol - port: port - endPort: 0 - - protocol: protocol - port: port - endPort: 0 - properties: - ports: - description: "ports is a list of destination ports for outgoing traffic.\ - \ Each item in this list is combined using a logical OR. If this field\ - \ is empty or missing, this rule matches all ports (traffic not restricted\ - \ by port). If this field is present and contains at least one item, then\ - \ this rule allows traffic only if the traffic matches at least one port\ - \ in the list." - items: - $ref: '#/components/schemas/v1.NetworkPolicyPort' - type: array - x-kubernetes-list-type: atomic - to: - description: "to is a list of destinations for outgoing traffic of pods\ - \ selected for this rule. Items in this list are combined using a logical\ - \ OR operation. If this field is empty or missing, this rule matches all\ - \ destinations (traffic not restricted by destination). If this field\ - \ is present and contains at least one item, this rule allows traffic\ - \ only if the traffic matches at least one item in the to list." - items: - $ref: '#/components/schemas/v1.NetworkPolicyPeer' - type: array - x-kubernetes-list-type: atomic - type: object - v1.NetworkPolicyIngressRule: - description: NetworkPolicyIngressRule describes a particular set of traffic - that is allowed to the pods matched by a NetworkPolicySpec's podSelector. - The traffic must match both ports and from. - example: - from: - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ports: - - protocol: protocol - port: port - endPort: 0 - - protocol: protocol - port: port - endPort: 0 - properties: - from: - description: "from is a list of sources which should be able to access the\ - \ pods selected for this rule. Items in this list are combined using a\ - \ logical OR operation. If this field is empty or missing, this rule matches\ - \ all sources (traffic not restricted by source). If this field is present\ - \ and contains at least one item, this rule allows traffic only if the\ - \ traffic matches at least one item in the from list." - items: - $ref: '#/components/schemas/v1.NetworkPolicyPeer' - type: array - x-kubernetes-list-type: atomic - ports: - description: "ports is a list of ports which should be made accessible on\ - \ the pods selected for this rule. Each item in this list is combined\ - \ using a logical OR. If this field is empty or missing, this rule matches\ - \ all ports (traffic not restricted by port). If this field is present\ - \ and contains at least one item, then this rule allows traffic only if\ - \ the traffic matches at least one port in the list." - items: - $ref: '#/components/schemas/v1.NetworkPolicyPort' - type: array - x-kubernetes-list-type: atomic - type: object - v1.NetworkPolicyList: - description: NetworkPolicyList is a list of NetworkPolicy objects. + v1.RoleBindingList: + description: RoleBindingList is a collection of RoleBindings example: metadata: remainingItemCount: 1 @@ -236931,322 +250339,19 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - spec: - ingress: - - from: - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ports: - - protocol: protocol - port: port - endPort: 0 - - protocol: protocol - port: port - endPort: 0 - - from: - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ports: - - protocol: protocol - port: port - endPort: 0 - - protocol: protocol - port: port - endPort: 0 - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - policyTypes: - - policyTypes - - policyTypes - egress: - - to: - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ports: - - protocol: protocol - port: port - endPort: 0 - - protocol: protocol - port: port - endPort: 0 - - to: - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ports: - - protocol: protocol - port: port - endPort: 0 - - protocol: protocol - port: port - endPort: 0 + subjects: + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + roleRef: + apiGroup: apiGroup + kind: kind + name: name - metadata: generation: 6 finalizers: @@ -237295,322 +250400,215 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - spec: - ingress: - - from: - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ports: - - protocol: protocol - port: port - endPort: 0 - - protocol: protocol - port: port - endPort: 0 - - from: - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ports: - - protocol: protocol - port: port - endPort: 0 - - protocol: protocol - port: port - endPort: 0 - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - policyTypes: - - policyTypes - - policyTypes - egress: - - to: - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ports: - - protocol: protocol - port: port - endPort: 0 - - protocol: protocol - port: port - endPort: 0 - - to: - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ports: - - protocol: protocol - port: port - endPort: 0 - - protocol: protocol - port: port - endPort: 0 + subjects: + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + roleRef: + apiGroup: apiGroup + kind: kind + name: name + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: Items is a list of RoleBindings + items: + $ref: '#/components/schemas/v1.RoleBinding' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: rbac.authorization.k8s.io + kind: RoleBindingList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.RoleList: + description: RoleList is a collection of Roles + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + rules: + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + rules: + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -237618,9 +250616,9 @@ components: \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string items: - description: items is a list of schema objects. + description: Items is a list of Roles items: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Role' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -237633,164 +250631,524 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: networking.k8s.io - kind: NetworkPolicyList + - group: rbac.authorization.k8s.io + kind: RoleList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.NetworkPolicyPeer: - description: NetworkPolicyPeer describes a peer to allow traffic to/from. Only - certain combinations of fields are allowed + v1.RoleRef: + description: RoleRef contains information that points to the role being used example: - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels + apiGroup: apiGroup + kind: kind + name: name properties: - ipBlock: - $ref: '#/components/schemas/v1.IPBlock' - namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' - podSelector: - $ref: '#/components/schemas/v1.LabelSelector' + apiGroup: + description: APIGroup is the group for the resource being referenced + type: string + kind: + description: Kind is the type of resource being referenced + type: string + name: + description: Name is the name of resource being referenced + type: string + required: + - apiGroup + - kind + - name type: object - v1.NetworkPolicyPort: - description: NetworkPolicyPort describes a port to allow traffic on + x-kubernetes-map-type: atomic + rbac.v1.Subject: + description: "Subject contains a reference to the object or user identities\ + \ a role binding applies to. This can either hold a direct API object reference,\ + \ or a value for non-objects such as user and group names." example: - protocol: protocol - port: port - endPort: 0 + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace properties: - endPort: - description: "endPort indicates that the range of ports from port to endPort\ - \ if set, inclusive, should be allowed by the policy. This field cannot\ - \ be defined if the port field is not defined or if the port field is\ - \ defined as a named (string) port. The endPort must be equal or greater\ - \ than port." - format: int32 - type: integer - port: - description: "IntOrString is a type that can hold an int32 or a string.\ - \ When used in JSON or YAML marshalling and unmarshalling, it produces\ - \ or consumes the inner type. This allows you to have, for example, a\ - \ JSON field that can accept a name or number." - format: int-or-string + apiGroup: + description: APIGroup holds the API group of the referenced subject. Defaults + to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" + for User and Group subjects. type: string - protocol: - description: "protocol represents the protocol (TCP, UDP, or SCTP) which\ - \ traffic must match. If not specified, this field defaults to TCP." + kind: + description: "Kind of object being referenced. Values defined by this API\ + \ group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer\ + \ does not recognized the kind value, the Authorizer should report an\ + \ error." + type: string + name: + description: Name of the object being referenced. + type: string + namespace: + description: "Namespace of the referenced object. If the object kind is\ + \ non-namespace, such as \"User\" or \"Group\", and this value is not\ + \ empty the Authorizer should report an error." + type: string + required: + - kind + - name + type: object + x-kubernetes-map-type: atomic + v1alpha3.AllocatedDeviceStatus: + description: "AllocatedDeviceStatus contains the status of an allocated device,\ + \ if the driver chooses to report it. This may include driver-specific information." + example: + data: "{}" + driver: driver + networkData: + hardwareAddress: hardwareAddress + interfaceName: interfaceName + ips: + - ips + - ips + pool: pool + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + device: device + properties: + conditions: + description: |- + Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True. + + Must not contain more than 8 entries. + items: + $ref: '#/components/schemas/v1.Condition' + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + data: + description: |- + Data contains arbitrary driver-specific data. + + The length of the raw data must be smaller or equal to 10 Ki. + properties: {} + type: object + device: + description: Device references one device instance via its name in the driver's + resource pool. It must be a DNS label. + type: string + driver: + description: |- + Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. + + Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. + type: string + networkData: + $ref: '#/components/schemas/v1alpha3.NetworkDeviceData' + pool: + description: |- + This name together with the driver name and the device name field identify which device was allocated (`//`). + + Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. type: string + required: + - device + - driver + - pool type: object - v1.NetworkPolicySpec: - description: NetworkPolicySpec provides the specification of a NetworkPolicy + v1alpha3.AllocationResult: + description: AllocationResult contains attributes of an allocated resource. example: - ingress: - - from: - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ports: - - protocol: protocol - port: port - endPort: 0 - - protocol: protocol - port: port - endPort: 0 - - from: - - podSelector: - matchExpressions: + devices: + config: + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + source: source + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + source: source + results: + - request: request + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + driver: driver + pool: pool + device: device + - request: request + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + driver: driver + pool: pool + device: device + nodeSelector: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + properties: + devices: + $ref: '#/components/schemas/v1alpha3.DeviceAllocationResult' + nodeSelector: + $ref: '#/components/schemas/v1.NodeSelector' + type: object + v1alpha3.BasicDevice: + description: BasicDevice defines one device instance. + example: + nodeName: nodeName + consumesCounters: + - counters: + key: + value: value + counterSet: counterSet + - counters: + key: + value: value + counterSet: counterSet + attributes: + key: + bool: true + string: string + version: version + int: 0 + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + allNodes: true + capacity: + key: null + nodeSelector: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + properties: + allNodes: + description: |- + AllNodes indicates that all nodes have access to the device. + + Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. + type: boolean + attributes: + additionalProperties: + $ref: '#/components/schemas/v1alpha3.DeviceAttribute' + description: |- + Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. + + The maximum number of attributes and capacities combined is 32. + type: object + capacity: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: |- + Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. + + The maximum number of attributes and capacities combined is 32. + type: object + consumesCounters: + description: |- + ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. + + There can only be a single entry per counterSet. + + The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). + items: + $ref: '#/components/schemas/v1alpha3.DeviceCounterConsumption' + type: array + x-kubernetes-list-type: atomic + nodeName: + description: |- + NodeName identifies the node where the device is available. + + Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. + type: string + nodeSelector: + $ref: '#/components/schemas/v1.NodeSelector' + taints: + description: |- + If specified, these are the driver-defined taints. + + The maximum number of taints is 4. + + This is an alpha field and requires enabling the DRADeviceTaints feature gate. + items: + $ref: '#/components/schemas/v1alpha3.DeviceTaint' + type: array + x-kubernetes-list-type: atomic + type: object + v1alpha3.CELDeviceSelector: + description: CELDeviceSelector contains a CEL expression for selecting a device. + example: + expression: expression + properties: + expression: + description: |- + Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. + + The expression's input is an object named "device", which carries the following properties: + - driver (string): the name of the driver which defines this device. + - attributes (map[string]object): the device's attributes, grouped by prefix + (e.g. device.attributes["dra.example.com"] evaluates to an object with all + of the attributes which were prefixed by "dra.example.com". + - capacity (map[string]object): the device's capacities, grouped by prefix. + + Example: Consider a device with driver="dra.example.com", which exposes two attributes named "model" and "ext.example.com/family" and which exposes one capacity named "modules". This input to this expression would have the following fields: + + device.driver + device.attributes["dra.example.com"].model + device.attributes["ext.example.com"].family + device.capacity["dra.example.com"].modules + + The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. + + The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. + + If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. + + A robust expression should check for the existence of attributes before referencing them. + + For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: + + cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool) + + The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. + type: string + required: + - expression + type: object + v1alpha3.Counter: + description: Counter describes a quantity associated with a device. + example: + value: value + properties: + value: + description: "Quantity is a fixed-point representation of a number. It provides\ + \ convenient marshaling/unmarshaling in JSON and YAML, in addition to\ + \ String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\ + ``` ::= \n\n\t(Note that \ + \ may be empty, from the \"\" case in .)\n\n \ + \ ::= 0 | 1 | ... | 9 ::= | \ + \ ::= | . | . | .\ + \ ::= \"+\" | \"-\" ::= |\ + \ ::= | \ + \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ + \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ + \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ + \ ::= \"e\" | \"E\" ```\n\nNo matter which\ + \ of the three exponent forms is used, no quantity may represent a number\ + \ greater than 2^63-1 in magnitude, nor may it have more than 3 decimal\ + \ places. Numbers larger or more precise will be capped or rounded up.\ + \ (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future\ + \ if we require larger or smaller quantities.\n\nWhen a Quantity is parsed\ + \ from a string, it will remember the type of suffix it had, and will\ + \ use the same type again when it is serialized.\n\nBefore serializing,\ + \ Quantity will be put in \"canonical form\". This means that Exponent/suffix\ + \ will be adjusted up or down (with a corresponding increase or decrease\ + \ in Mantissa) such that:\n\n- No precision is lost - No fractional digits\ + \ will be emitted - The exponent (or suffix) is as large as possible.\n\ + \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ + \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ + \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ + \ by a floating point number. That is the whole point of this exercise.\n\ + \nNon-canonical values will still parse as long as they are well formed,\ + \ but will be re-emitted in their canonical form. (So always use canonical\ + \ form, or don't diff.)\n\nThis format is intended to make it difficult\ + \ to use these numbers without writing some sort of special handling code\ + \ in the hopes that that will cause implementors to also use a fixed point\ + \ implementation." + format: quantity + type: string + required: + - value + type: object + v1alpha3.CounterSet: + description: |- + CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. + + The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. + example: + counters: + key: + value: value + name: name + properties: + counters: + additionalProperties: + $ref: '#/components/schemas/v1alpha3.Counter' + description: |- + Counters defines the counters that will be consumed by the device. The name of each counter must be unique in that set and must be a DNS label. + + To ensure this uniqueness, capacities defined by the vendor must be listed without the driver name as domain prefix in their name. All others must be listed with their domain prefix. + + The maximum number of counters is 32. + type: object + name: + description: CounterSet is the name of the set from which the counters defined + will be consumed. + type: string + required: + - counters + - name + type: object + v1alpha3.Device: + description: "Device represents one individual hardware instance that can be\ + \ selected based on its attributes. Besides the name, exactly one field must\ + \ be set." + example: + name: name + basic: + nodeName: nodeName + consumesCounters: + - counters: + key: + value: value + counterSet: counterSet + - counters: + key: + value: value + counterSet: counterSet + attributes: + key: + bool: true + string: string + version: version + int: 0 + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + allNodes: true + capacity: + key: null + nodeSelector: + nodeSelectorTerms: + - matchExpressions: - values: - values - values @@ -237801,15 +251159,7 @@ components: - values key: key operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: + matchFields: - values: - values - values @@ -237820,10 +251170,7 @@ components: - values key: key operator: operator - matchLabels: - key: matchLabels - - podSelector: - matchExpressions: + - matchExpressions: - values: - values - values @@ -237834,15 +251181,7 @@ components: - values key: key operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: + matchFields: - values: - values - values @@ -237853,256 +251192,339 @@ components: - values key: key operator: operator - matchLabels: - key: matchLabels - ports: - - protocol: protocol - port: port - endPort: 0 - - protocol: protocol - port: port - endPort: 0 - podSelector: - matchExpressions: - - values: - - values - - values + properties: + basic: + $ref: '#/components/schemas/v1alpha3.BasicDevice' + name: + description: Name is unique identifier among all devices managed by the + driver in the pool. It must be a DNS label. + type: string + required: + - name + type: object + v1alpha3.DeviceAllocationConfiguration: + description: DeviceAllocationConfiguration gets embedded in an AllocationResult. + example: + opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + source: source + properties: + opaque: + $ref: '#/components/schemas/v1alpha3.OpaqueDeviceConfiguration' + requests: + description: |- + Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. + + References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the configuration applies to all subrequests. + items: + type: string + type: array + x-kubernetes-list-type: atomic + source: + description: Source records whether the configuration comes from a class + and thus is not something that a normal user would have been able to set + or from a claim. + type: string + required: + - source + type: object + v1alpha3.DeviceAllocationResult: + description: DeviceAllocationResult is the result of allocating devices. + example: + config: + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + source: source + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + source: source + results: + - request: request + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value key: key operator: operator - - values: - - values - - values + - effect: effect + tolerationSeconds: 1 + value: value key: key operator: operator - matchLabels: - key: matchLabels - policyTypes: - - policyTypes - - policyTypes - egress: - - to: - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ports: - - protocol: protocol - port: port - endPort: 0 - - protocol: protocol - port: port - endPort: 0 - - to: - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - podSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - ports: - - protocol: protocol - port: port - endPort: 0 - - protocol: protocol - port: port - endPort: 0 + driver: driver + pool: pool + device: device + - request: request + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + driver: driver + pool: pool + device: device properties: - egress: - description: "egress is a list of egress rules to be applied to the selected\ - \ pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting\ - \ the pod (and cluster policy otherwise allows the traffic), OR if the\ - \ traffic matches at least one egress rule across all of the NetworkPolicy\ - \ objects whose podSelector matches the pod. If this field is empty then\ - \ this NetworkPolicy limits all outgoing traffic (and serves solely to\ - \ ensure that the pods it selects are isolated by default). This field\ - \ is beta-level in 1.8" + config: + description: |- + This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag. + + This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters. items: - $ref: '#/components/schemas/v1.NetworkPolicyEgressRule' + $ref: '#/components/schemas/v1alpha3.DeviceAllocationConfiguration' type: array x-kubernetes-list-type: atomic - ingress: - description: "ingress is a list of ingress rules to be applied to the selected\ - \ pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting\ - \ the pod (and cluster policy otherwise allows the traffic), OR if the\ - \ traffic source is the pod's local node, OR if the traffic matches at\ - \ least one ingress rule across all of the NetworkPolicy objects whose\ - \ podSelector matches the pod. If this field is empty then this NetworkPolicy\ - \ does not allow any traffic (and serves solely to ensure that the pods\ - \ it selects are isolated by default)" + results: + description: Results lists all allocated devices. items: - $ref: '#/components/schemas/v1.NetworkPolicyIngressRule' + $ref: '#/components/schemas/v1alpha3.DeviceRequestAllocationResult' type: array x-kubernetes-list-type: atomic - podSelector: - $ref: '#/components/schemas/v1.LabelSelector' - policyTypes: - description: "policyTypes is a list of rule types that the NetworkPolicy\ - \ relates to. Valid options are [\"Ingress\"], [\"Egress\"], or [\"Ingress\"\ - , \"Egress\"]. If this field is not specified, it will default based on\ - \ the existence of ingress or egress rules; policies that contain an egress\ - \ section are assumed to affect egress, and all policies (whether or not\ - \ they contain an ingress section) are assumed to affect ingress. If you\ - \ want to write an egress-only policy, you must explicitly specify policyTypes\ - \ [ \"Egress\" ]. Likewise, if you want to write a policy that specifies\ - \ that no egress is allowed, you must specify a policyTypes value that\ - \ include \"Egress\" (since such a policy would not include an egress\ - \ section and would otherwise default to just [ \"Ingress\" ]). This field\ - \ is beta-level in 1.8" + type: object + v1alpha3.DeviceAttribute: + description: DeviceAttribute must have exactly one field set. + example: + bool: true + string: string + version: version + int: 0 + properties: + bool: + description: BoolValue is a true/false value. + type: boolean + int: + description: IntValue is a number. + format: int64 + type: integer + string: + description: StringValue is a string. Must not be longer than 64 characters. + type: string + version: + description: VersionValue is a semantic version according to semver.org + spec 2.0.0. Must not be longer than 64 characters. + type: string + type: object + v1alpha3.DeviceClaim: + description: DeviceClaim defines how to request devices with a ResourceClaim. + example: + requests: + - allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + firstAvailable: + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + count: 0 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + - allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + firstAvailable: + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + count: 0 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + constraints: + - matchAttribute: matchAttribute + requests: + - requests + - requests + - matchAttribute: matchAttribute + requests: + - requests + - requests + properties: + config: + description: This field holds configuration for multiple potential drivers + which could satisfy requests in this claim. It is ignored while allocating + the claim. items: - type: string + $ref: '#/components/schemas/v1alpha3.DeviceClaimConfiguration' + type: array + x-kubernetes-list-type: atomic + constraints: + description: These constraints must be satisfied by the set of devices that + get allocated for the claim. + items: + $ref: '#/components/schemas/v1alpha3.DeviceConstraint' + type: array + x-kubernetes-list-type: atomic + requests: + description: "Requests represent individual requests for distinct devices\ + \ which must all be satisfied. If empty, nothing needs to be allocated." + items: + $ref: '#/components/schemas/v1alpha3.DeviceRequest' type: array x-kubernetes-list-type: atomic - required: - - podSelector type: object - v1.ServiceBackendPort: - description: ServiceBackendPort is the service port being referenced. + v1alpha3.DeviceClaimConfiguration: + description: DeviceClaimConfiguration is used for configuration parameters in + DeviceClaim. example: - number: 0 - name: name + opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests properties: - name: - description: name is the name of the port on the Service. This is a mutually - exclusive setting with "Number". - type: string - number: - description: number is the numerical port number (e.g. 80) on the Service. - This is a mutually exclusive setting with "Name". - format: int32 - type: integer + opaque: + $ref: '#/components/schemas/v1alpha3.OpaqueDeviceConfiguration' + requests: + description: |- + Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. + + References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the configuration applies to all subrequests. + items: + type: string + type: array + x-kubernetes-list-type: atomic type: object - x-kubernetes-map-type: atomic - v1beta1.IPAddress: - description: "IPAddress represents a single IP of a single IP Family. The object\ - \ is designed to be used by APIs that operate on IP addresses. The object\ - \ is used by the Service core API for allocation of IP addresses. An IP address\ - \ can be represented in different formats, to guarantee the uniqueness of\ - \ the IP, the name of the object is the IP address in canonical format, four\ - \ decimal digits separated by dots suppressing leading zeros for IPv4 and\ - \ the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1\ - \ or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1" + v1alpha3.DeviceClass: + description: |- + DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. + + This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. example: metadata: generation: 6 @@ -238153,11 +251575,18 @@ components: apiVersion: apiVersion kind: kind spec: - parentRef: - resource: resource - name: name - namespace: namespace - group: group + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: "{}" + - opaque: + driver: driver + parameters: "{}" properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -238172,16 +251601,28 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1beta1.IPAddressSpec' + $ref: '#/components/schemas/v1alpha3.DeviceClassSpec' + required: + - spec type: object x-kubernetes-group-version-kind: - - group: networking.k8s.io - kind: IPAddress - version: v1beta1 + - group: resource.k8s.io + kind: DeviceClass + version: v1alpha3 x-implements: - io.kubernetes.client.common.KubernetesObject - v1beta1.IPAddressList: - description: IPAddressList contains a list of IPAddress. + v1alpha3.DeviceClassConfiguration: + description: DeviceClassConfiguration is used in DeviceClass. + example: + opaque: + driver: driver + parameters: "{}" + properties: + opaque: + $ref: '#/components/schemas/v1alpha3.OpaqueDeviceConfiguration' + type: object + v1alpha3.DeviceClassList: + description: DeviceClassList is a collection of classes. example: metadata: remainingItemCount: 1 @@ -238240,11 +251681,18 @@ components: apiVersion: apiVersion kind: kind spec: - parentRef: - resource: resource - name: name - namespace: namespace - group: group + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: "{}" + - opaque: + driver: driver + parameters: "{}" - metadata: generation: 6 finalizers: @@ -238294,11 +251742,18 @@ components: apiVersion: apiVersion kind: kind spec: - parentRef: - resource: resource - name: name - namespace: namespace - group: group + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: "{}" + - opaque: + driver: driver + parameters: "{}" properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -238306,9 +251761,9 @@ components: \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string items: - description: items is the list of IPAddresses. + description: Items is the list of resource classes. items: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1alpha3.DeviceClass' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -238321,383 +251776,454 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: networking.k8s.io - kind: IPAddressList - version: v1beta1 + - group: resource.k8s.io + kind: DeviceClassList + version: v1alpha3 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1beta1.IPAddressSpec: - description: IPAddressSpec describe the attributes in an IP Address. + v1alpha3.DeviceClassSpec: + description: "DeviceClassSpec is used in a [DeviceClass] to define what can\ + \ be allocated and how to configure it." example: - parentRef: - resource: resource - name: name - namespace: namespace - group: group + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: "{}" + - opaque: + driver: driver + parameters: "{}" properties: - parentRef: - $ref: '#/components/schemas/v1beta1.ParentReference' - required: - - parentRef + config: + description: |- + Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. + + They are passed to the driver, but are not considered while allocating the claim. + items: + $ref: '#/components/schemas/v1alpha3.DeviceClassConfiguration' + type: array + x-kubernetes-list-type: atomic + selectors: + description: Each selector must be satisfied by a device which is claimed + via this class. + items: + $ref: '#/components/schemas/v1alpha3.DeviceSelector' + type: array + x-kubernetes-list-type: atomic type: object - v1beta1.ParentReference: - description: ParentReference describes a reference to a parent object. + v1alpha3.DeviceConstraint: + description: DeviceConstraint must have exactly one field set besides Requests. example: - resource: resource - name: name - namespace: namespace - group: group + matchAttribute: matchAttribute + requests: + - requests + - requests properties: - group: - description: Group is the group of the object being referenced. - type: string - name: - description: Name is the name of the object being referenced. - type: string - namespace: - description: Namespace is the namespace of the object being referenced. - type: string - resource: - description: Resource is the resource of the object being referenced. + matchAttribute: + description: |- + MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. + + For example, if you specified "dra.example.com/numa" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. + + Must include the domain qualifier. type: string - required: - - name - - resource + requests: + description: |- + Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. + + References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the constraint applies to all subrequests. + items: + type: string + type: array + x-kubernetes-list-type: atomic type: object - v1beta1.ServiceCIDR: - description: ServiceCIDR defines a range of IP addresses using CIDR format (e.g. - 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs - to Service objects. + v1alpha3.DeviceCounterConsumption: + description: DeviceCounterConsumption defines a set of counters that a device + will consume from a CounterSet. example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - cidrs: - - cidrs - - cidrs - status: - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status + counters: + key: + value: value + counterSet: counterSet properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" - type: string - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + counterSet: + description: CounterSet defines the set from which the counters defined + will be consumed. type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1beta1.ServiceCIDRSpec' - status: - $ref: '#/components/schemas/v1beta1.ServiceCIDRStatus' + counters: + additionalProperties: + $ref: '#/components/schemas/v1alpha3.Counter' + description: |- + Counters defines the Counter that will be consumed by the device. + + The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). + type: object + required: + - counterSet + - counters type: object - x-kubernetes-group-version-kind: - - group: networking.k8s.io - kind: ServiceCIDR - version: v1beta1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1beta1.ServiceCIDRList: - description: ServiceCIDRList contains a list of ServiceCIDR objects. + v1alpha3.DeviceRequest: + description: "DeviceRequest is a request for devices required for a claim. This\ + \ is typically a request for a single resource like a device, but can also\ + \ ask for several identical devices." example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - cidrs: - - cidrs - - cidrs - status: - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - cidrs: - - cidrs - - cidrs - status: - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status + allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + firstAvailable: + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + count: 0 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + adminAccess: + description: |- + AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. + + This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. + + This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. + type: boolean + allocationMode: + description: |- + AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: + + - ExactCount: This request is for a specific number of devices. + This is the default. The exact number is provided in the + count field. + + - All: This request is for all of the matching devices in a pool. + At least one device must exist on the node for the allocation to succeed. + Allocation will fail if some devices are already allocated, + unless adminAccess is requested. + + If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. + + This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. + + More modes may get added in the future. Clients must refuse to handle requests with unknown modes. type: string - items: - description: items is the list of ServiceCIDRs. + count: + description: |- + Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. + + This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. + format: int64 + type: integer + deviceClassName: + description: |- + DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. + + A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. Which classes are available depends on the cluster. + + Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. + type: string + firstAvailable: + description: |- + FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used. + + This field may only be set in the entries of DeviceClaim.Requests. + + DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. items: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1alpha3.DeviceSubRequest' type: array - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + x-kubernetes-list-type: atomic + name: + description: |- + Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. + + Must be a DNS label. type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' + selectors: + description: |- + Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. + + This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. + items: + $ref: '#/components/schemas/v1alpha3.DeviceSelector' + type: array + x-kubernetes-list-type: atomic + tolerations: + description: |- + If specified, the request's tolerations. + + Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. + + In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. + + The maximum number of tolerations is 16. + + This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. + + This is an alpha field and requires enabling the DRADeviceTaints feature gate. + items: + $ref: '#/components/schemas/v1alpha3.DeviceToleration' + type: array + x-kubernetes-list-type: atomic required: - - items + - name type: object - x-kubernetes-group-version-kind: - - group: networking.k8s.io - kind: ServiceCIDRList - version: v1beta1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1beta1.ServiceCIDRSpec: - description: ServiceCIDRSpec define the CIDRs the user wants to use for allocating - ClusterIPs for Services. + v1alpha3.DeviceRequestAllocationResult: + description: DeviceRequestAllocationResult contains the allocation result for + one request. example: - cidrs: - - cidrs - - cidrs + request: request + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + driver: driver + pool: pool + device: device properties: - cidrs: - description: "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\"\ - \ or \"2001:db8::/64\") from which to assign service cluster IPs. Max\ - \ of two CIDRs is allowed, one of each IP family. This field is immutable." + adminAccess: + description: |- + AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. + + This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. + type: boolean + device: + description: Device references one device instance via its name in the driver's + resource pool. It must be a DNS label. + type: string + driver: + description: |- + Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. + + Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. + type: string + pool: + description: |- + This name together with the driver name and the device name field identify which device was allocated (`//`). + + Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. + type: string + request: + description: |- + Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format
/. + + Multiple devices may have been allocated per request. + type: string + tolerations: + description: |- + A copy of all tolerations specified in the request at the time when the device got allocated. + + The maximum number of tolerations is 16. + + This is an alpha field and requires enabling the DRADeviceTaints feature gate. items: - type: string + $ref: '#/components/schemas/v1alpha3.DeviceToleration' type: array x-kubernetes-list-type: atomic + required: + - device + - driver + - pool + - request type: object - v1beta1.ServiceCIDRStatus: - description: ServiceCIDRStatus describes the current state of the ServiceCIDR. + v1alpha3.DeviceSelector: + description: DeviceSelector must have exactly one field set. example: - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status + cel: + expression: expression properties: - conditions: - description: conditions holds an array of metav1.Condition that describe - the state of the ServiceCIDR. Current service state + cel: + $ref: '#/components/schemas/v1alpha3.CELDeviceSelector' + type: object + v1alpha3.DeviceSubRequest: + description: |- + DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. + + DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported. + example: + allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + properties: + allocationMode: + description: |- + AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: + + - ExactCount: This request is for a specific number of devices. + This is the default. The exact number is provided in the + count field. + + - All: This request is for all of the matching devices in a pool. + Allocation will fail if some devices are already allocated, + unless adminAccess is requested. + + If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. + + More modes may get added in the future. Clients must refuse to handle requests with unknown modes. + type: string + count: + description: "Count is used only when the count mode is \"ExactCount\".\ + \ Must be greater than zero. If AllocationMode is ExactCount and this\ + \ field is not specified, the default is one." + format: int64 + type: integer + deviceClassName: + description: |- + DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. + + A class is required. Which classes are available depends on the cluster. + + Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. + type: string + name: + description: |- + Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format
/. + + Must be a DNS label. + type: string + selectors: + description: Selectors define criteria which must be satisfied by a specific + device in order for that device to be considered for this request. All + selectors must be satisfied for a device to be considered. items: - $ref: '#/components/schemas/v1.Condition' + $ref: '#/components/schemas/v1alpha3.DeviceSelector' type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - x-kubernetes-patch-merge-key: type + x-kubernetes-list-type: atomic + tolerations: + description: |- + If specified, the request's tolerations. + + Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. + + In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. + + The maximum number of tolerations is 16. + + This is an alpha field and requires enabling the DRADeviceTaints feature gate. + items: + $ref: '#/components/schemas/v1alpha3.DeviceToleration' + type: array + x-kubernetes-list-type: atomic + required: + - deviceClassName + - name type: object - v1.Overhead: - description: Overhead structure represents the resource overhead associated - with running a pod. + v1alpha3.DeviceTaint: + description: "The device this taint is attached to has the \"effect\" on any\ + \ claim which does not tolerate the taint and, through the claim, to pods\ + \ using the claim." example: - podFixed: - key: null + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key properties: - podFixed: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: podFixed represents the fixed resource overhead associated - with running a pod. - type: object + effect: + description: The effect of the taint on claims that do not tolerate the + taint and through such claims on the pods using them. Valid effects are + NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid + here. + type: string + key: + description: The taint key to be applied to a device. Must be a label name. + type: string + timeAdded: + description: TimeAdded represents the time at which the taint was added. + Added automatically during create or update if not set. + format: date-time + type: string + value: + description: The taint value corresponding to the taint key. Must be a label + value. + type: string + required: + - effect + - key type: object - v1.RuntimeClass: - description: "RuntimeClass defines a class of container runtime supported in\ - \ the cluster. The RuntimeClass is used to determine which container runtime\ - \ is used to run all containers in a pod. RuntimeClasses are manually defined\ - \ by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet\ - \ is responsible for resolving the RuntimeClassName reference before running\ - \ the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/" + v1alpha3.DeviceTaintRule: + description: DeviceTaintRule adds one taint to all devices which match the selector. + This has the same effect as if the taint was specified directly in the ResourceSlice + by the DRA driver. example: - handler: handler metadata: generation: 6 finalizers: @@ -238746,40 +252272,28 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - overhead: - podFixed: - key: null - scheduling: - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 + spec: + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect value: value key: key - operator: operator - nodeSelector: - key: nodeSelector + deviceSelector: + deviceClassName: deviceClassName + driver: driver + pool: pool + selectors: + - cel: + expression: expression + - cel: + expression: expression + device: device properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ \ of an object. Servers should convert recognized schemas to the latest\ \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string - handler: - description: "handler specifies the underlying runtime and configuration\ - \ that the CRI implementation will use to handle pods of this class. The\ - \ possible values are specific to the node & CRI configuration. It is\ - \ assumed that all handlers are available on every node, and handlers\ - \ of the same name are equivalent on every node. For example, a handler\ - \ called \"runc\" might specify that the runc OCI runtime (using native\ - \ Linux containers) will be used to run the containers in a pod. The Handler\ - \ must be lowercase, conform to the DNS Label (RFC 1123) requirements,\ - \ and is immutable." - type: string kind: description: "Kind is a string value representing the REST resource this\ \ object represents. Servers may infer this from the endpoint the client\ @@ -238787,21 +252301,19 @@ components: type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' - overhead: - $ref: '#/components/schemas/v1.Overhead' - scheduling: - $ref: '#/components/schemas/v1.Scheduling' + spec: + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleSpec' required: - - handler + - spec type: object x-kubernetes-group-version-kind: - - group: node.k8s.io - kind: RuntimeClass - version: v1 + - group: resource.k8s.io + kind: DeviceTaintRule + version: v1alpha3 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.RuntimeClassList: - description: RuntimeClassList is a list of RuntimeClass objects. + v1alpha3.DeviceTaintRuleList: + description: DeviceTaintRuleList is a collection of DeviceTaintRules. example: metadata: remainingItemCount: 1 @@ -238811,8 +252323,7 @@ components: apiVersion: apiVersion kind: kind items: - - handler: handler - metadata: + - metadata: generation: 6 finalizers: - finalizers @@ -238860,25 +252371,23 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - overhead: - podFixed: - key: null - scheduling: - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 + spec: + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect value: value key: key - operator: operator - nodeSelector: - key: nodeSelector - - handler: handler - metadata: + deviceSelector: + deviceClassName: deviceClassName + driver: driver + pool: pool + selectors: + - cel: + expression: expression + - cel: + expression: expression + device: device + - metadata: generation: 6 finalizers: - finalizers @@ -238926,23 +252435,22 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - overhead: - podFixed: - key: null - scheduling: - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 + spec: + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect value: value key: key - operator: operator - nodeSelector: - key: nodeSelector + deviceSelector: + deviceClassName: deviceClassName + driver: driver + pool: pool + selectors: + - cel: + expression: expression + - cel: + expression: expression + device: device properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -238950,9 +252458,9 @@ components: \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string items: - description: items is a list of schema objects. + description: Items is the list of DeviceTaintRules. items: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -238965,139 +252473,189 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: node.k8s.io - kind: RuntimeClassList - version: v1 + - group: resource.k8s.io + kind: DeviceTaintRuleList + version: v1alpha3 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.Scheduling: - description: Scheduling specifies the scheduling constraints for nodes supporting - a RuntimeClass. + v1alpha3.DeviceTaintRuleSpec: + description: DeviceTaintRuleSpec specifies the selector and one taint. example: - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect value: value key: key - operator: operator - nodeSelector: - key: nodeSelector + deviceSelector: + deviceClassName: deviceClassName + driver: driver + pool: pool + selectors: + - cel: + expression: expression + - cel: + expression: expression + device: device properties: - nodeSelector: - additionalProperties: - type: string - description: nodeSelector lists labels that must be present on nodes that - support this RuntimeClass. Pods using this RuntimeClass can only be scheduled - to a node matched by this selector. The RuntimeClass nodeSelector is merged - with a pod's existing nodeSelector. Any conflicts will cause the pod to - be rejected in admission. - type: object - x-kubernetes-map-type: atomic - tolerations: - description: "tolerations are appended (excluding duplicates) to pods running\ - \ with this RuntimeClass during admission, effectively unioning the set\ - \ of nodes tolerated by the pod and the RuntimeClass." + deviceSelector: + $ref: '#/components/schemas/v1alpha3.DeviceTaintSelector' + taint: + $ref: '#/components/schemas/v1alpha3.DeviceTaint' + required: + - taint + type: object + v1alpha3.DeviceTaintSelector: + description: "DeviceTaintSelector defines which device(s) a DeviceTaintRule\ + \ applies to. The empty selector matches all devices. Without a selector,\ + \ no devices are matched." + example: + deviceClassName: deviceClassName + driver: driver + pool: pool + selectors: + - cel: + expression: expression + - cel: + expression: expression + device: device + properties: + device: + description: |- + If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name. + + Setting also driver and pool may be required to avoid ambiguity, but is not required. + type: string + deviceClassName: + description: "If DeviceClassName is set, the selectors defined there must\ + \ be satisfied by a device to be selected. This field corresponds to class.metadata.name." + type: string + driver: + description: "If driver is set, only devices from that driver are selected.\ + \ This fields corresponds to slice.spec.driver." + type: string + pool: + description: |- + If pool is set, only devices in that pool are selected. + + Also setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name. + type: string + selectors: + description: "Selectors contains the same selection criteria as a ResourceClaim.\ + \ Currently, CEL expressions are supported. All of these selectors must\ + \ be satisfied." items: - $ref: '#/components/schemas/v1.Toleration' + $ref: '#/components/schemas/v1alpha3.DeviceSelector' type: array x-kubernetes-list-type: atomic type: object - v1.Eviction: - description: Eviction evicts a pod from its node subject to certain policies - and safety constraints. This is a subresource of Pod. A request to cause - such an eviction is created by POSTing to .../pods//evictions. + v1alpha3.DeviceToleration: + description: "The ResourceClaim this DeviceToleration is attached to tolerates\ + \ any taint that matches the triple using the matching\ + \ operator ." example: - deleteOptions: - orphanDependents: true - apiVersion: apiVersion - dryRun: - - dryRun - - dryRun - kind: kind - preconditions: - uid: uid - resourceVersion: resourceVersion - ignoreStoreReadErrorWithClusterBreakingPotential: true - gracePeriodSeconds: 0 - propagationPolicy: propagationPolicy - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind + effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + effect: + description: "Effect indicates the taint effect to match. Empty means match\ + \ all taint effects. When specified, allowed values are NoSchedule and\ + \ NoExecute." type: string - deleteOptions: - $ref: '#/components/schemas/v1.DeleteOptions' - kind: - description: "Kind is a string value representing the REST resource this\ - \ object represents. Servers may infer this from the endpoint the client\ - \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + key: + description: "Key is the taint key that the toleration applies to. Empty\ + \ means match all taint keys. If the key is empty, operator must be Exists;\ + \ this combination means to match all values and all keys. Must be a label\ + \ name." + type: string + operator: + description: "Operator represents a key's relationship to the value. Valid\ + \ operators are Exists and Equal. Defaults to Equal. Exists is equivalent\ + \ to wildcard for value, so that a ResourceClaim can tolerate all taints\ + \ of a particular category." + type: string + tolerationSeconds: + description: "TolerationSeconds represents the period of time the toleration\ + \ (which must be of effect NoExecute, otherwise this field is ignored)\ + \ tolerates the taint. By default, it is not set, which means tolerate\ + \ the taint forever (do not evict). Zero and negative values will be treated\ + \ as 0 (evict immediately) by the system. If larger than zero, the time\ + \ when the pod needs to be evicted is calculated as
[/]. If just the main request is given, the configuration applies to all subrequests. items: type: string type: array @@ -241210,7 +256871,7 @@ components: required: - source type: object - v1alpha3.DeviceAllocationResult: + v1beta1.DeviceAllocationResult: description: DeviceAllocationResult is the result of allocating devices. example: config: @@ -241231,11 +256892,33 @@ components: results: - request: request adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator driver: driver pool: pool device: device - request: request adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator driver: driver pool: pool device: device @@ -241246,17 +256929,17 @@ components: This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters. items: - $ref: '#/components/schemas/v1alpha3.DeviceAllocationConfiguration' + $ref: '#/components/schemas/v1beta1.DeviceAllocationConfiguration' type: array x-kubernetes-list-type: atomic results: description: Results lists all allocated devices. items: - $ref: '#/components/schemas/v1alpha3.DeviceRequestAllocationResult' + $ref: '#/components/schemas/v1beta1.DeviceRequestAllocationResult' type: array x-kubernetes-list-type: atomic type: object - v1alpha3.DeviceAttribute: + v1beta1.DeviceAttribute: description: DeviceAttribute must have exactly one field set. example: bool: true @@ -241279,13 +256962,111 @@ components: spec 2.0.0. Must not be longer than 64 characters. type: string type: object - v1alpha3.DeviceClaim: + v1beta1.DeviceCapacity: + description: DeviceCapacity describes a quantity associated with a device. + example: + value: value + properties: + value: + description: "Quantity is a fixed-point representation of a number. It provides\ + \ convenient marshaling/unmarshaling in JSON and YAML, in addition to\ + \ String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\ + ``` ::= \n\n\t(Note that \ + \ may be empty, from the \"\" case in .)\n\n \ + \ ::= 0 | 1 | ... | 9 ::= | \ + \ ::= | . | . | .\ + \ ::= \"+\" | \"-\" ::= |\ + \ ::= | \ + \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ + \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ + \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ + \ ::= \"e\" | \"E\" ```\n\nNo matter which\ + \ of the three exponent forms is used, no quantity may represent a number\ + \ greater than 2^63-1 in magnitude, nor may it have more than 3 decimal\ + \ places. Numbers larger or more precise will be capped or rounded up.\ + \ (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future\ + \ if we require larger or smaller quantities.\n\nWhen a Quantity is parsed\ + \ from a string, it will remember the type of suffix it had, and will\ + \ use the same type again when it is serialized.\n\nBefore serializing,\ + \ Quantity will be put in \"canonical form\". This means that Exponent/suffix\ + \ will be adjusted up or down (with a corresponding increase or decrease\ + \ in Mantissa) such that:\n\n- No precision is lost - No fractional digits\ + \ will be emitted - The exponent (or suffix) is as large as possible.\n\ + \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ + \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ + \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ + \ by a floating point number. That is the whole point of this exercise.\n\ + \nNon-canonical values will still parse as long as they are well formed,\ + \ but will be re-emitted in their canonical form. (So always use canonical\ + \ form, or don't diff.)\n\nThis format is intended to make it difficult\ + \ to use these numbers without writing some sort of special handling code\ + \ in the hopes that that will cause implementors to also use a fixed point\ + \ implementation." + format: quantity + type: string + required: + - value + type: object + v1beta1.DeviceClaim: description: DeviceClaim defines how to request devices with a ResourceClaim. example: requests: - allocationMode: allocationMode deviceClassName: deviceClassName adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + firstAvailable: + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression count: 0 name: name selectors: @@ -241296,6 +257077,58 @@ components: - allocationMode: allocationMode deviceClassName: deviceClassName adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + firstAvailable: + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression count: 0 name: name selectors: @@ -241331,25 +257164,25 @@ components: which could satisfy requests in this claim. It is ignored while allocating the claim. items: - $ref: '#/components/schemas/v1alpha3.DeviceClaimConfiguration' + $ref: '#/components/schemas/v1beta1.DeviceClaimConfiguration' type: array x-kubernetes-list-type: atomic constraints: description: These constraints must be satisfied by the set of devices that get allocated for the claim. items: - $ref: '#/components/schemas/v1alpha3.DeviceConstraint' + $ref: '#/components/schemas/v1beta1.DeviceConstraint' type: array x-kubernetes-list-type: atomic requests: description: "Requests represent individual requests for distinct devices\ \ which must all be satisfied. If empty, nothing needs to be allocated." items: - $ref: '#/components/schemas/v1alpha3.DeviceRequest' + $ref: '#/components/schemas/v1beta1.DeviceRequest' type: array x-kubernetes-list-type: atomic type: object - v1alpha3.DeviceClaimConfiguration: + v1beta1.DeviceClaimConfiguration: description: DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. example: @@ -241361,16 +257194,18 @@ components: - requests properties: opaque: - $ref: '#/components/schemas/v1alpha3.OpaqueDeviceConfiguration' + $ref: '#/components/schemas/v1beta1.OpaqueDeviceConfiguration' requests: - description: "Requests lists the names of requests where the configuration\ - \ applies. If empty, it applies to all requests." + description: |- + Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. + + References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the configuration applies to all subrequests. items: type: string type: array x-kubernetes-list-type: atomic type: object - v1alpha3.DeviceClass: + v1beta1.DeviceClass: description: |- DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. @@ -241451,17 +257286,17 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1alpha3.DeviceClassSpec' + $ref: '#/components/schemas/v1beta1.DeviceClassSpec' required: - spec type: object x-kubernetes-group-version-kind: - group: resource.k8s.io kind: DeviceClass - version: v1alpha3 + version: v1beta1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1alpha3.DeviceClassConfiguration: + v1beta1.DeviceClassConfiguration: description: DeviceClassConfiguration is used in DeviceClass. example: opaque: @@ -241469,9 +257304,9 @@ components: parameters: "{}" properties: opaque: - $ref: '#/components/schemas/v1alpha3.OpaqueDeviceConfiguration' + $ref: '#/components/schemas/v1beta1.OpaqueDeviceConfiguration' type: object - v1alpha3.DeviceClassList: + v1beta1.DeviceClassList: description: DeviceClassList is a collection of classes. example: metadata: @@ -241613,7 +257448,7 @@ components: items: description: Items is the list of resource classes. items: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1beta1.DeviceClass' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -241628,10 +257463,10 @@ components: x-kubernetes-group-version-kind: - group: resource.k8s.io kind: DeviceClassList - version: v1alpha3 + version: v1beta1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1alpha3.DeviceClassSpec: + v1beta1.DeviceClassSpec: description: "DeviceClassSpec is used in a [DeviceClass] to define what can\ \ be allocated and how to configure it." example: @@ -241654,18 +257489,18 @@ components: They are passed to the driver, but are not considered while allocating the claim. items: - $ref: '#/components/schemas/v1alpha3.DeviceClassConfiguration' + $ref: '#/components/schemas/v1beta1.DeviceClassConfiguration' type: array x-kubernetes-list-type: atomic selectors: description: Each selector must be satisfied by a device which is claimed via this class. items: - $ref: '#/components/schemas/v1alpha3.DeviceSelector' + $ref: '#/components/schemas/v1beta1.DeviceSelector' type: array x-kubernetes-list-type: atomic type: object - v1alpha3.DeviceConstraint: + v1beta1.DeviceConstraint: description: DeviceConstraint must have exactly one field set besides Requests. example: matchAttribute: matchAttribute @@ -241682,25 +257517,100 @@ components: Must include the domain qualifier. type: string requests: - description: "Requests is a list of the one or more requests in this claim\ - \ which must co-satisfy this constraint. If a request is fulfilled by\ - \ multiple devices, then all of the devices must satisfy the constraint.\ - \ If this is not specified, this constraint applies to all requests in\ - \ this claim." + description: |- + Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. + + References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the constraint applies to all subrequests. items: type: string type: array x-kubernetes-list-type: atomic type: object - v1alpha3.DeviceRequest: - description: |- - DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. + v1beta1.DeviceCounterConsumption: + description: DeviceCounterConsumption defines a set of counters that a device + will consume from a CounterSet. + example: + counters: + key: + value: value + counterSet: counterSet + properties: + counterSet: + description: CounterSet is the name of the set from which the counters defined + will be consumed. + type: string + counters: + additionalProperties: + $ref: '#/components/schemas/v1beta1.Counter' + description: |- + Counters defines the counters that will be consumed by the device. - A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request. + The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). + type: object + required: + - counterSet + - counters + type: object + v1beta1.DeviceRequest: + description: "DeviceRequest is a request for devices required for a claim. This\ + \ is typically a request for a single resource like a device, but can also\ + \ ask for several identical devices." example: allocationMode: allocationMode deviceClassName: deviceClassName adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + firstAvailable: + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression count: 0 name: name selectors: @@ -241713,6 +257623,8 @@ components: description: |- AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. + This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. + This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. type: boolean allocationMode: @@ -241724,51 +257636,94 @@ components: count field. - All: This request is for all of the matching devices in a pool. + At least one device must exist on the node for the allocation to succeed. Allocation will fail if some devices are already allocated, unless adminAccess is requested. - If AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. + If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. + + This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. type: string count: - description: "Count is used only when the count mode is \"ExactCount\".\ - \ Must be greater than zero. If AllocationMode is ExactCount and this\ - \ field is not specified, the default is one." + description: |- + Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. + + This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. format: int64 type: integer deviceClassName: description: |- DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. - A class is required. Which classes are available depends on the cluster. + A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. type: string + firstAvailable: + description: |- + FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used. + + This field may only be set in the entries of DeviceClaim.Requests. + + DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. + items: + $ref: '#/components/schemas/v1beta1.DeviceSubRequest' + type: array + x-kubernetes-list-type: atomic name: description: |- Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. - Must be a DNS label. + Must be a DNS label and unique among all DeviceRequests in a ResourceClaim. type: string selectors: - description: Selectors define criteria which must be satisfied by a specific - device in order for that device to be considered for this request. All - selectors must be satisfied for a device to be considered. + description: |- + Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. + + This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. items: - $ref: '#/components/schemas/v1alpha3.DeviceSelector' + $ref: '#/components/schemas/v1beta1.DeviceSelector' + type: array + x-kubernetes-list-type: atomic + tolerations: + description: |- + If specified, the request's tolerations. + + Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. + + In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. + + The maximum number of tolerations is 16. + + This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. + + This is an alpha field and requires enabling the DRADeviceTaints feature gate. + items: + $ref: '#/components/schemas/v1beta1.DeviceToleration' type: array x-kubernetes-list-type: atomic required: - - deviceClassName - name type: object - v1alpha3.DeviceRequestAllocationResult: + v1beta1.DeviceRequestAllocationResult: description: DeviceRequestAllocationResult contains the allocation result for one request. example: request: request adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator driver: driver pool: pool device: device @@ -241796,26 +257751,204 @@ components: Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. type: string request: - description: Request is the name of the request in the claim which caused - this device to be allocated. Multiple devices may have been allocated - per request. + description: |- + Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format
/. + + Multiple devices may have been allocated per request. type: string + tolerations: + description: |- + A copy of all tolerations specified in the request at the time when the device got allocated. + + The maximum number of tolerations is 16. + + This is an alpha field and requires enabling the DRADeviceTaints feature gate. + items: + $ref: '#/components/schemas/v1beta1.DeviceToleration' + type: array + x-kubernetes-list-type: atomic required: - device - driver - pool - request type: object - v1alpha3.DeviceSelector: + v1beta1.DeviceSelector: description: DeviceSelector must have exactly one field set. example: cel: expression: expression properties: cel: - $ref: '#/components/schemas/v1alpha3.CELDeviceSelector' + $ref: '#/components/schemas/v1beta1.CELDeviceSelector' type: object - v1alpha3.NetworkDeviceData: + v1beta1.DeviceSubRequest: + description: |- + DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. + + DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported. + example: + allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + properties: + allocationMode: + description: |- + AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are: + + - ExactCount: This request is for a specific number of devices. + This is the default. The exact number is provided in the + count field. + + - All: This subrequest is for all of the matching devices in a pool. + Allocation will fail if some devices are already allocated, + unless adminAccess is requested. + + If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other subrequests must specify this field. + + More modes may get added in the future. Clients must refuse to handle requests with unknown modes. + type: string + count: + description: "Count is used only when the count mode is \"ExactCount\".\ + \ Must be greater than zero. If AllocationMode is ExactCount and this\ + \ field is not specified, the default is one." + format: int64 + type: integer + deviceClassName: + description: |- + DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. + + A class is required. Which classes are available depends on the cluster. + + Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. + type: string + name: + description: |- + Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format
/. + + Must be a DNS label. + type: string + selectors: + description: Selectors define criteria which must be satisfied by a specific + device in order for that device to be considered for this subrequest. + All selectors must be satisfied for a device to be considered. + items: + $ref: '#/components/schemas/v1beta1.DeviceSelector' + type: array + x-kubernetes-list-type: atomic + tolerations: + description: |- + If specified, the request's tolerations. + + Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. + + In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. + + The maximum number of tolerations is 16. + + This is an alpha field and requires enabling the DRADeviceTaints feature gate. + items: + $ref: '#/components/schemas/v1beta1.DeviceToleration' + type: array + x-kubernetes-list-type: atomic + required: + - deviceClassName + - name + type: object + v1beta1.DeviceTaint: + description: "The device this taint is attached to has the \"effect\" on any\ + \ claim which does not tolerate the taint and, through the claim, to pods\ + \ using the claim." + example: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + properties: + effect: + description: The effect of the taint on claims that do not tolerate the + taint and through such claims on the pods using them. Valid effects are + NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid + here. + type: string + key: + description: The taint key to be applied to a device. Must be a label name. + type: string + timeAdded: + description: TimeAdded represents the time at which the taint was added. + Added automatically during create or update if not set. + format: date-time + type: string + value: + description: The taint value corresponding to the taint key. Must be a label + value. + type: string + required: + - effect + - key + type: object + v1beta1.DeviceToleration: + description: "The ResourceClaim this DeviceToleration is attached to tolerates\ + \ any taint that matches the triple using the matching\ + \ operator ." + example: + effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + properties: + effect: + description: "Effect indicates the taint effect to match. Empty means match\ + \ all taint effects. When specified, allowed values are NoSchedule and\ + \ NoExecute." + type: string + key: + description: "Key is the taint key that the toleration applies to. Empty\ + \ means match all taint keys. If the key is empty, operator must be Exists;\ + \ this combination means to match all values and all keys. Must be a label\ + \ name." + type: string + operator: + description: "Operator represents a key's relationship to the value. Valid\ + \ operators are Exists and Equal. Defaults to Equal. Exists is equivalent\ + \ to wildcard for value, so that a ResourceClaim can tolerate all taints\ + \ of a particular category." + type: string + tolerationSeconds: + description: "TolerationSeconds represents the period of time the toleration\ + \ (which must be of effect NoExecute, otherwise this field is ignored)\ + \ tolerates the taint. By default, it is not set, which means tolerate\ + \ the taint forever (do not evict). Zero and negative values will be treated\ + \ as 0 (evict immediately) by the system. If larger than zero, the time\ + \ when the pod needs to be evicted is calculated as
[/]. If just the main request is given, the configuration applies to all subrequests. items: type: string type: array @@ -244324,7 +262152,7 @@ components: required: - source type: object - v1beta1.DeviceAllocationResult: + v1beta2.DeviceAllocationResult: description: DeviceAllocationResult is the result of allocating devices. example: config: @@ -244345,11 +262173,33 @@ components: results: - request: request adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator driver: driver pool: pool device: device - request: request adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator driver: driver pool: pool device: device @@ -244360,17 +262210,17 @@ components: This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters. items: - $ref: '#/components/schemas/v1beta1.DeviceAllocationConfiguration' + $ref: '#/components/schemas/v1beta2.DeviceAllocationConfiguration' type: array x-kubernetes-list-type: atomic results: description: Results lists all allocated devices. items: - $ref: '#/components/schemas/v1beta1.DeviceRequestAllocationResult' + $ref: '#/components/schemas/v1beta2.DeviceRequestAllocationResult' type: array x-kubernetes-list-type: atomic type: object - v1beta1.DeviceAttribute: + v1beta2.DeviceAttribute: description: DeviceAttribute must have exactly one field set. example: bool: true @@ -244393,7 +262243,7 @@ components: spec 2.0.0. Must not be longer than 64 characters. type: string type: object - v1beta1.DeviceCapacity: + v1beta2.DeviceCapacity: description: DeviceCapacity describes a quantity associated with a device. example: value: value @@ -244439,30 +262289,136 @@ components: required: - value type: object - v1beta1.DeviceClaim: + v1beta2.DeviceClaim: description: DeviceClaim defines how to request devices with a ResourceClaim. example: requests: - - allocationMode: allocationMode - deviceClassName: deviceClassName - adminAccess: true - count: 0 + - firstAvailable: + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 1 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 1 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression - - allocationMode: allocationMode - deviceClassName: deviceClassName - adminAccess: true - count: 0 + exactly: + allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 0 + selectors: + - cel: + expression: expression + - cel: + expression: expression + - firstAvailable: + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 1 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 1 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression + exactly: + allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 0 + selectors: + - cel: + expression: expression + - cel: + expression: expression config: - opaque: driver: driver @@ -244491,25 +262447,25 @@ components: which could satisfy requests in this claim. It is ignored while allocating the claim. items: - $ref: '#/components/schemas/v1beta1.DeviceClaimConfiguration' + $ref: '#/components/schemas/v1beta2.DeviceClaimConfiguration' type: array x-kubernetes-list-type: atomic constraints: description: These constraints must be satisfied by the set of devices that get allocated for the claim. items: - $ref: '#/components/schemas/v1beta1.DeviceConstraint' + $ref: '#/components/schemas/v1beta2.DeviceConstraint' type: array x-kubernetes-list-type: atomic requests: description: "Requests represent individual requests for distinct devices\ \ which must all be satisfied. If empty, nothing needs to be allocated." items: - $ref: '#/components/schemas/v1beta1.DeviceRequest' + $ref: '#/components/schemas/v1beta2.DeviceRequest' type: array x-kubernetes-list-type: atomic type: object - v1beta1.DeviceClaimConfiguration: + v1beta2.DeviceClaimConfiguration: description: DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. example: @@ -244521,16 +262477,18 @@ components: - requests properties: opaque: - $ref: '#/components/schemas/v1beta1.OpaqueDeviceConfiguration' + $ref: '#/components/schemas/v1beta2.OpaqueDeviceConfiguration' requests: - description: "Requests lists the names of requests where the configuration\ - \ applies. If empty, it applies to all requests." + description: |- + Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. + + References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the configuration applies to all subrequests. items: type: string type: array x-kubernetes-list-type: atomic type: object - v1beta1.DeviceClass: + v1beta2.DeviceClass: description: |- DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. @@ -244611,17 +262569,17 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1beta1.DeviceClassSpec' + $ref: '#/components/schemas/v1beta2.DeviceClassSpec' required: - spec type: object x-kubernetes-group-version-kind: - group: resource.k8s.io kind: DeviceClass - version: v1beta1 + version: v1beta2 x-implements: - io.kubernetes.client.common.KubernetesObject - v1beta1.DeviceClassConfiguration: + v1beta2.DeviceClassConfiguration: description: DeviceClassConfiguration is used in DeviceClass. example: opaque: @@ -244629,9 +262587,9 @@ components: parameters: "{}" properties: opaque: - $ref: '#/components/schemas/v1beta1.OpaqueDeviceConfiguration' + $ref: '#/components/schemas/v1beta2.OpaqueDeviceConfiguration' type: object - v1beta1.DeviceClassList: + v1beta2.DeviceClassList: description: DeviceClassList is a collection of classes. example: metadata: @@ -244773,7 +262731,7 @@ components: items: description: Items is the list of resource classes. items: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1beta2.DeviceClass' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -244788,10 +262746,10 @@ components: x-kubernetes-group-version-kind: - group: resource.k8s.io kind: DeviceClassList - version: v1beta1 + version: v1beta2 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1beta1.DeviceClassSpec: + v1beta2.DeviceClassSpec: description: "DeviceClassSpec is used in a [DeviceClass] to define what can\ \ be allocated and how to configure it." example: @@ -244814,18 +262772,18 @@ components: They are passed to the driver, but are not considered while allocating the claim. items: - $ref: '#/components/schemas/v1beta1.DeviceClassConfiguration' + $ref: '#/components/schemas/v1beta2.DeviceClassConfiguration' type: array x-kubernetes-list-type: atomic selectors: description: Each selector must be satisfied by a device which is claimed via this class. items: - $ref: '#/components/schemas/v1beta1.DeviceSelector' + $ref: '#/components/schemas/v1beta2.DeviceSelector' type: array x-kubernetes-list-type: atomic type: object - v1beta1.DeviceConstraint: + v1beta2.DeviceConstraint: description: DeviceConstraint must have exactly one field set besides Requests. example: matchAttribute: matchAttribute @@ -244842,26 +262800,227 @@ components: Must include the domain qualifier. type: string requests: - description: "Requests is a list of the one or more requests in this claim\ - \ which must co-satisfy this constraint. If a request is fulfilled by\ - \ multiple devices, then all of the devices must satisfy the constraint.\ - \ If this is not specified, this constraint applies to all requests in\ - \ this claim." + description: |- + Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. + + References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the constraint applies to all subrequests. items: type: string type: array x-kubernetes-list-type: atomic type: object - v1beta1.DeviceRequest: + v1beta2.DeviceCounterConsumption: + description: DeviceCounterConsumption defines a set of counters that a device + will consume from a CounterSet. + example: + counters: + key: + value: value + counterSet: counterSet + properties: + counterSet: + description: CounterSet is the name of the set from which the counters defined + will be consumed. + type: string + counters: + additionalProperties: + $ref: '#/components/schemas/v1beta2.Counter' + description: |- + Counters defines the counters that will be consumed by the device. + + The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). + type: object + required: + - counterSet + - counters + type: object + v1beta2.DeviceRequest: + description: "DeviceRequest is a request for devices required for a claim. This\ + \ is typically a request for a single resource like a device, but can also\ + \ ask for several identical devices. With FirstAvailable it is also possible\ + \ to provide a prioritized list of requests." + example: + firstAvailable: + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 1 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 1 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + name: name + exactly: + allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 0 + selectors: + - cel: + expression: expression + - cel: + expression: expression + properties: + exactly: + $ref: '#/components/schemas/v1beta2.ExactDeviceRequest' + firstAvailable: + description: |- + FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used. + + DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. + items: + $ref: '#/components/schemas/v1beta2.DeviceSubRequest' + type: array + x-kubernetes-list-type: atomic + name: + description: |- + Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. + + References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler. + + Must be a DNS label. + type: string + required: + - name + type: object + v1beta2.DeviceRequestAllocationResult: + description: DeviceRequestAllocationResult contains the allocation result for + one request. + example: + request: request + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + driver: driver + pool: pool + device: device + properties: + adminAccess: + description: |- + AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. + + This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. + type: boolean + device: + description: Device references one device instance via its name in the driver's + resource pool. It must be a DNS label. + type: string + driver: + description: |- + Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. + + Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. + type: string + pool: + description: |- + This name together with the driver name and the device name field identify which device was allocated (`//`). + + Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. + type: string + request: + description: |- + Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format
/. + + Multiple devices may have been allocated per request. + type: string + tolerations: + description: |- + A copy of all tolerations specified in the request at the time when the device got allocated. + + The maximum number of tolerations is 16. + + This is an alpha field and requires enabling the DRADeviceTaints feature gate. + items: + $ref: '#/components/schemas/v1beta2.DeviceToleration' + type: array + x-kubernetes-list-type: atomic + required: + - device + - driver + - pool + - request + type: object + v1beta2.DeviceSelector: + description: DeviceSelector must have exactly one field set. + example: + cel: + expression: expression + properties: + cel: + $ref: '#/components/schemas/v1beta2.CELDeviceSelector' + type: object + v1beta2.DeviceSubRequest: description: |- - DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. + DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. - A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request. + DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device. example: allocationMode: allocationMode deviceClassName: deviceClassName - adminAccess: true - count: 0 + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 1 name: name selectors: - cel: @@ -244869,25 +263028,19 @@ components: - cel: expression: expression properties: - adminAccess: - description: |- - AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. - - This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. - type: boolean allocationMode: description: |- - AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: + AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - - All: This request is for all of the matching devices in a pool. + - All: This subrequest is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. - If AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. + If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other subrequests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. type: string @@ -244899,7 +263052,7 @@ components: type: integer deviceClassName: description: |- - DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. + DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. A class is required. Which classes are available depends on the cluster. @@ -244907,75 +263060,201 @@ components: type: string name: description: |- - Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. + Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format
/. Must be a DNS label. type: string selectors: description: Selectors define criteria which must be satisfied by a specific - device in order for that device to be considered for this request. All - selectors must be satisfied for a device to be considered. + device in order for that device to be considered for this subrequest. + All selectors must be satisfied for a device to be considered. items: - $ref: '#/components/schemas/v1beta1.DeviceSelector' + $ref: '#/components/schemas/v1beta2.DeviceSelector' + type: array + x-kubernetes-list-type: atomic + tolerations: + description: |- + If specified, the request's tolerations. + + Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. + + In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. + + The maximum number of tolerations is 16. + + This is an alpha field and requires enabling the DRADeviceTaints feature gate. + items: + $ref: '#/components/schemas/v1beta2.DeviceToleration' type: array x-kubernetes-list-type: atomic required: - deviceClassName - name type: object - v1beta1.DeviceRequestAllocationResult: - description: DeviceRequestAllocationResult contains the allocation result for - one request. + v1beta2.DeviceTaint: + description: "The device this taint is attached to has the \"effect\" on any\ + \ claim which does not tolerate the taint and, through the claim, to pods\ + \ using the claim." example: - request: request + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + properties: + effect: + description: The effect of the taint on claims that do not tolerate the + taint and through such claims on the pods using them. Valid effects are + NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid + here. + type: string + key: + description: The taint key to be applied to a device. Must be a label name. + type: string + timeAdded: + description: TimeAdded represents the time at which the taint was added. + Added automatically during create or update if not set. + format: date-time + type: string + value: + description: The taint value corresponding to the taint key. Must be a label + value. + type: string + required: + - effect + - key + type: object + v1beta2.DeviceToleration: + description: "The ResourceClaim this DeviceToleration is attached to tolerates\ + \ any taint that matches the triple using the matching\ + \ operator ." + example: + effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + properties: + effect: + description: "Effect indicates the taint effect to match. Empty means match\ + \ all taint effects. When specified, allowed values are NoSchedule and\ + \ NoExecute." + type: string + key: + description: "Key is the taint key that the toleration applies to. Empty\ + \ means match all taint keys. If the key is empty, operator must be Exists;\ + \ this combination means to match all values and all keys. Must be a label\ + \ name." + type: string + operator: + description: "Operator represents a key's relationship to the value. Valid\ + \ operators are Exists and Equal. Defaults to Equal. Exists is equivalent\ + \ to wildcard for value, so that a ResourceClaim can tolerate all taints\ + \ of a particular category." + type: string + tolerationSeconds: + description: "TolerationSeconds represents the period of time the toleration\ + \ (which must be of effect NoExecute, otherwise this field is ignored)\ + \ tolerates the taint. By default, it is not set, which means tolerate\ + \ the taint forever (do not evict). Zero and negative values will be treated\ + \ as 0 (evict immediately) by the system. If larger than zero, the time\ + \ when the pod needs to be evicted is calculated as -# **getAPIResources** -> V1APIResourceList getAPIResources().execute(); - - - -get available resources - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.AuthenticationV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - AuthenticationV1beta1Api apiInstance = new AuthenticationV1beta1Api(defaultClient); - try { - V1APIResourceList result = apiInstance.getAPIResources() - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AuthenticationV1beta1Api#getAPIResources"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - diff --git a/kubernetes/docs/CertificatesV1beta1Api.md b/kubernetes/docs/CertificatesV1beta1Api.md new file mode 100644 index 0000000000..92b88e6b2a --- /dev/null +++ b/kubernetes/docs/CertificatesV1beta1Api.md @@ -0,0 +1,726 @@ +# CertificatesV1beta1Api + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createClusterTrustBundle**](CertificatesV1beta1Api.md#createClusterTrustBundle) | **POST** /apis/certificates.k8s.io/v1beta1/clustertrustbundles | | +| [**deleteClusterTrustBundle**](CertificatesV1beta1Api.md#deleteClusterTrustBundle) | **DELETE** /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name} | | +| [**deleteCollectionClusterTrustBundle**](CertificatesV1beta1Api.md#deleteCollectionClusterTrustBundle) | **DELETE** /apis/certificates.k8s.io/v1beta1/clustertrustbundles | | +| [**getAPIResources**](CertificatesV1beta1Api.md#getAPIResources) | **GET** /apis/certificates.k8s.io/v1beta1/ | | +| [**listClusterTrustBundle**](CertificatesV1beta1Api.md#listClusterTrustBundle) | **GET** /apis/certificates.k8s.io/v1beta1/clustertrustbundles | | +| [**patchClusterTrustBundle**](CertificatesV1beta1Api.md#patchClusterTrustBundle) | **PATCH** /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name} | | +| [**readClusterTrustBundle**](CertificatesV1beta1Api.md#readClusterTrustBundle) | **GET** /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name} | | +| [**replaceClusterTrustBundle**](CertificatesV1beta1Api.md#replaceClusterTrustBundle) | **PUT** /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name} | | + + + +# **createClusterTrustBundle** +> V1beta1ClusterTrustBundle createClusterTrustBundle(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create a ClusterTrustBundle + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + V1beta1ClusterTrustBundle body = new V1beta1ClusterTrustBundle(); // V1beta1ClusterTrustBundle | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1ClusterTrustBundle result = apiInstance.createClusterTrustBundle(body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#createClusterTrustBundle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1beta1ClusterTrustBundle**](V1beta1ClusterTrustBundle.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1beta1ClusterTrustBundle**](V1beta1ClusterTrustBundle.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **deleteClusterTrustBundle** +> V1Status deleteClusterTrustBundle(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a ClusterTrustBundle + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterTrustBundle + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteClusterTrustBundle(name) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#deleteClusterTrustBundle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ClusterTrustBundle | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **deleteCollectionClusterTrustBundle** +> V1Status deleteCollectionClusterTrustBundle().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +delete collection of ClusterTrustBundle + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionClusterTrustBundle() + .pretty(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#deleteCollectionClusterTrustBundle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **getAPIResources** +> V1APIResourceList getAPIResources().execute(); + + + +get available resources + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources() + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listClusterTrustBundle** +> V1beta1ClusterTrustBundleList listClusterTrustBundle().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind ClusterTrustBundle + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1ClusterTrustBundleList result = apiInstance.listClusterTrustBundle() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#listClusterTrustBundle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1beta1ClusterTrustBundleList**](V1beta1ClusterTrustBundleList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **patchClusterTrustBundle** +> V1beta1ClusterTrustBundle patchClusterTrustBundle(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified ClusterTrustBundle + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterTrustBundle + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1ClusterTrustBundle result = apiInstance.patchClusterTrustBundle(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#patchClusterTrustBundle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ClusterTrustBundle | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1beta1ClusterTrustBundle**](V1beta1ClusterTrustBundle.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **readClusterTrustBundle** +> V1beta1ClusterTrustBundle readClusterTrustBundle(name).pretty(pretty).execute(); + + + +read the specified ClusterTrustBundle + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterTrustBundle + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta1ClusterTrustBundle result = apiInstance.readClusterTrustBundle(name) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#readClusterTrustBundle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ClusterTrustBundle | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | + +### Return type + +[**V1beta1ClusterTrustBundle**](V1beta1ClusterTrustBundle.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **replaceClusterTrustBundle** +> V1beta1ClusterTrustBundle replaceClusterTrustBundle(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace the specified ClusterTrustBundle + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterTrustBundle + V1beta1ClusterTrustBundle body = new V1beta1ClusterTrustBundle(); // V1beta1ClusterTrustBundle | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1ClusterTrustBundle result = apiInstance.replaceClusterTrustBundle(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#replaceClusterTrustBundle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ClusterTrustBundle | | +| **body** | [**V1beta1ClusterTrustBundle**](V1beta1ClusterTrustBundle.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1beta1ClusterTrustBundle**](V1beta1ClusterTrustBundle.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + diff --git a/kubernetes/docs/CoordinationV1beta1Api.md b/kubernetes/docs/CoordinationV1beta1Api.md new file mode 100644 index 0000000000..d883a0ffaa --- /dev/null +++ b/kubernetes/docs/CoordinationV1beta1Api.md @@ -0,0 +1,843 @@ +# CoordinationV1beta1Api + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createNamespacedLeaseCandidate**](CoordinationV1beta1Api.md#createNamespacedLeaseCandidate) | **POST** /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates | | +| [**deleteCollectionNamespacedLeaseCandidate**](CoordinationV1beta1Api.md#deleteCollectionNamespacedLeaseCandidate) | **DELETE** /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates | | +| [**deleteNamespacedLeaseCandidate**](CoordinationV1beta1Api.md#deleteNamespacedLeaseCandidate) | **DELETE** /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name} | | +| [**getAPIResources**](CoordinationV1beta1Api.md#getAPIResources) | **GET** /apis/coordination.k8s.io/v1beta1/ | | +| [**listLeaseCandidateForAllNamespaces**](CoordinationV1beta1Api.md#listLeaseCandidateForAllNamespaces) | **GET** /apis/coordination.k8s.io/v1beta1/leasecandidates | | +| [**listNamespacedLeaseCandidate**](CoordinationV1beta1Api.md#listNamespacedLeaseCandidate) | **GET** /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates | | +| [**patchNamespacedLeaseCandidate**](CoordinationV1beta1Api.md#patchNamespacedLeaseCandidate) | **PATCH** /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name} | | +| [**readNamespacedLeaseCandidate**](CoordinationV1beta1Api.md#readNamespacedLeaseCandidate) | **GET** /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name} | | +| [**replaceNamespacedLeaseCandidate**](CoordinationV1beta1Api.md#replaceNamespacedLeaseCandidate) | **PUT** /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name} | | + + + +# **createNamespacedLeaseCandidate** +> V1beta1LeaseCandidate createNamespacedLeaseCandidate(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create a LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1LeaseCandidate body = new V1beta1LeaseCandidate(); // V1beta1LeaseCandidate | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1LeaseCandidate result = apiInstance.createNamespacedLeaseCandidate(namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#createNamespacedLeaseCandidate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1beta1LeaseCandidate**](V1beta1LeaseCandidate.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1beta1LeaseCandidate**](V1beta1LeaseCandidate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **deleteCollectionNamespacedLeaseCandidate** +> V1Status deleteCollectionNamespacedLeaseCandidate(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +delete collection of LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedLeaseCandidate(namespace) + .pretty(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#deleteCollectionNamespacedLeaseCandidate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **deleteNamespacedLeaseCandidate** +> V1Status deleteNamespacedLeaseCandidate(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the LeaseCandidate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedLeaseCandidate(name, namespace) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#deleteNamespacedLeaseCandidate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the LeaseCandidate | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **getAPIResources** +> V1APIResourceList getAPIResources().execute(); + + + +get available resources + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources() + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listLeaseCandidateForAllNamespaces** +> V1beta1LeaseCandidateList listLeaseCandidateForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1LeaseCandidateList result = apiInstance.listLeaseCandidateForAllNamespaces() + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#listLeaseCandidateForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1beta1LeaseCandidateList**](V1beta1LeaseCandidateList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listNamespacedLeaseCandidate** +> V1beta1LeaseCandidateList listNamespacedLeaseCandidate(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1LeaseCandidateList result = apiInstance.listNamespacedLeaseCandidate(namespace) + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#listNamespacedLeaseCandidate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1beta1LeaseCandidateList**](V1beta1LeaseCandidateList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **patchNamespacedLeaseCandidate** +> V1beta1LeaseCandidate patchNamespacedLeaseCandidate(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the LeaseCandidate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1LeaseCandidate result = apiInstance.patchNamespacedLeaseCandidate(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#patchNamespacedLeaseCandidate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the LeaseCandidate | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1beta1LeaseCandidate**](V1beta1LeaseCandidate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **readNamespacedLeaseCandidate** +> V1beta1LeaseCandidate readNamespacedLeaseCandidate(name, namespace).pretty(pretty).execute(); + + + +read the specified LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the LeaseCandidate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta1LeaseCandidate result = apiInstance.readNamespacedLeaseCandidate(name, namespace) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#readNamespacedLeaseCandidate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the LeaseCandidate | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | + +### Return type + +[**V1beta1LeaseCandidate**](V1beta1LeaseCandidate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **replaceNamespacedLeaseCandidate** +> V1beta1LeaseCandidate replaceNamespacedLeaseCandidate(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace the specified LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the LeaseCandidate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1LeaseCandidate body = new V1beta1LeaseCandidate(); // V1beta1LeaseCandidate | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1LeaseCandidate result = apiInstance.replaceNamespacedLeaseCandidate(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#replaceNamespacedLeaseCandidate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the LeaseCandidate | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1beta1LeaseCandidate**](V1beta1LeaseCandidate.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1beta1LeaseCandidate**](V1beta1LeaseCandidate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + diff --git a/kubernetes/docs/CoreV1EndpointPort.md b/kubernetes/docs/CoreV1EndpointPort.md index 9222392ac2..55f6ebcb56 100644 --- a/kubernetes/docs/CoreV1EndpointPort.md +++ b/kubernetes/docs/CoreV1EndpointPort.md @@ -2,7 +2,7 @@ # CoreV1EndpointPort -EndpointPort is a tuple that describes a single port. +EndpointPort is a tuple that describes a single port. Deprecated: This API is deprecated in v1.33+. ## Properties diff --git a/kubernetes/docs/DiscoveryV1EndpointPort.md b/kubernetes/docs/DiscoveryV1EndpointPort.md index 6a9c502cb9..754174ebfb 100644 --- a/kubernetes/docs/DiscoveryV1EndpointPort.md +++ b/kubernetes/docs/DiscoveryV1EndpointPort.md @@ -10,7 +10,7 @@ EndpointPort represents a Port used by an EndpointSlice |------------ | ------------- | ------------- | -------------| |**appProtocol** | **String** | The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. | [optional] | |**name** | **String** | name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. | [optional] | -|**port** | **Integer** | port represents the port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer. | [optional] | +|**port** | **Integer** | port represents the port number of the endpoint. If the EndpointSlice is derived from a Kubernetes service, this must be set to the service's target port. EndpointSlices used for other purposes may have a nil port. | [optional] | |**protocol** | **String** | protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. | [optional] | diff --git a/kubernetes/docs/NetworkingV1Api.md b/kubernetes/docs/NetworkingV1Api.md index b609e8c9f1..581aab4144 100644 --- a/kubernetes/docs/NetworkingV1Api.md +++ b/kubernetes/docs/NetworkingV1Api.md @@ -4,35 +4,137 @@ All URIs are relative to *http://localhost* | Method | HTTP request | Description | |------------- | ------------- | -------------| +| [**createIPAddress**](NetworkingV1Api.md#createIPAddress) | **POST** /apis/networking.k8s.io/v1/ipaddresses | | | [**createIngressClass**](NetworkingV1Api.md#createIngressClass) | **POST** /apis/networking.k8s.io/v1/ingressclasses | | | [**createNamespacedIngress**](NetworkingV1Api.md#createNamespacedIngress) | **POST** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses | | | [**createNamespacedNetworkPolicy**](NetworkingV1Api.md#createNamespacedNetworkPolicy) | **POST** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies | | +| [**createServiceCIDR**](NetworkingV1Api.md#createServiceCIDR) | **POST** /apis/networking.k8s.io/v1/servicecidrs | | +| [**deleteCollectionIPAddress**](NetworkingV1Api.md#deleteCollectionIPAddress) | **DELETE** /apis/networking.k8s.io/v1/ipaddresses | | | [**deleteCollectionIngressClass**](NetworkingV1Api.md#deleteCollectionIngressClass) | **DELETE** /apis/networking.k8s.io/v1/ingressclasses | | | [**deleteCollectionNamespacedIngress**](NetworkingV1Api.md#deleteCollectionNamespacedIngress) | **DELETE** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses | | | [**deleteCollectionNamespacedNetworkPolicy**](NetworkingV1Api.md#deleteCollectionNamespacedNetworkPolicy) | **DELETE** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies | | +| [**deleteCollectionServiceCIDR**](NetworkingV1Api.md#deleteCollectionServiceCIDR) | **DELETE** /apis/networking.k8s.io/v1/servicecidrs | | +| [**deleteIPAddress**](NetworkingV1Api.md#deleteIPAddress) | **DELETE** /apis/networking.k8s.io/v1/ipaddresses/{name} | | | [**deleteIngressClass**](NetworkingV1Api.md#deleteIngressClass) | **DELETE** /apis/networking.k8s.io/v1/ingressclasses/{name} | | | [**deleteNamespacedIngress**](NetworkingV1Api.md#deleteNamespacedIngress) | **DELETE** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name} | | | [**deleteNamespacedNetworkPolicy**](NetworkingV1Api.md#deleteNamespacedNetworkPolicy) | **DELETE** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} | | +| [**deleteServiceCIDR**](NetworkingV1Api.md#deleteServiceCIDR) | **DELETE** /apis/networking.k8s.io/v1/servicecidrs/{name} | | | [**getAPIResources**](NetworkingV1Api.md#getAPIResources) | **GET** /apis/networking.k8s.io/v1/ | | +| [**listIPAddress**](NetworkingV1Api.md#listIPAddress) | **GET** /apis/networking.k8s.io/v1/ipaddresses | | | [**listIngressClass**](NetworkingV1Api.md#listIngressClass) | **GET** /apis/networking.k8s.io/v1/ingressclasses | | | [**listIngressForAllNamespaces**](NetworkingV1Api.md#listIngressForAllNamespaces) | **GET** /apis/networking.k8s.io/v1/ingresses | | | [**listNamespacedIngress**](NetworkingV1Api.md#listNamespacedIngress) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses | | | [**listNamespacedNetworkPolicy**](NetworkingV1Api.md#listNamespacedNetworkPolicy) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies | | | [**listNetworkPolicyForAllNamespaces**](NetworkingV1Api.md#listNetworkPolicyForAllNamespaces) | **GET** /apis/networking.k8s.io/v1/networkpolicies | | +| [**listServiceCIDR**](NetworkingV1Api.md#listServiceCIDR) | **GET** /apis/networking.k8s.io/v1/servicecidrs | | +| [**patchIPAddress**](NetworkingV1Api.md#patchIPAddress) | **PATCH** /apis/networking.k8s.io/v1/ipaddresses/{name} | | | [**patchIngressClass**](NetworkingV1Api.md#patchIngressClass) | **PATCH** /apis/networking.k8s.io/v1/ingressclasses/{name} | | | [**patchNamespacedIngress**](NetworkingV1Api.md#patchNamespacedIngress) | **PATCH** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name} | | | [**patchNamespacedIngressStatus**](NetworkingV1Api.md#patchNamespacedIngressStatus) | **PATCH** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status | | | [**patchNamespacedNetworkPolicy**](NetworkingV1Api.md#patchNamespacedNetworkPolicy) | **PATCH** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} | | +| [**patchServiceCIDR**](NetworkingV1Api.md#patchServiceCIDR) | **PATCH** /apis/networking.k8s.io/v1/servicecidrs/{name} | | +| [**patchServiceCIDRStatus**](NetworkingV1Api.md#patchServiceCIDRStatus) | **PATCH** /apis/networking.k8s.io/v1/servicecidrs/{name}/status | | +| [**readIPAddress**](NetworkingV1Api.md#readIPAddress) | **GET** /apis/networking.k8s.io/v1/ipaddresses/{name} | | | [**readIngressClass**](NetworkingV1Api.md#readIngressClass) | **GET** /apis/networking.k8s.io/v1/ingressclasses/{name} | | | [**readNamespacedIngress**](NetworkingV1Api.md#readNamespacedIngress) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name} | | | [**readNamespacedIngressStatus**](NetworkingV1Api.md#readNamespacedIngressStatus) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status | | | [**readNamespacedNetworkPolicy**](NetworkingV1Api.md#readNamespacedNetworkPolicy) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} | | +| [**readServiceCIDR**](NetworkingV1Api.md#readServiceCIDR) | **GET** /apis/networking.k8s.io/v1/servicecidrs/{name} | | +| [**readServiceCIDRStatus**](NetworkingV1Api.md#readServiceCIDRStatus) | **GET** /apis/networking.k8s.io/v1/servicecidrs/{name}/status | | +| [**replaceIPAddress**](NetworkingV1Api.md#replaceIPAddress) | **PUT** /apis/networking.k8s.io/v1/ipaddresses/{name} | | | [**replaceIngressClass**](NetworkingV1Api.md#replaceIngressClass) | **PUT** /apis/networking.k8s.io/v1/ingressclasses/{name} | | | [**replaceNamespacedIngress**](NetworkingV1Api.md#replaceNamespacedIngress) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name} | | | [**replaceNamespacedIngressStatus**](NetworkingV1Api.md#replaceNamespacedIngressStatus) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status | | | [**replaceNamespacedNetworkPolicy**](NetworkingV1Api.md#replaceNamespacedNetworkPolicy) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} | | +| [**replaceServiceCIDR**](NetworkingV1Api.md#replaceServiceCIDR) | **PUT** /apis/networking.k8s.io/v1/servicecidrs/{name} | | +| [**replaceServiceCIDRStatus**](NetworkingV1Api.md#replaceServiceCIDRStatus) | **PUT** /apis/networking.k8s.io/v1/servicecidrs/{name}/status | | + +# **createIPAddress** +> V1IPAddress createIPAddress(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create an IPAddress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + V1IPAddress body = new V1IPAddress(); // V1IPAddress | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1IPAddress result = apiInstance.createIPAddress(body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#createIPAddress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1IPAddress**](V1IPAddress.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1IPAddress**](V1IPAddress.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + # **createIngressClass** > V1IngressClass createIngressClass(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); @@ -292,13 +394,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteCollectionIngressClass** -> V1Status deleteCollectionIngressClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **createServiceCIDR** +> V1ServiceCIDR createServiceCIDR(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -delete collection of IngressClass +create a ServiceCIDR ### Example ```java @@ -322,42 +424,21 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + V1ServiceCIDR body = new V1ServiceCIDR(); // V1ServiceCIDR | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1Status result = apiInstance.deleteCollectionIngressClass() + V1ServiceCIDR result = apiInstance.createServiceCIDR(body) .pretty(pretty) - ._continue(_continue) .dryRun(dryRun) - .fieldSelector(fieldSelector) - .gracePeriodSeconds(gracePeriodSeconds) - .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) - .labelSelector(labelSelector) - .limit(limit) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .body(body) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#deleteCollectionIngressClass"); + System.err.println("Exception when calling NetworkingV1Api#createServiceCIDR"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -371,25 +452,15 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **body** | [**V1ServiceCIDR**](V1ServiceCIDR.md)| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | -| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | -| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | -| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | -| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type -[**V1Status**](V1Status.md) +[**V1ServiceCIDR**](V1ServiceCIDR.md) ### Authorization @@ -404,15 +475,17 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteCollectionNamespacedIngress** -> V1Status deleteCollectionNamespacedIngress(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **deleteCollectionIPAddress** +> V1Status deleteCollectionIPAddress().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete collection of Ingress +delete collection of IPAddress ### Example ```java @@ -436,7 +509,6 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -453,7 +525,7 @@ public class Example { Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedIngress(namespace) + V1Status result = apiInstance.deleteCollectionIPAddress() .pretty(pretty) ._continue(_continue) .dryRun(dryRun) @@ -472,7 +544,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#deleteCollectionNamespacedIngress"); + System.err.println("Exception when calling NetworkingV1Api#deleteCollectionIPAddress"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -486,7 +558,6 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | @@ -522,13 +593,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **deleteCollectionNamespacedNetworkPolicy** -> V1Status deleteCollectionNamespacedNetworkPolicy(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **deleteCollectionIngressClass** +> V1Status deleteCollectionIngressClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete collection of NetworkPolicy +delete collection of IngressClass ### Example ```java @@ -552,7 +623,6 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -569,7 +639,7 @@ public class Example { Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedNetworkPolicy(namespace) + V1Status result = apiInstance.deleteCollectionIngressClass() .pretty(pretty) ._continue(_continue) .dryRun(dryRun) @@ -588,7 +658,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#deleteCollectionNamespacedNetworkPolicy"); + System.err.println("Exception when calling NetworkingV1Api#deleteCollectionIngressClass"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -602,7 +672,6 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | @@ -638,13 +707,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **deleteIngressClass** -> V1Status deleteIngressClass(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteCollectionNamespacedIngress** +> V1Status deleteCollectionNamespacedIngress(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete an IngressClass +delete collection of Ingress ### Example ```java @@ -668,27 +737,43 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the IngressClass + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteIngressClass(name) + V1Status result = apiInstance.deleteCollectionNamespacedIngress(namespace) .pretty(pretty) + ._continue(_continue) .dryRun(dryRun) + .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#deleteIngressClass"); + System.err.println("Exception when calling NetworkingV1Api#deleteCollectionNamespacedIngress"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -702,13 +787,21 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the IngressClass | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | | **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | | **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | | **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | | **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -728,16 +821,15 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | -| **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteNamespacedIngress** -> V1Status deleteNamespacedIngress(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteCollectionNamespacedNetworkPolicy** +> V1Status deleteCollectionNamespacedNetworkPolicy(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete an Ingress +delete collection of NetworkPolicy ### Example ```java @@ -761,28 +853,43 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the Ingress String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedIngress(name, namespace) + V1Status result = apiInstance.deleteCollectionNamespacedNetworkPolicy(namespace) .pretty(pretty) + ._continue(_continue) .dryRun(dryRun) + .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#deleteNamespacedIngress"); + System.err.println("Exception when calling NetworkingV1Api#deleteCollectionNamespacedNetworkPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -796,14 +903,21 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the Ingress | | | **namespace** | **String**| object name and auth scope, such as for teams and projects | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | | **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | | **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | | **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | | **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -823,16 +937,15 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | -| **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteNamespacedNetworkPolicy** -> V1Status deleteNamespacedNetworkPolicy(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteCollectionServiceCIDR** +> V1Status deleteCollectionServiceCIDR().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete a NetworkPolicy +delete collection of ServiceCIDR ### Example ```java @@ -856,28 +969,42 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the NetworkPolicy - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedNetworkPolicy(name, namespace) + V1Status result = apiInstance.deleteCollectionServiceCIDR() .pretty(pretty) + ._continue(_continue) .dryRun(dryRun) + .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#deleteNamespacedNetworkPolicy"); + System.err.println("Exception when calling NetworkingV1Api#deleteCollectionServiceCIDR"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -891,8 +1018,106 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the NetworkPolicy | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **deleteIPAddress** +> V1Status deleteIPAddress(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete an IPAddress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the IPAddress + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteIPAddress(name) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#deleteIPAddress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the IPAddress | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | | **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | @@ -921,13 +1146,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **getAPIResources** -> V1APIResourceList getAPIResources().execute(); + +# **deleteIngressClass** +> V1Status deleteIngressClass(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -get available resources +delete an IngressClass ### Example ```java @@ -951,12 +1176,27 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the IngressClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1APIResourceList result = apiInstance.getAPIResources() + V1Status result = apiInstance.deleteIngressClass(name) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#getAPIResources"); + System.err.println("Exception when calling NetworkingV1Api#deleteIngressClass"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -967,11 +1207,21 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the IngressClass | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type -[**V1APIResourceList**](V1APIResourceList.md) +[**V1Status**](V1Status.md) ### Authorization @@ -979,22 +1229,23 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | +| **202** | Accepted | - | | **401** | Unauthorized | - | - -# **listIngressClass** -> V1IngressClassList listIngressClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **deleteNamespacedIngress** +> V1Status deleteNamespacedIngress(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -list or watch objects of kind IngressClass +delete an Ingress ### Example ```java @@ -1018,34 +1269,28 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1IngressClassList result = apiInstance.listIngressClass() + V1Status result = apiInstance.deleteNamespacedIngress(name, namespace) .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#listIngressClass"); + System.err.println("Exception when calling NetworkingV1Api#deleteNamespacedIngress"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1059,21 +1304,1443 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Ingress | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | -| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | -| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **deleteNamespacedNetworkPolicy** +> V1Status deleteNamespacedNetworkPolicy(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a NetworkPolicy + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the NetworkPolicy + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedNetworkPolicy(name, namespace) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#deleteNamespacedNetworkPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the NetworkPolicy | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **deleteServiceCIDR** +> V1Status deleteServiceCIDR(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a ServiceCIDR + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceCIDR + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteServiceCIDR(name) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#deleteServiceCIDR"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ServiceCIDR | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **getAPIResources** +> V1APIResourceList getAPIResources().execute(); + + + +get available resources + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources() + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listIPAddress** +> V1IPAddressList listIPAddress().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind IPAddress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1IPAddressList result = apiInstance.listIPAddress() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#listIPAddress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1IPAddressList**](V1IPAddressList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listIngressClass** +> V1IngressClassList listIngressClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind IngressClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1IngressClassList result = apiInstance.listIngressClass() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#listIngressClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1IngressClassList**](V1IngressClassList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listIngressForAllNamespaces** +> V1IngressList listIngressForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind Ingress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1IngressList result = apiInstance.listIngressForAllNamespaces() + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#listIngressForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1IngressList**](V1IngressList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listNamespacedIngress** +> V1IngressList listNamespacedIngress(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind Ingress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1IngressList result = apiInstance.listNamespacedIngress(namespace) + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#listNamespacedIngress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1IngressList**](V1IngressList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listNamespacedNetworkPolicy** +> V1NetworkPolicyList listNamespacedNetworkPolicy(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind NetworkPolicy + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1NetworkPolicyList result = apiInstance.listNamespacedNetworkPolicy(namespace) + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#listNamespacedNetworkPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1NetworkPolicyList**](V1NetworkPolicyList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listNetworkPolicyForAllNamespaces** +> V1NetworkPolicyList listNetworkPolicyForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind NetworkPolicy + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1NetworkPolicyList result = apiInstance.listNetworkPolicyForAllNamespaces() + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#listNetworkPolicyForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1NetworkPolicyList**](V1NetworkPolicyList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listServiceCIDR** +> V1ServiceCIDRList listServiceCIDR().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind ServiceCIDR + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ServiceCIDRList result = apiInstance.listServiceCIDR() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#listServiceCIDR"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1ServiceCIDRList**](V1ServiceCIDRList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **patchIPAddress** +> V1IPAddress patchIPAddress(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified IPAddress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the IPAddress + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1IPAddress result = apiInstance.patchIPAddress(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#patchIPAddress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the IPAddress | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1IPAddress**](V1IPAddress.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **patchIngressClass** +> V1IngressClass patchIngressClass(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified IngressClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the IngressClass + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1IngressClass result = apiInstance.patchIngressClass(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#patchIngressClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the IngressClass | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1IngressClass**](V1IngressClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **patchNamespacedIngress** +> V1Ingress patchNamespacedIngress(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified Ingress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Ingress result = apiInstance.patchNamespacedIngress(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#patchNamespacedIngress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Ingress | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1Ingress**](V1Ingress.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **patchNamespacedIngressStatus** +> V1Ingress patchNamespacedIngressStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update status of the specified Ingress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Ingress result = apiInstance.patchNamespacedIngressStatus(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#patchNamespacedIngressStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Ingress | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1Ingress**](V1Ingress.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **patchNamespacedNetworkPolicy** +> V1NetworkPolicy patchNamespacedNetworkPolicy(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified NetworkPolicy + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the NetworkPolicy + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1NetworkPolicy result = apiInstance.patchNamespacedNetworkPolicy(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#patchNamespacedNetworkPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the NetworkPolicy | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type -[**V1IngressClassList**](V1IngressClassList.md) +[**V1NetworkPolicy**](V1NetworkPolicy.md) ### Authorization @@ -1081,22 +2748,23 @@ public class Example { ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | +| **201** | Created | - | | **401** | Unauthorized | - | - -# **listIngressForAllNamespaces** -> V1IngressList listIngressForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **patchServiceCIDR** +> V1ServiceCIDR patchServiceCIDR(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -list or watch objects of kind Ingress +partially update the specified ServiceCIDR ### Example ```java @@ -1120,34 +2788,24 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String name = "name_example"; // String | name of the ServiceCIDR + V1Patch body = new V1Patch(); // V1Patch | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - V1IngressList result = apiInstance.listIngressForAllNamespaces() - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) + V1ServiceCIDR result = apiInstance.patchServiceCIDR(name, body) .pretty(pretty) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#listIngressForAllNamespaces"); + System.err.println("Exception when calling NetworkingV1Api#patchServiceCIDR"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1161,21 +2819,17 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | -| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **name** | **String**| name of the ServiceCIDR | | +| **body** | **V1Patch**| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type -[**V1IngressList**](V1IngressList.md) +[**V1ServiceCIDR**](V1ServiceCIDR.md) ### Authorization @@ -1183,22 +2837,23 @@ public class Example { ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | +| **201** | Created | - | | **401** | Unauthorized | - | - -# **listNamespacedIngress** -> V1IngressList listNamespacedIngress(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **patchServiceCIDRStatus** +> V1ServiceCIDR patchServiceCIDRStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -list or watch objects of kind Ingress +partially update status of the specified ServiceCIDR ### Example ```java @@ -1222,35 +2877,24 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String name = "name_example"; // String | name of the ServiceCIDR + V1Patch body = new V1Patch(); // V1Patch | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - V1IngressList result = apiInstance.listNamespacedIngress(namespace) + V1ServiceCIDR result = apiInstance.patchServiceCIDRStatus(name, body) .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#listNamespacedIngress"); + System.err.println("Exception when calling NetworkingV1Api#patchServiceCIDRStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1264,22 +2908,17 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **name** | **String**| name of the ServiceCIDR | | +| **body** | **V1Patch**| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | -| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | -| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type -[**V1IngressList**](V1IngressList.md) +[**V1ServiceCIDR**](V1ServiceCIDR.md) ### Authorization @@ -1287,22 +2926,23 @@ public class Example { ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | +| **201** | Created | - | | **401** | Unauthorized | - | - -# **listNamespacedNetworkPolicy** -> V1NetworkPolicyList listNamespacedNetworkPolicy(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **readIPAddress** +> V1IPAddress readIPAddress(name).pretty(pretty).execute(); -list or watch objects of kind NetworkPolicy +read the specified IPAddress ### Example ```java @@ -1326,35 +2966,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String name = "name_example"; // String | name of the IPAddress String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { - V1NetworkPolicyList result = apiInstance.listNamespacedNetworkPolicy(namespace) + V1IPAddress result = apiInstance.readIPAddress(name) .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#listNamespacedNetworkPolicy"); + System.err.println("Exception when calling NetworkingV1Api#readIPAddress"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1368,22 +2988,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **name** | **String**| name of the IPAddress | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | -| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | -| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type -[**V1NetworkPolicyList**](V1NetworkPolicyList.md) +[**V1IPAddress**](V1IPAddress.md) ### Authorization @@ -1392,7 +3002,7 @@ public class Example { ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1400,13 +3010,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **listNetworkPolicyForAllNamespaces** -> V1NetworkPolicyList listNetworkPolicyForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **readIngressClass** +> V1IngressClass readIngressClass(name).pretty(pretty).execute(); -list or watch objects of kind NetworkPolicy +read the specified IngressClass ### Example ```java @@ -1430,34 +3040,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String name = "name_example"; // String | name of the IngressClass String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { - V1NetworkPolicyList result = apiInstance.listNetworkPolicyForAllNamespaces() - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) + V1IngressClass result = apiInstance.readIngressClass(name) .pretty(pretty) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#listNetworkPolicyForAllNamespaces"); + System.err.println("Exception when calling NetworkingV1Api#readIngressClass"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1471,21 +3062,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | -| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **name** | **String**| name of the IngressClass | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type -[**V1NetworkPolicyList**](V1NetworkPolicyList.md) +[**V1IngressClass**](V1IngressClass.md) ### Authorization @@ -1494,7 +3076,7 @@ public class Example { ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1502,13 +3084,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **patchIngressClass** -> V1IngressClass patchIngressClass(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **readNamespacedIngress** +> V1Ingress readNamespacedIngress(name, namespace).pretty(pretty).execute(); -partially update the specified IngressClass +read the specified Ingress ### Example ```java @@ -1532,24 +3114,16 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the IngressClass - V1Patch body = new V1Patch(); // V1Patch | + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - V1IngressClass result = apiInstance.patchIngressClass(name, body) + V1Ingress result = apiInstance.readNamespacedIngress(name, namespace) .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#patchIngressClass"); + System.err.println("Exception when calling NetworkingV1Api#readNamespacedIngress"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1563,17 +3137,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the IngressClass | | -| **body** | **V1Patch**| | | +| **name** | **String**| name of the Ingress | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | -| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | -| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type -[**V1IngressClass**](V1IngressClass.md) +[**V1Ingress**](V1Ingress.md) ### Authorization @@ -1581,23 +3151,22 @@ public class Example { ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | -| **201** | Created | - | | **401** | Unauthorized | - | - -# **patchNamespacedIngress** -> V1Ingress patchNamespacedIngress(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **readNamespacedIngressStatus** +> V1Ingress readNamespacedIngressStatus(name, namespace).pretty(pretty).execute(); -partially update the specified Ingress +read status of the specified Ingress ### Example ```java @@ -1623,23 +3192,14 @@ public class Example { NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); String name = "name_example"; // String | name of the Ingress String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1Patch body = new V1Patch(); // V1Patch | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - V1Ingress result = apiInstance.patchNamespacedIngress(name, namespace, body) + V1Ingress result = apiInstance.readNamespacedIngressStatus(name, namespace) .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#patchNamespacedIngress"); + System.err.println("Exception when calling NetworkingV1Api#readNamespacedIngressStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1655,12 +3215,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **name** | **String**| name of the Ingress | | | **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **body** | **V1Patch**| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | -| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | -| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1672,23 +3227,22 @@ public class Example { ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | -| **201** | Created | - | | **401** | Unauthorized | - | - -# **patchNamespacedIngressStatus** -> V1Ingress patchNamespacedIngressStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **readNamespacedNetworkPolicy** +> V1NetworkPolicy readNamespacedNetworkPolicy(name, namespace).pretty(pretty).execute(); -partially update status of the specified Ingress +read the specified NetworkPolicy ### Example ```java @@ -1712,25 +3266,16 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the Ingress + String name = "name_example"; // String | name of the NetworkPolicy String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1Patch body = new V1Patch(); // V1Patch | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - V1Ingress result = apiInstance.patchNamespacedIngressStatus(name, namespace, body) + V1NetworkPolicy result = apiInstance.readNamespacedNetworkPolicy(name, namespace) .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#patchNamespacedIngressStatus"); + System.err.println("Exception when calling NetworkingV1Api#readNamespacedNetworkPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1744,18 +3289,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the Ingress | | +| **name** | **String**| name of the NetworkPolicy | | | **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **body** | **V1Patch**| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | -| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | -| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type -[**V1Ingress**](V1Ingress.md) +[**V1NetworkPolicy**](V1NetworkPolicy.md) ### Authorization @@ -1763,23 +3303,22 @@ public class Example { ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | -| **201** | Created | - | | **401** | Unauthorized | - | - -# **patchNamespacedNetworkPolicy** -> V1NetworkPolicy patchNamespacedNetworkPolicy(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **readServiceCIDR** +> V1ServiceCIDR readServiceCIDR(name).pretty(pretty).execute(); -partially update the specified NetworkPolicy +read the specified ServiceCIDR ### Example ```java @@ -1803,25 +3342,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the NetworkPolicy - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1Patch body = new V1Patch(); // V1Patch | + String name = "name_example"; // String | name of the ServiceCIDR String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - V1NetworkPolicy result = apiInstance.patchNamespacedNetworkPolicy(name, namespace, body) + V1ServiceCIDR result = apiInstance.readServiceCIDR(name) .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#patchNamespacedNetworkPolicy"); + System.err.println("Exception when calling NetworkingV1Api#readServiceCIDR"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1835,18 +3364,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the NetworkPolicy | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **body** | **V1Patch**| | | +| **name** | **String**| name of the ServiceCIDR | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | -| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | -| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type -[**V1NetworkPolicy**](V1NetworkPolicy.md) +[**V1ServiceCIDR**](V1ServiceCIDR.md) ### Authorization @@ -1854,23 +3377,22 @@ public class Example { ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | -| **201** | Created | - | | **401** | Unauthorized | - | - -# **readIngressClass** -> V1IngressClass readIngressClass(name).pretty(pretty).execute(); + +# **readServiceCIDRStatus** +> V1ServiceCIDR readServiceCIDRStatus(name).pretty(pretty).execute(); -read the specified IngressClass +read status of the specified ServiceCIDR ### Example ```java @@ -1894,15 +3416,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the IngressClass + String name = "name_example"; // String | name of the ServiceCIDR String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { - V1IngressClass result = apiInstance.readIngressClass(name) + V1ServiceCIDR result = apiInstance.readServiceCIDRStatus(name) .pretty(pretty) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#readIngressClass"); + System.err.println("Exception when calling NetworkingV1Api#readServiceCIDRStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1916,12 +3438,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the IngressClass | | +| **name** | **String**| name of the ServiceCIDR | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | ### Return type -[**V1IngressClass**](V1IngressClass.md) +[**V1ServiceCIDR**](V1ServiceCIDR.md) ### Authorization @@ -1938,13 +3460,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **readNamespacedIngress** -> V1Ingress readNamespacedIngress(name, namespace).pretty(pretty).execute(); + +# **replaceIPAddress** +> V1IPAddress replaceIPAddress(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -read the specified Ingress +replace the specified IPAddress ### Example ```java @@ -1968,16 +3490,22 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the Ingress - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String name = "name_example"; // String | name of the IPAddress + V1IPAddress body = new V1IPAddress(); // V1IPAddress | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1Ingress result = apiInstance.readNamespacedIngress(name, namespace) + V1IPAddress result = apiInstance.replaceIPAddress(name, body) .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#readNamespacedIngress"); + System.err.println("Exception when calling NetworkingV1Api#replaceIPAddress"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1991,13 +3519,16 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the Ingress | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **name** | **String**| name of the IPAddress | | +| **body** | [**V1IPAddress**](V1IPAddress.md)| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type -[**V1Ingress**](V1Ingress.md) +[**V1IPAddress**](V1IPAddress.md) ### Authorization @@ -2005,22 +3536,23 @@ public class Example { ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | +| **201** | Created | - | | **401** | Unauthorized | - | - -# **readNamespacedIngressStatus** -> V1Ingress readNamespacedIngressStatus(name, namespace).pretty(pretty).execute(); + +# **replaceIngressClass** +> V1IngressClass replaceIngressClass(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -read status of the specified Ingress +replace the specified IngressClass ### Example ```java @@ -2044,16 +3576,22 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the Ingress - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String name = "name_example"; // String | name of the IngressClass + V1IngressClass body = new V1IngressClass(); // V1IngressClass | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1Ingress result = apiInstance.readNamespacedIngressStatus(name, namespace) + V1IngressClass result = apiInstance.replaceIngressClass(name, body) .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#readNamespacedIngressStatus"); + System.err.println("Exception when calling NetworkingV1Api#replaceIngressClass"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2067,13 +3605,16 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the Ingress | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **name** | **String**| name of the IngressClass | | +| **body** | [**V1IngressClass**](V1IngressClass.md)| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type -[**V1Ingress**](V1Ingress.md) +[**V1IngressClass**](V1IngressClass.md) ### Authorization @@ -2081,22 +3622,23 @@ public class Example { ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | +| **201** | Created | - | | **401** | Unauthorized | - | - -# **readNamespacedNetworkPolicy** -> V1NetworkPolicy readNamespacedNetworkPolicy(name, namespace).pretty(pretty).execute(); + +# **replaceNamespacedIngress** +> V1Ingress replaceNamespacedIngress(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -read the specified NetworkPolicy +replace the specified Ingress ### Example ```java @@ -2120,16 +3662,23 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the NetworkPolicy + String name = "name_example"; // String | name of the Ingress String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Ingress body = new V1Ingress(); // V1Ingress | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1NetworkPolicy result = apiInstance.readNamespacedNetworkPolicy(name, namespace) + V1Ingress result = apiInstance.replaceNamespacedIngress(name, namespace, body) .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#readNamespacedNetworkPolicy"); + System.err.println("Exception when calling NetworkingV1Api#replaceNamespacedIngress"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2143,13 +3692,17 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the NetworkPolicy | | +| **name** | **String**| name of the Ingress | | | **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Ingress**](V1Ingress.md)| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type -[**V1NetworkPolicy**](V1NetworkPolicy.md) +[**V1Ingress**](V1Ingress.md) ### Authorization @@ -2157,22 +3710,23 @@ public class Example { ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | +| **201** | Created | - | | **401** | Unauthorized | - | - -# **replaceIngressClass** -> V1IngressClass replaceIngressClass(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceNamespacedIngressStatus** +> V1Ingress replaceNamespacedIngressStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace the specified IngressClass +replace status of the specified Ingress ### Example ```java @@ -2196,14 +3750,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the IngressClass - V1IngressClass body = new V1IngressClass(); // V1IngressClass | + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Ingress body = new V1Ingress(); // V1Ingress | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1IngressClass result = apiInstance.replaceIngressClass(name, body) + V1Ingress result = apiInstance.replaceNamespacedIngressStatus(name, namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -2211,7 +3766,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#replaceIngressClass"); + System.err.println("Exception when calling NetworkingV1Api#replaceNamespacedIngressStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2225,8 +3780,9 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the IngressClass | | -| **body** | [**V1IngressClass**](V1IngressClass.md)| | | +| **name** | **String**| name of the Ingress | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Ingress**](V1Ingress.md)| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | | **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | @@ -2234,7 +3790,7 @@ public class Example { ### Return type -[**V1IngressClass**](V1IngressClass.md) +[**V1Ingress**](V1Ingress.md) ### Authorization @@ -2252,13 +3808,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **replaceNamespacedIngress** -> V1Ingress replaceNamespacedIngress(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceNamespacedNetworkPolicy** +> V1NetworkPolicy replaceNamespacedNetworkPolicy(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace the specified Ingress +replace the specified NetworkPolicy ### Example ```java @@ -2282,15 +3838,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the Ingress + String name = "name_example"; // String | name of the NetworkPolicy String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1Ingress body = new V1Ingress(); // V1Ingress | + V1NetworkPolicy body = new V1NetworkPolicy(); // V1NetworkPolicy | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1Ingress result = apiInstance.replaceNamespacedIngress(name, namespace, body) + V1NetworkPolicy result = apiInstance.replaceNamespacedNetworkPolicy(name, namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -2298,7 +3854,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#replaceNamespacedIngress"); + System.err.println("Exception when calling NetworkingV1Api#replaceNamespacedNetworkPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2312,9 +3868,9 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the Ingress | | +| **name** | **String**| name of the NetworkPolicy | | | **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **body** | [**V1Ingress**](V1Ingress.md)| | | +| **body** | [**V1NetworkPolicy**](V1NetworkPolicy.md)| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | | **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | @@ -2322,7 +3878,7 @@ public class Example { ### Return type -[**V1Ingress**](V1Ingress.md) +[**V1NetworkPolicy**](V1NetworkPolicy.md) ### Authorization @@ -2340,13 +3896,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **replaceNamespacedIngressStatus** -> V1Ingress replaceNamespacedIngressStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceServiceCIDR** +> V1ServiceCIDR replaceServiceCIDR(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace status of the specified Ingress +replace the specified ServiceCIDR ### Example ```java @@ -2370,15 +3926,14 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the Ingress - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1Ingress body = new V1Ingress(); // V1Ingress | + String name = "name_example"; // String | name of the ServiceCIDR + V1ServiceCIDR body = new V1ServiceCIDR(); // V1ServiceCIDR | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1Ingress result = apiInstance.replaceNamespacedIngressStatus(name, namespace, body) + V1ServiceCIDR result = apiInstance.replaceServiceCIDR(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -2386,7 +3941,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#replaceNamespacedIngressStatus"); + System.err.println("Exception when calling NetworkingV1Api#replaceServiceCIDR"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2400,9 +3955,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the Ingress | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **body** | [**V1Ingress**](V1Ingress.md)| | | +| **name** | **String**| name of the ServiceCIDR | | +| **body** | [**V1ServiceCIDR**](V1ServiceCIDR.md)| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | | **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | @@ -2410,7 +3964,7 @@ public class Example { ### Return type -[**V1Ingress**](V1Ingress.md) +[**V1ServiceCIDR**](V1ServiceCIDR.md) ### Authorization @@ -2428,13 +3982,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **replaceNamespacedNetworkPolicy** -> V1NetworkPolicy replaceNamespacedNetworkPolicy(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceServiceCIDRStatus** +> V1ServiceCIDR replaceServiceCIDRStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace the specified NetworkPolicy +replace status of the specified ServiceCIDR ### Example ```java @@ -2458,15 +4012,14 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the NetworkPolicy - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1NetworkPolicy body = new V1NetworkPolicy(); // V1NetworkPolicy | + String name = "name_example"; // String | name of the ServiceCIDR + V1ServiceCIDR body = new V1ServiceCIDR(); // V1ServiceCIDR | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1NetworkPolicy result = apiInstance.replaceNamespacedNetworkPolicy(name, namespace, body) + V1ServiceCIDR result = apiInstance.replaceServiceCIDRStatus(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -2474,7 +4027,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#replaceNamespacedNetworkPolicy"); + System.err.println("Exception when calling NetworkingV1Api#replaceServiceCIDRStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2488,9 +4041,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the NetworkPolicy | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **body** | [**V1NetworkPolicy**](V1NetworkPolicy.md)| | | +| **name** | **String**| name of the ServiceCIDR | | +| **body** | [**V1ServiceCIDR**](V1ServiceCIDR.md)| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | | **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | @@ -2498,7 +4050,7 @@ public class Example { ### Return type -[**V1NetworkPolicy**](V1NetworkPolicy.md) +[**V1ServiceCIDR**](V1ServiceCIDR.md) ### Authorization diff --git a/kubernetes/docs/ResourceV1alpha3Api.md b/kubernetes/docs/ResourceV1alpha3Api.md index 6d82dcfe00..59e277670a 100644 --- a/kubernetes/docs/ResourceV1alpha3Api.md +++ b/kubernetes/docs/ResourceV1alpha3Api.md @@ -5,35 +5,42 @@ All URIs are relative to *http://localhost* | Method | HTTP request | Description | |------------- | ------------- | -------------| | [**createDeviceClass**](ResourceV1alpha3Api.md#createDeviceClass) | **POST** /apis/resource.k8s.io/v1alpha3/deviceclasses | | +| [**createDeviceTaintRule**](ResourceV1alpha3Api.md#createDeviceTaintRule) | **POST** /apis/resource.k8s.io/v1alpha3/devicetaintrules | | | [**createNamespacedResourceClaim**](ResourceV1alpha3Api.md#createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims | | | [**createNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates | | | [**createResourceSlice**](ResourceV1alpha3Api.md#createResourceSlice) | **POST** /apis/resource.k8s.io/v1alpha3/resourceslices | | | [**deleteCollectionDeviceClass**](ResourceV1alpha3Api.md#deleteCollectionDeviceClass) | **DELETE** /apis/resource.k8s.io/v1alpha3/deviceclasses | | +| [**deleteCollectionDeviceTaintRule**](ResourceV1alpha3Api.md#deleteCollectionDeviceTaintRule) | **DELETE** /apis/resource.k8s.io/v1alpha3/devicetaintrules | | | [**deleteCollectionNamespacedResourceClaim**](ResourceV1alpha3Api.md#deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims | | | [**deleteCollectionNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates | | | [**deleteCollectionResourceSlice**](ResourceV1alpha3Api.md#deleteCollectionResourceSlice) | **DELETE** /apis/resource.k8s.io/v1alpha3/resourceslices | | | [**deleteDeviceClass**](ResourceV1alpha3Api.md#deleteDeviceClass) | **DELETE** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | | +| [**deleteDeviceTaintRule**](ResourceV1alpha3Api.md#deleteDeviceTaintRule) | **DELETE** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | | | [**deleteNamespacedResourceClaim**](ResourceV1alpha3Api.md#deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | | | [**deleteNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | | | [**deleteResourceSlice**](ResourceV1alpha3Api.md#deleteResourceSlice) | **DELETE** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | | | [**getAPIResources**](ResourceV1alpha3Api.md#getAPIResources) | **GET** /apis/resource.k8s.io/v1alpha3/ | | | [**listDeviceClass**](ResourceV1alpha3Api.md#listDeviceClass) | **GET** /apis/resource.k8s.io/v1alpha3/deviceclasses | | +| [**listDeviceTaintRule**](ResourceV1alpha3Api.md#listDeviceTaintRule) | **GET** /apis/resource.k8s.io/v1alpha3/devicetaintrules | | | [**listNamespacedResourceClaim**](ResourceV1alpha3Api.md#listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims | | | [**listNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates | | | [**listResourceClaimForAllNamespaces**](ResourceV1alpha3Api.md#listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha3/resourceclaims | | | [**listResourceClaimTemplateForAllNamespaces**](ResourceV1alpha3Api.md#listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha3/resourceclaimtemplates | | | [**listResourceSlice**](ResourceV1alpha3Api.md#listResourceSlice) | **GET** /apis/resource.k8s.io/v1alpha3/resourceslices | | | [**patchDeviceClass**](ResourceV1alpha3Api.md#patchDeviceClass) | **PATCH** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | | +| [**patchDeviceTaintRule**](ResourceV1alpha3Api.md#patchDeviceTaintRule) | **PATCH** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | | | [**patchNamespacedResourceClaim**](ResourceV1alpha3Api.md#patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | | | [**patchNamespacedResourceClaimStatus**](ResourceV1alpha3Api.md#patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status | | | [**patchNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | | | [**patchResourceSlice**](ResourceV1alpha3Api.md#patchResourceSlice) | **PATCH** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | | | [**readDeviceClass**](ResourceV1alpha3Api.md#readDeviceClass) | **GET** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | | +| [**readDeviceTaintRule**](ResourceV1alpha3Api.md#readDeviceTaintRule) | **GET** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | | | [**readNamespacedResourceClaim**](ResourceV1alpha3Api.md#readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | | | [**readNamespacedResourceClaimStatus**](ResourceV1alpha3Api.md#readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status | | | [**readNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | | | [**readResourceSlice**](ResourceV1alpha3Api.md#readResourceSlice) | **GET** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | | | [**replaceDeviceClass**](ResourceV1alpha3Api.md#replaceDeviceClass) | **PUT** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | | +| [**replaceDeviceTaintRule**](ResourceV1alpha3Api.md#replaceDeviceTaintRule) | **PUT** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | | | [**replaceNamespacedResourceClaim**](ResourceV1alpha3Api.md#replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | | | [**replaceNamespacedResourceClaimStatus**](ResourceV1alpha3Api.md#replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status | | | [**replaceNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | | @@ -125,6 +132,91 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | + +# **createDeviceTaintRule** +> V1alpha3DeviceTaintRule createDeviceTaintRule(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create a DeviceTaintRule + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + V1alpha3DeviceTaintRule body = new V1alpha3DeviceTaintRule(); // V1alpha3DeviceTaintRule | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha3DeviceTaintRule result = apiInstance.createDeviceTaintRule(body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#createDeviceTaintRule"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + # **createNamespacedResourceClaim** > V1alpha3ResourceClaim createNamespacedResourceClaim(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); @@ -498,6 +590,120 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | + +# **deleteCollectionDeviceTaintRule** +> V1Status deleteCollectionDeviceTaintRule().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +delete collection of DeviceTaintRule + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionDeviceTaintRule() + .pretty(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#deleteCollectionDeviceTaintRule"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + # **deleteCollectionNamespacedResourceClaim** > V1Status deleteCollectionNamespacedResourceClaim(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -937,6 +1143,99 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | + +# **deleteDeviceTaintRule** +> V1alpha3DeviceTaintRule deleteDeviceTaintRule(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a DeviceTaintRule + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the DeviceTaintRule + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1alpha3DeviceTaintRule result = apiInstance.deleteDeviceTaintRule(name) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#deleteDeviceTaintRule"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DeviceTaintRule | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + # **deleteNamespacedResourceClaim** > V1alpha3ResourceClaim deleteNamespacedResourceClaim(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -1255,7 +1554,96 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#getAPIResources"); + System.err.println("Exception when calling ResourceV1alpha3Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listDeviceClass** +> V1alpha3DeviceClassList listDeviceClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1alpha3DeviceClassList result = apiInstance.listDeviceClass() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#listDeviceClass"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1266,11 +1654,24 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type -[**V1APIResourceList**](V1APIResourceList.md) +[**V1alpha3DeviceClassList**](V1alpha3DeviceClassList.md) ### Authorization @@ -1279,7 +1680,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -1287,13 +1688,13 @@ This endpoint does not need any parameter. | **200** | OK | - | | **401** | Unauthorized | - | - -# **listDeviceClass** -> V1alpha3DeviceClassList listDeviceClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **listDeviceTaintRule** +> V1alpha3DeviceTaintRuleList listDeviceTaintRule().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); -list or watch objects of kind DeviceClass +list or watch objects of kind DeviceTaintRule ### Example ```java @@ -1329,7 +1730,7 @@ public class Example { Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { - V1alpha3DeviceClassList result = apiInstance.listDeviceClass() + V1alpha3DeviceTaintRuleList result = apiInstance.listDeviceTaintRule() .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) @@ -1344,7 +1745,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#listDeviceClass"); + System.err.println("Exception when calling ResourceV1alpha3Api#listDeviceTaintRule"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1372,7 +1773,7 @@ public class Example { ### Return type -[**V1alpha3DeviceClassList**](V1alpha3DeviceClassList.md) +[**V1alpha3DeviceTaintRuleList**](V1alpha3DeviceTaintRuleList.md) ### Authorization @@ -1992,6 +2393,95 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | + +# **patchDeviceTaintRule** +> V1alpha3DeviceTaintRule patchDeviceTaintRule(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified DeviceTaintRule + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the DeviceTaintRule + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha3DeviceTaintRule result = apiInstance.patchDeviceTaintRule(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#patchDeviceTaintRule"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DeviceTaintRule | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + # **patchNamespacedResourceClaim** > V1alpha3ResourceClaim patchNamespacedResourceClaim(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); @@ -2428,6 +2918,80 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | + +# **readDeviceTaintRule** +> V1alpha3DeviceTaintRule readDeviceTaintRule(name).pretty(pretty).execute(); + + + +read the specified DeviceTaintRule + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the DeviceTaintRule + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1alpha3DeviceTaintRule result = apiInstance.readDeviceTaintRule(name) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#readDeviceTaintRule"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DeviceTaintRule | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | + +### Return type + +[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + # **readNamespacedResourceClaim** > V1alpha3ResourceClaim readNamespacedResourceClaim(name, namespace).pretty(pretty).execute(); @@ -2816,6 +3380,92 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | + +# **replaceDeviceTaintRule** +> V1alpha3DeviceTaintRule replaceDeviceTaintRule(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace the specified DeviceTaintRule + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the DeviceTaintRule + V1alpha3DeviceTaintRule body = new V1alpha3DeviceTaintRule(); // V1alpha3DeviceTaintRule | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha3DeviceTaintRule result = apiInstance.replaceDeviceTaintRule(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#replaceDeviceTaintRule"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DeviceTaintRule | | +| **body** | [**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + # **replaceNamespacedResourceClaim** > V1alpha3ResourceClaim replaceNamespacedResourceClaim(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); diff --git a/kubernetes/docs/ResourceV1beta2Api.md b/kubernetes/docs/ResourceV1beta2Api.md new file mode 100644 index 0000000000..08a7ac031e --- /dev/null +++ b/kubernetes/docs/ResourceV1beta2Api.md @@ -0,0 +1,3168 @@ +# ResourceV1beta2Api + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createDeviceClass**](ResourceV1beta2Api.md#createDeviceClass) | **POST** /apis/resource.k8s.io/v1beta2/deviceclasses | | +| [**createNamespacedResourceClaim**](ResourceV1beta2Api.md#createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims | | +| [**createNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates | | +| [**createResourceSlice**](ResourceV1beta2Api.md#createResourceSlice) | **POST** /apis/resource.k8s.io/v1beta2/resourceslices | | +| [**deleteCollectionDeviceClass**](ResourceV1beta2Api.md#deleteCollectionDeviceClass) | **DELETE** /apis/resource.k8s.io/v1beta2/deviceclasses | | +| [**deleteCollectionNamespacedResourceClaim**](ResourceV1beta2Api.md#deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims | | +| [**deleteCollectionNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates | | +| [**deleteCollectionResourceSlice**](ResourceV1beta2Api.md#deleteCollectionResourceSlice) | **DELETE** /apis/resource.k8s.io/v1beta2/resourceslices | | +| [**deleteDeviceClass**](ResourceV1beta2Api.md#deleteDeviceClass) | **DELETE** /apis/resource.k8s.io/v1beta2/deviceclasses/{name} | | +| [**deleteNamespacedResourceClaim**](ResourceV1beta2Api.md#deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name} | | +| [**deleteNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name} | | +| [**deleteResourceSlice**](ResourceV1beta2Api.md#deleteResourceSlice) | **DELETE** /apis/resource.k8s.io/v1beta2/resourceslices/{name} | | +| [**getAPIResources**](ResourceV1beta2Api.md#getAPIResources) | **GET** /apis/resource.k8s.io/v1beta2/ | | +| [**listDeviceClass**](ResourceV1beta2Api.md#listDeviceClass) | **GET** /apis/resource.k8s.io/v1beta2/deviceclasses | | +| [**listNamespacedResourceClaim**](ResourceV1beta2Api.md#listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims | | +| [**listNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates | | +| [**listResourceClaimForAllNamespaces**](ResourceV1beta2Api.md#listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1beta2/resourceclaims | | +| [**listResourceClaimTemplateForAllNamespaces**](ResourceV1beta2Api.md#listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1beta2/resourceclaimtemplates | | +| [**listResourceSlice**](ResourceV1beta2Api.md#listResourceSlice) | **GET** /apis/resource.k8s.io/v1beta2/resourceslices | | +| [**patchDeviceClass**](ResourceV1beta2Api.md#patchDeviceClass) | **PATCH** /apis/resource.k8s.io/v1beta2/deviceclasses/{name} | | +| [**patchNamespacedResourceClaim**](ResourceV1beta2Api.md#patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name} | | +| [**patchNamespacedResourceClaimStatus**](ResourceV1beta2Api.md#patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status | | +| [**patchNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name} | | +| [**patchResourceSlice**](ResourceV1beta2Api.md#patchResourceSlice) | **PATCH** /apis/resource.k8s.io/v1beta2/resourceslices/{name} | | +| [**readDeviceClass**](ResourceV1beta2Api.md#readDeviceClass) | **GET** /apis/resource.k8s.io/v1beta2/deviceclasses/{name} | | +| [**readNamespacedResourceClaim**](ResourceV1beta2Api.md#readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name} | | +| [**readNamespacedResourceClaimStatus**](ResourceV1beta2Api.md#readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status | | +| [**readNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name} | | +| [**readResourceSlice**](ResourceV1beta2Api.md#readResourceSlice) | **GET** /apis/resource.k8s.io/v1beta2/resourceslices/{name} | | +| [**replaceDeviceClass**](ResourceV1beta2Api.md#replaceDeviceClass) | **PUT** /apis/resource.k8s.io/v1beta2/deviceclasses/{name} | | +| [**replaceNamespacedResourceClaim**](ResourceV1beta2Api.md#replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name} | | +| [**replaceNamespacedResourceClaimStatus**](ResourceV1beta2Api.md#replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status | | +| [**replaceNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name} | | +| [**replaceResourceSlice**](ResourceV1beta2Api.md#replaceResourceSlice) | **PUT** /apis/resource.k8s.io/v1beta2/resourceslices/{name} | | + + + +# **createDeviceClass** +> V1beta2DeviceClass createDeviceClass(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create a DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + V1beta2DeviceClass body = new V1beta2DeviceClass(); // V1beta2DeviceClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta2DeviceClass result = apiInstance.createDeviceClass(body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#createDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1beta2DeviceClass**](V1beta2DeviceClass.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1beta2DeviceClass**](V1beta2DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **createNamespacedResourceClaim** +> V1beta2ResourceClaim createNamespacedResourceClaim(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create a ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2ResourceClaim body = new V1beta2ResourceClaim(); // V1beta2ResourceClaim | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta2ResourceClaim result = apiInstance.createNamespacedResourceClaim(namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#createNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1beta2ResourceClaim**](V1beta2ResourceClaim.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1beta2ResourceClaim**](V1beta2ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **createNamespacedResourceClaimTemplate** +> V1beta2ResourceClaimTemplate createNamespacedResourceClaimTemplate(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create a ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2ResourceClaimTemplate body = new V1beta2ResourceClaimTemplate(); // V1beta2ResourceClaimTemplate | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta2ResourceClaimTemplate result = apiInstance.createNamespacedResourceClaimTemplate(namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#createNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1beta2ResourceClaimTemplate**](V1beta2ResourceClaimTemplate.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1beta2ResourceClaimTemplate**](V1beta2ResourceClaimTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **createResourceSlice** +> V1beta2ResourceSlice createResourceSlice(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create a ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + V1beta2ResourceSlice body = new V1beta2ResourceSlice(); // V1beta2ResourceSlice | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta2ResourceSlice result = apiInstance.createResourceSlice(body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#createResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1beta2ResourceSlice**](V1beta2ResourceSlice.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1beta2ResourceSlice**](V1beta2ResourceSlice.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **deleteCollectionDeviceClass** +> V1Status deleteCollectionDeviceClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +delete collection of DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionDeviceClass() + .pretty(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#deleteCollectionDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **deleteCollectionNamespacedResourceClaim** +> V1Status deleteCollectionNamespacedResourceClaim(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +delete collection of ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedResourceClaim(namespace) + .pretty(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#deleteCollectionNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **deleteCollectionNamespacedResourceClaimTemplate** +> V1Status deleteCollectionNamespacedResourceClaimTemplate(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +delete collection of ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedResourceClaimTemplate(namespace) + .pretty(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#deleteCollectionNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **deleteCollectionResourceSlice** +> V1Status deleteCollectionResourceSlice().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +delete collection of ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionResourceSlice() + .pretty(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#deleteCollectionResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **deleteDeviceClass** +> V1beta2DeviceClass deleteDeviceClass(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the DeviceClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1beta2DeviceClass result = apiInstance.deleteDeviceClass(name) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#deleteDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DeviceClass | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1beta2DeviceClass**](V1beta2DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **deleteNamespacedResourceClaim** +> V1beta2ResourceClaim deleteNamespacedResourceClaim(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1beta2ResourceClaim result = apiInstance.deleteNamespacedResourceClaim(name, namespace) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#deleteNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1beta2ResourceClaim**](V1beta2ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **deleteNamespacedResourceClaimTemplate** +> V1beta2ResourceClaimTemplate deleteNamespacedResourceClaimTemplate(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaimTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1beta2ResourceClaimTemplate result = apiInstance.deleteNamespacedResourceClaimTemplate(name, namespace) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#deleteNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaimTemplate | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1beta2ResourceClaimTemplate**](V1beta2ResourceClaimTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **deleteResourceSlice** +> V1beta2ResourceSlice deleteResourceSlice(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceSlice + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1beta2ResourceSlice result = apiInstance.deleteResourceSlice(name) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#deleteResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceSlice | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1beta2ResourceSlice**](V1beta2ResourceSlice.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **getAPIResources** +> V1APIResourceList getAPIResources().execute(); + + + +get available resources + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources() + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listDeviceClass** +> V1beta2DeviceClassList listDeviceClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta2DeviceClassList result = apiInstance.listDeviceClass() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#listDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1beta2DeviceClassList**](V1beta2DeviceClassList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listNamespacedResourceClaim** +> V1beta2ResourceClaimList listNamespacedResourceClaim(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta2ResourceClaimList result = apiInstance.listNamespacedResourceClaim(namespace) + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#listNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1beta2ResourceClaimList**](V1beta2ResourceClaimList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listNamespacedResourceClaimTemplate** +> V1beta2ResourceClaimTemplateList listNamespacedResourceClaimTemplate(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta2ResourceClaimTemplateList result = apiInstance.listNamespacedResourceClaimTemplate(namespace) + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#listNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1beta2ResourceClaimTemplateList**](V1beta2ResourceClaimTemplateList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listResourceClaimForAllNamespaces** +> V1beta2ResourceClaimList listResourceClaimForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta2ResourceClaimList result = apiInstance.listResourceClaimForAllNamespaces() + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#listResourceClaimForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1beta2ResourceClaimList**](V1beta2ResourceClaimList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listResourceClaimTemplateForAllNamespaces** +> V1beta2ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta2ResourceClaimTemplateList result = apiInstance.listResourceClaimTemplateForAllNamespaces() + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#listResourceClaimTemplateForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1beta2ResourceClaimTemplateList**](V1beta2ResourceClaimTemplateList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listResourceSlice** +> V1beta2ResourceSliceList listResourceSlice().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta2ResourceSliceList result = apiInstance.listResourceSlice() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#listResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1beta2ResourceSliceList**](V1beta2ResourceSliceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **patchDeviceClass** +> V1beta2DeviceClass patchDeviceClass(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the DeviceClass + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2DeviceClass result = apiInstance.patchDeviceClass(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#patchDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DeviceClass | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1beta2DeviceClass**](V1beta2DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **patchNamespacedResourceClaim** +> V1beta2ResourceClaim patchNamespacedResourceClaim(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2ResourceClaim result = apiInstance.patchNamespacedResourceClaim(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#patchNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1beta2ResourceClaim**](V1beta2ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **patchNamespacedResourceClaimStatus** +> V1beta2ResourceClaim patchNamespacedResourceClaimStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update status of the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2ResourceClaim result = apiInstance.patchNamespacedResourceClaimStatus(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#patchNamespacedResourceClaimStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1beta2ResourceClaim**](V1beta2ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **patchNamespacedResourceClaimTemplate** +> V1beta2ResourceClaimTemplate patchNamespacedResourceClaimTemplate(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaimTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2ResourceClaimTemplate result = apiInstance.patchNamespacedResourceClaimTemplate(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#patchNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaimTemplate | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1beta2ResourceClaimTemplate**](V1beta2ResourceClaimTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **patchResourceSlice** +> V1beta2ResourceSlice patchResourceSlice(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceSlice + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2ResourceSlice result = apiInstance.patchResourceSlice(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#patchResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceSlice | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1beta2ResourceSlice**](V1beta2ResourceSlice.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **readDeviceClass** +> V1beta2DeviceClass readDeviceClass(name).pretty(pretty).execute(); + + + +read the specified DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the DeviceClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta2DeviceClass result = apiInstance.readDeviceClass(name) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#readDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DeviceClass | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | + +### Return type + +[**V1beta2DeviceClass**](V1beta2DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **readNamespacedResourceClaim** +> V1beta2ResourceClaim readNamespacedResourceClaim(name, namespace).pretty(pretty).execute(); + + + +read the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta2ResourceClaim result = apiInstance.readNamespacedResourceClaim(name, namespace) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#readNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | + +### Return type + +[**V1beta2ResourceClaim**](V1beta2ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **readNamespacedResourceClaimStatus** +> V1beta2ResourceClaim readNamespacedResourceClaimStatus(name, namespace).pretty(pretty).execute(); + + + +read status of the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta2ResourceClaim result = apiInstance.readNamespacedResourceClaimStatus(name, namespace) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#readNamespacedResourceClaimStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | + +### Return type + +[**V1beta2ResourceClaim**](V1beta2ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **readNamespacedResourceClaimTemplate** +> V1beta2ResourceClaimTemplate readNamespacedResourceClaimTemplate(name, namespace).pretty(pretty).execute(); + + + +read the specified ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaimTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta2ResourceClaimTemplate result = apiInstance.readNamespacedResourceClaimTemplate(name, namespace) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#readNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaimTemplate | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | + +### Return type + +[**V1beta2ResourceClaimTemplate**](V1beta2ResourceClaimTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **readResourceSlice** +> V1beta2ResourceSlice readResourceSlice(name).pretty(pretty).execute(); + + + +read the specified ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceSlice + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta2ResourceSlice result = apiInstance.readResourceSlice(name) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#readResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceSlice | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | + +### Return type + +[**V1beta2ResourceSlice**](V1beta2ResourceSlice.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **replaceDeviceClass** +> V1beta2DeviceClass replaceDeviceClass(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace the specified DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the DeviceClass + V1beta2DeviceClass body = new V1beta2DeviceClass(); // V1beta2DeviceClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta2DeviceClass result = apiInstance.replaceDeviceClass(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#replaceDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DeviceClass | | +| **body** | [**V1beta2DeviceClass**](V1beta2DeviceClass.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1beta2DeviceClass**](V1beta2DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **replaceNamespacedResourceClaim** +> V1beta2ResourceClaim replaceNamespacedResourceClaim(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2ResourceClaim body = new V1beta2ResourceClaim(); // V1beta2ResourceClaim | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta2ResourceClaim result = apiInstance.replaceNamespacedResourceClaim(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#replaceNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1beta2ResourceClaim**](V1beta2ResourceClaim.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1beta2ResourceClaim**](V1beta2ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **replaceNamespacedResourceClaimStatus** +> V1beta2ResourceClaim replaceNamespacedResourceClaimStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace status of the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2ResourceClaim body = new V1beta2ResourceClaim(); // V1beta2ResourceClaim | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta2ResourceClaim result = apiInstance.replaceNamespacedResourceClaimStatus(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#replaceNamespacedResourceClaimStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1beta2ResourceClaim**](V1beta2ResourceClaim.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1beta2ResourceClaim**](V1beta2ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **replaceNamespacedResourceClaimTemplate** +> V1beta2ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace the specified ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaimTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2ResourceClaimTemplate body = new V1beta2ResourceClaimTemplate(); // V1beta2ResourceClaimTemplate | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta2ResourceClaimTemplate result = apiInstance.replaceNamespacedResourceClaimTemplate(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#replaceNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaimTemplate | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1beta2ResourceClaimTemplate**](V1beta2ResourceClaimTemplate.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1beta2ResourceClaimTemplate**](V1beta2ResourceClaimTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **replaceResourceSlice** +> V1beta2ResourceSlice replaceResourceSlice(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace the specified ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceSlice + V1beta2ResourceSlice body = new V1beta2ResourceSlice(); // V1beta2ResourceSlice | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta2ResourceSlice result = apiInstance.replaceResourceSlice(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#replaceResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceSlice | | +| **body** | [**V1beta2ResourceSlice**](V1beta2ResourceSlice.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1beta2ResourceSlice**](V1beta2ResourceSlice.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + diff --git a/kubernetes/docs/V1CSIDriverSpec.md b/kubernetes/docs/V1CSIDriverSpec.md index 542bd47332..d75dc6aae7 100644 --- a/kubernetes/docs/V1CSIDriverSpec.md +++ b/kubernetes/docs/V1CSIDriverSpec.md @@ -10,6 +10,7 @@ CSIDriverSpec is the specification of a CSIDriver. |------------ | ------------- | ------------- | -------------| |**attachRequired** | **Boolean** | attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable. | [optional] | |**fsGroupPolicy** | **String** | fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details. This field was immutable in Kubernetes < 1.29 and now is mutable. Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce. | [optional] | +|**nodeAllocatableUpdatePeriodSeconds** | **Long** | nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is an alpha feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. | [optional] | |**podInfoOnMount** | **Boolean** | podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) \"csi.storage.k8s.io/ephemeral\": \"true\" if the volume is an ephemeral inline volume defined by a CSIVolumeSource, otherwise \"false\" \"csi.storage.k8s.io/ephemeral\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \"Persistent\" and \"Ephemeral\" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. This field was immutable in Kubernetes < 1.29 and now is mutable. | [optional] | |**requiresRepublish** | **Boolean** | requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false. Note: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container. | [optional] | |**seLinuxMount** | **Boolean** | seLinuxMount specifies if the CSI driver supports \"-o context\" mount option. When \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context. When \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem. Default is \"false\". | [optional] | diff --git a/kubernetes/docs/V1ContainerStatus.md b/kubernetes/docs/V1ContainerStatus.md index 776d677f2c..53f48481ba 100644 --- a/kubernetes/docs/V1ContainerStatus.md +++ b/kubernetes/docs/V1ContainerStatus.md @@ -20,6 +20,7 @@ ContainerStatus contains details for the current status of this container. |**restartCount** | **Integer** | RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative. | | |**started** | **Boolean** | Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false. | [optional] | |**state** | [**V1ContainerState**](V1ContainerState.md) | | [optional] | +|**stopSignal** | **String** | StopSignal reports the effective stop signal for this container | [optional] | |**user** | [**V1ContainerUser**](V1ContainerUser.md) | | [optional] | |**volumeMounts** | [**List<V1VolumeMountStatus>**](V1VolumeMountStatus.md) | Status of volume mounts. | [optional] | diff --git a/kubernetes/docs/V1DeploymentStatus.md b/kubernetes/docs/V1DeploymentStatus.md index 0c57f8bd97..6ef01e2b05 100644 --- a/kubernetes/docs/V1DeploymentStatus.md +++ b/kubernetes/docs/V1DeploymentStatus.md @@ -8,14 +8,15 @@ DeploymentStatus is the most recently observed status of the Deployment. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**availableReplicas** | **Integer** | Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. | [optional] | +|**availableReplicas** | **Integer** | Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment. | [optional] | |**collisionCount** | **Integer** | Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. | [optional] | |**conditions** | [**List<V1DeploymentCondition>**](V1DeploymentCondition.md) | Represents the latest available observations of a deployment's current state. | [optional] | |**observedGeneration** | **Long** | The generation observed by the deployment controller. | [optional] | -|**readyReplicas** | **Integer** | readyReplicas is the number of pods targeted by this Deployment with a Ready Condition. | [optional] | -|**replicas** | **Integer** | Total number of non-terminated pods targeted by this deployment (their labels match the selector). | [optional] | +|**readyReplicas** | **Integer** | Total number of non-terminating pods targeted by this Deployment with a Ready Condition. | [optional] | +|**replicas** | **Integer** | Total number of non-terminating pods targeted by this deployment (their labels match the selector). | [optional] | +|**terminatingReplicas** | **Integer** | Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase. This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field. | [optional] | |**unavailableReplicas** | **Integer** | Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. | [optional] | -|**updatedReplicas** | **Integer** | Total number of non-terminated pods targeted by this deployment that have the desired template spec. | [optional] | +|**updatedReplicas** | **Integer** | Total number of non-terminating pods targeted by this deployment that have the desired template spec. | [optional] | diff --git a/kubernetes/docs/V1Endpoint.md b/kubernetes/docs/V1Endpoint.md index e469d5cbda..8870a6aac3 100644 --- a/kubernetes/docs/V1Endpoint.md +++ b/kubernetes/docs/V1Endpoint.md @@ -8,7 +8,7 @@ Endpoint represents a single logical \"backend\" implementing a service. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**addresses** | **List<String>** | addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267 | | +|**addresses** | **List<String>** | addresses of this endpoint. For EndpointSlices of addressType \"IPv4\" or \"IPv6\", the values are IP addresses in canonical form. The syntax and semantics of other addressType values are not defined. This must contain at least one address but no more than 100. EndpointSlices generated by the EndpointSlice controller will always have exactly 1 address. No semantics are defined for additional addresses beyond the first, and kube-proxy does not look at them. | | |**conditions** | [**V1EndpointConditions**](V1EndpointConditions.md) | | [optional] | |**deprecatedTopology** | **Map<String, String>** | deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead. | [optional] | |**hints** | [**V1EndpointHints**](V1EndpointHints.md) | | [optional] | diff --git a/kubernetes/docs/V1EndpointAddress.md b/kubernetes/docs/V1EndpointAddress.md index 1457e7ab22..123653dda9 100644 --- a/kubernetes/docs/V1EndpointAddress.md +++ b/kubernetes/docs/V1EndpointAddress.md @@ -2,7 +2,7 @@ # V1EndpointAddress -EndpointAddress is a tuple that describes single IP address. +EndpointAddress is a tuple that describes single IP address. Deprecated: This API is deprecated in v1.33+. ## Properties diff --git a/kubernetes/docs/V1EndpointConditions.md b/kubernetes/docs/V1EndpointConditions.md index 0d795e96ac..adbd6989dd 100644 --- a/kubernetes/docs/V1EndpointConditions.md +++ b/kubernetes/docs/V1EndpointConditions.md @@ -8,9 +8,9 @@ EndpointConditions represents the current condition of an endpoint. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**ready** | **Boolean** | ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be \"true\" for terminating endpoints, except when the normal readiness behavior is being explicitly overridden, for example when the associated Service has set the publishNotReadyAddresses flag. | [optional] | -|**serving** | **Boolean** | serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. | [optional] | -|**terminating** | **Boolean** | terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. | [optional] | +|**ready** | **Boolean** | ready indicates that this endpoint is ready to receive traffic, according to whatever system is managing the endpoint. A nil value should be interpreted as \"true\". In general, an endpoint should be marked ready if it is serving and not terminating, though this can be overridden in some cases, such as when the associated Service has set the publishNotReadyAddresses flag. | [optional] | +|**serving** | **Boolean** | serving indicates that this endpoint is able to receive traffic, according to whatever system is managing the endpoint. For endpoints backed by pods, the EndpointSlice controller will mark the endpoint as serving if the pod's Ready condition is True. A nil value should be interpreted as \"true\". | [optional] | +|**terminating** | **Boolean** | terminating indicates that this endpoint is terminating. A nil value should be interpreted as \"false\". | [optional] | diff --git a/kubernetes/docs/V1EndpointHints.md b/kubernetes/docs/V1EndpointHints.md index 2aa8c0ae7a..1d8f4b7331 100644 --- a/kubernetes/docs/V1EndpointHints.md +++ b/kubernetes/docs/V1EndpointHints.md @@ -8,7 +8,8 @@ EndpointHints provides hints describing how an endpoint should be consumed. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**forZones** | [**List<V1ForZone>**](V1ForZone.md) | forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. | [optional] | +|**forNodes** | [**List<V1ForNode>**](V1ForNode.md) | forNodes indicates the node(s) this endpoint should be consumed by when using topology aware routing. May contain a maximum of 8 entries. This is an Alpha feature and is only used when the PreferSameTrafficDistribution feature gate is enabled. | [optional] | +|**forZones** | [**List<V1ForZone>**](V1ForZone.md) | forZones indicates the zone(s) this endpoint should be consumed by when using topology aware routing. May contain a maximum of 8 entries. | [optional] | diff --git a/kubernetes/docs/V1EndpointSlice.md b/kubernetes/docs/V1EndpointSlice.md index 0563082c50..28c2dc9aaa 100644 --- a/kubernetes/docs/V1EndpointSlice.md +++ b/kubernetes/docs/V1EndpointSlice.md @@ -2,18 +2,18 @@ # V1EndpointSlice -EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. +EndpointSlice represents a set of service endpoints. Most EndpointSlices are created by the EndpointSlice controller to represent the Pods selected by Service objects. For a given service there may be multiple EndpointSlice objects which must be joined to produce the full set of endpoints; you can find all of the slices for a given service by listing EndpointSlices in the service's namespace whose `kubernetes.io/service-name` label contains the service's name. ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**addressType** | **String** | addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. | | +|**addressType** | **String** | addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. (Deprecated) The EndpointSlice controller only generates, and kube-proxy only processes, slices of addressType \"IPv4\" and \"IPv6\". No semantics are defined for the \"FQDN\" type. | | |**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | |**endpoints** | [**List<V1Endpoint>**](V1Endpoint.md) | endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. | | |**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | |**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | -|**ports** | [**List<DiscoveryV1EndpointPort>**](DiscoveryV1EndpointPort.md) | ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates \"all ports\". Each slice may include a maximum of 100 ports. | [optional] | +|**ports** | [**List<DiscoveryV1EndpointPort>**](DiscoveryV1EndpointPort.md) | ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. Each slice may include a maximum of 100 ports. Services always have at least 1 port, so EndpointSlices generated by the EndpointSlice controller will likewise always have at least 1 port. EndpointSlices used for other purposes may have an empty ports list. | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1EndpointSubset.md b/kubernetes/docs/V1EndpointSubset.md index 34936ddf7b..dd167ff16e 100644 --- a/kubernetes/docs/V1EndpointSubset.md +++ b/kubernetes/docs/V1EndpointSubset.md @@ -2,7 +2,7 @@ # V1EndpointSubset -EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] } The resulting set of endpoints can be viewed as: a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ] +EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] } The resulting set of endpoints can be viewed as: a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ] Deprecated: This API is deprecated in v1.33+. ## Properties diff --git a/kubernetes/docs/V1Endpoints.md b/kubernetes/docs/V1Endpoints.md index 7dc12aca94..26acec75a9 100644 --- a/kubernetes/docs/V1Endpoints.md +++ b/kubernetes/docs/V1Endpoints.md @@ -2,7 +2,7 @@ # V1Endpoints -Endpoints is a collection of endpoints that implement the actual service. Example: Name: \"mysvc\", Subsets: [ { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] }, { Addresses: [{\"ip\": \"10.10.3.3\"}], Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}] }, ] +Endpoints is a collection of endpoints that implement the actual service. Example: Name: \"mysvc\", Subsets: [ { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] }, { Addresses: [{\"ip\": \"10.10.3.3\"}], Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}] }, ] Endpoints is a legacy API and does not contain information about all Service features. Use discoveryv1.EndpointSlice for complete information about Service endpoints. Deprecated: This API is deprecated in v1.33+. Use discoveryv1.EndpointSlice. ## Properties diff --git a/kubernetes/docs/V1EndpointsList.md b/kubernetes/docs/V1EndpointsList.md index 1fbf60ed0f..78d9df4b88 100644 --- a/kubernetes/docs/V1EndpointsList.md +++ b/kubernetes/docs/V1EndpointsList.md @@ -2,7 +2,7 @@ # V1EndpointsList -EndpointsList is a list of endpoints. +EndpointsList is a list of endpoints. Deprecated: This API is deprecated in v1.33+. ## Properties diff --git a/kubernetes/docs/V1EnvFromSource.md b/kubernetes/docs/V1EnvFromSource.md index 7f1c52056e..b4bd750ab8 100644 --- a/kubernetes/docs/V1EnvFromSource.md +++ b/kubernetes/docs/V1EnvFromSource.md @@ -2,14 +2,14 @@ # V1EnvFromSource -EnvFromSource represents the source of a set of ConfigMaps +EnvFromSource represents the source of a set of ConfigMaps or Secrets ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**configMapRef** | [**V1ConfigMapEnvSource**](V1ConfigMapEnvSource.md) | | [optional] | -|**prefix** | **String** | An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. | [optional] | +|**prefix** | **String** | Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER. | [optional] | |**secretRef** | [**V1SecretEnvSource**](V1SecretEnvSource.md) | | [optional] | diff --git a/kubernetes/docs/V1ForNode.md b/kubernetes/docs/V1ForNode.md new file mode 100644 index 0000000000..cb88337f9f --- /dev/null +++ b/kubernetes/docs/V1ForNode.md @@ -0,0 +1,14 @@ + + +# V1ForNode + +ForNode provides information about which nodes should consume this endpoint. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | name represents the name of the node. | | + + + diff --git a/kubernetes/docs/V1IPAddress.md b/kubernetes/docs/V1IPAddress.md new file mode 100644 index 0000000000..586f0c8179 --- /dev/null +++ b/kubernetes/docs/V1IPAddress.md @@ -0,0 +1,21 @@ + + +# V1IPAddress + +IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1 + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1IPAddressSpec**](V1IPAddressSpec.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1IPAddressList.md b/kubernetes/docs/V1IPAddressList.md new file mode 100644 index 0000000000..e56b897729 --- /dev/null +++ b/kubernetes/docs/V1IPAddressList.md @@ -0,0 +1,21 @@ + + +# V1IPAddressList + +IPAddressList contains a list of IPAddress. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1IPAddress>**](V1IPAddress.md) | items is the list of IPAddresses. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1IPAddressSpec.md b/kubernetes/docs/V1IPAddressSpec.md new file mode 100644 index 0000000000..8bee69d474 --- /dev/null +++ b/kubernetes/docs/V1IPAddressSpec.md @@ -0,0 +1,14 @@ + + +# V1IPAddressSpec + +IPAddressSpec describe the attributes in an IP Address. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**parentRef** | [**V1ParentReference**](V1ParentReference.md) | | | + + + diff --git a/kubernetes/docs/V1JobSpec.md b/kubernetes/docs/V1JobSpec.md index 7308597c32..c90953b7ff 100644 --- a/kubernetes/docs/V1JobSpec.md +++ b/kubernetes/docs/V1JobSpec.md @@ -10,12 +10,12 @@ JobSpec describes how the job execution will look like. |------------ | ------------- | ------------- | -------------| |**activeDeadlineSeconds** | **Long** | Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again. | [optional] | |**backoffLimit** | **Integer** | Specifies the number of retries before marking this job failed. Defaults to 6 | [optional] | -|**backoffLimitPerIndex** | **Integer** | Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). | [optional] | +|**backoffLimitPerIndex** | **Integer** | Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. | [optional] | |**completionMode** | **String** | completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`. `NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other. `Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`. More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job. | [optional] | |**completions** | **Integer** | Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ | [optional] | |**managedBy** | **String** | ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first \"/\" must be a valid subdomain as defined by RFC 1123. All characters trailing the first \"/\" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable. This field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default). | [optional] | |**manualSelector** | **Boolean** | manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector | [optional] | -|**maxFailedIndexes** | **Integer** | Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). | [optional] | +|**maxFailedIndexes** | **Integer** | Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. | [optional] | |**parallelism** | **Integer** | Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ | [optional] | |**podFailurePolicy** | [**V1PodFailurePolicy**](V1PodFailurePolicy.md) | | [optional] | |**podReplacementPolicy** | **String** | podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods when they are terminating (has a metadata.deletionTimestamp) or failed. - Failed means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod. When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default. | [optional] | diff --git a/kubernetes/docs/V1JobStatus.md b/kubernetes/docs/V1JobStatus.md index 9715ba30de..0a1805c1a1 100644 --- a/kubernetes/docs/V1JobStatus.md +++ b/kubernetes/docs/V1JobStatus.md @@ -13,7 +13,7 @@ JobStatus represents the current state of a Job. |**completionTime** | **OffsetDateTime** | Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is set when the job finishes successfully, and only then. The value cannot be updated or removed. The value indicates the same or later point in time as the startTime field. | [optional] | |**conditions** | [**List<V1JobCondition>**](V1JobCondition.md) | The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true. A job is considered finished when it is in a terminal condition, either \"Complete\" or \"Failed\". A Job cannot have both the \"Complete\" and \"Failed\" conditions. Additionally, it cannot be in the \"Complete\" and \"FailureTarget\" conditions. The \"Complete\", \"Failed\" and \"FailureTarget\" conditions cannot be disabled. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ | [optional] | |**failed** | **Integer** | The number of pods which reached phase Failed. The value increases monotonically. | [optional] | -|**failedIndexes** | **String** | FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". The set of failed indexes cannot overlap with the set of completed indexes. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). | [optional] | +|**failedIndexes** | **String** | FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". The set of failed indexes cannot overlap with the set of completed indexes. | [optional] | |**ready** | **Integer** | The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp). | [optional] | |**startTime** | **OffsetDateTime** | Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC. Once set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished. | [optional] | |**succeeded** | **Integer** | The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs. | [optional] | diff --git a/kubernetes/docs/V1Lifecycle.md b/kubernetes/docs/V1Lifecycle.md index 905ae7f481..e911f4d777 100644 --- a/kubernetes/docs/V1Lifecycle.md +++ b/kubernetes/docs/V1Lifecycle.md @@ -10,6 +10,7 @@ Lifecycle describes actions that the management system should take in response t |------------ | ------------- | ------------- | -------------| |**postStart** | [**V1LifecycleHandler**](V1LifecycleHandler.md) | | [optional] | |**preStop** | [**V1LifecycleHandler**](V1LifecycleHandler.md) | | [optional] | +|**stopSignal** | **String** | StopSignal defines which signal will be sent to a container when it is being stopped. If not specified, the default is defined by the container runtime in use. StopSignal can only be set for Pods with a non-empty .spec.os.name | [optional] | diff --git a/kubernetes/docs/V1NodeSwapStatus.md b/kubernetes/docs/V1NodeSwapStatus.md new file mode 100644 index 0000000000..b5d1e34c26 --- /dev/null +++ b/kubernetes/docs/V1NodeSwapStatus.md @@ -0,0 +1,14 @@ + + +# V1NodeSwapStatus + +NodeSwapStatus represents swap memory information. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**capacity** | **Long** | Total amount of swap memory in bytes. | [optional] | + + + diff --git a/kubernetes/docs/V1NodeSystemInfo.md b/kubernetes/docs/V1NodeSystemInfo.md index 28738c64e8..14022021cc 100644 --- a/kubernetes/docs/V1NodeSystemInfo.md +++ b/kubernetes/docs/V1NodeSystemInfo.md @@ -17,6 +17,7 @@ NodeSystemInfo is a set of ids/uuids to uniquely identify the node. |**machineID** | **String** | MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html | | |**operatingSystem** | **String** | The Operating System reported by the node | | |**osImage** | **String** | OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). | | +|**swap** | [**V1NodeSwapStatus**](V1NodeSwapStatus.md) | | [optional] | |**systemUUID** | **String** | SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid | | diff --git a/kubernetes/docs/V1ParentReference.md b/kubernetes/docs/V1ParentReference.md new file mode 100644 index 0000000000..bf27e3dce3 --- /dev/null +++ b/kubernetes/docs/V1ParentReference.md @@ -0,0 +1,17 @@ + + +# V1ParentReference + +ParentReference describes a reference to a parent object. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**group** | **String** | Group is the group of the object being referenced. | [optional] | +|**name** | **String** | Name is the name of the object being referenced. | | +|**namespace** | **String** | Namespace is the namespace of the object being referenced. | [optional] | +|**resource** | **String** | Resource is the resource of the object being referenced. | | + + + diff --git a/kubernetes/docs/V1PodAffinityTerm.md b/kubernetes/docs/V1PodAffinityTerm.md index 920cbf625f..917abaa82c 100644 --- a/kubernetes/docs/V1PodAffinityTerm.md +++ b/kubernetes/docs/V1PodAffinityTerm.md @@ -9,8 +9,8 @@ Defines a set of pods (namely those matching the labelSelector relative to the g | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**labelSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | -|**matchLabelKeys** | **List<String>** | MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). | [optional] | -|**mismatchLabelKeys** | **List<String>** | MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). | [optional] | +|**matchLabelKeys** | **List<String>** | MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. | [optional] | +|**mismatchLabelKeys** | **List<String>** | MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. | [optional] | |**namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | |**namespaces** | **List<String>** | namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\". | [optional] | |**topologyKey** | **String** | This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. | | diff --git a/kubernetes/docs/V1PodCondition.md b/kubernetes/docs/V1PodCondition.md index 70dc83153f..727be30bae 100644 --- a/kubernetes/docs/V1PodCondition.md +++ b/kubernetes/docs/V1PodCondition.md @@ -11,6 +11,7 @@ PodCondition contains details for the current condition of this pod. |**lastProbeTime** | **OffsetDateTime** | Last time we probed the condition. | [optional] | |**lastTransitionTime** | **OffsetDateTime** | Last time the condition transitioned from one status to another. | [optional] | |**message** | **String** | Human-readable message indicating details about last transition. | [optional] | +|**observedGeneration** | **Long** | If set, this represents the .metadata.generation that the pod condition was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field. | [optional] | |**reason** | **String** | Unique, one-word, CamelCase reason for the condition's last transition. | [optional] | |**status** | **String** | Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions | | |**type** | **String** | Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions | | diff --git a/kubernetes/docs/V1PodDisruptionBudgetSpec.md b/kubernetes/docs/V1PodDisruptionBudgetSpec.md index 2d9be30375..78bd727538 100644 --- a/kubernetes/docs/V1PodDisruptionBudgetSpec.md +++ b/kubernetes/docs/V1PodDisruptionBudgetSpec.md @@ -11,7 +11,7 @@ PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. |**maxUnavailable** | **IntOrString** | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] | |**minAvailable** | **IntOrString** | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] | |**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | -|**unhealthyPodEvictionPolicy** | **String** | UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\". Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. IfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. AlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field. This field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default). | [optional] | +|**unhealthyPodEvictionPolicy** | **String** | UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\". Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. IfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. AlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field. | [optional] | diff --git a/kubernetes/docs/V1PodFailurePolicyRule.md b/kubernetes/docs/V1PodFailurePolicyRule.md index 9a65f595ce..bdf6816aa3 100644 --- a/kubernetes/docs/V1PodFailurePolicyRule.md +++ b/kubernetes/docs/V1PodFailurePolicyRule.md @@ -8,7 +8,7 @@ PodFailurePolicyRule describes how a pod failure is handled when the requirement | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**action** | **String** | Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all running pods are terminated. - FailIndex: indicates that the pod's index is marked as Failed and will not be restarted. This value is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). - Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created. - Count: indicates that the pod is handled in the default way - the counter towards the .backoffLimit is incremented. Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule. | | +|**action** | **String** | Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all running pods are terminated. - FailIndex: indicates that the pod's index is marked as Failed and will not be restarted. - Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created. - Count: indicates that the pod is handled in the default way - the counter towards the .backoffLimit is incremented. Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule. | | |**onExitCodes** | [**V1PodFailurePolicyOnExitCodesRequirement**](V1PodFailurePolicyOnExitCodesRequirement.md) | | [optional] | |**onPodConditions** | [**List<V1PodFailurePolicyOnPodConditionsPattern>**](V1PodFailurePolicyOnPodConditionsPattern.md) | Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed. | [optional] | diff --git a/kubernetes/docs/V1PodSpec.md b/kubernetes/docs/V1PodSpec.md index b90c35399b..e6dcd7ef92 100644 --- a/kubernetes/docs/V1PodSpec.md +++ b/kubernetes/docs/V1PodSpec.md @@ -23,7 +23,7 @@ PodSpec is a description of a pod. |**hostUsers** | **Boolean** | Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. | [optional] | |**hostname** | **String** | Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. | [optional] | |**imagePullSecrets** | [**List<V1LocalObjectReference>**](V1LocalObjectReference.md) | ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod | [optional] | -|**initContainers** | [**List<V1Container>**](V1Container.md) | List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ | [optional] | +|**initContainers** | [**List<V1Container>**](V1Container.md) | List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ | [optional] | |**nodeName** | **String** | NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename | [optional] | |**nodeSelector** | **Map<String, String>** | NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | [optional] | |**os** | [**V1PodOS**](V1PodOS.md) | | [optional] | diff --git a/kubernetes/docs/V1PodStatus.md b/kubernetes/docs/V1PodStatus.md index 4c8f655d76..eb34c71eda 100644 --- a/kubernetes/docs/V1PodStatus.md +++ b/kubernetes/docs/V1PodStatus.md @@ -16,12 +16,13 @@ PodStatus represents information about the status of a pod. Status may trail the |**initContainerStatuses** | [**List<V1ContainerStatus>**](V1ContainerStatus.md) | Statuses of init containers in this pod. The most recent successful non-restartable init container will have ready = true, the most recently started container will have startTime set. Each init container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status | [optional] | |**message** | **String** | A human readable message indicating details about why the pod is in this condition. | [optional] | |**nominatedNodeName** | **String** | nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled. | [optional] | +|**observedGeneration** | **Long** | If set, this represents the .metadata.generation that the pod status was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field. | [optional] | |**phase** | **String** | The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase | [optional] | |**podIP** | **String** | podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. | [optional] | |**podIPs** | [**List<V1PodIP>**](V1PodIP.md) | podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet. | [optional] | |**qosClass** | **String** | The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes | [optional] | |**reason** | **String** | A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' | [optional] | -|**resize** | **String** | Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\" | [optional] | +|**resize** | **String** | Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\" Deprecated: Resize status is moved to two pod conditions PodResizePending and PodResizeInProgress. PodResizePending will track states where the spec has been resized, but the Kubelet has not yet allocated the resources. PodResizeInProgress will track in-progress resizes, and should be present whenever allocated resources != acknowledged resources. | [optional] | |**resourceClaimStatuses** | [**List<V1PodResourceClaimStatus>**](V1PodResourceClaimStatus.md) | Status of resource claims. | [optional] | |**startTime** | **OffsetDateTime** | RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. | [optional] | diff --git a/kubernetes/docs/V1ReplicaSetList.md b/kubernetes/docs/V1ReplicaSetList.md index 94be8888b5..39475af991 100644 --- a/kubernetes/docs/V1ReplicaSetList.md +++ b/kubernetes/docs/V1ReplicaSetList.md @@ -9,7 +9,7 @@ ReplicaSetList is a collection of ReplicaSets. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | -|**items** | [**List<V1ReplicaSet>**](V1ReplicaSet.md) | List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller | | +|**items** | [**List<V1ReplicaSet>**](V1ReplicaSet.md) | List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset | | |**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | |**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | diff --git a/kubernetes/docs/V1ReplicaSetSpec.md b/kubernetes/docs/V1ReplicaSetSpec.md index 159561a0fa..6dc3bfa36b 100644 --- a/kubernetes/docs/V1ReplicaSetSpec.md +++ b/kubernetes/docs/V1ReplicaSetSpec.md @@ -9,7 +9,7 @@ ReplicaSetSpec is the specification of a ReplicaSet. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**minReadySeconds** | **Integer** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] | -|**replicas** | **Integer** | Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller | [optional] | +|**replicas** | **Integer** | Replicas is the number of desired pods. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset | [optional] | |**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | | |**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | [optional] | diff --git a/kubernetes/docs/V1ReplicaSetStatus.md b/kubernetes/docs/V1ReplicaSetStatus.md index e6c53e2336..4883e4cd40 100644 --- a/kubernetes/docs/V1ReplicaSetStatus.md +++ b/kubernetes/docs/V1ReplicaSetStatus.md @@ -8,12 +8,13 @@ ReplicaSetStatus represents the current status of a ReplicaSet. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**availableReplicas** | **Integer** | The number of available replicas (ready for at least minReadySeconds) for this replica set. | [optional] | +|**availableReplicas** | **Integer** | The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set. | [optional] | |**conditions** | [**List<V1ReplicaSetCondition>**](V1ReplicaSetCondition.md) | Represents the latest available observations of a replica set's current state. | [optional] | -|**fullyLabeledReplicas** | **Integer** | The number of pods that have labels matching the labels of the pod template of the replicaset. | [optional] | +|**fullyLabeledReplicas** | **Integer** | The number of non-terminating pods that have labels matching the labels of the pod template of the replicaset. | [optional] | |**observedGeneration** | **Long** | ObservedGeneration reflects the generation of the most recently observed ReplicaSet. | [optional] | -|**readyReplicas** | **Integer** | readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition. | [optional] | -|**replicas** | **Integer** | Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller | | +|**readyReplicas** | **Integer** | The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition. | [optional] | +|**replicas** | **Integer** | Replicas is the most recently observed number of non-terminating pods. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset | | +|**terminatingReplicas** | **Integer** | The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase. This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field. | [optional] | diff --git a/kubernetes/docs/V1beta1SelfSubjectReview.md b/kubernetes/docs/V1ServiceCIDR.md similarity index 66% rename from kubernetes/docs/V1beta1SelfSubjectReview.md rename to kubernetes/docs/V1ServiceCIDR.md index 4af7af23d2..e2b265be9a 100644 --- a/kubernetes/docs/V1beta1SelfSubjectReview.md +++ b/kubernetes/docs/V1ServiceCIDR.md @@ -1,8 +1,8 @@ -# V1beta1SelfSubjectReview +# V1ServiceCIDR -SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase. +ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects. ## Properties @@ -11,7 +11,8 @@ SelfSubjectReview contains the user information that the kube-apiserver has abou |**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | |**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | |**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | -|**status** | [**V1beta1SelfSubjectReviewStatus**](V1beta1SelfSubjectReviewStatus.md) | | [optional] | +|**spec** | [**V1ServiceCIDRSpec**](V1ServiceCIDRSpec.md) | | [optional] | +|**status** | [**V1ServiceCIDRStatus**](V1ServiceCIDRStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ServiceCIDRList.md b/kubernetes/docs/V1ServiceCIDRList.md new file mode 100644 index 0000000000..7b508246a2 --- /dev/null +++ b/kubernetes/docs/V1ServiceCIDRList.md @@ -0,0 +1,21 @@ + + +# V1ServiceCIDRList + +ServiceCIDRList contains a list of ServiceCIDR objects. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1ServiceCIDR>**](V1ServiceCIDR.md) | items is the list of ServiceCIDRs. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1ServiceCIDRSpec.md b/kubernetes/docs/V1ServiceCIDRSpec.md new file mode 100644 index 0000000000..0e4ef129be --- /dev/null +++ b/kubernetes/docs/V1ServiceCIDRSpec.md @@ -0,0 +1,14 @@ + + +# V1ServiceCIDRSpec + +ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**cidrs** | **List<String>** | CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable. | [optional] | + + + diff --git a/kubernetes/docs/V1ServiceCIDRStatus.md b/kubernetes/docs/V1ServiceCIDRStatus.md new file mode 100644 index 0000000000..f8bae20c9b --- /dev/null +++ b/kubernetes/docs/V1ServiceCIDRStatus.md @@ -0,0 +1,14 @@ + + +# V1ServiceCIDRStatus + +ServiceCIDRStatus describes the current state of the ServiceCIDR. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1Condition>**](V1Condition.md) | conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state | [optional] | + + + diff --git a/kubernetes/docs/V1ServiceSpec.md b/kubernetes/docs/V1ServiceSpec.md index b962f0ad18..70b2efc07d 100644 --- a/kubernetes/docs/V1ServiceSpec.md +++ b/kubernetes/docs/V1ServiceSpec.md @@ -26,7 +26,7 @@ ServiceSpec describes the attributes that a user creates on a service. |**selector** | **Map<String, String>** | Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ | [optional] | |**sessionAffinity** | **String** | Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies | [optional] | |**sessionAffinityConfig** | [**V1SessionAffinityConfig**](V1SessionAffinityConfig.md) | | [optional] | -|**trafficDistribution** | **String** | TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to \"PreferClose\", implementations should prioritize endpoints that are topologically close (e.g., same zone). This is a beta field and requires enabling ServiceTrafficDistribution feature. | [optional] | +|**trafficDistribution** | **String** | TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to \"PreferClose\", implementations should prioritize endpoints that are in the same zone. | [optional] | |**type** | **String** | type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. \"ExternalName\" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types | [optional] | diff --git a/kubernetes/docs/V1StatefulSetSpec.md b/kubernetes/docs/V1StatefulSetSpec.md index b5aa66c662..88bebdf2b2 100644 --- a/kubernetes/docs/V1StatefulSetSpec.md +++ b/kubernetes/docs/V1StatefulSetSpec.md @@ -15,7 +15,7 @@ A StatefulSetSpec is the specification of a StatefulSet. |**replicas** | **Integer** | replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. | [optional] | |**revisionHistoryLimit** | **Integer** | revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. | [optional] | |**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | | -|**serviceName** | **String** | serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. | | +|**serviceName** | **String** | serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. | [optional] | |**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | | |**updateStrategy** | [**V1StatefulSetUpdateStrategy**](V1StatefulSetUpdateStrategy.md) | | [optional] | |**volumeClaimTemplates** | [**List<V1PersistentVolumeClaim>**](V1PersistentVolumeClaim.md) | volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. | [optional] | diff --git a/kubernetes/docs/V1TopologySpreadConstraint.md b/kubernetes/docs/V1TopologySpreadConstraint.md index c8578f0e1c..797d1be962 100644 --- a/kubernetes/docs/V1TopologySpreadConstraint.md +++ b/kubernetes/docs/V1TopologySpreadConstraint.md @@ -12,8 +12,8 @@ TopologySpreadConstraint specifies how to spread matching pods among the given t |**matchLabelKeys** | **List<String>** | MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). | [optional] | |**maxSkew** | **Integer** | MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. | | |**minDomains** | **Integer** | MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. | [optional] | -|**nodeAffinityPolicy** | **String** | NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. | [optional] | -|**nodeTaintsPolicy** | **String** | NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. | [optional] | +|**nodeAffinityPolicy** | **String** | NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. | [optional] | +|**nodeTaintsPolicy** | **String** | NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. | [optional] | |**topologyKey** | **String** | TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each <key, value> as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field. | | |**whenUnsatisfiable** | **String** | WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, but giving higher precedence to topologies that would help reduce the skew. A constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. | | diff --git a/kubernetes/docs/V1VolumeError.md b/kubernetes/docs/V1VolumeError.md index 263cd4a036..bdd6ca7306 100644 --- a/kubernetes/docs/V1VolumeError.md +++ b/kubernetes/docs/V1VolumeError.md @@ -8,6 +8,7 @@ VolumeError captures an error encountered during a volume operation. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**errorCode** | **Integer** | errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. This is an optional, alpha field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set. | [optional] | |**message** | **String** | message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. | [optional] | |**time** | **OffsetDateTime** | time represents the time the error was encountered. | [optional] | diff --git a/kubernetes/docs/V1alpha1MatchResources.md b/kubernetes/docs/V1alpha1MatchResources.md index e357a705e5..e7e5e1e2b2 100644 --- a/kubernetes/docs/V1alpha1MatchResources.md +++ b/kubernetes/docs/V1alpha1MatchResources.md @@ -8,11 +8,11 @@ MatchResources decides whether to run the admission control policy on an object | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**excludeResourceRules** | [**List<V1alpha1NamedRuleWithOperations>**](V1alpha1NamedRuleWithOperations.md) | ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) | [optional] | -|**matchPolicy** | **String** | matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to \"Equivalent\" | [optional] | +|**excludeResourceRules** | [**List<V1alpha1NamedRuleWithOperations>**](V1alpha1NamedRuleWithOperations.md) | ExcludeResourceRules describes what operations on what resources/subresources the policy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) | [optional] | +|**matchPolicy** | **String** | matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, the admission policy does not consider requests to apps/v1beta1 or extensions/v1beta1 API groups. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, the admission policy **does** consider requests made to apps/v1beta1 or extensions/v1beta1 API groups. The API server translates the request to a matched resource API if necessary. Defaults to \"Equivalent\" | [optional] | |**namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | |**objectSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | -|**resourceRules** | [**List<V1alpha1NamedRuleWithOperations>**](V1alpha1NamedRuleWithOperations.md) | ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. | [optional] | +|**resourceRules** | [**List<V1alpha1NamedRuleWithOperations>**](V1alpha1NamedRuleWithOperations.md) | ResourceRules describes what operations on what resources/subresources the admission policy matches. The policy cares about an operation if it matches _any_ Rule. | [optional] | diff --git a/kubernetes/docs/V1alpha2LeaseCandidateSpec.md b/kubernetes/docs/V1alpha2LeaseCandidateSpec.md index 4eaf74cc1a..a9e94cbdec 100644 --- a/kubernetes/docs/V1alpha2LeaseCandidateSpec.md +++ b/kubernetes/docs/V1alpha2LeaseCandidateSpec.md @@ -13,7 +13,7 @@ LeaseCandidateSpec is a specification of a Lease. |**leaseName** | **String** | LeaseName is the name of the lease for which this candidate is contending. This field is immutable. | | |**pingTime** | **OffsetDateTime** | PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime. | [optional] | |**renewTime** | **OffsetDateTime** | RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates. | [optional] | -|**strategy** | **String** | Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled. | | +|**strategy** | **String** | Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. | | diff --git a/kubernetes/docs/V1alpha3AllocatedDeviceStatus.md b/kubernetes/docs/V1alpha3AllocatedDeviceStatus.md index f684ca6b0b..149891005e 100644 --- a/kubernetes/docs/V1alpha3AllocatedDeviceStatus.md +++ b/kubernetes/docs/V1alpha3AllocatedDeviceStatus.md @@ -8,7 +8,7 @@ AllocatedDeviceStatus contains the status of an allocated device, if the driver | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**conditions** | [**List<V1Condition>**](V1Condition.md) | Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True. | [optional] | +|**conditions** | [**List<V1Condition>**](V1Condition.md) | Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True. Must not contain more than 8 entries. | [optional] | |**data** | **Object** | Data contains arbitrary driver-specific data. The length of the raw data must be smaller or equal to 10 Ki. | [optional] | |**device** | **String** | Device references one device instance via its name in the driver's resource pool. It must be a DNS label. | | |**driver** | **String** | Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. | | diff --git a/kubernetes/docs/V1alpha3BasicDevice.md b/kubernetes/docs/V1alpha3BasicDevice.md index c2c79f9332..270679641a 100644 --- a/kubernetes/docs/V1alpha3BasicDevice.md +++ b/kubernetes/docs/V1alpha3BasicDevice.md @@ -8,8 +8,13 @@ BasicDevice defines one device instance. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**allNodes** | **Boolean** | AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] | |**attributes** | [**Map<String, V1alpha3DeviceAttribute>**](V1alpha3DeviceAttribute.md) | Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32. | [optional] | |**capacity** | **Map<String, Quantity>** | Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32. | [optional] | +|**consumesCounters** | [**List<V1alpha3DeviceCounterConsumption>**](V1alpha3DeviceCounterConsumption.md) | ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). | [optional] | +|**nodeName** | **String** | NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] | +|**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | +|**taints** | [**List<V1alpha3DeviceTaint>**](V1alpha3DeviceTaint.md) | If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1alpha3Counter.md b/kubernetes/docs/V1alpha3Counter.md new file mode 100644 index 0000000000..7094abaa34 --- /dev/null +++ b/kubernetes/docs/V1alpha3Counter.md @@ -0,0 +1,14 @@ + + +# V1alpha3Counter + +Counter describes a quantity associated with a device. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**value** | **Quantity** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | | + + + diff --git a/kubernetes/docs/V1alpha3CounterSet.md b/kubernetes/docs/V1alpha3CounterSet.md new file mode 100644 index 0000000000..58effdda48 --- /dev/null +++ b/kubernetes/docs/V1alpha3CounterSet.md @@ -0,0 +1,15 @@ + + +# V1alpha3CounterSet + +CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**counters** | [**Map<String, V1alpha3Counter>**](V1alpha3Counter.md) | Counters defines the counters that will be consumed by the device. The name of each counter must be unique in that set and must be a DNS label. To ensure this uniqueness, capacities defined by the vendor must be listed without the driver name as domain prefix in their name. All others must be listed with their domain prefix. The maximum number of counters is 32. | | +|**name** | **String** | CounterSet is the name of the set from which the counters defined will be consumed. | | + + + diff --git a/kubernetes/docs/V1alpha3DeviceAllocationConfiguration.md b/kubernetes/docs/V1alpha3DeviceAllocationConfiguration.md index 834aded899..cff2be4e90 100644 --- a/kubernetes/docs/V1alpha3DeviceAllocationConfiguration.md +++ b/kubernetes/docs/V1alpha3DeviceAllocationConfiguration.md @@ -9,7 +9,7 @@ DeviceAllocationConfiguration gets embedded in an AllocationResult. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**opaque** | [**V1alpha3OpaqueDeviceConfiguration**](V1alpha3OpaqueDeviceConfiguration.md) | | [optional] | -|**requests** | **List<String>** | Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. | [optional] | +|**requests** | **List<String>** | Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. | [optional] | |**source** | **String** | Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim. | | diff --git a/kubernetes/docs/V1alpha3DeviceClaimConfiguration.md b/kubernetes/docs/V1alpha3DeviceClaimConfiguration.md index c6c32b8019..c0706cb1bb 100644 --- a/kubernetes/docs/V1alpha3DeviceClaimConfiguration.md +++ b/kubernetes/docs/V1alpha3DeviceClaimConfiguration.md @@ -9,7 +9,7 @@ DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**opaque** | [**V1alpha3OpaqueDeviceConfiguration**](V1alpha3OpaqueDeviceConfiguration.md) | | [optional] | -|**requests** | **List<String>** | Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. | [optional] | +|**requests** | **List<String>** | Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. | [optional] | diff --git a/kubernetes/docs/V1alpha3DeviceConstraint.md b/kubernetes/docs/V1alpha3DeviceConstraint.md index b7b03cb63e..b82f9b7f55 100644 --- a/kubernetes/docs/V1alpha3DeviceConstraint.md +++ b/kubernetes/docs/V1alpha3DeviceConstraint.md @@ -9,7 +9,7 @@ DeviceConstraint must have exactly one field set besides Requests. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**matchAttribute** | **String** | MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier. | [optional] | -|**requests** | **List<String>** | Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. | [optional] | +|**requests** | **List<String>** | Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests. | [optional] | diff --git a/kubernetes/docs/V1alpha3DeviceCounterConsumption.md b/kubernetes/docs/V1alpha3DeviceCounterConsumption.md new file mode 100644 index 0000000000..0b1650560f --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceCounterConsumption.md @@ -0,0 +1,15 @@ + + +# V1alpha3DeviceCounterConsumption + +DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**counterSet** | **String** | CounterSet defines the set from which the counters defined will be consumed. | | +|**counters** | [**Map<String, V1alpha3Counter>**](V1alpha3Counter.md) | Counters defines the Counter that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). | | + + + diff --git a/kubernetes/docs/V1alpha3DeviceRequest.md b/kubernetes/docs/V1alpha3DeviceRequest.md index 63e86062a0..d9465c3d49 100644 --- a/kubernetes/docs/V1alpha3DeviceRequest.md +++ b/kubernetes/docs/V1alpha3DeviceRequest.md @@ -2,18 +2,20 @@ # V1alpha3DeviceRequest -DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request. +DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**adminAccess** | **Boolean** | AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] | -|**allocationMode** | **String** | AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] | -|**count** | **Long** | Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. | [optional] | -|**deviceClassName** | **String** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. | | +|**adminAccess** | **Boolean** | AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] | +|**allocationMode** | **String** | AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. At least one device must exist on the node for the allocation to succeed. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] | +|**count** | **Long** | Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. | [optional] | +|**deviceClassName** | **String** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. | [optional] | +|**firstAvailable** | [**List<V1alpha3DeviceSubRequest>**](V1alpha3DeviceSubRequest.md) | FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used. This field may only be set in the entries of DeviceClaim.Requests. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. | [optional] | |**name** | **String** | Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. Must be a DNS label. | | -|**selectors** | [**List<V1alpha3DeviceSelector>**](V1alpha3DeviceSelector.md) | Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. | [optional] | +|**selectors** | [**List<V1alpha3DeviceSelector>**](V1alpha3DeviceSelector.md) | Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. | [optional] | +|**tolerations** | [**List<V1alpha3DeviceToleration>**](V1alpha3DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1alpha3DeviceRequestAllocationResult.md b/kubernetes/docs/V1alpha3DeviceRequestAllocationResult.md index 5991cb26bc..1d5cbcc561 100644 --- a/kubernetes/docs/V1alpha3DeviceRequestAllocationResult.md +++ b/kubernetes/docs/V1alpha3DeviceRequestAllocationResult.md @@ -12,7 +12,8 @@ DeviceRequestAllocationResult contains the allocation result for one request. |**device** | **String** | Device references one device instance via its name in the driver's resource pool. It must be a DNS label. | | |**driver** | **String** | Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. | | |**pool** | **String** | This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. | | -|**request** | **String** | Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request. | | +|**request** | **String** | Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>. Multiple devices may have been allocated per request. | | +|**tolerations** | [**List<V1alpha3DeviceToleration>**](V1alpha3DeviceToleration.md) | A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1alpha3DeviceSubRequest.md b/kubernetes/docs/V1alpha3DeviceSubRequest.md new file mode 100644 index 0000000000..7a82b83764 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceSubRequest.md @@ -0,0 +1,19 @@ + + +# V1alpha3DeviceSubRequest + +DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allocationMode** | **String** | AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] | +|**count** | **Long** | Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. | [optional] | +|**deviceClassName** | **String** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. A class is required. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. | | +|**name** | **String** | Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>. Must be a DNS label. | | +|**selectors** | [**List<V1alpha3DeviceSelector>**](V1alpha3DeviceSelector.md) | Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. | [optional] | +|**tolerations** | [**List<V1alpha3DeviceToleration>**](V1alpha3DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3DeviceTaint.md b/kubernetes/docs/V1alpha3DeviceTaint.md new file mode 100644 index 0000000000..4d61c9135a --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceTaint.md @@ -0,0 +1,17 @@ + + +# V1alpha3DeviceTaint + +The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**effect** | **String** | The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. | | +|**key** | **String** | The taint key to be applied to a device. Must be a label name. | | +|**timeAdded** | **OffsetDateTime** | TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. | [optional] | +|**value** | **String** | The taint value corresponding to the taint key. Must be a label value. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3DeviceTaintRule.md b/kubernetes/docs/V1alpha3DeviceTaintRule.md new file mode 100644 index 0000000000..92d7ea0f6c --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceTaintRule.md @@ -0,0 +1,21 @@ + + +# V1alpha3DeviceTaintRule + +DeviceTaintRule adds one taint to all devices which match the selector. This has the same effect as if the taint was specified directly in the ResourceSlice by the DRA driver. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1alpha3DeviceTaintRuleSpec**](V1alpha3DeviceTaintRuleSpec.md) | | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1alpha3DeviceTaintRuleList.md b/kubernetes/docs/V1alpha3DeviceTaintRuleList.md new file mode 100644 index 0000000000..f2572df656 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceTaintRuleList.md @@ -0,0 +1,21 @@ + + +# V1alpha3DeviceTaintRuleList + +DeviceTaintRuleList is a collection of DeviceTaintRules. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1alpha3DeviceTaintRule>**](V1alpha3DeviceTaintRule.md) | Items is the list of DeviceTaintRules. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1alpha3DeviceTaintRuleSpec.md b/kubernetes/docs/V1alpha3DeviceTaintRuleSpec.md new file mode 100644 index 0000000000..61343d3744 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceTaintRuleSpec.md @@ -0,0 +1,15 @@ + + +# V1alpha3DeviceTaintRuleSpec + +DeviceTaintRuleSpec specifies the selector and one taint. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**deviceSelector** | [**V1alpha3DeviceTaintSelector**](V1alpha3DeviceTaintSelector.md) | | [optional] | +|**taint** | [**V1alpha3DeviceTaint**](V1alpha3DeviceTaint.md) | | | + + + diff --git a/kubernetes/docs/V1alpha3DeviceTaintSelector.md b/kubernetes/docs/V1alpha3DeviceTaintSelector.md new file mode 100644 index 0000000000..9824a9958b --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceTaintSelector.md @@ -0,0 +1,18 @@ + + +# V1alpha3DeviceTaintSelector + +DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**device** | **String** | If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name. Setting also driver and pool may be required to avoid ambiguity, but is not required. | [optional] | +|**deviceClassName** | **String** | If DeviceClassName is set, the selectors defined there must be satisfied by a device to be selected. This field corresponds to class.metadata.name. | [optional] | +|**driver** | **String** | If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.driver. | [optional] | +|**pool** | **String** | If pool is set, only devices in that pool are selected. Also setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name. | [optional] | +|**selectors** | [**List<V1alpha3DeviceSelector>**](V1alpha3DeviceSelector.md) | Selectors contains the same selection criteria as a ResourceClaim. Currently, CEL expressions are supported. All of these selectors must be satisfied. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3DeviceToleration.md b/kubernetes/docs/V1alpha3DeviceToleration.md new file mode 100644 index 0000000000..41d2484404 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceToleration.md @@ -0,0 +1,18 @@ + + +# V1alpha3DeviceToleration + +The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator . + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**effect** | **String** | Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute. | [optional] | +|**key** | **String** | Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name. | [optional] | +|**operator** | **String** | Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category. | [optional] | +|**tolerationSeconds** | **Long** | TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>. | [optional] | +|**value** | **String** | Value is the taint value the toleration matches to. If the operator is Exists, the value must be empty, otherwise just a regular string. Must be a label value. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3NetworkDeviceData.md b/kubernetes/docs/V1alpha3NetworkDeviceData.md index 49725bee31..765a521302 100644 --- a/kubernetes/docs/V1alpha3NetworkDeviceData.md +++ b/kubernetes/docs/V1alpha3NetworkDeviceData.md @@ -10,7 +10,7 @@ NetworkDeviceData provides network-related details for the allocated device. Thi |------------ | ------------- | ------------- | -------------| |**hardwareAddress** | **String** | HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters. | [optional] | |**interfaceName** | **String** | InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters. | [optional] | -|**ips** | **List<String>** | IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. | [optional] | +|**ips** | **List<String>** | IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. Must not contain more than 16 entries. | [optional] | diff --git a/kubernetes/docs/V1alpha3ResourceSliceSpec.md b/kubernetes/docs/V1alpha3ResourceSliceSpec.md index 6d9cedef2b..c7a291c06a 100644 --- a/kubernetes/docs/V1alpha3ResourceSliceSpec.md +++ b/kubernetes/docs/V1alpha3ResourceSliceSpec.md @@ -8,12 +8,14 @@ ResourceSliceSpec contains the information published by the driver in one Resour | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**allNodes** | **Boolean** | AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector and AllNodes must be set. | [optional] | +|**allNodes** | **Boolean** | AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. | [optional] | |**devices** | [**List<V1alpha3Device>**](V1alpha3Device.md) | Devices lists some or all of the devices in this pool. Must not have more than 128 entries. | [optional] | |**driver** | **String** | Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable. | | -|**nodeName** | **String** | NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node. This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available. Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable. | [optional] | +|**nodeName** | **String** | NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node. This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable. | [optional] | |**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | +|**perDeviceNodeSelection** | **Boolean** | PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. | [optional] | |**pool** | [**V1alpha3ResourcePool**](V1alpha3ResourcePool.md) | | | +|**sharedCounters** | [**List<V1alpha3CounterSet>**](V1alpha3CounterSet.md) | SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the SharedCounters must be unique in the ResourceSlice. The maximum number of SharedCounters is 32. | [optional] | diff --git a/kubernetes/docs/V1beta1AllocatedDeviceStatus.md b/kubernetes/docs/V1beta1AllocatedDeviceStatus.md index e37b3ae462..c6409f2801 100644 --- a/kubernetes/docs/V1beta1AllocatedDeviceStatus.md +++ b/kubernetes/docs/V1beta1AllocatedDeviceStatus.md @@ -8,7 +8,7 @@ AllocatedDeviceStatus contains the status of an allocated device, if the driver | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**conditions** | [**List<V1Condition>**](V1Condition.md) | Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True. | [optional] | +|**conditions** | [**List<V1Condition>**](V1Condition.md) | Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True. Must not contain more than 8 entries. | [optional] | |**data** | **Object** | Data contains arbitrary driver-specific data. The length of the raw data must be smaller or equal to 10 Ki. | [optional] | |**device** | **String** | Device references one device instance via its name in the driver's resource pool. It must be a DNS label. | | |**driver** | **String** | Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. | | diff --git a/kubernetes/docs/V1beta1BasicDevice.md b/kubernetes/docs/V1beta1BasicDevice.md index eed41f30bb..a6a2a42bf2 100644 --- a/kubernetes/docs/V1beta1BasicDevice.md +++ b/kubernetes/docs/V1beta1BasicDevice.md @@ -8,8 +8,13 @@ BasicDevice defines one device instance. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**allNodes** | **Boolean** | AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] | |**attributes** | [**Map<String, V1beta1DeviceAttribute>**](V1beta1DeviceAttribute.md) | Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32. | [optional] | |**capacity** | [**Map<String, V1beta1DeviceCapacity>**](V1beta1DeviceCapacity.md) | Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32. | [optional] | +|**consumesCounters** | [**List<V1beta1DeviceCounterConsumption>**](V1beta1DeviceCounterConsumption.md) | ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). | [optional] | +|**nodeName** | **String** | NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] | +|**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | +|**taints** | [**List<V1beta1DeviceTaint>**](V1beta1DeviceTaint.md) | If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1beta1ClusterTrustBundle.md b/kubernetes/docs/V1beta1ClusterTrustBundle.md new file mode 100644 index 0000000000..4d93a6183a --- /dev/null +++ b/kubernetes/docs/V1beta1ClusterTrustBundle.md @@ -0,0 +1,21 @@ + + +# V1beta1ClusterTrustBundle + +ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates). ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to. It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1beta1ClusterTrustBundleSpec**](V1beta1ClusterTrustBundleSpec.md) | | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta1ClusterTrustBundleList.md b/kubernetes/docs/V1beta1ClusterTrustBundleList.md new file mode 100644 index 0000000000..0d775698fb --- /dev/null +++ b/kubernetes/docs/V1beta1ClusterTrustBundleList.md @@ -0,0 +1,21 @@ + + +# V1beta1ClusterTrustBundleList + +ClusterTrustBundleList is a collection of ClusterTrustBundle objects + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1beta1ClusterTrustBundle>**](V1beta1ClusterTrustBundle.md) | items is a collection of ClusterTrustBundle objects | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1beta1ClusterTrustBundleSpec.md b/kubernetes/docs/V1beta1ClusterTrustBundleSpec.md new file mode 100644 index 0000000000..0bb061d634 --- /dev/null +++ b/kubernetes/docs/V1beta1ClusterTrustBundleSpec.md @@ -0,0 +1,15 @@ + + +# V1beta1ClusterTrustBundleSpec + +ClusterTrustBundleSpec contains the signer and trust anchors. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**signerName** | **String** | signerName indicates the associated signer, if any. In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName=<the signer name> verb=attest. If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`. If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix. List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector. | [optional] | +|**trustBundle** | **String** | trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates. The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers. Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data. | | + + + diff --git a/kubernetes/docs/V1beta1Counter.md b/kubernetes/docs/V1beta1Counter.md new file mode 100644 index 0000000000..bd1d05e77b --- /dev/null +++ b/kubernetes/docs/V1beta1Counter.md @@ -0,0 +1,14 @@ + + +# V1beta1Counter + +Counter describes a quantity associated with a device. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**value** | **Quantity** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | | + + + diff --git a/kubernetes/docs/V1beta1CounterSet.md b/kubernetes/docs/V1beta1CounterSet.md new file mode 100644 index 0000000000..6f51d94f38 --- /dev/null +++ b/kubernetes/docs/V1beta1CounterSet.md @@ -0,0 +1,15 @@ + + +# V1beta1CounterSet + +CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**counters** | [**Map<String, V1beta1Counter>**](V1beta1Counter.md) | Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label. The maximum number of counters is 32. | | +|**name** | **String** | Name defines the name of the counter set. It must be a DNS label. | | + + + diff --git a/kubernetes/docs/V1beta1DeviceAllocationConfiguration.md b/kubernetes/docs/V1beta1DeviceAllocationConfiguration.md index 9afd37bb81..3a1bc79ab0 100644 --- a/kubernetes/docs/V1beta1DeviceAllocationConfiguration.md +++ b/kubernetes/docs/V1beta1DeviceAllocationConfiguration.md @@ -9,7 +9,7 @@ DeviceAllocationConfiguration gets embedded in an AllocationResult. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**opaque** | [**V1beta1OpaqueDeviceConfiguration**](V1beta1OpaqueDeviceConfiguration.md) | | [optional] | -|**requests** | **List<String>** | Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. | [optional] | +|**requests** | **List<String>** | Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. | [optional] | |**source** | **String** | Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim. | | diff --git a/kubernetes/docs/V1beta1DeviceClaimConfiguration.md b/kubernetes/docs/V1beta1DeviceClaimConfiguration.md index e1fc0dea9d..e01b760839 100644 --- a/kubernetes/docs/V1beta1DeviceClaimConfiguration.md +++ b/kubernetes/docs/V1beta1DeviceClaimConfiguration.md @@ -9,7 +9,7 @@ DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**opaque** | [**V1beta1OpaqueDeviceConfiguration**](V1beta1OpaqueDeviceConfiguration.md) | | [optional] | -|**requests** | **List<String>** | Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. | [optional] | +|**requests** | **List<String>** | Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. | [optional] | diff --git a/kubernetes/docs/V1beta1DeviceConstraint.md b/kubernetes/docs/V1beta1DeviceConstraint.md index 12bdfd3329..91a33893d3 100644 --- a/kubernetes/docs/V1beta1DeviceConstraint.md +++ b/kubernetes/docs/V1beta1DeviceConstraint.md @@ -9,7 +9,7 @@ DeviceConstraint must have exactly one field set besides Requests. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**matchAttribute** | **String** | MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier. | [optional] | -|**requests** | **List<String>** | Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. | [optional] | +|**requests** | **List<String>** | Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests. | [optional] | diff --git a/kubernetes/docs/V1beta1DeviceCounterConsumption.md b/kubernetes/docs/V1beta1DeviceCounterConsumption.md new file mode 100644 index 0000000000..de94e7c042 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceCounterConsumption.md @@ -0,0 +1,15 @@ + + +# V1beta1DeviceCounterConsumption + +DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**counterSet** | **String** | CounterSet is the name of the set from which the counters defined will be consumed. | | +|**counters** | [**Map<String, V1beta1Counter>**](V1beta1Counter.md) | Counters defines the counters that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). | | + + + diff --git a/kubernetes/docs/V1beta1DeviceRequest.md b/kubernetes/docs/V1beta1DeviceRequest.md index 30ac91d13c..7dd0138e5c 100644 --- a/kubernetes/docs/V1beta1DeviceRequest.md +++ b/kubernetes/docs/V1beta1DeviceRequest.md @@ -2,18 +2,20 @@ # V1beta1DeviceRequest -DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request. +DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**adminAccess** | **Boolean** | AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] | -|**allocationMode** | **String** | AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] | -|**count** | **Long** | Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. | [optional] | -|**deviceClassName** | **String** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. | | -|**name** | **String** | Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. Must be a DNS label. | | -|**selectors** | [**List<V1beta1DeviceSelector>**](V1beta1DeviceSelector.md) | Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. | [optional] | +|**adminAccess** | **Boolean** | AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] | +|**allocationMode** | **String** | AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. At least one device must exist on the node for the allocation to succeed. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] | +|**count** | **Long** | Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. | [optional] | +|**deviceClassName** | **String** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. | [optional] | +|**firstAvailable** | [**List<V1beta1DeviceSubRequest>**](V1beta1DeviceSubRequest.md) | FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used. This field may only be set in the entries of DeviceClaim.Requests. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. | [optional] | +|**name** | **String** | Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. Must be a DNS label and unique among all DeviceRequests in a ResourceClaim. | | +|**selectors** | [**List<V1beta1DeviceSelector>**](V1beta1DeviceSelector.md) | Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. | [optional] | +|**tolerations** | [**List<V1beta1DeviceToleration>**](V1beta1DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md b/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md index 51e1f27efc..6027936ea4 100644 --- a/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md +++ b/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md @@ -12,7 +12,8 @@ DeviceRequestAllocationResult contains the allocation result for one request. |**device** | **String** | Device references one device instance via its name in the driver's resource pool. It must be a DNS label. | | |**driver** | **String** | Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. | | |**pool** | **String** | This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. | | -|**request** | **String** | Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request. | | +|**request** | **String** | Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>. Multiple devices may have been allocated per request. | | +|**tolerations** | [**List<V1beta1DeviceToleration>**](V1beta1DeviceToleration.md) | A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1beta1DeviceSubRequest.md b/kubernetes/docs/V1beta1DeviceSubRequest.md new file mode 100644 index 0000000000..32cd6a003a --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceSubRequest.md @@ -0,0 +1,19 @@ + + +# V1beta1DeviceSubRequest + +DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allocationMode** | **String** | AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This subrequest is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other subrequests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] | +|**count** | **Long** | Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. | [optional] | +|**deviceClassName** | **String** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. A class is required. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. | | +|**name** | **String** | Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>. Must be a DNS label. | | +|**selectors** | [**List<V1beta1DeviceSelector>**](V1beta1DeviceSelector.md) | Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered. | [optional] | +|**tolerations** | [**List<V1beta1DeviceToleration>**](V1beta1DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1DeviceTaint.md b/kubernetes/docs/V1beta1DeviceTaint.md new file mode 100644 index 0000000000..73a7b59d02 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceTaint.md @@ -0,0 +1,17 @@ + + +# V1beta1DeviceTaint + +The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**effect** | **String** | The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. | | +|**key** | **String** | The taint key to be applied to a device. Must be a label name. | | +|**timeAdded** | **OffsetDateTime** | TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. | [optional] | +|**value** | **String** | The taint value corresponding to the taint key. Must be a label value. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1DeviceToleration.md b/kubernetes/docs/V1beta1DeviceToleration.md new file mode 100644 index 0000000000..30207519cd --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceToleration.md @@ -0,0 +1,18 @@ + + +# V1beta1DeviceToleration + +The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator . + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**effect** | **String** | Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute. | [optional] | +|**key** | **String** | Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name. | [optional] | +|**operator** | **String** | Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category. | [optional] | +|**tolerationSeconds** | **Long** | TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>. | [optional] | +|**value** | **String** | Value is the taint value the toleration matches to. If the operator is Exists, the value must be empty, otherwise just a regular string. Must be a label value. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1LeaseCandidate.md b/kubernetes/docs/V1beta1LeaseCandidate.md new file mode 100644 index 0000000000..2b35d2ac9f --- /dev/null +++ b/kubernetes/docs/V1beta1LeaseCandidate.md @@ -0,0 +1,21 @@ + + +# V1beta1LeaseCandidate + +LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1beta1LeaseCandidateSpec**](V1beta1LeaseCandidateSpec.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta1LeaseCandidateList.md b/kubernetes/docs/V1beta1LeaseCandidateList.md new file mode 100644 index 0000000000..2ce131c58e --- /dev/null +++ b/kubernetes/docs/V1beta1LeaseCandidateList.md @@ -0,0 +1,21 @@ + + +# V1beta1LeaseCandidateList + +LeaseCandidateList is a list of Lease objects. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1beta1LeaseCandidate>**](V1beta1LeaseCandidate.md) | items is a list of schema objects. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1beta1LeaseCandidateSpec.md b/kubernetes/docs/V1beta1LeaseCandidateSpec.md new file mode 100644 index 0000000000..452f5774e0 --- /dev/null +++ b/kubernetes/docs/V1beta1LeaseCandidateSpec.md @@ -0,0 +1,19 @@ + + +# V1beta1LeaseCandidateSpec + +LeaseCandidateSpec is a specification of a Lease. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**binaryVersion** | **String** | BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required. | | +|**emulationVersion** | **String** | EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\" | [optional] | +|**leaseName** | **String** | LeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable. | | +|**pingTime** | **OffsetDateTime** | PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime. | [optional] | +|**renewTime** | **OffsetDateTime** | RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates. | [optional] | +|**strategy** | **String** | Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. | | + + + diff --git a/kubernetes/docs/V1beta1NetworkDeviceData.md b/kubernetes/docs/V1beta1NetworkDeviceData.md index 5c79d92a38..093b89b5b3 100644 --- a/kubernetes/docs/V1beta1NetworkDeviceData.md +++ b/kubernetes/docs/V1beta1NetworkDeviceData.md @@ -10,7 +10,7 @@ NetworkDeviceData provides network-related details for the allocated device. Thi |------------ | ------------- | ------------- | -------------| |**hardwareAddress** | **String** | HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters. | [optional] | |**interfaceName** | **String** | InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters. | [optional] | -|**ips** | **List<String>** | IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. | [optional] | +|**ips** | **List<String>** | IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. Must not contain more than 16 entries. | [optional] | diff --git a/kubernetes/docs/V1beta1ResourceSliceSpec.md b/kubernetes/docs/V1beta1ResourceSliceSpec.md index 0868a318f7..ac44048050 100644 --- a/kubernetes/docs/V1beta1ResourceSliceSpec.md +++ b/kubernetes/docs/V1beta1ResourceSliceSpec.md @@ -8,12 +8,14 @@ ResourceSliceSpec contains the information published by the driver in one Resour | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**allNodes** | **Boolean** | AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector and AllNodes must be set. | [optional] | +|**allNodes** | **Boolean** | AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. | [optional] | |**devices** | [**List<V1beta1Device>**](V1beta1Device.md) | Devices lists some or all of the devices in this pool. Must not have more than 128 entries. | [optional] | |**driver** | **String** | Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable. | | -|**nodeName** | **String** | NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node. This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available. Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable. | [optional] | +|**nodeName** | **String** | NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node. This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable. | [optional] | |**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | +|**perDeviceNodeSelection** | **Boolean** | PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. | [optional] | |**pool** | [**V1beta1ResourcePool**](V1beta1ResourcePool.md) | | | +|**sharedCounters** | [**List<V1beta1CounterSet>**](V1beta1CounterSet.md) | SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the SharedCounters must be unique in the ResourceSlice. The maximum number of SharedCounters is 32. | [optional] | diff --git a/kubernetes/docs/V1beta1SelfSubjectReviewStatus.md b/kubernetes/docs/V1beta1SelfSubjectReviewStatus.md deleted file mode 100644 index 07510a58b8..0000000000 --- a/kubernetes/docs/V1beta1SelfSubjectReviewStatus.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta1SelfSubjectReviewStatus - -SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**userInfo** | [**V1UserInfo**](V1UserInfo.md) | | [optional] | - - - diff --git a/kubernetes/docs/V1beta2AllocatedDeviceStatus.md b/kubernetes/docs/V1beta2AllocatedDeviceStatus.md new file mode 100644 index 0000000000..b646dfb6c8 --- /dev/null +++ b/kubernetes/docs/V1beta2AllocatedDeviceStatus.md @@ -0,0 +1,19 @@ + + +# V1beta2AllocatedDeviceStatus + +AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1Condition>**](V1Condition.md) | Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True. Must not contain more than 8 entries. | [optional] | +|**data** | **Object** | Data contains arbitrary driver-specific data. The length of the raw data must be smaller or equal to 10 Ki. | [optional] | +|**device** | **String** | Device references one device instance via its name in the driver's resource pool. It must be a DNS label. | | +|**driver** | **String** | Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. | | +|**networkData** | [**V1beta2NetworkDeviceData**](V1beta2NetworkDeviceData.md) | | [optional] | +|**pool** | **String** | This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. | | + + + diff --git a/kubernetes/docs/V1beta2AllocationResult.md b/kubernetes/docs/V1beta2AllocationResult.md new file mode 100644 index 0000000000..8537175181 --- /dev/null +++ b/kubernetes/docs/V1beta2AllocationResult.md @@ -0,0 +1,15 @@ + + +# V1beta2AllocationResult + +AllocationResult contains attributes of an allocated resource. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**devices** | [**V1beta2DeviceAllocationResult**](V1beta2DeviceAllocationResult.md) | | [optional] | +|**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1beta2CELDeviceSelector.md b/kubernetes/docs/V1beta2CELDeviceSelector.md new file mode 100644 index 0000000000..57720e6280 --- /dev/null +++ b/kubernetes/docs/V1beta2CELDeviceSelector.md @@ -0,0 +1,14 @@ + + +# V1beta2CELDeviceSelector + +CELDeviceSelector contains a CEL expression for selecting a device. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**expression** | **String** | Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. | | + + + diff --git a/kubernetes/docs/V1beta2Counter.md b/kubernetes/docs/V1beta2Counter.md new file mode 100644 index 0000000000..36fddc5d9d --- /dev/null +++ b/kubernetes/docs/V1beta2Counter.md @@ -0,0 +1,14 @@ + + +# V1beta2Counter + +Counter describes a quantity associated with a device. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**value** | **Quantity** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | | + + + diff --git a/kubernetes/docs/V1beta2CounterSet.md b/kubernetes/docs/V1beta2CounterSet.md new file mode 100644 index 0000000000..15cac7594e --- /dev/null +++ b/kubernetes/docs/V1beta2CounterSet.md @@ -0,0 +1,15 @@ + + +# V1beta2CounterSet + +CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**counters** | [**Map<String, V1beta2Counter>**](V1beta2Counter.md) | Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label. The maximum number of counters in all sets is 32. | | +|**name** | **String** | Name defines the name of the counter set. It must be a DNS label. | | + + + diff --git a/kubernetes/docs/V1beta2Device.md b/kubernetes/docs/V1beta2Device.md new file mode 100644 index 0000000000..d09ecf46b0 --- /dev/null +++ b/kubernetes/docs/V1beta2Device.md @@ -0,0 +1,21 @@ + + +# V1beta2Device + +Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allNodes** | **Boolean** | AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] | +|**attributes** | [**Map<String, V1beta2DeviceAttribute>**](V1beta2DeviceAttribute.md) | Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32. | [optional] | +|**capacity** | [**Map<String, V1beta2DeviceCapacity>**](V1beta2DeviceCapacity.md) | Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32. | [optional] | +|**consumesCounters** | [**List<V1beta2DeviceCounterConsumption>**](V1beta2DeviceCounterConsumption.md) | ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). | [optional] | +|**name** | **String** | Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. | | +|**nodeName** | **String** | NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] | +|**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | +|**taints** | [**List<V1beta2DeviceTaint>**](V1beta2DeviceTaint.md) | If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | + + + diff --git a/kubernetes/docs/V1beta2DeviceAllocationConfiguration.md b/kubernetes/docs/V1beta2DeviceAllocationConfiguration.md new file mode 100644 index 0000000000..5b53afc484 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceAllocationConfiguration.md @@ -0,0 +1,16 @@ + + +# V1beta2DeviceAllocationConfiguration + +DeviceAllocationConfiguration gets embedded in an AllocationResult. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**opaque** | [**V1beta2OpaqueDeviceConfiguration**](V1beta2OpaqueDeviceConfiguration.md) | | [optional] | +|**requests** | **List<String>** | Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. | [optional] | +|**source** | **String** | Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim. | | + + + diff --git a/kubernetes/docs/V1beta2DeviceAllocationResult.md b/kubernetes/docs/V1beta2DeviceAllocationResult.md new file mode 100644 index 0000000000..8780e5be9b --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceAllocationResult.md @@ -0,0 +1,15 @@ + + +# V1beta2DeviceAllocationResult + +DeviceAllocationResult is the result of allocating devices. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**config** | [**List<V1beta2DeviceAllocationConfiguration>**](V1beta2DeviceAllocationConfiguration.md) | This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag. This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters. | [optional] | +|**results** | [**List<V1beta2DeviceRequestAllocationResult>**](V1beta2DeviceRequestAllocationResult.md) | Results lists all allocated devices. | [optional] | + + + diff --git a/kubernetes/docs/V1beta2DeviceAttribute.md b/kubernetes/docs/V1beta2DeviceAttribute.md new file mode 100644 index 0000000000..629d04604e --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceAttribute.md @@ -0,0 +1,17 @@ + + +# V1beta2DeviceAttribute + +DeviceAttribute must have exactly one field set. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**bool** | **Boolean** | BoolValue is a true/false value. | [optional] | +|**_int** | **Long** | IntValue is a number. | [optional] | +|**string** | **String** | StringValue is a string. Must not be longer than 64 characters. | [optional] | +|**version** | **String** | VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters. | [optional] | + + + diff --git a/kubernetes/docs/V1beta2DeviceCapacity.md b/kubernetes/docs/V1beta2DeviceCapacity.md new file mode 100644 index 0000000000..28b1861146 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceCapacity.md @@ -0,0 +1,14 @@ + + +# V1beta2DeviceCapacity + +DeviceCapacity describes a quantity associated with a device. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**value** | **Quantity** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | | + + + diff --git a/kubernetes/docs/V1beta2DeviceClaim.md b/kubernetes/docs/V1beta2DeviceClaim.md new file mode 100644 index 0000000000..7a37be60b8 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceClaim.md @@ -0,0 +1,16 @@ + + +# V1beta2DeviceClaim + +DeviceClaim defines how to request devices with a ResourceClaim. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**config** | [**List<V1beta2DeviceClaimConfiguration>**](V1beta2DeviceClaimConfiguration.md) | This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim. | [optional] | +|**constraints** | [**List<V1beta2DeviceConstraint>**](V1beta2DeviceConstraint.md) | These constraints must be satisfied by the set of devices that get allocated for the claim. | [optional] | +|**requests** | [**List<V1beta2DeviceRequest>**](V1beta2DeviceRequest.md) | Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated. | [optional] | + + + diff --git a/kubernetes/docs/V1beta2DeviceClaimConfiguration.md b/kubernetes/docs/V1beta2DeviceClaimConfiguration.md new file mode 100644 index 0000000000..aa990c8d22 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceClaimConfiguration.md @@ -0,0 +1,15 @@ + + +# V1beta2DeviceClaimConfiguration + +DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**opaque** | [**V1beta2OpaqueDeviceConfiguration**](V1beta2OpaqueDeviceConfiguration.md) | | [optional] | +|**requests** | **List<String>** | Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. | [optional] | + + + diff --git a/kubernetes/docs/V1beta2DeviceClass.md b/kubernetes/docs/V1beta2DeviceClass.md new file mode 100644 index 0000000000..974d92d4fd --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceClass.md @@ -0,0 +1,21 @@ + + +# V1beta2DeviceClass + +DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1beta2DeviceClassSpec**](V1beta2DeviceClassSpec.md) | | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta2DeviceClassConfiguration.md b/kubernetes/docs/V1beta2DeviceClassConfiguration.md new file mode 100644 index 0000000000..c5bb75fdf9 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceClassConfiguration.md @@ -0,0 +1,14 @@ + + +# V1beta2DeviceClassConfiguration + +DeviceClassConfiguration is used in DeviceClass. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**opaque** | [**V1beta2OpaqueDeviceConfiguration**](V1beta2OpaqueDeviceConfiguration.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1beta2DeviceClassList.md b/kubernetes/docs/V1beta2DeviceClassList.md new file mode 100644 index 0000000000..98dccee512 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceClassList.md @@ -0,0 +1,21 @@ + + +# V1beta2DeviceClassList + +DeviceClassList is a collection of classes. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1beta2DeviceClass>**](V1beta2DeviceClass.md) | Items is the list of resource classes. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1beta2DeviceClassSpec.md b/kubernetes/docs/V1beta2DeviceClassSpec.md new file mode 100644 index 0000000000..f773215a2f --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceClassSpec.md @@ -0,0 +1,15 @@ + + +# V1beta2DeviceClassSpec + +DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**config** | [**List<V1beta2DeviceClassConfiguration>**](V1beta2DeviceClassConfiguration.md) | Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered while allocating the claim. | [optional] | +|**selectors** | [**List<V1beta2DeviceSelector>**](V1beta2DeviceSelector.md) | Each selector must be satisfied by a device which is claimed via this class. | [optional] | + + + diff --git a/kubernetes/docs/V1beta2DeviceConstraint.md b/kubernetes/docs/V1beta2DeviceConstraint.md new file mode 100644 index 0000000000..32d403d306 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceConstraint.md @@ -0,0 +1,15 @@ + + +# V1beta2DeviceConstraint + +DeviceConstraint must have exactly one field set besides Requests. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**matchAttribute** | **String** | MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier. | [optional] | +|**requests** | **List<String>** | Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests. | [optional] | + + + diff --git a/kubernetes/docs/V1beta2DeviceCounterConsumption.md b/kubernetes/docs/V1beta2DeviceCounterConsumption.md new file mode 100644 index 0000000000..8451375749 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceCounterConsumption.md @@ -0,0 +1,15 @@ + + +# V1beta2DeviceCounterConsumption + +DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**counterSet** | **String** | CounterSet is the name of the set from which the counters defined will be consumed. | | +|**counters** | [**Map<String, V1beta2Counter>**](V1beta2Counter.md) | Counters defines the counters that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). | | + + + diff --git a/kubernetes/docs/V1beta2DeviceRequest.md b/kubernetes/docs/V1beta2DeviceRequest.md new file mode 100644 index 0000000000..41c85909fd --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceRequest.md @@ -0,0 +1,16 @@ + + +# V1beta2DeviceRequest + +DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. With FirstAvailable it is also possible to provide a prioritized list of requests. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**exactly** | [**V1beta2ExactDeviceRequest**](V1beta2ExactDeviceRequest.md) | | [optional] | +|**firstAvailable** | [**List<V1beta2DeviceSubRequest>**](V1beta2DeviceSubRequest.md) | FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. | [optional] | +|**name** | **String** | Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler. Must be a DNS label. | | + + + diff --git a/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md b/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md new file mode 100644 index 0000000000..e08d915dbf --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md @@ -0,0 +1,19 @@ + + +# V1beta2DeviceRequestAllocationResult + +DeviceRequestAllocationResult contains the allocation result for one request. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**adminAccess** | **Boolean** | AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] | +|**device** | **String** | Device references one device instance via its name in the driver's resource pool. It must be a DNS label. | | +|**driver** | **String** | Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. | | +|**pool** | **String** | This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. | | +|**request** | **String** | Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>. Multiple devices may have been allocated per request. | | +|**tolerations** | [**List<V1beta2DeviceToleration>**](V1beta2DeviceToleration.md) | A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | + + + diff --git a/kubernetes/docs/V1beta2DeviceSelector.md b/kubernetes/docs/V1beta2DeviceSelector.md new file mode 100644 index 0000000000..8403d83ab9 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceSelector.md @@ -0,0 +1,14 @@ + + +# V1beta2DeviceSelector + +DeviceSelector must have exactly one field set. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**cel** | [**V1beta2CELDeviceSelector**](V1beta2CELDeviceSelector.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1beta2DeviceSubRequest.md b/kubernetes/docs/V1beta2DeviceSubRequest.md new file mode 100644 index 0000000000..33c93583f3 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceSubRequest.md @@ -0,0 +1,19 @@ + + +# V1beta2DeviceSubRequest + +DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allocationMode** | **String** | AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This subrequest is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other subrequests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] | +|**count** | **Long** | Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. | [optional] | +|**deviceClassName** | **String** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. A class is required. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. | | +|**name** | **String** | Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>. Must be a DNS label. | | +|**selectors** | [**List<V1beta2DeviceSelector>**](V1beta2DeviceSelector.md) | Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered. | [optional] | +|**tolerations** | [**List<V1beta2DeviceToleration>**](V1beta2DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | + + + diff --git a/kubernetes/docs/V1beta2DeviceTaint.md b/kubernetes/docs/V1beta2DeviceTaint.md new file mode 100644 index 0000000000..3b10811833 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceTaint.md @@ -0,0 +1,17 @@ + + +# V1beta2DeviceTaint + +The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**effect** | **String** | The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. | | +|**key** | **String** | The taint key to be applied to a device. Must be a label name. | | +|**timeAdded** | **OffsetDateTime** | TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. | [optional] | +|**value** | **String** | The taint value corresponding to the taint key. Must be a label value. | [optional] | + + + diff --git a/kubernetes/docs/V1beta2DeviceToleration.md b/kubernetes/docs/V1beta2DeviceToleration.md new file mode 100644 index 0000000000..e7e124662d --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceToleration.md @@ -0,0 +1,18 @@ + + +# V1beta2DeviceToleration + +The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator . + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**effect** | **String** | Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute. | [optional] | +|**key** | **String** | Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name. | [optional] | +|**operator** | **String** | Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category. | [optional] | +|**tolerationSeconds** | **Long** | TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>. | [optional] | +|**value** | **String** | Value is the taint value the toleration matches to. If the operator is Exists, the value must be empty, otherwise just a regular string. Must be a label value. | [optional] | + + + diff --git a/kubernetes/docs/V1beta2ExactDeviceRequest.md b/kubernetes/docs/V1beta2ExactDeviceRequest.md new file mode 100644 index 0000000000..2e6e9977b9 --- /dev/null +++ b/kubernetes/docs/V1beta2ExactDeviceRequest.md @@ -0,0 +1,19 @@ + + +# V1beta2ExactDeviceRequest + +ExactDeviceRequest is a request for one or more identical devices. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**adminAccess** | **Boolean** | AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] | +|**allocationMode** | **String** | AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. At least one device must exist on the node for the allocation to succeed. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] | +|**count** | **Long** | Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. | [optional] | +|**deviceClassName** | **String** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A DeviceClassName is required. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. | | +|**selectors** | [**List<V1beta2DeviceSelector>**](V1beta2DeviceSelector.md) | Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. | [optional] | +|**tolerations** | [**List<V1beta2DeviceToleration>**](V1beta2DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | + + + diff --git a/kubernetes/docs/V1beta2NetworkDeviceData.md b/kubernetes/docs/V1beta2NetworkDeviceData.md new file mode 100644 index 0000000000..99e9e49e33 --- /dev/null +++ b/kubernetes/docs/V1beta2NetworkDeviceData.md @@ -0,0 +1,16 @@ + + +# V1beta2NetworkDeviceData + +NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**hardwareAddress** | **String** | HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters. | [optional] | +|**interfaceName** | **String** | InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters. | [optional] | +|**ips** | **List<String>** | IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. | [optional] | + + + diff --git a/kubernetes/docs/V1beta2OpaqueDeviceConfiguration.md b/kubernetes/docs/V1beta2OpaqueDeviceConfiguration.md new file mode 100644 index 0000000000..211a369b8e --- /dev/null +++ b/kubernetes/docs/V1beta2OpaqueDeviceConfiguration.md @@ -0,0 +1,15 @@ + + +# V1beta2OpaqueDeviceConfiguration + +OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**driver** | **String** | Driver is used to determine which kubelet plugin needs to be passed these configuration parameters. An admission policy provided by the driver developer could use this to decide whether it needs to validate them. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. | | +|**parameters** | **Object** | Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version (\"kind\" + \"apiVersion\" for Kubernetes types), with conversion between different versions. The length of the raw data must be smaller or equal to 10 Ki. | | + + + diff --git a/kubernetes/docs/V1beta2ResourceClaim.md b/kubernetes/docs/V1beta2ResourceClaim.md new file mode 100644 index 0000000000..f7ed184474 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaim.md @@ -0,0 +1,22 @@ + + +# V1beta2ResourceClaim + +ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1beta2ResourceClaimSpec**](V1beta2ResourceClaimSpec.md) | | | +|**status** | [**V1beta2ResourceClaimStatus**](V1beta2ResourceClaimStatus.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta2ResourceClaimConsumerReference.md b/kubernetes/docs/V1beta2ResourceClaimConsumerReference.md new file mode 100644 index 0000000000..e28ef407e6 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaimConsumerReference.md @@ -0,0 +1,17 @@ + + +# V1beta2ResourceClaimConsumerReference + +ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiGroup** | **String** | APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. | [optional] | +|**name** | **String** | Name is the name of resource being referenced. | | +|**resource** | **String** | Resource is the type of resource being referenced, for example \"pods\". | | +|**uid** | **String** | UID identifies exactly one incarnation of the resource. | | + + + diff --git a/kubernetes/docs/V1beta2ResourceClaimList.md b/kubernetes/docs/V1beta2ResourceClaimList.md new file mode 100644 index 0000000000..5d421bf628 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaimList.md @@ -0,0 +1,21 @@ + + +# V1beta2ResourceClaimList + +ResourceClaimList is a collection of claims. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1beta2ResourceClaim>**](V1beta2ResourceClaim.md) | Items is the list of resource claims. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1beta2ResourceClaimSpec.md b/kubernetes/docs/V1beta2ResourceClaimSpec.md new file mode 100644 index 0000000000..3b18da957a --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaimSpec.md @@ -0,0 +1,14 @@ + + +# V1beta2ResourceClaimSpec + +ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**devices** | [**V1beta2DeviceClaim**](V1beta2DeviceClaim.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1beta2ResourceClaimStatus.md b/kubernetes/docs/V1beta2ResourceClaimStatus.md new file mode 100644 index 0000000000..82f76d6076 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaimStatus.md @@ -0,0 +1,16 @@ + + +# V1beta2ResourceClaimStatus + +ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allocation** | [**V1beta2AllocationResult**](V1beta2AllocationResult.md) | | [optional] | +|**devices** | [**List<V1beta2AllocatedDeviceStatus>**](V1beta2AllocatedDeviceStatus.md) | Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers. | [optional] | +|**reservedFor** | [**List<V1beta2ResourceClaimConsumerReference>**](V1beta2ResourceClaimConsumerReference.md) | ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated. In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled. Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again. There can be at most 256 such reservations. This may get increased in the future, but not reduced. | [optional] | + + + diff --git a/kubernetes/docs/V1beta2ResourceClaimTemplate.md b/kubernetes/docs/V1beta2ResourceClaimTemplate.md new file mode 100644 index 0000000000..3193d8c6bb --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaimTemplate.md @@ -0,0 +1,21 @@ + + +# V1beta2ResourceClaimTemplate + +ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1beta2ResourceClaimTemplateSpec**](V1beta2ResourceClaimTemplateSpec.md) | | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta2ResourceClaimTemplateList.md b/kubernetes/docs/V1beta2ResourceClaimTemplateList.md new file mode 100644 index 0000000000..aff4f7b674 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaimTemplateList.md @@ -0,0 +1,21 @@ + + +# V1beta2ResourceClaimTemplateList + +ResourceClaimTemplateList is a collection of claim templates. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1beta2ResourceClaimTemplate>**](V1beta2ResourceClaimTemplate.md) | Items is the list of resource claim templates. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1beta2ResourceClaimTemplateSpec.md b/kubernetes/docs/V1beta2ResourceClaimTemplateSpec.md new file mode 100644 index 0000000000..3026b69593 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaimTemplateSpec.md @@ -0,0 +1,15 @@ + + +# V1beta2ResourceClaimTemplateSpec + +ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1beta2ResourceClaimSpec**](V1beta2ResourceClaimSpec.md) | | | + + + diff --git a/kubernetes/docs/V1beta2ResourcePool.md b/kubernetes/docs/V1beta2ResourcePool.md new file mode 100644 index 0000000000..80aa46ff3d --- /dev/null +++ b/kubernetes/docs/V1beta2ResourcePool.md @@ -0,0 +1,16 @@ + + +# V1beta2ResourcePool + +ResourcePool describes the pool that ResourceSlices belong to. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**generation** | **Long** | Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted. Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state. | | +|**name** | **String** | Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable. | | +|**resourceSliceCount** | **Long** | ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero. Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool. | | + + + diff --git a/kubernetes/docs/V1beta2ResourceSlice.md b/kubernetes/docs/V1beta2ResourceSlice.md new file mode 100644 index 0000000000..4c71c184a9 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceSlice.md @@ -0,0 +1,21 @@ + + +# V1beta2ResourceSlice + +ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver. At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple , , . Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others. When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool. For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1beta2ResourceSliceSpec**](V1beta2ResourceSliceSpec.md) | | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta2ResourceSliceList.md b/kubernetes/docs/V1beta2ResourceSliceList.md new file mode 100644 index 0000000000..20bc932b3f --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceSliceList.md @@ -0,0 +1,21 @@ + + +# V1beta2ResourceSliceList + +ResourceSliceList is a collection of ResourceSlices. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1beta2ResourceSlice>**](V1beta2ResourceSlice.md) | Items is the list of resource ResourceSlices. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1beta2ResourceSliceSpec.md b/kubernetes/docs/V1beta2ResourceSliceSpec.md new file mode 100644 index 0000000000..c2b68d9c35 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceSliceSpec.md @@ -0,0 +1,21 @@ + + +# V1beta2ResourceSliceSpec + +ResourceSliceSpec contains the information published by the driver in one ResourceSlice. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allNodes** | **Boolean** | AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. | [optional] | +|**devices** | [**List<V1beta2Device>**](V1beta2Device.md) | Devices lists some or all of the devices in this pool. Must not have more than 128 entries. | [optional] | +|**driver** | **String** | Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable. | | +|**nodeName** | **String** | NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node. This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable. | [optional] | +|**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | +|**perDeviceNodeSelection** | **Boolean** | PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. | [optional] | +|**pool** | [**V1beta2ResourcePool**](V1beta2ResourcePool.md) | | | +|**sharedCounters** | [**List<V1beta2CounterSet>**](V1beta2CounterSet.md) | SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the SharedCounters must be unique in the ResourceSlice. The maximum number of counters in all sets is 32. | [optional] | + + + diff --git a/kubernetes/docs/V2HPAScalingRules.md b/kubernetes/docs/V2HPAScalingRules.md index 6115459481..f63b4e78ab 100644 --- a/kubernetes/docs/V2HPAScalingRules.md +++ b/kubernetes/docs/V2HPAScalingRules.md @@ -2,15 +2,16 @@ # V2HPAScalingRules -HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen. +HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance. Scaling Policy Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen. The tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations. (Note that setting a tolerance requires enabling the alpha HPAConfigurableTolerance feature gate.) ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**policies** | [**List<V2HPAScalingPolicy>**](V2HPAScalingPolicy.md) | policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid | [optional] | +|**policies** | [**List<V2HPAScalingPolicy>**](V2HPAScalingPolicy.md) | policies is a list of potential scaling polices which can be used during scaling. If not set, use the default values: - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window. - For scale down: allow all pods to be removed in a 15s window. | [optional] | |**selectPolicy** | **String** | selectPolicy is used to specify which policy should be used. If not set, the default value Max is used. | [optional] | |**stabilizationWindowSeconds** | **Integer** | stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). | [optional] | +|**tolerance** | **Quantity** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | diff --git a/kubernetes/docs/VersionApi.md b/kubernetes/docs/VersionApi.md index c9339b276d..7234d036af 100644 --- a/kubernetes/docs/VersionApi.md +++ b/kubernetes/docs/VersionApi.md @@ -13,7 +13,7 @@ All URIs are relative to *http://localhost* -get the code version +get the version information for this server ### Example ```java diff --git a/kubernetes/docs/VersionInfo.md b/kubernetes/docs/VersionInfo.md index dc1d0666ed..9da6d4c92d 100644 --- a/kubernetes/docs/VersionInfo.md +++ b/kubernetes/docs/VersionInfo.md @@ -10,12 +10,16 @@ Info contains versioning information. how we'll want to distribute that informat |------------ | ------------- | ------------- | -------------| |**buildDate** | **String** | | | |**compiler** | **String** | | | +|**emulationMajor** | **String** | EmulationMajor is the major version of the emulation version | [optional] | +|**emulationMinor** | **String** | EmulationMinor is the minor version of the emulation version | [optional] | |**gitCommit** | **String** | | | |**gitTreeState** | **String** | | | |**gitVersion** | **String** | | | |**goVersion** | **String** | | | -|**major** | **String** | | | -|**minor** | **String** | | | +|**major** | **String** | Major is the major version of the binary version | | +|**minCompatibilityMajor** | **String** | MinCompatibilityMajor is the major version of the minimum compatibility version | [optional] | +|**minCompatibilityMinor** | **String** | MinCompatibilityMinor is the minor version of the minimum compatibility version | [optional] | +|**minor** | **String** | Minor is the minor version of the binary version | | |**platform** | **String** | | | diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java index e8d4bdd1c4..e9c37cb907 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java @@ -734,6 +734,31 @@ public List parameterToPairs(String collectionFormat, String name, Collect return params; } + /** + * Formats the specified free-form query parameters to a list of {@code Pair} objects. + * + * @param value The free-form query parameters. + * @return A list of {@code Pair} objects. + */ + public List freeFormParameterToPairs(Object value) { + List params = new ArrayList<>(); + + // preconditions + if (value == null || !(value instanceof Map )) { + return params; + } + + @SuppressWarnings("unchecked") + final Map valuesMap = (Map) value; + + for (Map.Entry entry : valuesMap.entrySet()) { + params.add(new Pair(entry.getKey(), parameterToString(entry.getValue()))); + } + + return params; + } + + /** * Formats the specified collection path parameter to a string value. * @@ -886,17 +911,8 @@ public T deserialize(Response response, Type returnType) throws ApiException return (T) downloadFileFromResponse(response); } - String respBody; - try { - if (response.body() != null) - respBody = response.body().string(); - else - respBody = null; - } catch (IOException e) { - throw new ApiException(e); - } - - if (respBody == null || "".equals(respBody)) { + ResponseBody respBody = response.body(); + if (respBody == null) { return null; } @@ -905,17 +921,25 @@ public T deserialize(Response response, Type returnType) throws ApiException // ensuring a default content type contentType = "application/json"; } - if (isJsonMime(contentType)) { - return JSON.deserialize(respBody, returnType); - } else if (returnType.equals(String.class)) { - // Expecting string, return the raw response body. - return (T) respBody; - } else { - throw new ApiException( + try { + if (isJsonMime(contentType)) { + return JSON.deserialize(respBody.byteStream(), returnType); + } else if (returnType.equals(String.class)) { + String respBodyString = respBody.string(); + if (respBodyString.isEmpty()) { + return null; + } + // Expecting string, return the raw response body. + return (T) respBodyString; + } else { + throw new ApiException( "Content type \"" + contentType + "\" is not supported for type: " + returnType, response.code(), response.headers().toMultimap(), - respBody); + response.body().string()); + } + } catch (IOException e) { + throw new ApiException(e); } } @@ -1172,10 +1196,6 @@ public Call buildCall(String baseUrl, String path, String method, List que * @throws io.kubernetes.client.openapi.ApiException If fail to serialize the request body object */ public Request buildRequest(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { - // aggregate queryParams (non-collection) and collectionQueryParams into allQueryParams - List allQueryParams = new ArrayList(queryParams); - allQueryParams.addAll(collectionQueryParams); - final String url = buildUrl(baseUrl, path, queryParams, collectionQueryParams); // prepare HTTP request body @@ -1203,10 +1223,12 @@ public Request buildRequest(String baseUrl, String path, String method, List updatedQueryParams = new ArrayList<>(queryParams); + // update parameters with authentication settings - updateParamsForAuth(authNames, allQueryParams, headerParams, cookieParams, requestBodyToString(reqBody), method, URI.create(url)); + updateParamsForAuth(authNames, updatedQueryParams, headerParams, cookieParams, requestBodyToString(reqBody), method, URI.create(url)); - final Request.Builder reqBuilder = new Request.Builder().url(url); + final Request.Builder reqBuilder = new Request.Builder().url(buildUrl(baseUrl, path, updatedQueryParams, collectionQueryParams)); processHeaderParams(headerParams, reqBuilder); processCookieParams(cookieParams, reqBuilder); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java index 0ba8f75cb6..f903690774 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java @@ -20,7 +20,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class ApiException extends Exception { private static final long serialVersionUID = 1L; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java index adbc4b63c6..21902a17a2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java @@ -12,29 +12,51 @@ */ package io.kubernetes.client.openapi; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +import java.util.Objects; +import java.util.concurrent.atomic.AtomicReference; +import java.util.function.Supplier; + +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class Configuration { - public static final String VERSION = "24.0.0-SNAPSHOT"; + public static final String VERSION = "24.0.0-SNAPSHOT"; - private static ApiClient defaultApiClient = new ApiClient(); + private static final AtomicReference defaultApiClient = new AtomicReference<>(); + private static volatile Supplier apiClientFactory = ApiClient::new; - /** - * Get the default API client, which would be used when creating API - * instances without providing an API client. - * - * @return Default API client - */ - public static ApiClient getDefaultApiClient() { - return defaultApiClient; + /** + * Get the default API client, which would be used when creating API instances without providing an API client. + * + * @return Default API client + */ + public static ApiClient getDefaultApiClient() { + ApiClient client = defaultApiClient.get(); + if (client == null) { + client = defaultApiClient.updateAndGet(val -> { + if (val != null) { // changed by another thread + return val; + } + return apiClientFactory.get(); + }); } + return client; + } - /** - * Set the default API client, which would be used when creating API - * instances without providing an API client. - * - * @param apiClient API client - */ - public static void setDefaultApiClient(ApiClient apiClient) { - defaultApiClient = apiClient; - } + /** + * Set the default API client, which would be used when creating API instances without providing an API client. + * + * @param apiClient API client + */ + public static void setDefaultApiClient(ApiClient apiClient) { + defaultApiClient.set(apiClient); + } + + /** + * set the callback used to create new ApiClient objects + */ + public static void setApiClientFactory(Supplier factory) { + apiClientFactory = Objects.requireNonNull(factory); + } + + private Configuration() { + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java index 8bc8228342..a5ef315e66 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java @@ -12,11 +12,11 @@ */ package io.kubernetes.client.openapi; -import com.fasterxml.jackson.databind.util.StdDateFormat; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.JsonParseException; import com.google.gson.TypeAdapter; +import com.google.gson.internal.bind.util.ISO8601Utils; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import com.google.gson.JsonElement; @@ -29,14 +29,16 @@ import okio.ByteString; import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; import java.io.StringReader; import java.lang.reflect.Type; +import java.nio.charset.StandardCharsets; import java.text.DateFormat; import java.text.ParseException; +import java.text.ParsePosition; import java.time.LocalDate; import java.time.OffsetDateTime; -import java.time.ZoneId; -import java.time.ZoneOffset; import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatterBuilder; import java.time.format.DateTimeParseException; @@ -45,7 +47,6 @@ import java.util.Locale; import java.util.Map; import java.util.HashMap; -import java.util.TimeZone; /* * A JSON utility class @@ -73,11 +74,6 @@ public class JSON { private static LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); private static ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); - private static final StdDateFormat sdf = new StdDateFormat() - .withTimeZone(TimeZone.getTimeZone(ZoneId.systemDefault())) - .withColonInTimeZone(true); - private static final DateTimeFormatter dtf = DateTimeFormatter.ISO_OFFSET_DATE_TIME; - @SuppressWarnings("unchecked") public static GsonBuilder createGson() { GsonFireBuilder fireBuilder = new GsonFireBuilder() @@ -274,6 +270,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1FlowSchemaList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1FlowSchemaSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1FlowSchemaStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ForNode.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ForZone.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1GRPCAction.CustomTypeAdapterFactory()); @@ -293,6 +290,9 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1HostAlias.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1HostIP.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1HostPathVolumeSource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1IPAddress.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1IPAddressList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1IPAddressSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1IPBlock.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ISCSIVolumeSource.CustomTypeAdapterFactory()); @@ -378,6 +378,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeSelectorTerm.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeSwapStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeSystemInfo.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NonResourceAttributes.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NonResourcePolicyRule.CustomTypeAdapterFactory()); @@ -389,6 +390,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1OwnerReference.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ParamKind.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ParamRef.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ParentReference.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PersistentVolume.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PersistentVolumeClaim.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition.CustomTypeAdapterFactory()); @@ -514,6 +516,10 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ServiceAccountSubject.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjection.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ServiceBackendPort.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ServiceCIDR.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ServiceCIDRList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ServiceCIDRSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ServiceCIDRStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ServiceList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ServicePort.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ServiceSpec.CustomTypeAdapterFactory()); @@ -629,6 +635,8 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3AllocationResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3BasicDevice.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3CELDeviceSelector.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3Counter.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3CounterSet.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3Device.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceAllocationConfiguration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceAllocationResult.CustomTypeAdapterFactory()); @@ -640,9 +648,17 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceClassList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceClassSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceConstraint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceCounterConsumption.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceRequestAllocationResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceSelector.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceSubRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRule.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRuleList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRuleSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaintSelector.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceToleration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3NetworkDeviceData.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3OpaqueDeviceConfiguration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ResourceClaim.CustomTypeAdapterFactory()); @@ -662,6 +678,11 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1AuditAnnotation.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1BasicDevice.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1CELDeviceSelector.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundle.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundleList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundleSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1Counter.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1CounterSet.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1Device.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceAllocationConfiguration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceAllocationResult.CustomTypeAdapterFactory()); @@ -674,13 +695,20 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceClassList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceClassSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceConstraint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceCounterConsumption.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceRequestAllocationResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceSelector.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceSubRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceTaint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceToleration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ExpressionWarning.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1IPAddress.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1IPAddressList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1IPAddressSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1LeaseCandidate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1LeaseCandidateList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1LeaseCandidateSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1MatchCondition.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1MatchResources.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1NamedRuleWithOperations.CustomTypeAdapterFactory()); @@ -701,8 +729,6 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ResourceSlice.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ResourceSliceList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ResourceSliceSpec.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1SelfSubjectReview.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1SelfSubjectReviewStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ServiceCIDR.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ServiceCIDRList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ServiceCIDRSpec.CustomTypeAdapterFactory()); @@ -719,6 +745,45 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1Variable.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1VolumeAttributesClass.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1VolumeAttributesClassList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2AllocatedDeviceStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2AllocationResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2CELDeviceSelector.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2Counter.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2CounterSet.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2Device.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceAllocationConfiguration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceAllocationResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceCapacity.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceClaim.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceClaimConfiguration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceClass.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceClassConfiguration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceClassList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceClassSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceConstraint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceCounterConsumption.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceRequestAllocationResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceSelector.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceSubRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceTaint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceToleration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ExactDeviceRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2NetworkDeviceData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2OpaqueDeviceConfiguration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceClaim.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceClaimConsumerReference.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceClaimList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceClaimSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceClaimStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceClaimTemplate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceClaimTemplateList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceClaimTemplateSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourcePool.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceSlice.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceSliceList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceSliceSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V2ContainerResourceMetricSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V2CrossVersionObjectReference.CustomTypeAdapterFactory()); @@ -809,6 +874,28 @@ public static T deserialize(String body, Type returnType) { } } + /** + * Deserialize the given JSON InputStream to a Java object. + * + * @param Type + * @param inputStream The JSON InputStream + * @param returnType The type to deserialize into + * @return The deserialized Java object + */ + @SuppressWarnings("unchecked") + public static T deserialize(InputStream inputStream, Type returnType) throws IOException { + try (InputStreamReader reader = new InputStreamReader(inputStream, StandardCharsets.UTF_8)) { + if (isLenientOnJson) { + // see https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient(boolean) + JsonReader jsonReader = new JsonReader(reader); + jsonReader.setLenient(true); + return gson.fromJson(jsonReader, returnType); + } else { + return gson.fromJson(reader, returnType); + } + } + } + /** * Gson TypeAdapter for Byte Array type */ @@ -984,7 +1071,7 @@ public java.sql.Date read(JsonReader in) throws IOException { if (dateFormat != null) { return new java.sql.Date(dateFormat.parse(date).getTime()); } - return new java.sql.Date(sdf.parse(date).getTime()); + return new java.sql.Date(ISO8601Utils.parse(date, new ParsePosition(0)).getTime()); } catch (ParseException e) { throw new JsonParseException(e); } @@ -994,7 +1081,7 @@ public java.sql.Date read(JsonReader in) throws IOException { /** * Gson TypeAdapter for java.util.Date type - * If the dateFormat is null, DateTimeFormatter will be used. + * If the dateFormat is null, ISO8601Utils will be used. */ public static class DateTypeAdapter extends TypeAdapter { @@ -1019,7 +1106,7 @@ public void write(JsonWriter out, Date date) throws IOException { if (dateFormat != null) { value = dateFormat.format(date); } else { - value = date.toInstant().atOffset(ZoneOffset.UTC).format(dtf); + value = ISO8601Utils.format(date, true); } out.value(value); } @@ -1038,7 +1125,7 @@ public Date read(JsonReader in) throws IOException { if (dateFormat != null) { return dateFormat.parse(date); } - return sdf.parse(date); + return ISO8601Utils.parse(date, new ParsePosition(0)); } catch (ParseException e) { throw new JsonParseException(e); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java index 67216f62d1..7bd3eefcee 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java @@ -12,7 +12,7 @@ */ package io.kubernetes.client.openapi; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class Pair { private String name = ""; private String value = ""; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java index 312dd19a78..3669228191 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java @@ -17,7 +17,7 @@ /** * Representing a Server configuration. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class ServerConfiguration { public String URL; public String description; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java index 968731b8ad..c99fcf98e7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java @@ -17,7 +17,7 @@ /** * Representing a Server Variable for server URL template substitution. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class ServerVariable { public String description; public String defaultValue; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java index d8c4eab156..bd43105e74 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java @@ -15,7 +15,7 @@ import java.util.Collection; import java.util.Iterator; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationApi.java index b653787870..3b6665ec78 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationApi.java @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1Api.java index 89006aa576..57e7f2999a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1Api.java @@ -82,7 +82,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createMutatingWebhookConfigurationCall(V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingWebhookConfigurationCall(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -147,7 +147,7 @@ private okhttp3.Call createMutatingWebhookConfigurationCall(V1MutatingWebhookCon } @SuppressWarnings("rawtypes") - private okhttp3.Call createMutatingWebhookConfigurationValidateBeforeCall(V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createMutatingWebhookConfiguration(Async)"); @@ -158,13 +158,13 @@ private okhttp3.Call createMutatingWebhookConfigurationValidateBeforeCall(V1Muta } - private ApiResponse createMutatingWebhookConfigurationWithHttpInfo(V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createMutatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createMutatingWebhookConfigurationAsync(V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createMutatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -173,13 +173,18 @@ private okhttp3.Call createMutatingWebhookConfigurationAsync(V1MutatingWebhookCo } public class APIcreateMutatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull private final V1MutatingWebhookConfiguration body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateMutatingWebhookConfigurationRequest(V1MutatingWebhookConfiguration body) { + private APIcreateMutatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body) { this.body = body; } @@ -188,7 +193,7 @@ private APIcreateMutatingWebhookConfigurationRequest(V1MutatingWebhookConfigurat * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateMutatingWebhookConfigurationRequest */ - public APIcreateMutatingWebhookConfigurationRequest pretty(String pretty) { + public APIcreateMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -198,7 +203,7 @@ public APIcreateMutatingWebhookConfigurationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateMutatingWebhookConfigurationRequest */ - public APIcreateMutatingWebhookConfigurationRequest dryRun(String dryRun) { + public APIcreateMutatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -208,7 +213,7 @@ public APIcreateMutatingWebhookConfigurationRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateMutatingWebhookConfigurationRequest */ - public APIcreateMutatingWebhookConfigurationRequest fieldManager(String fieldManager) { + public APIcreateMutatingWebhookConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -218,7 +223,7 @@ public APIcreateMutatingWebhookConfigurationRequest fieldManager(String fieldMan * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateMutatingWebhookConfigurationRequest */ - public APIcreateMutatingWebhookConfigurationRequest fieldValidation(String fieldValidation) { + public APIcreateMutatingWebhookConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -229,7 +234,8 @@ public APIcreateMutatingWebhookConfigurationRequest fieldValidation(String field * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -246,7 +252,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1MutatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -264,7 +271,8 @@ public V1MutatingWebhookConfiguration execute() throws ApiException { * @return ApiResponse<V1MutatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -282,7 +290,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -301,7 +310,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+ @@ -309,10 +319,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateMutatingWebhookConfigurationRequest createMutatingWebhookConfiguration(V1MutatingWebhookConfiguration body) { + public APIcreateMutatingWebhookConfigurationRequest createMutatingWebhookConfiguration(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body) { return new APIcreateMutatingWebhookConfigurationRequest(body); } - private okhttp3.Call createValidatingAdmissionPolicyCall(V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -377,7 +387,7 @@ private okhttp3.Call createValidatingAdmissionPolicyCall(V1ValidatingAdmissionPo } @SuppressWarnings("rawtypes") - private okhttp3.Call createValidatingAdmissionPolicyValidateBeforeCall(V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createValidatingAdmissionPolicy(Async)"); @@ -388,13 +398,13 @@ private okhttp3.Call createValidatingAdmissionPolicyValidateBeforeCall(V1Validat } - private ApiResponse createValidatingAdmissionPolicyWithHttpInfo(V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createValidatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createValidatingAdmissionPolicyAsync(V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createValidatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -403,13 +413,18 @@ private okhttp3.Call createValidatingAdmissionPolicyAsync(V1ValidatingAdmissionP } public class APIcreateValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final V1ValidatingAdmissionPolicy body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateValidatingAdmissionPolicyRequest(V1ValidatingAdmissionPolicy body) { + private APIcreateValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body) { this.body = body; } @@ -418,7 +433,7 @@ private APIcreateValidatingAdmissionPolicyRequest(V1ValidatingAdmissionPolicy bo * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateValidatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIcreateValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -428,7 +443,7 @@ public APIcreateValidatingAdmissionPolicyRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateValidatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIcreateValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -438,7 +453,7 @@ public APIcreateValidatingAdmissionPolicyRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateValidatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest fieldManager(String fieldManager) { + public APIcreateValidatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -448,7 +463,7 @@ public APIcreateValidatingAdmissionPolicyRequest fieldManager(String fieldManage * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateValidatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest fieldValidation(String fieldValidation) { + public APIcreateValidatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -459,7 +474,8 @@ public APIcreateValidatingAdmissionPolicyRequest fieldValidation(String fieldVal * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -476,7 +492,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -494,7 +511,8 @@ public V1ValidatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -512,7 +530,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -531,7 +550,8 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIcreateValidatingAdmissionPolicyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -539,10 +559,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateValidatingAdmissionPolicyRequest createValidatingAdmissionPolicy(V1ValidatingAdmissionPolicy body) { + public APIcreateValidatingAdmissionPolicyRequest createValidatingAdmissionPolicy(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body) { return new APIcreateValidatingAdmissionPolicyRequest(body); } - private okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -607,7 +627,7 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1ValidatingAdmi } @SuppressWarnings("rawtypes") - private okhttp3.Call createValidatingAdmissionPolicyBindingValidateBeforeCall(V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createValidatingAdmissionPolicyBinding(Async)"); @@ -618,13 +638,13 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingValidateBeforeCall(V1 } - private ApiResponse createValidatingAdmissionPolicyBindingWithHttpInfo(V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createValidatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createValidatingAdmissionPolicyBindingAsync(V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createValidatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -633,13 +653,18 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingAsync(V1ValidatingAdm } public class APIcreateValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final V1ValidatingAdmissionPolicyBinding body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateValidatingAdmissionPolicyBindingRequest(V1ValidatingAdmissionPolicyBinding body) { + private APIcreateValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body) { this.body = body; } @@ -648,7 +673,7 @@ private APIcreateValidatingAdmissionPolicyBindingRequest(V1ValidatingAdmissionPo * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateValidatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIcreateValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -658,7 +683,7 @@ public APIcreateValidatingAdmissionPolicyBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateValidatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIcreateValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -668,7 +693,7 @@ public APIcreateValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateValidatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest fieldManager(String fieldManager) { + public APIcreateValidatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -678,7 +703,7 @@ public APIcreateValidatingAdmissionPolicyBindingRequest fieldManager(String fiel * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateValidatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest fieldValidation(String fieldValidation) { + public APIcreateValidatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -689,7 +714,8 @@ public APIcreateValidatingAdmissionPolicyBindingRequest fieldValidation(String f * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -706,7 +732,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -724,7 +751,8 @@ public V1ValidatingAdmissionPolicyBinding execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -742,7 +770,8 @@ public ApiResponse executeWithHttpInfo() thr * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -761,7 +790,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+ @@ -769,10 +799,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateValidatingAdmissionPolicyBindingRequest createValidatingAdmissionPolicyBinding(V1ValidatingAdmissionPolicyBinding body) { + public APIcreateValidatingAdmissionPolicyBindingRequest createValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body) { return new APIcreateValidatingAdmissionPolicyBindingRequest(body); } - private okhttp3.Call createValidatingWebhookConfigurationCall(V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingWebhookConfigurationCall(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -837,7 +867,7 @@ private okhttp3.Call createValidatingWebhookConfigurationCall(V1ValidatingWebhoo } @SuppressWarnings("rawtypes") - private okhttp3.Call createValidatingWebhookConfigurationValidateBeforeCall(V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createValidatingWebhookConfiguration(Async)"); @@ -848,13 +878,13 @@ private okhttp3.Call createValidatingWebhookConfigurationValidateBeforeCall(V1Va } - private ApiResponse createValidatingWebhookConfigurationWithHttpInfo(V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createValidatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createValidatingWebhookConfigurationAsync(V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createValidatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -863,13 +893,18 @@ private okhttp3.Call createValidatingWebhookConfigurationAsync(V1ValidatingWebho } public class APIcreateValidatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull private final V1ValidatingWebhookConfiguration body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateValidatingWebhookConfigurationRequest(V1ValidatingWebhookConfiguration body) { + private APIcreateValidatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body) { this.body = body; } @@ -878,7 +913,7 @@ private APIcreateValidatingWebhookConfigurationRequest(V1ValidatingWebhookConfig * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateValidatingWebhookConfigurationRequest */ - public APIcreateValidatingWebhookConfigurationRequest pretty(String pretty) { + public APIcreateValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -888,7 +923,7 @@ public APIcreateValidatingWebhookConfigurationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateValidatingWebhookConfigurationRequest */ - public APIcreateValidatingWebhookConfigurationRequest dryRun(String dryRun) { + public APIcreateValidatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -898,7 +933,7 @@ public APIcreateValidatingWebhookConfigurationRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateValidatingWebhookConfigurationRequest */ - public APIcreateValidatingWebhookConfigurationRequest fieldManager(String fieldManager) { + public APIcreateValidatingWebhookConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -908,7 +943,7 @@ public APIcreateValidatingWebhookConfigurationRequest fieldManager(String fieldM * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateValidatingWebhookConfigurationRequest */ - public APIcreateValidatingWebhookConfigurationRequest fieldValidation(String fieldValidation) { + public APIcreateValidatingWebhookConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -919,7 +954,8 @@ public APIcreateValidatingWebhookConfigurationRequest fieldValidation(String fie * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -936,7 +972,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -954,7 +991,8 @@ public V1ValidatingWebhookConfiguration execute() throws ApiException { * @return ApiResponse<V1ValidatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -972,7 +1010,8 @@ public ApiResponse executeWithHttpInfo() throw * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -991,7 +1030,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+ @@ -999,10 +1039,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateValidatingWebhookConfigurationRequest createValidatingWebhookConfiguration(V1ValidatingWebhookConfiguration body) { + public APIcreateValidatingWebhookConfigurationRequest createValidatingWebhookConfiguration(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body) { return new APIcreateValidatingWebhookConfigurationRequest(body); } - private okhttp3.Call deleteCollectionMutatingWebhookConfigurationCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingWebhookConfigurationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1107,19 +1147,19 @@ private okhttp3.Call deleteCollectionMutatingWebhookConfigurationCall(String pre } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionMutatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionMutatingWebhookConfigurationWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionMutatingWebhookConfigurationAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingWebhookConfigurationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1128,20 +1168,35 @@ private okhttp3.Call deleteCollectionMutatingWebhookConfigurationAsync(String pr } public class APIdeleteCollectionMutatingWebhookConfigurationRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionMutatingWebhookConfigurationRequest() { @@ -1152,7 +1207,7 @@ private APIdeleteCollectionMutatingWebhookConfigurationRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest pretty(String pretty) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1162,7 +1217,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest pretty(String pret * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest _continue(String _continue) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1172,7 +1227,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest _continue(String _ * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest dryRun(String dryRun) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1182,7 +1237,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest dryRun(String dryR * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1192,7 +1247,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest fieldSelector(Stri * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1202,7 +1257,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest gracePeriodSeconds * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1212,7 +1267,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest ignoreStoreReadErr * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest labelSelector(String labelSelector) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1222,7 +1277,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest labelSelector(Stri * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest limit(Integer limit) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1232,7 +1287,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest limit(Integer limi * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1242,7 +1297,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest orphanDependents(B * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1252,7 +1307,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest propagationPolicy( * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1262,7 +1317,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest resourceVersion(St * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1272,7 +1327,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest resourceVersionMat * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1282,7 +1337,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest sendInitialEvents( * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1292,7 +1347,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest timeoutSeconds(Int * @param body (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest body(V1DeleteOptions body) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1303,7 +1358,8 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest body(V1DeleteOptio * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1318,7 +1374,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1334,7 +1391,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1350,7 +1408,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1366,7 +1425,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of MutatingWebhookConfiguration * @return APIdeleteCollectionMutatingWebhookConfigurationRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1375,7 +1435,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionMutatingWebhookConfigurationRequest deleteCollectionMutatingWebhookConfiguration() { return new APIdeleteCollectionMutatingWebhookConfigurationRequest(); } - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1480,19 +1540,19 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionValidatingAdmissionPolicyWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1501,20 +1561,35 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyAsync(String prett } public class APIdeleteCollectionValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionValidatingAdmissionPolicyRequest() { @@ -1525,7 +1600,7 @@ private APIdeleteCollectionValidatingAdmissionPolicyRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1535,7 +1610,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest pretty(String pretty) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest _continue(String _continue) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1545,7 +1620,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest _continue(String _con * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1555,7 +1630,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest dryRun(String dryRun) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1565,7 +1640,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest fieldSelector(String * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1575,7 +1650,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest gracePeriodSeconds(In * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1585,7 +1660,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest ignoreStoreReadErrorW * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest labelSelector(String labelSelector) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1595,7 +1670,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest labelSelector(String * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest limit(Integer limit) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1605,7 +1680,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest limit(Integer limit) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1615,7 +1690,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest orphanDependents(Bool * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1625,7 +1700,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest propagationPolicy(Str * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1635,7 +1710,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersion(Strin * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1645,7 +1720,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersionMatch( * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1655,7 +1730,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest sendInitialEvents(Boo * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1665,7 +1740,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest timeoutSeconds(Intege * @param body (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest body(V1DeleteOptions body) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1676,7 +1751,8 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest body(V1DeleteOptions * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1691,7 +1767,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1707,7 +1784,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1723,7 +1801,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1739,7 +1818,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of ValidatingAdmissionPolicy * @return APIdeleteCollectionValidatingAdmissionPolicyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1748,7 +1828,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionValidatingAdmissionPolicyRequest deleteCollectionValidatingAdmissionPolicy() { return new APIdeleteCollectionValidatingAdmissionPolicyRequest(); } - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1853,19 +1933,19 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1874,20 +1954,35 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingAsync(Strin } public class APIdeleteCollectionValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionValidatingAdmissionPolicyBindingRequest() { @@ -1898,7 +1993,7 @@ private APIdeleteCollectionValidatingAdmissionPolicyBindingRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1908,7 +2003,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest pretty(String * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest _continue(String _continue) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1918,7 +2013,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest _continue(Stri * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1928,7 +2023,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest dryRun(String * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1938,7 +2033,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest fieldSelector( * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1948,7 +2043,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest gracePeriodSec * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1958,7 +2053,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest ignoreStoreRea * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest labelSelector(String labelSelector) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1968,7 +2063,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest labelSelector( * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest limit(Integer limit) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1978,7 +2073,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest limit(Integer * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1988,7 +2083,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest orphanDependen * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1998,7 +2093,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest propagationPol * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2008,7 +2103,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersio * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2018,7 +2113,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersio * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2028,7 +2123,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest sendInitialEve * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2038,7 +2133,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest timeoutSeconds * @param body (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest body(V1DeleteOptions body) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -2049,7 +2144,8 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest body(V1DeleteO * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2064,7 +2160,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2080,7 +2177,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2096,7 +2194,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2112,7 +2211,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of ValidatingAdmissionPolicyBinding * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2121,7 +2221,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest deleteCollectionValidatingAdmissionPolicyBinding() { return new APIdeleteCollectionValidatingAdmissionPolicyBindingRequest(); } - private okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2226,19 +2326,19 @@ private okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(String p } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionValidatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionValidatingWebhookConfigurationWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionValidatingWebhookConfigurationAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionValidatingWebhookConfigurationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2247,20 +2347,35 @@ private okhttp3.Call deleteCollectionValidatingWebhookConfigurationAsync(String } public class APIdeleteCollectionValidatingWebhookConfigurationRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionValidatingWebhookConfigurationRequest() { @@ -2271,7 +2386,7 @@ private APIdeleteCollectionValidatingWebhookConfigurationRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest pretty(String pretty) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2281,7 +2396,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest pretty(String pr * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest _continue(String _continue) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2291,7 +2406,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest _continue(String * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest dryRun(String dryRun) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2301,7 +2416,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest dryRun(String dr * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2311,7 +2426,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest fieldSelector(St * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2321,7 +2436,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest gracePeriodSecon * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -2331,7 +2446,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest ignoreStoreReadE * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest labelSelector(String labelSelector) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2341,7 +2456,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest labelSelector(St * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest limit(Integer limit) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2351,7 +2466,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest limit(Integer li * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2361,7 +2476,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest orphanDependents * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2371,7 +2486,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest propagationPolic * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2381,7 +2496,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest resourceVersion( * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2391,7 +2506,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest resourceVersionM * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2401,7 +2516,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest sendInitialEvent * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2411,7 +2526,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest timeoutSeconds(I * @param body (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest body(V1DeleteOptions body) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -2422,7 +2537,8 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest body(V1DeleteOpt * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2437,7 +2553,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2453,7 +2570,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2469,7 +2587,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2485,7 +2604,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of ValidatingWebhookConfiguration * @return APIdeleteCollectionValidatingWebhookConfigurationRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2494,7 +2614,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionValidatingWebhookConfigurationRequest deleteCollectionValidatingWebhookConfiguration() { return new APIdeleteCollectionValidatingWebhookConfigurationRequest(); } - private okhttp3.Call deleteMutatingWebhookConfigurationCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2568,7 +2688,7 @@ private okhttp3.Call deleteMutatingWebhookConfigurationCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteMutatingWebhookConfigurationValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteMutatingWebhookConfiguration(Async)"); @@ -2579,13 +2699,13 @@ private okhttp3.Call deleteMutatingWebhookConfigurationValidateBeforeCall(String } - private ApiResponse deleteMutatingWebhookConfigurationWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteMutatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteMutatingWebhookConfigurationAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteMutatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2594,16 +2714,24 @@ private okhttp3.Call deleteMutatingWebhookConfigurationAsync(String name, String } public class APIdeleteMutatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteMutatingWebhookConfigurationRequest(String name) { + private APIdeleteMutatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -2612,7 +2740,7 @@ private APIdeleteMutatingWebhookConfigurationRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteMutatingWebhookConfigurationRequest */ - public APIdeleteMutatingWebhookConfigurationRequest pretty(String pretty) { + public APIdeleteMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2622,7 +2750,7 @@ public APIdeleteMutatingWebhookConfigurationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteMutatingWebhookConfigurationRequest */ - public APIdeleteMutatingWebhookConfigurationRequest dryRun(String dryRun) { + public APIdeleteMutatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2632,7 +2760,7 @@ public APIdeleteMutatingWebhookConfigurationRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteMutatingWebhookConfigurationRequest */ - public APIdeleteMutatingWebhookConfigurationRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteMutatingWebhookConfigurationRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2642,7 +2770,7 @@ public APIdeleteMutatingWebhookConfigurationRequest gracePeriodSeconds(Integer g * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteMutatingWebhookConfigurationRequest */ - public APIdeleteMutatingWebhookConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteMutatingWebhookConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -2652,7 +2780,7 @@ public APIdeleteMutatingWebhookConfigurationRequest ignoreStoreReadErrorWithClus * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteMutatingWebhookConfigurationRequest */ - public APIdeleteMutatingWebhookConfigurationRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteMutatingWebhookConfigurationRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2662,7 +2790,7 @@ public APIdeleteMutatingWebhookConfigurationRequest orphanDependents(Boolean orp * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteMutatingWebhookConfigurationRequest */ - public APIdeleteMutatingWebhookConfigurationRequest propagationPolicy(String propagationPolicy) { + public APIdeleteMutatingWebhookConfigurationRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2672,7 +2800,7 @@ public APIdeleteMutatingWebhookConfigurationRequest propagationPolicy(String pro * @param body (optional) * @return APIdeleteMutatingWebhookConfigurationRequest */ - public APIdeleteMutatingWebhookConfigurationRequest body(V1DeleteOptions body) { + public APIdeleteMutatingWebhookConfigurationRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -2683,7 +2811,8 @@ public APIdeleteMutatingWebhookConfigurationRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2699,7 +2828,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -2716,7 +2846,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -2733,7 +2864,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -2751,17 +2883,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the MutatingWebhookConfiguration (required) * @return APIdeleteMutatingWebhookConfigurationRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteMutatingWebhookConfigurationRequest deleteMutatingWebhookConfiguration(String name) { + public APIdeleteMutatingWebhookConfigurationRequest deleteMutatingWebhookConfiguration(@jakarta.annotation.Nonnull String name) { return new APIdeleteMutatingWebhookConfigurationRequest(name); } - private okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2835,7 +2968,7 @@ private okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pre } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteValidatingAdmissionPolicyValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingAdmissionPolicy(Async)"); @@ -2846,13 +2979,13 @@ private okhttp3.Call deleteValidatingAdmissionPolicyValidateBeforeCall(String na } - private ApiResponse deleteValidatingAdmissionPolicyWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteValidatingAdmissionPolicyAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2861,16 +2994,24 @@ private okhttp3.Call deleteValidatingAdmissionPolicyAsync(String name, String pr } public class APIdeleteValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteValidatingAdmissionPolicyRequest(String name) { + private APIdeleteValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -2879,7 +3020,7 @@ private APIdeleteValidatingAdmissionPolicyRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteValidatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIdeleteValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2889,7 +3030,7 @@ public APIdeleteValidatingAdmissionPolicyRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteValidatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIdeleteValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2899,7 +3040,7 @@ public APIdeleteValidatingAdmissionPolicyRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteValidatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteValidatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2909,7 +3050,7 @@ public APIdeleteValidatingAdmissionPolicyRequest gracePeriodSeconds(Integer grac * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteValidatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteValidatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -2919,7 +3060,7 @@ public APIdeleteValidatingAdmissionPolicyRequest ignoreStoreReadErrorWithCluster * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteValidatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteValidatingAdmissionPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2929,7 +3070,7 @@ public APIdeleteValidatingAdmissionPolicyRequest orphanDependents(Boolean orphan * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteValidatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest propagationPolicy(String propagationPolicy) { + public APIdeleteValidatingAdmissionPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2939,7 +3080,7 @@ public APIdeleteValidatingAdmissionPolicyRequest propagationPolicy(String propag * @param body (optional) * @return APIdeleteValidatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest body(V1DeleteOptions body) { + public APIdeleteValidatingAdmissionPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -2950,7 +3091,8 @@ public APIdeleteValidatingAdmissionPolicyRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2966,7 +3108,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -2983,7 +3126,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3000,7 +3144,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3018,17 +3163,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the ValidatingAdmissionPolicy (required) * @return APIdeleteValidatingAdmissionPolicyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteValidatingAdmissionPolicyRequest deleteValidatingAdmissionPolicy(String name) { + public APIdeleteValidatingAdmissionPolicyRequest deleteValidatingAdmissionPolicy(@jakarta.annotation.Nonnull String name) { return new APIdeleteValidatingAdmissionPolicyRequest(name); } - private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3102,7 +3248,7 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteValidatingAdmissionPolicyBindingValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingAdmissionPolicyBinding(Async)"); @@ -3113,13 +3259,13 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingValidateBeforeCall(St } - private ApiResponse deleteValidatingAdmissionPolicyBindingWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteValidatingAdmissionPolicyBindingAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3128,16 +3274,24 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingAsync(String name, St } public class APIdeleteValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteValidatingAdmissionPolicyBindingRequest(String name) { + private APIdeleteValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -3146,7 +3300,7 @@ private APIdeleteValidatingAdmissionPolicyBindingRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIdeleteValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3156,7 +3310,7 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIdeleteValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3166,7 +3320,7 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -3176,7 +3330,7 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(Integ * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteValidatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -3186,7 +3340,7 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWith * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteValidatingAdmissionPolicyBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3196,7 +3350,7 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest orphanDependents(Boolean * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest propagationPolicy(String propagationPolicy) { + public APIdeleteValidatingAdmissionPolicyBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3206,7 +3360,7 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest propagationPolicy(String * @param body (optional) * @return APIdeleteValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest body(V1DeleteOptions body) { + public APIdeleteValidatingAdmissionPolicyBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -3217,7 +3371,8 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest body(V1DeleteOptions bod * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3233,7 +3388,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3250,7 +3406,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3267,7 +3424,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3285,17 +3443,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the ValidatingAdmissionPolicyBinding (required) * @return APIdeleteValidatingAdmissionPolicyBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteValidatingAdmissionPolicyBindingRequest deleteValidatingAdmissionPolicyBinding(String name) { + public APIdeleteValidatingAdmissionPolicyBindingRequest deleteValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name) { return new APIdeleteValidatingAdmissionPolicyBindingRequest(name); } - private okhttp3.Call deleteValidatingWebhookConfigurationCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3369,7 +3528,7 @@ private okhttp3.Call deleteValidatingWebhookConfigurationCall(String name, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteValidatingWebhookConfigurationValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingWebhookConfiguration(Async)"); @@ -3380,13 +3539,13 @@ private okhttp3.Call deleteValidatingWebhookConfigurationValidateBeforeCall(Stri } - private ApiResponse deleteValidatingWebhookConfigurationWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteValidatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteValidatingWebhookConfigurationAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteValidatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3395,16 +3554,24 @@ private okhttp3.Call deleteValidatingWebhookConfigurationAsync(String name, Stri } public class APIdeleteValidatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteValidatingWebhookConfigurationRequest(String name) { + private APIdeleteValidatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -3413,7 +3580,7 @@ private APIdeleteValidatingWebhookConfigurationRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteValidatingWebhookConfigurationRequest */ - public APIdeleteValidatingWebhookConfigurationRequest pretty(String pretty) { + public APIdeleteValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3423,7 +3590,7 @@ public APIdeleteValidatingWebhookConfigurationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteValidatingWebhookConfigurationRequest */ - public APIdeleteValidatingWebhookConfigurationRequest dryRun(String dryRun) { + public APIdeleteValidatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3433,7 +3600,7 @@ public APIdeleteValidatingWebhookConfigurationRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteValidatingWebhookConfigurationRequest */ - public APIdeleteValidatingWebhookConfigurationRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteValidatingWebhookConfigurationRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -3443,7 +3610,7 @@ public APIdeleteValidatingWebhookConfigurationRequest gracePeriodSeconds(Integer * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteValidatingWebhookConfigurationRequest */ - public APIdeleteValidatingWebhookConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteValidatingWebhookConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -3453,7 +3620,7 @@ public APIdeleteValidatingWebhookConfigurationRequest ignoreStoreReadErrorWithCl * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteValidatingWebhookConfigurationRequest */ - public APIdeleteValidatingWebhookConfigurationRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteValidatingWebhookConfigurationRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3463,7 +3630,7 @@ public APIdeleteValidatingWebhookConfigurationRequest orphanDependents(Boolean o * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteValidatingWebhookConfigurationRequest */ - public APIdeleteValidatingWebhookConfigurationRequest propagationPolicy(String propagationPolicy) { + public APIdeleteValidatingWebhookConfigurationRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3473,7 +3640,7 @@ public APIdeleteValidatingWebhookConfigurationRequest propagationPolicy(String p * @param body (optional) * @return APIdeleteValidatingWebhookConfigurationRequest */ - public APIdeleteValidatingWebhookConfigurationRequest body(V1DeleteOptions body) { + public APIdeleteValidatingWebhookConfigurationRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -3484,7 +3651,8 @@ public APIdeleteValidatingWebhookConfigurationRequest body(V1DeleteOptions body) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3500,7 +3668,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3517,7 +3686,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3534,7 +3704,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3552,14 +3723,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the ValidatingWebhookConfiguration (required) * @return APIdeleteValidatingWebhookConfigurationRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteValidatingWebhookConfigurationRequest deleteValidatingWebhookConfiguration(String name) { + public APIdeleteValidatingWebhookConfigurationRequest deleteValidatingWebhookConfiguration(@jakarta.annotation.Nonnull String name) { return new APIdeleteValidatingWebhookConfigurationRequest(name); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -3641,7 +3813,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3656,7 +3829,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3672,7 +3846,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3688,7 +3863,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3704,7 +3880,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3713,7 +3890,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listMutatingWebhookConfigurationCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingWebhookConfigurationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3808,19 +3985,19 @@ private okhttp3.Call listMutatingWebhookConfigurationCall(String pretty, Boolean } @SuppressWarnings("rawtypes") - private okhttp3.Call listMutatingWebhookConfigurationValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listMutatingWebhookConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listMutatingWebhookConfigurationWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listMutatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listMutatingWebhookConfigurationAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingWebhookConfigurationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listMutatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3829,16 +4006,27 @@ private okhttp3.Call listMutatingWebhookConfigurationAsync(String pretty, Boolea } public class APIlistMutatingWebhookConfigurationRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistMutatingWebhookConfigurationRequest() { @@ -3849,7 +4037,7 @@ private APIlistMutatingWebhookConfigurationRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest pretty(String pretty) { + public APIlistMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3859,7 +4047,7 @@ public APIlistMutatingWebhookConfigurationRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistMutatingWebhookConfigurationRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -3869,7 +4057,7 @@ public APIlistMutatingWebhookConfigurationRequest allowWatchBookmarks(Boolean al * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest _continue(String _continue) { + public APIlistMutatingWebhookConfigurationRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -3879,7 +4067,7 @@ public APIlistMutatingWebhookConfigurationRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest fieldSelector(String fieldSelector) { + public APIlistMutatingWebhookConfigurationRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -3889,7 +4077,7 @@ public APIlistMutatingWebhookConfigurationRequest fieldSelector(String fieldSele * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest labelSelector(String labelSelector) { + public APIlistMutatingWebhookConfigurationRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -3899,7 +4087,7 @@ public APIlistMutatingWebhookConfigurationRequest labelSelector(String labelSele * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest limit(Integer limit) { + public APIlistMutatingWebhookConfigurationRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -3909,7 +4097,7 @@ public APIlistMutatingWebhookConfigurationRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest resourceVersion(String resourceVersion) { + public APIlistMutatingWebhookConfigurationRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -3919,7 +4107,7 @@ public APIlistMutatingWebhookConfigurationRequest resourceVersion(String resourc * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistMutatingWebhookConfigurationRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -3929,7 +4117,7 @@ public APIlistMutatingWebhookConfigurationRequest resourceVersionMatch(String re * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistMutatingWebhookConfigurationRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -3939,7 +4127,7 @@ public APIlistMutatingWebhookConfigurationRequest sendInitialEvents(Boolean send * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistMutatingWebhookConfigurationRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -3949,7 +4137,7 @@ public APIlistMutatingWebhookConfigurationRequest timeoutSeconds(Integer timeout * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest watch(Boolean watch) { + public APIlistMutatingWebhookConfigurationRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -3960,7 +4148,8 @@ public APIlistMutatingWebhookConfigurationRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3975,7 +4164,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1MutatingWebhookConfigurationList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3991,7 +4181,8 @@ public V1MutatingWebhookConfigurationList execute() throws ApiException { * @return ApiResponse<V1MutatingWebhookConfigurationList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4007,7 +4198,8 @@ public ApiResponse executeWithHttpInfo() thr * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4023,7 +4215,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -4032,7 +4225,7 @@ public okhttp3.Call executeAsync(final ApiCallback listValidatingAdmissionPolicyWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listValidatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listValidatingAdmissionPolicyAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listValidatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listValidatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4148,16 +4341,27 @@ private okhttp3.Call listValidatingAdmissionPolicyAsync(String pretty, Boolean a } public class APIlistValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistValidatingAdmissionPolicyRequest() { @@ -4168,7 +4372,7 @@ private APIlistValidatingAdmissionPolicyRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIlistValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4178,7 +4382,7 @@ public APIlistValidatingAdmissionPolicyRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistValidatingAdmissionPolicyRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -4188,7 +4392,7 @@ public APIlistValidatingAdmissionPolicyRequest allowWatchBookmarks(Boolean allow * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest _continue(String _continue) { + public APIlistValidatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -4198,7 +4402,7 @@ public APIlistValidatingAdmissionPolicyRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest fieldSelector(String fieldSelector) { + public APIlistValidatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -4208,7 +4412,7 @@ public APIlistValidatingAdmissionPolicyRequest fieldSelector(String fieldSelecto * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest labelSelector(String labelSelector) { + public APIlistValidatingAdmissionPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -4218,7 +4422,7 @@ public APIlistValidatingAdmissionPolicyRequest labelSelector(String labelSelecto * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest limit(Integer limit) { + public APIlistValidatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -4228,7 +4432,7 @@ public APIlistValidatingAdmissionPolicyRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest resourceVersion(String resourceVersion) { + public APIlistValidatingAdmissionPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -4238,7 +4442,7 @@ public APIlistValidatingAdmissionPolicyRequest resourceVersion(String resourceVe * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistValidatingAdmissionPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -4248,7 +4452,7 @@ public APIlistValidatingAdmissionPolicyRequest resourceVersionMatch(String resou * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistValidatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -4258,7 +4462,7 @@ public APIlistValidatingAdmissionPolicyRequest sendInitialEvents(Boolean sendIni * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistValidatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4268,7 +4472,7 @@ public APIlistValidatingAdmissionPolicyRequest timeoutSeconds(Integer timeoutSec * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest watch(Boolean watch) { + public APIlistValidatingAdmissionPolicyRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -4279,7 +4483,8 @@ public APIlistValidatingAdmissionPolicyRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4294,7 +4499,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicyList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4310,7 +4516,8 @@ public V1ValidatingAdmissionPolicyList execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicyList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4326,7 +4533,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4342,7 +4550,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -4351,7 +4560,7 @@ public okhttp3.Call executeAsync(final ApiCallback listValidatingAdmissionPolicyBindingWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listValidatingAdmissionPolicyBindingAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4467,16 +4676,27 @@ private okhttp3.Call listValidatingAdmissionPolicyBindingAsync(String pretty, Bo } public class APIlistValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistValidatingAdmissionPolicyBindingRequest() { @@ -4487,7 +4707,7 @@ private APIlistValidatingAdmissionPolicyBindingRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIlistValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4497,7 +4717,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistValidatingAdmissionPolicyBindingRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -4507,7 +4727,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest allowWatchBookmarks(Boolea * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest _continue(String _continue) { + public APIlistValidatingAdmissionPolicyBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -4517,7 +4737,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest _continue(String _continue * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest fieldSelector(String fieldSelector) { + public APIlistValidatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -4527,7 +4747,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest fieldSelector(String field * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest labelSelector(String labelSelector) { + public APIlistValidatingAdmissionPolicyBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -4537,7 +4757,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest labelSelector(String label * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest limit(Integer limit) { + public APIlistValidatingAdmissionPolicyBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -4547,7 +4767,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest resourceVersion(String resourceVersion) { + public APIlistValidatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -4557,7 +4777,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest resourceVersion(String res * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistValidatingAdmissionPolicyBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -4567,7 +4787,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest resourceVersionMatch(Strin * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistValidatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -4577,7 +4797,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest sendInitialEvents(Boolean * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistValidatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4587,7 +4807,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest timeoutSeconds(Integer tim * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest watch(Boolean watch) { + public APIlistValidatingAdmissionPolicyBindingRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -4598,7 +4818,8 @@ public APIlistValidatingAdmissionPolicyBindingRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4613,7 +4834,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicyBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4629,7 +4851,8 @@ public V1ValidatingAdmissionPolicyBindingList execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicyBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4645,7 +4868,8 @@ public ApiResponse executeWithHttpInfo() * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4661,7 +4885,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -4670,7 +4895,7 @@ public okhttp3.Call executeAsync(final ApiCallback listValidatingWebhookConfigurationWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listValidatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listValidatingWebhookConfigurationAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listValidatingWebhookConfigurationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listValidatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4786,16 +5011,27 @@ private okhttp3.Call listValidatingWebhookConfigurationAsync(String pretty, Bool } public class APIlistValidatingWebhookConfigurationRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistValidatingWebhookConfigurationRequest() { @@ -4806,7 +5042,7 @@ private APIlistValidatingWebhookConfigurationRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistValidatingWebhookConfigurationRequest */ - public APIlistValidatingWebhookConfigurationRequest pretty(String pretty) { + public APIlistValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4816,7 +5052,7 @@ public APIlistValidatingWebhookConfigurationRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistValidatingWebhookConfigurationRequest */ - public APIlistValidatingWebhookConfigurationRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistValidatingWebhookConfigurationRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -4826,7 +5062,7 @@ public APIlistValidatingWebhookConfigurationRequest allowWatchBookmarks(Boolean * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistValidatingWebhookConfigurationRequest */ - public APIlistValidatingWebhookConfigurationRequest _continue(String _continue) { + public APIlistValidatingWebhookConfigurationRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -4836,7 +5072,7 @@ public APIlistValidatingWebhookConfigurationRequest _continue(String _continue) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistValidatingWebhookConfigurationRequest */ - public APIlistValidatingWebhookConfigurationRequest fieldSelector(String fieldSelector) { + public APIlistValidatingWebhookConfigurationRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -4846,7 +5082,7 @@ public APIlistValidatingWebhookConfigurationRequest fieldSelector(String fieldSe * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistValidatingWebhookConfigurationRequest */ - public APIlistValidatingWebhookConfigurationRequest labelSelector(String labelSelector) { + public APIlistValidatingWebhookConfigurationRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -4856,7 +5092,7 @@ public APIlistValidatingWebhookConfigurationRequest labelSelector(String labelSe * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistValidatingWebhookConfigurationRequest */ - public APIlistValidatingWebhookConfigurationRequest limit(Integer limit) { + public APIlistValidatingWebhookConfigurationRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -4866,7 +5102,7 @@ public APIlistValidatingWebhookConfigurationRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistValidatingWebhookConfigurationRequest */ - public APIlistValidatingWebhookConfigurationRequest resourceVersion(String resourceVersion) { + public APIlistValidatingWebhookConfigurationRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -4876,7 +5112,7 @@ public APIlistValidatingWebhookConfigurationRequest resourceVersion(String resou * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistValidatingWebhookConfigurationRequest */ - public APIlistValidatingWebhookConfigurationRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistValidatingWebhookConfigurationRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -4886,7 +5122,7 @@ public APIlistValidatingWebhookConfigurationRequest resourceVersionMatch(String * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistValidatingWebhookConfigurationRequest */ - public APIlistValidatingWebhookConfigurationRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistValidatingWebhookConfigurationRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -4896,7 +5132,7 @@ public APIlistValidatingWebhookConfigurationRequest sendInitialEvents(Boolean se * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistValidatingWebhookConfigurationRequest */ - public APIlistValidatingWebhookConfigurationRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistValidatingWebhookConfigurationRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4906,7 +5142,7 @@ public APIlistValidatingWebhookConfigurationRequest timeoutSeconds(Integer timeo * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistValidatingWebhookConfigurationRequest */ - public APIlistValidatingWebhookConfigurationRequest watch(Boolean watch) { + public APIlistValidatingWebhookConfigurationRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -4917,7 +5153,8 @@ public APIlistValidatingWebhookConfigurationRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4932,7 +5169,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingWebhookConfigurationList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4948,7 +5186,8 @@ public V1ValidatingWebhookConfigurationList execute() throws ApiException { * @return ApiResponse<V1ValidatingWebhookConfigurationList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4964,7 +5203,8 @@ public ApiResponse executeWithHttpInfo() t * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4980,7 +5220,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -4989,7 +5230,7 @@ public okhttp3.Call executeAsync(final ApiCallback patchMutatingWebhookConfigurationWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchMutatingWebhookConfigurationAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5090,15 +5331,22 @@ private okhttp3.Call patchMutatingWebhookConfigurationAsync(String name, V1Patch } public class APIpatchMutatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchMutatingWebhookConfigurationRequest(String name, V1Patch body) { + private APIpatchMutatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -5108,7 +5356,7 @@ private APIpatchMutatingWebhookConfigurationRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchMutatingWebhookConfigurationRequest */ - public APIpatchMutatingWebhookConfigurationRequest pretty(String pretty) { + public APIpatchMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5118,7 +5366,7 @@ public APIpatchMutatingWebhookConfigurationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchMutatingWebhookConfigurationRequest */ - public APIpatchMutatingWebhookConfigurationRequest dryRun(String dryRun) { + public APIpatchMutatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -5128,7 +5376,7 @@ public APIpatchMutatingWebhookConfigurationRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchMutatingWebhookConfigurationRequest */ - public APIpatchMutatingWebhookConfigurationRequest fieldManager(String fieldManager) { + public APIpatchMutatingWebhookConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -5138,7 +5386,7 @@ public APIpatchMutatingWebhookConfigurationRequest fieldManager(String fieldMana * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchMutatingWebhookConfigurationRequest */ - public APIpatchMutatingWebhookConfigurationRequest fieldValidation(String fieldValidation) { + public APIpatchMutatingWebhookConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -5148,7 +5396,7 @@ public APIpatchMutatingWebhookConfigurationRequest fieldValidation(String fieldV * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchMutatingWebhookConfigurationRequest */ - public APIpatchMutatingWebhookConfigurationRequest force(Boolean force) { + public APIpatchMutatingWebhookConfigurationRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -5159,7 +5407,8 @@ public APIpatchMutatingWebhookConfigurationRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5175,7 +5424,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1MutatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5192,7 +5442,8 @@ public V1MutatingWebhookConfiguration execute() throws ApiException { * @return ApiResponse<V1MutatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5209,7 +5460,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5228,17 +5480,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchMutatingWebhookConfigurationRequest patchMutatingWebhookConfiguration(String name, V1Patch body) { + public APIpatchMutatingWebhookConfigurationRequest patchMutatingWebhookConfiguration(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchMutatingWebhookConfigurationRequest(name, body); } - private okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5308,7 +5561,7 @@ private okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch bod } @SuppressWarnings("rawtypes") - private okhttp3.Call patchValidatingAdmissionPolicyValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicy(Async)"); @@ -5324,13 +5577,13 @@ private okhttp3.Call patchValidatingAdmissionPolicyValidateBeforeCall(String nam } - private ApiResponse patchValidatingAdmissionPolicyWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchValidatingAdmissionPolicyAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5339,15 +5592,22 @@ private okhttp3.Call patchValidatingAdmissionPolicyAsync(String name, V1Patch bo } public class APIpatchValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchValidatingAdmissionPolicyRequest(String name, V1Patch body) { + private APIpatchValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -5357,7 +5617,7 @@ private APIpatchValidatingAdmissionPolicyRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchValidatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIpatchValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5367,7 +5627,7 @@ public APIpatchValidatingAdmissionPolicyRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchValidatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIpatchValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -5377,7 +5637,7 @@ public APIpatchValidatingAdmissionPolicyRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchValidatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest fieldManager(String fieldManager) { + public APIpatchValidatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -5387,7 +5647,7 @@ public APIpatchValidatingAdmissionPolicyRequest fieldManager(String fieldManager * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchValidatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest fieldValidation(String fieldValidation) { + public APIpatchValidatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -5397,7 +5657,7 @@ public APIpatchValidatingAdmissionPolicyRequest fieldValidation(String fieldVali * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchValidatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest force(Boolean force) { + public APIpatchValidatingAdmissionPolicyRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -5408,7 +5668,8 @@ public APIpatchValidatingAdmissionPolicyRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5424,7 +5685,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5441,7 +5703,8 @@ public V1ValidatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5458,7 +5721,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5477,17 +5741,18 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIpatchValidatingAdmissionPolicyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchValidatingAdmissionPolicyRequest patchValidatingAdmissionPolicy(String name, V1Patch body) { + public APIpatchValidatingAdmissionPolicyRequest patchValidatingAdmissionPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchValidatingAdmissionPolicyRequest(name, body); } - private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5557,7 +5822,7 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Pa } @SuppressWarnings("rawtypes") - private okhttp3.Call patchValidatingAdmissionPolicyBindingValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicyBinding(Async)"); @@ -5573,13 +5838,13 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingValidateBeforeCall(Str } - private ApiResponse patchValidatingAdmissionPolicyBindingWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchValidatingAdmissionPolicyBindingAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5588,15 +5853,22 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingAsync(String name, V1P } public class APIpatchValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchValidatingAdmissionPolicyBindingRequest(String name, V1Patch body) { + private APIpatchValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -5606,7 +5878,7 @@ private APIpatchValidatingAdmissionPolicyBindingRequest(String name, V1Patch bod * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchValidatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIpatchValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5616,7 +5888,7 @@ public APIpatchValidatingAdmissionPolicyBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchValidatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIpatchValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -5626,7 +5898,7 @@ public APIpatchValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchValidatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest fieldManager(String fieldManager) { + public APIpatchValidatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -5636,7 +5908,7 @@ public APIpatchValidatingAdmissionPolicyBindingRequest fieldManager(String field * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchValidatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest fieldValidation(String fieldValidation) { + public APIpatchValidatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -5646,7 +5918,7 @@ public APIpatchValidatingAdmissionPolicyBindingRequest fieldValidation(String fi * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchValidatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest force(Boolean force) { + public APIpatchValidatingAdmissionPolicyBindingRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -5657,7 +5929,8 @@ public APIpatchValidatingAdmissionPolicyBindingRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5673,7 +5946,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5690,7 +5964,8 @@ public V1ValidatingAdmissionPolicyBinding execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5707,7 +5982,8 @@ public ApiResponse executeWithHttpInfo() thr * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5726,17 +6002,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchValidatingAdmissionPolicyBindingRequest patchValidatingAdmissionPolicyBinding(String name, V1Patch body) { + public APIpatchValidatingAdmissionPolicyBindingRequest patchValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchValidatingAdmissionPolicyBindingRequest(name, body); } - private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5806,7 +6083,7 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Pat } @SuppressWarnings("rawtypes") - private okhttp3.Call patchValidatingAdmissionPolicyStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicyStatus(Async)"); @@ -5822,13 +6099,13 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusValidateBeforeCall(Stri } - private ApiResponse patchValidatingAdmissionPolicyStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchValidatingAdmissionPolicyStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchValidatingAdmissionPolicyStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5837,15 +6114,22 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusAsync(String name, V1Pa } public class APIpatchValidatingAdmissionPolicyStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchValidatingAdmissionPolicyStatusRequest(String name, V1Patch body) { + private APIpatchValidatingAdmissionPolicyStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -5855,7 +6139,7 @@ private APIpatchValidatingAdmissionPolicyStatusRequest(String name, V1Patch body * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchValidatingAdmissionPolicyStatusRequest */ - public APIpatchValidatingAdmissionPolicyStatusRequest pretty(String pretty) { + public APIpatchValidatingAdmissionPolicyStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5865,7 +6149,7 @@ public APIpatchValidatingAdmissionPolicyStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchValidatingAdmissionPolicyStatusRequest */ - public APIpatchValidatingAdmissionPolicyStatusRequest dryRun(String dryRun) { + public APIpatchValidatingAdmissionPolicyStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -5875,7 +6159,7 @@ public APIpatchValidatingAdmissionPolicyStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchValidatingAdmissionPolicyStatusRequest */ - public APIpatchValidatingAdmissionPolicyStatusRequest fieldManager(String fieldManager) { + public APIpatchValidatingAdmissionPolicyStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -5885,7 +6169,7 @@ public APIpatchValidatingAdmissionPolicyStatusRequest fieldManager(String fieldM * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchValidatingAdmissionPolicyStatusRequest */ - public APIpatchValidatingAdmissionPolicyStatusRequest fieldValidation(String fieldValidation) { + public APIpatchValidatingAdmissionPolicyStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -5895,7 +6179,7 @@ public APIpatchValidatingAdmissionPolicyStatusRequest fieldValidation(String fie * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchValidatingAdmissionPolicyStatusRequest */ - public APIpatchValidatingAdmissionPolicyStatusRequest force(Boolean force) { + public APIpatchValidatingAdmissionPolicyStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -5906,7 +6190,8 @@ public APIpatchValidatingAdmissionPolicyStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5922,7 +6207,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5939,7 +6225,8 @@ public V1ValidatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5956,7 +6243,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5975,17 +6263,18 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIpatchValidatingAdmissionPolicyStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchValidatingAdmissionPolicyStatusRequest patchValidatingAdmissionPolicyStatus(String name, V1Patch body) { + public APIpatchValidatingAdmissionPolicyStatusRequest patchValidatingAdmissionPolicyStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchValidatingAdmissionPolicyStatusRequest(name, body); } - private okhttp3.Call patchValidatingWebhookConfigurationCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6055,7 +6344,7 @@ private okhttp3.Call patchValidatingWebhookConfigurationCall(String name, V1Patc } @SuppressWarnings("rawtypes") - private okhttp3.Call patchValidatingWebhookConfigurationValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchValidatingWebhookConfiguration(Async)"); @@ -6071,13 +6360,13 @@ private okhttp3.Call patchValidatingWebhookConfigurationValidateBeforeCall(Strin } - private ApiResponse patchValidatingWebhookConfigurationWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchValidatingWebhookConfigurationAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6086,15 +6375,22 @@ private okhttp3.Call patchValidatingWebhookConfigurationAsync(String name, V1Pat } public class APIpatchValidatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchValidatingWebhookConfigurationRequest(String name, V1Patch body) { + private APIpatchValidatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -6104,7 +6400,7 @@ private APIpatchValidatingWebhookConfigurationRequest(String name, V1Patch body) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchValidatingWebhookConfigurationRequest */ - public APIpatchValidatingWebhookConfigurationRequest pretty(String pretty) { + public APIpatchValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6114,7 +6410,7 @@ public APIpatchValidatingWebhookConfigurationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchValidatingWebhookConfigurationRequest */ - public APIpatchValidatingWebhookConfigurationRequest dryRun(String dryRun) { + public APIpatchValidatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6124,7 +6420,7 @@ public APIpatchValidatingWebhookConfigurationRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchValidatingWebhookConfigurationRequest */ - public APIpatchValidatingWebhookConfigurationRequest fieldManager(String fieldManager) { + public APIpatchValidatingWebhookConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6134,7 +6430,7 @@ public APIpatchValidatingWebhookConfigurationRequest fieldManager(String fieldMa * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchValidatingWebhookConfigurationRequest */ - public APIpatchValidatingWebhookConfigurationRequest fieldValidation(String fieldValidation) { + public APIpatchValidatingWebhookConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -6144,7 +6440,7 @@ public APIpatchValidatingWebhookConfigurationRequest fieldValidation(String fiel * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchValidatingWebhookConfigurationRequest */ - public APIpatchValidatingWebhookConfigurationRequest force(Boolean force) { + public APIpatchValidatingWebhookConfigurationRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -6155,7 +6451,8 @@ public APIpatchValidatingWebhookConfigurationRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6171,7 +6468,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6188,7 +6486,8 @@ public V1ValidatingWebhookConfiguration execute() throws ApiException { * @return ApiResponse<V1ValidatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6205,7 +6504,8 @@ public ApiResponse executeWithHttpInfo() throw * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6224,17 +6524,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchValidatingWebhookConfigurationRequest patchValidatingWebhookConfiguration(String name, V1Patch body) { + public APIpatchValidatingWebhookConfigurationRequest patchValidatingWebhookConfiguration(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchValidatingWebhookConfigurationRequest(name, body); } - private okhttp3.Call readMutatingWebhookConfigurationCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6287,7 +6588,7 @@ private okhttp3.Call readMutatingWebhookConfigurationCall(String name, String pr } @SuppressWarnings("rawtypes") - private okhttp3.Call readMutatingWebhookConfigurationValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readMutatingWebhookConfiguration(Async)"); @@ -6298,13 +6599,13 @@ private okhttp3.Call readMutatingWebhookConfigurationValidateBeforeCall(String n } - private ApiResponse readMutatingWebhookConfigurationWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readMutatingWebhookConfigurationValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readMutatingWebhookConfigurationAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readMutatingWebhookConfigurationValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6313,10 +6614,12 @@ private okhttp3.Call readMutatingWebhookConfigurationAsync(String name, String p } public class APIreadMutatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadMutatingWebhookConfigurationRequest(String name) { + private APIreadMutatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -6325,7 +6628,7 @@ private APIreadMutatingWebhookConfigurationRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadMutatingWebhookConfigurationRequest */ - public APIreadMutatingWebhookConfigurationRequest pretty(String pretty) { + public APIreadMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6336,7 +6639,8 @@ public APIreadMutatingWebhookConfigurationRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6351,7 +6655,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1MutatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6367,7 +6672,8 @@ public V1MutatingWebhookConfiguration execute() throws ApiException { * @return ApiResponse<V1MutatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6383,7 +6689,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6400,16 +6707,17 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadMutatingWebhookConfigurationRequest readMutatingWebhookConfiguration(String name) { + public APIreadMutatingWebhookConfigurationRequest readMutatingWebhookConfiguration(@jakarta.annotation.Nonnull String name) { return new APIreadMutatingWebhookConfigurationRequest(name); } - private okhttp3.Call readValidatingAdmissionPolicyCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6462,7 +6770,7 @@ private okhttp3.Call readValidatingAdmissionPolicyCall(String name, String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicy(Async)"); @@ -6473,13 +6781,13 @@ private okhttp3.Call readValidatingAdmissionPolicyValidateBeforeCall(String name } - private ApiResponse readValidatingAdmissionPolicyWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readValidatingAdmissionPolicyValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readValidatingAdmissionPolicyAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readValidatingAdmissionPolicyValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6488,10 +6796,12 @@ private okhttp3.Call readValidatingAdmissionPolicyAsync(String name, String pret } public class APIreadValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadValidatingAdmissionPolicyRequest(String name) { + private APIreadValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -6500,7 +6810,7 @@ private APIreadValidatingAdmissionPolicyRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadValidatingAdmissionPolicyRequest */ - public APIreadValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIreadValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6511,7 +6821,8 @@ public APIreadValidatingAdmissionPolicyRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6526,7 +6837,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6542,7 +6854,8 @@ public V1ValidatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6558,7 +6871,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6575,16 +6889,17 @@ public okhttp3.Call executeAsync(final ApiCallback * @param name name of the ValidatingAdmissionPolicy (required) * @return APIreadValidatingAdmissionPolicyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadValidatingAdmissionPolicyRequest readValidatingAdmissionPolicy(String name) { + public APIreadValidatingAdmissionPolicyRequest readValidatingAdmissionPolicy(@jakarta.annotation.Nonnull String name) { return new APIreadValidatingAdmissionPolicyRequest(name); } - private okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6637,7 +6952,7 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyBindingValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicyBinding(Async)"); @@ -6648,13 +6963,13 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingValidateBeforeCall(Stri } - private ApiResponse readValidatingAdmissionPolicyBindingWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readValidatingAdmissionPolicyBindingAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6663,10 +6978,12 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingAsync(String name, Stri } public class APIreadValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadValidatingAdmissionPolicyBindingRequest(String name) { + private APIreadValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -6675,7 +6992,7 @@ private APIreadValidatingAdmissionPolicyBindingRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadValidatingAdmissionPolicyBindingRequest */ - public APIreadValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIreadValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6686,7 +7003,8 @@ public APIreadValidatingAdmissionPolicyBindingRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6701,7 +7019,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6717,7 +7036,8 @@ public V1ValidatingAdmissionPolicyBinding execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6733,7 +7053,8 @@ public ApiResponse executeWithHttpInfo() thr * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6750,16 +7071,17 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadValidatingAdmissionPolicyBindingRequest readValidatingAdmissionPolicyBinding(String name) { + public APIreadValidatingAdmissionPolicyBindingRequest readValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name) { return new APIreadValidatingAdmissionPolicyBindingRequest(name); } - private okhttp3.Call readValidatingAdmissionPolicyStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6812,7 +7134,7 @@ private okhttp3.Call readValidatingAdmissionPolicyStatusCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicyStatus(Async)"); @@ -6823,13 +7145,13 @@ private okhttp3.Call readValidatingAdmissionPolicyStatusValidateBeforeCall(Strin } - private ApiResponse readValidatingAdmissionPolicyStatusWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readValidatingAdmissionPolicyStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readValidatingAdmissionPolicyStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readValidatingAdmissionPolicyStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readValidatingAdmissionPolicyStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6838,10 +7160,12 @@ private okhttp3.Call readValidatingAdmissionPolicyStatusAsync(String name, Strin } public class APIreadValidatingAdmissionPolicyStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadValidatingAdmissionPolicyStatusRequest(String name) { + private APIreadValidatingAdmissionPolicyStatusRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -6850,7 +7174,7 @@ private APIreadValidatingAdmissionPolicyStatusRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadValidatingAdmissionPolicyStatusRequest */ - public APIreadValidatingAdmissionPolicyStatusRequest pretty(String pretty) { + public APIreadValidatingAdmissionPolicyStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6861,7 +7185,8 @@ public APIreadValidatingAdmissionPolicyStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6876,7 +7201,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6892,7 +7218,8 @@ public V1ValidatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6908,7 +7235,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6925,16 +7253,17 @@ public okhttp3.Call executeAsync(final ApiCallback * @param name name of the ValidatingAdmissionPolicy (required) * @return APIreadValidatingAdmissionPolicyStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadValidatingAdmissionPolicyStatusRequest readValidatingAdmissionPolicyStatus(String name) { + public APIreadValidatingAdmissionPolicyStatusRequest readValidatingAdmissionPolicyStatus(@jakarta.annotation.Nonnull String name) { return new APIreadValidatingAdmissionPolicyStatusRequest(name); } - private okhttp3.Call readValidatingWebhookConfigurationCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6987,7 +7316,7 @@ private okhttp3.Call readValidatingWebhookConfigurationCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingWebhookConfigurationValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readValidatingWebhookConfiguration(Async)"); @@ -6998,13 +7327,13 @@ private okhttp3.Call readValidatingWebhookConfigurationValidateBeforeCall(String } - private ApiResponse readValidatingWebhookConfigurationWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readValidatingWebhookConfigurationValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readValidatingWebhookConfigurationAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readValidatingWebhookConfigurationValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7013,10 +7342,12 @@ private okhttp3.Call readValidatingWebhookConfigurationAsync(String name, String } public class APIreadValidatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadValidatingWebhookConfigurationRequest(String name) { + private APIreadValidatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -7025,7 +7356,7 @@ private APIreadValidatingWebhookConfigurationRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadValidatingWebhookConfigurationRequest */ - public APIreadValidatingWebhookConfigurationRequest pretty(String pretty) { + public APIreadValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7036,7 +7367,8 @@ public APIreadValidatingWebhookConfigurationRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7051,7 +7383,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7067,7 +7400,8 @@ public V1ValidatingWebhookConfiguration execute() throws ApiException { * @return ApiResponse<V1ValidatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7083,7 +7417,8 @@ public ApiResponse executeWithHttpInfo() throw * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7100,16 +7435,17 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadValidatingWebhookConfigurationRequest readValidatingWebhookConfiguration(String name) { + public APIreadValidatingWebhookConfigurationRequest readValidatingWebhookConfiguration(@jakarta.annotation.Nonnull String name) { return new APIreadValidatingWebhookConfigurationRequest(name); } - private okhttp3.Call replaceMutatingWebhookConfigurationCall(String name, V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7175,7 +7511,7 @@ private okhttp3.Call replaceMutatingWebhookConfigurationCall(String name, V1Muta } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceMutatingWebhookConfigurationValidateBeforeCall(String name, V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceMutatingWebhookConfiguration(Async)"); @@ -7191,13 +7527,13 @@ private okhttp3.Call replaceMutatingWebhookConfigurationValidateBeforeCall(Strin } - private ApiResponse replaceMutatingWebhookConfigurationWithHttpInfo(String name, V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceMutatingWebhookConfigurationAsync(String name, V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7206,14 +7542,20 @@ private okhttp3.Call replaceMutatingWebhookConfigurationAsync(String name, V1Mut } public class APIreplaceMutatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1MutatingWebhookConfiguration body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceMutatingWebhookConfigurationRequest(String name, V1MutatingWebhookConfiguration body) { + private APIreplaceMutatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body) { this.name = name; this.body = body; } @@ -7223,7 +7565,7 @@ private APIreplaceMutatingWebhookConfigurationRequest(String name, V1MutatingWeb * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceMutatingWebhookConfigurationRequest */ - public APIreplaceMutatingWebhookConfigurationRequest pretty(String pretty) { + public APIreplaceMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7233,7 +7575,7 @@ public APIreplaceMutatingWebhookConfigurationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceMutatingWebhookConfigurationRequest */ - public APIreplaceMutatingWebhookConfigurationRequest dryRun(String dryRun) { + public APIreplaceMutatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -7243,7 +7585,7 @@ public APIreplaceMutatingWebhookConfigurationRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceMutatingWebhookConfigurationRequest */ - public APIreplaceMutatingWebhookConfigurationRequest fieldManager(String fieldManager) { + public APIreplaceMutatingWebhookConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -7253,7 +7595,7 @@ public APIreplaceMutatingWebhookConfigurationRequest fieldManager(String fieldMa * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceMutatingWebhookConfigurationRequest */ - public APIreplaceMutatingWebhookConfigurationRequest fieldValidation(String fieldValidation) { + public APIreplaceMutatingWebhookConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -7264,7 +7606,8 @@ public APIreplaceMutatingWebhookConfigurationRequest fieldValidation(String fiel * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7280,7 +7623,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1MutatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7297,7 +7641,8 @@ public V1MutatingWebhookConfiguration execute() throws ApiException { * @return ApiResponse<V1MutatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7314,7 +7659,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7333,17 +7679,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceMutatingWebhookConfigurationRequest replaceMutatingWebhookConfiguration(String name, V1MutatingWebhookConfiguration body) { + public APIreplaceMutatingWebhookConfigurationRequest replaceMutatingWebhookConfiguration(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body) { return new APIreplaceMutatingWebhookConfigurationRequest(name, body); } - private okhttp3.Call replaceValidatingAdmissionPolicyCall(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7409,7 +7756,7 @@ private okhttp3.Call replaceValidatingAdmissionPolicyCall(String name, V1Validat } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingAdmissionPolicyValidateBeforeCall(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceValidatingAdmissionPolicy(Async)"); @@ -7425,13 +7772,13 @@ private okhttp3.Call replaceValidatingAdmissionPolicyValidateBeforeCall(String n } - private ApiResponse replaceValidatingAdmissionPolicyWithHttpInfo(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceValidatingAdmissionPolicyAsync(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7440,14 +7787,20 @@ private okhttp3.Call replaceValidatingAdmissionPolicyAsync(String name, V1Valida } public class APIreplaceValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1ValidatingAdmissionPolicy body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceValidatingAdmissionPolicyRequest(String name, V1ValidatingAdmissionPolicy body) { + private APIreplaceValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body) { this.name = name; this.body = body; } @@ -7457,7 +7810,7 @@ private APIreplaceValidatingAdmissionPolicyRequest(String name, V1ValidatingAdmi * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceValidatingAdmissionPolicyRequest */ - public APIreplaceValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIreplaceValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7467,7 +7820,7 @@ public APIreplaceValidatingAdmissionPolicyRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceValidatingAdmissionPolicyRequest */ - public APIreplaceValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIreplaceValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -7477,7 +7830,7 @@ public APIreplaceValidatingAdmissionPolicyRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceValidatingAdmissionPolicyRequest */ - public APIreplaceValidatingAdmissionPolicyRequest fieldManager(String fieldManager) { + public APIreplaceValidatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -7487,7 +7840,7 @@ public APIreplaceValidatingAdmissionPolicyRequest fieldManager(String fieldManag * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceValidatingAdmissionPolicyRequest */ - public APIreplaceValidatingAdmissionPolicyRequest fieldValidation(String fieldValidation) { + public APIreplaceValidatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -7498,7 +7851,8 @@ public APIreplaceValidatingAdmissionPolicyRequest fieldValidation(String fieldVa * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7514,7 +7868,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7531,7 +7886,8 @@ public V1ValidatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7548,7 +7904,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7567,17 +7924,18 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIreplaceValidatingAdmissionPolicyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceValidatingAdmissionPolicyRequest replaceValidatingAdmissionPolicy(String name, V1ValidatingAdmissionPolicy body) { + public APIreplaceValidatingAdmissionPolicyRequest replaceValidatingAdmissionPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body) { return new APIreplaceValidatingAdmissionPolicyRequest(name, body); } - private okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(String name, V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7643,7 +8001,7 @@ private okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(String name, V1 } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingAdmissionPolicyBindingValidateBeforeCall(String name, V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceValidatingAdmissionPolicyBinding(Async)"); @@ -7659,13 +8017,13 @@ private okhttp3.Call replaceValidatingAdmissionPolicyBindingValidateBeforeCall(S } - private ApiResponse replaceValidatingAdmissionPolicyBindingWithHttpInfo(String name, V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceValidatingAdmissionPolicyBindingAsync(String name, V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7674,14 +8032,20 @@ private okhttp3.Call replaceValidatingAdmissionPolicyBindingAsync(String name, V } public class APIreplaceValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1ValidatingAdmissionPolicyBinding body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceValidatingAdmissionPolicyBindingRequest(String name, V1ValidatingAdmissionPolicyBinding body) { + private APIreplaceValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body) { this.name = name; this.body = body; } @@ -7691,7 +8055,7 @@ private APIreplaceValidatingAdmissionPolicyBindingRequest(String name, V1Validat * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceValidatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIreplaceValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7701,7 +8065,7 @@ public APIreplaceValidatingAdmissionPolicyBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceValidatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIreplaceValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -7711,7 +8075,7 @@ public APIreplaceValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceValidatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyBindingRequest fieldManager(String fieldManager) { + public APIreplaceValidatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -7721,7 +8085,7 @@ public APIreplaceValidatingAdmissionPolicyBindingRequest fieldManager(String fie * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceValidatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyBindingRequest fieldValidation(String fieldValidation) { + public APIreplaceValidatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -7732,7 +8096,8 @@ public APIreplaceValidatingAdmissionPolicyBindingRequest fieldValidation(String * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7748,7 +8113,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7765,7 +8131,8 @@ public V1ValidatingAdmissionPolicyBinding execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7782,7 +8149,8 @@ public ApiResponse executeWithHttpInfo() thr * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7801,17 +8169,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceValidatingAdmissionPolicyBindingRequest replaceValidatingAdmissionPolicyBinding(String name, V1ValidatingAdmissionPolicyBinding body) { + public APIreplaceValidatingAdmissionPolicyBindingRequest replaceValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body) { return new APIreplaceValidatingAdmissionPolicyBindingRequest(name, body); } - private okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7877,7 +8246,7 @@ private okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(String name, V1V } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingAdmissionPolicyStatusValidateBeforeCall(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceValidatingAdmissionPolicyStatus(Async)"); @@ -7893,13 +8262,13 @@ private okhttp3.Call replaceValidatingAdmissionPolicyStatusValidateBeforeCall(St } - private ApiResponse replaceValidatingAdmissionPolicyStatusWithHttpInfo(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceValidatingAdmissionPolicyStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceValidatingAdmissionPolicyStatusAsync(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7908,14 +8277,20 @@ private okhttp3.Call replaceValidatingAdmissionPolicyStatusAsync(String name, V1 } public class APIreplaceValidatingAdmissionPolicyStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1ValidatingAdmissionPolicy body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceValidatingAdmissionPolicyStatusRequest(String name, V1ValidatingAdmissionPolicy body) { + private APIreplaceValidatingAdmissionPolicyStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body) { this.name = name; this.body = body; } @@ -7925,7 +8300,7 @@ private APIreplaceValidatingAdmissionPolicyStatusRequest(String name, V1Validati * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceValidatingAdmissionPolicyStatusRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest pretty(String pretty) { + public APIreplaceValidatingAdmissionPolicyStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7935,7 +8310,7 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceValidatingAdmissionPolicyStatusRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest dryRun(String dryRun) { + public APIreplaceValidatingAdmissionPolicyStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -7945,7 +8320,7 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceValidatingAdmissionPolicyStatusRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest fieldManager(String fieldManager) { + public APIreplaceValidatingAdmissionPolicyStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -7955,7 +8330,7 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest fieldManager(String fiel * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceValidatingAdmissionPolicyStatusRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceValidatingAdmissionPolicyStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -7966,7 +8341,8 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest fieldValidation(String f * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7982,7 +8358,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7999,7 +8376,8 @@ public V1ValidatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8016,7 +8394,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8035,17 +8414,18 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIreplaceValidatingAdmissionPolicyStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceValidatingAdmissionPolicyStatusRequest replaceValidatingAdmissionPolicyStatus(String name, V1ValidatingAdmissionPolicy body) { + public APIreplaceValidatingAdmissionPolicyStatusRequest replaceValidatingAdmissionPolicyStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body) { return new APIreplaceValidatingAdmissionPolicyStatusRequest(name, body); } - private okhttp3.Call replaceValidatingWebhookConfigurationCall(String name, V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8111,7 +8491,7 @@ private okhttp3.Call replaceValidatingWebhookConfigurationCall(String name, V1Va } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingWebhookConfigurationValidateBeforeCall(String name, V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceValidatingWebhookConfiguration(Async)"); @@ -8127,13 +8507,13 @@ private okhttp3.Call replaceValidatingWebhookConfigurationValidateBeforeCall(Str } - private ApiResponse replaceValidatingWebhookConfigurationWithHttpInfo(String name, V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceValidatingWebhookConfigurationAsync(String name, V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8142,14 +8522,20 @@ private okhttp3.Call replaceValidatingWebhookConfigurationAsync(String name, V1V } public class APIreplaceValidatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1ValidatingWebhookConfiguration body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceValidatingWebhookConfigurationRequest(String name, V1ValidatingWebhookConfiguration body) { + private APIreplaceValidatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body) { this.name = name; this.body = body; } @@ -8159,7 +8545,7 @@ private APIreplaceValidatingWebhookConfigurationRequest(String name, V1Validatin * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceValidatingWebhookConfigurationRequest */ - public APIreplaceValidatingWebhookConfigurationRequest pretty(String pretty) { + public APIreplaceValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8169,7 +8555,7 @@ public APIreplaceValidatingWebhookConfigurationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceValidatingWebhookConfigurationRequest */ - public APIreplaceValidatingWebhookConfigurationRequest dryRun(String dryRun) { + public APIreplaceValidatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -8179,7 +8565,7 @@ public APIreplaceValidatingWebhookConfigurationRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceValidatingWebhookConfigurationRequest */ - public APIreplaceValidatingWebhookConfigurationRequest fieldManager(String fieldManager) { + public APIreplaceValidatingWebhookConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -8189,7 +8575,7 @@ public APIreplaceValidatingWebhookConfigurationRequest fieldManager(String field * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceValidatingWebhookConfigurationRequest */ - public APIreplaceValidatingWebhookConfigurationRequest fieldValidation(String fieldValidation) { + public APIreplaceValidatingWebhookConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -8200,7 +8586,8 @@ public APIreplaceValidatingWebhookConfigurationRequest fieldValidation(String fi * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8216,7 +8603,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8233,7 +8621,8 @@ public V1ValidatingWebhookConfiguration execute() throws ApiException { * @return ApiResponse<V1ValidatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8250,7 +8639,8 @@ public ApiResponse executeWithHttpInfo() throw * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8269,14 +8659,15 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceValidatingWebhookConfigurationRequest replaceValidatingWebhookConfiguration(String name, V1ValidatingWebhookConfiguration body) { + public APIreplaceValidatingWebhookConfigurationRequest replaceValidatingWebhookConfiguration(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body) { return new APIreplaceValidatingWebhookConfigurationRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1alpha1Api.java index e7ea5016b1..777d4177a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1alpha1Api.java @@ -78,7 +78,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createMutatingAdmissionPolicyCall(V1alpha1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -143,7 +143,7 @@ private okhttp3.Call createMutatingAdmissionPolicyCall(V1alpha1MutatingAdmission } @SuppressWarnings("rawtypes") - private okhttp3.Call createMutatingAdmissionPolicyValidateBeforeCall(V1alpha1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createMutatingAdmissionPolicy(Async)"); @@ -154,13 +154,13 @@ private okhttp3.Call createMutatingAdmissionPolicyValidateBeforeCall(V1alpha1Mut } - private ApiResponse createMutatingAdmissionPolicyWithHttpInfo(V1alpha1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createMutatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createMutatingAdmissionPolicyAsync(V1alpha1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createMutatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -169,13 +169,18 @@ private okhttp3.Call createMutatingAdmissionPolicyAsync(V1alpha1MutatingAdmissio } public class APIcreateMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final V1alpha1MutatingAdmissionPolicy body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateMutatingAdmissionPolicyRequest(V1alpha1MutatingAdmissionPolicy body) { + private APIcreateMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body) { this.body = body; } @@ -184,7 +189,7 @@ private APIcreateMutatingAdmissionPolicyRequest(V1alpha1MutatingAdmissionPolicy * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateMutatingAdmissionPolicyRequest */ - public APIcreateMutatingAdmissionPolicyRequest pretty(String pretty) { + public APIcreateMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -194,7 +199,7 @@ public APIcreateMutatingAdmissionPolicyRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateMutatingAdmissionPolicyRequest */ - public APIcreateMutatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIcreateMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -204,7 +209,7 @@ public APIcreateMutatingAdmissionPolicyRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateMutatingAdmissionPolicyRequest */ - public APIcreateMutatingAdmissionPolicyRequest fieldManager(String fieldManager) { + public APIcreateMutatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -214,7 +219,7 @@ public APIcreateMutatingAdmissionPolicyRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateMutatingAdmissionPolicyRequest */ - public APIcreateMutatingAdmissionPolicyRequest fieldValidation(String fieldValidation) { + public APIcreateMutatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -225,7 +230,8 @@ public APIcreateMutatingAdmissionPolicyRequest fieldValidation(String fieldValid * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -242,7 +248,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -260,7 +267,8 @@ public V1alpha1MutatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1alpha1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -278,7 +286,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -297,7 +306,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+ @@ -305,10 +315,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateMutatingAdmissionPolicyRequest createMutatingAdmissionPolicy(V1alpha1MutatingAdmissionPolicy body) { + public APIcreateMutatingAdmissionPolicyRequest createMutatingAdmissionPolicy(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body) { return new APIcreateMutatingAdmissionPolicyRequest(body); } - private okhttp3.Call createMutatingAdmissionPolicyBindingCall(V1alpha1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -373,7 +383,7 @@ private okhttp3.Call createMutatingAdmissionPolicyBindingCall(V1alpha1MutatingAd } @SuppressWarnings("rawtypes") - private okhttp3.Call createMutatingAdmissionPolicyBindingValidateBeforeCall(V1alpha1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createMutatingAdmissionPolicyBinding(Async)"); @@ -384,13 +394,13 @@ private okhttp3.Call createMutatingAdmissionPolicyBindingValidateBeforeCall(V1al } - private ApiResponse createMutatingAdmissionPolicyBindingWithHttpInfo(V1alpha1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createMutatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createMutatingAdmissionPolicyBindingAsync(V1alpha1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createMutatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -399,13 +409,18 @@ private okhttp3.Call createMutatingAdmissionPolicyBindingAsync(V1alpha1MutatingA } public class APIcreateMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final V1alpha1MutatingAdmissionPolicyBinding body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateMutatingAdmissionPolicyBindingRequest(V1alpha1MutatingAdmissionPolicyBinding body) { + private APIcreateMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body) { this.body = body; } @@ -414,7 +429,7 @@ private APIcreateMutatingAdmissionPolicyBindingRequest(V1alpha1MutatingAdmission * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateMutatingAdmissionPolicyBindingRequest */ - public APIcreateMutatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIcreateMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -424,7 +439,7 @@ public APIcreateMutatingAdmissionPolicyBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateMutatingAdmissionPolicyBindingRequest */ - public APIcreateMutatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIcreateMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -434,7 +449,7 @@ public APIcreateMutatingAdmissionPolicyBindingRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateMutatingAdmissionPolicyBindingRequest */ - public APIcreateMutatingAdmissionPolicyBindingRequest fieldManager(String fieldManager) { + public APIcreateMutatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -444,7 +459,7 @@ public APIcreateMutatingAdmissionPolicyBindingRequest fieldManager(String fieldM * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateMutatingAdmissionPolicyBindingRequest */ - public APIcreateMutatingAdmissionPolicyBindingRequest fieldValidation(String fieldValidation) { + public APIcreateMutatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -455,7 +470,8 @@ public APIcreateMutatingAdmissionPolicyBindingRequest fieldValidation(String fie * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -472,7 +488,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -490,7 +507,8 @@ public V1alpha1MutatingAdmissionPolicyBinding execute() throws ApiException { * @return ApiResponse<V1alpha1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -508,7 +526,8 @@ public ApiResponse executeWithHttpInfo() * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -527,7 +546,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+ @@ -535,10 +555,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateMutatingAdmissionPolicyBindingRequest createMutatingAdmissionPolicyBinding(V1alpha1MutatingAdmissionPolicyBinding body) { + public APIcreateMutatingAdmissionPolicyBindingRequest createMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body) { return new APIcreateMutatingAdmissionPolicyBindingRequest(body); } - private okhttp3.Call deleteCollectionMutatingAdmissionPolicyCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -643,19 +663,19 @@ private okhttp3.Call deleteCollectionMutatingAdmissionPolicyCall(String pretty, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionMutatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionMutatingAdmissionPolicyWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionMutatingAdmissionPolicyAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -664,20 +684,35 @@ private okhttp3.Call deleteCollectionMutatingAdmissionPolicyAsync(String pretty, } public class APIdeleteCollectionMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionMutatingAdmissionPolicyRequest() { @@ -688,7 +723,7 @@ private APIdeleteCollectionMutatingAdmissionPolicyRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyRequest pretty(String pretty) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -698,7 +733,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyRequest _continue(String _continue) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -708,7 +743,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyRequest _continue(String _conti * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -718,7 +753,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -728,7 +763,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyRequest fieldSelector(String fi * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -738,7 +773,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyRequest gracePeriodSeconds(Inte * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -748,7 +783,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyRequest ignoreStoreReadErrorWit * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyRequest labelSelector(String labelSelector) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -758,7 +793,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyRequest labelSelector(String la * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyRequest limit(Integer limit) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -768,7 +803,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -778,7 +813,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyRequest orphanDependents(Boolea * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -788,7 +823,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyRequest propagationPolicy(Strin * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -798,7 +833,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyRequest resourceVersion(String * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -808,7 +843,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyRequest resourceVersionMatch(St * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -818,7 +853,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyRequest sendInitialEvents(Boole * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -828,7 +863,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyRequest timeoutSeconds(Integer * @param body (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyRequest body(V1DeleteOptions body) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -839,7 +874,8 @@ public APIdeleteCollectionMutatingAdmissionPolicyRequest body(V1DeleteOptions bo * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -854,7 +890,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -870,7 +907,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -886,7 +924,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -902,7 +941,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of MutatingAdmissionPolicy * @return APIdeleteCollectionMutatingAdmissionPolicyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -911,7 +951,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionMutatingAdmissionPolicyRequest deleteCollectionMutatingAdmissionPolicy() { return new APIdeleteCollectionMutatingAdmissionPolicyRequest(); } - private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1016,19 +1056,19 @@ private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingCall(String p } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionMutatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1037,20 +1077,35 @@ private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingAsync(String } public class APIdeleteCollectionMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionMutatingAdmissionPolicyBindingRequest() { @@ -1061,7 +1116,7 @@ private APIdeleteCollectionMutatingAdmissionPolicyBindingRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1071,7 +1126,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest pretty(String pr * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest _continue(String _continue) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1081,7 +1136,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest _continue(String * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1091,7 +1146,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest dryRun(String dr * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1101,7 +1156,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest fieldSelector(St * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1111,7 +1166,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest gracePeriodSecon * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1121,7 +1176,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest ignoreStoreReadE * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest labelSelector(String labelSelector) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1131,7 +1186,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest labelSelector(St * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest limit(Integer limit) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1141,7 +1196,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest limit(Integer li * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1151,7 +1206,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest orphanDependents * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1161,7 +1216,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest propagationPolic * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1171,7 +1226,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest resourceVersion( * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1181,7 +1236,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest resourceVersionM * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1191,7 +1246,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest sendInitialEvent * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1201,7 +1256,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest timeoutSeconds(I * @param body (optional) * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest body(V1DeleteOptions body) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1212,7 +1267,8 @@ public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest body(V1DeleteOpt * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1227,7 +1283,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1243,7 +1300,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1259,7 +1317,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1275,7 +1334,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of MutatingAdmissionPolicyBinding * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1284,7 +1344,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest deleteCollectionMutatingAdmissionPolicyBinding() { return new APIdeleteCollectionMutatingAdmissionPolicyBindingRequest(); } - private okhttp3.Call deleteMutatingAdmissionPolicyCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1358,7 +1418,7 @@ private okhttp3.Call deleteMutatingAdmissionPolicyCall(String name, String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteMutatingAdmissionPolicyValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteMutatingAdmissionPolicy(Async)"); @@ -1369,13 +1429,13 @@ private okhttp3.Call deleteMutatingAdmissionPolicyValidateBeforeCall(String name } - private ApiResponse deleteMutatingAdmissionPolicyWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteMutatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteMutatingAdmissionPolicyAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteMutatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1384,16 +1444,24 @@ private okhttp3.Call deleteMutatingAdmissionPolicyAsync(String name, String pret } public class APIdeleteMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteMutatingAdmissionPolicyRequest(String name) { + private APIdeleteMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -1402,7 +1470,7 @@ private APIdeleteMutatingAdmissionPolicyRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteMutatingAdmissionPolicyRequest pretty(String pretty) { + public APIdeleteMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1412,7 +1480,7 @@ public APIdeleteMutatingAdmissionPolicyRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteMutatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIdeleteMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1422,7 +1490,7 @@ public APIdeleteMutatingAdmissionPolicyRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteMutatingAdmissionPolicyRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteMutatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1432,7 +1500,7 @@ public APIdeleteMutatingAdmissionPolicyRequest gracePeriodSeconds(Integer graceP * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteMutatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteMutatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1442,7 +1510,7 @@ public APIdeleteMutatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBr * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteMutatingAdmissionPolicyRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteMutatingAdmissionPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1452,7 +1520,7 @@ public APIdeleteMutatingAdmissionPolicyRequest orphanDependents(Boolean orphanDe * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteMutatingAdmissionPolicyRequest propagationPolicy(String propagationPolicy) { + public APIdeleteMutatingAdmissionPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1462,7 +1530,7 @@ public APIdeleteMutatingAdmissionPolicyRequest propagationPolicy(String propagat * @param body (optional) * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteMutatingAdmissionPolicyRequest body(V1DeleteOptions body) { + public APIdeleteMutatingAdmissionPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1473,7 +1541,8 @@ public APIdeleteMutatingAdmissionPolicyRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1489,7 +1558,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1506,7 +1576,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1523,7 +1594,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1541,17 +1613,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the MutatingAdmissionPolicy (required) * @return APIdeleteMutatingAdmissionPolicyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteMutatingAdmissionPolicyRequest deleteMutatingAdmissionPolicy(String name) { + public APIdeleteMutatingAdmissionPolicyRequest deleteMutatingAdmissionPolicy(@jakarta.annotation.Nonnull String name) { return new APIdeleteMutatingAdmissionPolicyRequest(name); } - private okhttp3.Call deleteMutatingAdmissionPolicyBindingCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1625,7 +1698,7 @@ private okhttp3.Call deleteMutatingAdmissionPolicyBindingCall(String name, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteMutatingAdmissionPolicyBindingValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteMutatingAdmissionPolicyBinding(Async)"); @@ -1636,13 +1709,13 @@ private okhttp3.Call deleteMutatingAdmissionPolicyBindingValidateBeforeCall(Stri } - private ApiResponse deleteMutatingAdmissionPolicyBindingWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteMutatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteMutatingAdmissionPolicyBindingAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteMutatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1651,16 +1724,24 @@ private okhttp3.Call deleteMutatingAdmissionPolicyBindingAsync(String name, Stri } public class APIdeleteMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteMutatingAdmissionPolicyBindingRequest(String name) { + private APIdeleteMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -1669,7 +1750,7 @@ private APIdeleteMutatingAdmissionPolicyBindingRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteMutatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIdeleteMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1679,7 +1760,7 @@ public APIdeleteMutatingAdmissionPolicyBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteMutatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIdeleteMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1689,7 +1770,7 @@ public APIdeleteMutatingAdmissionPolicyBindingRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteMutatingAdmissionPolicyBindingRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteMutatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1699,7 +1780,7 @@ public APIdeleteMutatingAdmissionPolicyBindingRequest gracePeriodSeconds(Integer * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteMutatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteMutatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1709,7 +1790,7 @@ public APIdeleteMutatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithCl * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteMutatingAdmissionPolicyBindingRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteMutatingAdmissionPolicyBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1719,7 +1800,7 @@ public APIdeleteMutatingAdmissionPolicyBindingRequest orphanDependents(Boolean o * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteMutatingAdmissionPolicyBindingRequest propagationPolicy(String propagationPolicy) { + public APIdeleteMutatingAdmissionPolicyBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1729,7 +1810,7 @@ public APIdeleteMutatingAdmissionPolicyBindingRequest propagationPolicy(String p * @param body (optional) * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteMutatingAdmissionPolicyBindingRequest body(V1DeleteOptions body) { + public APIdeleteMutatingAdmissionPolicyBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1740,7 +1821,8 @@ public APIdeleteMutatingAdmissionPolicyBindingRequest body(V1DeleteOptions body) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1756,7 +1838,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1773,7 +1856,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1790,7 +1874,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1808,14 +1893,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the MutatingAdmissionPolicyBinding (required) * @return APIdeleteMutatingAdmissionPolicyBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteMutatingAdmissionPolicyBindingRequest deleteMutatingAdmissionPolicyBinding(String name) { + public APIdeleteMutatingAdmissionPolicyBindingRequest deleteMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name) { return new APIdeleteMutatingAdmissionPolicyBindingRequest(name); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -1897,7 +1983,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1912,7 +1999,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1928,7 +2016,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1944,7 +2033,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1960,7 +2050,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1969,7 +2060,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listMutatingAdmissionPolicyCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2064,19 +2155,19 @@ private okhttp3.Call listMutatingAdmissionPolicyCall(String pretty, Boolean allo } @SuppressWarnings("rawtypes") - private okhttp3.Call listMutatingAdmissionPolicyValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listMutatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listMutatingAdmissionPolicyWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listMutatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listMutatingAdmissionPolicyAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listMutatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2085,16 +2176,27 @@ private okhttp3.Call listMutatingAdmissionPolicyAsync(String pretty, Boolean all } public class APIlistMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistMutatingAdmissionPolicyRequest() { @@ -2105,7 +2207,7 @@ private APIlistMutatingAdmissionPolicyRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistMutatingAdmissionPolicyRequest pretty(String pretty) { + public APIlistMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2115,7 +2217,7 @@ public APIlistMutatingAdmissionPolicyRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistMutatingAdmissionPolicyRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistMutatingAdmissionPolicyRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -2125,7 +2227,7 @@ public APIlistMutatingAdmissionPolicyRequest allowWatchBookmarks(Boolean allowWa * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistMutatingAdmissionPolicyRequest _continue(String _continue) { + public APIlistMutatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2135,7 +2237,7 @@ public APIlistMutatingAdmissionPolicyRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistMutatingAdmissionPolicyRequest fieldSelector(String fieldSelector) { + public APIlistMutatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2145,7 +2247,7 @@ public APIlistMutatingAdmissionPolicyRequest fieldSelector(String fieldSelector) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistMutatingAdmissionPolicyRequest labelSelector(String labelSelector) { + public APIlistMutatingAdmissionPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2155,7 +2257,7 @@ public APIlistMutatingAdmissionPolicyRequest labelSelector(String labelSelector) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistMutatingAdmissionPolicyRequest limit(Integer limit) { + public APIlistMutatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2165,7 +2267,7 @@ public APIlistMutatingAdmissionPolicyRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistMutatingAdmissionPolicyRequest resourceVersion(String resourceVersion) { + public APIlistMutatingAdmissionPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2175,7 +2277,7 @@ public APIlistMutatingAdmissionPolicyRequest resourceVersion(String resourceVers * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistMutatingAdmissionPolicyRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistMutatingAdmissionPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2185,7 +2287,7 @@ public APIlistMutatingAdmissionPolicyRequest resourceVersionMatch(String resourc * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistMutatingAdmissionPolicyRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistMutatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2195,7 +2297,7 @@ public APIlistMutatingAdmissionPolicyRequest sendInitialEvents(Boolean sendIniti * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistMutatingAdmissionPolicyRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistMutatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2205,7 +2307,7 @@ public APIlistMutatingAdmissionPolicyRequest timeoutSeconds(Integer timeoutSecon * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistMutatingAdmissionPolicyRequest watch(Boolean watch) { + public APIlistMutatingAdmissionPolicyRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -2216,7 +2318,8 @@ public APIlistMutatingAdmissionPolicyRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2231,7 +2334,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1MutatingAdmissionPolicyList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2247,7 +2351,8 @@ public V1alpha1MutatingAdmissionPolicyList execute() throws ApiException { * @return ApiResponse<V1alpha1MutatingAdmissionPolicyList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2263,7 +2368,8 @@ public ApiResponse executeWithHttpInfo() th * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2279,7 +2385,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -2288,7 +2395,7 @@ public okhttp3.Call executeAsync(final ApiCallback listMutatingAdmissionPolicyBindingWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listMutatingAdmissionPolicyBindingAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2404,16 +2511,27 @@ private okhttp3.Call listMutatingAdmissionPolicyBindingAsync(String pretty, Bool } public class APIlistMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistMutatingAdmissionPolicyBindingRequest() { @@ -2424,7 +2542,7 @@ private APIlistMutatingAdmissionPolicyBindingRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistMutatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIlistMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2434,7 +2552,7 @@ public APIlistMutatingAdmissionPolicyBindingRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistMutatingAdmissionPolicyBindingRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistMutatingAdmissionPolicyBindingRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -2444,7 +2562,7 @@ public APIlistMutatingAdmissionPolicyBindingRequest allowWatchBookmarks(Boolean * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistMutatingAdmissionPolicyBindingRequest _continue(String _continue) { + public APIlistMutatingAdmissionPolicyBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2454,7 +2572,7 @@ public APIlistMutatingAdmissionPolicyBindingRequest _continue(String _continue) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistMutatingAdmissionPolicyBindingRequest fieldSelector(String fieldSelector) { + public APIlistMutatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2464,7 +2582,7 @@ public APIlistMutatingAdmissionPolicyBindingRequest fieldSelector(String fieldSe * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistMutatingAdmissionPolicyBindingRequest labelSelector(String labelSelector) { + public APIlistMutatingAdmissionPolicyBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2474,7 +2592,7 @@ public APIlistMutatingAdmissionPolicyBindingRequest labelSelector(String labelSe * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistMutatingAdmissionPolicyBindingRequest limit(Integer limit) { + public APIlistMutatingAdmissionPolicyBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2484,7 +2602,7 @@ public APIlistMutatingAdmissionPolicyBindingRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistMutatingAdmissionPolicyBindingRequest resourceVersion(String resourceVersion) { + public APIlistMutatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2494,7 +2612,7 @@ public APIlistMutatingAdmissionPolicyBindingRequest resourceVersion(String resou * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistMutatingAdmissionPolicyBindingRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistMutatingAdmissionPolicyBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2504,7 +2622,7 @@ public APIlistMutatingAdmissionPolicyBindingRequest resourceVersionMatch(String * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistMutatingAdmissionPolicyBindingRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistMutatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2514,7 +2632,7 @@ public APIlistMutatingAdmissionPolicyBindingRequest sendInitialEvents(Boolean se * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistMutatingAdmissionPolicyBindingRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistMutatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2524,7 +2642,7 @@ public APIlistMutatingAdmissionPolicyBindingRequest timeoutSeconds(Integer timeo * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistMutatingAdmissionPolicyBindingRequest watch(Boolean watch) { + public APIlistMutatingAdmissionPolicyBindingRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -2535,7 +2653,8 @@ public APIlistMutatingAdmissionPolicyBindingRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2550,7 +2669,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1MutatingAdmissionPolicyBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2566,7 +2686,8 @@ public V1alpha1MutatingAdmissionPolicyBindingList execute() throws ApiException * @return ApiResponse<V1alpha1MutatingAdmissionPolicyBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2582,7 +2703,8 @@ public ApiResponse executeWithHttpIn * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2598,7 +2720,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -2607,7 +2730,7 @@ public okhttp3.Call executeAsync(final ApiCallback patchMutatingAdmissionPolicyWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchMutatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchMutatingAdmissionPolicyAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchMutatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2708,15 +2831,22 @@ private okhttp3.Call patchMutatingAdmissionPolicyAsync(String name, V1Patch body } public class APIpatchMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchMutatingAdmissionPolicyRequest(String name, V1Patch body) { + private APIpatchMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -2726,7 +2856,7 @@ private APIpatchMutatingAdmissionPolicyRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIpatchMutatingAdmissionPolicyRequest pretty(String pretty) { + public APIpatchMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2736,7 +2866,7 @@ public APIpatchMutatingAdmissionPolicyRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIpatchMutatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIpatchMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2746,7 +2876,7 @@ public APIpatchMutatingAdmissionPolicyRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIpatchMutatingAdmissionPolicyRequest fieldManager(String fieldManager) { + public APIpatchMutatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2756,7 +2886,7 @@ public APIpatchMutatingAdmissionPolicyRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIpatchMutatingAdmissionPolicyRequest fieldValidation(String fieldValidation) { + public APIpatchMutatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2766,7 +2896,7 @@ public APIpatchMutatingAdmissionPolicyRequest fieldValidation(String fieldValida * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIpatchMutatingAdmissionPolicyRequest force(Boolean force) { + public APIpatchMutatingAdmissionPolicyRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -2777,7 +2907,8 @@ public APIpatchMutatingAdmissionPolicyRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2793,7 +2924,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2810,7 +2942,8 @@ public V1alpha1MutatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1alpha1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2827,7 +2960,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2846,17 +2980,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchMutatingAdmissionPolicyRequest patchMutatingAdmissionPolicy(String name, V1Patch body) { + public APIpatchMutatingAdmissionPolicyRequest patchMutatingAdmissionPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchMutatingAdmissionPolicyRequest(name, body); } - private okhttp3.Call patchMutatingAdmissionPolicyBindingCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2926,7 +3061,7 @@ private okhttp3.Call patchMutatingAdmissionPolicyBindingCall(String name, V1Patc } @SuppressWarnings("rawtypes") - private okhttp3.Call patchMutatingAdmissionPolicyBindingValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchMutatingAdmissionPolicyBinding(Async)"); @@ -2942,13 +3077,13 @@ private okhttp3.Call patchMutatingAdmissionPolicyBindingValidateBeforeCall(Strin } - private ApiResponse patchMutatingAdmissionPolicyBindingWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchMutatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchMutatingAdmissionPolicyBindingAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchMutatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2957,15 +3092,22 @@ private okhttp3.Call patchMutatingAdmissionPolicyBindingAsync(String name, V1Pat } public class APIpatchMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchMutatingAdmissionPolicyBindingRequest(String name, V1Patch body) { + private APIpatchMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -2975,7 +3117,7 @@ private APIpatchMutatingAdmissionPolicyBindingRequest(String name, V1Patch body) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchMutatingAdmissionPolicyBindingRequest */ - public APIpatchMutatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIpatchMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2985,7 +3127,7 @@ public APIpatchMutatingAdmissionPolicyBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchMutatingAdmissionPolicyBindingRequest */ - public APIpatchMutatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIpatchMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2995,7 +3137,7 @@ public APIpatchMutatingAdmissionPolicyBindingRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchMutatingAdmissionPolicyBindingRequest */ - public APIpatchMutatingAdmissionPolicyBindingRequest fieldManager(String fieldManager) { + public APIpatchMutatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -3005,7 +3147,7 @@ public APIpatchMutatingAdmissionPolicyBindingRequest fieldManager(String fieldMa * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchMutatingAdmissionPolicyBindingRequest */ - public APIpatchMutatingAdmissionPolicyBindingRequest fieldValidation(String fieldValidation) { + public APIpatchMutatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -3015,7 +3157,7 @@ public APIpatchMutatingAdmissionPolicyBindingRequest fieldValidation(String fiel * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchMutatingAdmissionPolicyBindingRequest */ - public APIpatchMutatingAdmissionPolicyBindingRequest force(Boolean force) { + public APIpatchMutatingAdmissionPolicyBindingRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -3026,7 +3168,8 @@ public APIpatchMutatingAdmissionPolicyBindingRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3042,7 +3185,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3059,7 +3203,8 @@ public V1alpha1MutatingAdmissionPolicyBinding execute() throws ApiException { * @return ApiResponse<V1alpha1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3076,7 +3221,8 @@ public ApiResponse executeWithHttpInfo() * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3095,17 +3241,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchMutatingAdmissionPolicyBindingRequest patchMutatingAdmissionPolicyBinding(String name, V1Patch body) { + public APIpatchMutatingAdmissionPolicyBindingRequest patchMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchMutatingAdmissionPolicyBindingRequest(name, body); } - private okhttp3.Call readMutatingAdmissionPolicyCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3158,7 +3305,7 @@ private okhttp3.Call readMutatingAdmissionPolicyCall(String name, String pretty, } @SuppressWarnings("rawtypes") - private okhttp3.Call readMutatingAdmissionPolicyValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readMutatingAdmissionPolicy(Async)"); @@ -3169,13 +3316,13 @@ private okhttp3.Call readMutatingAdmissionPolicyValidateBeforeCall(String name, } - private ApiResponse readMutatingAdmissionPolicyWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readMutatingAdmissionPolicyValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readMutatingAdmissionPolicyAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readMutatingAdmissionPolicyValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3184,10 +3331,12 @@ private okhttp3.Call readMutatingAdmissionPolicyAsync(String name, String pretty } public class APIreadMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadMutatingAdmissionPolicyRequest(String name) { + private APIreadMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -3196,7 +3345,7 @@ private APIreadMutatingAdmissionPolicyRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadMutatingAdmissionPolicyRequest */ - public APIreadMutatingAdmissionPolicyRequest pretty(String pretty) { + public APIreadMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3207,7 +3356,8 @@ public APIreadMutatingAdmissionPolicyRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3222,7 +3372,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3238,7 +3389,8 @@ public V1alpha1MutatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1alpha1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3254,7 +3406,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3271,16 +3424,17 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadMutatingAdmissionPolicyRequest readMutatingAdmissionPolicy(String name) { + public APIreadMutatingAdmissionPolicyRequest readMutatingAdmissionPolicy(@jakarta.annotation.Nonnull String name) { return new APIreadMutatingAdmissionPolicyRequest(name); } - private okhttp3.Call readMutatingAdmissionPolicyBindingCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3333,7 +3487,7 @@ private okhttp3.Call readMutatingAdmissionPolicyBindingCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call readMutatingAdmissionPolicyBindingValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readMutatingAdmissionPolicyBinding(Async)"); @@ -3344,13 +3498,13 @@ private okhttp3.Call readMutatingAdmissionPolicyBindingValidateBeforeCall(String } - private ApiResponse readMutatingAdmissionPolicyBindingWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readMutatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readMutatingAdmissionPolicyBindingAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readMutatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3359,10 +3513,12 @@ private okhttp3.Call readMutatingAdmissionPolicyBindingAsync(String name, String } public class APIreadMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadMutatingAdmissionPolicyBindingRequest(String name) { + private APIreadMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -3371,7 +3527,7 @@ private APIreadMutatingAdmissionPolicyBindingRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadMutatingAdmissionPolicyBindingRequest */ - public APIreadMutatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIreadMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3382,7 +3538,8 @@ public APIreadMutatingAdmissionPolicyBindingRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3397,7 +3554,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3413,7 +3571,8 @@ public V1alpha1MutatingAdmissionPolicyBinding execute() throws ApiException { * @return ApiResponse<V1alpha1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3429,7 +3588,8 @@ public ApiResponse executeWithHttpInfo() * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3446,16 +3606,17 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadMutatingAdmissionPolicyBindingRequest readMutatingAdmissionPolicyBinding(String name) { + public APIreadMutatingAdmissionPolicyBindingRequest readMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name) { return new APIreadMutatingAdmissionPolicyBindingRequest(name); } - private okhttp3.Call replaceMutatingAdmissionPolicyCall(String name, V1alpha1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3521,7 +3682,7 @@ private okhttp3.Call replaceMutatingAdmissionPolicyCall(String name, V1alpha1Mut } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceMutatingAdmissionPolicyValidateBeforeCall(String name, V1alpha1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceMutatingAdmissionPolicy(Async)"); @@ -3537,13 +3698,13 @@ private okhttp3.Call replaceMutatingAdmissionPolicyValidateBeforeCall(String nam } - private ApiResponse replaceMutatingAdmissionPolicyWithHttpInfo(String name, V1alpha1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceMutatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceMutatingAdmissionPolicyAsync(String name, V1alpha1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceMutatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3552,14 +3713,20 @@ private okhttp3.Call replaceMutatingAdmissionPolicyAsync(String name, V1alpha1Mu } public class APIreplaceMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1alpha1MutatingAdmissionPolicy body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceMutatingAdmissionPolicyRequest(String name, V1alpha1MutatingAdmissionPolicy body) { + private APIreplaceMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body) { this.name = name; this.body = body; } @@ -3569,7 +3736,7 @@ private APIreplaceMutatingAdmissionPolicyRequest(String name, V1alpha1MutatingAd * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceMutatingAdmissionPolicyRequest */ - public APIreplaceMutatingAdmissionPolicyRequest pretty(String pretty) { + public APIreplaceMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3579,7 +3746,7 @@ public APIreplaceMutatingAdmissionPolicyRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceMutatingAdmissionPolicyRequest */ - public APIreplaceMutatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIreplaceMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3589,7 +3756,7 @@ public APIreplaceMutatingAdmissionPolicyRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceMutatingAdmissionPolicyRequest */ - public APIreplaceMutatingAdmissionPolicyRequest fieldManager(String fieldManager) { + public APIreplaceMutatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -3599,7 +3766,7 @@ public APIreplaceMutatingAdmissionPolicyRequest fieldManager(String fieldManager * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceMutatingAdmissionPolicyRequest */ - public APIreplaceMutatingAdmissionPolicyRequest fieldValidation(String fieldValidation) { + public APIreplaceMutatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -3610,7 +3777,8 @@ public APIreplaceMutatingAdmissionPolicyRequest fieldValidation(String fieldVali * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3626,7 +3794,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3643,7 +3812,8 @@ public V1alpha1MutatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1alpha1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3660,7 +3830,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3679,17 +3850,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceMutatingAdmissionPolicyRequest replaceMutatingAdmissionPolicy(String name, V1alpha1MutatingAdmissionPolicy body) { + public APIreplaceMutatingAdmissionPolicyRequest replaceMutatingAdmissionPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body) { return new APIreplaceMutatingAdmissionPolicyRequest(name, body); } - private okhttp3.Call replaceMutatingAdmissionPolicyBindingCall(String name, V1alpha1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3755,7 +3927,7 @@ private okhttp3.Call replaceMutatingAdmissionPolicyBindingCall(String name, V1al } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceMutatingAdmissionPolicyBindingValidateBeforeCall(String name, V1alpha1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceMutatingAdmissionPolicyBinding(Async)"); @@ -3771,13 +3943,13 @@ private okhttp3.Call replaceMutatingAdmissionPolicyBindingValidateBeforeCall(Str } - private ApiResponse replaceMutatingAdmissionPolicyBindingWithHttpInfo(String name, V1alpha1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceMutatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceMutatingAdmissionPolicyBindingAsync(String name, V1alpha1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceMutatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3786,14 +3958,20 @@ private okhttp3.Call replaceMutatingAdmissionPolicyBindingAsync(String name, V1a } public class APIreplaceMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1alpha1MutatingAdmissionPolicyBinding body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceMutatingAdmissionPolicyBindingRequest(String name, V1alpha1MutatingAdmissionPolicyBinding body) { + private APIreplaceMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body) { this.name = name; this.body = body; } @@ -3803,7 +3981,7 @@ private APIreplaceMutatingAdmissionPolicyBindingRequest(String name, V1alpha1Mut * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceMutatingAdmissionPolicyBindingRequest */ - public APIreplaceMutatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIreplaceMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3813,7 +3991,7 @@ public APIreplaceMutatingAdmissionPolicyBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceMutatingAdmissionPolicyBindingRequest */ - public APIreplaceMutatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIreplaceMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3823,7 +4001,7 @@ public APIreplaceMutatingAdmissionPolicyBindingRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceMutatingAdmissionPolicyBindingRequest */ - public APIreplaceMutatingAdmissionPolicyBindingRequest fieldManager(String fieldManager) { + public APIreplaceMutatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -3833,7 +4011,7 @@ public APIreplaceMutatingAdmissionPolicyBindingRequest fieldManager(String field * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceMutatingAdmissionPolicyBindingRequest */ - public APIreplaceMutatingAdmissionPolicyBindingRequest fieldValidation(String fieldValidation) { + public APIreplaceMutatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -3844,7 +4022,8 @@ public APIreplaceMutatingAdmissionPolicyBindingRequest fieldValidation(String fi * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3860,7 +4039,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3877,7 +4057,8 @@ public V1alpha1MutatingAdmissionPolicyBinding execute() throws ApiException { * @return ApiResponse<V1alpha1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3894,7 +4075,8 @@ public ApiResponse executeWithHttpInfo() * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3913,14 +4095,15 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceMutatingAdmissionPolicyBindingRequest replaceMutatingAdmissionPolicyBinding(String name, V1alpha1MutatingAdmissionPolicyBinding body) { + public APIreplaceMutatingAdmissionPolicyBindingRequest replaceMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body) { return new APIreplaceMutatingAdmissionPolicyBindingRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1beta1Api.java index 56849527b7..f030545e6c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1beta1Api.java @@ -78,7 +78,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createValidatingAdmissionPolicyCall(V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -143,7 +143,7 @@ private okhttp3.Call createValidatingAdmissionPolicyCall(V1beta1ValidatingAdmiss } @SuppressWarnings("rawtypes") - private okhttp3.Call createValidatingAdmissionPolicyValidateBeforeCall(V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createValidatingAdmissionPolicy(Async)"); @@ -154,13 +154,13 @@ private okhttp3.Call createValidatingAdmissionPolicyValidateBeforeCall(V1beta1Va } - private ApiResponse createValidatingAdmissionPolicyWithHttpInfo(V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createValidatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createValidatingAdmissionPolicyAsync(V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createValidatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -169,13 +169,18 @@ private okhttp3.Call createValidatingAdmissionPolicyAsync(V1beta1ValidatingAdmis } public class APIcreateValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final V1beta1ValidatingAdmissionPolicy body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateValidatingAdmissionPolicyRequest(V1beta1ValidatingAdmissionPolicy body) { + private APIcreateValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body) { this.body = body; } @@ -184,7 +189,7 @@ private APIcreateValidatingAdmissionPolicyRequest(V1beta1ValidatingAdmissionPoli * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateValidatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIcreateValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -194,7 +199,7 @@ public APIcreateValidatingAdmissionPolicyRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateValidatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIcreateValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -204,7 +209,7 @@ public APIcreateValidatingAdmissionPolicyRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateValidatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest fieldManager(String fieldManager) { + public APIcreateValidatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -214,7 +219,7 @@ public APIcreateValidatingAdmissionPolicyRequest fieldManager(String fieldManage * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateValidatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest fieldValidation(String fieldValidation) { + public APIcreateValidatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -225,7 +230,8 @@ public APIcreateValidatingAdmissionPolicyRequest fieldValidation(String fieldVal * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -242,7 +248,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -260,7 +267,8 @@ public V1beta1ValidatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -278,7 +286,8 @@ public ApiResponse executeWithHttpInfo() throw * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -297,7 +306,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+ @@ -305,10 +315,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateValidatingAdmissionPolicyRequest createValidatingAdmissionPolicy(V1beta1ValidatingAdmissionPolicy body) { + public APIcreateValidatingAdmissionPolicyRequest createValidatingAdmissionPolicy(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body) { return new APIcreateValidatingAdmissionPolicyRequest(body); } - private okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1beta1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -373,7 +383,7 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1beta1Validatin } @SuppressWarnings("rawtypes") - private okhttp3.Call createValidatingAdmissionPolicyBindingValidateBeforeCall(V1beta1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createValidatingAdmissionPolicyBinding(Async)"); @@ -384,13 +394,13 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingValidateBeforeCall(V1 } - private ApiResponse createValidatingAdmissionPolicyBindingWithHttpInfo(V1beta1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createValidatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createValidatingAdmissionPolicyBindingAsync(V1beta1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createValidatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -399,13 +409,18 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingAsync(V1beta1Validati } public class APIcreateValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final V1beta1ValidatingAdmissionPolicyBinding body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateValidatingAdmissionPolicyBindingRequest(V1beta1ValidatingAdmissionPolicyBinding body) { + private APIcreateValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body) { this.body = body; } @@ -414,7 +429,7 @@ private APIcreateValidatingAdmissionPolicyBindingRequest(V1beta1ValidatingAdmiss * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateValidatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIcreateValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -424,7 +439,7 @@ public APIcreateValidatingAdmissionPolicyBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateValidatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIcreateValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -434,7 +449,7 @@ public APIcreateValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateValidatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest fieldManager(String fieldManager) { + public APIcreateValidatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -444,7 +459,7 @@ public APIcreateValidatingAdmissionPolicyBindingRequest fieldManager(String fiel * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateValidatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest fieldValidation(String fieldValidation) { + public APIcreateValidatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -455,7 +470,8 @@ public APIcreateValidatingAdmissionPolicyBindingRequest fieldValidation(String f * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -472,7 +488,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ValidatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -490,7 +507,8 @@ public V1beta1ValidatingAdmissionPolicyBinding execute() throws ApiException { * @return ApiResponse<V1beta1ValidatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -508,7 +526,8 @@ public ApiResponse executeWithHttpInfo( * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -527,7 +546,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+ @@ -535,10 +555,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateValidatingAdmissionPolicyBindingRequest createValidatingAdmissionPolicyBinding(V1beta1ValidatingAdmissionPolicyBinding body) { + public APIcreateValidatingAdmissionPolicyBindingRequest createValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body) { return new APIcreateValidatingAdmissionPolicyBindingRequest(body); } - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -643,19 +663,19 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionValidatingAdmissionPolicyWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -664,20 +684,35 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyAsync(String prett } public class APIdeleteCollectionValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionValidatingAdmissionPolicyRequest() { @@ -688,7 +723,7 @@ private APIdeleteCollectionValidatingAdmissionPolicyRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -698,7 +733,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest pretty(String pretty) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest _continue(String _continue) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -708,7 +743,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest _continue(String _con * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -718,7 +753,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest dryRun(String dryRun) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -728,7 +763,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest fieldSelector(String * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -738,7 +773,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest gracePeriodSeconds(In * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -748,7 +783,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest ignoreStoreReadErrorW * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest labelSelector(String labelSelector) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -758,7 +793,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest labelSelector(String * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest limit(Integer limit) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -768,7 +803,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest limit(Integer limit) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -778,7 +813,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest orphanDependents(Bool * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -788,7 +823,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest propagationPolicy(Str * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -798,7 +833,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersion(Strin * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -808,7 +843,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersionMatch( * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -818,7 +853,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest sendInitialEvents(Boo * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -828,7 +863,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest timeoutSeconds(Intege * @param body (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest body(V1DeleteOptions body) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -839,7 +874,8 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest body(V1DeleteOptions * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -854,7 +890,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -870,7 +907,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -886,7 +924,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -902,7 +941,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of ValidatingAdmissionPolicy * @return APIdeleteCollectionValidatingAdmissionPolicyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -911,7 +951,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionValidatingAdmissionPolicyRequest deleteCollectionValidatingAdmissionPolicy() { return new APIdeleteCollectionValidatingAdmissionPolicyRequest(); } - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1016,19 +1056,19 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1037,20 +1077,35 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingAsync(Strin } public class APIdeleteCollectionValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionValidatingAdmissionPolicyBindingRequest() { @@ -1061,7 +1116,7 @@ private APIdeleteCollectionValidatingAdmissionPolicyBindingRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1071,7 +1126,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest pretty(String * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest _continue(String _continue) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1081,7 +1136,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest _continue(Stri * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1091,7 +1146,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest dryRun(String * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1101,7 +1156,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest fieldSelector( * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1111,7 +1166,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest gracePeriodSec * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1121,7 +1176,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest ignoreStoreRea * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest labelSelector(String labelSelector) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1131,7 +1186,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest labelSelector( * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest limit(Integer limit) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1141,7 +1196,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest limit(Integer * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1151,7 +1206,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest orphanDependen * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1161,7 +1216,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest propagationPol * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1171,7 +1226,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersio * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1181,7 +1236,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersio * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1191,7 +1246,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest sendInitialEve * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1201,7 +1256,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest timeoutSeconds * @param body (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest body(V1DeleteOptions body) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1212,7 +1267,8 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest body(V1DeleteO * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1227,7 +1283,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1243,7 +1300,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1259,7 +1317,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1275,7 +1334,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of ValidatingAdmissionPolicyBinding * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1284,7 +1344,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest deleteCollectionValidatingAdmissionPolicyBinding() { return new APIdeleteCollectionValidatingAdmissionPolicyBindingRequest(); } - private okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1358,7 +1418,7 @@ private okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pre } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteValidatingAdmissionPolicyValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingAdmissionPolicy(Async)"); @@ -1369,13 +1429,13 @@ private okhttp3.Call deleteValidatingAdmissionPolicyValidateBeforeCall(String na } - private ApiResponse deleteValidatingAdmissionPolicyWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteValidatingAdmissionPolicyAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1384,16 +1444,24 @@ private okhttp3.Call deleteValidatingAdmissionPolicyAsync(String name, String pr } public class APIdeleteValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteValidatingAdmissionPolicyRequest(String name) { + private APIdeleteValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -1402,7 +1470,7 @@ private APIdeleteValidatingAdmissionPolicyRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteValidatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIdeleteValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1412,7 +1480,7 @@ public APIdeleteValidatingAdmissionPolicyRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteValidatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIdeleteValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1422,7 +1490,7 @@ public APIdeleteValidatingAdmissionPolicyRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteValidatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteValidatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1432,7 +1500,7 @@ public APIdeleteValidatingAdmissionPolicyRequest gracePeriodSeconds(Integer grac * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteValidatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteValidatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1442,7 +1510,7 @@ public APIdeleteValidatingAdmissionPolicyRequest ignoreStoreReadErrorWithCluster * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteValidatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteValidatingAdmissionPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1452,7 +1520,7 @@ public APIdeleteValidatingAdmissionPolicyRequest orphanDependents(Boolean orphan * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteValidatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest propagationPolicy(String propagationPolicy) { + public APIdeleteValidatingAdmissionPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1462,7 +1530,7 @@ public APIdeleteValidatingAdmissionPolicyRequest propagationPolicy(String propag * @param body (optional) * @return APIdeleteValidatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest body(V1DeleteOptions body) { + public APIdeleteValidatingAdmissionPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1473,7 +1541,8 @@ public APIdeleteValidatingAdmissionPolicyRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1489,7 +1558,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1506,7 +1576,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1523,7 +1594,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1541,17 +1613,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the ValidatingAdmissionPolicy (required) * @return APIdeleteValidatingAdmissionPolicyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteValidatingAdmissionPolicyRequest deleteValidatingAdmissionPolicy(String name) { + public APIdeleteValidatingAdmissionPolicyRequest deleteValidatingAdmissionPolicy(@jakarta.annotation.Nonnull String name) { return new APIdeleteValidatingAdmissionPolicyRequest(name); } - private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1625,7 +1698,7 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteValidatingAdmissionPolicyBindingValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingAdmissionPolicyBinding(Async)"); @@ -1636,13 +1709,13 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingValidateBeforeCall(St } - private ApiResponse deleteValidatingAdmissionPolicyBindingWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteValidatingAdmissionPolicyBindingAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1651,16 +1724,24 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingAsync(String name, St } public class APIdeleteValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteValidatingAdmissionPolicyBindingRequest(String name) { + private APIdeleteValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -1669,7 +1750,7 @@ private APIdeleteValidatingAdmissionPolicyBindingRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIdeleteValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1679,7 +1760,7 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIdeleteValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1689,7 +1770,7 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1699,7 +1780,7 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(Integ * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteValidatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1709,7 +1790,7 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWith * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteValidatingAdmissionPolicyBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1719,7 +1800,7 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest orphanDependents(Boolean * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest propagationPolicy(String propagationPolicy) { + public APIdeleteValidatingAdmissionPolicyBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1729,7 +1810,7 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest propagationPolicy(String * @param body (optional) * @return APIdeleteValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest body(V1DeleteOptions body) { + public APIdeleteValidatingAdmissionPolicyBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1740,7 +1821,8 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest body(V1DeleteOptions bod * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1756,7 +1838,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1773,7 +1856,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1790,7 +1874,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1808,14 +1893,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the ValidatingAdmissionPolicyBinding (required) * @return APIdeleteValidatingAdmissionPolicyBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteValidatingAdmissionPolicyBindingRequest deleteValidatingAdmissionPolicyBinding(String name) { + public APIdeleteValidatingAdmissionPolicyBindingRequest deleteValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name) { return new APIdeleteValidatingAdmissionPolicyBindingRequest(name); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -1897,7 +1983,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1912,7 +1999,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1928,7 +2016,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1944,7 +2033,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1960,7 +2050,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1969,7 +2060,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listValidatingAdmissionPolicyCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listValidatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2064,19 +2155,19 @@ private okhttp3.Call listValidatingAdmissionPolicyCall(String pretty, Boolean al } @SuppressWarnings("rawtypes") - private okhttp3.Call listValidatingAdmissionPolicyValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listValidatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listValidatingAdmissionPolicyWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listValidatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listValidatingAdmissionPolicyAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listValidatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listValidatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2085,16 +2176,27 @@ private okhttp3.Call listValidatingAdmissionPolicyAsync(String pretty, Boolean a } public class APIlistValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistValidatingAdmissionPolicyRequest() { @@ -2105,7 +2207,7 @@ private APIlistValidatingAdmissionPolicyRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIlistValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2115,7 +2217,7 @@ public APIlistValidatingAdmissionPolicyRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistValidatingAdmissionPolicyRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -2125,7 +2227,7 @@ public APIlistValidatingAdmissionPolicyRequest allowWatchBookmarks(Boolean allow * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest _continue(String _continue) { + public APIlistValidatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2135,7 +2237,7 @@ public APIlistValidatingAdmissionPolicyRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest fieldSelector(String fieldSelector) { + public APIlistValidatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2145,7 +2247,7 @@ public APIlistValidatingAdmissionPolicyRequest fieldSelector(String fieldSelecto * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest labelSelector(String labelSelector) { + public APIlistValidatingAdmissionPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2155,7 +2257,7 @@ public APIlistValidatingAdmissionPolicyRequest labelSelector(String labelSelecto * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest limit(Integer limit) { + public APIlistValidatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2165,7 +2267,7 @@ public APIlistValidatingAdmissionPolicyRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest resourceVersion(String resourceVersion) { + public APIlistValidatingAdmissionPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2175,7 +2277,7 @@ public APIlistValidatingAdmissionPolicyRequest resourceVersion(String resourceVe * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistValidatingAdmissionPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2185,7 +2287,7 @@ public APIlistValidatingAdmissionPolicyRequest resourceVersionMatch(String resou * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistValidatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2195,7 +2297,7 @@ public APIlistValidatingAdmissionPolicyRequest sendInitialEvents(Boolean sendIni * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistValidatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2205,7 +2307,7 @@ public APIlistValidatingAdmissionPolicyRequest timeoutSeconds(Integer timeoutSec * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest watch(Boolean watch) { + public APIlistValidatingAdmissionPolicyRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -2216,7 +2318,8 @@ public APIlistValidatingAdmissionPolicyRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2231,7 +2334,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ValidatingAdmissionPolicyList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2247,7 +2351,8 @@ public V1beta1ValidatingAdmissionPolicyList execute() throws ApiException { * @return ApiResponse<V1beta1ValidatingAdmissionPolicyList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2263,7 +2368,8 @@ public ApiResponse executeWithHttpInfo() t * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2279,7 +2385,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -2288,7 +2395,7 @@ public okhttp3.Call executeAsync(final ApiCallback listValidatingAdmissionPolicyBindingWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listValidatingAdmissionPolicyBindingAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2404,16 +2511,27 @@ private okhttp3.Call listValidatingAdmissionPolicyBindingAsync(String pretty, Bo } public class APIlistValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistValidatingAdmissionPolicyBindingRequest() { @@ -2424,7 +2542,7 @@ private APIlistValidatingAdmissionPolicyBindingRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIlistValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2434,7 +2552,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistValidatingAdmissionPolicyBindingRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -2444,7 +2562,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest allowWatchBookmarks(Boolea * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest _continue(String _continue) { + public APIlistValidatingAdmissionPolicyBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2454,7 +2572,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest _continue(String _continue * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest fieldSelector(String fieldSelector) { + public APIlistValidatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2464,7 +2582,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest fieldSelector(String field * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest labelSelector(String labelSelector) { + public APIlistValidatingAdmissionPolicyBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2474,7 +2592,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest labelSelector(String label * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest limit(Integer limit) { + public APIlistValidatingAdmissionPolicyBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2484,7 +2602,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest resourceVersion(String resourceVersion) { + public APIlistValidatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2494,7 +2612,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest resourceVersion(String res * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistValidatingAdmissionPolicyBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2504,7 +2622,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest resourceVersionMatch(Strin * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistValidatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2514,7 +2632,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest sendInitialEvents(Boolean * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistValidatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2524,7 +2642,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest timeoutSeconds(Integer tim * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest watch(Boolean watch) { + public APIlistValidatingAdmissionPolicyBindingRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -2535,7 +2653,8 @@ public APIlistValidatingAdmissionPolicyBindingRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2550,7 +2669,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ValidatingAdmissionPolicyBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2566,7 +2686,8 @@ public V1beta1ValidatingAdmissionPolicyBindingList execute() throws ApiException * @return ApiResponse<V1beta1ValidatingAdmissionPolicyBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2582,7 +2703,8 @@ public ApiResponse executeWithHttpI * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2598,7 +2720,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -2607,7 +2730,7 @@ public okhttp3.Call executeAsync(final ApiCallback patchValidatingAdmissionPolicyWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchValidatingAdmissionPolicyAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2708,15 +2831,22 @@ private okhttp3.Call patchValidatingAdmissionPolicyAsync(String name, V1Patch bo } public class APIpatchValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchValidatingAdmissionPolicyRequest(String name, V1Patch body) { + private APIpatchValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -2726,7 +2856,7 @@ private APIpatchValidatingAdmissionPolicyRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchValidatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIpatchValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2736,7 +2866,7 @@ public APIpatchValidatingAdmissionPolicyRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchValidatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIpatchValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2746,7 +2876,7 @@ public APIpatchValidatingAdmissionPolicyRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchValidatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest fieldManager(String fieldManager) { + public APIpatchValidatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2756,7 +2886,7 @@ public APIpatchValidatingAdmissionPolicyRequest fieldManager(String fieldManager * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchValidatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest fieldValidation(String fieldValidation) { + public APIpatchValidatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2766,7 +2896,7 @@ public APIpatchValidatingAdmissionPolicyRequest fieldValidation(String fieldVali * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchValidatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest force(Boolean force) { + public APIpatchValidatingAdmissionPolicyRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -2777,7 +2907,8 @@ public APIpatchValidatingAdmissionPolicyRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2793,7 +2924,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2810,7 +2942,8 @@ public V1beta1ValidatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2827,7 +2960,8 @@ public ApiResponse executeWithHttpInfo() throw * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2846,17 +2980,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchValidatingAdmissionPolicyRequest patchValidatingAdmissionPolicy(String name, V1Patch body) { + public APIpatchValidatingAdmissionPolicyRequest patchValidatingAdmissionPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchValidatingAdmissionPolicyRequest(name, body); } - private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2926,7 +3061,7 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Pa } @SuppressWarnings("rawtypes") - private okhttp3.Call patchValidatingAdmissionPolicyBindingValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicyBinding(Async)"); @@ -2942,13 +3077,13 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingValidateBeforeCall(Str } - private ApiResponse patchValidatingAdmissionPolicyBindingWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchValidatingAdmissionPolicyBindingAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2957,15 +3092,22 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingAsync(String name, V1P } public class APIpatchValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchValidatingAdmissionPolicyBindingRequest(String name, V1Patch body) { + private APIpatchValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -2975,7 +3117,7 @@ private APIpatchValidatingAdmissionPolicyBindingRequest(String name, V1Patch bod * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchValidatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIpatchValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2985,7 +3127,7 @@ public APIpatchValidatingAdmissionPolicyBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchValidatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIpatchValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2995,7 +3137,7 @@ public APIpatchValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchValidatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest fieldManager(String fieldManager) { + public APIpatchValidatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -3005,7 +3147,7 @@ public APIpatchValidatingAdmissionPolicyBindingRequest fieldManager(String field * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchValidatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest fieldValidation(String fieldValidation) { + public APIpatchValidatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -3015,7 +3157,7 @@ public APIpatchValidatingAdmissionPolicyBindingRequest fieldValidation(String fi * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchValidatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest force(Boolean force) { + public APIpatchValidatingAdmissionPolicyBindingRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -3026,7 +3168,8 @@ public APIpatchValidatingAdmissionPolicyBindingRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3042,7 +3185,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ValidatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3059,7 +3203,8 @@ public V1beta1ValidatingAdmissionPolicyBinding execute() throws ApiException { * @return ApiResponse<V1beta1ValidatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3076,7 +3221,8 @@ public ApiResponse executeWithHttpInfo( * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3095,17 +3241,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchValidatingAdmissionPolicyBindingRequest patchValidatingAdmissionPolicyBinding(String name, V1Patch body) { + public APIpatchValidatingAdmissionPolicyBindingRequest patchValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchValidatingAdmissionPolicyBindingRequest(name, body); } - private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3175,7 +3322,7 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Pat } @SuppressWarnings("rawtypes") - private okhttp3.Call patchValidatingAdmissionPolicyStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicyStatus(Async)"); @@ -3191,13 +3338,13 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusValidateBeforeCall(Stri } - private ApiResponse patchValidatingAdmissionPolicyStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchValidatingAdmissionPolicyStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchValidatingAdmissionPolicyStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3206,15 +3353,22 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusAsync(String name, V1Pa } public class APIpatchValidatingAdmissionPolicyStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchValidatingAdmissionPolicyStatusRequest(String name, V1Patch body) { + private APIpatchValidatingAdmissionPolicyStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -3224,7 +3378,7 @@ private APIpatchValidatingAdmissionPolicyStatusRequest(String name, V1Patch body * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchValidatingAdmissionPolicyStatusRequest */ - public APIpatchValidatingAdmissionPolicyStatusRequest pretty(String pretty) { + public APIpatchValidatingAdmissionPolicyStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3234,7 +3388,7 @@ public APIpatchValidatingAdmissionPolicyStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchValidatingAdmissionPolicyStatusRequest */ - public APIpatchValidatingAdmissionPolicyStatusRequest dryRun(String dryRun) { + public APIpatchValidatingAdmissionPolicyStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3244,7 +3398,7 @@ public APIpatchValidatingAdmissionPolicyStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchValidatingAdmissionPolicyStatusRequest */ - public APIpatchValidatingAdmissionPolicyStatusRequest fieldManager(String fieldManager) { + public APIpatchValidatingAdmissionPolicyStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -3254,7 +3408,7 @@ public APIpatchValidatingAdmissionPolicyStatusRequest fieldManager(String fieldM * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchValidatingAdmissionPolicyStatusRequest */ - public APIpatchValidatingAdmissionPolicyStatusRequest fieldValidation(String fieldValidation) { + public APIpatchValidatingAdmissionPolicyStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -3264,7 +3418,7 @@ public APIpatchValidatingAdmissionPolicyStatusRequest fieldValidation(String fie * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchValidatingAdmissionPolicyStatusRequest */ - public APIpatchValidatingAdmissionPolicyStatusRequest force(Boolean force) { + public APIpatchValidatingAdmissionPolicyStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -3275,7 +3429,8 @@ public APIpatchValidatingAdmissionPolicyStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3291,7 +3446,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3308,7 +3464,8 @@ public V1beta1ValidatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3325,7 +3482,8 @@ public ApiResponse executeWithHttpInfo() throw * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3344,17 +3502,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchValidatingAdmissionPolicyStatusRequest patchValidatingAdmissionPolicyStatus(String name, V1Patch body) { + public APIpatchValidatingAdmissionPolicyStatusRequest patchValidatingAdmissionPolicyStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchValidatingAdmissionPolicyStatusRequest(name, body); } - private okhttp3.Call readValidatingAdmissionPolicyCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3407,7 +3566,7 @@ private okhttp3.Call readValidatingAdmissionPolicyCall(String name, String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicy(Async)"); @@ -3418,13 +3577,13 @@ private okhttp3.Call readValidatingAdmissionPolicyValidateBeforeCall(String name } - private ApiResponse readValidatingAdmissionPolicyWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readValidatingAdmissionPolicyValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readValidatingAdmissionPolicyAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readValidatingAdmissionPolicyValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3433,10 +3592,12 @@ private okhttp3.Call readValidatingAdmissionPolicyAsync(String name, String pret } public class APIreadValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadValidatingAdmissionPolicyRequest(String name) { + private APIreadValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -3445,7 +3606,7 @@ private APIreadValidatingAdmissionPolicyRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadValidatingAdmissionPolicyRequest */ - public APIreadValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIreadValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3456,7 +3617,8 @@ public APIreadValidatingAdmissionPolicyRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3471,7 +3633,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3487,7 +3650,8 @@ public V1beta1ValidatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3503,7 +3667,8 @@ public ApiResponse executeWithHttpInfo() throw * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3520,16 +3685,17 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadValidatingAdmissionPolicyRequest readValidatingAdmissionPolicy(String name) { + public APIreadValidatingAdmissionPolicyRequest readValidatingAdmissionPolicy(@jakarta.annotation.Nonnull String name) { return new APIreadValidatingAdmissionPolicyRequest(name); } - private okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3582,7 +3748,7 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyBindingValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicyBinding(Async)"); @@ -3593,13 +3759,13 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingValidateBeforeCall(Stri } - private ApiResponse readValidatingAdmissionPolicyBindingWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readValidatingAdmissionPolicyBindingAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3608,10 +3774,12 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingAsync(String name, Stri } public class APIreadValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadValidatingAdmissionPolicyBindingRequest(String name) { + private APIreadValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -3620,7 +3788,7 @@ private APIreadValidatingAdmissionPolicyBindingRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadValidatingAdmissionPolicyBindingRequest */ - public APIreadValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIreadValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3631,7 +3799,8 @@ public APIreadValidatingAdmissionPolicyBindingRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3646,7 +3815,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ValidatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3662,7 +3832,8 @@ public V1beta1ValidatingAdmissionPolicyBinding execute() throws ApiException { * @return ApiResponse<V1beta1ValidatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3678,7 +3849,8 @@ public ApiResponse executeWithHttpInfo( * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3695,16 +3867,17 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadValidatingAdmissionPolicyBindingRequest readValidatingAdmissionPolicyBinding(String name) { + public APIreadValidatingAdmissionPolicyBindingRequest readValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name) { return new APIreadValidatingAdmissionPolicyBindingRequest(name); } - private okhttp3.Call readValidatingAdmissionPolicyStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3757,7 +3930,7 @@ private okhttp3.Call readValidatingAdmissionPolicyStatusCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicyStatus(Async)"); @@ -3768,13 +3941,13 @@ private okhttp3.Call readValidatingAdmissionPolicyStatusValidateBeforeCall(Strin } - private ApiResponse readValidatingAdmissionPolicyStatusWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readValidatingAdmissionPolicyStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readValidatingAdmissionPolicyStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readValidatingAdmissionPolicyStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readValidatingAdmissionPolicyStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3783,10 +3956,12 @@ private okhttp3.Call readValidatingAdmissionPolicyStatusAsync(String name, Strin } public class APIreadValidatingAdmissionPolicyStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadValidatingAdmissionPolicyStatusRequest(String name) { + private APIreadValidatingAdmissionPolicyStatusRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -3795,7 +3970,7 @@ private APIreadValidatingAdmissionPolicyStatusRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadValidatingAdmissionPolicyStatusRequest */ - public APIreadValidatingAdmissionPolicyStatusRequest pretty(String pretty) { + public APIreadValidatingAdmissionPolicyStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3806,7 +3981,8 @@ public APIreadValidatingAdmissionPolicyStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3821,7 +3997,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3837,7 +4014,8 @@ public V1beta1ValidatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3853,7 +4031,8 @@ public ApiResponse executeWithHttpInfo() throw * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3870,16 +4049,17 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadValidatingAdmissionPolicyStatusRequest readValidatingAdmissionPolicyStatus(String name) { + public APIreadValidatingAdmissionPolicyStatusRequest readValidatingAdmissionPolicyStatus(@jakarta.annotation.Nonnull String name) { return new APIreadValidatingAdmissionPolicyStatusRequest(name); } - private okhttp3.Call replaceValidatingAdmissionPolicyCall(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3945,7 +4125,7 @@ private okhttp3.Call replaceValidatingAdmissionPolicyCall(String name, V1beta1Va } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingAdmissionPolicyValidateBeforeCall(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceValidatingAdmissionPolicy(Async)"); @@ -3961,13 +4141,13 @@ private okhttp3.Call replaceValidatingAdmissionPolicyValidateBeforeCall(String n } - private ApiResponse replaceValidatingAdmissionPolicyWithHttpInfo(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceValidatingAdmissionPolicyAsync(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3976,14 +4156,20 @@ private okhttp3.Call replaceValidatingAdmissionPolicyAsync(String name, V1beta1V } public class APIreplaceValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1beta1ValidatingAdmissionPolicy body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceValidatingAdmissionPolicyRequest(String name, V1beta1ValidatingAdmissionPolicy body) { + private APIreplaceValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body) { this.name = name; this.body = body; } @@ -3993,7 +4179,7 @@ private APIreplaceValidatingAdmissionPolicyRequest(String name, V1beta1Validatin * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceValidatingAdmissionPolicyRequest */ - public APIreplaceValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIreplaceValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4003,7 +4189,7 @@ public APIreplaceValidatingAdmissionPolicyRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceValidatingAdmissionPolicyRequest */ - public APIreplaceValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIreplaceValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4013,7 +4199,7 @@ public APIreplaceValidatingAdmissionPolicyRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceValidatingAdmissionPolicyRequest */ - public APIreplaceValidatingAdmissionPolicyRequest fieldManager(String fieldManager) { + public APIreplaceValidatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -4023,7 +4209,7 @@ public APIreplaceValidatingAdmissionPolicyRequest fieldManager(String fieldManag * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceValidatingAdmissionPolicyRequest */ - public APIreplaceValidatingAdmissionPolicyRequest fieldValidation(String fieldValidation) { + public APIreplaceValidatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -4034,7 +4220,8 @@ public APIreplaceValidatingAdmissionPolicyRequest fieldValidation(String fieldVa * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4050,7 +4237,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4067,7 +4255,8 @@ public V1beta1ValidatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4084,7 +4273,8 @@ public ApiResponse executeWithHttpInfo() throw * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4103,17 +4293,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceValidatingAdmissionPolicyRequest replaceValidatingAdmissionPolicy(String name, V1beta1ValidatingAdmissionPolicy body) { + public APIreplaceValidatingAdmissionPolicyRequest replaceValidatingAdmissionPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body) { return new APIreplaceValidatingAdmissionPolicyRequest(name, body); } - private okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(String name, V1beta1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4179,7 +4370,7 @@ private okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(String name, V1 } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingAdmissionPolicyBindingValidateBeforeCall(String name, V1beta1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceValidatingAdmissionPolicyBinding(Async)"); @@ -4195,13 +4386,13 @@ private okhttp3.Call replaceValidatingAdmissionPolicyBindingValidateBeforeCall(S } - private ApiResponse replaceValidatingAdmissionPolicyBindingWithHttpInfo(String name, V1beta1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceValidatingAdmissionPolicyBindingAsync(String name, V1beta1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4210,14 +4401,20 @@ private okhttp3.Call replaceValidatingAdmissionPolicyBindingAsync(String name, V } public class APIreplaceValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1beta1ValidatingAdmissionPolicyBinding body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceValidatingAdmissionPolicyBindingRequest(String name, V1beta1ValidatingAdmissionPolicyBinding body) { + private APIreplaceValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body) { this.name = name; this.body = body; } @@ -4227,7 +4424,7 @@ private APIreplaceValidatingAdmissionPolicyBindingRequest(String name, V1beta1Va * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceValidatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIreplaceValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4237,7 +4434,7 @@ public APIreplaceValidatingAdmissionPolicyBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceValidatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIreplaceValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4247,7 +4444,7 @@ public APIreplaceValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceValidatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyBindingRequest fieldManager(String fieldManager) { + public APIreplaceValidatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -4257,7 +4454,7 @@ public APIreplaceValidatingAdmissionPolicyBindingRequest fieldManager(String fie * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceValidatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyBindingRequest fieldValidation(String fieldValidation) { + public APIreplaceValidatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -4268,7 +4465,8 @@ public APIreplaceValidatingAdmissionPolicyBindingRequest fieldValidation(String * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4284,7 +4482,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ValidatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4301,7 +4500,8 @@ public V1beta1ValidatingAdmissionPolicyBinding execute() throws ApiException { * @return ApiResponse<V1beta1ValidatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4318,7 +4518,8 @@ public ApiResponse executeWithHttpInfo( * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4337,17 +4538,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceValidatingAdmissionPolicyBindingRequest replaceValidatingAdmissionPolicyBinding(String name, V1beta1ValidatingAdmissionPolicyBinding body) { + public APIreplaceValidatingAdmissionPolicyBindingRequest replaceValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body) { return new APIreplaceValidatingAdmissionPolicyBindingRequest(name, body); } - private okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4413,7 +4615,7 @@ private okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(String name, V1b } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingAdmissionPolicyStatusValidateBeforeCall(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceValidatingAdmissionPolicyStatus(Async)"); @@ -4429,13 +4631,13 @@ private okhttp3.Call replaceValidatingAdmissionPolicyStatusValidateBeforeCall(St } - private ApiResponse replaceValidatingAdmissionPolicyStatusWithHttpInfo(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceValidatingAdmissionPolicyStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceValidatingAdmissionPolicyStatusAsync(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4444,14 +4646,20 @@ private okhttp3.Call replaceValidatingAdmissionPolicyStatusAsync(String name, V1 } public class APIreplaceValidatingAdmissionPolicyStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1beta1ValidatingAdmissionPolicy body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceValidatingAdmissionPolicyStatusRequest(String name, V1beta1ValidatingAdmissionPolicy body) { + private APIreplaceValidatingAdmissionPolicyStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body) { this.name = name; this.body = body; } @@ -4461,7 +4669,7 @@ private APIreplaceValidatingAdmissionPolicyStatusRequest(String name, V1beta1Val * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceValidatingAdmissionPolicyStatusRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest pretty(String pretty) { + public APIreplaceValidatingAdmissionPolicyStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4471,7 +4679,7 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceValidatingAdmissionPolicyStatusRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest dryRun(String dryRun) { + public APIreplaceValidatingAdmissionPolicyStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4481,7 +4689,7 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceValidatingAdmissionPolicyStatusRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest fieldManager(String fieldManager) { + public APIreplaceValidatingAdmissionPolicyStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -4491,7 +4699,7 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest fieldManager(String fiel * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceValidatingAdmissionPolicyStatusRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceValidatingAdmissionPolicyStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -4502,7 +4710,8 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest fieldValidation(String f * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4518,7 +4727,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4535,7 +4745,8 @@ public V1beta1ValidatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4552,7 +4763,8 @@ public ApiResponse executeWithHttpInfo() throw * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4571,14 +4783,15 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceValidatingAdmissionPolicyStatusRequest replaceValidatingAdmissionPolicyStatus(String name, V1beta1ValidatingAdmissionPolicy body) { + public APIreplaceValidatingAdmissionPolicyStatusRequest replaceValidatingAdmissionPolicyStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body) { return new APIreplaceValidatingAdmissionPolicyStatusRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsApi.java index 7544849e1c..72f4d95fe4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsApi.java @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1Api.java index a5772dd044..6849111e79 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1Api.java @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createCustomResourceDefinitionCall(V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCustomResourceDefinitionCall(@jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -141,7 +141,7 @@ private okhttp3.Call createCustomResourceDefinitionCall(V1CustomResourceDefiniti } @SuppressWarnings("rawtypes") - private okhttp3.Call createCustomResourceDefinitionValidateBeforeCall(V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCustomResourceDefinitionValidateBeforeCall(@jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createCustomResourceDefinition(Async)"); @@ -152,13 +152,13 @@ private okhttp3.Call createCustomResourceDefinitionValidateBeforeCall(V1CustomRe } - private ApiResponse createCustomResourceDefinitionWithHttpInfo(V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createCustomResourceDefinitionWithHttpInfo(@jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createCustomResourceDefinitionValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createCustomResourceDefinitionAsync(V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCustomResourceDefinitionAsync(@jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCustomResourceDefinitionValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -167,13 +167,18 @@ private okhttp3.Call createCustomResourceDefinitionAsync(V1CustomResourceDefinit } public class APIcreateCustomResourceDefinitionRequest { + @jakarta.annotation.Nonnull private final V1CustomResourceDefinition body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateCustomResourceDefinitionRequest(V1CustomResourceDefinition body) { + private APIcreateCustomResourceDefinitionRequest(@jakarta.annotation.Nonnull V1CustomResourceDefinition body) { this.body = body; } @@ -182,7 +187,7 @@ private APIcreateCustomResourceDefinitionRequest(V1CustomResourceDefinition body * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateCustomResourceDefinitionRequest */ - public APIcreateCustomResourceDefinitionRequest pretty(String pretty) { + public APIcreateCustomResourceDefinitionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -192,7 +197,7 @@ public APIcreateCustomResourceDefinitionRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateCustomResourceDefinitionRequest */ - public APIcreateCustomResourceDefinitionRequest dryRun(String dryRun) { + public APIcreateCustomResourceDefinitionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -202,7 +207,7 @@ public APIcreateCustomResourceDefinitionRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateCustomResourceDefinitionRequest */ - public APIcreateCustomResourceDefinitionRequest fieldManager(String fieldManager) { + public APIcreateCustomResourceDefinitionRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -212,7 +217,7 @@ public APIcreateCustomResourceDefinitionRequest fieldManager(String fieldManager * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateCustomResourceDefinitionRequest */ - public APIcreateCustomResourceDefinitionRequest fieldValidation(String fieldValidation) { + public APIcreateCustomResourceDefinitionRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -223,7 +228,8 @@ public APIcreateCustomResourceDefinitionRequest fieldValidation(String fieldVali * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -240,7 +246,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -258,7 +265,8 @@ public V1CustomResourceDefinition execute() throws ApiException { * @return ApiResponse<V1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -276,7 +284,8 @@ public ApiResponse executeWithHttpInfo() throws ApiE * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -295,7 +304,8 @@ public okhttp3.Call executeAsync(final ApiCallback _ * @param body (required) * @return APIcreateCustomResourceDefinitionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -303,10 +313,10 @@ public okhttp3.Call executeAsync(final ApiCallback _
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateCustomResourceDefinitionRequest createCustomResourceDefinition(V1CustomResourceDefinition body) { + public APIcreateCustomResourceDefinitionRequest createCustomResourceDefinition(@jakarta.annotation.Nonnull V1CustomResourceDefinition body) { return new APIcreateCustomResourceDefinitionRequest(body); } - private okhttp3.Call deleteCollectionCustomResourceDefinitionCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCustomResourceDefinitionCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -411,19 +421,19 @@ private okhttp3.Call deleteCollectionCustomResourceDefinitionCall(String pretty, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionCustomResourceDefinitionValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCustomResourceDefinitionValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionCustomResourceDefinitionCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionCustomResourceDefinitionWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionCustomResourceDefinitionWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionCustomResourceDefinitionValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionCustomResourceDefinitionAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCustomResourceDefinitionAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionCustomResourceDefinitionValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -432,20 +442,35 @@ private okhttp3.Call deleteCollectionCustomResourceDefinitionAsync(String pretty } public class APIdeleteCollectionCustomResourceDefinitionRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionCustomResourceDefinitionRequest() { @@ -456,7 +481,7 @@ private APIdeleteCollectionCustomResourceDefinitionRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest pretty(String pretty) { + public APIdeleteCollectionCustomResourceDefinitionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -466,7 +491,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest pretty(String pretty) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest _continue(String _continue) { + public APIdeleteCollectionCustomResourceDefinitionRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -476,7 +501,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest _continue(String _cont * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest dryRun(String dryRun) { + public APIdeleteCollectionCustomResourceDefinitionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -486,7 +511,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest dryRun(String dryRun) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionCustomResourceDefinitionRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -496,7 +521,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest fieldSelector(String f * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionCustomResourceDefinitionRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -506,7 +531,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest gracePeriodSeconds(Int * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionCustomResourceDefinitionRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -516,7 +541,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest ignoreStoreReadErrorWi * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest labelSelector(String labelSelector) { + public APIdeleteCollectionCustomResourceDefinitionRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -526,7 +551,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest labelSelector(String l * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest limit(Integer limit) { + public APIdeleteCollectionCustomResourceDefinitionRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -536,7 +561,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionCustomResourceDefinitionRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -546,7 +571,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest orphanDependents(Boole * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionCustomResourceDefinitionRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -556,7 +581,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest propagationPolicy(Stri * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionCustomResourceDefinitionRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -566,7 +591,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest resourceVersion(String * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionCustomResourceDefinitionRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -576,7 +601,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest resourceVersionMatch(S * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionCustomResourceDefinitionRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -586,7 +611,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest sendInitialEvents(Bool * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionCustomResourceDefinitionRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -596,7 +621,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest timeoutSeconds(Integer * @param body (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest body(V1DeleteOptions body) { + public APIdeleteCollectionCustomResourceDefinitionRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -607,7 +632,8 @@ public APIdeleteCollectionCustomResourceDefinitionRequest body(V1DeleteOptions b * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -622,7 +648,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -638,7 +665,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -654,7 +682,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -670,7 +699,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of CustomResourceDefinition * @return APIdeleteCollectionCustomResourceDefinitionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -679,7 +709,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionCustomResourceDefinitionRequest deleteCollectionCustomResourceDefinition() { return new APIdeleteCollectionCustomResourceDefinitionRequest(); } - private okhttp3.Call deleteCustomResourceDefinitionCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCustomResourceDefinitionCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -753,7 +783,7 @@ private okhttp3.Call deleteCustomResourceDefinitionCall(String name, String pret } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCustomResourceDefinitionValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCustomResourceDefinitionValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteCustomResourceDefinition(Async)"); @@ -764,13 +794,13 @@ private okhttp3.Call deleteCustomResourceDefinitionValidateBeforeCall(String nam } - private ApiResponse deleteCustomResourceDefinitionWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCustomResourceDefinitionWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCustomResourceDefinitionValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCustomResourceDefinitionAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCustomResourceDefinitionAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCustomResourceDefinitionValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -779,16 +809,24 @@ private okhttp3.Call deleteCustomResourceDefinitionAsync(String name, String pre } public class APIdeleteCustomResourceDefinitionRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCustomResourceDefinitionRequest(String name) { + private APIdeleteCustomResourceDefinitionRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -797,7 +835,7 @@ private APIdeleteCustomResourceDefinitionRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCustomResourceDefinitionRequest */ - public APIdeleteCustomResourceDefinitionRequest pretty(String pretty) { + public APIdeleteCustomResourceDefinitionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -807,7 +845,7 @@ public APIdeleteCustomResourceDefinitionRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCustomResourceDefinitionRequest */ - public APIdeleteCustomResourceDefinitionRequest dryRun(String dryRun) { + public APIdeleteCustomResourceDefinitionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -817,7 +855,7 @@ public APIdeleteCustomResourceDefinitionRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCustomResourceDefinitionRequest */ - public APIdeleteCustomResourceDefinitionRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCustomResourceDefinitionRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -827,7 +865,7 @@ public APIdeleteCustomResourceDefinitionRequest gracePeriodSeconds(Integer grace * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCustomResourceDefinitionRequest */ - public APIdeleteCustomResourceDefinitionRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCustomResourceDefinitionRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -837,7 +875,7 @@ public APIdeleteCustomResourceDefinitionRequest ignoreStoreReadErrorWithClusterB * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCustomResourceDefinitionRequest */ - public APIdeleteCustomResourceDefinitionRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCustomResourceDefinitionRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -847,7 +885,7 @@ public APIdeleteCustomResourceDefinitionRequest orphanDependents(Boolean orphanD * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCustomResourceDefinitionRequest */ - public APIdeleteCustomResourceDefinitionRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCustomResourceDefinitionRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -857,7 +895,7 @@ public APIdeleteCustomResourceDefinitionRequest propagationPolicy(String propaga * @param body (optional) * @return APIdeleteCustomResourceDefinitionRequest */ - public APIdeleteCustomResourceDefinitionRequest body(V1DeleteOptions body) { + public APIdeleteCustomResourceDefinitionRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -868,7 +906,8 @@ public APIdeleteCustomResourceDefinitionRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -884,7 +923,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -901,7 +941,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -918,7 +959,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -936,14 +978,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the CustomResourceDefinition (required) * @return APIdeleteCustomResourceDefinitionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteCustomResourceDefinitionRequest deleteCustomResourceDefinition(String name) { + public APIdeleteCustomResourceDefinitionRequest deleteCustomResourceDefinition(@jakarta.annotation.Nonnull String name) { return new APIdeleteCustomResourceDefinitionRequest(name); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -1025,7 +1068,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1040,7 +1084,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1056,7 +1101,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1072,7 +1118,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1088,7 +1135,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1097,7 +1145,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listCustomResourceDefinitionCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCustomResourceDefinitionCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1192,19 +1240,19 @@ private okhttp3.Call listCustomResourceDefinitionCall(String pretty, Boolean all } @SuppressWarnings("rawtypes") - private okhttp3.Call listCustomResourceDefinitionValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCustomResourceDefinitionValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listCustomResourceDefinitionCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listCustomResourceDefinitionWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listCustomResourceDefinitionWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listCustomResourceDefinitionValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listCustomResourceDefinitionAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCustomResourceDefinitionAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCustomResourceDefinitionValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1213,16 +1261,27 @@ private okhttp3.Call listCustomResourceDefinitionAsync(String pretty, Boolean al } public class APIlistCustomResourceDefinitionRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistCustomResourceDefinitionRequest() { @@ -1233,7 +1292,7 @@ private APIlistCustomResourceDefinitionRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistCustomResourceDefinitionRequest */ - public APIlistCustomResourceDefinitionRequest pretty(String pretty) { + public APIlistCustomResourceDefinitionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1243,7 +1302,7 @@ public APIlistCustomResourceDefinitionRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistCustomResourceDefinitionRequest */ - public APIlistCustomResourceDefinitionRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistCustomResourceDefinitionRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1253,7 +1312,7 @@ public APIlistCustomResourceDefinitionRequest allowWatchBookmarks(Boolean allowW * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistCustomResourceDefinitionRequest */ - public APIlistCustomResourceDefinitionRequest _continue(String _continue) { + public APIlistCustomResourceDefinitionRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1263,7 +1322,7 @@ public APIlistCustomResourceDefinitionRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistCustomResourceDefinitionRequest */ - public APIlistCustomResourceDefinitionRequest fieldSelector(String fieldSelector) { + public APIlistCustomResourceDefinitionRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1273,7 +1332,7 @@ public APIlistCustomResourceDefinitionRequest fieldSelector(String fieldSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistCustomResourceDefinitionRequest */ - public APIlistCustomResourceDefinitionRequest labelSelector(String labelSelector) { + public APIlistCustomResourceDefinitionRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1283,7 +1342,7 @@ public APIlistCustomResourceDefinitionRequest labelSelector(String labelSelector * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistCustomResourceDefinitionRequest */ - public APIlistCustomResourceDefinitionRequest limit(Integer limit) { + public APIlistCustomResourceDefinitionRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1293,7 +1352,7 @@ public APIlistCustomResourceDefinitionRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistCustomResourceDefinitionRequest */ - public APIlistCustomResourceDefinitionRequest resourceVersion(String resourceVersion) { + public APIlistCustomResourceDefinitionRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1303,7 +1362,7 @@ public APIlistCustomResourceDefinitionRequest resourceVersion(String resourceVer * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistCustomResourceDefinitionRequest */ - public APIlistCustomResourceDefinitionRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistCustomResourceDefinitionRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1313,7 +1372,7 @@ public APIlistCustomResourceDefinitionRequest resourceVersionMatch(String resour * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistCustomResourceDefinitionRequest */ - public APIlistCustomResourceDefinitionRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistCustomResourceDefinitionRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1323,7 +1382,7 @@ public APIlistCustomResourceDefinitionRequest sendInitialEvents(Boolean sendInit * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistCustomResourceDefinitionRequest */ - public APIlistCustomResourceDefinitionRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistCustomResourceDefinitionRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1333,7 +1392,7 @@ public APIlistCustomResourceDefinitionRequest timeoutSeconds(Integer timeoutSeco * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistCustomResourceDefinitionRequest */ - public APIlistCustomResourceDefinitionRequest watch(Boolean watch) { + public APIlistCustomResourceDefinitionRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1344,7 +1403,8 @@ public APIlistCustomResourceDefinitionRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1359,7 +1419,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CustomResourceDefinitionList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1375,7 +1436,8 @@ public V1CustomResourceDefinitionList execute() throws ApiException { * @return ApiResponse<V1CustomResourceDefinitionList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1391,7 +1453,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1407,7 +1470,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -1416,7 +1480,7 @@ public okhttp3.Call executeAsync(final ApiCallback patchCustomResourceDefinitionWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchCustomResourceDefinitionWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchCustomResourceDefinitionValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchCustomResourceDefinitionAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCustomResourceDefinitionAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchCustomResourceDefinitionValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1517,15 +1581,22 @@ private okhttp3.Call patchCustomResourceDefinitionAsync(String name, V1Patch bod } public class APIpatchCustomResourceDefinitionRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchCustomResourceDefinitionRequest(String name, V1Patch body) { + private APIpatchCustomResourceDefinitionRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -1535,7 +1606,7 @@ private APIpatchCustomResourceDefinitionRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchCustomResourceDefinitionRequest */ - public APIpatchCustomResourceDefinitionRequest pretty(String pretty) { + public APIpatchCustomResourceDefinitionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1545,7 +1616,7 @@ public APIpatchCustomResourceDefinitionRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchCustomResourceDefinitionRequest */ - public APIpatchCustomResourceDefinitionRequest dryRun(String dryRun) { + public APIpatchCustomResourceDefinitionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1555,7 +1626,7 @@ public APIpatchCustomResourceDefinitionRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchCustomResourceDefinitionRequest */ - public APIpatchCustomResourceDefinitionRequest fieldManager(String fieldManager) { + public APIpatchCustomResourceDefinitionRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1565,7 +1636,7 @@ public APIpatchCustomResourceDefinitionRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchCustomResourceDefinitionRequest */ - public APIpatchCustomResourceDefinitionRequest fieldValidation(String fieldValidation) { + public APIpatchCustomResourceDefinitionRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1575,7 +1646,7 @@ public APIpatchCustomResourceDefinitionRequest fieldValidation(String fieldValid * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchCustomResourceDefinitionRequest */ - public APIpatchCustomResourceDefinitionRequest force(Boolean force) { + public APIpatchCustomResourceDefinitionRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1586,7 +1657,8 @@ public APIpatchCustomResourceDefinitionRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1602,7 +1674,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1619,7 +1692,8 @@ public V1CustomResourceDefinition execute() throws ApiException { * @return ApiResponse<V1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1636,7 +1710,8 @@ public ApiResponse executeWithHttpInfo() throws ApiE * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1655,17 +1730,18 @@ public okhttp3.Call executeAsync(final ApiCallback _ * @param body (required) * @return APIpatchCustomResourceDefinitionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchCustomResourceDefinitionRequest patchCustomResourceDefinition(String name, V1Patch body) { + public APIpatchCustomResourceDefinitionRequest patchCustomResourceDefinition(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchCustomResourceDefinitionRequest(name, body); } - private okhttp3.Call patchCustomResourceDefinitionStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCustomResourceDefinitionStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1735,7 +1811,7 @@ private okhttp3.Call patchCustomResourceDefinitionStatusCall(String name, V1Patc } @SuppressWarnings("rawtypes") - private okhttp3.Call patchCustomResourceDefinitionStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCustomResourceDefinitionStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchCustomResourceDefinitionStatus(Async)"); @@ -1751,13 +1827,13 @@ private okhttp3.Call patchCustomResourceDefinitionStatusValidateBeforeCall(Strin } - private ApiResponse patchCustomResourceDefinitionStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchCustomResourceDefinitionStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchCustomResourceDefinitionStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchCustomResourceDefinitionStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCustomResourceDefinitionStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchCustomResourceDefinitionStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1766,15 +1842,22 @@ private okhttp3.Call patchCustomResourceDefinitionStatusAsync(String name, V1Pat } public class APIpatchCustomResourceDefinitionStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchCustomResourceDefinitionStatusRequest(String name, V1Patch body) { + private APIpatchCustomResourceDefinitionStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -1784,7 +1867,7 @@ private APIpatchCustomResourceDefinitionStatusRequest(String name, V1Patch body) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchCustomResourceDefinitionStatusRequest */ - public APIpatchCustomResourceDefinitionStatusRequest pretty(String pretty) { + public APIpatchCustomResourceDefinitionStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1794,7 +1877,7 @@ public APIpatchCustomResourceDefinitionStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchCustomResourceDefinitionStatusRequest */ - public APIpatchCustomResourceDefinitionStatusRequest dryRun(String dryRun) { + public APIpatchCustomResourceDefinitionStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1804,7 +1887,7 @@ public APIpatchCustomResourceDefinitionStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchCustomResourceDefinitionStatusRequest */ - public APIpatchCustomResourceDefinitionStatusRequest fieldManager(String fieldManager) { + public APIpatchCustomResourceDefinitionStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1814,7 +1897,7 @@ public APIpatchCustomResourceDefinitionStatusRequest fieldManager(String fieldMa * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchCustomResourceDefinitionStatusRequest */ - public APIpatchCustomResourceDefinitionStatusRequest fieldValidation(String fieldValidation) { + public APIpatchCustomResourceDefinitionStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1824,7 +1907,7 @@ public APIpatchCustomResourceDefinitionStatusRequest fieldValidation(String fiel * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchCustomResourceDefinitionStatusRequest */ - public APIpatchCustomResourceDefinitionStatusRequest force(Boolean force) { + public APIpatchCustomResourceDefinitionStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1835,7 +1918,8 @@ public APIpatchCustomResourceDefinitionStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1851,7 +1935,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1868,7 +1953,8 @@ public V1CustomResourceDefinition execute() throws ApiException { * @return ApiResponse<V1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1885,7 +1971,8 @@ public ApiResponse executeWithHttpInfo() throws ApiE * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1904,17 +1991,18 @@ public okhttp3.Call executeAsync(final ApiCallback _ * @param body (required) * @return APIpatchCustomResourceDefinitionStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchCustomResourceDefinitionStatusRequest patchCustomResourceDefinitionStatus(String name, V1Patch body) { + public APIpatchCustomResourceDefinitionStatusRequest patchCustomResourceDefinitionStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchCustomResourceDefinitionStatusRequest(name, body); } - private okhttp3.Call readCustomResourceDefinitionCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCustomResourceDefinitionCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1967,7 +2055,7 @@ private okhttp3.Call readCustomResourceDefinitionCall(String name, String pretty } @SuppressWarnings("rawtypes") - private okhttp3.Call readCustomResourceDefinitionValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCustomResourceDefinitionValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readCustomResourceDefinition(Async)"); @@ -1978,13 +2066,13 @@ private okhttp3.Call readCustomResourceDefinitionValidateBeforeCall(String name, } - private ApiResponse readCustomResourceDefinitionWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readCustomResourceDefinitionWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readCustomResourceDefinitionValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readCustomResourceDefinitionAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCustomResourceDefinitionAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readCustomResourceDefinitionValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1993,10 +2081,12 @@ private okhttp3.Call readCustomResourceDefinitionAsync(String name, String prett } public class APIreadCustomResourceDefinitionRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadCustomResourceDefinitionRequest(String name) { + private APIreadCustomResourceDefinitionRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -2005,7 +2095,7 @@ private APIreadCustomResourceDefinitionRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadCustomResourceDefinitionRequest */ - public APIreadCustomResourceDefinitionRequest pretty(String pretty) { + public APIreadCustomResourceDefinitionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2016,7 +2106,8 @@ public APIreadCustomResourceDefinitionRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2031,7 +2122,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2047,7 +2139,8 @@ public V1CustomResourceDefinition execute() throws ApiException { * @return ApiResponse<V1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2063,7 +2156,8 @@ public ApiResponse executeWithHttpInfo() throws ApiE * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2080,16 +2174,17 @@ public okhttp3.Call executeAsync(final ApiCallback _ * @param name name of the CustomResourceDefinition (required) * @return APIreadCustomResourceDefinitionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadCustomResourceDefinitionRequest readCustomResourceDefinition(String name) { + public APIreadCustomResourceDefinitionRequest readCustomResourceDefinition(@jakarta.annotation.Nonnull String name) { return new APIreadCustomResourceDefinitionRequest(name); } - private okhttp3.Call readCustomResourceDefinitionStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCustomResourceDefinitionStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2142,7 +2237,7 @@ private okhttp3.Call readCustomResourceDefinitionStatusCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call readCustomResourceDefinitionStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCustomResourceDefinitionStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readCustomResourceDefinitionStatus(Async)"); @@ -2153,13 +2248,13 @@ private okhttp3.Call readCustomResourceDefinitionStatusValidateBeforeCall(String } - private ApiResponse readCustomResourceDefinitionStatusWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readCustomResourceDefinitionStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readCustomResourceDefinitionStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readCustomResourceDefinitionStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCustomResourceDefinitionStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readCustomResourceDefinitionStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2168,10 +2263,12 @@ private okhttp3.Call readCustomResourceDefinitionStatusAsync(String name, String } public class APIreadCustomResourceDefinitionStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadCustomResourceDefinitionStatusRequest(String name) { + private APIreadCustomResourceDefinitionStatusRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -2180,7 +2277,7 @@ private APIreadCustomResourceDefinitionStatusRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadCustomResourceDefinitionStatusRequest */ - public APIreadCustomResourceDefinitionStatusRequest pretty(String pretty) { + public APIreadCustomResourceDefinitionStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2191,7 +2288,8 @@ public APIreadCustomResourceDefinitionStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2206,7 +2304,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2222,7 +2321,8 @@ public V1CustomResourceDefinition execute() throws ApiException { * @return ApiResponse<V1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2238,7 +2338,8 @@ public ApiResponse executeWithHttpInfo() throws ApiE * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2255,16 +2356,17 @@ public okhttp3.Call executeAsync(final ApiCallback _ * @param name name of the CustomResourceDefinition (required) * @return APIreadCustomResourceDefinitionStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadCustomResourceDefinitionStatusRequest readCustomResourceDefinitionStatus(String name) { + public APIreadCustomResourceDefinitionStatusRequest readCustomResourceDefinitionStatus(@jakarta.annotation.Nonnull String name) { return new APIreadCustomResourceDefinitionStatusRequest(name); } - private okhttp3.Call replaceCustomResourceDefinitionCall(String name, V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCustomResourceDefinitionCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2330,7 +2432,7 @@ private okhttp3.Call replaceCustomResourceDefinitionCall(String name, V1CustomRe } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceCustomResourceDefinitionValidateBeforeCall(String name, V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCustomResourceDefinitionValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceCustomResourceDefinition(Async)"); @@ -2346,13 +2448,13 @@ private okhttp3.Call replaceCustomResourceDefinitionValidateBeforeCall(String na } - private ApiResponse replaceCustomResourceDefinitionWithHttpInfo(String name, V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceCustomResourceDefinitionWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceCustomResourceDefinitionValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceCustomResourceDefinitionAsync(String name, V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCustomResourceDefinitionAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceCustomResourceDefinitionValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2361,14 +2463,20 @@ private okhttp3.Call replaceCustomResourceDefinitionAsync(String name, V1CustomR } public class APIreplaceCustomResourceDefinitionRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1CustomResourceDefinition body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceCustomResourceDefinitionRequest(String name, V1CustomResourceDefinition body) { + private APIreplaceCustomResourceDefinitionRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body) { this.name = name; this.body = body; } @@ -2378,7 +2486,7 @@ private APIreplaceCustomResourceDefinitionRequest(String name, V1CustomResourceD * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceCustomResourceDefinitionRequest */ - public APIreplaceCustomResourceDefinitionRequest pretty(String pretty) { + public APIreplaceCustomResourceDefinitionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2388,7 +2496,7 @@ public APIreplaceCustomResourceDefinitionRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceCustomResourceDefinitionRequest */ - public APIreplaceCustomResourceDefinitionRequest dryRun(String dryRun) { + public APIreplaceCustomResourceDefinitionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2398,7 +2506,7 @@ public APIreplaceCustomResourceDefinitionRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceCustomResourceDefinitionRequest */ - public APIreplaceCustomResourceDefinitionRequest fieldManager(String fieldManager) { + public APIreplaceCustomResourceDefinitionRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2408,7 +2516,7 @@ public APIreplaceCustomResourceDefinitionRequest fieldManager(String fieldManage * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceCustomResourceDefinitionRequest */ - public APIreplaceCustomResourceDefinitionRequest fieldValidation(String fieldValidation) { + public APIreplaceCustomResourceDefinitionRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2419,7 +2527,8 @@ public APIreplaceCustomResourceDefinitionRequest fieldValidation(String fieldVal * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2435,7 +2544,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2452,7 +2562,8 @@ public V1CustomResourceDefinition execute() throws ApiException { * @return ApiResponse<V1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2469,7 +2580,8 @@ public ApiResponse executeWithHttpInfo() throws ApiE * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2488,17 +2600,18 @@ public okhttp3.Call executeAsync(final ApiCallback _ * @param body (required) * @return APIreplaceCustomResourceDefinitionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceCustomResourceDefinitionRequest replaceCustomResourceDefinition(String name, V1CustomResourceDefinition body) { + public APIreplaceCustomResourceDefinitionRequest replaceCustomResourceDefinition(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body) { return new APIreplaceCustomResourceDefinitionRequest(name, body); } - private okhttp3.Call replaceCustomResourceDefinitionStatusCall(String name, V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCustomResourceDefinitionStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2564,7 +2677,7 @@ private okhttp3.Call replaceCustomResourceDefinitionStatusCall(String name, V1Cu } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceCustomResourceDefinitionStatusValidateBeforeCall(String name, V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCustomResourceDefinitionStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceCustomResourceDefinitionStatus(Async)"); @@ -2580,13 +2693,13 @@ private okhttp3.Call replaceCustomResourceDefinitionStatusValidateBeforeCall(Str } - private ApiResponse replaceCustomResourceDefinitionStatusWithHttpInfo(String name, V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceCustomResourceDefinitionStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceCustomResourceDefinitionStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceCustomResourceDefinitionStatusAsync(String name, V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCustomResourceDefinitionStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceCustomResourceDefinitionStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2595,14 +2708,20 @@ private okhttp3.Call replaceCustomResourceDefinitionStatusAsync(String name, V1C } public class APIreplaceCustomResourceDefinitionStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1CustomResourceDefinition body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceCustomResourceDefinitionStatusRequest(String name, V1CustomResourceDefinition body) { + private APIreplaceCustomResourceDefinitionStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body) { this.name = name; this.body = body; } @@ -2612,7 +2731,7 @@ private APIreplaceCustomResourceDefinitionStatusRequest(String name, V1CustomRes * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceCustomResourceDefinitionStatusRequest */ - public APIreplaceCustomResourceDefinitionStatusRequest pretty(String pretty) { + public APIreplaceCustomResourceDefinitionStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2622,7 +2741,7 @@ public APIreplaceCustomResourceDefinitionStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceCustomResourceDefinitionStatusRequest */ - public APIreplaceCustomResourceDefinitionStatusRequest dryRun(String dryRun) { + public APIreplaceCustomResourceDefinitionStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2632,7 +2751,7 @@ public APIreplaceCustomResourceDefinitionStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceCustomResourceDefinitionStatusRequest */ - public APIreplaceCustomResourceDefinitionStatusRequest fieldManager(String fieldManager) { + public APIreplaceCustomResourceDefinitionStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2642,7 +2761,7 @@ public APIreplaceCustomResourceDefinitionStatusRequest fieldManager(String field * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceCustomResourceDefinitionStatusRequest */ - public APIreplaceCustomResourceDefinitionStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceCustomResourceDefinitionStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2653,7 +2772,8 @@ public APIreplaceCustomResourceDefinitionStatusRequest fieldValidation(String fi * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2669,7 +2789,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2686,7 +2807,8 @@ public V1CustomResourceDefinition execute() throws ApiException { * @return ApiResponse<V1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2703,7 +2825,8 @@ public ApiResponse executeWithHttpInfo() throws ApiE * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2722,14 +2845,15 @@ public okhttp3.Call executeAsync(final ApiCallback _ * @param body (required) * @return APIreplaceCustomResourceDefinitionStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceCustomResourceDefinitionStatusRequest replaceCustomResourceDefinitionStatus(String name, V1CustomResourceDefinition body) { + public APIreplaceCustomResourceDefinitionStatusRequest replaceCustomResourceDefinitionStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body) { return new APIreplaceCustomResourceDefinitionStatusRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationApi.java index f8a512b3bf..dbae624c76 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationApi.java @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1Api.java index ff6246d091..a011d8e584 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1Api.java @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createAPIServiceCall(V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createAPIServiceCall(@jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -141,7 +141,7 @@ private okhttp3.Call createAPIServiceCall(V1APIService body, String pretty, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call createAPIServiceValidateBeforeCall(V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createAPIServiceValidateBeforeCall(@jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createAPIService(Async)"); @@ -152,13 +152,13 @@ private okhttp3.Call createAPIServiceValidateBeforeCall(V1APIService body, Strin } - private ApiResponse createAPIServiceWithHttpInfo(V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createAPIServiceWithHttpInfo(@jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createAPIServiceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createAPIServiceAsync(V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createAPIServiceAsync(@jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createAPIServiceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -167,13 +167,18 @@ private okhttp3.Call createAPIServiceAsync(V1APIService body, String pretty, Str } public class APIcreateAPIServiceRequest { + @jakarta.annotation.Nonnull private final V1APIService body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateAPIServiceRequest(V1APIService body) { + private APIcreateAPIServiceRequest(@jakarta.annotation.Nonnull V1APIService body) { this.body = body; } @@ -182,7 +187,7 @@ private APIcreateAPIServiceRequest(V1APIService body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateAPIServiceRequest */ - public APIcreateAPIServiceRequest pretty(String pretty) { + public APIcreateAPIServiceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -192,7 +197,7 @@ public APIcreateAPIServiceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateAPIServiceRequest */ - public APIcreateAPIServiceRequest dryRun(String dryRun) { + public APIcreateAPIServiceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -202,7 +207,7 @@ public APIcreateAPIServiceRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateAPIServiceRequest */ - public APIcreateAPIServiceRequest fieldManager(String fieldManager) { + public APIcreateAPIServiceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -212,7 +217,7 @@ public APIcreateAPIServiceRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateAPIServiceRequest */ - public APIcreateAPIServiceRequest fieldValidation(String fieldValidation) { + public APIcreateAPIServiceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -223,7 +228,8 @@ public APIcreateAPIServiceRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -240,7 +246,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -258,7 +265,8 @@ public V1APIService execute() throws ApiException { * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -276,7 +284,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -295,7 +304,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIcreateAPIServiceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -303,10 +313,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateAPIServiceRequest createAPIService(V1APIService body) { + public APIcreateAPIServiceRequest createAPIService(@jakarta.annotation.Nonnull V1APIService body) { return new APIcreateAPIServiceRequest(body); } - private okhttp3.Call deleteAPIServiceCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteAPIServiceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -380,7 +390,7 @@ private okhttp3.Call deleteAPIServiceCall(String name, String pretty, String dry } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteAPIServiceValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteAPIServiceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteAPIService(Async)"); @@ -391,13 +401,13 @@ private okhttp3.Call deleteAPIServiceValidateBeforeCall(String name, String pret } - private ApiResponse deleteAPIServiceWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteAPIServiceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteAPIServiceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteAPIServiceAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteAPIServiceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteAPIServiceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -406,16 +416,24 @@ private okhttp3.Call deleteAPIServiceAsync(String name, String pretty, String dr } public class APIdeleteAPIServiceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteAPIServiceRequest(String name) { + private APIdeleteAPIServiceRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -424,7 +442,7 @@ private APIdeleteAPIServiceRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteAPIServiceRequest */ - public APIdeleteAPIServiceRequest pretty(String pretty) { + public APIdeleteAPIServiceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -434,7 +452,7 @@ public APIdeleteAPIServiceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteAPIServiceRequest */ - public APIdeleteAPIServiceRequest dryRun(String dryRun) { + public APIdeleteAPIServiceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -444,7 +462,7 @@ public APIdeleteAPIServiceRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteAPIServiceRequest */ - public APIdeleteAPIServiceRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteAPIServiceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -454,7 +472,7 @@ public APIdeleteAPIServiceRequest gracePeriodSeconds(Integer gracePeriodSeconds) * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteAPIServiceRequest */ - public APIdeleteAPIServiceRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteAPIServiceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -464,7 +482,7 @@ public APIdeleteAPIServiceRequest ignoreStoreReadErrorWithClusterBreakingPotenti * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteAPIServiceRequest */ - public APIdeleteAPIServiceRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteAPIServiceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -474,7 +492,7 @@ public APIdeleteAPIServiceRequest orphanDependents(Boolean orphanDependents) { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteAPIServiceRequest */ - public APIdeleteAPIServiceRequest propagationPolicy(String propagationPolicy) { + public APIdeleteAPIServiceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -484,7 +502,7 @@ public APIdeleteAPIServiceRequest propagationPolicy(String propagationPolicy) { * @param body (optional) * @return APIdeleteAPIServiceRequest */ - public APIdeleteAPIServiceRequest body(V1DeleteOptions body) { + public APIdeleteAPIServiceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -495,7 +513,8 @@ public APIdeleteAPIServiceRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -511,7 +530,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -528,7 +548,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -545,7 +566,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -563,17 +585,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the APIService (required) * @return APIdeleteAPIServiceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteAPIServiceRequest deleteAPIService(String name) { + public APIdeleteAPIServiceRequest deleteAPIService(@jakarta.annotation.Nonnull String name) { return new APIdeleteAPIServiceRequest(name); } - private okhttp3.Call deleteCollectionAPIServiceCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionAPIServiceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -678,19 +701,19 @@ private okhttp3.Call deleteCollectionAPIServiceCall(String pretty, String _conti } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionAPIServiceValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionAPIServiceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionAPIServiceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionAPIServiceWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionAPIServiceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionAPIServiceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionAPIServiceAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionAPIServiceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionAPIServiceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -699,20 +722,35 @@ private okhttp3.Call deleteCollectionAPIServiceAsync(String pretty, String _cont } public class APIdeleteCollectionAPIServiceRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionAPIServiceRequest() { @@ -723,7 +761,7 @@ private APIdeleteCollectionAPIServiceRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest pretty(String pretty) { + public APIdeleteCollectionAPIServiceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -733,7 +771,7 @@ public APIdeleteCollectionAPIServiceRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest _continue(String _continue) { + public APIdeleteCollectionAPIServiceRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -743,7 +781,7 @@ public APIdeleteCollectionAPIServiceRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest dryRun(String dryRun) { + public APIdeleteCollectionAPIServiceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -753,7 +791,7 @@ public APIdeleteCollectionAPIServiceRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionAPIServiceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -763,7 +801,7 @@ public APIdeleteCollectionAPIServiceRequest fieldSelector(String fieldSelector) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionAPIServiceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -773,7 +811,7 @@ public APIdeleteCollectionAPIServiceRequest gracePeriodSeconds(Integer gracePeri * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionAPIServiceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -783,7 +821,7 @@ public APIdeleteCollectionAPIServiceRequest ignoreStoreReadErrorWithClusterBreak * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest labelSelector(String labelSelector) { + public APIdeleteCollectionAPIServiceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -793,7 +831,7 @@ public APIdeleteCollectionAPIServiceRequest labelSelector(String labelSelector) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest limit(Integer limit) { + public APIdeleteCollectionAPIServiceRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -803,7 +841,7 @@ public APIdeleteCollectionAPIServiceRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionAPIServiceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -813,7 +851,7 @@ public APIdeleteCollectionAPIServiceRequest orphanDependents(Boolean orphanDepen * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionAPIServiceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -823,7 +861,7 @@ public APIdeleteCollectionAPIServiceRequest propagationPolicy(String propagation * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionAPIServiceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -833,7 +871,7 @@ public APIdeleteCollectionAPIServiceRequest resourceVersion(String resourceVersi * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionAPIServiceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -843,7 +881,7 @@ public APIdeleteCollectionAPIServiceRequest resourceVersionMatch(String resource * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionAPIServiceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -853,7 +891,7 @@ public APIdeleteCollectionAPIServiceRequest sendInitialEvents(Boolean sendInitia * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionAPIServiceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -863,7 +901,7 @@ public APIdeleteCollectionAPIServiceRequest timeoutSeconds(Integer timeoutSecond * @param body (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest body(V1DeleteOptions body) { + public APIdeleteCollectionAPIServiceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -874,7 +912,8 @@ public APIdeleteCollectionAPIServiceRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -889,7 +928,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -905,7 +945,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -921,7 +962,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -937,7 +979,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of APIService * @return APIdeleteCollectionAPIServiceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1025,7 +1068,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1040,7 +1084,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1056,7 +1101,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1072,7 +1118,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1088,7 +1135,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1097,7 +1145,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listAPIServiceCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listAPIServiceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1192,19 +1240,19 @@ private okhttp3.Call listAPIServiceCall(String pretty, Boolean allowWatchBookmar } @SuppressWarnings("rawtypes") - private okhttp3.Call listAPIServiceValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listAPIServiceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listAPIServiceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listAPIServiceWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listAPIServiceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listAPIServiceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listAPIServiceAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listAPIServiceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listAPIServiceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1213,16 +1261,27 @@ private okhttp3.Call listAPIServiceAsync(String pretty, Boolean allowWatchBookma } public class APIlistAPIServiceRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistAPIServiceRequest() { @@ -1233,7 +1292,7 @@ private APIlistAPIServiceRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistAPIServiceRequest */ - public APIlistAPIServiceRequest pretty(String pretty) { + public APIlistAPIServiceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1243,7 +1302,7 @@ public APIlistAPIServiceRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistAPIServiceRequest */ - public APIlistAPIServiceRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistAPIServiceRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1253,7 +1312,7 @@ public APIlistAPIServiceRequest allowWatchBookmarks(Boolean allowWatchBookmarks) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistAPIServiceRequest */ - public APIlistAPIServiceRequest _continue(String _continue) { + public APIlistAPIServiceRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1263,7 +1322,7 @@ public APIlistAPIServiceRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistAPIServiceRequest */ - public APIlistAPIServiceRequest fieldSelector(String fieldSelector) { + public APIlistAPIServiceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1273,7 +1332,7 @@ public APIlistAPIServiceRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistAPIServiceRequest */ - public APIlistAPIServiceRequest labelSelector(String labelSelector) { + public APIlistAPIServiceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1283,7 +1342,7 @@ public APIlistAPIServiceRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistAPIServiceRequest */ - public APIlistAPIServiceRequest limit(Integer limit) { + public APIlistAPIServiceRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1293,7 +1352,7 @@ public APIlistAPIServiceRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistAPIServiceRequest */ - public APIlistAPIServiceRequest resourceVersion(String resourceVersion) { + public APIlistAPIServiceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1303,7 +1362,7 @@ public APIlistAPIServiceRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistAPIServiceRequest */ - public APIlistAPIServiceRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistAPIServiceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1313,7 +1372,7 @@ public APIlistAPIServiceRequest resourceVersionMatch(String resourceVersionMatch * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistAPIServiceRequest */ - public APIlistAPIServiceRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistAPIServiceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1323,7 +1382,7 @@ public APIlistAPIServiceRequest sendInitialEvents(Boolean sendInitialEvents) { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistAPIServiceRequest */ - public APIlistAPIServiceRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistAPIServiceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1333,7 +1392,7 @@ public APIlistAPIServiceRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistAPIServiceRequest */ - public APIlistAPIServiceRequest watch(Boolean watch) { + public APIlistAPIServiceRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1344,7 +1403,8 @@ public APIlistAPIServiceRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1359,7 +1419,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIServiceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1375,7 +1436,8 @@ public V1APIServiceList execute() throws ApiException { * @return ApiResponse<V1APIServiceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1391,7 +1453,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1407,7 +1470,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * list or watch objects of kind APIService * @return APIlistAPIServiceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1416,7 +1480,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistAPIServiceRequest listAPIService() { return new APIlistAPIServiceRequest(); } - private okhttp3.Call patchAPIServiceCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchAPIServiceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1486,7 +1550,7 @@ private okhttp3.Call patchAPIServiceCall(String name, V1Patch body, String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call patchAPIServiceValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchAPIServiceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchAPIService(Async)"); @@ -1502,13 +1566,13 @@ private okhttp3.Call patchAPIServiceValidateBeforeCall(String name, V1Patch body } - private ApiResponse patchAPIServiceWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchAPIServiceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchAPIServiceAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchAPIServiceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1517,15 +1581,22 @@ private okhttp3.Call patchAPIServiceAsync(String name, V1Patch body, String pret } public class APIpatchAPIServiceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchAPIServiceRequest(String name, V1Patch body) { + private APIpatchAPIServiceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -1535,7 +1606,7 @@ private APIpatchAPIServiceRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchAPIServiceRequest */ - public APIpatchAPIServiceRequest pretty(String pretty) { + public APIpatchAPIServiceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1545,7 +1616,7 @@ public APIpatchAPIServiceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchAPIServiceRequest */ - public APIpatchAPIServiceRequest dryRun(String dryRun) { + public APIpatchAPIServiceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1555,7 +1626,7 @@ public APIpatchAPIServiceRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchAPIServiceRequest */ - public APIpatchAPIServiceRequest fieldManager(String fieldManager) { + public APIpatchAPIServiceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1565,7 +1636,7 @@ public APIpatchAPIServiceRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchAPIServiceRequest */ - public APIpatchAPIServiceRequest fieldValidation(String fieldValidation) { + public APIpatchAPIServiceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1575,7 +1646,7 @@ public APIpatchAPIServiceRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchAPIServiceRequest */ - public APIpatchAPIServiceRequest force(Boolean force) { + public APIpatchAPIServiceRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1586,7 +1657,8 @@ public APIpatchAPIServiceRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1602,7 +1674,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1619,7 +1692,8 @@ public V1APIService execute() throws ApiException { * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1636,7 +1710,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1655,17 +1730,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIpatchAPIServiceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchAPIServiceRequest patchAPIService(String name, V1Patch body) { + public APIpatchAPIServiceRequest patchAPIService(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchAPIServiceRequest(name, body); } - private okhttp3.Call patchAPIServiceStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchAPIServiceStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1735,7 +1811,7 @@ private okhttp3.Call patchAPIServiceStatusCall(String name, V1Patch body, String } @SuppressWarnings("rawtypes") - private okhttp3.Call patchAPIServiceStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchAPIServiceStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchAPIServiceStatus(Async)"); @@ -1751,13 +1827,13 @@ private okhttp3.Call patchAPIServiceStatusValidateBeforeCall(String name, V1Patc } - private ApiResponse patchAPIServiceStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchAPIServiceStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchAPIServiceStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchAPIServiceStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1766,15 +1842,22 @@ private okhttp3.Call patchAPIServiceStatusAsync(String name, V1Patch body, Strin } public class APIpatchAPIServiceStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchAPIServiceStatusRequest(String name, V1Patch body) { + private APIpatchAPIServiceStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -1784,7 +1867,7 @@ private APIpatchAPIServiceStatusRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchAPIServiceStatusRequest */ - public APIpatchAPIServiceStatusRequest pretty(String pretty) { + public APIpatchAPIServiceStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1794,7 +1877,7 @@ public APIpatchAPIServiceStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchAPIServiceStatusRequest */ - public APIpatchAPIServiceStatusRequest dryRun(String dryRun) { + public APIpatchAPIServiceStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1804,7 +1887,7 @@ public APIpatchAPIServiceStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchAPIServiceStatusRequest */ - public APIpatchAPIServiceStatusRequest fieldManager(String fieldManager) { + public APIpatchAPIServiceStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1814,7 +1897,7 @@ public APIpatchAPIServiceStatusRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchAPIServiceStatusRequest */ - public APIpatchAPIServiceStatusRequest fieldValidation(String fieldValidation) { + public APIpatchAPIServiceStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1824,7 +1907,7 @@ public APIpatchAPIServiceStatusRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchAPIServiceStatusRequest */ - public APIpatchAPIServiceStatusRequest force(Boolean force) { + public APIpatchAPIServiceStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1835,7 +1918,8 @@ public APIpatchAPIServiceStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1851,7 +1935,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1868,7 +1953,8 @@ public V1APIService execute() throws ApiException { * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1885,7 +1971,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1904,17 +1991,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIpatchAPIServiceStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchAPIServiceStatusRequest patchAPIServiceStatus(String name, V1Patch body) { + public APIpatchAPIServiceStatusRequest patchAPIServiceStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchAPIServiceStatusRequest(name, body); } - private okhttp3.Call readAPIServiceCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readAPIServiceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1967,7 +2055,7 @@ private okhttp3.Call readAPIServiceCall(String name, String pretty, final ApiCal } @SuppressWarnings("rawtypes") - private okhttp3.Call readAPIServiceValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readAPIServiceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readAPIService(Async)"); @@ -1978,13 +2066,13 @@ private okhttp3.Call readAPIServiceValidateBeforeCall(String name, String pretty } - private ApiResponse readAPIServiceWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readAPIServiceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readAPIServiceValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readAPIServiceAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readAPIServiceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readAPIServiceValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1993,10 +2081,12 @@ private okhttp3.Call readAPIServiceAsync(String name, String pretty, final ApiCa } public class APIreadAPIServiceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadAPIServiceRequest(String name) { + private APIreadAPIServiceRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -2005,7 +2095,7 @@ private APIreadAPIServiceRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadAPIServiceRequest */ - public APIreadAPIServiceRequest pretty(String pretty) { + public APIreadAPIServiceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2016,7 +2106,8 @@ public APIreadAPIServiceRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2031,7 +2122,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2047,7 +2139,8 @@ public V1APIService execute() throws ApiException { * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2063,7 +2156,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2080,16 +2174,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param name name of the APIService (required) * @return APIreadAPIServiceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadAPIServiceRequest readAPIService(String name) { + public APIreadAPIServiceRequest readAPIService(@jakarta.annotation.Nonnull String name) { return new APIreadAPIServiceRequest(name); } - private okhttp3.Call readAPIServiceStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readAPIServiceStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2142,7 +2237,7 @@ private okhttp3.Call readAPIServiceStatusCall(String name, String pretty, final } @SuppressWarnings("rawtypes") - private okhttp3.Call readAPIServiceStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readAPIServiceStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readAPIServiceStatus(Async)"); @@ -2153,13 +2248,13 @@ private okhttp3.Call readAPIServiceStatusValidateBeforeCall(String name, String } - private ApiResponse readAPIServiceStatusWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readAPIServiceStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readAPIServiceStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readAPIServiceStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readAPIServiceStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readAPIServiceStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2168,10 +2263,12 @@ private okhttp3.Call readAPIServiceStatusAsync(String name, String pretty, final } public class APIreadAPIServiceStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadAPIServiceStatusRequest(String name) { + private APIreadAPIServiceStatusRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -2180,7 +2277,7 @@ private APIreadAPIServiceStatusRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadAPIServiceStatusRequest */ - public APIreadAPIServiceStatusRequest pretty(String pretty) { + public APIreadAPIServiceStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2191,7 +2288,8 @@ public APIreadAPIServiceStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2206,7 +2304,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2222,7 +2321,8 @@ public V1APIService execute() throws ApiException { * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2238,7 +2338,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2255,16 +2356,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param name name of the APIService (required) * @return APIreadAPIServiceStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadAPIServiceStatusRequest readAPIServiceStatus(String name) { + public APIreadAPIServiceStatusRequest readAPIServiceStatus(@jakarta.annotation.Nonnull String name) { return new APIreadAPIServiceStatusRequest(name); } - private okhttp3.Call replaceAPIServiceCall(String name, V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceAPIServiceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2330,7 +2432,7 @@ private okhttp3.Call replaceAPIServiceCall(String name, V1APIService body, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceAPIServiceValidateBeforeCall(String name, V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceAPIServiceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceAPIService(Async)"); @@ -2346,13 +2448,13 @@ private okhttp3.Call replaceAPIServiceValidateBeforeCall(String name, V1APIServi } - private ApiResponse replaceAPIServiceWithHttpInfo(String name, V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceAPIServiceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceAPIServiceAsync(String name, V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceAPIServiceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2361,14 +2463,20 @@ private okhttp3.Call replaceAPIServiceAsync(String name, V1APIService body, Stri } public class APIreplaceAPIServiceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1APIService body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceAPIServiceRequest(String name, V1APIService body) { + private APIreplaceAPIServiceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body) { this.name = name; this.body = body; } @@ -2378,7 +2486,7 @@ private APIreplaceAPIServiceRequest(String name, V1APIService body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceAPIServiceRequest */ - public APIreplaceAPIServiceRequest pretty(String pretty) { + public APIreplaceAPIServiceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2388,7 +2496,7 @@ public APIreplaceAPIServiceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceAPIServiceRequest */ - public APIreplaceAPIServiceRequest dryRun(String dryRun) { + public APIreplaceAPIServiceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2398,7 +2506,7 @@ public APIreplaceAPIServiceRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceAPIServiceRequest */ - public APIreplaceAPIServiceRequest fieldManager(String fieldManager) { + public APIreplaceAPIServiceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2408,7 +2516,7 @@ public APIreplaceAPIServiceRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceAPIServiceRequest */ - public APIreplaceAPIServiceRequest fieldValidation(String fieldValidation) { + public APIreplaceAPIServiceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2419,7 +2527,8 @@ public APIreplaceAPIServiceRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2435,7 +2544,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2452,7 +2562,8 @@ public V1APIService execute() throws ApiException { * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2469,7 +2580,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2488,17 +2600,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIreplaceAPIServiceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceAPIServiceRequest replaceAPIService(String name, V1APIService body) { + public APIreplaceAPIServiceRequest replaceAPIService(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body) { return new APIreplaceAPIServiceRequest(name, body); } - private okhttp3.Call replaceAPIServiceStatusCall(String name, V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceAPIServiceStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2564,7 +2677,7 @@ private okhttp3.Call replaceAPIServiceStatusCall(String name, V1APIService body, } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceAPIServiceStatusValidateBeforeCall(String name, V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceAPIServiceStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceAPIServiceStatus(Async)"); @@ -2580,13 +2693,13 @@ private okhttp3.Call replaceAPIServiceStatusValidateBeforeCall(String name, V1AP } - private ApiResponse replaceAPIServiceStatusWithHttpInfo(String name, V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceAPIServiceStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceAPIServiceStatusAsync(String name, V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceAPIServiceStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2595,14 +2708,20 @@ private okhttp3.Call replaceAPIServiceStatusAsync(String name, V1APIService body } public class APIreplaceAPIServiceStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1APIService body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceAPIServiceStatusRequest(String name, V1APIService body) { + private APIreplaceAPIServiceStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body) { this.name = name; this.body = body; } @@ -2612,7 +2731,7 @@ private APIreplaceAPIServiceStatusRequest(String name, V1APIService body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceAPIServiceStatusRequest */ - public APIreplaceAPIServiceStatusRequest pretty(String pretty) { + public APIreplaceAPIServiceStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2622,7 +2741,7 @@ public APIreplaceAPIServiceStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceAPIServiceStatusRequest */ - public APIreplaceAPIServiceStatusRequest dryRun(String dryRun) { + public APIreplaceAPIServiceStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2632,7 +2751,7 @@ public APIreplaceAPIServiceStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceAPIServiceStatusRequest */ - public APIreplaceAPIServiceStatusRequest fieldManager(String fieldManager) { + public APIreplaceAPIServiceStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2642,7 +2761,7 @@ public APIreplaceAPIServiceStatusRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceAPIServiceStatusRequest */ - public APIreplaceAPIServiceStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceAPIServiceStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2653,7 +2772,8 @@ public APIreplaceAPIServiceStatusRequest fieldValidation(String fieldValidation) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2669,7 +2789,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2686,7 +2807,8 @@ public V1APIService execute() throws ApiException { * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2703,7 +2825,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2722,14 +2845,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIreplaceAPIServiceStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceAPIServiceStatusRequest replaceAPIServiceStatus(String name, V1APIService body) { + public APIreplaceAPIServiceStatusRequest replaceAPIServiceStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body) { return new APIreplaceAPIServiceStatusRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApisApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApisApi.java index a2c3661bbf..1d75105954 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApisApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApisApi.java @@ -149,7 +149,8 @@ private APIgetAPIVersionsRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroupList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroupList execute() throws ApiException { * @return ApiResponse<V1APIGroupList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th * get available API versions * @return APIgetAPIVersionsRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsApi.java index a64df6e023..cc5603483c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsApi.java @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java index f744ef512f..5f1c28364a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java @@ -85,7 +85,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createNamespacedControllerRevisionCall(String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedControllerRevisionCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ControllerRevision body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -151,7 +151,7 @@ private okhttp3.Call createNamespacedControllerRevisionCall(String namespace, V1 } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedControllerRevisionValidateBeforeCall(String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedControllerRevisionValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ControllerRevision body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedControllerRevision(Async)"); @@ -167,13 +167,13 @@ private okhttp3.Call createNamespacedControllerRevisionValidateBeforeCall(String } - private ApiResponse createNamespacedControllerRevisionWithHttpInfo(String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedControllerRevisionWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ControllerRevision body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedControllerRevisionValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedControllerRevisionAsync(String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedControllerRevisionAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ControllerRevision body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedControllerRevisionValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -182,14 +182,20 @@ private okhttp3.Call createNamespacedControllerRevisionAsync(String namespace, V } public class APIcreateNamespacedControllerRevisionRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1ControllerRevision body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedControllerRevisionRequest(String namespace, V1ControllerRevision body) { + private APIcreateNamespacedControllerRevisionRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ControllerRevision body) { this.namespace = namespace; this.body = body; } @@ -199,7 +205,7 @@ private APIcreateNamespacedControllerRevisionRequest(String namespace, V1Control * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedControllerRevisionRequest */ - public APIcreateNamespacedControllerRevisionRequest pretty(String pretty) { + public APIcreateNamespacedControllerRevisionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -209,7 +215,7 @@ public APIcreateNamespacedControllerRevisionRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedControllerRevisionRequest */ - public APIcreateNamespacedControllerRevisionRequest dryRun(String dryRun) { + public APIcreateNamespacedControllerRevisionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -219,7 +225,7 @@ public APIcreateNamespacedControllerRevisionRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedControllerRevisionRequest */ - public APIcreateNamespacedControllerRevisionRequest fieldManager(String fieldManager) { + public APIcreateNamespacedControllerRevisionRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -229,7 +235,7 @@ public APIcreateNamespacedControllerRevisionRequest fieldManager(String fieldMan * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedControllerRevisionRequest */ - public APIcreateNamespacedControllerRevisionRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedControllerRevisionRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -240,7 +246,8 @@ public APIcreateNamespacedControllerRevisionRequest fieldValidation(String field * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -257,7 +264,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ControllerRevision * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -275,7 +283,8 @@ public V1ControllerRevision execute() throws ApiException { * @return ApiResponse<V1ControllerRevision> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -293,7 +302,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -313,7 +323,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param body (required) * @return APIcreateNamespacedControllerRevisionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -321,10 +332,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callba
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedControllerRevisionRequest createNamespacedControllerRevision(String namespace, V1ControllerRevision body) { + public APIcreateNamespacedControllerRevisionRequest createNamespacedControllerRevision(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ControllerRevision body) { return new APIcreateNamespacedControllerRevisionRequest(namespace, body); } - private okhttp3.Call createNamespacedDaemonSetCall(String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedDaemonSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -390,7 +401,7 @@ private okhttp3.Call createNamespacedDaemonSetCall(String namespace, V1DaemonSet } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedDaemonSetValidateBeforeCall(String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedDaemonSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedDaemonSet(Async)"); @@ -406,13 +417,13 @@ private okhttp3.Call createNamespacedDaemonSetValidateBeforeCall(String namespac } - private ApiResponse createNamespacedDaemonSetWithHttpInfo(String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedDaemonSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedDaemonSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedDaemonSetAsync(String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedDaemonSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedDaemonSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -421,14 +432,20 @@ private okhttp3.Call createNamespacedDaemonSetAsync(String namespace, V1DaemonSe } public class APIcreateNamespacedDaemonSetRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1DaemonSet body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedDaemonSetRequest(String namespace, V1DaemonSet body) { + private APIcreateNamespacedDaemonSetRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body) { this.namespace = namespace; this.body = body; } @@ -438,7 +455,7 @@ private APIcreateNamespacedDaemonSetRequest(String namespace, V1DaemonSet body) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedDaemonSetRequest */ - public APIcreateNamespacedDaemonSetRequest pretty(String pretty) { + public APIcreateNamespacedDaemonSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -448,7 +465,7 @@ public APIcreateNamespacedDaemonSetRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedDaemonSetRequest */ - public APIcreateNamespacedDaemonSetRequest dryRun(String dryRun) { + public APIcreateNamespacedDaemonSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -458,7 +475,7 @@ public APIcreateNamespacedDaemonSetRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedDaemonSetRequest */ - public APIcreateNamespacedDaemonSetRequest fieldManager(String fieldManager) { + public APIcreateNamespacedDaemonSetRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -468,7 +485,7 @@ public APIcreateNamespacedDaemonSetRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedDaemonSetRequest */ - public APIcreateNamespacedDaemonSetRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedDaemonSetRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -479,7 +496,8 @@ public APIcreateNamespacedDaemonSetRequest fieldValidation(String fieldValidatio * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -496,7 +514,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -514,7 +533,8 @@ public V1DaemonSet execute() throws ApiException { * @return ApiResponse<V1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -532,7 +552,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -552,7 +573,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIcreateNamespacedDaemonSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -560,10 +582,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedDaemonSetRequest createNamespacedDaemonSet(String namespace, V1DaemonSet body) { + public APIcreateNamespacedDaemonSetRequest createNamespacedDaemonSet(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body) { return new APIcreateNamespacedDaemonSetRequest(namespace, body); } - private okhttp3.Call createNamespacedDeploymentCall(String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedDeploymentCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -629,7 +651,7 @@ private okhttp3.Call createNamespacedDeploymentCall(String namespace, V1Deployme } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedDeploymentValidateBeforeCall(String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedDeploymentValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedDeployment(Async)"); @@ -645,13 +667,13 @@ private okhttp3.Call createNamespacedDeploymentValidateBeforeCall(String namespa } - private ApiResponse createNamespacedDeploymentWithHttpInfo(String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedDeploymentWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedDeploymentValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedDeploymentAsync(String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedDeploymentAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedDeploymentValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -660,14 +682,20 @@ private okhttp3.Call createNamespacedDeploymentAsync(String namespace, V1Deploym } public class APIcreateNamespacedDeploymentRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Deployment body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedDeploymentRequest(String namespace, V1Deployment body) { + private APIcreateNamespacedDeploymentRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body) { this.namespace = namespace; this.body = body; } @@ -677,7 +705,7 @@ private APIcreateNamespacedDeploymentRequest(String namespace, V1Deployment body * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedDeploymentRequest */ - public APIcreateNamespacedDeploymentRequest pretty(String pretty) { + public APIcreateNamespacedDeploymentRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -687,7 +715,7 @@ public APIcreateNamespacedDeploymentRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedDeploymentRequest */ - public APIcreateNamespacedDeploymentRequest dryRun(String dryRun) { + public APIcreateNamespacedDeploymentRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -697,7 +725,7 @@ public APIcreateNamespacedDeploymentRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedDeploymentRequest */ - public APIcreateNamespacedDeploymentRequest fieldManager(String fieldManager) { + public APIcreateNamespacedDeploymentRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -707,7 +735,7 @@ public APIcreateNamespacedDeploymentRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedDeploymentRequest */ - public APIcreateNamespacedDeploymentRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedDeploymentRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -718,7 +746,8 @@ public APIcreateNamespacedDeploymentRequest fieldValidation(String fieldValidati * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -735,7 +764,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -753,7 +783,8 @@ public V1Deployment execute() throws ApiException { * @return ApiResponse<V1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -771,7 +802,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -791,7 +823,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIcreateNamespacedDeploymentRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -799,10 +832,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedDeploymentRequest createNamespacedDeployment(String namespace, V1Deployment body) { + public APIcreateNamespacedDeploymentRequest createNamespacedDeployment(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body) { return new APIcreateNamespacedDeploymentRequest(namespace, body); } - private okhttp3.Call createNamespacedReplicaSetCall(String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedReplicaSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -868,7 +901,7 @@ private okhttp3.Call createNamespacedReplicaSetCall(String namespace, V1ReplicaS } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedReplicaSetValidateBeforeCall(String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedReplicaSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedReplicaSet(Async)"); @@ -884,13 +917,13 @@ private okhttp3.Call createNamespacedReplicaSetValidateBeforeCall(String namespa } - private ApiResponse createNamespacedReplicaSetWithHttpInfo(String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedReplicaSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedReplicaSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedReplicaSetAsync(String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedReplicaSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedReplicaSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -899,14 +932,20 @@ private okhttp3.Call createNamespacedReplicaSetAsync(String namespace, V1Replica } public class APIcreateNamespacedReplicaSetRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1ReplicaSet body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedReplicaSetRequest(String namespace, V1ReplicaSet body) { + private APIcreateNamespacedReplicaSetRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body) { this.namespace = namespace; this.body = body; } @@ -916,7 +955,7 @@ private APIcreateNamespacedReplicaSetRequest(String namespace, V1ReplicaSet body * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedReplicaSetRequest */ - public APIcreateNamespacedReplicaSetRequest pretty(String pretty) { + public APIcreateNamespacedReplicaSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -926,7 +965,7 @@ public APIcreateNamespacedReplicaSetRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedReplicaSetRequest */ - public APIcreateNamespacedReplicaSetRequest dryRun(String dryRun) { + public APIcreateNamespacedReplicaSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -936,7 +975,7 @@ public APIcreateNamespacedReplicaSetRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedReplicaSetRequest */ - public APIcreateNamespacedReplicaSetRequest fieldManager(String fieldManager) { + public APIcreateNamespacedReplicaSetRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -946,7 +985,7 @@ public APIcreateNamespacedReplicaSetRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedReplicaSetRequest */ - public APIcreateNamespacedReplicaSetRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedReplicaSetRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -957,7 +996,8 @@ public APIcreateNamespacedReplicaSetRequest fieldValidation(String fieldValidati * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -974,7 +1014,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -992,7 +1033,8 @@ public V1ReplicaSet execute() throws ApiException { * @return ApiResponse<V1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1010,7 +1052,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1030,7 +1073,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIcreateNamespacedReplicaSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1038,10 +1082,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedReplicaSetRequest createNamespacedReplicaSet(String namespace, V1ReplicaSet body) { + public APIcreateNamespacedReplicaSetRequest createNamespacedReplicaSet(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body) { return new APIcreateNamespacedReplicaSetRequest(namespace, body); } - private okhttp3.Call createNamespacedStatefulSetCall(String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedStatefulSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1107,7 +1151,7 @@ private okhttp3.Call createNamespacedStatefulSetCall(String namespace, V1Statefu } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedStatefulSetValidateBeforeCall(String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedStatefulSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedStatefulSet(Async)"); @@ -1123,13 +1167,13 @@ private okhttp3.Call createNamespacedStatefulSetValidateBeforeCall(String namesp } - private ApiResponse createNamespacedStatefulSetWithHttpInfo(String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedStatefulSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedStatefulSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedStatefulSetAsync(String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedStatefulSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedStatefulSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1138,14 +1182,20 @@ private okhttp3.Call createNamespacedStatefulSetAsync(String namespace, V1Statef } public class APIcreateNamespacedStatefulSetRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1StatefulSet body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedStatefulSetRequest(String namespace, V1StatefulSet body) { + private APIcreateNamespacedStatefulSetRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body) { this.namespace = namespace; this.body = body; } @@ -1155,7 +1205,7 @@ private APIcreateNamespacedStatefulSetRequest(String namespace, V1StatefulSet bo * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedStatefulSetRequest */ - public APIcreateNamespacedStatefulSetRequest pretty(String pretty) { + public APIcreateNamespacedStatefulSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1165,7 +1215,7 @@ public APIcreateNamespacedStatefulSetRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedStatefulSetRequest */ - public APIcreateNamespacedStatefulSetRequest dryRun(String dryRun) { + public APIcreateNamespacedStatefulSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1175,7 +1225,7 @@ public APIcreateNamespacedStatefulSetRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedStatefulSetRequest */ - public APIcreateNamespacedStatefulSetRequest fieldManager(String fieldManager) { + public APIcreateNamespacedStatefulSetRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1185,7 +1235,7 @@ public APIcreateNamespacedStatefulSetRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedStatefulSetRequest */ - public APIcreateNamespacedStatefulSetRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedStatefulSetRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1196,7 +1246,8 @@ public APIcreateNamespacedStatefulSetRequest fieldValidation(String fieldValidat * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1213,7 +1264,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1231,7 +1283,8 @@ public V1StatefulSet execute() throws ApiException { * @return ApiResponse<V1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1249,7 +1302,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1269,7 +1323,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param body (required) * @return APIcreateNamespacedStatefulSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1277,10 +1332,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedStatefulSetRequest createNamespacedStatefulSet(String namespace, V1StatefulSet body) { + public APIcreateNamespacedStatefulSetRequest createNamespacedStatefulSet(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body) { return new APIcreateNamespacedStatefulSetRequest(namespace, body); } - private okhttp3.Call deleteCollectionNamespacedControllerRevisionCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedControllerRevisionCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1386,7 +1441,7 @@ private okhttp3.Call deleteCollectionNamespacedControllerRevisionCall(String nam } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedControllerRevisionValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedControllerRevisionValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedControllerRevision(Async)"); @@ -1397,13 +1452,13 @@ private okhttp3.Call deleteCollectionNamespacedControllerRevisionValidateBeforeC } - private ApiResponse deleteCollectionNamespacedControllerRevisionWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedControllerRevisionWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedControllerRevisionAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedControllerRevisionAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1412,24 +1467,40 @@ private okhttp3.Call deleteCollectionNamespacedControllerRevisionAsync(String na } public class APIdeleteCollectionNamespacedControllerRevisionRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedControllerRevisionRequest(String namespace) { + private APIdeleteCollectionNamespacedControllerRevisionRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -1438,7 +1509,7 @@ private APIdeleteCollectionNamespacedControllerRevisionRequest(String namespace) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedControllerRevisionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1448,7 +1519,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest pretty(String pret * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedControllerRevisionRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1458,7 +1529,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest _continue(String _ * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedControllerRevisionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1468,7 +1539,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest dryRun(String dryR * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedControllerRevisionRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1478,7 +1549,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest fieldSelector(Stri * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedControllerRevisionRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1488,7 +1559,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest gracePeriodSeconds * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedControllerRevisionRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1498,7 +1569,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest ignoreStoreReadErr * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedControllerRevisionRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1508,7 +1579,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest labelSelector(Stri * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedControllerRevisionRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1518,7 +1589,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest limit(Integer limi * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedControllerRevisionRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1528,7 +1599,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest orphanDependents(B * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedControllerRevisionRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1538,7 +1609,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest propagationPolicy( * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedControllerRevisionRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1548,7 +1619,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest resourceVersion(St * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedControllerRevisionRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1558,7 +1629,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest resourceVersionMat * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedControllerRevisionRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1568,7 +1639,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest sendInitialEvents( * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedControllerRevisionRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1578,7 +1649,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest timeoutSeconds(Int * @param body (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedControllerRevisionRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1589,7 +1660,8 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest body(V1DeleteOptio * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1604,7 +1676,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1620,7 +1693,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1636,7 +1710,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1653,16 +1728,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedControllerRevisionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedControllerRevisionRequest deleteCollectionNamespacedControllerRevision(String namespace) { + public APIdeleteCollectionNamespacedControllerRevisionRequest deleteCollectionNamespacedControllerRevision(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedControllerRevisionRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedDaemonSetCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedDaemonSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1768,7 +1844,7 @@ private okhttp3.Call deleteCollectionNamespacedDaemonSetCall(String namespace, S } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedDaemonSetValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedDaemonSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedDaemonSet(Async)"); @@ -1779,13 +1855,13 @@ private okhttp3.Call deleteCollectionNamespacedDaemonSetValidateBeforeCall(Strin } - private ApiResponse deleteCollectionNamespacedDaemonSetWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedDaemonSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedDaemonSetAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedDaemonSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1794,24 +1870,40 @@ private okhttp3.Call deleteCollectionNamespacedDaemonSetAsync(String namespace, } public class APIdeleteCollectionNamespacedDaemonSetRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedDaemonSetRequest(String namespace) { + private APIdeleteCollectionNamespacedDaemonSetRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -1820,7 +1912,7 @@ private APIdeleteCollectionNamespacedDaemonSetRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedDaemonSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1830,7 +1922,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedDaemonSetRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1840,7 +1932,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest _continue(String _continue) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedDaemonSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1850,7 +1942,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedDaemonSetRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1860,7 +1952,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest fieldSelector(String fieldS * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedDaemonSetRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1870,7 +1962,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest gracePeriodSeconds(Integer * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedDaemonSetRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1880,7 +1972,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest ignoreStoreReadErrorWithClu * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedDaemonSetRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1890,7 +1982,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest labelSelector(String labelS * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedDaemonSetRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1900,7 +1992,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedDaemonSetRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1910,7 +2002,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest orphanDependents(Boolean or * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedDaemonSetRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1920,7 +2012,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest propagationPolicy(String pr * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedDaemonSetRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1930,7 +2022,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest resourceVersion(String reso * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedDaemonSetRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1940,7 +2032,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest resourceVersionMatch(String * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedDaemonSetRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1950,7 +2042,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest sendInitialEvents(Boolean s * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedDaemonSetRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1960,7 +2052,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest timeoutSeconds(Integer time * @param body (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedDaemonSetRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1971,7 +2063,8 @@ public APIdeleteCollectionNamespacedDaemonSetRequest body(V1DeleteOptions body) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1986,7 +2079,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2002,7 +2096,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2018,7 +2113,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2035,16 +2131,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedDaemonSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedDaemonSetRequest deleteCollectionNamespacedDaemonSet(String namespace) { + public APIdeleteCollectionNamespacedDaemonSetRequest deleteCollectionNamespacedDaemonSet(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedDaemonSetRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedDeploymentCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedDeploymentCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2150,7 +2247,7 @@ private okhttp3.Call deleteCollectionNamespacedDeploymentCall(String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedDeploymentValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedDeploymentValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedDeployment(Async)"); @@ -2161,13 +2258,13 @@ private okhttp3.Call deleteCollectionNamespacedDeploymentValidateBeforeCall(Stri } - private ApiResponse deleteCollectionNamespacedDeploymentWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedDeploymentWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedDeploymentAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedDeploymentAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2176,24 +2273,40 @@ private okhttp3.Call deleteCollectionNamespacedDeploymentAsync(String namespace, } public class APIdeleteCollectionNamespacedDeploymentRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedDeploymentRequest(String namespace) { + private APIdeleteCollectionNamespacedDeploymentRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -2202,7 +2315,7 @@ private APIdeleteCollectionNamespacedDeploymentRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedDeploymentRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2212,7 +2325,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedDeploymentRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2222,7 +2335,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest _continue(String _continue * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedDeploymentRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2232,7 +2345,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedDeploymentRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2242,7 +2355,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest fieldSelector(String field * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedDeploymentRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2252,7 +2365,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest gracePeriodSeconds(Integer * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedDeploymentRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -2262,7 +2375,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest ignoreStoreReadErrorWithCl * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedDeploymentRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2272,7 +2385,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest labelSelector(String label * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedDeploymentRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2282,7 +2395,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedDeploymentRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2292,7 +2405,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest orphanDependents(Boolean o * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedDeploymentRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2302,7 +2415,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest propagationPolicy(String p * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedDeploymentRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2312,7 +2425,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest resourceVersion(String res * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedDeploymentRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2322,7 +2435,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest resourceVersionMatch(Strin * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedDeploymentRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2332,7 +2445,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest sendInitialEvents(Boolean * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedDeploymentRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2342,7 +2455,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest timeoutSeconds(Integer tim * @param body (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedDeploymentRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -2353,7 +2466,8 @@ public APIdeleteCollectionNamespacedDeploymentRequest body(V1DeleteOptions body) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2368,7 +2482,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2384,7 +2499,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2400,7 +2516,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2417,16 +2534,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedDeploymentRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedDeploymentRequest deleteCollectionNamespacedDeployment(String namespace) { + public APIdeleteCollectionNamespacedDeploymentRequest deleteCollectionNamespacedDeployment(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedDeploymentRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedReplicaSetCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedReplicaSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2532,7 +2650,7 @@ private okhttp3.Call deleteCollectionNamespacedReplicaSetCall(String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedReplicaSetValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedReplicaSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedReplicaSet(Async)"); @@ -2543,13 +2661,13 @@ private okhttp3.Call deleteCollectionNamespacedReplicaSetValidateBeforeCall(Stri } - private ApiResponse deleteCollectionNamespacedReplicaSetWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedReplicaSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedReplicaSetAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedReplicaSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2558,24 +2676,40 @@ private okhttp3.Call deleteCollectionNamespacedReplicaSetAsync(String namespace, } public class APIdeleteCollectionNamespacedReplicaSetRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedReplicaSetRequest(String namespace) { + private APIdeleteCollectionNamespacedReplicaSetRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -2584,7 +2718,7 @@ private APIdeleteCollectionNamespacedReplicaSetRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedReplicaSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2594,7 +2728,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedReplicaSetRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2604,7 +2738,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest _continue(String _continue * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedReplicaSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2614,7 +2748,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedReplicaSetRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2624,7 +2758,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest fieldSelector(String field * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedReplicaSetRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2634,7 +2768,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest gracePeriodSeconds(Integer * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedReplicaSetRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -2644,7 +2778,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest ignoreStoreReadErrorWithCl * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedReplicaSetRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2654,7 +2788,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest labelSelector(String label * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedReplicaSetRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2664,7 +2798,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedReplicaSetRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2674,7 +2808,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest orphanDependents(Boolean o * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedReplicaSetRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2684,7 +2818,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest propagationPolicy(String p * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedReplicaSetRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2694,7 +2828,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest resourceVersion(String res * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedReplicaSetRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2704,7 +2838,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest resourceVersionMatch(Strin * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedReplicaSetRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2714,7 +2848,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest sendInitialEvents(Boolean * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedReplicaSetRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2724,7 +2858,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest timeoutSeconds(Integer tim * @param body (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedReplicaSetRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -2735,7 +2869,8 @@ public APIdeleteCollectionNamespacedReplicaSetRequest body(V1DeleteOptions body) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2750,7 +2885,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2766,7 +2902,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2782,7 +2919,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2799,16 +2937,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedReplicaSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedReplicaSetRequest deleteCollectionNamespacedReplicaSet(String namespace) { + public APIdeleteCollectionNamespacedReplicaSetRequest deleteCollectionNamespacedReplicaSet(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedReplicaSetRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedStatefulSetCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedStatefulSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2914,7 +3053,7 @@ private okhttp3.Call deleteCollectionNamespacedStatefulSetCall(String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedStatefulSetValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedStatefulSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedStatefulSet(Async)"); @@ -2925,13 +3064,13 @@ private okhttp3.Call deleteCollectionNamespacedStatefulSetValidateBeforeCall(Str } - private ApiResponse deleteCollectionNamespacedStatefulSetWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedStatefulSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedStatefulSetAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedStatefulSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2940,24 +3079,40 @@ private okhttp3.Call deleteCollectionNamespacedStatefulSetAsync(String namespace } public class APIdeleteCollectionNamespacedStatefulSetRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedStatefulSetRequest(String namespace) { + private APIdeleteCollectionNamespacedStatefulSetRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -2966,7 +3121,7 @@ private APIdeleteCollectionNamespacedStatefulSetRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedStatefulSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2976,7 +3131,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedStatefulSetRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2986,7 +3141,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest _continue(String _continu * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedStatefulSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2996,7 +3151,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedStatefulSetRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -3006,7 +3161,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest fieldSelector(String fiel * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedStatefulSetRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -3016,7 +3171,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest gracePeriodSeconds(Intege * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedStatefulSetRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -3026,7 +3181,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest ignoreStoreReadErrorWithC * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedStatefulSetRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -3036,7 +3191,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest labelSelector(String labe * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedStatefulSetRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -3046,7 +3201,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedStatefulSetRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3056,7 +3211,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest orphanDependents(Boolean * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedStatefulSetRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3066,7 +3221,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest propagationPolicy(String * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedStatefulSetRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -3076,7 +3231,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest resourceVersion(String re * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedStatefulSetRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -3086,7 +3241,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest resourceVersionMatch(Stri * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedStatefulSetRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -3096,7 +3251,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest sendInitialEvents(Boolean * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedStatefulSetRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -3106,7 +3261,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest timeoutSeconds(Integer ti * @param body (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedStatefulSetRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -3117,7 +3272,8 @@ public APIdeleteCollectionNamespacedStatefulSetRequest body(V1DeleteOptions body * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3132,7 +3288,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3148,7 +3305,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3164,7 +3322,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3181,16 +3340,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedStatefulSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedStatefulSetRequest deleteCollectionNamespacedStatefulSet(String namespace) { + public APIdeleteCollectionNamespacedStatefulSetRequest deleteCollectionNamespacedStatefulSet(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedStatefulSetRequest(namespace); } - private okhttp3.Call deleteNamespacedControllerRevisionCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedControllerRevisionCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3265,7 +3425,7 @@ private okhttp3.Call deleteNamespacedControllerRevisionCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedControllerRevisionValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedControllerRevision(Async)"); @@ -3281,13 +3441,13 @@ private okhttp3.Call deleteNamespacedControllerRevisionValidateBeforeCall(String } - private ApiResponse deleteNamespacedControllerRevisionWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedControllerRevisionWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedControllerRevisionAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedControllerRevisionAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3296,17 +3456,26 @@ private okhttp3.Call deleteNamespacedControllerRevisionAsync(String name, String } public class APIdeleteNamespacedControllerRevisionRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedControllerRevisionRequest(String name, String namespace) { + private APIdeleteNamespacedControllerRevisionRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -3316,7 +3485,7 @@ private APIdeleteNamespacedControllerRevisionRequest(String name, String namespa * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedControllerRevisionRequest */ - public APIdeleteNamespacedControllerRevisionRequest pretty(String pretty) { + public APIdeleteNamespacedControllerRevisionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3326,7 +3495,7 @@ public APIdeleteNamespacedControllerRevisionRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedControllerRevisionRequest */ - public APIdeleteNamespacedControllerRevisionRequest dryRun(String dryRun) { + public APIdeleteNamespacedControllerRevisionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3336,7 +3505,7 @@ public APIdeleteNamespacedControllerRevisionRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedControllerRevisionRequest */ - public APIdeleteNamespacedControllerRevisionRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedControllerRevisionRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -3346,7 +3515,7 @@ public APIdeleteNamespacedControllerRevisionRequest gracePeriodSeconds(Integer g * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedControllerRevisionRequest */ - public APIdeleteNamespacedControllerRevisionRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedControllerRevisionRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -3356,7 +3525,7 @@ public APIdeleteNamespacedControllerRevisionRequest ignoreStoreReadErrorWithClus * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedControllerRevisionRequest */ - public APIdeleteNamespacedControllerRevisionRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedControllerRevisionRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3366,7 +3535,7 @@ public APIdeleteNamespacedControllerRevisionRequest orphanDependents(Boolean orp * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedControllerRevisionRequest */ - public APIdeleteNamespacedControllerRevisionRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedControllerRevisionRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3376,7 +3545,7 @@ public APIdeleteNamespacedControllerRevisionRequest propagationPolicy(String pro * @param body (optional) * @return APIdeleteNamespacedControllerRevisionRequest */ - public APIdeleteNamespacedControllerRevisionRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedControllerRevisionRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -3387,7 +3556,8 @@ public APIdeleteNamespacedControllerRevisionRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3403,7 +3573,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3420,7 +3591,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3437,7 +3609,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3456,17 +3629,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedControllerRevisionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedControllerRevisionRequest deleteNamespacedControllerRevision(String name, String namespace) { + public APIdeleteNamespacedControllerRevisionRequest deleteNamespacedControllerRevision(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedControllerRevisionRequest(name, namespace); } - private okhttp3.Call deleteNamespacedDaemonSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedDaemonSetCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3541,7 +3715,7 @@ private okhttp3.Call deleteNamespacedDaemonSetCall(String name, String namespace } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedDaemonSetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedDaemonSetValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedDaemonSet(Async)"); @@ -3557,13 +3731,13 @@ private okhttp3.Call deleteNamespacedDaemonSetValidateBeforeCall(String name, St } - private ApiResponse deleteNamespacedDaemonSetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedDaemonSetWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedDaemonSetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedDaemonSetAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3572,17 +3746,26 @@ private okhttp3.Call deleteNamespacedDaemonSetAsync(String name, String namespac } public class APIdeleteNamespacedDaemonSetRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedDaemonSetRequest(String name, String namespace) { + private APIdeleteNamespacedDaemonSetRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -3592,7 +3775,7 @@ private APIdeleteNamespacedDaemonSetRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedDaemonSetRequest */ - public APIdeleteNamespacedDaemonSetRequest pretty(String pretty) { + public APIdeleteNamespacedDaemonSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3602,7 +3785,7 @@ public APIdeleteNamespacedDaemonSetRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedDaemonSetRequest */ - public APIdeleteNamespacedDaemonSetRequest dryRun(String dryRun) { + public APIdeleteNamespacedDaemonSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3612,7 +3795,7 @@ public APIdeleteNamespacedDaemonSetRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedDaemonSetRequest */ - public APIdeleteNamespacedDaemonSetRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedDaemonSetRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -3622,7 +3805,7 @@ public APIdeleteNamespacedDaemonSetRequest gracePeriodSeconds(Integer gracePerio * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedDaemonSetRequest */ - public APIdeleteNamespacedDaemonSetRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedDaemonSetRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -3632,7 +3815,7 @@ public APIdeleteNamespacedDaemonSetRequest ignoreStoreReadErrorWithClusterBreaki * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedDaemonSetRequest */ - public APIdeleteNamespacedDaemonSetRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedDaemonSetRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3642,7 +3825,7 @@ public APIdeleteNamespacedDaemonSetRequest orphanDependents(Boolean orphanDepend * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedDaemonSetRequest */ - public APIdeleteNamespacedDaemonSetRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedDaemonSetRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3652,7 +3835,7 @@ public APIdeleteNamespacedDaemonSetRequest propagationPolicy(String propagationP * @param body (optional) * @return APIdeleteNamespacedDaemonSetRequest */ - public APIdeleteNamespacedDaemonSetRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedDaemonSetRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -3663,7 +3846,8 @@ public APIdeleteNamespacedDaemonSetRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3679,7 +3863,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3696,7 +3881,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3713,7 +3899,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3732,17 +3919,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedDaemonSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedDaemonSetRequest deleteNamespacedDaemonSet(String name, String namespace) { + public APIdeleteNamespacedDaemonSetRequest deleteNamespacedDaemonSet(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedDaemonSetRequest(name, namespace); } - private okhttp3.Call deleteNamespacedDeploymentCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedDeploymentCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3817,7 +4005,7 @@ private okhttp3.Call deleteNamespacedDeploymentCall(String name, String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedDeploymentValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedDeploymentValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedDeployment(Async)"); @@ -3833,13 +4021,13 @@ private okhttp3.Call deleteNamespacedDeploymentValidateBeforeCall(String name, S } - private ApiResponse deleteNamespacedDeploymentWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedDeploymentWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedDeploymentAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedDeploymentAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3848,17 +4036,26 @@ private okhttp3.Call deleteNamespacedDeploymentAsync(String name, String namespa } public class APIdeleteNamespacedDeploymentRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedDeploymentRequest(String name, String namespace) { + private APIdeleteNamespacedDeploymentRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -3868,7 +4065,7 @@ private APIdeleteNamespacedDeploymentRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedDeploymentRequest */ - public APIdeleteNamespacedDeploymentRequest pretty(String pretty) { + public APIdeleteNamespacedDeploymentRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3878,7 +4075,7 @@ public APIdeleteNamespacedDeploymentRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedDeploymentRequest */ - public APIdeleteNamespacedDeploymentRequest dryRun(String dryRun) { + public APIdeleteNamespacedDeploymentRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3888,7 +4085,7 @@ public APIdeleteNamespacedDeploymentRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedDeploymentRequest */ - public APIdeleteNamespacedDeploymentRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedDeploymentRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -3898,7 +4095,7 @@ public APIdeleteNamespacedDeploymentRequest gracePeriodSeconds(Integer gracePeri * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedDeploymentRequest */ - public APIdeleteNamespacedDeploymentRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedDeploymentRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -3908,7 +4105,7 @@ public APIdeleteNamespacedDeploymentRequest ignoreStoreReadErrorWithClusterBreak * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedDeploymentRequest */ - public APIdeleteNamespacedDeploymentRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedDeploymentRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3918,7 +4115,7 @@ public APIdeleteNamespacedDeploymentRequest orphanDependents(Boolean orphanDepen * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedDeploymentRequest */ - public APIdeleteNamespacedDeploymentRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedDeploymentRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3928,7 +4125,7 @@ public APIdeleteNamespacedDeploymentRequest propagationPolicy(String propagation * @param body (optional) * @return APIdeleteNamespacedDeploymentRequest */ - public APIdeleteNamespacedDeploymentRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedDeploymentRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -3939,7 +4136,8 @@ public APIdeleteNamespacedDeploymentRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3955,7 +4153,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3972,7 +4171,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3989,7 +4189,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -4008,17 +4209,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedDeploymentRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedDeploymentRequest deleteNamespacedDeployment(String name, String namespace) { + public APIdeleteNamespacedDeploymentRequest deleteNamespacedDeployment(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedDeploymentRequest(name, namespace); } - private okhttp3.Call deleteNamespacedReplicaSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedReplicaSetCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4093,7 +4295,7 @@ private okhttp3.Call deleteNamespacedReplicaSetCall(String name, String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedReplicaSetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedReplicaSetValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedReplicaSet(Async)"); @@ -4109,13 +4311,13 @@ private okhttp3.Call deleteNamespacedReplicaSetValidateBeforeCall(String name, S } - private ApiResponse deleteNamespacedReplicaSetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedReplicaSetWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedReplicaSetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedReplicaSetAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4124,17 +4326,26 @@ private okhttp3.Call deleteNamespacedReplicaSetAsync(String name, String namespa } public class APIdeleteNamespacedReplicaSetRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedReplicaSetRequest(String name, String namespace) { + private APIdeleteNamespacedReplicaSetRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -4144,7 +4355,7 @@ private APIdeleteNamespacedReplicaSetRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedReplicaSetRequest */ - public APIdeleteNamespacedReplicaSetRequest pretty(String pretty) { + public APIdeleteNamespacedReplicaSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4154,7 +4365,7 @@ public APIdeleteNamespacedReplicaSetRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedReplicaSetRequest */ - public APIdeleteNamespacedReplicaSetRequest dryRun(String dryRun) { + public APIdeleteNamespacedReplicaSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4164,7 +4375,7 @@ public APIdeleteNamespacedReplicaSetRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedReplicaSetRequest */ - public APIdeleteNamespacedReplicaSetRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedReplicaSetRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -4174,7 +4385,7 @@ public APIdeleteNamespacedReplicaSetRequest gracePeriodSeconds(Integer gracePeri * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedReplicaSetRequest */ - public APIdeleteNamespacedReplicaSetRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedReplicaSetRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -4184,7 +4395,7 @@ public APIdeleteNamespacedReplicaSetRequest ignoreStoreReadErrorWithClusterBreak * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedReplicaSetRequest */ - public APIdeleteNamespacedReplicaSetRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedReplicaSetRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -4194,7 +4405,7 @@ public APIdeleteNamespacedReplicaSetRequest orphanDependents(Boolean orphanDepen * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedReplicaSetRequest */ - public APIdeleteNamespacedReplicaSetRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedReplicaSetRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -4204,7 +4415,7 @@ public APIdeleteNamespacedReplicaSetRequest propagationPolicy(String propagation * @param body (optional) * @return APIdeleteNamespacedReplicaSetRequest */ - public APIdeleteNamespacedReplicaSetRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedReplicaSetRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -4215,7 +4426,8 @@ public APIdeleteNamespacedReplicaSetRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4231,7 +4443,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -4248,7 +4461,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -4265,7 +4479,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -4284,17 +4499,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedReplicaSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedReplicaSetRequest deleteNamespacedReplicaSet(String name, String namespace) { + public APIdeleteNamespacedReplicaSetRequest deleteNamespacedReplicaSet(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedReplicaSetRequest(name, namespace); } - private okhttp3.Call deleteNamespacedStatefulSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedStatefulSetCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4369,7 +4585,7 @@ private okhttp3.Call deleteNamespacedStatefulSetCall(String name, String namespa } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedStatefulSetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedStatefulSetValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedStatefulSet(Async)"); @@ -4385,13 +4601,13 @@ private okhttp3.Call deleteNamespacedStatefulSetValidateBeforeCall(String name, } - private ApiResponse deleteNamespacedStatefulSetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedStatefulSetWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedStatefulSetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedStatefulSetAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4400,17 +4616,26 @@ private okhttp3.Call deleteNamespacedStatefulSetAsync(String name, String namesp } public class APIdeleteNamespacedStatefulSetRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedStatefulSetRequest(String name, String namespace) { + private APIdeleteNamespacedStatefulSetRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -4420,7 +4645,7 @@ private APIdeleteNamespacedStatefulSetRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedStatefulSetRequest */ - public APIdeleteNamespacedStatefulSetRequest pretty(String pretty) { + public APIdeleteNamespacedStatefulSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4430,7 +4655,7 @@ public APIdeleteNamespacedStatefulSetRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedStatefulSetRequest */ - public APIdeleteNamespacedStatefulSetRequest dryRun(String dryRun) { + public APIdeleteNamespacedStatefulSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4440,7 +4665,7 @@ public APIdeleteNamespacedStatefulSetRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedStatefulSetRequest */ - public APIdeleteNamespacedStatefulSetRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedStatefulSetRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -4450,7 +4675,7 @@ public APIdeleteNamespacedStatefulSetRequest gracePeriodSeconds(Integer gracePer * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedStatefulSetRequest */ - public APIdeleteNamespacedStatefulSetRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedStatefulSetRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -4460,7 +4685,7 @@ public APIdeleteNamespacedStatefulSetRequest ignoreStoreReadErrorWithClusterBrea * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedStatefulSetRequest */ - public APIdeleteNamespacedStatefulSetRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedStatefulSetRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -4470,7 +4695,7 @@ public APIdeleteNamespacedStatefulSetRequest orphanDependents(Boolean orphanDepe * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedStatefulSetRequest */ - public APIdeleteNamespacedStatefulSetRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedStatefulSetRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -4480,7 +4705,7 @@ public APIdeleteNamespacedStatefulSetRequest propagationPolicy(String propagatio * @param body (optional) * @return APIdeleteNamespacedStatefulSetRequest */ - public APIdeleteNamespacedStatefulSetRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedStatefulSetRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -4491,7 +4716,8 @@ public APIdeleteNamespacedStatefulSetRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4507,7 +4733,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -4524,7 +4751,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -4541,7 +4769,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -4560,14 +4789,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedStatefulSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedStatefulSetRequest deleteNamespacedStatefulSet(String name, String namespace) { + public APIdeleteNamespacedStatefulSetRequest deleteNamespacedStatefulSet(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedStatefulSetRequest(name, namespace); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -4649,7 +4879,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4664,7 +4895,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4680,7 +4912,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4696,7 +4929,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4712,7 +4946,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4721,7 +4956,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listControllerRevisionForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listControllerRevisionForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4816,19 +5051,19 @@ private okhttp3.Call listControllerRevisionForAllNamespacesCall(Boolean allowWat } @SuppressWarnings("rawtypes") - private okhttp3.Call listControllerRevisionForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listControllerRevisionForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listControllerRevisionForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listControllerRevisionForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listControllerRevisionForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listControllerRevisionForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listControllerRevisionForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listControllerRevisionForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listControllerRevisionForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4837,16 +5072,27 @@ private okhttp3.Call listControllerRevisionForAllNamespacesAsync(Boolean allowWa } public class APIlistControllerRevisionForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistControllerRevisionForAllNamespacesRequest() { @@ -4857,7 +5103,7 @@ private APIlistControllerRevisionForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistControllerRevisionForAllNamespacesRequest */ - public APIlistControllerRevisionForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistControllerRevisionForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -4867,7 +5113,7 @@ public APIlistControllerRevisionForAllNamespacesRequest allowWatchBookmarks(Bool * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistControllerRevisionForAllNamespacesRequest */ - public APIlistControllerRevisionForAllNamespacesRequest _continue(String _continue) { + public APIlistControllerRevisionForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -4877,7 +5123,7 @@ public APIlistControllerRevisionForAllNamespacesRequest _continue(String _contin * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistControllerRevisionForAllNamespacesRequest */ - public APIlistControllerRevisionForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistControllerRevisionForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -4887,7 +5133,7 @@ public APIlistControllerRevisionForAllNamespacesRequest fieldSelector(String fie * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistControllerRevisionForAllNamespacesRequest */ - public APIlistControllerRevisionForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistControllerRevisionForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -4897,7 +5143,7 @@ public APIlistControllerRevisionForAllNamespacesRequest labelSelector(String lab * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistControllerRevisionForAllNamespacesRequest */ - public APIlistControllerRevisionForAllNamespacesRequest limit(Integer limit) { + public APIlistControllerRevisionForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -4907,7 +5153,7 @@ public APIlistControllerRevisionForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistControllerRevisionForAllNamespacesRequest */ - public APIlistControllerRevisionForAllNamespacesRequest pretty(String pretty) { + public APIlistControllerRevisionForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4917,7 +5163,7 @@ public APIlistControllerRevisionForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistControllerRevisionForAllNamespacesRequest */ - public APIlistControllerRevisionForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistControllerRevisionForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -4927,7 +5173,7 @@ public APIlistControllerRevisionForAllNamespacesRequest resourceVersion(String r * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistControllerRevisionForAllNamespacesRequest */ - public APIlistControllerRevisionForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistControllerRevisionForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -4937,7 +5183,7 @@ public APIlistControllerRevisionForAllNamespacesRequest resourceVersionMatch(Str * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistControllerRevisionForAllNamespacesRequest */ - public APIlistControllerRevisionForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistControllerRevisionForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -4947,7 +5193,7 @@ public APIlistControllerRevisionForAllNamespacesRequest sendInitialEvents(Boolea * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistControllerRevisionForAllNamespacesRequest */ - public APIlistControllerRevisionForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistControllerRevisionForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4957,7 +5203,7 @@ public APIlistControllerRevisionForAllNamespacesRequest timeoutSeconds(Integer t * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistControllerRevisionForAllNamespacesRequest */ - public APIlistControllerRevisionForAllNamespacesRequest watch(Boolean watch) { + public APIlistControllerRevisionForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -4968,7 +5214,8 @@ public APIlistControllerRevisionForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4983,7 +5230,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ControllerRevisionList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4999,7 +5247,8 @@ public V1ControllerRevisionList execute() throws ApiException { * @return ApiResponse<V1ControllerRevisionList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5015,7 +5264,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExc * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5031,7 +5281,8 @@ public okhttp3.Call executeAsync(final ApiCallback _ca * list or watch objects of kind ControllerRevision * @return APIlistControllerRevisionForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5040,7 +5291,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca public APIlistControllerRevisionForAllNamespacesRequest listControllerRevisionForAllNamespaces() { return new APIlistControllerRevisionForAllNamespacesRequest(); } - private okhttp3.Call listDaemonSetForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDaemonSetForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5135,19 +5386,19 @@ private okhttp3.Call listDaemonSetForAllNamespacesCall(Boolean allowWatchBookmar } @SuppressWarnings("rawtypes") - private okhttp3.Call listDaemonSetForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDaemonSetForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listDaemonSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listDaemonSetForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listDaemonSetForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listDaemonSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listDaemonSetForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDaemonSetForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listDaemonSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5156,16 +5407,27 @@ private okhttp3.Call listDaemonSetForAllNamespacesAsync(Boolean allowWatchBookma } public class APIlistDaemonSetForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistDaemonSetForAllNamespacesRequest() { @@ -5176,7 +5438,7 @@ private APIlistDaemonSetForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistDaemonSetForAllNamespacesRequest */ - public APIlistDaemonSetForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistDaemonSetForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5186,7 +5448,7 @@ public APIlistDaemonSetForAllNamespacesRequest allowWatchBookmarks(Boolean allow * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistDaemonSetForAllNamespacesRequest */ - public APIlistDaemonSetForAllNamespacesRequest _continue(String _continue) { + public APIlistDaemonSetForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5196,7 +5458,7 @@ public APIlistDaemonSetForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistDaemonSetForAllNamespacesRequest */ - public APIlistDaemonSetForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistDaemonSetForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5206,7 +5468,7 @@ public APIlistDaemonSetForAllNamespacesRequest fieldSelector(String fieldSelecto * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistDaemonSetForAllNamespacesRequest */ - public APIlistDaemonSetForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistDaemonSetForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5216,7 +5478,7 @@ public APIlistDaemonSetForAllNamespacesRequest labelSelector(String labelSelecto * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistDaemonSetForAllNamespacesRequest */ - public APIlistDaemonSetForAllNamespacesRequest limit(Integer limit) { + public APIlistDaemonSetForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -5226,7 +5488,7 @@ public APIlistDaemonSetForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistDaemonSetForAllNamespacesRequest */ - public APIlistDaemonSetForAllNamespacesRequest pretty(String pretty) { + public APIlistDaemonSetForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5236,7 +5498,7 @@ public APIlistDaemonSetForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistDaemonSetForAllNamespacesRequest */ - public APIlistDaemonSetForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistDaemonSetForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -5246,7 +5508,7 @@ public APIlistDaemonSetForAllNamespacesRequest resourceVersion(String resourceVe * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistDaemonSetForAllNamespacesRequest */ - public APIlistDaemonSetForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistDaemonSetForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -5256,7 +5518,7 @@ public APIlistDaemonSetForAllNamespacesRequest resourceVersionMatch(String resou * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistDaemonSetForAllNamespacesRequest */ - public APIlistDaemonSetForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistDaemonSetForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -5266,7 +5528,7 @@ public APIlistDaemonSetForAllNamespacesRequest sendInitialEvents(Boolean sendIni * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistDaemonSetForAllNamespacesRequest */ - public APIlistDaemonSetForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistDaemonSetForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -5276,7 +5538,7 @@ public APIlistDaemonSetForAllNamespacesRequest timeoutSeconds(Integer timeoutSec * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistDaemonSetForAllNamespacesRequest */ - public APIlistDaemonSetForAllNamespacesRequest watch(Boolean watch) { + public APIlistDaemonSetForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -5287,7 +5549,8 @@ public APIlistDaemonSetForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5302,7 +5565,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1DaemonSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5318,7 +5582,8 @@ public V1DaemonSetList execute() throws ApiException { * @return ApiResponse<V1DaemonSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5334,7 +5599,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5350,7 +5616,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * list or watch objects of kind DaemonSet * @return APIlistDaemonSetForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5359,7 +5626,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t public APIlistDaemonSetForAllNamespacesRequest listDaemonSetForAllNamespaces() { return new APIlistDaemonSetForAllNamespacesRequest(); } - private okhttp3.Call listDeploymentForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDeploymentForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5454,19 +5721,19 @@ private okhttp3.Call listDeploymentForAllNamespacesCall(Boolean allowWatchBookma } @SuppressWarnings("rawtypes") - private okhttp3.Call listDeploymentForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDeploymentForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listDeploymentForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listDeploymentForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listDeploymentForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listDeploymentForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listDeploymentForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDeploymentForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listDeploymentForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5475,16 +5742,27 @@ private okhttp3.Call listDeploymentForAllNamespacesAsync(Boolean allowWatchBookm } public class APIlistDeploymentForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistDeploymentForAllNamespacesRequest() { @@ -5495,7 +5773,7 @@ private APIlistDeploymentForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistDeploymentForAllNamespacesRequest */ - public APIlistDeploymentForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistDeploymentForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5505,7 +5783,7 @@ public APIlistDeploymentForAllNamespacesRequest allowWatchBookmarks(Boolean allo * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistDeploymentForAllNamespacesRequest */ - public APIlistDeploymentForAllNamespacesRequest _continue(String _continue) { + public APIlistDeploymentForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5515,7 +5793,7 @@ public APIlistDeploymentForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistDeploymentForAllNamespacesRequest */ - public APIlistDeploymentForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistDeploymentForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5525,7 +5803,7 @@ public APIlistDeploymentForAllNamespacesRequest fieldSelector(String fieldSelect * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistDeploymentForAllNamespacesRequest */ - public APIlistDeploymentForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistDeploymentForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5535,7 +5813,7 @@ public APIlistDeploymentForAllNamespacesRequest labelSelector(String labelSelect * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistDeploymentForAllNamespacesRequest */ - public APIlistDeploymentForAllNamespacesRequest limit(Integer limit) { + public APIlistDeploymentForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -5545,7 +5823,7 @@ public APIlistDeploymentForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistDeploymentForAllNamespacesRequest */ - public APIlistDeploymentForAllNamespacesRequest pretty(String pretty) { + public APIlistDeploymentForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5555,7 +5833,7 @@ public APIlistDeploymentForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistDeploymentForAllNamespacesRequest */ - public APIlistDeploymentForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistDeploymentForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -5565,7 +5843,7 @@ public APIlistDeploymentForAllNamespacesRequest resourceVersion(String resourceV * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistDeploymentForAllNamespacesRequest */ - public APIlistDeploymentForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistDeploymentForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -5575,7 +5853,7 @@ public APIlistDeploymentForAllNamespacesRequest resourceVersionMatch(String reso * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistDeploymentForAllNamespacesRequest */ - public APIlistDeploymentForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistDeploymentForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -5585,7 +5863,7 @@ public APIlistDeploymentForAllNamespacesRequest sendInitialEvents(Boolean sendIn * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistDeploymentForAllNamespacesRequest */ - public APIlistDeploymentForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistDeploymentForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -5595,7 +5873,7 @@ public APIlistDeploymentForAllNamespacesRequest timeoutSeconds(Integer timeoutSe * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistDeploymentForAllNamespacesRequest */ - public APIlistDeploymentForAllNamespacesRequest watch(Boolean watch) { + public APIlistDeploymentForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -5606,7 +5884,8 @@ public APIlistDeploymentForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5621,7 +5900,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1DeploymentList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5637,7 +5917,8 @@ public V1DeploymentList execute() throws ApiException { * @return ApiResponse<V1DeploymentList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5653,7 +5934,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5669,7 +5951,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * list or watch objects of kind Deployment * @return APIlistDeploymentForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5678,7 +5961,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistDeploymentForAllNamespacesRequest listDeploymentForAllNamespaces() { return new APIlistDeploymentForAllNamespacesRequest(); } - private okhttp3.Call listNamespacedControllerRevisionCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedControllerRevisionCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5774,7 +6057,7 @@ private okhttp3.Call listNamespacedControllerRevisionCall(String namespace, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedControllerRevisionValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedControllerRevisionValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedControllerRevision(Async)"); @@ -5785,13 +6068,13 @@ private okhttp3.Call listNamespacedControllerRevisionValidateBeforeCall(String n } - private ApiResponse listNamespacedControllerRevisionWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedControllerRevisionWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedControllerRevisionAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedControllerRevisionAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5800,20 +6083,32 @@ private okhttp3.Call listNamespacedControllerRevisionAsync(String namespace, Str } public class APIlistNamespacedControllerRevisionRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedControllerRevisionRequest(String namespace) { + private APIlistNamespacedControllerRevisionRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -5822,7 +6117,7 @@ private APIlistNamespacedControllerRevisionRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedControllerRevisionRequest */ - public APIlistNamespacedControllerRevisionRequest pretty(String pretty) { + public APIlistNamespacedControllerRevisionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5832,7 +6127,7 @@ public APIlistNamespacedControllerRevisionRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedControllerRevisionRequest */ - public APIlistNamespacedControllerRevisionRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedControllerRevisionRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5842,7 +6137,7 @@ public APIlistNamespacedControllerRevisionRequest allowWatchBookmarks(Boolean al * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedControllerRevisionRequest */ - public APIlistNamespacedControllerRevisionRequest _continue(String _continue) { + public APIlistNamespacedControllerRevisionRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5852,7 +6147,7 @@ public APIlistNamespacedControllerRevisionRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedControllerRevisionRequest */ - public APIlistNamespacedControllerRevisionRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedControllerRevisionRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5862,7 +6157,7 @@ public APIlistNamespacedControllerRevisionRequest fieldSelector(String fieldSele * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedControllerRevisionRequest */ - public APIlistNamespacedControllerRevisionRequest labelSelector(String labelSelector) { + public APIlistNamespacedControllerRevisionRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5872,7 +6167,7 @@ public APIlistNamespacedControllerRevisionRequest labelSelector(String labelSele * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedControllerRevisionRequest */ - public APIlistNamespacedControllerRevisionRequest limit(Integer limit) { + public APIlistNamespacedControllerRevisionRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -5882,7 +6177,7 @@ public APIlistNamespacedControllerRevisionRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedControllerRevisionRequest */ - public APIlistNamespacedControllerRevisionRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedControllerRevisionRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -5892,7 +6187,7 @@ public APIlistNamespacedControllerRevisionRequest resourceVersion(String resourc * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedControllerRevisionRequest */ - public APIlistNamespacedControllerRevisionRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedControllerRevisionRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -5902,7 +6197,7 @@ public APIlistNamespacedControllerRevisionRequest resourceVersionMatch(String re * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedControllerRevisionRequest */ - public APIlistNamespacedControllerRevisionRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedControllerRevisionRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -5912,7 +6207,7 @@ public APIlistNamespacedControllerRevisionRequest sendInitialEvents(Boolean send * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedControllerRevisionRequest */ - public APIlistNamespacedControllerRevisionRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedControllerRevisionRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -5922,7 +6217,7 @@ public APIlistNamespacedControllerRevisionRequest timeoutSeconds(Integer timeout * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedControllerRevisionRequest */ - public APIlistNamespacedControllerRevisionRequest watch(Boolean watch) { + public APIlistNamespacedControllerRevisionRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -5933,7 +6228,8 @@ public APIlistNamespacedControllerRevisionRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5948,7 +6244,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ControllerRevisionList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5964,7 +6261,8 @@ public V1ControllerRevisionList execute() throws ApiException { * @return ApiResponse<V1ControllerRevisionList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5980,7 +6278,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExc * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5997,16 +6296,17 @@ public okhttp3.Call executeAsync(final ApiCallback _ca * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedControllerRevisionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedControllerRevisionRequest listNamespacedControllerRevision(String namespace) { + public APIlistNamespacedControllerRevisionRequest listNamespacedControllerRevision(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedControllerRevisionRequest(namespace); } - private okhttp3.Call listNamespacedDaemonSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedDaemonSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6102,7 +6402,7 @@ private okhttp3.Call listNamespacedDaemonSetCall(String namespace, String pretty } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedDaemonSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedDaemonSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedDaemonSet(Async)"); @@ -6113,13 +6413,13 @@ private okhttp3.Call listNamespacedDaemonSetValidateBeforeCall(String namespace, } - private ApiResponse listNamespacedDaemonSetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedDaemonSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedDaemonSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedDaemonSetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedDaemonSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedDaemonSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6128,20 +6428,32 @@ private okhttp3.Call listNamespacedDaemonSetAsync(String namespace, String prett } public class APIlistNamespacedDaemonSetRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedDaemonSetRequest(String namespace) { + private APIlistNamespacedDaemonSetRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -6150,7 +6462,7 @@ private APIlistNamespacedDaemonSetRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedDaemonSetRequest */ - public APIlistNamespacedDaemonSetRequest pretty(String pretty) { + public APIlistNamespacedDaemonSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6160,7 +6472,7 @@ public APIlistNamespacedDaemonSetRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedDaemonSetRequest */ - public APIlistNamespacedDaemonSetRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedDaemonSetRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -6170,7 +6482,7 @@ public APIlistNamespacedDaemonSetRequest allowWatchBookmarks(Boolean allowWatchB * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedDaemonSetRequest */ - public APIlistNamespacedDaemonSetRequest _continue(String _continue) { + public APIlistNamespacedDaemonSetRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -6180,7 +6492,7 @@ public APIlistNamespacedDaemonSetRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedDaemonSetRequest */ - public APIlistNamespacedDaemonSetRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedDaemonSetRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -6190,7 +6502,7 @@ public APIlistNamespacedDaemonSetRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedDaemonSetRequest */ - public APIlistNamespacedDaemonSetRequest labelSelector(String labelSelector) { + public APIlistNamespacedDaemonSetRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -6200,7 +6512,7 @@ public APIlistNamespacedDaemonSetRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedDaemonSetRequest */ - public APIlistNamespacedDaemonSetRequest limit(Integer limit) { + public APIlistNamespacedDaemonSetRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -6210,7 +6522,7 @@ public APIlistNamespacedDaemonSetRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedDaemonSetRequest */ - public APIlistNamespacedDaemonSetRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedDaemonSetRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -6220,7 +6532,7 @@ public APIlistNamespacedDaemonSetRequest resourceVersion(String resourceVersion) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedDaemonSetRequest */ - public APIlistNamespacedDaemonSetRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedDaemonSetRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -6230,7 +6542,7 @@ public APIlistNamespacedDaemonSetRequest resourceVersionMatch(String resourceVer * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedDaemonSetRequest */ - public APIlistNamespacedDaemonSetRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedDaemonSetRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -6240,7 +6552,7 @@ public APIlistNamespacedDaemonSetRequest sendInitialEvents(Boolean sendInitialEv * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedDaemonSetRequest */ - public APIlistNamespacedDaemonSetRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedDaemonSetRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -6250,7 +6562,7 @@ public APIlistNamespacedDaemonSetRequest timeoutSeconds(Integer timeoutSeconds) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedDaemonSetRequest */ - public APIlistNamespacedDaemonSetRequest watch(Boolean watch) { + public APIlistNamespacedDaemonSetRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -6261,7 +6573,8 @@ public APIlistNamespacedDaemonSetRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6276,7 +6589,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1DaemonSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6292,7 +6606,8 @@ public V1DaemonSetList execute() throws ApiException { * @return ApiResponse<V1DaemonSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6308,7 +6623,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6325,16 +6641,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedDaemonSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedDaemonSetRequest listNamespacedDaemonSet(String namespace) { + public APIlistNamespacedDaemonSetRequest listNamespacedDaemonSet(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedDaemonSetRequest(namespace); } - private okhttp3.Call listNamespacedDeploymentCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedDeploymentCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6430,7 +6747,7 @@ private okhttp3.Call listNamespacedDeploymentCall(String namespace, String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedDeploymentValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedDeploymentValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedDeployment(Async)"); @@ -6441,13 +6758,13 @@ private okhttp3.Call listNamespacedDeploymentValidateBeforeCall(String namespace } - private ApiResponse listNamespacedDeploymentWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedDeploymentWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedDeploymentAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedDeploymentAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6456,20 +6773,32 @@ private okhttp3.Call listNamespacedDeploymentAsync(String namespace, String pret } public class APIlistNamespacedDeploymentRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedDeploymentRequest(String namespace) { + private APIlistNamespacedDeploymentRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -6478,7 +6807,7 @@ private APIlistNamespacedDeploymentRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedDeploymentRequest */ - public APIlistNamespacedDeploymentRequest pretty(String pretty) { + public APIlistNamespacedDeploymentRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6488,7 +6817,7 @@ public APIlistNamespacedDeploymentRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedDeploymentRequest */ - public APIlistNamespacedDeploymentRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedDeploymentRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -6498,7 +6827,7 @@ public APIlistNamespacedDeploymentRequest allowWatchBookmarks(Boolean allowWatch * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedDeploymentRequest */ - public APIlistNamespacedDeploymentRequest _continue(String _continue) { + public APIlistNamespacedDeploymentRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -6508,7 +6837,7 @@ public APIlistNamespacedDeploymentRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedDeploymentRequest */ - public APIlistNamespacedDeploymentRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedDeploymentRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -6518,7 +6847,7 @@ public APIlistNamespacedDeploymentRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedDeploymentRequest */ - public APIlistNamespacedDeploymentRequest labelSelector(String labelSelector) { + public APIlistNamespacedDeploymentRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -6528,7 +6857,7 @@ public APIlistNamespacedDeploymentRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedDeploymentRequest */ - public APIlistNamespacedDeploymentRequest limit(Integer limit) { + public APIlistNamespacedDeploymentRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -6538,7 +6867,7 @@ public APIlistNamespacedDeploymentRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedDeploymentRequest */ - public APIlistNamespacedDeploymentRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedDeploymentRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -6548,7 +6877,7 @@ public APIlistNamespacedDeploymentRequest resourceVersion(String resourceVersion * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedDeploymentRequest */ - public APIlistNamespacedDeploymentRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedDeploymentRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -6558,7 +6887,7 @@ public APIlistNamespacedDeploymentRequest resourceVersionMatch(String resourceVe * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedDeploymentRequest */ - public APIlistNamespacedDeploymentRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedDeploymentRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -6568,7 +6897,7 @@ public APIlistNamespacedDeploymentRequest sendInitialEvents(Boolean sendInitialE * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedDeploymentRequest */ - public APIlistNamespacedDeploymentRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedDeploymentRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -6578,7 +6907,7 @@ public APIlistNamespacedDeploymentRequest timeoutSeconds(Integer timeoutSeconds) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedDeploymentRequest */ - public APIlistNamespacedDeploymentRequest watch(Boolean watch) { + public APIlistNamespacedDeploymentRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -6589,7 +6918,8 @@ public APIlistNamespacedDeploymentRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6604,7 +6934,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1DeploymentList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6620,7 +6951,8 @@ public V1DeploymentList execute() throws ApiException { * @return ApiResponse<V1DeploymentList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6636,7 +6968,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6653,16 +6986,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedDeploymentRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedDeploymentRequest listNamespacedDeployment(String namespace) { + public APIlistNamespacedDeploymentRequest listNamespacedDeployment(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedDeploymentRequest(namespace); } - private okhttp3.Call listNamespacedReplicaSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedReplicaSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6758,7 +7092,7 @@ private okhttp3.Call listNamespacedReplicaSetCall(String namespace, String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedReplicaSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedReplicaSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedReplicaSet(Async)"); @@ -6769,13 +7103,13 @@ private okhttp3.Call listNamespacedReplicaSetValidateBeforeCall(String namespace } - private ApiResponse listNamespacedReplicaSetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedReplicaSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedReplicaSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedReplicaSetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedReplicaSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedReplicaSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6784,20 +7118,32 @@ private okhttp3.Call listNamespacedReplicaSetAsync(String namespace, String pret } public class APIlistNamespacedReplicaSetRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedReplicaSetRequest(String namespace) { + private APIlistNamespacedReplicaSetRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -6806,7 +7152,7 @@ private APIlistNamespacedReplicaSetRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedReplicaSetRequest */ - public APIlistNamespacedReplicaSetRequest pretty(String pretty) { + public APIlistNamespacedReplicaSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6816,7 +7162,7 @@ public APIlistNamespacedReplicaSetRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedReplicaSetRequest */ - public APIlistNamespacedReplicaSetRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedReplicaSetRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -6826,7 +7172,7 @@ public APIlistNamespacedReplicaSetRequest allowWatchBookmarks(Boolean allowWatch * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedReplicaSetRequest */ - public APIlistNamespacedReplicaSetRequest _continue(String _continue) { + public APIlistNamespacedReplicaSetRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -6836,7 +7182,7 @@ public APIlistNamespacedReplicaSetRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedReplicaSetRequest */ - public APIlistNamespacedReplicaSetRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedReplicaSetRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -6846,7 +7192,7 @@ public APIlistNamespacedReplicaSetRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedReplicaSetRequest */ - public APIlistNamespacedReplicaSetRequest labelSelector(String labelSelector) { + public APIlistNamespacedReplicaSetRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -6856,7 +7202,7 @@ public APIlistNamespacedReplicaSetRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedReplicaSetRequest */ - public APIlistNamespacedReplicaSetRequest limit(Integer limit) { + public APIlistNamespacedReplicaSetRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -6866,7 +7212,7 @@ public APIlistNamespacedReplicaSetRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedReplicaSetRequest */ - public APIlistNamespacedReplicaSetRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedReplicaSetRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -6876,7 +7222,7 @@ public APIlistNamespacedReplicaSetRequest resourceVersion(String resourceVersion * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedReplicaSetRequest */ - public APIlistNamespacedReplicaSetRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedReplicaSetRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -6886,7 +7232,7 @@ public APIlistNamespacedReplicaSetRequest resourceVersionMatch(String resourceVe * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedReplicaSetRequest */ - public APIlistNamespacedReplicaSetRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedReplicaSetRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -6896,7 +7242,7 @@ public APIlistNamespacedReplicaSetRequest sendInitialEvents(Boolean sendInitialE * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedReplicaSetRequest */ - public APIlistNamespacedReplicaSetRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedReplicaSetRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -6906,7 +7252,7 @@ public APIlistNamespacedReplicaSetRequest timeoutSeconds(Integer timeoutSeconds) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedReplicaSetRequest */ - public APIlistNamespacedReplicaSetRequest watch(Boolean watch) { + public APIlistNamespacedReplicaSetRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -6917,7 +7263,8 @@ public APIlistNamespacedReplicaSetRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6932,7 +7279,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ReplicaSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6948,7 +7296,8 @@ public V1ReplicaSetList execute() throws ApiException { * @return ApiResponse<V1ReplicaSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6964,7 +7313,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6981,16 +7331,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedReplicaSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedReplicaSetRequest listNamespacedReplicaSet(String namespace) { + public APIlistNamespacedReplicaSetRequest listNamespacedReplicaSet(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedReplicaSetRequest(namespace); } - private okhttp3.Call listNamespacedStatefulSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedStatefulSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7086,7 +7437,7 @@ private okhttp3.Call listNamespacedStatefulSetCall(String namespace, String pret } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedStatefulSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedStatefulSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedStatefulSet(Async)"); @@ -7097,13 +7448,13 @@ private okhttp3.Call listNamespacedStatefulSetValidateBeforeCall(String namespac } - private ApiResponse listNamespacedStatefulSetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedStatefulSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedStatefulSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedStatefulSetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedStatefulSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedStatefulSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7112,20 +7463,32 @@ private okhttp3.Call listNamespacedStatefulSetAsync(String namespace, String pre } public class APIlistNamespacedStatefulSetRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedStatefulSetRequest(String namespace) { + private APIlistNamespacedStatefulSetRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -7134,7 +7497,7 @@ private APIlistNamespacedStatefulSetRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedStatefulSetRequest */ - public APIlistNamespacedStatefulSetRequest pretty(String pretty) { + public APIlistNamespacedStatefulSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7144,7 +7507,7 @@ public APIlistNamespacedStatefulSetRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedStatefulSetRequest */ - public APIlistNamespacedStatefulSetRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedStatefulSetRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -7154,7 +7517,7 @@ public APIlistNamespacedStatefulSetRequest allowWatchBookmarks(Boolean allowWatc * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedStatefulSetRequest */ - public APIlistNamespacedStatefulSetRequest _continue(String _continue) { + public APIlistNamespacedStatefulSetRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -7164,7 +7527,7 @@ public APIlistNamespacedStatefulSetRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedStatefulSetRequest */ - public APIlistNamespacedStatefulSetRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedStatefulSetRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -7174,7 +7537,7 @@ public APIlistNamespacedStatefulSetRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedStatefulSetRequest */ - public APIlistNamespacedStatefulSetRequest labelSelector(String labelSelector) { + public APIlistNamespacedStatefulSetRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -7184,7 +7547,7 @@ public APIlistNamespacedStatefulSetRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedStatefulSetRequest */ - public APIlistNamespacedStatefulSetRequest limit(Integer limit) { + public APIlistNamespacedStatefulSetRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -7194,7 +7557,7 @@ public APIlistNamespacedStatefulSetRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedStatefulSetRequest */ - public APIlistNamespacedStatefulSetRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedStatefulSetRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -7204,7 +7567,7 @@ public APIlistNamespacedStatefulSetRequest resourceVersion(String resourceVersio * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedStatefulSetRequest */ - public APIlistNamespacedStatefulSetRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedStatefulSetRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -7214,7 +7577,7 @@ public APIlistNamespacedStatefulSetRequest resourceVersionMatch(String resourceV * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedStatefulSetRequest */ - public APIlistNamespacedStatefulSetRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedStatefulSetRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -7224,7 +7587,7 @@ public APIlistNamespacedStatefulSetRequest sendInitialEvents(Boolean sendInitial * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedStatefulSetRequest */ - public APIlistNamespacedStatefulSetRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedStatefulSetRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -7234,7 +7597,7 @@ public APIlistNamespacedStatefulSetRequest timeoutSeconds(Integer timeoutSeconds * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedStatefulSetRequest */ - public APIlistNamespacedStatefulSetRequest watch(Boolean watch) { + public APIlistNamespacedStatefulSetRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -7245,7 +7608,8 @@ public APIlistNamespacedStatefulSetRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7260,7 +7624,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1StatefulSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7276,7 +7641,8 @@ public V1StatefulSetList execute() throws ApiException { * @return ApiResponse<V1StatefulSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7292,7 +7658,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7309,16 +7676,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedStatefulSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedStatefulSetRequest listNamespacedStatefulSet(String namespace) { + public APIlistNamespacedStatefulSetRequest listNamespacedStatefulSet(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedStatefulSetRequest(namespace); } - private okhttp3.Call listReplicaSetForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listReplicaSetForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7413,19 +7781,19 @@ private okhttp3.Call listReplicaSetForAllNamespacesCall(Boolean allowWatchBookma } @SuppressWarnings("rawtypes") - private okhttp3.Call listReplicaSetForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listReplicaSetForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listReplicaSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listReplicaSetForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listReplicaSetForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listReplicaSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listReplicaSetForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listReplicaSetForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listReplicaSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7434,16 +7802,27 @@ private okhttp3.Call listReplicaSetForAllNamespacesAsync(Boolean allowWatchBookm } public class APIlistReplicaSetForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistReplicaSetForAllNamespacesRequest() { @@ -7454,7 +7833,7 @@ private APIlistReplicaSetForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistReplicaSetForAllNamespacesRequest */ - public APIlistReplicaSetForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistReplicaSetForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -7464,7 +7843,7 @@ public APIlistReplicaSetForAllNamespacesRequest allowWatchBookmarks(Boolean allo * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistReplicaSetForAllNamespacesRequest */ - public APIlistReplicaSetForAllNamespacesRequest _continue(String _continue) { + public APIlistReplicaSetForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -7474,7 +7853,7 @@ public APIlistReplicaSetForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistReplicaSetForAllNamespacesRequest */ - public APIlistReplicaSetForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistReplicaSetForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -7484,7 +7863,7 @@ public APIlistReplicaSetForAllNamespacesRequest fieldSelector(String fieldSelect * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistReplicaSetForAllNamespacesRequest */ - public APIlistReplicaSetForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistReplicaSetForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -7494,7 +7873,7 @@ public APIlistReplicaSetForAllNamespacesRequest labelSelector(String labelSelect * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistReplicaSetForAllNamespacesRequest */ - public APIlistReplicaSetForAllNamespacesRequest limit(Integer limit) { + public APIlistReplicaSetForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -7504,7 +7883,7 @@ public APIlistReplicaSetForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistReplicaSetForAllNamespacesRequest */ - public APIlistReplicaSetForAllNamespacesRequest pretty(String pretty) { + public APIlistReplicaSetForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7514,7 +7893,7 @@ public APIlistReplicaSetForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistReplicaSetForAllNamespacesRequest */ - public APIlistReplicaSetForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistReplicaSetForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -7524,7 +7903,7 @@ public APIlistReplicaSetForAllNamespacesRequest resourceVersion(String resourceV * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistReplicaSetForAllNamespacesRequest */ - public APIlistReplicaSetForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistReplicaSetForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -7534,7 +7913,7 @@ public APIlistReplicaSetForAllNamespacesRequest resourceVersionMatch(String reso * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistReplicaSetForAllNamespacesRequest */ - public APIlistReplicaSetForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistReplicaSetForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -7544,7 +7923,7 @@ public APIlistReplicaSetForAllNamespacesRequest sendInitialEvents(Boolean sendIn * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistReplicaSetForAllNamespacesRequest */ - public APIlistReplicaSetForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistReplicaSetForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -7554,7 +7933,7 @@ public APIlistReplicaSetForAllNamespacesRequest timeoutSeconds(Integer timeoutSe * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistReplicaSetForAllNamespacesRequest */ - public APIlistReplicaSetForAllNamespacesRequest watch(Boolean watch) { + public APIlistReplicaSetForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -7565,7 +7944,8 @@ public APIlistReplicaSetForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7580,7 +7960,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ReplicaSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7596,7 +7977,8 @@ public V1ReplicaSetList execute() throws ApiException { * @return ApiResponse<V1ReplicaSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7612,7 +7994,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7628,7 +8011,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * list or watch objects of kind ReplicaSet * @return APIlistReplicaSetForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7637,7 +8021,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistReplicaSetForAllNamespacesRequest listReplicaSetForAllNamespaces() { return new APIlistReplicaSetForAllNamespacesRequest(); } - private okhttp3.Call listStatefulSetForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStatefulSetForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7732,19 +8116,19 @@ private okhttp3.Call listStatefulSetForAllNamespacesCall(Boolean allowWatchBookm } @SuppressWarnings("rawtypes") - private okhttp3.Call listStatefulSetForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStatefulSetForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listStatefulSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listStatefulSetForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listStatefulSetForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listStatefulSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listStatefulSetForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStatefulSetForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listStatefulSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7753,16 +8137,27 @@ private okhttp3.Call listStatefulSetForAllNamespacesAsync(Boolean allowWatchBook } public class APIlistStatefulSetForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistStatefulSetForAllNamespacesRequest() { @@ -7773,7 +8168,7 @@ private APIlistStatefulSetForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistStatefulSetForAllNamespacesRequest */ - public APIlistStatefulSetForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistStatefulSetForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -7783,7 +8178,7 @@ public APIlistStatefulSetForAllNamespacesRequest allowWatchBookmarks(Boolean all * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistStatefulSetForAllNamespacesRequest */ - public APIlistStatefulSetForAllNamespacesRequest _continue(String _continue) { + public APIlistStatefulSetForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -7793,7 +8188,7 @@ public APIlistStatefulSetForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistStatefulSetForAllNamespacesRequest */ - public APIlistStatefulSetForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistStatefulSetForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -7803,7 +8198,7 @@ public APIlistStatefulSetForAllNamespacesRequest fieldSelector(String fieldSelec * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistStatefulSetForAllNamespacesRequest */ - public APIlistStatefulSetForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistStatefulSetForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -7813,7 +8208,7 @@ public APIlistStatefulSetForAllNamespacesRequest labelSelector(String labelSelec * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistStatefulSetForAllNamespacesRequest */ - public APIlistStatefulSetForAllNamespacesRequest limit(Integer limit) { + public APIlistStatefulSetForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -7823,7 +8218,7 @@ public APIlistStatefulSetForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistStatefulSetForAllNamespacesRequest */ - public APIlistStatefulSetForAllNamespacesRequest pretty(String pretty) { + public APIlistStatefulSetForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7833,7 +8228,7 @@ public APIlistStatefulSetForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistStatefulSetForAllNamespacesRequest */ - public APIlistStatefulSetForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistStatefulSetForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -7843,7 +8238,7 @@ public APIlistStatefulSetForAllNamespacesRequest resourceVersion(String resource * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistStatefulSetForAllNamespacesRequest */ - public APIlistStatefulSetForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistStatefulSetForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -7853,7 +8248,7 @@ public APIlistStatefulSetForAllNamespacesRequest resourceVersionMatch(String res * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistStatefulSetForAllNamespacesRequest */ - public APIlistStatefulSetForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistStatefulSetForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -7863,7 +8258,7 @@ public APIlistStatefulSetForAllNamespacesRequest sendInitialEvents(Boolean sendI * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistStatefulSetForAllNamespacesRequest */ - public APIlistStatefulSetForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistStatefulSetForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -7873,7 +8268,7 @@ public APIlistStatefulSetForAllNamespacesRequest timeoutSeconds(Integer timeoutS * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistStatefulSetForAllNamespacesRequest */ - public APIlistStatefulSetForAllNamespacesRequest watch(Boolean watch) { + public APIlistStatefulSetForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -7884,7 +8279,8 @@ public APIlistStatefulSetForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7899,7 +8295,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1StatefulSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7915,7 +8312,8 @@ public V1StatefulSetList execute() throws ApiException { * @return ApiResponse<V1StatefulSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7931,7 +8329,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7947,7 +8346,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * list or watch objects of kind StatefulSet * @return APIlistStatefulSetForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7956,7 +8356,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistStatefulSetForAllNamespacesRequest listStatefulSetForAllNamespaces() { return new APIlistStatefulSetForAllNamespacesRequest(); } - private okhttp3.Call patchNamespacedControllerRevisionCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedControllerRevisionCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8027,7 +8427,7 @@ private okhttp3.Call patchNamespacedControllerRevisionCall(String name, String n } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedControllerRevisionValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedControllerRevision(Async)"); @@ -8048,13 +8448,13 @@ private okhttp3.Call patchNamespacedControllerRevisionValidateBeforeCall(String } - private ApiResponse patchNamespacedControllerRevisionWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedControllerRevisionWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedControllerRevisionAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedControllerRevisionAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8063,16 +8463,24 @@ private okhttp3.Call patchNamespacedControllerRevisionAsync(String name, String } public class APIpatchNamespacedControllerRevisionRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedControllerRevisionRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedControllerRevisionRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -8083,7 +8491,7 @@ private APIpatchNamespacedControllerRevisionRequest(String name, String namespac * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedControllerRevisionRequest */ - public APIpatchNamespacedControllerRevisionRequest pretty(String pretty) { + public APIpatchNamespacedControllerRevisionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8093,7 +8501,7 @@ public APIpatchNamespacedControllerRevisionRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedControllerRevisionRequest */ - public APIpatchNamespacedControllerRevisionRequest dryRun(String dryRun) { + public APIpatchNamespacedControllerRevisionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -8103,7 +8511,7 @@ public APIpatchNamespacedControllerRevisionRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedControllerRevisionRequest */ - public APIpatchNamespacedControllerRevisionRequest fieldManager(String fieldManager) { + public APIpatchNamespacedControllerRevisionRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -8113,7 +8521,7 @@ public APIpatchNamespacedControllerRevisionRequest fieldManager(String fieldMana * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedControllerRevisionRequest */ - public APIpatchNamespacedControllerRevisionRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedControllerRevisionRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -8123,7 +8531,7 @@ public APIpatchNamespacedControllerRevisionRequest fieldValidation(String fieldV * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedControllerRevisionRequest */ - public APIpatchNamespacedControllerRevisionRequest force(Boolean force) { + public APIpatchNamespacedControllerRevisionRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -8134,7 +8542,8 @@ public APIpatchNamespacedControllerRevisionRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8150,7 +8559,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ControllerRevision * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8167,7 +8577,8 @@ public V1ControllerRevision execute() throws ApiException { * @return ApiResponse<V1ControllerRevision> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8184,7 +8595,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8204,17 +8616,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param body (required) * @return APIpatchNamespacedControllerRevisionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedControllerRevisionRequest patchNamespacedControllerRevision(String name, String namespace, V1Patch body) { + public APIpatchNamespacedControllerRevisionRequest patchNamespacedControllerRevision(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedControllerRevisionRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedDaemonSetCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedDaemonSetCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8285,7 +8698,7 @@ private okhttp3.Call patchNamespacedDaemonSetCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedDaemonSetValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedDaemonSetValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedDaemonSet(Async)"); @@ -8306,13 +8719,13 @@ private okhttp3.Call patchNamespacedDaemonSetValidateBeforeCall(String name, Str } - private ApiResponse patchNamespacedDaemonSetWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedDaemonSetWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedDaemonSetAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedDaemonSetAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8321,16 +8734,24 @@ private okhttp3.Call patchNamespacedDaemonSetAsync(String name, String namespace } public class APIpatchNamespacedDaemonSetRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedDaemonSetRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedDaemonSetRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -8341,7 +8762,7 @@ private APIpatchNamespacedDaemonSetRequest(String name, String namespace, V1Patc * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedDaemonSetRequest */ - public APIpatchNamespacedDaemonSetRequest pretty(String pretty) { + public APIpatchNamespacedDaemonSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8351,7 +8772,7 @@ public APIpatchNamespacedDaemonSetRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedDaemonSetRequest */ - public APIpatchNamespacedDaemonSetRequest dryRun(String dryRun) { + public APIpatchNamespacedDaemonSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -8361,7 +8782,7 @@ public APIpatchNamespacedDaemonSetRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedDaemonSetRequest */ - public APIpatchNamespacedDaemonSetRequest fieldManager(String fieldManager) { + public APIpatchNamespacedDaemonSetRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -8371,7 +8792,7 @@ public APIpatchNamespacedDaemonSetRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedDaemonSetRequest */ - public APIpatchNamespacedDaemonSetRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedDaemonSetRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -8381,7 +8802,7 @@ public APIpatchNamespacedDaemonSetRequest fieldValidation(String fieldValidation * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedDaemonSetRequest */ - public APIpatchNamespacedDaemonSetRequest force(Boolean force) { + public APIpatchNamespacedDaemonSetRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -8392,7 +8813,8 @@ public APIpatchNamespacedDaemonSetRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8408,7 +8830,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8425,7 +8848,8 @@ public V1DaemonSet execute() throws ApiException { * @return ApiResponse<V1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8442,7 +8866,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8462,17 +8887,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIpatchNamespacedDaemonSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedDaemonSetRequest patchNamespacedDaemonSet(String name, String namespace, V1Patch body) { + public APIpatchNamespacedDaemonSetRequest patchNamespacedDaemonSet(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedDaemonSetRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedDaemonSetStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedDaemonSetStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8543,7 +8969,7 @@ private okhttp3.Call patchNamespacedDaemonSetStatusCall(String name, String name } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedDaemonSetStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedDaemonSetStatus(Async)"); @@ -8564,13 +8990,13 @@ private okhttp3.Call patchNamespacedDaemonSetStatusValidateBeforeCall(String nam } - private ApiResponse patchNamespacedDaemonSetStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedDaemonSetStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedDaemonSetStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedDaemonSetStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8579,16 +9005,24 @@ private okhttp3.Call patchNamespacedDaemonSetStatusAsync(String name, String nam } public class APIpatchNamespacedDaemonSetStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedDaemonSetStatusRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedDaemonSetStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -8599,7 +9033,7 @@ private APIpatchNamespacedDaemonSetStatusRequest(String name, String namespace, * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedDaemonSetStatusRequest */ - public APIpatchNamespacedDaemonSetStatusRequest pretty(String pretty) { + public APIpatchNamespacedDaemonSetStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8609,7 +9043,7 @@ public APIpatchNamespacedDaemonSetStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedDaemonSetStatusRequest */ - public APIpatchNamespacedDaemonSetStatusRequest dryRun(String dryRun) { + public APIpatchNamespacedDaemonSetStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -8619,7 +9053,7 @@ public APIpatchNamespacedDaemonSetStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedDaemonSetStatusRequest */ - public APIpatchNamespacedDaemonSetStatusRequest fieldManager(String fieldManager) { + public APIpatchNamespacedDaemonSetStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -8629,7 +9063,7 @@ public APIpatchNamespacedDaemonSetStatusRequest fieldManager(String fieldManager * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedDaemonSetStatusRequest */ - public APIpatchNamespacedDaemonSetStatusRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedDaemonSetStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -8639,7 +9073,7 @@ public APIpatchNamespacedDaemonSetStatusRequest fieldValidation(String fieldVali * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedDaemonSetStatusRequest */ - public APIpatchNamespacedDaemonSetStatusRequest force(Boolean force) { + public APIpatchNamespacedDaemonSetStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -8650,7 +9084,8 @@ public APIpatchNamespacedDaemonSetStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8666,7 +9101,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8683,7 +9119,8 @@ public V1DaemonSet execute() throws ApiException { * @return ApiResponse<V1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8700,7 +9137,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8720,17 +9158,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIpatchNamespacedDaemonSetStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedDaemonSetStatusRequest patchNamespacedDaemonSetStatus(String name, String namespace, V1Patch body) { + public APIpatchNamespacedDaemonSetStatusRequest patchNamespacedDaemonSetStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedDaemonSetStatusRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedDeploymentCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedDeploymentCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8801,7 +9240,7 @@ private okhttp3.Call patchNamespacedDeploymentCall(String name, String namespace } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedDeploymentValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedDeploymentValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedDeployment(Async)"); @@ -8822,13 +9261,13 @@ private okhttp3.Call patchNamespacedDeploymentValidateBeforeCall(String name, St } - private ApiResponse patchNamespacedDeploymentWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedDeploymentWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedDeploymentAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedDeploymentAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8837,16 +9276,24 @@ private okhttp3.Call patchNamespacedDeploymentAsync(String name, String namespac } public class APIpatchNamespacedDeploymentRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedDeploymentRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedDeploymentRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -8857,7 +9304,7 @@ private APIpatchNamespacedDeploymentRequest(String name, String namespace, V1Pat * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedDeploymentRequest */ - public APIpatchNamespacedDeploymentRequest pretty(String pretty) { + public APIpatchNamespacedDeploymentRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8867,7 +9314,7 @@ public APIpatchNamespacedDeploymentRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedDeploymentRequest */ - public APIpatchNamespacedDeploymentRequest dryRun(String dryRun) { + public APIpatchNamespacedDeploymentRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -8877,7 +9324,7 @@ public APIpatchNamespacedDeploymentRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedDeploymentRequest */ - public APIpatchNamespacedDeploymentRequest fieldManager(String fieldManager) { + public APIpatchNamespacedDeploymentRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -8887,7 +9334,7 @@ public APIpatchNamespacedDeploymentRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedDeploymentRequest */ - public APIpatchNamespacedDeploymentRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedDeploymentRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -8897,7 +9344,7 @@ public APIpatchNamespacedDeploymentRequest fieldValidation(String fieldValidatio * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedDeploymentRequest */ - public APIpatchNamespacedDeploymentRequest force(Boolean force) { + public APIpatchNamespacedDeploymentRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -8908,7 +9355,8 @@ public APIpatchNamespacedDeploymentRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8924,7 +9372,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8941,7 +9390,8 @@ public V1Deployment execute() throws ApiException { * @return ApiResponse<V1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8958,7 +9408,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8978,17 +9429,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIpatchNamespacedDeploymentRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedDeploymentRequest patchNamespacedDeployment(String name, String namespace, V1Patch body) { + public APIpatchNamespacedDeploymentRequest patchNamespacedDeployment(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedDeploymentRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedDeploymentScaleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedDeploymentScaleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -9059,7 +9511,7 @@ private okhttp3.Call patchNamespacedDeploymentScaleCall(String name, String name } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedDeploymentScaleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedDeploymentScale(Async)"); @@ -9080,13 +9532,13 @@ private okhttp3.Call patchNamespacedDeploymentScaleValidateBeforeCall(String nam } - private ApiResponse patchNamespacedDeploymentScaleWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedDeploymentScaleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedDeploymentScaleAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedDeploymentScaleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -9095,16 +9547,24 @@ private okhttp3.Call patchNamespacedDeploymentScaleAsync(String name, String nam } public class APIpatchNamespacedDeploymentScaleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedDeploymentScaleRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedDeploymentScaleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -9115,7 +9575,7 @@ private APIpatchNamespacedDeploymentScaleRequest(String name, String namespace, * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedDeploymentScaleRequest */ - public APIpatchNamespacedDeploymentScaleRequest pretty(String pretty) { + public APIpatchNamespacedDeploymentScaleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -9125,7 +9585,7 @@ public APIpatchNamespacedDeploymentScaleRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedDeploymentScaleRequest */ - public APIpatchNamespacedDeploymentScaleRequest dryRun(String dryRun) { + public APIpatchNamespacedDeploymentScaleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -9135,7 +9595,7 @@ public APIpatchNamespacedDeploymentScaleRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedDeploymentScaleRequest */ - public APIpatchNamespacedDeploymentScaleRequest fieldManager(String fieldManager) { + public APIpatchNamespacedDeploymentScaleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -9145,7 +9605,7 @@ public APIpatchNamespacedDeploymentScaleRequest fieldManager(String fieldManager * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedDeploymentScaleRequest */ - public APIpatchNamespacedDeploymentScaleRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedDeploymentScaleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -9155,7 +9615,7 @@ public APIpatchNamespacedDeploymentScaleRequest fieldValidation(String fieldVali * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedDeploymentScaleRequest */ - public APIpatchNamespacedDeploymentScaleRequest force(Boolean force) { + public APIpatchNamespacedDeploymentScaleRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -9166,7 +9626,8 @@ public APIpatchNamespacedDeploymentScaleRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -9182,7 +9643,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9199,7 +9661,8 @@ public V1Scale execute() throws ApiException { * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9216,7 +9679,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9236,17 +9700,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap * @param body (required) * @return APIpatchNamespacedDeploymentScaleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedDeploymentScaleRequest patchNamespacedDeploymentScale(String name, String namespace, V1Patch body) { + public APIpatchNamespacedDeploymentScaleRequest patchNamespacedDeploymentScale(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedDeploymentScaleRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedDeploymentStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedDeploymentStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -9317,7 +9782,7 @@ private okhttp3.Call patchNamespacedDeploymentStatusCall(String name, String nam } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedDeploymentStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedDeploymentStatus(Async)"); @@ -9338,13 +9803,13 @@ private okhttp3.Call patchNamespacedDeploymentStatusValidateBeforeCall(String na } - private ApiResponse patchNamespacedDeploymentStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedDeploymentStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedDeploymentStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedDeploymentStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -9353,16 +9818,24 @@ private okhttp3.Call patchNamespacedDeploymentStatusAsync(String name, String na } public class APIpatchNamespacedDeploymentStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedDeploymentStatusRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedDeploymentStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -9373,7 +9846,7 @@ private APIpatchNamespacedDeploymentStatusRequest(String name, String namespace, * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedDeploymentStatusRequest */ - public APIpatchNamespacedDeploymentStatusRequest pretty(String pretty) { + public APIpatchNamespacedDeploymentStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -9383,7 +9856,7 @@ public APIpatchNamespacedDeploymentStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedDeploymentStatusRequest */ - public APIpatchNamespacedDeploymentStatusRequest dryRun(String dryRun) { + public APIpatchNamespacedDeploymentStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -9393,7 +9866,7 @@ public APIpatchNamespacedDeploymentStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedDeploymentStatusRequest */ - public APIpatchNamespacedDeploymentStatusRequest fieldManager(String fieldManager) { + public APIpatchNamespacedDeploymentStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -9403,7 +9876,7 @@ public APIpatchNamespacedDeploymentStatusRequest fieldManager(String fieldManage * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedDeploymentStatusRequest */ - public APIpatchNamespacedDeploymentStatusRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedDeploymentStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -9413,7 +9886,7 @@ public APIpatchNamespacedDeploymentStatusRequest fieldValidation(String fieldVal * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedDeploymentStatusRequest */ - public APIpatchNamespacedDeploymentStatusRequest force(Boolean force) { + public APIpatchNamespacedDeploymentStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -9424,7 +9897,8 @@ public APIpatchNamespacedDeploymentStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -9440,7 +9914,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9457,7 +9932,8 @@ public V1Deployment execute() throws ApiException { * @return ApiResponse<V1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9474,7 +9950,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9494,17 +9971,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIpatchNamespacedDeploymentStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedDeploymentStatusRequest patchNamespacedDeploymentStatus(String name, String namespace, V1Patch body) { + public APIpatchNamespacedDeploymentStatusRequest patchNamespacedDeploymentStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedDeploymentStatusRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedReplicaSetCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedReplicaSetCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -9575,7 +10053,7 @@ private okhttp3.Call patchNamespacedReplicaSetCall(String name, String namespace } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedReplicaSetValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedReplicaSetValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedReplicaSet(Async)"); @@ -9596,13 +10074,13 @@ private okhttp3.Call patchNamespacedReplicaSetValidateBeforeCall(String name, St } - private ApiResponse patchNamespacedReplicaSetWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedReplicaSetWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedReplicaSetAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedReplicaSetAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -9611,16 +10089,24 @@ private okhttp3.Call patchNamespacedReplicaSetAsync(String name, String namespac } public class APIpatchNamespacedReplicaSetRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedReplicaSetRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedReplicaSetRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -9631,7 +10117,7 @@ private APIpatchNamespacedReplicaSetRequest(String name, String namespace, V1Pat * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedReplicaSetRequest */ - public APIpatchNamespacedReplicaSetRequest pretty(String pretty) { + public APIpatchNamespacedReplicaSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -9641,7 +10127,7 @@ public APIpatchNamespacedReplicaSetRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedReplicaSetRequest */ - public APIpatchNamespacedReplicaSetRequest dryRun(String dryRun) { + public APIpatchNamespacedReplicaSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -9651,7 +10137,7 @@ public APIpatchNamespacedReplicaSetRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedReplicaSetRequest */ - public APIpatchNamespacedReplicaSetRequest fieldManager(String fieldManager) { + public APIpatchNamespacedReplicaSetRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -9661,7 +10147,7 @@ public APIpatchNamespacedReplicaSetRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedReplicaSetRequest */ - public APIpatchNamespacedReplicaSetRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedReplicaSetRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -9671,7 +10157,7 @@ public APIpatchNamespacedReplicaSetRequest fieldValidation(String fieldValidatio * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedReplicaSetRequest */ - public APIpatchNamespacedReplicaSetRequest force(Boolean force) { + public APIpatchNamespacedReplicaSetRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -9682,7 +10168,8 @@ public APIpatchNamespacedReplicaSetRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -9698,7 +10185,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9715,7 +10203,8 @@ public V1ReplicaSet execute() throws ApiException { * @return ApiResponse<V1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9732,7 +10221,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9752,17 +10242,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIpatchNamespacedReplicaSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedReplicaSetRequest patchNamespacedReplicaSet(String name, String namespace, V1Patch body) { + public APIpatchNamespacedReplicaSetRequest patchNamespacedReplicaSet(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedReplicaSetRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedReplicaSetScaleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedReplicaSetScaleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -9833,7 +10324,7 @@ private okhttp3.Call patchNamespacedReplicaSetScaleCall(String name, String name } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedReplicaSetScaleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedReplicaSetScale(Async)"); @@ -9854,13 +10345,13 @@ private okhttp3.Call patchNamespacedReplicaSetScaleValidateBeforeCall(String nam } - private ApiResponse patchNamespacedReplicaSetScaleWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedReplicaSetScaleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedReplicaSetScaleAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedReplicaSetScaleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -9869,16 +10360,24 @@ private okhttp3.Call patchNamespacedReplicaSetScaleAsync(String name, String nam } public class APIpatchNamespacedReplicaSetScaleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedReplicaSetScaleRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedReplicaSetScaleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -9889,7 +10388,7 @@ private APIpatchNamespacedReplicaSetScaleRequest(String name, String namespace, * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedReplicaSetScaleRequest */ - public APIpatchNamespacedReplicaSetScaleRequest pretty(String pretty) { + public APIpatchNamespacedReplicaSetScaleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -9899,7 +10398,7 @@ public APIpatchNamespacedReplicaSetScaleRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedReplicaSetScaleRequest */ - public APIpatchNamespacedReplicaSetScaleRequest dryRun(String dryRun) { + public APIpatchNamespacedReplicaSetScaleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -9909,7 +10408,7 @@ public APIpatchNamespacedReplicaSetScaleRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedReplicaSetScaleRequest */ - public APIpatchNamespacedReplicaSetScaleRequest fieldManager(String fieldManager) { + public APIpatchNamespacedReplicaSetScaleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -9919,7 +10418,7 @@ public APIpatchNamespacedReplicaSetScaleRequest fieldManager(String fieldManager * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedReplicaSetScaleRequest */ - public APIpatchNamespacedReplicaSetScaleRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedReplicaSetScaleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -9929,7 +10428,7 @@ public APIpatchNamespacedReplicaSetScaleRequest fieldValidation(String fieldVali * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedReplicaSetScaleRequest */ - public APIpatchNamespacedReplicaSetScaleRequest force(Boolean force) { + public APIpatchNamespacedReplicaSetScaleRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -9940,7 +10439,8 @@ public APIpatchNamespacedReplicaSetScaleRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -9956,7 +10456,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9973,7 +10474,8 @@ public V1Scale execute() throws ApiException { * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9990,7 +10492,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10010,17 +10513,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap * @param body (required) * @return APIpatchNamespacedReplicaSetScaleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedReplicaSetScaleRequest patchNamespacedReplicaSetScale(String name, String namespace, V1Patch body) { + public APIpatchNamespacedReplicaSetScaleRequest patchNamespacedReplicaSetScale(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedReplicaSetScaleRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedReplicaSetStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedReplicaSetStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -10091,7 +10595,7 @@ private okhttp3.Call patchNamespacedReplicaSetStatusCall(String name, String nam } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedReplicaSetStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedReplicaSetStatus(Async)"); @@ -10112,13 +10616,13 @@ private okhttp3.Call patchNamespacedReplicaSetStatusValidateBeforeCall(String na } - private ApiResponse patchNamespacedReplicaSetStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedReplicaSetStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedReplicaSetStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedReplicaSetStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -10127,16 +10631,24 @@ private okhttp3.Call patchNamespacedReplicaSetStatusAsync(String name, String na } public class APIpatchNamespacedReplicaSetStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedReplicaSetStatusRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedReplicaSetStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -10147,7 +10659,7 @@ private APIpatchNamespacedReplicaSetStatusRequest(String name, String namespace, * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedReplicaSetStatusRequest */ - public APIpatchNamespacedReplicaSetStatusRequest pretty(String pretty) { + public APIpatchNamespacedReplicaSetStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -10157,7 +10669,7 @@ public APIpatchNamespacedReplicaSetStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedReplicaSetStatusRequest */ - public APIpatchNamespacedReplicaSetStatusRequest dryRun(String dryRun) { + public APIpatchNamespacedReplicaSetStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -10167,7 +10679,7 @@ public APIpatchNamespacedReplicaSetStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedReplicaSetStatusRequest */ - public APIpatchNamespacedReplicaSetStatusRequest fieldManager(String fieldManager) { + public APIpatchNamespacedReplicaSetStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -10177,7 +10689,7 @@ public APIpatchNamespacedReplicaSetStatusRequest fieldManager(String fieldManage * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedReplicaSetStatusRequest */ - public APIpatchNamespacedReplicaSetStatusRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedReplicaSetStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -10187,7 +10699,7 @@ public APIpatchNamespacedReplicaSetStatusRequest fieldValidation(String fieldVal * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedReplicaSetStatusRequest */ - public APIpatchNamespacedReplicaSetStatusRequest force(Boolean force) { + public APIpatchNamespacedReplicaSetStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -10198,7 +10710,8 @@ public APIpatchNamespacedReplicaSetStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -10214,7 +10727,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10231,7 +10745,8 @@ public V1ReplicaSet execute() throws ApiException { * @return ApiResponse<V1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10248,7 +10763,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10268,17 +10784,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIpatchNamespacedReplicaSetStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedReplicaSetStatusRequest patchNamespacedReplicaSetStatus(String name, String namespace, V1Patch body) { + public APIpatchNamespacedReplicaSetStatusRequest patchNamespacedReplicaSetStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedReplicaSetStatusRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedStatefulSetCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedStatefulSetCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -10349,7 +10866,7 @@ private okhttp3.Call patchNamespacedStatefulSetCall(String name, String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedStatefulSetValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedStatefulSetValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedStatefulSet(Async)"); @@ -10370,13 +10887,13 @@ private okhttp3.Call patchNamespacedStatefulSetValidateBeforeCall(String name, S } - private ApiResponse patchNamespacedStatefulSetWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedStatefulSetWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedStatefulSetAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedStatefulSetAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -10385,16 +10902,24 @@ private okhttp3.Call patchNamespacedStatefulSetAsync(String name, String namespa } public class APIpatchNamespacedStatefulSetRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedStatefulSetRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedStatefulSetRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -10405,7 +10930,7 @@ private APIpatchNamespacedStatefulSetRequest(String name, String namespace, V1Pa * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedStatefulSetRequest */ - public APIpatchNamespacedStatefulSetRequest pretty(String pretty) { + public APIpatchNamespacedStatefulSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -10415,7 +10940,7 @@ public APIpatchNamespacedStatefulSetRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedStatefulSetRequest */ - public APIpatchNamespacedStatefulSetRequest dryRun(String dryRun) { + public APIpatchNamespacedStatefulSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -10425,7 +10950,7 @@ public APIpatchNamespacedStatefulSetRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedStatefulSetRequest */ - public APIpatchNamespacedStatefulSetRequest fieldManager(String fieldManager) { + public APIpatchNamespacedStatefulSetRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -10435,7 +10960,7 @@ public APIpatchNamespacedStatefulSetRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedStatefulSetRequest */ - public APIpatchNamespacedStatefulSetRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedStatefulSetRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -10445,7 +10970,7 @@ public APIpatchNamespacedStatefulSetRequest fieldValidation(String fieldValidati * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedStatefulSetRequest */ - public APIpatchNamespacedStatefulSetRequest force(Boolean force) { + public APIpatchNamespacedStatefulSetRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -10456,7 +10981,8 @@ public APIpatchNamespacedStatefulSetRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -10472,7 +10998,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10489,7 +11016,8 @@ public V1StatefulSet execute() throws ApiException { * @return ApiResponse<V1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10506,7 +11034,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10526,17 +11055,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param body (required) * @return APIpatchNamespacedStatefulSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedStatefulSetRequest patchNamespacedStatefulSet(String name, String namespace, V1Patch body) { + public APIpatchNamespacedStatefulSetRequest patchNamespacedStatefulSet(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedStatefulSetRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedStatefulSetScaleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedStatefulSetScaleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -10607,7 +11137,7 @@ private okhttp3.Call patchNamespacedStatefulSetScaleCall(String name, String nam } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedStatefulSetScaleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedStatefulSetScale(Async)"); @@ -10628,13 +11158,13 @@ private okhttp3.Call patchNamespacedStatefulSetScaleValidateBeforeCall(String na } - private ApiResponse patchNamespacedStatefulSetScaleWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedStatefulSetScaleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedStatefulSetScaleAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedStatefulSetScaleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -10643,16 +11173,24 @@ private okhttp3.Call patchNamespacedStatefulSetScaleAsync(String name, String na } public class APIpatchNamespacedStatefulSetScaleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedStatefulSetScaleRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedStatefulSetScaleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -10663,7 +11201,7 @@ private APIpatchNamespacedStatefulSetScaleRequest(String name, String namespace, * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedStatefulSetScaleRequest */ - public APIpatchNamespacedStatefulSetScaleRequest pretty(String pretty) { + public APIpatchNamespacedStatefulSetScaleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -10673,7 +11211,7 @@ public APIpatchNamespacedStatefulSetScaleRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedStatefulSetScaleRequest */ - public APIpatchNamespacedStatefulSetScaleRequest dryRun(String dryRun) { + public APIpatchNamespacedStatefulSetScaleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -10683,7 +11221,7 @@ public APIpatchNamespacedStatefulSetScaleRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedStatefulSetScaleRequest */ - public APIpatchNamespacedStatefulSetScaleRequest fieldManager(String fieldManager) { + public APIpatchNamespacedStatefulSetScaleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -10693,7 +11231,7 @@ public APIpatchNamespacedStatefulSetScaleRequest fieldManager(String fieldManage * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedStatefulSetScaleRequest */ - public APIpatchNamespacedStatefulSetScaleRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedStatefulSetScaleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -10703,7 +11241,7 @@ public APIpatchNamespacedStatefulSetScaleRequest fieldValidation(String fieldVal * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedStatefulSetScaleRequest */ - public APIpatchNamespacedStatefulSetScaleRequest force(Boolean force) { + public APIpatchNamespacedStatefulSetScaleRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -10714,7 +11252,8 @@ public APIpatchNamespacedStatefulSetScaleRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -10730,7 +11269,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10747,7 +11287,8 @@ public V1Scale execute() throws ApiException { * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10764,7 +11305,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10784,17 +11326,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap * @param body (required) * @return APIpatchNamespacedStatefulSetScaleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedStatefulSetScaleRequest patchNamespacedStatefulSetScale(String name, String namespace, V1Patch body) { + public APIpatchNamespacedStatefulSetScaleRequest patchNamespacedStatefulSetScale(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedStatefulSetScaleRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedStatefulSetStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedStatefulSetStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -10865,7 +11408,7 @@ private okhttp3.Call patchNamespacedStatefulSetStatusCall(String name, String na } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedStatefulSetStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedStatefulSetStatus(Async)"); @@ -10886,13 +11429,13 @@ private okhttp3.Call patchNamespacedStatefulSetStatusValidateBeforeCall(String n } - private ApiResponse patchNamespacedStatefulSetStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedStatefulSetStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedStatefulSetStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedStatefulSetStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -10901,16 +11444,24 @@ private okhttp3.Call patchNamespacedStatefulSetStatusAsync(String name, String n } public class APIpatchNamespacedStatefulSetStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedStatefulSetStatusRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedStatefulSetStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -10921,7 +11472,7 @@ private APIpatchNamespacedStatefulSetStatusRequest(String name, String namespace * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedStatefulSetStatusRequest */ - public APIpatchNamespacedStatefulSetStatusRequest pretty(String pretty) { + public APIpatchNamespacedStatefulSetStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -10931,7 +11482,7 @@ public APIpatchNamespacedStatefulSetStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedStatefulSetStatusRequest */ - public APIpatchNamespacedStatefulSetStatusRequest dryRun(String dryRun) { + public APIpatchNamespacedStatefulSetStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -10941,7 +11492,7 @@ public APIpatchNamespacedStatefulSetStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedStatefulSetStatusRequest */ - public APIpatchNamespacedStatefulSetStatusRequest fieldManager(String fieldManager) { + public APIpatchNamespacedStatefulSetStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -10951,7 +11502,7 @@ public APIpatchNamespacedStatefulSetStatusRequest fieldManager(String fieldManag * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedStatefulSetStatusRequest */ - public APIpatchNamespacedStatefulSetStatusRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedStatefulSetStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -10961,7 +11512,7 @@ public APIpatchNamespacedStatefulSetStatusRequest fieldValidation(String fieldVa * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedStatefulSetStatusRequest */ - public APIpatchNamespacedStatefulSetStatusRequest force(Boolean force) { + public APIpatchNamespacedStatefulSetStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -10972,7 +11523,8 @@ public APIpatchNamespacedStatefulSetStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -10988,7 +11540,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -11005,7 +11558,8 @@ public V1StatefulSet execute() throws ApiException { * @return ApiResponse<V1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -11022,7 +11576,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -11042,17 +11597,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param body (required) * @return APIpatchNamespacedStatefulSetStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedStatefulSetStatusRequest patchNamespacedStatefulSetStatus(String name, String namespace, V1Patch body) { + public APIpatchNamespacedStatefulSetStatusRequest patchNamespacedStatefulSetStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedStatefulSetStatusRequest(name, namespace, body); } - private okhttp3.Call readNamespacedControllerRevisionCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedControllerRevisionCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -11106,7 +11662,7 @@ private okhttp3.Call readNamespacedControllerRevisionCall(String name, String na } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedControllerRevisionValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedControllerRevision(Async)"); @@ -11122,13 +11678,13 @@ private okhttp3.Call readNamespacedControllerRevisionValidateBeforeCall(String n } - private ApiResponse readNamespacedControllerRevisionWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedControllerRevisionWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedControllerRevisionAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedControllerRevisionAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -11137,11 +11693,14 @@ private okhttp3.Call readNamespacedControllerRevisionAsync(String name, String n } public class APIreadNamespacedControllerRevisionRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedControllerRevisionRequest(String name, String namespace) { + private APIreadNamespacedControllerRevisionRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -11151,7 +11710,7 @@ private APIreadNamespacedControllerRevisionRequest(String name, String namespace * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedControllerRevisionRequest */ - public APIreadNamespacedControllerRevisionRequest pretty(String pretty) { + public APIreadNamespacedControllerRevisionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -11162,7 +11721,8 @@ public APIreadNamespacedControllerRevisionRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -11177,7 +11737,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ControllerRevision * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -11193,7 +11754,8 @@ public V1ControllerRevision execute() throws ApiException { * @return ApiResponse<V1ControllerRevision> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -11209,7 +11771,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -11227,16 +11790,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedControllerRevisionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedControllerRevisionRequest readNamespacedControllerRevision(String name, String namespace) { + public APIreadNamespacedControllerRevisionRequest readNamespacedControllerRevision(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedControllerRevisionRequest(name, namespace); } - private okhttp3.Call readNamespacedDaemonSetCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedDaemonSetCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -11290,7 +11854,7 @@ private okhttp3.Call readNamespacedDaemonSetCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedDaemonSetValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedDaemonSetValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedDaemonSet(Async)"); @@ -11306,13 +11870,13 @@ private okhttp3.Call readNamespacedDaemonSetValidateBeforeCall(String name, Stri } - private ApiResponse readNamespacedDaemonSetWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedDaemonSetWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedDaemonSetAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedDaemonSetAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -11321,11 +11885,14 @@ private okhttp3.Call readNamespacedDaemonSetAsync(String name, String namespace, } public class APIreadNamespacedDaemonSetRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedDaemonSetRequest(String name, String namespace) { + private APIreadNamespacedDaemonSetRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -11335,7 +11902,7 @@ private APIreadNamespacedDaemonSetRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedDaemonSetRequest */ - public APIreadNamespacedDaemonSetRequest pretty(String pretty) { + public APIreadNamespacedDaemonSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -11346,7 +11913,8 @@ public APIreadNamespacedDaemonSetRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -11361,7 +11929,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -11377,7 +11946,8 @@ public V1DaemonSet execute() throws ApiException { * @return ApiResponse<V1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -11393,7 +11963,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -11411,16 +11982,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedDaemonSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedDaemonSetRequest readNamespacedDaemonSet(String name, String namespace) { + public APIreadNamespacedDaemonSetRequest readNamespacedDaemonSet(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedDaemonSetRequest(name, namespace); } - private okhttp3.Call readNamespacedDaemonSetStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedDaemonSetStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -11474,7 +12046,7 @@ private okhttp3.Call readNamespacedDaemonSetStatusCall(String name, String names } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedDaemonSetStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedDaemonSetStatus(Async)"); @@ -11490,13 +12062,13 @@ private okhttp3.Call readNamespacedDaemonSetStatusValidateBeforeCall(String name } - private ApiResponse readNamespacedDaemonSetStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedDaemonSetStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedDaemonSetStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedDaemonSetStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -11505,11 +12077,14 @@ private okhttp3.Call readNamespacedDaemonSetStatusAsync(String name, String name } public class APIreadNamespacedDaemonSetStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedDaemonSetStatusRequest(String name, String namespace) { + private APIreadNamespacedDaemonSetStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -11519,7 +12094,7 @@ private APIreadNamespacedDaemonSetStatusRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedDaemonSetStatusRequest */ - public APIreadNamespacedDaemonSetStatusRequest pretty(String pretty) { + public APIreadNamespacedDaemonSetStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -11530,7 +12105,8 @@ public APIreadNamespacedDaemonSetStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -11545,7 +12121,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -11561,7 +12138,8 @@ public V1DaemonSet execute() throws ApiException { * @return ApiResponse<V1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -11577,7 +12155,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -11595,16 +12174,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedDaemonSetStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedDaemonSetStatusRequest readNamespacedDaemonSetStatus(String name, String namespace) { + public APIreadNamespacedDaemonSetStatusRequest readNamespacedDaemonSetStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedDaemonSetStatusRequest(name, namespace); } - private okhttp3.Call readNamespacedDeploymentCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedDeploymentCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -11658,7 +12238,7 @@ private okhttp3.Call readNamespacedDeploymentCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedDeploymentValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedDeploymentValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedDeployment(Async)"); @@ -11674,13 +12254,13 @@ private okhttp3.Call readNamespacedDeploymentValidateBeforeCall(String name, Str } - private ApiResponse readNamespacedDeploymentWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedDeploymentWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedDeploymentAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedDeploymentAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -11689,11 +12269,14 @@ private okhttp3.Call readNamespacedDeploymentAsync(String name, String namespace } public class APIreadNamespacedDeploymentRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedDeploymentRequest(String name, String namespace) { + private APIreadNamespacedDeploymentRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -11703,7 +12286,7 @@ private APIreadNamespacedDeploymentRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedDeploymentRequest */ - public APIreadNamespacedDeploymentRequest pretty(String pretty) { + public APIreadNamespacedDeploymentRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -11714,7 +12297,8 @@ public APIreadNamespacedDeploymentRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -11729,7 +12313,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -11745,7 +12330,8 @@ public V1Deployment execute() throws ApiException { * @return ApiResponse<V1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -11761,7 +12347,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -11779,16 +12366,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedDeploymentRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedDeploymentRequest readNamespacedDeployment(String name, String namespace) { + public APIreadNamespacedDeploymentRequest readNamespacedDeployment(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedDeploymentRequest(name, namespace); } - private okhttp3.Call readNamespacedDeploymentScaleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedDeploymentScaleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -11842,7 +12430,7 @@ private okhttp3.Call readNamespacedDeploymentScaleCall(String name, String names } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedDeploymentScaleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedDeploymentScale(Async)"); @@ -11858,13 +12446,13 @@ private okhttp3.Call readNamespacedDeploymentScaleValidateBeforeCall(String name } - private ApiResponse readNamespacedDeploymentScaleWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedDeploymentScaleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedDeploymentScaleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedDeploymentScaleAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedDeploymentScaleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedDeploymentScaleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -11873,11 +12461,14 @@ private okhttp3.Call readNamespacedDeploymentScaleAsync(String name, String name } public class APIreadNamespacedDeploymentScaleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedDeploymentScaleRequest(String name, String namespace) { + private APIreadNamespacedDeploymentScaleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -11887,7 +12478,7 @@ private APIreadNamespacedDeploymentScaleRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedDeploymentScaleRequest */ - public APIreadNamespacedDeploymentScaleRequest pretty(String pretty) { + public APIreadNamespacedDeploymentScaleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -11898,7 +12489,8 @@ public APIreadNamespacedDeploymentScaleRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -11913,7 +12505,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -11929,7 +12522,8 @@ public V1Scale execute() throws ApiException { * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -11945,7 +12539,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -11963,16 +12558,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedDeploymentScaleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedDeploymentScaleRequest readNamespacedDeploymentScale(String name, String namespace) { + public APIreadNamespacedDeploymentScaleRequest readNamespacedDeploymentScale(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedDeploymentScaleRequest(name, namespace); } - private okhttp3.Call readNamespacedDeploymentStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedDeploymentStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -12026,7 +12622,7 @@ private okhttp3.Call readNamespacedDeploymentStatusCall(String name, String name } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedDeploymentStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedDeploymentStatus(Async)"); @@ -12042,13 +12638,13 @@ private okhttp3.Call readNamespacedDeploymentStatusValidateBeforeCall(String nam } - private ApiResponse readNamespacedDeploymentStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedDeploymentStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedDeploymentStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedDeploymentStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedDeploymentStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedDeploymentStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -12057,11 +12653,14 @@ private okhttp3.Call readNamespacedDeploymentStatusAsync(String name, String nam } public class APIreadNamespacedDeploymentStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedDeploymentStatusRequest(String name, String namespace) { + private APIreadNamespacedDeploymentStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -12071,7 +12670,7 @@ private APIreadNamespacedDeploymentStatusRequest(String name, String namespace) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedDeploymentStatusRequest */ - public APIreadNamespacedDeploymentStatusRequest pretty(String pretty) { + public APIreadNamespacedDeploymentStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -12082,7 +12681,8 @@ public APIreadNamespacedDeploymentStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -12097,7 +12697,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -12113,7 +12714,8 @@ public V1Deployment execute() throws ApiException { * @return ApiResponse<V1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -12129,7 +12731,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -12147,16 +12750,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedDeploymentStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedDeploymentStatusRequest readNamespacedDeploymentStatus(String name, String namespace) { + public APIreadNamespacedDeploymentStatusRequest readNamespacedDeploymentStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedDeploymentStatusRequest(name, namespace); } - private okhttp3.Call readNamespacedReplicaSetCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedReplicaSetCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -12210,7 +12814,7 @@ private okhttp3.Call readNamespacedReplicaSetCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedReplicaSetValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedReplicaSetValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedReplicaSet(Async)"); @@ -12226,13 +12830,13 @@ private okhttp3.Call readNamespacedReplicaSetValidateBeforeCall(String name, Str } - private ApiResponse readNamespacedReplicaSetWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedReplicaSetWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedReplicaSetAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedReplicaSetAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -12241,11 +12845,14 @@ private okhttp3.Call readNamespacedReplicaSetAsync(String name, String namespace } public class APIreadNamespacedReplicaSetRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedReplicaSetRequest(String name, String namespace) { + private APIreadNamespacedReplicaSetRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -12255,7 +12862,7 @@ private APIreadNamespacedReplicaSetRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedReplicaSetRequest */ - public APIreadNamespacedReplicaSetRequest pretty(String pretty) { + public APIreadNamespacedReplicaSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -12266,7 +12873,8 @@ public APIreadNamespacedReplicaSetRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -12281,7 +12889,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -12297,7 +12906,8 @@ public V1ReplicaSet execute() throws ApiException { * @return ApiResponse<V1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -12313,7 +12923,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -12331,16 +12942,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedReplicaSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedReplicaSetRequest readNamespacedReplicaSet(String name, String namespace) { + public APIreadNamespacedReplicaSetRequest readNamespacedReplicaSet(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedReplicaSetRequest(name, namespace); } - private okhttp3.Call readNamespacedReplicaSetScaleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedReplicaSetScaleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -12394,7 +13006,7 @@ private okhttp3.Call readNamespacedReplicaSetScaleCall(String name, String names } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedReplicaSetScaleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedReplicaSetScale(Async)"); @@ -12410,13 +13022,13 @@ private okhttp3.Call readNamespacedReplicaSetScaleValidateBeforeCall(String name } - private ApiResponse readNamespacedReplicaSetScaleWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedReplicaSetScaleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedReplicaSetScaleAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedReplicaSetScaleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -12425,11 +13037,14 @@ private okhttp3.Call readNamespacedReplicaSetScaleAsync(String name, String name } public class APIreadNamespacedReplicaSetScaleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedReplicaSetScaleRequest(String name, String namespace) { + private APIreadNamespacedReplicaSetScaleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -12439,7 +13054,7 @@ private APIreadNamespacedReplicaSetScaleRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedReplicaSetScaleRequest */ - public APIreadNamespacedReplicaSetScaleRequest pretty(String pretty) { + public APIreadNamespacedReplicaSetScaleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -12450,7 +13065,8 @@ public APIreadNamespacedReplicaSetScaleRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -12465,7 +13081,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -12481,7 +13098,8 @@ public V1Scale execute() throws ApiException { * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -12497,7 +13115,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -12515,16 +13134,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedReplicaSetScaleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedReplicaSetScaleRequest readNamespacedReplicaSetScale(String name, String namespace) { + public APIreadNamespacedReplicaSetScaleRequest readNamespacedReplicaSetScale(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedReplicaSetScaleRequest(name, namespace); } - private okhttp3.Call readNamespacedReplicaSetStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedReplicaSetStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -12578,7 +13198,7 @@ private okhttp3.Call readNamespacedReplicaSetStatusCall(String name, String name } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedReplicaSetStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedReplicaSetStatus(Async)"); @@ -12594,13 +13214,13 @@ private okhttp3.Call readNamespacedReplicaSetStatusValidateBeforeCall(String nam } - private ApiResponse readNamespacedReplicaSetStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedReplicaSetStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedReplicaSetStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedReplicaSetStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -12609,11 +13229,14 @@ private okhttp3.Call readNamespacedReplicaSetStatusAsync(String name, String nam } public class APIreadNamespacedReplicaSetStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedReplicaSetStatusRequest(String name, String namespace) { + private APIreadNamespacedReplicaSetStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -12623,7 +13246,7 @@ private APIreadNamespacedReplicaSetStatusRequest(String name, String namespace) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedReplicaSetStatusRequest */ - public APIreadNamespacedReplicaSetStatusRequest pretty(String pretty) { + public APIreadNamespacedReplicaSetStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -12634,7 +13257,8 @@ public APIreadNamespacedReplicaSetStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -12649,7 +13273,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -12665,7 +13290,8 @@ public V1ReplicaSet execute() throws ApiException { * @return ApiResponse<V1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -12681,7 +13307,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -12699,16 +13326,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedReplicaSetStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedReplicaSetStatusRequest readNamespacedReplicaSetStatus(String name, String namespace) { + public APIreadNamespacedReplicaSetStatusRequest readNamespacedReplicaSetStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedReplicaSetStatusRequest(name, namespace); } - private okhttp3.Call readNamespacedStatefulSetCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedStatefulSetCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -12762,7 +13390,7 @@ private okhttp3.Call readNamespacedStatefulSetCall(String name, String namespace } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedStatefulSetValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedStatefulSetValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedStatefulSet(Async)"); @@ -12778,13 +13406,13 @@ private okhttp3.Call readNamespacedStatefulSetValidateBeforeCall(String name, St } - private ApiResponse readNamespacedStatefulSetWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedStatefulSetWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedStatefulSetAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedStatefulSetAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -12793,11 +13421,14 @@ private okhttp3.Call readNamespacedStatefulSetAsync(String name, String namespac } public class APIreadNamespacedStatefulSetRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedStatefulSetRequest(String name, String namespace) { + private APIreadNamespacedStatefulSetRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -12807,7 +13438,7 @@ private APIreadNamespacedStatefulSetRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedStatefulSetRequest */ - public APIreadNamespacedStatefulSetRequest pretty(String pretty) { + public APIreadNamespacedStatefulSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -12818,7 +13449,8 @@ public APIreadNamespacedStatefulSetRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -12833,7 +13465,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -12849,7 +13482,8 @@ public V1StatefulSet execute() throws ApiException { * @return ApiResponse<V1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -12865,7 +13499,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -12883,16 +13518,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedStatefulSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedStatefulSetRequest readNamespacedStatefulSet(String name, String namespace) { + public APIreadNamespacedStatefulSetRequest readNamespacedStatefulSet(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedStatefulSetRequest(name, namespace); } - private okhttp3.Call readNamespacedStatefulSetScaleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedStatefulSetScaleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -12946,7 +13582,7 @@ private okhttp3.Call readNamespacedStatefulSetScaleCall(String name, String name } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedStatefulSetScaleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedStatefulSetScale(Async)"); @@ -12962,13 +13598,13 @@ private okhttp3.Call readNamespacedStatefulSetScaleValidateBeforeCall(String nam } - private ApiResponse readNamespacedStatefulSetScaleWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedStatefulSetScaleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedStatefulSetScaleAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedStatefulSetScaleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -12977,11 +13613,14 @@ private okhttp3.Call readNamespacedStatefulSetScaleAsync(String name, String nam } public class APIreadNamespacedStatefulSetScaleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedStatefulSetScaleRequest(String name, String namespace) { + private APIreadNamespacedStatefulSetScaleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -12991,7 +13630,7 @@ private APIreadNamespacedStatefulSetScaleRequest(String name, String namespace) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedStatefulSetScaleRequest */ - public APIreadNamespacedStatefulSetScaleRequest pretty(String pretty) { + public APIreadNamespacedStatefulSetScaleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -13002,7 +13641,8 @@ public APIreadNamespacedStatefulSetScaleRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -13017,7 +13657,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -13033,7 +13674,8 @@ public V1Scale execute() throws ApiException { * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -13049,7 +13691,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -13067,16 +13710,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedStatefulSetScaleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedStatefulSetScaleRequest readNamespacedStatefulSetScale(String name, String namespace) { + public APIreadNamespacedStatefulSetScaleRequest readNamespacedStatefulSetScale(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedStatefulSetScaleRequest(name, namespace); } - private okhttp3.Call readNamespacedStatefulSetStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedStatefulSetStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -13130,7 +13774,7 @@ private okhttp3.Call readNamespacedStatefulSetStatusCall(String name, String nam } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedStatefulSetStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedStatefulSetStatus(Async)"); @@ -13146,13 +13790,13 @@ private okhttp3.Call readNamespacedStatefulSetStatusValidateBeforeCall(String na } - private ApiResponse readNamespacedStatefulSetStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedStatefulSetStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedStatefulSetStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedStatefulSetStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -13161,11 +13805,14 @@ private okhttp3.Call readNamespacedStatefulSetStatusAsync(String name, String na } public class APIreadNamespacedStatefulSetStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedStatefulSetStatusRequest(String name, String namespace) { + private APIreadNamespacedStatefulSetStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -13175,7 +13822,7 @@ private APIreadNamespacedStatefulSetStatusRequest(String name, String namespace) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedStatefulSetStatusRequest */ - public APIreadNamespacedStatefulSetStatusRequest pretty(String pretty) { + public APIreadNamespacedStatefulSetStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -13186,7 +13833,8 @@ public APIreadNamespacedStatefulSetStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -13201,7 +13849,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -13217,7 +13866,8 @@ public V1StatefulSet execute() throws ApiException { * @return ApiResponse<V1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -13233,7 +13883,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -13251,16 +13902,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedStatefulSetStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedStatefulSetStatusRequest readNamespacedStatefulSetStatus(String name, String namespace) { + public APIreadNamespacedStatefulSetStatusRequest readNamespacedStatefulSetStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedStatefulSetStatusRequest(name, namespace); } - private okhttp3.Call replaceNamespacedControllerRevisionCall(String name, String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedControllerRevisionCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ControllerRevision body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -13327,7 +13979,7 @@ private okhttp3.Call replaceNamespacedControllerRevisionCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedControllerRevisionValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ControllerRevision body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedControllerRevision(Async)"); @@ -13348,13 +14000,13 @@ private okhttp3.Call replaceNamespacedControllerRevisionValidateBeforeCall(Strin } - private ApiResponse replaceNamespacedControllerRevisionWithHttpInfo(String name, String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedControllerRevisionWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ControllerRevision body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedControllerRevisionAsync(String name, String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedControllerRevisionAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ControllerRevision body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -13363,15 +14015,22 @@ private okhttp3.Call replaceNamespacedControllerRevisionAsync(String name, Strin } public class APIreplaceNamespacedControllerRevisionRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1ControllerRevision body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedControllerRevisionRequest(String name, String namespace, V1ControllerRevision body) { + private APIreplaceNamespacedControllerRevisionRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ControllerRevision body) { this.name = name; this.namespace = namespace; this.body = body; @@ -13382,7 +14041,7 @@ private APIreplaceNamespacedControllerRevisionRequest(String name, String namesp * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedControllerRevisionRequest */ - public APIreplaceNamespacedControllerRevisionRequest pretty(String pretty) { + public APIreplaceNamespacedControllerRevisionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -13392,7 +14051,7 @@ public APIreplaceNamespacedControllerRevisionRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedControllerRevisionRequest */ - public APIreplaceNamespacedControllerRevisionRequest dryRun(String dryRun) { + public APIreplaceNamespacedControllerRevisionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -13402,7 +14061,7 @@ public APIreplaceNamespacedControllerRevisionRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedControllerRevisionRequest */ - public APIreplaceNamespacedControllerRevisionRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedControllerRevisionRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -13412,7 +14071,7 @@ public APIreplaceNamespacedControllerRevisionRequest fieldManager(String fieldMa * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedControllerRevisionRequest */ - public APIreplaceNamespacedControllerRevisionRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedControllerRevisionRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -13423,7 +14082,8 @@ public APIreplaceNamespacedControllerRevisionRequest fieldValidation(String fiel * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -13439,7 +14099,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ControllerRevision * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -13456,7 +14117,8 @@ public V1ControllerRevision execute() throws ApiException { * @return ApiResponse<V1ControllerRevision> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -13473,7 +14135,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -13493,17 +14156,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param body (required) * @return APIreplaceNamespacedControllerRevisionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedControllerRevisionRequest replaceNamespacedControllerRevision(String name, String namespace, V1ControllerRevision body) { + public APIreplaceNamespacedControllerRevisionRequest replaceNamespacedControllerRevision(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ControllerRevision body) { return new APIreplaceNamespacedControllerRevisionRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedDaemonSetCall(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedDaemonSetCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -13570,7 +14234,7 @@ private okhttp3.Call replaceNamespacedDaemonSetCall(String name, String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedDaemonSetValidateBeforeCall(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedDaemonSetValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedDaemonSet(Async)"); @@ -13591,13 +14255,13 @@ private okhttp3.Call replaceNamespacedDaemonSetValidateBeforeCall(String name, S } - private ApiResponse replaceNamespacedDaemonSetWithHttpInfo(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedDaemonSetWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedDaemonSetAsync(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedDaemonSetAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -13606,15 +14270,22 @@ private okhttp3.Call replaceNamespacedDaemonSetAsync(String name, String namespa } public class APIreplaceNamespacedDaemonSetRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1DaemonSet body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedDaemonSetRequest(String name, String namespace, V1DaemonSet body) { + private APIreplaceNamespacedDaemonSetRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body) { this.name = name; this.namespace = namespace; this.body = body; @@ -13625,7 +14296,7 @@ private APIreplaceNamespacedDaemonSetRequest(String name, String namespace, V1Da * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedDaemonSetRequest */ - public APIreplaceNamespacedDaemonSetRequest pretty(String pretty) { + public APIreplaceNamespacedDaemonSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -13635,7 +14306,7 @@ public APIreplaceNamespacedDaemonSetRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedDaemonSetRequest */ - public APIreplaceNamespacedDaemonSetRequest dryRun(String dryRun) { + public APIreplaceNamespacedDaemonSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -13645,7 +14316,7 @@ public APIreplaceNamespacedDaemonSetRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedDaemonSetRequest */ - public APIreplaceNamespacedDaemonSetRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedDaemonSetRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -13655,7 +14326,7 @@ public APIreplaceNamespacedDaemonSetRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedDaemonSetRequest */ - public APIreplaceNamespacedDaemonSetRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedDaemonSetRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -13666,7 +14337,8 @@ public APIreplaceNamespacedDaemonSetRequest fieldValidation(String fieldValidati * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -13682,7 +14354,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -13699,7 +14372,8 @@ public V1DaemonSet execute() throws ApiException { * @return ApiResponse<V1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -13716,7 +14390,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -13736,17 +14411,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIreplaceNamespacedDaemonSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedDaemonSetRequest replaceNamespacedDaemonSet(String name, String namespace, V1DaemonSet body) { + public APIreplaceNamespacedDaemonSetRequest replaceNamespacedDaemonSet(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body) { return new APIreplaceNamespacedDaemonSetRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedDaemonSetStatusCall(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedDaemonSetStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -13813,7 +14489,7 @@ private okhttp3.Call replaceNamespacedDaemonSetStatusCall(String name, String na } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedDaemonSetStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedDaemonSetStatus(Async)"); @@ -13834,13 +14510,13 @@ private okhttp3.Call replaceNamespacedDaemonSetStatusValidateBeforeCall(String n } - private ApiResponse replaceNamespacedDaemonSetStatusWithHttpInfo(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedDaemonSetStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedDaemonSetStatusAsync(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedDaemonSetStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -13849,15 +14525,22 @@ private okhttp3.Call replaceNamespacedDaemonSetStatusAsync(String name, String n } public class APIreplaceNamespacedDaemonSetStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1DaemonSet body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedDaemonSetStatusRequest(String name, String namespace, V1DaemonSet body) { + private APIreplaceNamespacedDaemonSetStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body) { this.name = name; this.namespace = namespace; this.body = body; @@ -13868,7 +14551,7 @@ private APIreplaceNamespacedDaemonSetStatusRequest(String name, String namespace * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedDaemonSetStatusRequest */ - public APIreplaceNamespacedDaemonSetStatusRequest pretty(String pretty) { + public APIreplaceNamespacedDaemonSetStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -13878,7 +14561,7 @@ public APIreplaceNamespacedDaemonSetStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedDaemonSetStatusRequest */ - public APIreplaceNamespacedDaemonSetStatusRequest dryRun(String dryRun) { + public APIreplaceNamespacedDaemonSetStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -13888,7 +14571,7 @@ public APIreplaceNamespacedDaemonSetStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedDaemonSetStatusRequest */ - public APIreplaceNamespacedDaemonSetStatusRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedDaemonSetStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -13898,7 +14581,7 @@ public APIreplaceNamespacedDaemonSetStatusRequest fieldManager(String fieldManag * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedDaemonSetStatusRequest */ - public APIreplaceNamespacedDaemonSetStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedDaemonSetStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -13909,7 +14592,8 @@ public APIreplaceNamespacedDaemonSetStatusRequest fieldValidation(String fieldVa * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -13925,7 +14609,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -13942,7 +14627,8 @@ public V1DaemonSet execute() throws ApiException { * @return ApiResponse<V1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -13959,7 +14645,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -13979,17 +14666,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIreplaceNamespacedDaemonSetStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedDaemonSetStatusRequest replaceNamespacedDaemonSetStatus(String name, String namespace, V1DaemonSet body) { + public APIreplaceNamespacedDaemonSetStatusRequest replaceNamespacedDaemonSetStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body) { return new APIreplaceNamespacedDaemonSetStatusRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedDeploymentCall(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedDeploymentCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -14056,7 +14744,7 @@ private okhttp3.Call replaceNamespacedDeploymentCall(String name, String namespa } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedDeploymentValidateBeforeCall(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedDeploymentValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedDeployment(Async)"); @@ -14077,13 +14765,13 @@ private okhttp3.Call replaceNamespacedDeploymentValidateBeforeCall(String name, } - private ApiResponse replaceNamespacedDeploymentWithHttpInfo(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedDeploymentWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedDeploymentAsync(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedDeploymentAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -14092,15 +14780,22 @@ private okhttp3.Call replaceNamespacedDeploymentAsync(String name, String namesp } public class APIreplaceNamespacedDeploymentRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Deployment body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedDeploymentRequest(String name, String namespace, V1Deployment body) { + private APIreplaceNamespacedDeploymentRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body) { this.name = name; this.namespace = namespace; this.body = body; @@ -14111,7 +14806,7 @@ private APIreplaceNamespacedDeploymentRequest(String name, String namespace, V1D * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedDeploymentRequest */ - public APIreplaceNamespacedDeploymentRequest pretty(String pretty) { + public APIreplaceNamespacedDeploymentRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -14121,7 +14816,7 @@ public APIreplaceNamespacedDeploymentRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedDeploymentRequest */ - public APIreplaceNamespacedDeploymentRequest dryRun(String dryRun) { + public APIreplaceNamespacedDeploymentRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -14131,7 +14826,7 @@ public APIreplaceNamespacedDeploymentRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedDeploymentRequest */ - public APIreplaceNamespacedDeploymentRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedDeploymentRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -14141,7 +14836,7 @@ public APIreplaceNamespacedDeploymentRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedDeploymentRequest */ - public APIreplaceNamespacedDeploymentRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedDeploymentRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -14152,7 +14847,8 @@ public APIreplaceNamespacedDeploymentRequest fieldValidation(String fieldValidat * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -14168,7 +14864,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -14185,7 +14882,8 @@ public V1Deployment execute() throws ApiException { * @return ApiResponse<V1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -14202,7 +14900,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -14222,17 +14921,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIreplaceNamespacedDeploymentRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedDeploymentRequest replaceNamespacedDeployment(String name, String namespace, V1Deployment body) { + public APIreplaceNamespacedDeploymentRequest replaceNamespacedDeployment(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body) { return new APIreplaceNamespacedDeploymentRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedDeploymentScaleCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedDeploymentScaleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -14299,7 +14999,7 @@ private okhttp3.Call replaceNamespacedDeploymentScaleCall(String name, String na } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedDeploymentScaleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedDeploymentScale(Async)"); @@ -14320,13 +15020,13 @@ private okhttp3.Call replaceNamespacedDeploymentScaleValidateBeforeCall(String n } - private ApiResponse replaceNamespacedDeploymentScaleWithHttpInfo(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedDeploymentScaleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedDeploymentScaleAsync(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedDeploymentScaleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -14335,15 +15035,22 @@ private okhttp3.Call replaceNamespacedDeploymentScaleAsync(String name, String n } public class APIreplaceNamespacedDeploymentScaleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Scale body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedDeploymentScaleRequest(String name, String namespace, V1Scale body) { + private APIreplaceNamespacedDeploymentScaleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body) { this.name = name; this.namespace = namespace; this.body = body; @@ -14354,7 +15061,7 @@ private APIreplaceNamespacedDeploymentScaleRequest(String name, String namespace * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedDeploymentScaleRequest */ - public APIreplaceNamespacedDeploymentScaleRequest pretty(String pretty) { + public APIreplaceNamespacedDeploymentScaleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -14364,7 +15071,7 @@ public APIreplaceNamespacedDeploymentScaleRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedDeploymentScaleRequest */ - public APIreplaceNamespacedDeploymentScaleRequest dryRun(String dryRun) { + public APIreplaceNamespacedDeploymentScaleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -14374,7 +15081,7 @@ public APIreplaceNamespacedDeploymentScaleRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedDeploymentScaleRequest */ - public APIreplaceNamespacedDeploymentScaleRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedDeploymentScaleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -14384,7 +15091,7 @@ public APIreplaceNamespacedDeploymentScaleRequest fieldManager(String fieldManag * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedDeploymentScaleRequest */ - public APIreplaceNamespacedDeploymentScaleRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedDeploymentScaleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -14395,7 +15102,8 @@ public APIreplaceNamespacedDeploymentScaleRequest fieldValidation(String fieldVa * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -14411,7 +15119,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -14428,7 +15137,8 @@ public V1Scale execute() throws ApiException { * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -14445,7 +15155,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -14465,17 +15176,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap * @param body (required) * @return APIreplaceNamespacedDeploymentScaleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedDeploymentScaleRequest replaceNamespacedDeploymentScale(String name, String namespace, V1Scale body) { + public APIreplaceNamespacedDeploymentScaleRequest replaceNamespacedDeploymentScale(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body) { return new APIreplaceNamespacedDeploymentScaleRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedDeploymentStatusCall(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedDeploymentStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -14542,7 +15254,7 @@ private okhttp3.Call replaceNamespacedDeploymentStatusCall(String name, String n } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedDeploymentStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedDeploymentStatus(Async)"); @@ -14563,13 +15275,13 @@ private okhttp3.Call replaceNamespacedDeploymentStatusValidateBeforeCall(String } - private ApiResponse replaceNamespacedDeploymentStatusWithHttpInfo(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedDeploymentStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedDeploymentStatusAsync(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedDeploymentStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -14578,15 +15290,22 @@ private okhttp3.Call replaceNamespacedDeploymentStatusAsync(String name, String } public class APIreplaceNamespacedDeploymentStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Deployment body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedDeploymentStatusRequest(String name, String namespace, V1Deployment body) { + private APIreplaceNamespacedDeploymentStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body) { this.name = name; this.namespace = namespace; this.body = body; @@ -14597,7 +15316,7 @@ private APIreplaceNamespacedDeploymentStatusRequest(String name, String namespac * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedDeploymentStatusRequest */ - public APIreplaceNamespacedDeploymentStatusRequest pretty(String pretty) { + public APIreplaceNamespacedDeploymentStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -14607,7 +15326,7 @@ public APIreplaceNamespacedDeploymentStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedDeploymentStatusRequest */ - public APIreplaceNamespacedDeploymentStatusRequest dryRun(String dryRun) { + public APIreplaceNamespacedDeploymentStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -14617,7 +15336,7 @@ public APIreplaceNamespacedDeploymentStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedDeploymentStatusRequest */ - public APIreplaceNamespacedDeploymentStatusRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedDeploymentStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -14627,7 +15346,7 @@ public APIreplaceNamespacedDeploymentStatusRequest fieldManager(String fieldMana * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedDeploymentStatusRequest */ - public APIreplaceNamespacedDeploymentStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedDeploymentStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -14638,7 +15357,8 @@ public APIreplaceNamespacedDeploymentStatusRequest fieldValidation(String fieldV * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -14654,7 +15374,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -14671,7 +15392,8 @@ public V1Deployment execute() throws ApiException { * @return ApiResponse<V1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -14688,7 +15410,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -14708,17 +15431,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIreplaceNamespacedDeploymentStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedDeploymentStatusRequest replaceNamespacedDeploymentStatus(String name, String namespace, V1Deployment body) { + public APIreplaceNamespacedDeploymentStatusRequest replaceNamespacedDeploymentStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body) { return new APIreplaceNamespacedDeploymentStatusRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedReplicaSetCall(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedReplicaSetCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -14785,7 +15509,7 @@ private okhttp3.Call replaceNamespacedReplicaSetCall(String name, String namespa } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedReplicaSetValidateBeforeCall(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedReplicaSetValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedReplicaSet(Async)"); @@ -14806,13 +15530,13 @@ private okhttp3.Call replaceNamespacedReplicaSetValidateBeforeCall(String name, } - private ApiResponse replaceNamespacedReplicaSetWithHttpInfo(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedReplicaSetWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedReplicaSetAsync(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedReplicaSetAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -14821,15 +15545,22 @@ private okhttp3.Call replaceNamespacedReplicaSetAsync(String name, String namesp } public class APIreplaceNamespacedReplicaSetRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1ReplicaSet body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedReplicaSetRequest(String name, String namespace, V1ReplicaSet body) { + private APIreplaceNamespacedReplicaSetRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body) { this.name = name; this.namespace = namespace; this.body = body; @@ -14840,7 +15571,7 @@ private APIreplaceNamespacedReplicaSetRequest(String name, String namespace, V1R * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedReplicaSetRequest */ - public APIreplaceNamespacedReplicaSetRequest pretty(String pretty) { + public APIreplaceNamespacedReplicaSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -14850,7 +15581,7 @@ public APIreplaceNamespacedReplicaSetRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedReplicaSetRequest */ - public APIreplaceNamespacedReplicaSetRequest dryRun(String dryRun) { + public APIreplaceNamespacedReplicaSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -14860,7 +15591,7 @@ public APIreplaceNamespacedReplicaSetRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedReplicaSetRequest */ - public APIreplaceNamespacedReplicaSetRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedReplicaSetRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -14870,7 +15601,7 @@ public APIreplaceNamespacedReplicaSetRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedReplicaSetRequest */ - public APIreplaceNamespacedReplicaSetRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedReplicaSetRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -14881,7 +15612,8 @@ public APIreplaceNamespacedReplicaSetRequest fieldValidation(String fieldValidat * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -14897,7 +15629,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -14914,7 +15647,8 @@ public V1ReplicaSet execute() throws ApiException { * @return ApiResponse<V1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -14931,7 +15665,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -14951,17 +15686,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIreplaceNamespacedReplicaSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedReplicaSetRequest replaceNamespacedReplicaSet(String name, String namespace, V1ReplicaSet body) { + public APIreplaceNamespacedReplicaSetRequest replaceNamespacedReplicaSet(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body) { return new APIreplaceNamespacedReplicaSetRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedReplicaSetScaleCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedReplicaSetScaleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -15028,7 +15764,7 @@ private okhttp3.Call replaceNamespacedReplicaSetScaleCall(String name, String na } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedReplicaSetScaleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedReplicaSetScale(Async)"); @@ -15049,13 +15785,13 @@ private okhttp3.Call replaceNamespacedReplicaSetScaleValidateBeforeCall(String n } - private ApiResponse replaceNamespacedReplicaSetScaleWithHttpInfo(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedReplicaSetScaleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedReplicaSetScaleAsync(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedReplicaSetScaleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -15064,15 +15800,22 @@ private okhttp3.Call replaceNamespacedReplicaSetScaleAsync(String name, String n } public class APIreplaceNamespacedReplicaSetScaleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Scale body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedReplicaSetScaleRequest(String name, String namespace, V1Scale body) { + private APIreplaceNamespacedReplicaSetScaleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body) { this.name = name; this.namespace = namespace; this.body = body; @@ -15083,7 +15826,7 @@ private APIreplaceNamespacedReplicaSetScaleRequest(String name, String namespace * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedReplicaSetScaleRequest */ - public APIreplaceNamespacedReplicaSetScaleRequest pretty(String pretty) { + public APIreplaceNamespacedReplicaSetScaleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -15093,7 +15836,7 @@ public APIreplaceNamespacedReplicaSetScaleRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedReplicaSetScaleRequest */ - public APIreplaceNamespacedReplicaSetScaleRequest dryRun(String dryRun) { + public APIreplaceNamespacedReplicaSetScaleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -15103,7 +15846,7 @@ public APIreplaceNamespacedReplicaSetScaleRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedReplicaSetScaleRequest */ - public APIreplaceNamespacedReplicaSetScaleRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedReplicaSetScaleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -15113,7 +15856,7 @@ public APIreplaceNamespacedReplicaSetScaleRequest fieldManager(String fieldManag * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedReplicaSetScaleRequest */ - public APIreplaceNamespacedReplicaSetScaleRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedReplicaSetScaleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -15124,7 +15867,8 @@ public APIreplaceNamespacedReplicaSetScaleRequest fieldValidation(String fieldVa * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -15140,7 +15884,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -15157,7 +15902,8 @@ public V1Scale execute() throws ApiException { * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -15174,7 +15920,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -15194,17 +15941,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap * @param body (required) * @return APIreplaceNamespacedReplicaSetScaleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedReplicaSetScaleRequest replaceNamespacedReplicaSetScale(String name, String namespace, V1Scale body) { + public APIreplaceNamespacedReplicaSetScaleRequest replaceNamespacedReplicaSetScale(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body) { return new APIreplaceNamespacedReplicaSetScaleRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedReplicaSetStatusCall(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedReplicaSetStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -15271,7 +16019,7 @@ private okhttp3.Call replaceNamespacedReplicaSetStatusCall(String name, String n } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedReplicaSetStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedReplicaSetStatus(Async)"); @@ -15292,13 +16040,13 @@ private okhttp3.Call replaceNamespacedReplicaSetStatusValidateBeforeCall(String } - private ApiResponse replaceNamespacedReplicaSetStatusWithHttpInfo(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedReplicaSetStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedReplicaSetStatusAsync(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedReplicaSetStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -15307,15 +16055,22 @@ private okhttp3.Call replaceNamespacedReplicaSetStatusAsync(String name, String } public class APIreplaceNamespacedReplicaSetStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1ReplicaSet body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedReplicaSetStatusRequest(String name, String namespace, V1ReplicaSet body) { + private APIreplaceNamespacedReplicaSetStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body) { this.name = name; this.namespace = namespace; this.body = body; @@ -15326,7 +16081,7 @@ private APIreplaceNamespacedReplicaSetStatusRequest(String name, String namespac * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedReplicaSetStatusRequest */ - public APIreplaceNamespacedReplicaSetStatusRequest pretty(String pretty) { + public APIreplaceNamespacedReplicaSetStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -15336,7 +16091,7 @@ public APIreplaceNamespacedReplicaSetStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedReplicaSetStatusRequest */ - public APIreplaceNamespacedReplicaSetStatusRequest dryRun(String dryRun) { + public APIreplaceNamespacedReplicaSetStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -15346,7 +16101,7 @@ public APIreplaceNamespacedReplicaSetStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedReplicaSetStatusRequest */ - public APIreplaceNamespacedReplicaSetStatusRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedReplicaSetStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -15356,7 +16111,7 @@ public APIreplaceNamespacedReplicaSetStatusRequest fieldManager(String fieldMana * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedReplicaSetStatusRequest */ - public APIreplaceNamespacedReplicaSetStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedReplicaSetStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -15367,7 +16122,8 @@ public APIreplaceNamespacedReplicaSetStatusRequest fieldValidation(String fieldV * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -15383,7 +16139,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -15400,7 +16157,8 @@ public V1ReplicaSet execute() throws ApiException { * @return ApiResponse<V1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -15417,7 +16175,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -15437,17 +16196,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIreplaceNamespacedReplicaSetStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedReplicaSetStatusRequest replaceNamespacedReplicaSetStatus(String name, String namespace, V1ReplicaSet body) { + public APIreplaceNamespacedReplicaSetStatusRequest replaceNamespacedReplicaSetStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body) { return new APIreplaceNamespacedReplicaSetStatusRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedStatefulSetCall(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedStatefulSetCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -15514,7 +16274,7 @@ private okhttp3.Call replaceNamespacedStatefulSetCall(String name, String namesp } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedStatefulSetValidateBeforeCall(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedStatefulSetValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedStatefulSet(Async)"); @@ -15535,13 +16295,13 @@ private okhttp3.Call replaceNamespacedStatefulSetValidateBeforeCall(String name, } - private ApiResponse replaceNamespacedStatefulSetWithHttpInfo(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedStatefulSetWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedStatefulSetAsync(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedStatefulSetAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -15550,15 +16310,22 @@ private okhttp3.Call replaceNamespacedStatefulSetAsync(String name, String names } public class APIreplaceNamespacedStatefulSetRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1StatefulSet body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedStatefulSetRequest(String name, String namespace, V1StatefulSet body) { + private APIreplaceNamespacedStatefulSetRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body) { this.name = name; this.namespace = namespace; this.body = body; @@ -15569,7 +16336,7 @@ private APIreplaceNamespacedStatefulSetRequest(String name, String namespace, V1 * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedStatefulSetRequest */ - public APIreplaceNamespacedStatefulSetRequest pretty(String pretty) { + public APIreplaceNamespacedStatefulSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -15579,7 +16346,7 @@ public APIreplaceNamespacedStatefulSetRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedStatefulSetRequest */ - public APIreplaceNamespacedStatefulSetRequest dryRun(String dryRun) { + public APIreplaceNamespacedStatefulSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -15589,7 +16356,7 @@ public APIreplaceNamespacedStatefulSetRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedStatefulSetRequest */ - public APIreplaceNamespacedStatefulSetRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedStatefulSetRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -15599,7 +16366,7 @@ public APIreplaceNamespacedStatefulSetRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedStatefulSetRequest */ - public APIreplaceNamespacedStatefulSetRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedStatefulSetRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -15610,7 +16377,8 @@ public APIreplaceNamespacedStatefulSetRequest fieldValidation(String fieldValida * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -15626,7 +16394,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -15643,7 +16412,8 @@ public V1StatefulSet execute() throws ApiException { * @return ApiResponse<V1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -15660,7 +16430,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -15680,17 +16451,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param body (required) * @return APIreplaceNamespacedStatefulSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedStatefulSetRequest replaceNamespacedStatefulSet(String name, String namespace, V1StatefulSet body) { + public APIreplaceNamespacedStatefulSetRequest replaceNamespacedStatefulSet(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body) { return new APIreplaceNamespacedStatefulSetRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedStatefulSetScaleCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedStatefulSetScaleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -15757,7 +16529,7 @@ private okhttp3.Call replaceNamespacedStatefulSetScaleCall(String name, String n } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedStatefulSetScaleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedStatefulSetScale(Async)"); @@ -15778,13 +16550,13 @@ private okhttp3.Call replaceNamespacedStatefulSetScaleValidateBeforeCall(String } - private ApiResponse replaceNamespacedStatefulSetScaleWithHttpInfo(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedStatefulSetScaleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedStatefulSetScaleAsync(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedStatefulSetScaleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -15793,15 +16565,22 @@ private okhttp3.Call replaceNamespacedStatefulSetScaleAsync(String name, String } public class APIreplaceNamespacedStatefulSetScaleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Scale body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedStatefulSetScaleRequest(String name, String namespace, V1Scale body) { + private APIreplaceNamespacedStatefulSetScaleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body) { this.name = name; this.namespace = namespace; this.body = body; @@ -15812,7 +16591,7 @@ private APIreplaceNamespacedStatefulSetScaleRequest(String name, String namespac * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedStatefulSetScaleRequest */ - public APIreplaceNamespacedStatefulSetScaleRequest pretty(String pretty) { + public APIreplaceNamespacedStatefulSetScaleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -15822,7 +16601,7 @@ public APIreplaceNamespacedStatefulSetScaleRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedStatefulSetScaleRequest */ - public APIreplaceNamespacedStatefulSetScaleRequest dryRun(String dryRun) { + public APIreplaceNamespacedStatefulSetScaleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -15832,7 +16611,7 @@ public APIreplaceNamespacedStatefulSetScaleRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedStatefulSetScaleRequest */ - public APIreplaceNamespacedStatefulSetScaleRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedStatefulSetScaleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -15842,7 +16621,7 @@ public APIreplaceNamespacedStatefulSetScaleRequest fieldManager(String fieldMana * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedStatefulSetScaleRequest */ - public APIreplaceNamespacedStatefulSetScaleRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedStatefulSetScaleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -15853,7 +16632,8 @@ public APIreplaceNamespacedStatefulSetScaleRequest fieldValidation(String fieldV * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -15869,7 +16649,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -15886,7 +16667,8 @@ public V1Scale execute() throws ApiException { * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -15903,7 +16685,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -15923,17 +16706,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap * @param body (required) * @return APIreplaceNamespacedStatefulSetScaleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedStatefulSetScaleRequest replaceNamespacedStatefulSetScale(String name, String namespace, V1Scale body) { + public APIreplaceNamespacedStatefulSetScaleRequest replaceNamespacedStatefulSetScale(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body) { return new APIreplaceNamespacedStatefulSetScaleRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedStatefulSetStatusCall(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedStatefulSetStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -16000,7 +16784,7 @@ private okhttp3.Call replaceNamespacedStatefulSetStatusCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedStatefulSetStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedStatefulSetStatus(Async)"); @@ -16021,13 +16805,13 @@ private okhttp3.Call replaceNamespacedStatefulSetStatusValidateBeforeCall(String } - private ApiResponse replaceNamespacedStatefulSetStatusWithHttpInfo(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedStatefulSetStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedStatefulSetStatusAsync(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedStatefulSetStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -16036,15 +16820,22 @@ private okhttp3.Call replaceNamespacedStatefulSetStatusAsync(String name, String } public class APIreplaceNamespacedStatefulSetStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1StatefulSet body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedStatefulSetStatusRequest(String name, String namespace, V1StatefulSet body) { + private APIreplaceNamespacedStatefulSetStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body) { this.name = name; this.namespace = namespace; this.body = body; @@ -16055,7 +16846,7 @@ private APIreplaceNamespacedStatefulSetStatusRequest(String name, String namespa * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedStatefulSetStatusRequest */ - public APIreplaceNamespacedStatefulSetStatusRequest pretty(String pretty) { + public APIreplaceNamespacedStatefulSetStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -16065,7 +16856,7 @@ public APIreplaceNamespacedStatefulSetStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedStatefulSetStatusRequest */ - public APIreplaceNamespacedStatefulSetStatusRequest dryRun(String dryRun) { + public APIreplaceNamespacedStatefulSetStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -16075,7 +16866,7 @@ public APIreplaceNamespacedStatefulSetStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedStatefulSetStatusRequest */ - public APIreplaceNamespacedStatefulSetStatusRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedStatefulSetStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -16085,7 +16876,7 @@ public APIreplaceNamespacedStatefulSetStatusRequest fieldManager(String fieldMan * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedStatefulSetStatusRequest */ - public APIreplaceNamespacedStatefulSetStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedStatefulSetStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -16096,7 +16887,8 @@ public APIreplaceNamespacedStatefulSetStatusRequest fieldValidation(String field * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -16112,7 +16904,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -16129,7 +16922,8 @@ public V1StatefulSet execute() throws ApiException { * @return ApiResponse<V1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -16146,7 +16940,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -16166,14 +16961,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param body (required) * @return APIreplaceNamespacedStatefulSetStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedStatefulSetStatusRequest replaceNamespacedStatefulSetStatus(String name, String namespace, V1StatefulSet body) { + public APIreplaceNamespacedStatefulSetStatusRequest replaceNamespacedStatefulSetStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body) { return new APIreplaceNamespacedStatefulSetStatusRequest(name, namespace, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationApi.java index 1aeadc1a65..9c967600e6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationApi.java @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1Api.java index 15d31b30f3..5e6b61e94d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1Api.java @@ -73,7 +73,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createSelfSubjectReviewCall(V1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createSelfSubjectReviewCall(@jakarta.annotation.Nonnull V1SelfSubjectReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -138,7 +138,7 @@ private okhttp3.Call createSelfSubjectReviewCall(V1SelfSubjectReview body, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call createSelfSubjectReviewValidateBeforeCall(V1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createSelfSubjectReviewValidateBeforeCall(@jakarta.annotation.Nonnull V1SelfSubjectReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createSelfSubjectReview(Async)"); @@ -149,13 +149,13 @@ private okhttp3.Call createSelfSubjectReviewValidateBeforeCall(V1SelfSubjectRevi } - private ApiResponse createSelfSubjectReviewWithHttpInfo(V1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { + private ApiResponse createSelfSubjectReviewWithHttpInfo(@jakarta.annotation.Nonnull V1SelfSubjectReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = createSelfSubjectReviewValidateBeforeCall(body, dryRun, fieldManager, fieldValidation, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createSelfSubjectReviewAsync(V1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createSelfSubjectReviewAsync(@jakarta.annotation.Nonnull V1SelfSubjectReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createSelfSubjectReviewValidateBeforeCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -164,13 +164,18 @@ private okhttp3.Call createSelfSubjectReviewAsync(V1SelfSubjectReview body, Stri } public class APIcreateSelfSubjectReviewRequest { + @jakarta.annotation.Nonnull private final V1SelfSubjectReview body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private String pretty; - private APIcreateSelfSubjectReviewRequest(V1SelfSubjectReview body) { + private APIcreateSelfSubjectReviewRequest(@jakarta.annotation.Nonnull V1SelfSubjectReview body) { this.body = body; } @@ -179,7 +184,7 @@ private APIcreateSelfSubjectReviewRequest(V1SelfSubjectReview body) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateSelfSubjectReviewRequest */ - public APIcreateSelfSubjectReviewRequest dryRun(String dryRun) { + public APIcreateSelfSubjectReviewRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -189,7 +194,7 @@ public APIcreateSelfSubjectReviewRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateSelfSubjectReviewRequest */ - public APIcreateSelfSubjectReviewRequest fieldManager(String fieldManager) { + public APIcreateSelfSubjectReviewRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -199,7 +204,7 @@ public APIcreateSelfSubjectReviewRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateSelfSubjectReviewRequest */ - public APIcreateSelfSubjectReviewRequest fieldValidation(String fieldValidation) { + public APIcreateSelfSubjectReviewRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -209,7 +214,7 @@ public APIcreateSelfSubjectReviewRequest fieldValidation(String fieldValidation) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateSelfSubjectReviewRequest */ - public APIcreateSelfSubjectReviewRequest pretty(String pretty) { + public APIcreateSelfSubjectReviewRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -220,7 +225,8 @@ public APIcreateSelfSubjectReviewRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -237,7 +243,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1SelfSubjectReview * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -255,7 +262,8 @@ public V1SelfSubjectReview execute() throws ApiException { * @return ApiResponse<V1SelfSubjectReview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -273,7 +281,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -292,7 +301,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac * @param body (required) * @return APIcreateSelfSubjectReviewRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -300,10 +310,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateSelfSubjectReviewRequest createSelfSubjectReview(V1SelfSubjectReview body) { + public APIcreateSelfSubjectReviewRequest createSelfSubjectReview(@jakarta.annotation.Nonnull V1SelfSubjectReview body) { return new APIcreateSelfSubjectReviewRequest(body); } - private okhttp3.Call createTokenReviewCall(V1TokenReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createTokenReviewCall(@jakarta.annotation.Nonnull V1TokenReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -368,7 +378,7 @@ private okhttp3.Call createTokenReviewCall(V1TokenReview body, String dryRun, St } @SuppressWarnings("rawtypes") - private okhttp3.Call createTokenReviewValidateBeforeCall(V1TokenReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createTokenReviewValidateBeforeCall(@jakarta.annotation.Nonnull V1TokenReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createTokenReview(Async)"); @@ -379,13 +389,13 @@ private okhttp3.Call createTokenReviewValidateBeforeCall(V1TokenReview body, Str } - private ApiResponse createTokenReviewWithHttpInfo(V1TokenReview body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { + private ApiResponse createTokenReviewWithHttpInfo(@jakarta.annotation.Nonnull V1TokenReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = createTokenReviewValidateBeforeCall(body, dryRun, fieldManager, fieldValidation, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createTokenReviewAsync(V1TokenReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createTokenReviewAsync(@jakarta.annotation.Nonnull V1TokenReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createTokenReviewValidateBeforeCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -394,13 +404,18 @@ private okhttp3.Call createTokenReviewAsync(V1TokenReview body, String dryRun, S } public class APIcreateTokenReviewRequest { + @jakarta.annotation.Nonnull private final V1TokenReview body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private String pretty; - private APIcreateTokenReviewRequest(V1TokenReview body) { + private APIcreateTokenReviewRequest(@jakarta.annotation.Nonnull V1TokenReview body) { this.body = body; } @@ -409,7 +424,7 @@ private APIcreateTokenReviewRequest(V1TokenReview body) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateTokenReviewRequest */ - public APIcreateTokenReviewRequest dryRun(String dryRun) { + public APIcreateTokenReviewRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -419,7 +434,7 @@ public APIcreateTokenReviewRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateTokenReviewRequest */ - public APIcreateTokenReviewRequest fieldManager(String fieldManager) { + public APIcreateTokenReviewRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -429,7 +444,7 @@ public APIcreateTokenReviewRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateTokenReviewRequest */ - public APIcreateTokenReviewRequest fieldValidation(String fieldValidation) { + public APIcreateTokenReviewRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -439,7 +454,7 @@ public APIcreateTokenReviewRequest fieldValidation(String fieldValidation) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateTokenReviewRequest */ - public APIcreateTokenReviewRequest pretty(String pretty) { + public APIcreateTokenReviewRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -450,7 +465,8 @@ public APIcreateTokenReviewRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -467,7 +483,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1TokenReview * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -485,7 +502,8 @@ public V1TokenReview execute() throws ApiException { * @return ApiResponse<V1TokenReview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -503,7 +521,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -522,7 +541,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param body (required) * @return APIcreateTokenReviewRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -530,7 +550,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateTokenReviewRequest createTokenReview(V1TokenReview body) { + public APIcreateTokenReviewRequest createTokenReview(@jakarta.annotation.Nonnull V1TokenReview body) { return new APIcreateTokenReviewRequest(body); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -612,7 +632,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -627,7 +648,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -643,7 +665,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -659,7 +682,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -675,7 +699,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1beta1Api.java deleted file mode 100644 index ab96cfb1a6..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1beta1Api.java +++ /dev/null @@ -1,456 +0,0 @@ -/* -Copyright 2025 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.apis; - -import io.kubernetes.client.openapi.ApiCallback; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.ApiResponse; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.Pair; -import io.kubernetes.client.openapi.ProgressRequestBody; -import io.kubernetes.client.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import io.kubernetes.client.openapi.models.V1APIResourceList; -import io.kubernetes.client.openapi.models.V1beta1SelfSubjectReview; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class AuthenticationV1beta1Api { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public AuthenticationV1beta1Api() { - this(Configuration.getDefaultApiClient()); - } - - public AuthenticationV1beta1Api(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - private okhttp3.Call createSelfSubjectReviewCall(V1beta1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/authentication.k8s.io/v1beta1/selfsubjectreviews"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createSelfSubjectReviewValidateBeforeCall(V1beta1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createSelfSubjectReview(Async)"); - } - - return createSelfSubjectReviewCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); - - } - - - private ApiResponse createSelfSubjectReviewWithHttpInfo(V1beta1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { - okhttp3.Call localVarCall = createSelfSubjectReviewValidateBeforeCall(body, dryRun, fieldManager, fieldValidation, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call createSelfSubjectReviewAsync(V1beta1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createSelfSubjectReviewValidateBeforeCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIcreateSelfSubjectReviewRequest { - private final V1beta1SelfSubjectReview body; - private String dryRun; - private String fieldManager; - private String fieldValidation; - private String pretty; - - private APIcreateSelfSubjectReviewRequest(V1beta1SelfSubjectReview body) { - this.body = body; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIcreateSelfSubjectReviewRequest - */ - public APIcreateSelfSubjectReviewRequest dryRun(String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIcreateSelfSubjectReviewRequest - */ - public APIcreateSelfSubjectReviewRequest fieldManager(String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIcreateSelfSubjectReviewRequest - */ - public APIcreateSelfSubjectReviewRequest fieldValidation(String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIcreateSelfSubjectReviewRequest - */ - public APIcreateSelfSubjectReviewRequest pretty(String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Build call for createSelfSubjectReview - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return createSelfSubjectReviewCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); - } - - /** - * Execute createSelfSubjectReview request - * @return V1beta1SelfSubjectReview - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public V1beta1SelfSubjectReview execute() throws ApiException { - ApiResponse localVarResp = createSelfSubjectReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty); - return localVarResp.getData(); - } - - /** - * Execute createSelfSubjectReview request with HTTP info returned - * @return ApiResponse<V1beta1SelfSubjectReview> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return createSelfSubjectReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty); - } - - /** - * Execute createSelfSubjectReview request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return createSelfSubjectReviewAsync(body, dryRun, fieldManager, fieldValidation, pretty, _callback); - } - } - - /** - * - * create a SelfSubjectReview - * @param body (required) - * @return APIcreateSelfSubjectReviewRequest - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public APIcreateSelfSubjectReviewRequest createSelfSubjectReview(V1beta1SelfSubjectReview body) { - return new APIcreateSelfSubjectReviewRequest(body); - } - private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/authentication.k8s.io/v1beta1/"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return getAPIResourcesCall(_callback); - - } - - - private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIgetAPIResourcesRequest { - - private APIgetAPIResourcesRequest() { - } - - /** - * Build call for getAPIResources - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getAPIResourcesCall(_callback); - } - - /** - * Execute getAPIResources request - * @return V1APIResourceList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1APIResourceList execute() throws ApiException { - ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * Execute getAPIResources request with HTTP info returned - * @return ApiResponse<V1APIResourceList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getAPIResourcesWithHttpInfo(); - } - - /** - * Execute getAPIResources request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getAPIResourcesAsync(_callback); - } - } - - /** - * - * get available resources - * @return APIgetAPIResourcesRequest - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIgetAPIResourcesRequest getAPIResources() { - return new APIgetAPIResourcesRequest(); - } -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationApi.java index 3469f82c3f..825184e955 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationApi.java @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationV1Api.java index c8ce3ce3a5..1d0fe2ff2a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationV1Api.java @@ -75,7 +75,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createNamespacedLocalSubjectAccessReviewCall(String namespace, V1LocalSubjectAccessReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedLocalSubjectAccessReviewCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1LocalSubjectAccessReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -141,7 +141,7 @@ private okhttp3.Call createNamespacedLocalSubjectAccessReviewCall(String namespa } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedLocalSubjectAccessReviewValidateBeforeCall(String namespace, V1LocalSubjectAccessReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedLocalSubjectAccessReviewValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1LocalSubjectAccessReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedLocalSubjectAccessReview(Async)"); @@ -157,13 +157,13 @@ private okhttp3.Call createNamespacedLocalSubjectAccessReviewValidateBeforeCall( } - private ApiResponse createNamespacedLocalSubjectAccessReviewWithHttpInfo(String namespace, V1LocalSubjectAccessReview body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { + private ApiResponse createNamespacedLocalSubjectAccessReviewWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1LocalSubjectAccessReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = createNamespacedLocalSubjectAccessReviewValidateBeforeCall(namespace, body, dryRun, fieldManager, fieldValidation, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedLocalSubjectAccessReviewAsync(String namespace, V1LocalSubjectAccessReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedLocalSubjectAccessReviewAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1LocalSubjectAccessReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedLocalSubjectAccessReviewValidateBeforeCall(namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -172,14 +172,20 @@ private okhttp3.Call createNamespacedLocalSubjectAccessReviewAsync(String namesp } public class APIcreateNamespacedLocalSubjectAccessReviewRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1LocalSubjectAccessReview body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private String pretty; - private APIcreateNamespacedLocalSubjectAccessReviewRequest(String namespace, V1LocalSubjectAccessReview body) { + private APIcreateNamespacedLocalSubjectAccessReviewRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1LocalSubjectAccessReview body) { this.namespace = namespace; this.body = body; } @@ -189,7 +195,7 @@ private APIcreateNamespacedLocalSubjectAccessReviewRequest(String namespace, V1L * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedLocalSubjectAccessReviewRequest */ - public APIcreateNamespacedLocalSubjectAccessReviewRequest dryRun(String dryRun) { + public APIcreateNamespacedLocalSubjectAccessReviewRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -199,7 +205,7 @@ public APIcreateNamespacedLocalSubjectAccessReviewRequest dryRun(String dryRun) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedLocalSubjectAccessReviewRequest */ - public APIcreateNamespacedLocalSubjectAccessReviewRequest fieldManager(String fieldManager) { + public APIcreateNamespacedLocalSubjectAccessReviewRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -209,7 +215,7 @@ public APIcreateNamespacedLocalSubjectAccessReviewRequest fieldManager(String fi * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedLocalSubjectAccessReviewRequest */ - public APIcreateNamespacedLocalSubjectAccessReviewRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedLocalSubjectAccessReviewRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -219,7 +225,7 @@ public APIcreateNamespacedLocalSubjectAccessReviewRequest fieldValidation(String * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedLocalSubjectAccessReviewRequest */ - public APIcreateNamespacedLocalSubjectAccessReviewRequest pretty(String pretty) { + public APIcreateNamespacedLocalSubjectAccessReviewRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -230,7 +236,8 @@ public APIcreateNamespacedLocalSubjectAccessReviewRequest pretty(String pretty) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -247,7 +254,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1LocalSubjectAccessReview * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -265,7 +273,8 @@ public V1LocalSubjectAccessReview execute() throws ApiException { * @return ApiResponse<V1LocalSubjectAccessReview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -283,7 +292,8 @@ public ApiResponse executeWithHttpInfo() throws ApiE * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -303,7 +313,8 @@ public okhttp3.Call executeAsync(final ApiCallback _ * @param body (required) * @return APIcreateNamespacedLocalSubjectAccessReviewRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -311,10 +322,10 @@ public okhttp3.Call executeAsync(final ApiCallback _
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedLocalSubjectAccessReviewRequest createNamespacedLocalSubjectAccessReview(String namespace, V1LocalSubjectAccessReview body) { + public APIcreateNamespacedLocalSubjectAccessReviewRequest createNamespacedLocalSubjectAccessReview(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1LocalSubjectAccessReview body) { return new APIcreateNamespacedLocalSubjectAccessReviewRequest(namespace, body); } - private okhttp3.Call createSelfSubjectAccessReviewCall(V1SelfSubjectAccessReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createSelfSubjectAccessReviewCall(@jakarta.annotation.Nonnull V1SelfSubjectAccessReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -379,7 +390,7 @@ private okhttp3.Call createSelfSubjectAccessReviewCall(V1SelfSubjectAccessReview } @SuppressWarnings("rawtypes") - private okhttp3.Call createSelfSubjectAccessReviewValidateBeforeCall(V1SelfSubjectAccessReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createSelfSubjectAccessReviewValidateBeforeCall(@jakarta.annotation.Nonnull V1SelfSubjectAccessReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createSelfSubjectAccessReview(Async)"); @@ -390,13 +401,13 @@ private okhttp3.Call createSelfSubjectAccessReviewValidateBeforeCall(V1SelfSubje } - private ApiResponse createSelfSubjectAccessReviewWithHttpInfo(V1SelfSubjectAccessReview body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { + private ApiResponse createSelfSubjectAccessReviewWithHttpInfo(@jakarta.annotation.Nonnull V1SelfSubjectAccessReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = createSelfSubjectAccessReviewValidateBeforeCall(body, dryRun, fieldManager, fieldValidation, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createSelfSubjectAccessReviewAsync(V1SelfSubjectAccessReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createSelfSubjectAccessReviewAsync(@jakarta.annotation.Nonnull V1SelfSubjectAccessReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createSelfSubjectAccessReviewValidateBeforeCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -405,13 +416,18 @@ private okhttp3.Call createSelfSubjectAccessReviewAsync(V1SelfSubjectAccessRevie } public class APIcreateSelfSubjectAccessReviewRequest { + @jakarta.annotation.Nonnull private final V1SelfSubjectAccessReview body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private String pretty; - private APIcreateSelfSubjectAccessReviewRequest(V1SelfSubjectAccessReview body) { + private APIcreateSelfSubjectAccessReviewRequest(@jakarta.annotation.Nonnull V1SelfSubjectAccessReview body) { this.body = body; } @@ -420,7 +436,7 @@ private APIcreateSelfSubjectAccessReviewRequest(V1SelfSubjectAccessReview body) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateSelfSubjectAccessReviewRequest */ - public APIcreateSelfSubjectAccessReviewRequest dryRun(String dryRun) { + public APIcreateSelfSubjectAccessReviewRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -430,7 +446,7 @@ public APIcreateSelfSubjectAccessReviewRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateSelfSubjectAccessReviewRequest */ - public APIcreateSelfSubjectAccessReviewRequest fieldManager(String fieldManager) { + public APIcreateSelfSubjectAccessReviewRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -440,7 +456,7 @@ public APIcreateSelfSubjectAccessReviewRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateSelfSubjectAccessReviewRequest */ - public APIcreateSelfSubjectAccessReviewRequest fieldValidation(String fieldValidation) { + public APIcreateSelfSubjectAccessReviewRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -450,7 +466,7 @@ public APIcreateSelfSubjectAccessReviewRequest fieldValidation(String fieldValid * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateSelfSubjectAccessReviewRequest */ - public APIcreateSelfSubjectAccessReviewRequest pretty(String pretty) { + public APIcreateSelfSubjectAccessReviewRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -461,7 +477,8 @@ public APIcreateSelfSubjectAccessReviewRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -478,7 +495,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1SelfSubjectAccessReview * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -496,7 +514,8 @@ public V1SelfSubjectAccessReview execute() throws ApiException { * @return ApiResponse<V1SelfSubjectAccessReview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -514,7 +533,8 @@ public ApiResponse executeWithHttpInfo() throws ApiEx * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -533,7 +553,8 @@ public okhttp3.Call executeAsync(final ApiCallback _c * @param body (required) * @return APIcreateSelfSubjectAccessReviewRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -541,10 +562,10 @@ public okhttp3.Call executeAsync(final ApiCallback _c
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateSelfSubjectAccessReviewRequest createSelfSubjectAccessReview(V1SelfSubjectAccessReview body) { + public APIcreateSelfSubjectAccessReviewRequest createSelfSubjectAccessReview(@jakarta.annotation.Nonnull V1SelfSubjectAccessReview body) { return new APIcreateSelfSubjectAccessReviewRequest(body); } - private okhttp3.Call createSelfSubjectRulesReviewCall(V1SelfSubjectRulesReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createSelfSubjectRulesReviewCall(@jakarta.annotation.Nonnull V1SelfSubjectRulesReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -609,7 +630,7 @@ private okhttp3.Call createSelfSubjectRulesReviewCall(V1SelfSubjectRulesReview b } @SuppressWarnings("rawtypes") - private okhttp3.Call createSelfSubjectRulesReviewValidateBeforeCall(V1SelfSubjectRulesReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createSelfSubjectRulesReviewValidateBeforeCall(@jakarta.annotation.Nonnull V1SelfSubjectRulesReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createSelfSubjectRulesReview(Async)"); @@ -620,13 +641,13 @@ private okhttp3.Call createSelfSubjectRulesReviewValidateBeforeCall(V1SelfSubjec } - private ApiResponse createSelfSubjectRulesReviewWithHttpInfo(V1SelfSubjectRulesReview body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { + private ApiResponse createSelfSubjectRulesReviewWithHttpInfo(@jakarta.annotation.Nonnull V1SelfSubjectRulesReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = createSelfSubjectRulesReviewValidateBeforeCall(body, dryRun, fieldManager, fieldValidation, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createSelfSubjectRulesReviewAsync(V1SelfSubjectRulesReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createSelfSubjectRulesReviewAsync(@jakarta.annotation.Nonnull V1SelfSubjectRulesReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createSelfSubjectRulesReviewValidateBeforeCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -635,13 +656,18 @@ private okhttp3.Call createSelfSubjectRulesReviewAsync(V1SelfSubjectRulesReview } public class APIcreateSelfSubjectRulesReviewRequest { + @jakarta.annotation.Nonnull private final V1SelfSubjectRulesReview body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private String pretty; - private APIcreateSelfSubjectRulesReviewRequest(V1SelfSubjectRulesReview body) { + private APIcreateSelfSubjectRulesReviewRequest(@jakarta.annotation.Nonnull V1SelfSubjectRulesReview body) { this.body = body; } @@ -650,7 +676,7 @@ private APIcreateSelfSubjectRulesReviewRequest(V1SelfSubjectRulesReview body) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateSelfSubjectRulesReviewRequest */ - public APIcreateSelfSubjectRulesReviewRequest dryRun(String dryRun) { + public APIcreateSelfSubjectRulesReviewRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -660,7 +686,7 @@ public APIcreateSelfSubjectRulesReviewRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateSelfSubjectRulesReviewRequest */ - public APIcreateSelfSubjectRulesReviewRequest fieldManager(String fieldManager) { + public APIcreateSelfSubjectRulesReviewRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -670,7 +696,7 @@ public APIcreateSelfSubjectRulesReviewRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateSelfSubjectRulesReviewRequest */ - public APIcreateSelfSubjectRulesReviewRequest fieldValidation(String fieldValidation) { + public APIcreateSelfSubjectRulesReviewRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -680,7 +706,7 @@ public APIcreateSelfSubjectRulesReviewRequest fieldValidation(String fieldValida * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateSelfSubjectRulesReviewRequest */ - public APIcreateSelfSubjectRulesReviewRequest pretty(String pretty) { + public APIcreateSelfSubjectRulesReviewRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -691,7 +717,8 @@ public APIcreateSelfSubjectRulesReviewRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -708,7 +735,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1SelfSubjectRulesReview * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -726,7 +754,8 @@ public V1SelfSubjectRulesReview execute() throws ApiException { * @return ApiResponse<V1SelfSubjectRulesReview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -744,7 +773,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExc * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -763,7 +793,8 @@ public okhttp3.Call executeAsync(final ApiCallback _ca * @param body (required) * @return APIcreateSelfSubjectRulesReviewRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -771,10 +802,10 @@ public okhttp3.Call executeAsync(final ApiCallback _ca
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateSelfSubjectRulesReviewRequest createSelfSubjectRulesReview(V1SelfSubjectRulesReview body) { + public APIcreateSelfSubjectRulesReviewRequest createSelfSubjectRulesReview(@jakarta.annotation.Nonnull V1SelfSubjectRulesReview body) { return new APIcreateSelfSubjectRulesReviewRequest(body); } - private okhttp3.Call createSubjectAccessReviewCall(V1SubjectAccessReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createSubjectAccessReviewCall(@jakarta.annotation.Nonnull V1SubjectAccessReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -839,7 +870,7 @@ private okhttp3.Call createSubjectAccessReviewCall(V1SubjectAccessReview body, S } @SuppressWarnings("rawtypes") - private okhttp3.Call createSubjectAccessReviewValidateBeforeCall(V1SubjectAccessReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createSubjectAccessReviewValidateBeforeCall(@jakarta.annotation.Nonnull V1SubjectAccessReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createSubjectAccessReview(Async)"); @@ -850,13 +881,13 @@ private okhttp3.Call createSubjectAccessReviewValidateBeforeCall(V1SubjectAccess } - private ApiResponse createSubjectAccessReviewWithHttpInfo(V1SubjectAccessReview body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { + private ApiResponse createSubjectAccessReviewWithHttpInfo(@jakarta.annotation.Nonnull V1SubjectAccessReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = createSubjectAccessReviewValidateBeforeCall(body, dryRun, fieldManager, fieldValidation, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createSubjectAccessReviewAsync(V1SubjectAccessReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createSubjectAccessReviewAsync(@jakarta.annotation.Nonnull V1SubjectAccessReview body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createSubjectAccessReviewValidateBeforeCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -865,13 +896,18 @@ private okhttp3.Call createSubjectAccessReviewAsync(V1SubjectAccessReview body, } public class APIcreateSubjectAccessReviewRequest { + @jakarta.annotation.Nonnull private final V1SubjectAccessReview body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private String pretty; - private APIcreateSubjectAccessReviewRequest(V1SubjectAccessReview body) { + private APIcreateSubjectAccessReviewRequest(@jakarta.annotation.Nonnull V1SubjectAccessReview body) { this.body = body; } @@ -880,7 +916,7 @@ private APIcreateSubjectAccessReviewRequest(V1SubjectAccessReview body) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateSubjectAccessReviewRequest */ - public APIcreateSubjectAccessReviewRequest dryRun(String dryRun) { + public APIcreateSubjectAccessReviewRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -890,7 +926,7 @@ public APIcreateSubjectAccessReviewRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateSubjectAccessReviewRequest */ - public APIcreateSubjectAccessReviewRequest fieldManager(String fieldManager) { + public APIcreateSubjectAccessReviewRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -900,7 +936,7 @@ public APIcreateSubjectAccessReviewRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateSubjectAccessReviewRequest */ - public APIcreateSubjectAccessReviewRequest fieldValidation(String fieldValidation) { + public APIcreateSubjectAccessReviewRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -910,7 +946,7 @@ public APIcreateSubjectAccessReviewRequest fieldValidation(String fieldValidatio * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateSubjectAccessReviewRequest */ - public APIcreateSubjectAccessReviewRequest pretty(String pretty) { + public APIcreateSubjectAccessReviewRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -921,7 +957,8 @@ public APIcreateSubjectAccessReviewRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -938,7 +975,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1SubjectAccessReview * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -956,7 +994,8 @@ public V1SubjectAccessReview execute() throws ApiException { * @return ApiResponse<V1SubjectAccessReview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -974,7 +1013,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -993,7 +1033,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callb * @param body (required) * @return APIcreateSubjectAccessReviewRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1001,7 +1042,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateSubjectAccessReviewRequest createSubjectAccessReview(V1SubjectAccessReview body) { + public APIcreateSubjectAccessReviewRequest createSubjectAccessReview(@jakarta.annotation.Nonnull V1SubjectAccessReview body) { return new APIcreateSubjectAccessReviewRequest(body); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -1083,7 +1124,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1098,7 +1140,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1114,7 +1157,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1130,7 +1174,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1146,7 +1191,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingApi.java index d2d6089798..305a1b013b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingApi.java @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV1Api.java index 8956e758ae..4d2150215e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV1Api.java @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createNamespacedHorizontalPodAutoscalerCall(String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedHorizontalPodAutoscalerCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -142,7 +142,7 @@ private okhttp3.Call createNamespacedHorizontalPodAutoscalerCall(String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedHorizontalPodAutoscalerValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedHorizontalPodAutoscaler(Async)"); @@ -158,13 +158,13 @@ private okhttp3.Call createNamespacedHorizontalPodAutoscalerValidateBeforeCall(S } - private ApiResponse createNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedHorizontalPodAutoscalerWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedHorizontalPodAutoscalerAsync(String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedHorizontalPodAutoscalerAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -173,14 +173,20 @@ private okhttp3.Call createNamespacedHorizontalPodAutoscalerAsync(String namespa } public class APIcreateNamespacedHorizontalPodAutoscalerRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1HorizontalPodAutoscaler body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedHorizontalPodAutoscalerRequest(String namespace, V1HorizontalPodAutoscaler body) { + private APIcreateNamespacedHorizontalPodAutoscalerRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1HorizontalPodAutoscaler body) { this.namespace = namespace; this.body = body; } @@ -190,7 +196,7 @@ private APIcreateNamespacedHorizontalPodAutoscalerRequest(String namespace, V1Ho * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedHorizontalPodAutoscalerRequest */ - public APIcreateNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { + public APIcreateNamespacedHorizontalPodAutoscalerRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -200,7 +206,7 @@ public APIcreateNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedHorizontalPodAutoscalerRequest */ - public APIcreateNamespacedHorizontalPodAutoscalerRequest dryRun(String dryRun) { + public APIcreateNamespacedHorizontalPodAutoscalerRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -210,7 +216,7 @@ public APIcreateNamespacedHorizontalPodAutoscalerRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedHorizontalPodAutoscalerRequest */ - public APIcreateNamespacedHorizontalPodAutoscalerRequest fieldManager(String fieldManager) { + public APIcreateNamespacedHorizontalPodAutoscalerRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -220,7 +226,7 @@ public APIcreateNamespacedHorizontalPodAutoscalerRequest fieldManager(String fie * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedHorizontalPodAutoscalerRequest */ - public APIcreateNamespacedHorizontalPodAutoscalerRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedHorizontalPodAutoscalerRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -231,7 +237,8 @@ public APIcreateNamespacedHorizontalPodAutoscalerRequest fieldValidation(String * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -248,7 +255,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -266,7 +274,8 @@ public V1HorizontalPodAutoscaler execute() throws ApiException { * @return ApiResponse<V1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -284,7 +293,8 @@ public ApiResponse executeWithHttpInfo() throws ApiEx * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -304,7 +314,8 @@ public okhttp3.Call executeAsync(final ApiCallback _c * @param body (required) * @return APIcreateNamespacedHorizontalPodAutoscalerRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -312,10 +323,10 @@ public okhttp3.Call executeAsync(final ApiCallback _c
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedHorizontalPodAutoscalerRequest createNamespacedHorizontalPodAutoscaler(String namespace, V1HorizontalPodAutoscaler body) { + public APIcreateNamespacedHorizontalPodAutoscalerRequest createNamespacedHorizontalPodAutoscaler(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1HorizontalPodAutoscaler body) { return new APIcreateNamespacedHorizontalPodAutoscalerRequest(namespace, body); } - private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -421,7 +432,7 @@ private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedHorizontalPodAutoscaler(Async)"); @@ -432,13 +443,13 @@ private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBe } - private ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -447,24 +458,40 @@ private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(Stri } public class APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest(String namespace) { + private APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -473,7 +500,7 @@ private APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest(String names * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -483,7 +510,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest pretty(String * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -493,7 +520,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest _continue(Str * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -503,7 +530,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest dryRun(String * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -513,7 +540,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest fieldSelector * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -523,7 +550,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest gracePeriodSe * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -533,7 +560,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest ignoreStoreRe * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -543,7 +570,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest labelSelector * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -553,7 +580,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest limit(Integer * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -563,7 +590,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest orphanDepende * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -573,7 +600,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest propagationPo * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -583,7 +610,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest resourceVersi * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -593,7 +620,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest resourceVersi * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -603,7 +630,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest sendInitialEv * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -613,7 +640,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest timeoutSecond * @param body (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -624,7 +651,8 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest body(V1Delete * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -639,7 +667,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -655,7 +684,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -671,7 +701,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -688,16 +719,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest deleteCollectionNamespacedHorizontalPodAutoscaler(String namespace) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest deleteCollectionNamespacedHorizontalPodAutoscaler(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest(namespace); } - private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -772,7 +804,7 @@ private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, St } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedHorizontalPodAutoscaler(Async)"); @@ -788,13 +820,13 @@ private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(S } - private ApiResponse deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -803,17 +835,26 @@ private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerAsync(String name, S } public class APIdeleteNamespacedHorizontalPodAutoscalerRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedHorizontalPodAutoscalerRequest(String name, String namespace) { + private APIdeleteNamespacedHorizontalPodAutoscalerRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -823,7 +864,7 @@ private APIdeleteNamespacedHorizontalPodAutoscalerRequest(String name, String na * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { + public APIdeleteNamespacedHorizontalPodAutoscalerRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -833,7 +874,7 @@ public APIdeleteNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteNamespacedHorizontalPodAutoscalerRequest dryRun(String dryRun) { + public APIdeleteNamespacedHorizontalPodAutoscalerRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -843,7 +884,7 @@ public APIdeleteNamespacedHorizontalPodAutoscalerRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteNamespacedHorizontalPodAutoscalerRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedHorizontalPodAutoscalerRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -853,7 +894,7 @@ public APIdeleteNamespacedHorizontalPodAutoscalerRequest gracePeriodSeconds(Inte * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteNamespacedHorizontalPodAutoscalerRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedHorizontalPodAutoscalerRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -863,7 +904,7 @@ public APIdeleteNamespacedHorizontalPodAutoscalerRequest ignoreStoreReadErrorWit * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteNamespacedHorizontalPodAutoscalerRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedHorizontalPodAutoscalerRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -873,7 +914,7 @@ public APIdeleteNamespacedHorizontalPodAutoscalerRequest orphanDependents(Boolea * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteNamespacedHorizontalPodAutoscalerRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedHorizontalPodAutoscalerRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -883,7 +924,7 @@ public APIdeleteNamespacedHorizontalPodAutoscalerRequest propagationPolicy(Strin * @param body (optional) * @return APIdeleteNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteNamespacedHorizontalPodAutoscalerRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedHorizontalPodAutoscalerRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -894,7 +935,8 @@ public APIdeleteNamespacedHorizontalPodAutoscalerRequest body(V1DeleteOptions bo * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -910,7 +952,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -927,7 +970,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -944,7 +988,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -963,14 +1008,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedHorizontalPodAutoscalerRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedHorizontalPodAutoscalerRequest deleteNamespacedHorizontalPodAutoscaler(String name, String namespace) { + public APIdeleteNamespacedHorizontalPodAutoscalerRequest deleteNamespacedHorizontalPodAutoscaler(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedHorizontalPodAutoscalerRequest(name, namespace); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -1052,7 +1098,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1067,7 +1114,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1083,7 +1131,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1099,7 +1148,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1115,7 +1165,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1124,7 +1175,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1219,19 +1270,19 @@ private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(Boolean all } @SuppressWarnings("rawtypes") - private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listHorizontalPodAutoscalerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1240,16 +1291,27 @@ private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesAsync(Boolean al } public class APIlistHorizontalPodAutoscalerForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistHorizontalPodAutoscalerForAllNamespacesRequest() { @@ -1260,7 +1322,7 @@ private APIlistHorizontalPodAutoscalerForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest */ - public APIlistHorizontalPodAutoscalerForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1270,7 +1332,7 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest allowWatchBookmarks * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest */ - public APIlistHorizontalPodAutoscalerForAllNamespacesRequest _continue(String _continue) { + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1280,7 +1342,7 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest _continue(String _c * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest */ - public APIlistHorizontalPodAutoscalerForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1290,7 +1352,7 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest fieldSelector(Strin * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest */ - public APIlistHorizontalPodAutoscalerForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1300,7 +1362,7 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest labelSelector(Strin * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest */ - public APIlistHorizontalPodAutoscalerForAllNamespacesRequest limit(Integer limit) { + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1310,7 +1372,7 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest limit(Integer limit * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest */ - public APIlistHorizontalPodAutoscalerForAllNamespacesRequest pretty(String pretty) { + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1320,7 +1382,7 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest pretty(String prett * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest */ - public APIlistHorizontalPodAutoscalerForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1330,7 +1392,7 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest resourceVersion(Str * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest */ - public APIlistHorizontalPodAutoscalerForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1340,7 +1402,7 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest resourceVersionMatc * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest */ - public APIlistHorizontalPodAutoscalerForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1350,7 +1412,7 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest sendInitialEvents(B * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest */ - public APIlistHorizontalPodAutoscalerForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1360,7 +1422,7 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest timeoutSeconds(Inte * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest */ - public APIlistHorizontalPodAutoscalerForAllNamespacesRequest watch(Boolean watch) { + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1371,7 +1433,8 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest watch(Boolean watch * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1386,7 +1449,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1HorizontalPodAutoscalerList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1402,7 +1466,8 @@ public V1HorizontalPodAutoscalerList execute() throws ApiException { * @return ApiResponse<V1HorizontalPodAutoscalerList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1418,7 +1483,8 @@ public ApiResponse executeWithHttpInfo() throws A * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1434,7 +1500,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -1443,7 +1510,7 @@ public okhttp3.Call executeAsync(final ApiCallback listNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedHorizontalPodAutoscalerWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedHorizontalPodAutoscalerAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedHorizontalPodAutoscalerAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1565,20 +1632,32 @@ private okhttp3.Call listNamespacedHorizontalPodAutoscalerAsync(String namespace } public class APIlistNamespacedHorizontalPodAutoscalerRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedHorizontalPodAutoscalerRequest(String namespace) { + private APIlistNamespacedHorizontalPodAutoscalerRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -1587,7 +1666,7 @@ private APIlistNamespacedHorizontalPodAutoscalerRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedHorizontalPodAutoscalerRequest */ - public APIlistNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { + public APIlistNamespacedHorizontalPodAutoscalerRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1597,7 +1676,7 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedHorizontalPodAutoscalerRequest */ - public APIlistNamespacedHorizontalPodAutoscalerRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedHorizontalPodAutoscalerRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1607,7 +1686,7 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest allowWatchBookmarks(Boole * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedHorizontalPodAutoscalerRequest */ - public APIlistNamespacedHorizontalPodAutoscalerRequest _continue(String _continue) { + public APIlistNamespacedHorizontalPodAutoscalerRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1617,7 +1696,7 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest _continue(String _continu * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedHorizontalPodAutoscalerRequest */ - public APIlistNamespacedHorizontalPodAutoscalerRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedHorizontalPodAutoscalerRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1627,7 +1706,7 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest fieldSelector(String fiel * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedHorizontalPodAutoscalerRequest */ - public APIlistNamespacedHorizontalPodAutoscalerRequest labelSelector(String labelSelector) { + public APIlistNamespacedHorizontalPodAutoscalerRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1637,7 +1716,7 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest labelSelector(String labe * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedHorizontalPodAutoscalerRequest */ - public APIlistNamespacedHorizontalPodAutoscalerRequest limit(Integer limit) { + public APIlistNamespacedHorizontalPodAutoscalerRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1647,7 +1726,7 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedHorizontalPodAutoscalerRequest */ - public APIlistNamespacedHorizontalPodAutoscalerRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedHorizontalPodAutoscalerRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1657,7 +1736,7 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest resourceVersion(String re * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedHorizontalPodAutoscalerRequest */ - public APIlistNamespacedHorizontalPodAutoscalerRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedHorizontalPodAutoscalerRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1667,7 +1746,7 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest resourceVersionMatch(Stri * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedHorizontalPodAutoscalerRequest */ - public APIlistNamespacedHorizontalPodAutoscalerRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedHorizontalPodAutoscalerRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1677,7 +1756,7 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest sendInitialEvents(Boolean * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedHorizontalPodAutoscalerRequest */ - public APIlistNamespacedHorizontalPodAutoscalerRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedHorizontalPodAutoscalerRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1687,7 +1766,7 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest timeoutSeconds(Integer ti * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedHorizontalPodAutoscalerRequest */ - public APIlistNamespacedHorizontalPodAutoscalerRequest watch(Boolean watch) { + public APIlistNamespacedHorizontalPodAutoscalerRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1698,7 +1777,8 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1713,7 +1793,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1HorizontalPodAutoscalerList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1729,7 +1810,8 @@ public V1HorizontalPodAutoscalerList execute() throws ApiException { * @return ApiResponse<V1HorizontalPodAutoscalerList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1745,7 +1827,8 @@ public ApiResponse executeWithHttpInfo() throws A * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1762,16 +1845,17 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedHorizontalPodAutoscalerRequest listNamespacedHorizontalPodAutoscaler(String namespace) { + public APIlistNamespacedHorizontalPodAutoscalerRequest listNamespacedHorizontalPodAutoscaler(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedHorizontalPodAutoscalerRequest(namespace); } - private okhttp3.Call patchNamespacedHorizontalPodAutoscalerCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedHorizontalPodAutoscalerCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1842,7 +1926,7 @@ private okhttp3.Call patchNamespacedHorizontalPodAutoscalerCall(String name, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedHorizontalPodAutoscaler(Async)"); @@ -1863,13 +1947,13 @@ private okhttp3.Call patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(St } - private ApiResponse patchNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedHorizontalPodAutoscalerWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedHorizontalPodAutoscalerAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1878,16 +1962,24 @@ private okhttp3.Call patchNamespacedHorizontalPodAutoscalerAsync(String name, St } public class APIpatchNamespacedHorizontalPodAutoscalerRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedHorizontalPodAutoscalerRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedHorizontalPodAutoscalerRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -1898,7 +1990,7 @@ private APIpatchNamespacedHorizontalPodAutoscalerRequest(String name, String nam * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedHorizontalPodAutoscalerRequest */ - public APIpatchNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { + public APIpatchNamespacedHorizontalPodAutoscalerRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1908,7 +2000,7 @@ public APIpatchNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedHorizontalPodAutoscalerRequest */ - public APIpatchNamespacedHorizontalPodAutoscalerRequest dryRun(String dryRun) { + public APIpatchNamespacedHorizontalPodAutoscalerRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1918,7 +2010,7 @@ public APIpatchNamespacedHorizontalPodAutoscalerRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedHorizontalPodAutoscalerRequest */ - public APIpatchNamespacedHorizontalPodAutoscalerRequest fieldManager(String fieldManager) { + public APIpatchNamespacedHorizontalPodAutoscalerRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1928,7 +2020,7 @@ public APIpatchNamespacedHorizontalPodAutoscalerRequest fieldManager(String fiel * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedHorizontalPodAutoscalerRequest */ - public APIpatchNamespacedHorizontalPodAutoscalerRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedHorizontalPodAutoscalerRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1938,7 +2030,7 @@ public APIpatchNamespacedHorizontalPodAutoscalerRequest fieldValidation(String f * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedHorizontalPodAutoscalerRequest */ - public APIpatchNamespacedHorizontalPodAutoscalerRequest force(Boolean force) { + public APIpatchNamespacedHorizontalPodAutoscalerRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1949,7 +2041,8 @@ public APIpatchNamespacedHorizontalPodAutoscalerRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1965,7 +2058,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1982,7 +2076,8 @@ public V1HorizontalPodAutoscaler execute() throws ApiException { * @return ApiResponse<V1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1999,7 +2094,8 @@ public ApiResponse executeWithHttpInfo() throws ApiEx * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2019,17 +2115,18 @@ public okhttp3.Call executeAsync(final ApiCallback _c * @param body (required) * @return APIpatchNamespacedHorizontalPodAutoscalerRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedHorizontalPodAutoscalerRequest patchNamespacedHorizontalPodAutoscaler(String name, String namespace, V1Patch body) { + public APIpatchNamespacedHorizontalPodAutoscalerRequest patchNamespacedHorizontalPodAutoscaler(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedHorizontalPodAutoscalerRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2100,7 +2197,7 @@ private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusCall(String nam } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedHorizontalPodAutoscalerStatus(Async)"); @@ -2121,13 +2218,13 @@ private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeC } - private ApiResponse patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2136,16 +2233,24 @@ private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusAsync(String na } public class APIpatchNamespacedHorizontalPodAutoscalerStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedHorizontalPodAutoscalerStatusRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedHorizontalPodAutoscalerStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -2156,7 +2261,7 @@ private APIpatchNamespacedHorizontalPodAutoscalerStatusRequest(String name, Stri * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedHorizontalPodAutoscalerStatusRequest */ - public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest pretty(String pretty) { + public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2166,7 +2271,7 @@ public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest pretty(String pret * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedHorizontalPodAutoscalerStatusRequest */ - public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest dryRun(String dryRun) { + public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2176,7 +2281,7 @@ public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest dryRun(String dryR * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedHorizontalPodAutoscalerStatusRequest */ - public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest fieldManager(String fieldManager) { + public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2186,7 +2291,7 @@ public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest fieldManager(Strin * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedHorizontalPodAutoscalerStatusRequest */ - public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2196,7 +2301,7 @@ public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest fieldValidation(St * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedHorizontalPodAutoscalerStatusRequest */ - public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest force(Boolean force) { + public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -2207,7 +2312,8 @@ public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest force(Boolean forc * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2223,7 +2329,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2240,7 +2347,8 @@ public V1HorizontalPodAutoscaler execute() throws ApiException { * @return ApiResponse<V1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2257,7 +2365,8 @@ public ApiResponse executeWithHttpInfo() throws ApiEx * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2277,17 +2386,18 @@ public okhttp3.Call executeAsync(final ApiCallback _c * @param body (required) * @return APIpatchNamespacedHorizontalPodAutoscalerStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest patchNamespacedHorizontalPodAutoscalerStatus(String name, String namespace, V1Patch body) { + public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest patchNamespacedHorizontalPodAutoscalerStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedHorizontalPodAutoscalerStatusRequest(name, namespace, body); } - private okhttp3.Call readNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedHorizontalPodAutoscalerCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2341,7 +2451,7 @@ private okhttp3.Call readNamespacedHorizontalPodAutoscalerCall(String name, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedHorizontalPodAutoscalerValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedHorizontalPodAutoscaler(Async)"); @@ -2357,13 +2467,13 @@ private okhttp3.Call readNamespacedHorizontalPodAutoscalerValidateBeforeCall(Str } - private ApiResponse readNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedHorizontalPodAutoscalerWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedHorizontalPodAutoscalerAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2372,11 +2482,14 @@ private okhttp3.Call readNamespacedHorizontalPodAutoscalerAsync(String name, Str } public class APIreadNamespacedHorizontalPodAutoscalerRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedHorizontalPodAutoscalerRequest(String name, String namespace) { + private APIreadNamespacedHorizontalPodAutoscalerRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -2386,7 +2499,7 @@ private APIreadNamespacedHorizontalPodAutoscalerRequest(String name, String name * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedHorizontalPodAutoscalerRequest */ - public APIreadNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { + public APIreadNamespacedHorizontalPodAutoscalerRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2397,7 +2510,8 @@ public APIreadNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2412,7 +2526,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2428,7 +2543,8 @@ public V1HorizontalPodAutoscaler execute() throws ApiException { * @return ApiResponse<V1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2444,7 +2560,8 @@ public ApiResponse executeWithHttpInfo() throws ApiEx * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2462,16 +2579,17 @@ public okhttp3.Call executeAsync(final ApiCallback _c * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedHorizontalPodAutoscalerRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedHorizontalPodAutoscalerRequest readNamespacedHorizontalPodAutoscaler(String name, String namespace) { + public APIreadNamespacedHorizontalPodAutoscalerRequest readNamespacedHorizontalPodAutoscaler(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedHorizontalPodAutoscalerRequest(name, namespace); } - private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2525,7 +2643,7 @@ private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusCall(String name } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedHorizontalPodAutoscalerStatus(Async)"); @@ -2541,13 +2659,13 @@ private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCa } - private ApiResponse readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2556,11 +2674,14 @@ private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusAsync(String nam } public class APIreadNamespacedHorizontalPodAutoscalerStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedHorizontalPodAutoscalerStatusRequest(String name, String namespace) { + private APIreadNamespacedHorizontalPodAutoscalerStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -2570,7 +2691,7 @@ private APIreadNamespacedHorizontalPodAutoscalerStatusRequest(String name, Strin * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedHorizontalPodAutoscalerStatusRequest */ - public APIreadNamespacedHorizontalPodAutoscalerStatusRequest pretty(String pretty) { + public APIreadNamespacedHorizontalPodAutoscalerStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2581,7 +2702,8 @@ public APIreadNamespacedHorizontalPodAutoscalerStatusRequest pretty(String prett * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2596,7 +2718,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2612,7 +2735,8 @@ public V1HorizontalPodAutoscaler execute() throws ApiException { * @return ApiResponse<V1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2628,7 +2752,8 @@ public ApiResponse executeWithHttpInfo() throws ApiEx * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2646,16 +2771,17 @@ public okhttp3.Call executeAsync(final ApiCallback _c * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedHorizontalPodAutoscalerStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedHorizontalPodAutoscalerStatusRequest readNamespacedHorizontalPodAutoscalerStatus(String name, String namespace) { + public APIreadNamespacedHorizontalPodAutoscalerStatusRequest readNamespacedHorizontalPodAutoscalerStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedHorizontalPodAutoscalerStatusRequest(name, namespace); } - private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerCall(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2722,7 +2848,7 @@ private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerCall(String name, S } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedHorizontalPodAutoscaler(Async)"); @@ -2743,13 +2869,13 @@ private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall( } - private ApiResponse replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2758,15 +2884,22 @@ private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerAsync(String name, } public class APIreplaceNamespacedHorizontalPodAutoscalerRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1HorizontalPodAutoscaler body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedHorizontalPodAutoscalerRequest(String name, String namespace, V1HorizontalPodAutoscaler body) { + private APIreplaceNamespacedHorizontalPodAutoscalerRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1HorizontalPodAutoscaler body) { this.name = name; this.namespace = namespace; this.body = body; @@ -2777,7 +2910,7 @@ private APIreplaceNamespacedHorizontalPodAutoscalerRequest(String name, String n * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedHorizontalPodAutoscalerRequest */ - public APIreplaceNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { + public APIreplaceNamespacedHorizontalPodAutoscalerRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2787,7 +2920,7 @@ public APIreplaceNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedHorizontalPodAutoscalerRequest */ - public APIreplaceNamespacedHorizontalPodAutoscalerRequest dryRun(String dryRun) { + public APIreplaceNamespacedHorizontalPodAutoscalerRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2797,7 +2930,7 @@ public APIreplaceNamespacedHorizontalPodAutoscalerRequest dryRun(String dryRun) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedHorizontalPodAutoscalerRequest */ - public APIreplaceNamespacedHorizontalPodAutoscalerRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedHorizontalPodAutoscalerRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2807,7 +2940,7 @@ public APIreplaceNamespacedHorizontalPodAutoscalerRequest fieldManager(String fi * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedHorizontalPodAutoscalerRequest */ - public APIreplaceNamespacedHorizontalPodAutoscalerRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedHorizontalPodAutoscalerRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2818,7 +2951,8 @@ public APIreplaceNamespacedHorizontalPodAutoscalerRequest fieldValidation(String * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2834,7 +2968,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2851,7 +2986,8 @@ public V1HorizontalPodAutoscaler execute() throws ApiException { * @return ApiResponse<V1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2868,7 +3004,8 @@ public ApiResponse executeWithHttpInfo() throws ApiEx * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2888,17 +3025,18 @@ public okhttp3.Call executeAsync(final ApiCallback _c * @param body (required) * @return APIreplaceNamespacedHorizontalPodAutoscalerRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedHorizontalPodAutoscalerRequest replaceNamespacedHorizontalPodAutoscaler(String name, String namespace, V1HorizontalPodAutoscaler body) { + public APIreplaceNamespacedHorizontalPodAutoscalerRequest replaceNamespacedHorizontalPodAutoscaler(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1HorizontalPodAutoscaler body) { return new APIreplaceNamespacedHorizontalPodAutoscalerRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2965,7 +3103,7 @@ private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusCall(String n } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedHorizontalPodAutoscalerStatus(Async)"); @@ -2986,13 +3124,13 @@ private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusValidateBefor } - private ApiResponse replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3001,15 +3139,22 @@ private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusAsync(String } public class APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1HorizontalPodAutoscaler body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest(String name, String namespace, V1HorizontalPodAutoscaler body) { + private APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1HorizontalPodAutoscaler body) { this.name = name; this.namespace = namespace; this.body = body; @@ -3020,7 +3165,7 @@ private APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest(String name, St * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest */ - public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest pretty(String pretty) { + public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3030,7 +3175,7 @@ public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest pretty(String pr * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest */ - public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest dryRun(String dryRun) { + public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3040,7 +3185,7 @@ public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest dryRun(String dr * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest */ - public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -3050,7 +3195,7 @@ public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest fieldManager(Str * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest */ - public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -3061,7 +3206,8 @@ public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest fieldValidation( * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3077,7 +3223,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3094,7 +3241,8 @@ public V1HorizontalPodAutoscaler execute() throws ApiException { * @return ApiResponse<V1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3111,7 +3259,8 @@ public ApiResponse executeWithHttpInfo() throws ApiEx * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3131,14 +3280,15 @@ public okhttp3.Call executeAsync(final ApiCallback _c * @param body (required) * @return APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest replaceNamespacedHorizontalPodAutoscalerStatus(String name, String namespace, V1HorizontalPodAutoscaler body) { + public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest replaceNamespacedHorizontalPodAutoscalerStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1HorizontalPodAutoscaler body) { return new APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest(name, namespace, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2Api.java index 3391ed2eb0..2a96543269 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2Api.java @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createNamespacedHorizontalPodAutoscalerCall(String namespace, V2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedHorizontalPodAutoscalerCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V2HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -142,7 +142,7 @@ private okhttp3.Call createNamespacedHorizontalPodAutoscalerCall(String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, V2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedHorizontalPodAutoscalerValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V2HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedHorizontalPodAutoscaler(Async)"); @@ -158,13 +158,13 @@ private okhttp3.Call createNamespacedHorizontalPodAutoscalerValidateBeforeCall(S } - private ApiResponse createNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, V2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedHorizontalPodAutoscalerWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V2HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedHorizontalPodAutoscalerAsync(String namespace, V2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedHorizontalPodAutoscalerAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V2HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -173,14 +173,20 @@ private okhttp3.Call createNamespacedHorizontalPodAutoscalerAsync(String namespa } public class APIcreateNamespacedHorizontalPodAutoscalerRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V2HorizontalPodAutoscaler body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedHorizontalPodAutoscalerRequest(String namespace, V2HorizontalPodAutoscaler body) { + private APIcreateNamespacedHorizontalPodAutoscalerRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V2HorizontalPodAutoscaler body) { this.namespace = namespace; this.body = body; } @@ -190,7 +196,7 @@ private APIcreateNamespacedHorizontalPodAutoscalerRequest(String namespace, V2Ho * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedHorizontalPodAutoscalerRequest */ - public APIcreateNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { + public APIcreateNamespacedHorizontalPodAutoscalerRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -200,7 +206,7 @@ public APIcreateNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedHorizontalPodAutoscalerRequest */ - public APIcreateNamespacedHorizontalPodAutoscalerRequest dryRun(String dryRun) { + public APIcreateNamespacedHorizontalPodAutoscalerRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -210,7 +216,7 @@ public APIcreateNamespacedHorizontalPodAutoscalerRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedHorizontalPodAutoscalerRequest */ - public APIcreateNamespacedHorizontalPodAutoscalerRequest fieldManager(String fieldManager) { + public APIcreateNamespacedHorizontalPodAutoscalerRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -220,7 +226,7 @@ public APIcreateNamespacedHorizontalPodAutoscalerRequest fieldManager(String fie * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedHorizontalPodAutoscalerRequest */ - public APIcreateNamespacedHorizontalPodAutoscalerRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedHorizontalPodAutoscalerRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -231,7 +237,8 @@ public APIcreateNamespacedHorizontalPodAutoscalerRequest fieldValidation(String * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -248,7 +255,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V2HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -266,7 +274,8 @@ public V2HorizontalPodAutoscaler execute() throws ApiException { * @return ApiResponse<V2HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -284,7 +293,8 @@ public ApiResponse executeWithHttpInfo() throws ApiEx * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -304,7 +314,8 @@ public okhttp3.Call executeAsync(final ApiCallback _c * @param body (required) * @return APIcreateNamespacedHorizontalPodAutoscalerRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -312,10 +323,10 @@ public okhttp3.Call executeAsync(final ApiCallback _c
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedHorizontalPodAutoscalerRequest createNamespacedHorizontalPodAutoscaler(String namespace, V2HorizontalPodAutoscaler body) { + public APIcreateNamespacedHorizontalPodAutoscalerRequest createNamespacedHorizontalPodAutoscaler(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V2HorizontalPodAutoscaler body) { return new APIcreateNamespacedHorizontalPodAutoscalerRequest(namespace, body); } - private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -421,7 +432,7 @@ private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedHorizontalPodAutoscaler(Async)"); @@ -432,13 +443,13 @@ private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBe } - private ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -447,24 +458,40 @@ private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(Stri } public class APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest(String namespace) { + private APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -473,7 +500,7 @@ private APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest(String names * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -483,7 +510,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest pretty(String * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -493,7 +520,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest _continue(Str * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -503,7 +530,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest dryRun(String * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -513,7 +540,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest fieldSelector * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -523,7 +550,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest gracePeriodSe * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -533,7 +560,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest ignoreStoreRe * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -543,7 +570,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest labelSelector * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -553,7 +580,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest limit(Integer * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -563,7 +590,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest orphanDepende * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -573,7 +600,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest propagationPo * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -583,7 +610,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest resourceVersi * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -593,7 +620,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest resourceVersi * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -603,7 +630,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest sendInitialEv * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -613,7 +640,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest timeoutSecond * @param body (optional) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -624,7 +651,8 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest body(V1Delete * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -639,7 +667,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -655,7 +684,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -671,7 +701,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -688,16 +719,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest deleteCollectionNamespacedHorizontalPodAutoscaler(String namespace) { + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest deleteCollectionNamespacedHorizontalPodAutoscaler(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest(namespace); } - private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -772,7 +804,7 @@ private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, St } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedHorizontalPodAutoscaler(Async)"); @@ -788,13 +820,13 @@ private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(S } - private ApiResponse deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -803,17 +835,26 @@ private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerAsync(String name, S } public class APIdeleteNamespacedHorizontalPodAutoscalerRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedHorizontalPodAutoscalerRequest(String name, String namespace) { + private APIdeleteNamespacedHorizontalPodAutoscalerRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -823,7 +864,7 @@ private APIdeleteNamespacedHorizontalPodAutoscalerRequest(String name, String na * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { + public APIdeleteNamespacedHorizontalPodAutoscalerRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -833,7 +874,7 @@ public APIdeleteNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteNamespacedHorizontalPodAutoscalerRequest dryRun(String dryRun) { + public APIdeleteNamespacedHorizontalPodAutoscalerRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -843,7 +884,7 @@ public APIdeleteNamespacedHorizontalPodAutoscalerRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteNamespacedHorizontalPodAutoscalerRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedHorizontalPodAutoscalerRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -853,7 +894,7 @@ public APIdeleteNamespacedHorizontalPodAutoscalerRequest gracePeriodSeconds(Inte * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteNamespacedHorizontalPodAutoscalerRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedHorizontalPodAutoscalerRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -863,7 +904,7 @@ public APIdeleteNamespacedHorizontalPodAutoscalerRequest ignoreStoreReadErrorWit * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteNamespacedHorizontalPodAutoscalerRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedHorizontalPodAutoscalerRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -873,7 +914,7 @@ public APIdeleteNamespacedHorizontalPodAutoscalerRequest orphanDependents(Boolea * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteNamespacedHorizontalPodAutoscalerRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedHorizontalPodAutoscalerRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -883,7 +924,7 @@ public APIdeleteNamespacedHorizontalPodAutoscalerRequest propagationPolicy(Strin * @param body (optional) * @return APIdeleteNamespacedHorizontalPodAutoscalerRequest */ - public APIdeleteNamespacedHorizontalPodAutoscalerRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedHorizontalPodAutoscalerRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -894,7 +935,8 @@ public APIdeleteNamespacedHorizontalPodAutoscalerRequest body(V1DeleteOptions bo * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -910,7 +952,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -927,7 +970,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -944,7 +988,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -963,14 +1008,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedHorizontalPodAutoscalerRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedHorizontalPodAutoscalerRequest deleteNamespacedHorizontalPodAutoscaler(String name, String namespace) { + public APIdeleteNamespacedHorizontalPodAutoscalerRequest deleteNamespacedHorizontalPodAutoscaler(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedHorizontalPodAutoscalerRequest(name, namespace); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -1052,7 +1098,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1067,7 +1114,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1083,7 +1131,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1099,7 +1148,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1115,7 +1165,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1124,7 +1175,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1219,19 +1270,19 @@ private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(Boolean all } @SuppressWarnings("rawtypes") - private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listHorizontalPodAutoscalerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1240,16 +1291,27 @@ private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesAsync(Boolean al } public class APIlistHorizontalPodAutoscalerForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistHorizontalPodAutoscalerForAllNamespacesRequest() { @@ -1260,7 +1322,7 @@ private APIlistHorizontalPodAutoscalerForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest */ - public APIlistHorizontalPodAutoscalerForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1270,7 +1332,7 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest allowWatchBookmarks * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest */ - public APIlistHorizontalPodAutoscalerForAllNamespacesRequest _continue(String _continue) { + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1280,7 +1342,7 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest _continue(String _c * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest */ - public APIlistHorizontalPodAutoscalerForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1290,7 +1352,7 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest fieldSelector(Strin * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest */ - public APIlistHorizontalPodAutoscalerForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1300,7 +1362,7 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest labelSelector(Strin * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest */ - public APIlistHorizontalPodAutoscalerForAllNamespacesRequest limit(Integer limit) { + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1310,7 +1372,7 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest limit(Integer limit * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest */ - public APIlistHorizontalPodAutoscalerForAllNamespacesRequest pretty(String pretty) { + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1320,7 +1382,7 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest pretty(String prett * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest */ - public APIlistHorizontalPodAutoscalerForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1330,7 +1392,7 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest resourceVersion(Str * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest */ - public APIlistHorizontalPodAutoscalerForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1340,7 +1402,7 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest resourceVersionMatc * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest */ - public APIlistHorizontalPodAutoscalerForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1350,7 +1412,7 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest sendInitialEvents(B * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest */ - public APIlistHorizontalPodAutoscalerForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1360,7 +1422,7 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest timeoutSeconds(Inte * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest */ - public APIlistHorizontalPodAutoscalerForAllNamespacesRequest watch(Boolean watch) { + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1371,7 +1433,8 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest watch(Boolean watch * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1386,7 +1449,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V2HorizontalPodAutoscalerList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1402,7 +1466,8 @@ public V2HorizontalPodAutoscalerList execute() throws ApiException { * @return ApiResponse<V2HorizontalPodAutoscalerList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1418,7 +1483,8 @@ public ApiResponse executeWithHttpInfo() throws A * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1434,7 +1500,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -1443,7 +1510,7 @@ public okhttp3.Call executeAsync(final ApiCallback listNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedHorizontalPodAutoscalerWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedHorizontalPodAutoscalerAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedHorizontalPodAutoscalerAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1565,20 +1632,32 @@ private okhttp3.Call listNamespacedHorizontalPodAutoscalerAsync(String namespace } public class APIlistNamespacedHorizontalPodAutoscalerRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedHorizontalPodAutoscalerRequest(String namespace) { + private APIlistNamespacedHorizontalPodAutoscalerRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -1587,7 +1666,7 @@ private APIlistNamespacedHorizontalPodAutoscalerRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedHorizontalPodAutoscalerRequest */ - public APIlistNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { + public APIlistNamespacedHorizontalPodAutoscalerRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1597,7 +1676,7 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedHorizontalPodAutoscalerRequest */ - public APIlistNamespacedHorizontalPodAutoscalerRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedHorizontalPodAutoscalerRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1607,7 +1686,7 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest allowWatchBookmarks(Boole * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedHorizontalPodAutoscalerRequest */ - public APIlistNamespacedHorizontalPodAutoscalerRequest _continue(String _continue) { + public APIlistNamespacedHorizontalPodAutoscalerRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1617,7 +1696,7 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest _continue(String _continu * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedHorizontalPodAutoscalerRequest */ - public APIlistNamespacedHorizontalPodAutoscalerRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedHorizontalPodAutoscalerRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1627,7 +1706,7 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest fieldSelector(String fiel * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedHorizontalPodAutoscalerRequest */ - public APIlistNamespacedHorizontalPodAutoscalerRequest labelSelector(String labelSelector) { + public APIlistNamespacedHorizontalPodAutoscalerRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1637,7 +1716,7 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest labelSelector(String labe * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedHorizontalPodAutoscalerRequest */ - public APIlistNamespacedHorizontalPodAutoscalerRequest limit(Integer limit) { + public APIlistNamespacedHorizontalPodAutoscalerRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1647,7 +1726,7 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedHorizontalPodAutoscalerRequest */ - public APIlistNamespacedHorizontalPodAutoscalerRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedHorizontalPodAutoscalerRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1657,7 +1736,7 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest resourceVersion(String re * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedHorizontalPodAutoscalerRequest */ - public APIlistNamespacedHorizontalPodAutoscalerRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedHorizontalPodAutoscalerRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1667,7 +1746,7 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest resourceVersionMatch(Stri * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedHorizontalPodAutoscalerRequest */ - public APIlistNamespacedHorizontalPodAutoscalerRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedHorizontalPodAutoscalerRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1677,7 +1756,7 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest sendInitialEvents(Boolean * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedHorizontalPodAutoscalerRequest */ - public APIlistNamespacedHorizontalPodAutoscalerRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedHorizontalPodAutoscalerRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1687,7 +1766,7 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest timeoutSeconds(Integer ti * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedHorizontalPodAutoscalerRequest */ - public APIlistNamespacedHorizontalPodAutoscalerRequest watch(Boolean watch) { + public APIlistNamespacedHorizontalPodAutoscalerRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1698,7 +1777,8 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1713,7 +1793,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V2HorizontalPodAutoscalerList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1729,7 +1810,8 @@ public V2HorizontalPodAutoscalerList execute() throws ApiException { * @return ApiResponse<V2HorizontalPodAutoscalerList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1745,7 +1827,8 @@ public ApiResponse executeWithHttpInfo() throws A * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1762,16 +1845,17 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedHorizontalPodAutoscalerRequest listNamespacedHorizontalPodAutoscaler(String namespace) { + public APIlistNamespacedHorizontalPodAutoscalerRequest listNamespacedHorizontalPodAutoscaler(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedHorizontalPodAutoscalerRequest(namespace); } - private okhttp3.Call patchNamespacedHorizontalPodAutoscalerCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedHorizontalPodAutoscalerCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1842,7 +1926,7 @@ private okhttp3.Call patchNamespacedHorizontalPodAutoscalerCall(String name, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedHorizontalPodAutoscaler(Async)"); @@ -1863,13 +1947,13 @@ private okhttp3.Call patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(St } - private ApiResponse patchNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedHorizontalPodAutoscalerWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedHorizontalPodAutoscalerAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1878,16 +1962,24 @@ private okhttp3.Call patchNamespacedHorizontalPodAutoscalerAsync(String name, St } public class APIpatchNamespacedHorizontalPodAutoscalerRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedHorizontalPodAutoscalerRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedHorizontalPodAutoscalerRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -1898,7 +1990,7 @@ private APIpatchNamespacedHorizontalPodAutoscalerRequest(String name, String nam * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedHorizontalPodAutoscalerRequest */ - public APIpatchNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { + public APIpatchNamespacedHorizontalPodAutoscalerRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1908,7 +2000,7 @@ public APIpatchNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedHorizontalPodAutoscalerRequest */ - public APIpatchNamespacedHorizontalPodAutoscalerRequest dryRun(String dryRun) { + public APIpatchNamespacedHorizontalPodAutoscalerRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1918,7 +2010,7 @@ public APIpatchNamespacedHorizontalPodAutoscalerRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedHorizontalPodAutoscalerRequest */ - public APIpatchNamespacedHorizontalPodAutoscalerRequest fieldManager(String fieldManager) { + public APIpatchNamespacedHorizontalPodAutoscalerRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1928,7 +2020,7 @@ public APIpatchNamespacedHorizontalPodAutoscalerRequest fieldManager(String fiel * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedHorizontalPodAutoscalerRequest */ - public APIpatchNamespacedHorizontalPodAutoscalerRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedHorizontalPodAutoscalerRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1938,7 +2030,7 @@ public APIpatchNamespacedHorizontalPodAutoscalerRequest fieldValidation(String f * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedHorizontalPodAutoscalerRequest */ - public APIpatchNamespacedHorizontalPodAutoscalerRequest force(Boolean force) { + public APIpatchNamespacedHorizontalPodAutoscalerRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1949,7 +2041,8 @@ public APIpatchNamespacedHorizontalPodAutoscalerRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1965,7 +2058,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V2HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1982,7 +2076,8 @@ public V2HorizontalPodAutoscaler execute() throws ApiException { * @return ApiResponse<V2HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1999,7 +2094,8 @@ public ApiResponse executeWithHttpInfo() throws ApiEx * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2019,17 +2115,18 @@ public okhttp3.Call executeAsync(final ApiCallback _c * @param body (required) * @return APIpatchNamespacedHorizontalPodAutoscalerRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedHorizontalPodAutoscalerRequest patchNamespacedHorizontalPodAutoscaler(String name, String namespace, V1Patch body) { + public APIpatchNamespacedHorizontalPodAutoscalerRequest patchNamespacedHorizontalPodAutoscaler(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedHorizontalPodAutoscalerRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2100,7 +2197,7 @@ private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusCall(String nam } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedHorizontalPodAutoscalerStatus(Async)"); @@ -2121,13 +2218,13 @@ private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeC } - private ApiResponse patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2136,16 +2233,24 @@ private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusAsync(String na } public class APIpatchNamespacedHorizontalPodAutoscalerStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedHorizontalPodAutoscalerStatusRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedHorizontalPodAutoscalerStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -2156,7 +2261,7 @@ private APIpatchNamespacedHorizontalPodAutoscalerStatusRequest(String name, Stri * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedHorizontalPodAutoscalerStatusRequest */ - public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest pretty(String pretty) { + public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2166,7 +2271,7 @@ public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest pretty(String pret * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedHorizontalPodAutoscalerStatusRequest */ - public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest dryRun(String dryRun) { + public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2176,7 +2281,7 @@ public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest dryRun(String dryR * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedHorizontalPodAutoscalerStatusRequest */ - public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest fieldManager(String fieldManager) { + public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2186,7 +2291,7 @@ public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest fieldManager(Strin * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedHorizontalPodAutoscalerStatusRequest */ - public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2196,7 +2301,7 @@ public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest fieldValidation(St * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedHorizontalPodAutoscalerStatusRequest */ - public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest force(Boolean force) { + public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -2207,7 +2312,8 @@ public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest force(Boolean forc * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2223,7 +2329,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V2HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2240,7 +2347,8 @@ public V2HorizontalPodAutoscaler execute() throws ApiException { * @return ApiResponse<V2HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2257,7 +2365,8 @@ public ApiResponse executeWithHttpInfo() throws ApiEx * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2277,17 +2386,18 @@ public okhttp3.Call executeAsync(final ApiCallback _c * @param body (required) * @return APIpatchNamespacedHorizontalPodAutoscalerStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest patchNamespacedHorizontalPodAutoscalerStatus(String name, String namespace, V1Patch body) { + public APIpatchNamespacedHorizontalPodAutoscalerStatusRequest patchNamespacedHorizontalPodAutoscalerStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedHorizontalPodAutoscalerStatusRequest(name, namespace, body); } - private okhttp3.Call readNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedHorizontalPodAutoscalerCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2341,7 +2451,7 @@ private okhttp3.Call readNamespacedHorizontalPodAutoscalerCall(String name, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedHorizontalPodAutoscalerValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedHorizontalPodAutoscaler(Async)"); @@ -2357,13 +2467,13 @@ private okhttp3.Call readNamespacedHorizontalPodAutoscalerValidateBeforeCall(Str } - private ApiResponse readNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedHorizontalPodAutoscalerWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedHorizontalPodAutoscalerAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2372,11 +2482,14 @@ private okhttp3.Call readNamespacedHorizontalPodAutoscalerAsync(String name, Str } public class APIreadNamespacedHorizontalPodAutoscalerRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedHorizontalPodAutoscalerRequest(String name, String namespace) { + private APIreadNamespacedHorizontalPodAutoscalerRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -2386,7 +2499,7 @@ private APIreadNamespacedHorizontalPodAutoscalerRequest(String name, String name * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedHorizontalPodAutoscalerRequest */ - public APIreadNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { + public APIreadNamespacedHorizontalPodAutoscalerRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2397,7 +2510,8 @@ public APIreadNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2412,7 +2526,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V2HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2428,7 +2543,8 @@ public V2HorizontalPodAutoscaler execute() throws ApiException { * @return ApiResponse<V2HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2444,7 +2560,8 @@ public ApiResponse executeWithHttpInfo() throws ApiEx * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2462,16 +2579,17 @@ public okhttp3.Call executeAsync(final ApiCallback _c * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedHorizontalPodAutoscalerRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedHorizontalPodAutoscalerRequest readNamespacedHorizontalPodAutoscaler(String name, String namespace) { + public APIreadNamespacedHorizontalPodAutoscalerRequest readNamespacedHorizontalPodAutoscaler(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedHorizontalPodAutoscalerRequest(name, namespace); } - private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2525,7 +2643,7 @@ private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusCall(String name } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedHorizontalPodAutoscalerStatus(Async)"); @@ -2541,13 +2659,13 @@ private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCa } - private ApiResponse readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2556,11 +2674,14 @@ private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusAsync(String nam } public class APIreadNamespacedHorizontalPodAutoscalerStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedHorizontalPodAutoscalerStatusRequest(String name, String namespace) { + private APIreadNamespacedHorizontalPodAutoscalerStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -2570,7 +2691,7 @@ private APIreadNamespacedHorizontalPodAutoscalerStatusRequest(String name, Strin * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedHorizontalPodAutoscalerStatusRequest */ - public APIreadNamespacedHorizontalPodAutoscalerStatusRequest pretty(String pretty) { + public APIreadNamespacedHorizontalPodAutoscalerStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2581,7 +2702,8 @@ public APIreadNamespacedHorizontalPodAutoscalerStatusRequest pretty(String prett * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2596,7 +2718,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V2HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2612,7 +2735,8 @@ public V2HorizontalPodAutoscaler execute() throws ApiException { * @return ApiResponse<V2HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2628,7 +2752,8 @@ public ApiResponse executeWithHttpInfo() throws ApiEx * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2646,16 +2771,17 @@ public okhttp3.Call executeAsync(final ApiCallback _c * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedHorizontalPodAutoscalerStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedHorizontalPodAutoscalerStatusRequest readNamespacedHorizontalPodAutoscalerStatus(String name, String namespace) { + public APIreadNamespacedHorizontalPodAutoscalerStatusRequest readNamespacedHorizontalPodAutoscalerStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedHorizontalPodAutoscalerStatusRequest(name, namespace); } - private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerCall(String name, String namespace, V2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V2HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2722,7 +2848,7 @@ private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerCall(String name, S } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, V2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V2HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedHorizontalPodAutoscaler(Async)"); @@ -2743,13 +2869,13 @@ private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall( } - private ApiResponse replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, V2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V2HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, V2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V2HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2758,15 +2884,22 @@ private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerAsync(String name, } public class APIreplaceNamespacedHorizontalPodAutoscalerRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V2HorizontalPodAutoscaler body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedHorizontalPodAutoscalerRequest(String name, String namespace, V2HorizontalPodAutoscaler body) { + private APIreplaceNamespacedHorizontalPodAutoscalerRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V2HorizontalPodAutoscaler body) { this.name = name; this.namespace = namespace; this.body = body; @@ -2777,7 +2910,7 @@ private APIreplaceNamespacedHorizontalPodAutoscalerRequest(String name, String n * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedHorizontalPodAutoscalerRequest */ - public APIreplaceNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) { + public APIreplaceNamespacedHorizontalPodAutoscalerRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2787,7 +2920,7 @@ public APIreplaceNamespacedHorizontalPodAutoscalerRequest pretty(String pretty) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedHorizontalPodAutoscalerRequest */ - public APIreplaceNamespacedHorizontalPodAutoscalerRequest dryRun(String dryRun) { + public APIreplaceNamespacedHorizontalPodAutoscalerRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2797,7 +2930,7 @@ public APIreplaceNamespacedHorizontalPodAutoscalerRequest dryRun(String dryRun) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedHorizontalPodAutoscalerRequest */ - public APIreplaceNamespacedHorizontalPodAutoscalerRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedHorizontalPodAutoscalerRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2807,7 +2940,7 @@ public APIreplaceNamespacedHorizontalPodAutoscalerRequest fieldManager(String fi * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedHorizontalPodAutoscalerRequest */ - public APIreplaceNamespacedHorizontalPodAutoscalerRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedHorizontalPodAutoscalerRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2818,7 +2951,8 @@ public APIreplaceNamespacedHorizontalPodAutoscalerRequest fieldValidation(String * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2834,7 +2968,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V2HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2851,7 +2986,8 @@ public V2HorizontalPodAutoscaler execute() throws ApiException { * @return ApiResponse<V2HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2868,7 +3004,8 @@ public ApiResponse executeWithHttpInfo() throws ApiEx * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2888,17 +3025,18 @@ public okhttp3.Call executeAsync(final ApiCallback _c * @param body (required) * @return APIreplaceNamespacedHorizontalPodAutoscalerRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedHorizontalPodAutoscalerRequest replaceNamespacedHorizontalPodAutoscaler(String name, String namespace, V2HorizontalPodAutoscaler body) { + public APIreplaceNamespacedHorizontalPodAutoscalerRequest replaceNamespacedHorizontalPodAutoscaler(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V2HorizontalPodAutoscaler body) { return new APIreplaceNamespacedHorizontalPodAutoscalerRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, V2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V2HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2965,7 +3103,7 @@ private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusCall(String n } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, V2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V2HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedHorizontalPodAutoscalerStatus(Async)"); @@ -2986,13 +3124,13 @@ private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusValidateBefor } - private ApiResponse replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(String name, String namespace, V2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V2HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, V2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V2HorizontalPodAutoscaler body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3001,15 +3139,22 @@ private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusAsync(String } public class APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V2HorizontalPodAutoscaler body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest(String name, String namespace, V2HorizontalPodAutoscaler body) { + private APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V2HorizontalPodAutoscaler body) { this.name = name; this.namespace = namespace; this.body = body; @@ -3020,7 +3165,7 @@ private APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest(String name, St * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest */ - public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest pretty(String pretty) { + public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3030,7 +3175,7 @@ public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest pretty(String pr * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest */ - public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest dryRun(String dryRun) { + public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3040,7 +3185,7 @@ public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest dryRun(String dr * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest */ - public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -3050,7 +3195,7 @@ public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest fieldManager(Str * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest */ - public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -3061,7 +3206,8 @@ public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest fieldValidation( * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3077,7 +3223,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V2HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3094,7 +3241,8 @@ public V2HorizontalPodAutoscaler execute() throws ApiException { * @return ApiResponse<V2HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3111,7 +3259,8 @@ public ApiResponse executeWithHttpInfo() throws ApiEx * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3131,14 +3280,15 @@ public okhttp3.Call executeAsync(final ApiCallback _c * @param body (required) * @return APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest replaceNamespacedHorizontalPodAutoscalerStatus(String name, String namespace, V2HorizontalPodAutoscaler body) { + public APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest replaceNamespacedHorizontalPodAutoscalerStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V2HorizontalPodAutoscaler body) { return new APIreplaceNamespacedHorizontalPodAutoscalerStatusRequest(name, namespace, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchApi.java index d5d6ca22b9..94346ddc2f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchApi.java @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV1Api.java index ab705aab22..259fc2f0c1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV1Api.java @@ -78,7 +78,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createNamespacedCronJobCall(String namespace, V1CronJob body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedCronJobCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CronJob body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -144,7 +144,7 @@ private okhttp3.Call createNamespacedCronJobCall(String namespace, V1CronJob bod } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedCronJobValidateBeforeCall(String namespace, V1CronJob body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedCronJobValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CronJob body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedCronJob(Async)"); @@ -160,13 +160,13 @@ private okhttp3.Call createNamespacedCronJobValidateBeforeCall(String namespace, } - private ApiResponse createNamespacedCronJobWithHttpInfo(String namespace, V1CronJob body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedCronJobWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CronJob body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedCronJobValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedCronJobAsync(String namespace, V1CronJob body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedCronJobAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CronJob body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedCronJobValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -175,14 +175,20 @@ private okhttp3.Call createNamespacedCronJobAsync(String namespace, V1CronJob bo } public class APIcreateNamespacedCronJobRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1CronJob body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedCronJobRequest(String namespace, V1CronJob body) { + private APIcreateNamespacedCronJobRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CronJob body) { this.namespace = namespace; this.body = body; } @@ -192,7 +198,7 @@ private APIcreateNamespacedCronJobRequest(String namespace, V1CronJob body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedCronJobRequest */ - public APIcreateNamespacedCronJobRequest pretty(String pretty) { + public APIcreateNamespacedCronJobRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -202,7 +208,7 @@ public APIcreateNamespacedCronJobRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedCronJobRequest */ - public APIcreateNamespacedCronJobRequest dryRun(String dryRun) { + public APIcreateNamespacedCronJobRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -212,7 +218,7 @@ public APIcreateNamespacedCronJobRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedCronJobRequest */ - public APIcreateNamespacedCronJobRequest fieldManager(String fieldManager) { + public APIcreateNamespacedCronJobRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -222,7 +228,7 @@ public APIcreateNamespacedCronJobRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedCronJobRequest */ - public APIcreateNamespacedCronJobRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedCronJobRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -233,7 +239,8 @@ public APIcreateNamespacedCronJobRequest fieldValidation(String fieldValidation) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -250,7 +257,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -268,7 +276,8 @@ public V1CronJob execute() throws ApiException { * @return ApiResponse<V1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -286,7 +295,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -306,7 +316,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param body (required) * @return APIcreateNamespacedCronJobRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -314,10 +325,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedCronJobRequest createNamespacedCronJob(String namespace, V1CronJob body) { + public APIcreateNamespacedCronJobRequest createNamespacedCronJob(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CronJob body) { return new APIcreateNamespacedCronJobRequest(namespace, body); } - private okhttp3.Call createNamespacedJobCall(String namespace, V1Job body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedJobCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Job body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -383,7 +394,7 @@ private okhttp3.Call createNamespacedJobCall(String namespace, V1Job body, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedJobValidateBeforeCall(String namespace, V1Job body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedJobValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Job body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedJob(Async)"); @@ -399,13 +410,13 @@ private okhttp3.Call createNamespacedJobValidateBeforeCall(String namespace, V1J } - private ApiResponse createNamespacedJobWithHttpInfo(String namespace, V1Job body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedJobWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Job body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedJobValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedJobAsync(String namespace, V1Job body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedJobAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Job body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedJobValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -414,14 +425,20 @@ private okhttp3.Call createNamespacedJobAsync(String namespace, V1Job body, Stri } public class APIcreateNamespacedJobRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Job body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedJobRequest(String namespace, V1Job body) { + private APIcreateNamespacedJobRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Job body) { this.namespace = namespace; this.body = body; } @@ -431,7 +448,7 @@ private APIcreateNamespacedJobRequest(String namespace, V1Job body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedJobRequest */ - public APIcreateNamespacedJobRequest pretty(String pretty) { + public APIcreateNamespacedJobRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -441,7 +458,7 @@ public APIcreateNamespacedJobRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedJobRequest */ - public APIcreateNamespacedJobRequest dryRun(String dryRun) { + public APIcreateNamespacedJobRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -451,7 +468,7 @@ public APIcreateNamespacedJobRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedJobRequest */ - public APIcreateNamespacedJobRequest fieldManager(String fieldManager) { + public APIcreateNamespacedJobRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -461,7 +478,7 @@ public APIcreateNamespacedJobRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedJobRequest */ - public APIcreateNamespacedJobRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedJobRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -472,7 +489,8 @@ public APIcreateNamespacedJobRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -489,7 +507,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Job * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -507,7 +526,8 @@ public V1Job execute() throws ApiException { * @return ApiResponse<V1Job> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -525,7 +545,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -545,7 +566,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE * @param body (required) * @return APIcreateNamespacedJobRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -553,10 +575,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedJobRequest createNamespacedJob(String namespace, V1Job body) { + public APIcreateNamespacedJobRequest createNamespacedJob(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Job body) { return new APIcreateNamespacedJobRequest(namespace, body); } - private okhttp3.Call deleteCollectionNamespacedCronJobCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedCronJobCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -662,7 +684,7 @@ private okhttp3.Call deleteCollectionNamespacedCronJobCall(String namespace, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedCronJobValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedCronJobValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedCronJob(Async)"); @@ -673,13 +695,13 @@ private okhttp3.Call deleteCollectionNamespacedCronJobValidateBeforeCall(String } - private ApiResponse deleteCollectionNamespacedCronJobWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedCronJobWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedCronJobValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedCronJobAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedCronJobAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedCronJobValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -688,24 +710,40 @@ private okhttp3.Call deleteCollectionNamespacedCronJobAsync(String namespace, St } public class APIdeleteCollectionNamespacedCronJobRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedCronJobRequest(String namespace) { + private APIdeleteCollectionNamespacedCronJobRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -714,7 +752,7 @@ private APIdeleteCollectionNamespacedCronJobRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedCronJobRequest */ - public APIdeleteCollectionNamespacedCronJobRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedCronJobRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -724,7 +762,7 @@ public APIdeleteCollectionNamespacedCronJobRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedCronJobRequest */ - public APIdeleteCollectionNamespacedCronJobRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedCronJobRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -734,7 +772,7 @@ public APIdeleteCollectionNamespacedCronJobRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedCronJobRequest */ - public APIdeleteCollectionNamespacedCronJobRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedCronJobRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -744,7 +782,7 @@ public APIdeleteCollectionNamespacedCronJobRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedCronJobRequest */ - public APIdeleteCollectionNamespacedCronJobRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedCronJobRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -754,7 +792,7 @@ public APIdeleteCollectionNamespacedCronJobRequest fieldSelector(String fieldSel * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedCronJobRequest */ - public APIdeleteCollectionNamespacedCronJobRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedCronJobRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -764,7 +802,7 @@ public APIdeleteCollectionNamespacedCronJobRequest gracePeriodSeconds(Integer gr * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedCronJobRequest */ - public APIdeleteCollectionNamespacedCronJobRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedCronJobRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -774,7 +812,7 @@ public APIdeleteCollectionNamespacedCronJobRequest ignoreStoreReadErrorWithClust * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedCronJobRequest */ - public APIdeleteCollectionNamespacedCronJobRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedCronJobRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -784,7 +822,7 @@ public APIdeleteCollectionNamespacedCronJobRequest labelSelector(String labelSel * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedCronJobRequest */ - public APIdeleteCollectionNamespacedCronJobRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedCronJobRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -794,7 +832,7 @@ public APIdeleteCollectionNamespacedCronJobRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedCronJobRequest */ - public APIdeleteCollectionNamespacedCronJobRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedCronJobRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -804,7 +842,7 @@ public APIdeleteCollectionNamespacedCronJobRequest orphanDependents(Boolean orph * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedCronJobRequest */ - public APIdeleteCollectionNamespacedCronJobRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedCronJobRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -814,7 +852,7 @@ public APIdeleteCollectionNamespacedCronJobRequest propagationPolicy(String prop * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedCronJobRequest */ - public APIdeleteCollectionNamespacedCronJobRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedCronJobRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -824,7 +862,7 @@ public APIdeleteCollectionNamespacedCronJobRequest resourceVersion(String resour * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedCronJobRequest */ - public APIdeleteCollectionNamespacedCronJobRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedCronJobRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -834,7 +872,7 @@ public APIdeleteCollectionNamespacedCronJobRequest resourceVersionMatch(String r * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedCronJobRequest */ - public APIdeleteCollectionNamespacedCronJobRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedCronJobRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -844,7 +882,7 @@ public APIdeleteCollectionNamespacedCronJobRequest sendInitialEvents(Boolean sen * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedCronJobRequest */ - public APIdeleteCollectionNamespacedCronJobRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedCronJobRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -854,7 +892,7 @@ public APIdeleteCollectionNamespacedCronJobRequest timeoutSeconds(Integer timeou * @param body (optional) * @return APIdeleteCollectionNamespacedCronJobRequest */ - public APIdeleteCollectionNamespacedCronJobRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedCronJobRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -865,7 +903,8 @@ public APIdeleteCollectionNamespacedCronJobRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -880,7 +919,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -896,7 +936,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -912,7 +953,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -929,16 +971,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedCronJobRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedCronJobRequest deleteCollectionNamespacedCronJob(String namespace) { + public APIdeleteCollectionNamespacedCronJobRequest deleteCollectionNamespacedCronJob(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedCronJobRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedJobCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedJobCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1044,7 +1087,7 @@ private okhttp3.Call deleteCollectionNamespacedJobCall(String namespace, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedJobValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedJobValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedJob(Async)"); @@ -1055,13 +1098,13 @@ private okhttp3.Call deleteCollectionNamespacedJobValidateBeforeCall(String name } - private ApiResponse deleteCollectionNamespacedJobWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedJobWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedJobValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedJobAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedJobAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedJobValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1070,24 +1113,40 @@ private okhttp3.Call deleteCollectionNamespacedJobAsync(String namespace, String } public class APIdeleteCollectionNamespacedJobRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedJobRequest(String namespace) { + private APIdeleteCollectionNamespacedJobRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -1096,7 +1155,7 @@ private APIdeleteCollectionNamespacedJobRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedJobRequest */ - public APIdeleteCollectionNamespacedJobRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedJobRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1106,7 +1165,7 @@ public APIdeleteCollectionNamespacedJobRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedJobRequest */ - public APIdeleteCollectionNamespacedJobRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedJobRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1116,7 +1175,7 @@ public APIdeleteCollectionNamespacedJobRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedJobRequest */ - public APIdeleteCollectionNamespacedJobRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedJobRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1126,7 +1185,7 @@ public APIdeleteCollectionNamespacedJobRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedJobRequest */ - public APIdeleteCollectionNamespacedJobRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedJobRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1136,7 +1195,7 @@ public APIdeleteCollectionNamespacedJobRequest fieldSelector(String fieldSelecto * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedJobRequest */ - public APIdeleteCollectionNamespacedJobRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedJobRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1146,7 +1205,7 @@ public APIdeleteCollectionNamespacedJobRequest gracePeriodSeconds(Integer graceP * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedJobRequest */ - public APIdeleteCollectionNamespacedJobRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedJobRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1156,7 +1215,7 @@ public APIdeleteCollectionNamespacedJobRequest ignoreStoreReadErrorWithClusterBr * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedJobRequest */ - public APIdeleteCollectionNamespacedJobRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedJobRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1166,7 +1225,7 @@ public APIdeleteCollectionNamespacedJobRequest labelSelector(String labelSelecto * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedJobRequest */ - public APIdeleteCollectionNamespacedJobRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedJobRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1176,7 +1235,7 @@ public APIdeleteCollectionNamespacedJobRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedJobRequest */ - public APIdeleteCollectionNamespacedJobRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedJobRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1186,7 +1245,7 @@ public APIdeleteCollectionNamespacedJobRequest orphanDependents(Boolean orphanDe * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedJobRequest */ - public APIdeleteCollectionNamespacedJobRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedJobRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1196,7 +1255,7 @@ public APIdeleteCollectionNamespacedJobRequest propagationPolicy(String propagat * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedJobRequest */ - public APIdeleteCollectionNamespacedJobRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedJobRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1206,7 +1265,7 @@ public APIdeleteCollectionNamespacedJobRequest resourceVersion(String resourceVe * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedJobRequest */ - public APIdeleteCollectionNamespacedJobRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedJobRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1216,7 +1275,7 @@ public APIdeleteCollectionNamespacedJobRequest resourceVersionMatch(String resou * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedJobRequest */ - public APIdeleteCollectionNamespacedJobRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedJobRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1226,7 +1285,7 @@ public APIdeleteCollectionNamespacedJobRequest sendInitialEvents(Boolean sendIni * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedJobRequest */ - public APIdeleteCollectionNamespacedJobRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedJobRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1236,7 +1295,7 @@ public APIdeleteCollectionNamespacedJobRequest timeoutSeconds(Integer timeoutSec * @param body (optional) * @return APIdeleteCollectionNamespacedJobRequest */ - public APIdeleteCollectionNamespacedJobRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedJobRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1247,7 +1306,8 @@ public APIdeleteCollectionNamespacedJobRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1262,7 +1322,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1278,7 +1339,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1294,7 +1356,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1311,16 +1374,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedJobRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedJobRequest deleteCollectionNamespacedJob(String namespace) { + public APIdeleteCollectionNamespacedJobRequest deleteCollectionNamespacedJob(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedJobRequest(namespace); } - private okhttp3.Call deleteNamespacedCronJobCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedCronJobCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1395,7 +1459,7 @@ private okhttp3.Call deleteNamespacedCronJobCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedCronJobValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedCronJobValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedCronJob(Async)"); @@ -1411,13 +1475,13 @@ private okhttp3.Call deleteNamespacedCronJobValidateBeforeCall(String name, Stri } - private ApiResponse deleteNamespacedCronJobWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedCronJobWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedCronJobValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedCronJobAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedCronJobAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedCronJobValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1426,17 +1490,26 @@ private okhttp3.Call deleteNamespacedCronJobAsync(String name, String namespace, } public class APIdeleteNamespacedCronJobRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedCronJobRequest(String name, String namespace) { + private APIdeleteNamespacedCronJobRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -1446,7 +1519,7 @@ private APIdeleteNamespacedCronJobRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedCronJobRequest */ - public APIdeleteNamespacedCronJobRequest pretty(String pretty) { + public APIdeleteNamespacedCronJobRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1456,7 +1529,7 @@ public APIdeleteNamespacedCronJobRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedCronJobRequest */ - public APIdeleteNamespacedCronJobRequest dryRun(String dryRun) { + public APIdeleteNamespacedCronJobRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1466,7 +1539,7 @@ public APIdeleteNamespacedCronJobRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedCronJobRequest */ - public APIdeleteNamespacedCronJobRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedCronJobRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1476,7 +1549,7 @@ public APIdeleteNamespacedCronJobRequest gracePeriodSeconds(Integer gracePeriodS * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedCronJobRequest */ - public APIdeleteNamespacedCronJobRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedCronJobRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1486,7 +1559,7 @@ public APIdeleteNamespacedCronJobRequest ignoreStoreReadErrorWithClusterBreaking * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedCronJobRequest */ - public APIdeleteNamespacedCronJobRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedCronJobRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1496,7 +1569,7 @@ public APIdeleteNamespacedCronJobRequest orphanDependents(Boolean orphanDependen * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedCronJobRequest */ - public APIdeleteNamespacedCronJobRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedCronJobRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1506,7 +1579,7 @@ public APIdeleteNamespacedCronJobRequest propagationPolicy(String propagationPol * @param body (optional) * @return APIdeleteNamespacedCronJobRequest */ - public APIdeleteNamespacedCronJobRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedCronJobRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1517,7 +1590,8 @@ public APIdeleteNamespacedCronJobRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1533,7 +1607,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1550,7 +1625,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1567,7 +1643,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1586,17 +1663,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedCronJobRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedCronJobRequest deleteNamespacedCronJob(String name, String namespace) { + public APIdeleteNamespacedCronJobRequest deleteNamespacedCronJob(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedCronJobRequest(name, namespace); } - private okhttp3.Call deleteNamespacedJobCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedJobCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1671,7 +1749,7 @@ private okhttp3.Call deleteNamespacedJobCall(String name, String namespace, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedJobValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedJobValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedJob(Async)"); @@ -1687,13 +1765,13 @@ private okhttp3.Call deleteNamespacedJobValidateBeforeCall(String name, String n } - private ApiResponse deleteNamespacedJobWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedJobWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedJobValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedJobAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedJobAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedJobValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1702,17 +1780,26 @@ private okhttp3.Call deleteNamespacedJobAsync(String name, String namespace, Str } public class APIdeleteNamespacedJobRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedJobRequest(String name, String namespace) { + private APIdeleteNamespacedJobRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -1722,7 +1809,7 @@ private APIdeleteNamespacedJobRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedJobRequest */ - public APIdeleteNamespacedJobRequest pretty(String pretty) { + public APIdeleteNamespacedJobRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1732,7 +1819,7 @@ public APIdeleteNamespacedJobRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedJobRequest */ - public APIdeleteNamespacedJobRequest dryRun(String dryRun) { + public APIdeleteNamespacedJobRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1742,7 +1829,7 @@ public APIdeleteNamespacedJobRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedJobRequest */ - public APIdeleteNamespacedJobRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedJobRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1752,7 +1839,7 @@ public APIdeleteNamespacedJobRequest gracePeriodSeconds(Integer gracePeriodSecon * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedJobRequest */ - public APIdeleteNamespacedJobRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedJobRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1762,7 +1849,7 @@ public APIdeleteNamespacedJobRequest ignoreStoreReadErrorWithClusterBreakingPote * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedJobRequest */ - public APIdeleteNamespacedJobRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedJobRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1772,7 +1859,7 @@ public APIdeleteNamespacedJobRequest orphanDependents(Boolean orphanDependents) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedJobRequest */ - public APIdeleteNamespacedJobRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedJobRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1782,7 +1869,7 @@ public APIdeleteNamespacedJobRequest propagationPolicy(String propagationPolicy) * @param body (optional) * @return APIdeleteNamespacedJobRequest */ - public APIdeleteNamespacedJobRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedJobRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1793,7 +1880,8 @@ public APIdeleteNamespacedJobRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1809,7 +1897,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1826,7 +1915,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1843,7 +1933,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1862,14 +1953,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedJobRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedJobRequest deleteNamespacedJob(String name, String namespace) { + public APIdeleteNamespacedJobRequest deleteNamespacedJob(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedJobRequest(name, namespace); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -1951,7 +2043,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1966,7 +2059,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1982,7 +2076,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1998,7 +2093,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2014,7 +2110,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2023,7 +2120,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listCronJobForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCronJobForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2118,19 +2215,19 @@ private okhttp3.Call listCronJobForAllNamespacesCall(Boolean allowWatchBookmarks } @SuppressWarnings("rawtypes") - private okhttp3.Call listCronJobForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCronJobForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listCronJobForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listCronJobForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listCronJobForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listCronJobForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listCronJobForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCronJobForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCronJobForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2139,16 +2236,27 @@ private okhttp3.Call listCronJobForAllNamespacesAsync(Boolean allowWatchBookmark } public class APIlistCronJobForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistCronJobForAllNamespacesRequest() { @@ -2159,7 +2267,7 @@ private APIlistCronJobForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistCronJobForAllNamespacesRequest */ - public APIlistCronJobForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistCronJobForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -2169,7 +2277,7 @@ public APIlistCronJobForAllNamespacesRequest allowWatchBookmarks(Boolean allowWa * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistCronJobForAllNamespacesRequest */ - public APIlistCronJobForAllNamespacesRequest _continue(String _continue) { + public APIlistCronJobForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2179,7 +2287,7 @@ public APIlistCronJobForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistCronJobForAllNamespacesRequest */ - public APIlistCronJobForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistCronJobForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2189,7 +2297,7 @@ public APIlistCronJobForAllNamespacesRequest fieldSelector(String fieldSelector) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistCronJobForAllNamespacesRequest */ - public APIlistCronJobForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistCronJobForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2199,7 +2307,7 @@ public APIlistCronJobForAllNamespacesRequest labelSelector(String labelSelector) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistCronJobForAllNamespacesRequest */ - public APIlistCronJobForAllNamespacesRequest limit(Integer limit) { + public APIlistCronJobForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2209,7 +2317,7 @@ public APIlistCronJobForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistCronJobForAllNamespacesRequest */ - public APIlistCronJobForAllNamespacesRequest pretty(String pretty) { + public APIlistCronJobForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2219,7 +2327,7 @@ public APIlistCronJobForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistCronJobForAllNamespacesRequest */ - public APIlistCronJobForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistCronJobForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2229,7 +2337,7 @@ public APIlistCronJobForAllNamespacesRequest resourceVersion(String resourceVers * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistCronJobForAllNamespacesRequest */ - public APIlistCronJobForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistCronJobForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2239,7 +2347,7 @@ public APIlistCronJobForAllNamespacesRequest resourceVersionMatch(String resourc * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistCronJobForAllNamespacesRequest */ - public APIlistCronJobForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistCronJobForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2249,7 +2357,7 @@ public APIlistCronJobForAllNamespacesRequest sendInitialEvents(Boolean sendIniti * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistCronJobForAllNamespacesRequest */ - public APIlistCronJobForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistCronJobForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2259,7 +2367,7 @@ public APIlistCronJobForAllNamespacesRequest timeoutSeconds(Integer timeoutSecon * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistCronJobForAllNamespacesRequest */ - public APIlistCronJobForAllNamespacesRequest watch(Boolean watch) { + public APIlistCronJobForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -2270,7 +2378,8 @@ public APIlistCronJobForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2285,7 +2394,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CronJobList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2301,7 +2411,8 @@ public V1CronJobList execute() throws ApiException { * @return ApiResponse<V1CronJobList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2317,7 +2428,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2333,7 +2445,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * list or watch objects of kind CronJob * @return APIlistCronJobForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2342,7 +2455,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr public APIlistCronJobForAllNamespacesRequest listCronJobForAllNamespaces() { return new APIlistCronJobForAllNamespacesRequest(); } - private okhttp3.Call listJobForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listJobForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2437,19 +2550,19 @@ private okhttp3.Call listJobForAllNamespacesCall(Boolean allowWatchBookmarks, St } @SuppressWarnings("rawtypes") - private okhttp3.Call listJobForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listJobForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listJobForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listJobForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listJobForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listJobForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listJobForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listJobForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listJobForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2458,16 +2571,27 @@ private okhttp3.Call listJobForAllNamespacesAsync(Boolean allowWatchBookmarks, S } public class APIlistJobForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistJobForAllNamespacesRequest() { @@ -2478,7 +2602,7 @@ private APIlistJobForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistJobForAllNamespacesRequest */ - public APIlistJobForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistJobForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -2488,7 +2612,7 @@ public APIlistJobForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchB * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistJobForAllNamespacesRequest */ - public APIlistJobForAllNamespacesRequest _continue(String _continue) { + public APIlistJobForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2498,7 +2622,7 @@ public APIlistJobForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistJobForAllNamespacesRequest */ - public APIlistJobForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistJobForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2508,7 +2632,7 @@ public APIlistJobForAllNamespacesRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistJobForAllNamespacesRequest */ - public APIlistJobForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistJobForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2518,7 +2642,7 @@ public APIlistJobForAllNamespacesRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistJobForAllNamespacesRequest */ - public APIlistJobForAllNamespacesRequest limit(Integer limit) { + public APIlistJobForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2528,7 +2652,7 @@ public APIlistJobForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistJobForAllNamespacesRequest */ - public APIlistJobForAllNamespacesRequest pretty(String pretty) { + public APIlistJobForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2538,7 +2662,7 @@ public APIlistJobForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistJobForAllNamespacesRequest */ - public APIlistJobForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistJobForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2548,7 +2672,7 @@ public APIlistJobForAllNamespacesRequest resourceVersion(String resourceVersion) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistJobForAllNamespacesRequest */ - public APIlistJobForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistJobForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2558,7 +2682,7 @@ public APIlistJobForAllNamespacesRequest resourceVersionMatch(String resourceVer * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistJobForAllNamespacesRequest */ - public APIlistJobForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistJobForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2568,7 +2692,7 @@ public APIlistJobForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEv * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistJobForAllNamespacesRequest */ - public APIlistJobForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistJobForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2578,7 +2702,7 @@ public APIlistJobForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistJobForAllNamespacesRequest */ - public APIlistJobForAllNamespacesRequest watch(Boolean watch) { + public APIlistJobForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -2589,7 +2713,8 @@ public APIlistJobForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2604,7 +2729,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1JobList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2620,7 +2746,8 @@ public V1JobList execute() throws ApiException { * @return ApiResponse<V1JobList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2636,7 +2763,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2652,7 +2780,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * list or watch objects of kind Job * @return APIlistJobForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2661,7 +2790,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws public APIlistJobForAllNamespacesRequest listJobForAllNamespaces() { return new APIlistJobForAllNamespacesRequest(); } - private okhttp3.Call listNamespacedCronJobCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedCronJobCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2757,7 +2886,7 @@ private okhttp3.Call listNamespacedCronJobCall(String namespace, String pretty, } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedCronJobValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedCronJobValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedCronJob(Async)"); @@ -2768,13 +2897,13 @@ private okhttp3.Call listNamespacedCronJobValidateBeforeCall(String namespace, S } - private ApiResponse listNamespacedCronJobWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedCronJobWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedCronJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedCronJobAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedCronJobAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedCronJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2783,20 +2912,32 @@ private okhttp3.Call listNamespacedCronJobAsync(String namespace, String pretty, } public class APIlistNamespacedCronJobRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedCronJobRequest(String namespace) { + private APIlistNamespacedCronJobRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -2805,7 +2946,7 @@ private APIlistNamespacedCronJobRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedCronJobRequest */ - public APIlistNamespacedCronJobRequest pretty(String pretty) { + public APIlistNamespacedCronJobRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2815,7 +2956,7 @@ public APIlistNamespacedCronJobRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedCronJobRequest */ - public APIlistNamespacedCronJobRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedCronJobRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -2825,7 +2966,7 @@ public APIlistNamespacedCronJobRequest allowWatchBookmarks(Boolean allowWatchBoo * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedCronJobRequest */ - public APIlistNamespacedCronJobRequest _continue(String _continue) { + public APIlistNamespacedCronJobRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2835,7 +2976,7 @@ public APIlistNamespacedCronJobRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedCronJobRequest */ - public APIlistNamespacedCronJobRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedCronJobRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2845,7 +2986,7 @@ public APIlistNamespacedCronJobRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedCronJobRequest */ - public APIlistNamespacedCronJobRequest labelSelector(String labelSelector) { + public APIlistNamespacedCronJobRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2855,7 +2996,7 @@ public APIlistNamespacedCronJobRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedCronJobRequest */ - public APIlistNamespacedCronJobRequest limit(Integer limit) { + public APIlistNamespacedCronJobRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2865,7 +3006,7 @@ public APIlistNamespacedCronJobRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedCronJobRequest */ - public APIlistNamespacedCronJobRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedCronJobRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2875,7 +3016,7 @@ public APIlistNamespacedCronJobRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedCronJobRequest */ - public APIlistNamespacedCronJobRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedCronJobRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2885,7 +3026,7 @@ public APIlistNamespacedCronJobRequest resourceVersionMatch(String resourceVersi * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedCronJobRequest */ - public APIlistNamespacedCronJobRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedCronJobRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2895,7 +3036,7 @@ public APIlistNamespacedCronJobRequest sendInitialEvents(Boolean sendInitialEven * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedCronJobRequest */ - public APIlistNamespacedCronJobRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedCronJobRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2905,7 +3046,7 @@ public APIlistNamespacedCronJobRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedCronJobRequest */ - public APIlistNamespacedCronJobRequest watch(Boolean watch) { + public APIlistNamespacedCronJobRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -2916,7 +3057,8 @@ public APIlistNamespacedCronJobRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2931,7 +3073,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CronJobList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2947,7 +3090,8 @@ public V1CronJobList execute() throws ApiException { * @return ApiResponse<V1CronJobList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2963,7 +3107,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2980,16 +3125,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedCronJobRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedCronJobRequest listNamespacedCronJob(String namespace) { + public APIlistNamespacedCronJobRequest listNamespacedCronJob(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedCronJobRequest(namespace); } - private okhttp3.Call listNamespacedJobCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedJobCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3085,7 +3231,7 @@ private okhttp3.Call listNamespacedJobCall(String namespace, String pretty, Bool } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedJobValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedJobValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedJob(Async)"); @@ -3096,13 +3242,13 @@ private okhttp3.Call listNamespacedJobValidateBeforeCall(String namespace, Strin } - private ApiResponse listNamespacedJobWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedJobWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedJobAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedJobAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3111,20 +3257,32 @@ private okhttp3.Call listNamespacedJobAsync(String namespace, String pretty, Boo } public class APIlistNamespacedJobRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedJobRequest(String namespace) { + private APIlistNamespacedJobRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -3133,7 +3291,7 @@ private APIlistNamespacedJobRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedJobRequest */ - public APIlistNamespacedJobRequest pretty(String pretty) { + public APIlistNamespacedJobRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3143,7 +3301,7 @@ public APIlistNamespacedJobRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedJobRequest */ - public APIlistNamespacedJobRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedJobRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -3153,7 +3311,7 @@ public APIlistNamespacedJobRequest allowWatchBookmarks(Boolean allowWatchBookmar * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedJobRequest */ - public APIlistNamespacedJobRequest _continue(String _continue) { + public APIlistNamespacedJobRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -3163,7 +3321,7 @@ public APIlistNamespacedJobRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedJobRequest */ - public APIlistNamespacedJobRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedJobRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -3173,7 +3331,7 @@ public APIlistNamespacedJobRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedJobRequest */ - public APIlistNamespacedJobRequest labelSelector(String labelSelector) { + public APIlistNamespacedJobRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -3183,7 +3341,7 @@ public APIlistNamespacedJobRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedJobRequest */ - public APIlistNamespacedJobRequest limit(Integer limit) { + public APIlistNamespacedJobRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -3193,7 +3351,7 @@ public APIlistNamespacedJobRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedJobRequest */ - public APIlistNamespacedJobRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedJobRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -3203,7 +3361,7 @@ public APIlistNamespacedJobRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedJobRequest */ - public APIlistNamespacedJobRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedJobRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -3213,7 +3371,7 @@ public APIlistNamespacedJobRequest resourceVersionMatch(String resourceVersionMa * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedJobRequest */ - public APIlistNamespacedJobRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedJobRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -3223,7 +3381,7 @@ public APIlistNamespacedJobRequest sendInitialEvents(Boolean sendInitialEvents) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedJobRequest */ - public APIlistNamespacedJobRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedJobRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -3233,7 +3391,7 @@ public APIlistNamespacedJobRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedJobRequest */ - public APIlistNamespacedJobRequest watch(Boolean watch) { + public APIlistNamespacedJobRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -3244,7 +3402,8 @@ public APIlistNamespacedJobRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3259,7 +3418,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1JobList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3275,7 +3435,8 @@ public V1JobList execute() throws ApiException { * @return ApiResponse<V1JobList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3291,7 +3452,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3308,16 +3470,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedJobRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedJobRequest listNamespacedJob(String namespace) { + public APIlistNamespacedJobRequest listNamespacedJob(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedJobRequest(namespace); } - private okhttp3.Call patchNamespacedCronJobCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCronJobCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3388,7 +3551,7 @@ private okhttp3.Call patchNamespacedCronJobCall(String name, String namespace, V } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedCronJobValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCronJobValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedCronJob(Async)"); @@ -3409,13 +3572,13 @@ private okhttp3.Call patchNamespacedCronJobValidateBeforeCall(String name, Strin } - private ApiResponse patchNamespacedCronJobWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedCronJobWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedCronJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedCronJobAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCronJobAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedCronJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3424,16 +3587,24 @@ private okhttp3.Call patchNamespacedCronJobAsync(String name, String namespace, } public class APIpatchNamespacedCronJobRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedCronJobRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedCronJobRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -3444,7 +3615,7 @@ private APIpatchNamespacedCronJobRequest(String name, String namespace, V1Patch * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedCronJobRequest */ - public APIpatchNamespacedCronJobRequest pretty(String pretty) { + public APIpatchNamespacedCronJobRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3454,7 +3625,7 @@ public APIpatchNamespacedCronJobRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedCronJobRequest */ - public APIpatchNamespacedCronJobRequest dryRun(String dryRun) { + public APIpatchNamespacedCronJobRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3464,7 +3635,7 @@ public APIpatchNamespacedCronJobRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedCronJobRequest */ - public APIpatchNamespacedCronJobRequest fieldManager(String fieldManager) { + public APIpatchNamespacedCronJobRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -3474,7 +3645,7 @@ public APIpatchNamespacedCronJobRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedCronJobRequest */ - public APIpatchNamespacedCronJobRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedCronJobRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -3484,7 +3655,7 @@ public APIpatchNamespacedCronJobRequest fieldValidation(String fieldValidation) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedCronJobRequest */ - public APIpatchNamespacedCronJobRequest force(Boolean force) { + public APIpatchNamespacedCronJobRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -3495,7 +3666,8 @@ public APIpatchNamespacedCronJobRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3511,7 +3683,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3528,7 +3701,8 @@ public V1CronJob execute() throws ApiException { * @return ApiResponse<V1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3545,7 +3719,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3565,17 +3740,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param body (required) * @return APIpatchNamespacedCronJobRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedCronJobRequest patchNamespacedCronJob(String name, String namespace, V1Patch body) { + public APIpatchNamespacedCronJobRequest patchNamespacedCronJob(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedCronJobRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedCronJobStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCronJobStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3646,7 +3822,7 @@ private okhttp3.Call patchNamespacedCronJobStatusCall(String name, String namesp } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedCronJobStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCronJobStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedCronJobStatus(Async)"); @@ -3667,13 +3843,13 @@ private okhttp3.Call patchNamespacedCronJobStatusValidateBeforeCall(String name, } - private ApiResponse patchNamespacedCronJobStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedCronJobStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedCronJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedCronJobStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCronJobStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedCronJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3682,16 +3858,24 @@ private okhttp3.Call patchNamespacedCronJobStatusAsync(String name, String names } public class APIpatchNamespacedCronJobStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedCronJobStatusRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedCronJobStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -3702,7 +3886,7 @@ private APIpatchNamespacedCronJobStatusRequest(String name, String namespace, V1 * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedCronJobStatusRequest */ - public APIpatchNamespacedCronJobStatusRequest pretty(String pretty) { + public APIpatchNamespacedCronJobStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3712,7 +3896,7 @@ public APIpatchNamespacedCronJobStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedCronJobStatusRequest */ - public APIpatchNamespacedCronJobStatusRequest dryRun(String dryRun) { + public APIpatchNamespacedCronJobStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3722,7 +3906,7 @@ public APIpatchNamespacedCronJobStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedCronJobStatusRequest */ - public APIpatchNamespacedCronJobStatusRequest fieldManager(String fieldManager) { + public APIpatchNamespacedCronJobStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -3732,7 +3916,7 @@ public APIpatchNamespacedCronJobStatusRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedCronJobStatusRequest */ - public APIpatchNamespacedCronJobStatusRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedCronJobStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -3742,7 +3926,7 @@ public APIpatchNamespacedCronJobStatusRequest fieldValidation(String fieldValida * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedCronJobStatusRequest */ - public APIpatchNamespacedCronJobStatusRequest force(Boolean force) { + public APIpatchNamespacedCronJobStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -3753,7 +3937,8 @@ public APIpatchNamespacedCronJobStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3769,7 +3954,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3786,7 +3972,8 @@ public V1CronJob execute() throws ApiException { * @return ApiResponse<V1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3803,7 +3990,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3823,17 +4011,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param body (required) * @return APIpatchNamespacedCronJobStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedCronJobStatusRequest patchNamespacedCronJobStatus(String name, String namespace, V1Patch body) { + public APIpatchNamespacedCronJobStatusRequest patchNamespacedCronJobStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedCronJobStatusRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedJobCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedJobCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3904,7 +4093,7 @@ private okhttp3.Call patchNamespacedJobCall(String name, String namespace, V1Pat } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedJobValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedJobValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedJob(Async)"); @@ -3925,13 +4114,13 @@ private okhttp3.Call patchNamespacedJobValidateBeforeCall(String name, String na } - private ApiResponse patchNamespacedJobWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedJobWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedJobAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedJobAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3940,16 +4129,24 @@ private okhttp3.Call patchNamespacedJobAsync(String name, String namespace, V1Pa } public class APIpatchNamespacedJobRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedJobRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedJobRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -3960,7 +4157,7 @@ private APIpatchNamespacedJobRequest(String name, String namespace, V1Patch body * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedJobRequest */ - public APIpatchNamespacedJobRequest pretty(String pretty) { + public APIpatchNamespacedJobRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3970,7 +4167,7 @@ public APIpatchNamespacedJobRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedJobRequest */ - public APIpatchNamespacedJobRequest dryRun(String dryRun) { + public APIpatchNamespacedJobRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3980,7 +4177,7 @@ public APIpatchNamespacedJobRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedJobRequest */ - public APIpatchNamespacedJobRequest fieldManager(String fieldManager) { + public APIpatchNamespacedJobRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -3990,7 +4187,7 @@ public APIpatchNamespacedJobRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedJobRequest */ - public APIpatchNamespacedJobRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedJobRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -4000,7 +4197,7 @@ public APIpatchNamespacedJobRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedJobRequest */ - public APIpatchNamespacedJobRequest force(Boolean force) { + public APIpatchNamespacedJobRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -4011,7 +4208,8 @@ public APIpatchNamespacedJobRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4027,7 +4225,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Job * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4044,7 +4243,8 @@ public V1Job execute() throws ApiException { * @return ApiResponse<V1Job> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4061,7 +4261,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4081,17 +4282,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE * @param body (required) * @return APIpatchNamespacedJobRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedJobRequest patchNamespacedJob(String name, String namespace, V1Patch body) { + public APIpatchNamespacedJobRequest patchNamespacedJob(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedJobRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedJobStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedJobStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4162,7 +4364,7 @@ private okhttp3.Call patchNamespacedJobStatusCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedJobStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedJobStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedJobStatus(Async)"); @@ -4183,13 +4385,13 @@ private okhttp3.Call patchNamespacedJobStatusValidateBeforeCall(String name, Str } - private ApiResponse patchNamespacedJobStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedJobStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedJobStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedJobStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4198,16 +4400,24 @@ private okhttp3.Call patchNamespacedJobStatusAsync(String name, String namespace } public class APIpatchNamespacedJobStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedJobStatusRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedJobStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -4218,7 +4428,7 @@ private APIpatchNamespacedJobStatusRequest(String name, String namespace, V1Patc * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedJobStatusRequest */ - public APIpatchNamespacedJobStatusRequest pretty(String pretty) { + public APIpatchNamespacedJobStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4228,7 +4438,7 @@ public APIpatchNamespacedJobStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedJobStatusRequest */ - public APIpatchNamespacedJobStatusRequest dryRun(String dryRun) { + public APIpatchNamespacedJobStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4238,7 +4448,7 @@ public APIpatchNamespacedJobStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedJobStatusRequest */ - public APIpatchNamespacedJobStatusRequest fieldManager(String fieldManager) { + public APIpatchNamespacedJobStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -4248,7 +4458,7 @@ public APIpatchNamespacedJobStatusRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedJobStatusRequest */ - public APIpatchNamespacedJobStatusRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedJobStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -4258,7 +4468,7 @@ public APIpatchNamespacedJobStatusRequest fieldValidation(String fieldValidation * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedJobStatusRequest */ - public APIpatchNamespacedJobStatusRequest force(Boolean force) { + public APIpatchNamespacedJobStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -4269,7 +4479,8 @@ public APIpatchNamespacedJobStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4285,7 +4496,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Job * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4302,7 +4514,8 @@ public V1Job execute() throws ApiException { * @return ApiResponse<V1Job> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4319,7 +4532,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4339,17 +4553,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE * @param body (required) * @return APIpatchNamespacedJobStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedJobStatusRequest patchNamespacedJobStatus(String name, String namespace, V1Patch body) { + public APIpatchNamespacedJobStatusRequest patchNamespacedJobStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedJobStatusRequest(name, namespace, body); } - private okhttp3.Call readNamespacedCronJobCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedCronJobCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4403,7 +4618,7 @@ private okhttp3.Call readNamespacedCronJobCall(String name, String namespace, St } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedCronJobValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedCronJobValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedCronJob(Async)"); @@ -4419,13 +4634,13 @@ private okhttp3.Call readNamespacedCronJobValidateBeforeCall(String name, String } - private ApiResponse readNamespacedCronJobWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedCronJobWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedCronJobValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedCronJobAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedCronJobAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedCronJobValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4434,11 +4649,14 @@ private okhttp3.Call readNamespacedCronJobAsync(String name, String namespace, S } public class APIreadNamespacedCronJobRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedCronJobRequest(String name, String namespace) { + private APIreadNamespacedCronJobRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -4448,7 +4666,7 @@ private APIreadNamespacedCronJobRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedCronJobRequest */ - public APIreadNamespacedCronJobRequest pretty(String pretty) { + public APIreadNamespacedCronJobRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4459,7 +4677,8 @@ public APIreadNamespacedCronJobRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4474,7 +4693,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4490,7 +4710,8 @@ public V1CronJob execute() throws ApiException { * @return ApiResponse<V1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4506,7 +4727,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4524,16 +4746,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedCronJobRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedCronJobRequest readNamespacedCronJob(String name, String namespace) { + public APIreadNamespacedCronJobRequest readNamespacedCronJob(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedCronJobRequest(name, namespace); } - private okhttp3.Call readNamespacedCronJobStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedCronJobStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4587,7 +4810,7 @@ private okhttp3.Call readNamespacedCronJobStatusCall(String name, String namespa } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedCronJobStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedCronJobStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedCronJobStatus(Async)"); @@ -4603,13 +4826,13 @@ private okhttp3.Call readNamespacedCronJobStatusValidateBeforeCall(String name, } - private ApiResponse readNamespacedCronJobStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedCronJobStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedCronJobStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedCronJobStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedCronJobStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedCronJobStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4618,11 +4841,14 @@ private okhttp3.Call readNamespacedCronJobStatusAsync(String name, String namesp } public class APIreadNamespacedCronJobStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedCronJobStatusRequest(String name, String namespace) { + private APIreadNamespacedCronJobStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -4632,7 +4858,7 @@ private APIreadNamespacedCronJobStatusRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedCronJobStatusRequest */ - public APIreadNamespacedCronJobStatusRequest pretty(String pretty) { + public APIreadNamespacedCronJobStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4643,7 +4869,8 @@ public APIreadNamespacedCronJobStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4658,7 +4885,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4674,7 +4902,8 @@ public V1CronJob execute() throws ApiException { * @return ApiResponse<V1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4690,7 +4919,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4708,16 +4938,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedCronJobStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedCronJobStatusRequest readNamespacedCronJobStatus(String name, String namespace) { + public APIreadNamespacedCronJobStatusRequest readNamespacedCronJobStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedCronJobStatusRequest(name, namespace); } - private okhttp3.Call readNamespacedJobCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedJobCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4771,7 +5002,7 @@ private okhttp3.Call readNamespacedJobCall(String name, String namespace, String } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedJobValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedJobValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedJob(Async)"); @@ -4787,13 +5018,13 @@ private okhttp3.Call readNamespacedJobValidateBeforeCall(String name, String nam } - private ApiResponse readNamespacedJobWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedJobWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedJobValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedJobAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedJobAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedJobValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4802,11 +5033,14 @@ private okhttp3.Call readNamespacedJobAsync(String name, String namespace, Strin } public class APIreadNamespacedJobRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedJobRequest(String name, String namespace) { + private APIreadNamespacedJobRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -4816,7 +5050,7 @@ private APIreadNamespacedJobRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedJobRequest */ - public APIreadNamespacedJobRequest pretty(String pretty) { + public APIreadNamespacedJobRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4827,7 +5061,8 @@ public APIreadNamespacedJobRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4842,7 +5077,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Job * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4858,7 +5094,8 @@ public V1Job execute() throws ApiException { * @return ApiResponse<V1Job> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4874,7 +5111,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4892,16 +5130,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedJobRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedJobRequest readNamespacedJob(String name, String namespace) { + public APIreadNamespacedJobRequest readNamespacedJob(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedJobRequest(name, namespace); } - private okhttp3.Call readNamespacedJobStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedJobStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4955,7 +5194,7 @@ private okhttp3.Call readNamespacedJobStatusCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedJobStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedJobStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedJobStatus(Async)"); @@ -4971,13 +5210,13 @@ private okhttp3.Call readNamespacedJobStatusValidateBeforeCall(String name, Stri } - private ApiResponse readNamespacedJobStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedJobStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedJobStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedJobStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedJobStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedJobStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4986,11 +5225,14 @@ private okhttp3.Call readNamespacedJobStatusAsync(String name, String namespace, } public class APIreadNamespacedJobStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedJobStatusRequest(String name, String namespace) { + private APIreadNamespacedJobStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -5000,7 +5242,7 @@ private APIreadNamespacedJobStatusRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedJobStatusRequest */ - public APIreadNamespacedJobStatusRequest pretty(String pretty) { + public APIreadNamespacedJobStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5011,7 +5253,8 @@ public APIreadNamespacedJobStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5026,7 +5269,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Job * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5042,7 +5286,8 @@ public V1Job execute() throws ApiException { * @return ApiResponse<V1Job> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5058,7 +5303,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5076,16 +5322,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedJobStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedJobStatusRequest readNamespacedJobStatus(String name, String namespace) { + public APIreadNamespacedJobStatusRequest readNamespacedJobStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedJobStatusRequest(name, namespace); } - private okhttp3.Call replaceNamespacedCronJobCall(String name, String namespace, V1CronJob body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedCronJobCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CronJob body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5152,7 +5399,7 @@ private okhttp3.Call replaceNamespacedCronJobCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedCronJobValidateBeforeCall(String name, String namespace, V1CronJob body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedCronJobValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CronJob body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedCronJob(Async)"); @@ -5173,13 +5420,13 @@ private okhttp3.Call replaceNamespacedCronJobValidateBeforeCall(String name, Str } - private ApiResponse replaceNamespacedCronJobWithHttpInfo(String name, String namespace, V1CronJob body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedCronJobWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CronJob body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedCronJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedCronJobAsync(String name, String namespace, V1CronJob body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedCronJobAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CronJob body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedCronJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5188,15 +5435,22 @@ private okhttp3.Call replaceNamespacedCronJobAsync(String name, String namespace } public class APIreplaceNamespacedCronJobRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1CronJob body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedCronJobRequest(String name, String namespace, V1CronJob body) { + private APIreplaceNamespacedCronJobRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CronJob body) { this.name = name; this.namespace = namespace; this.body = body; @@ -5207,7 +5461,7 @@ private APIreplaceNamespacedCronJobRequest(String name, String namespace, V1Cron * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedCronJobRequest */ - public APIreplaceNamespacedCronJobRequest pretty(String pretty) { + public APIreplaceNamespacedCronJobRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5217,7 +5471,7 @@ public APIreplaceNamespacedCronJobRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedCronJobRequest */ - public APIreplaceNamespacedCronJobRequest dryRun(String dryRun) { + public APIreplaceNamespacedCronJobRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -5227,7 +5481,7 @@ public APIreplaceNamespacedCronJobRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedCronJobRequest */ - public APIreplaceNamespacedCronJobRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedCronJobRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -5237,7 +5491,7 @@ public APIreplaceNamespacedCronJobRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedCronJobRequest */ - public APIreplaceNamespacedCronJobRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedCronJobRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -5248,7 +5502,8 @@ public APIreplaceNamespacedCronJobRequest fieldValidation(String fieldValidation * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5264,7 +5519,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5281,7 +5537,8 @@ public V1CronJob execute() throws ApiException { * @return ApiResponse<V1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5298,7 +5555,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5318,17 +5576,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param body (required) * @return APIreplaceNamespacedCronJobRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedCronJobRequest replaceNamespacedCronJob(String name, String namespace, V1CronJob body) { + public APIreplaceNamespacedCronJobRequest replaceNamespacedCronJob(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CronJob body) { return new APIreplaceNamespacedCronJobRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedCronJobStatusCall(String name, String namespace, V1CronJob body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedCronJobStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CronJob body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5395,7 +5654,7 @@ private okhttp3.Call replaceNamespacedCronJobStatusCall(String name, String name } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedCronJobStatusValidateBeforeCall(String name, String namespace, V1CronJob body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedCronJobStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CronJob body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedCronJobStatus(Async)"); @@ -5416,13 +5675,13 @@ private okhttp3.Call replaceNamespacedCronJobStatusValidateBeforeCall(String nam } - private ApiResponse replaceNamespacedCronJobStatusWithHttpInfo(String name, String namespace, V1CronJob body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedCronJobStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CronJob body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedCronJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedCronJobStatusAsync(String name, String namespace, V1CronJob body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedCronJobStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CronJob body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedCronJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5431,15 +5690,22 @@ private okhttp3.Call replaceNamespacedCronJobStatusAsync(String name, String nam } public class APIreplaceNamespacedCronJobStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1CronJob body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedCronJobStatusRequest(String name, String namespace, V1CronJob body) { + private APIreplaceNamespacedCronJobStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CronJob body) { this.name = name; this.namespace = namespace; this.body = body; @@ -5450,7 +5716,7 @@ private APIreplaceNamespacedCronJobStatusRequest(String name, String namespace, * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedCronJobStatusRequest */ - public APIreplaceNamespacedCronJobStatusRequest pretty(String pretty) { + public APIreplaceNamespacedCronJobStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5460,7 +5726,7 @@ public APIreplaceNamespacedCronJobStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedCronJobStatusRequest */ - public APIreplaceNamespacedCronJobStatusRequest dryRun(String dryRun) { + public APIreplaceNamespacedCronJobStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -5470,7 +5736,7 @@ public APIreplaceNamespacedCronJobStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedCronJobStatusRequest */ - public APIreplaceNamespacedCronJobStatusRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedCronJobStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -5480,7 +5746,7 @@ public APIreplaceNamespacedCronJobStatusRequest fieldManager(String fieldManager * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedCronJobStatusRequest */ - public APIreplaceNamespacedCronJobStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedCronJobStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -5491,7 +5757,8 @@ public APIreplaceNamespacedCronJobStatusRequest fieldValidation(String fieldVali * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5507,7 +5774,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5524,7 +5792,8 @@ public V1CronJob execute() throws ApiException { * @return ApiResponse<V1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5541,7 +5810,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5561,17 +5831,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param body (required) * @return APIreplaceNamespacedCronJobStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedCronJobStatusRequest replaceNamespacedCronJobStatus(String name, String namespace, V1CronJob body) { + public APIreplaceNamespacedCronJobStatusRequest replaceNamespacedCronJobStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CronJob body) { return new APIreplaceNamespacedCronJobStatusRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedJobCall(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedJobCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Job body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5638,7 +5909,7 @@ private okhttp3.Call replaceNamespacedJobCall(String name, String namespace, V1J } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedJobValidateBeforeCall(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedJobValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Job body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedJob(Async)"); @@ -5659,13 +5930,13 @@ private okhttp3.Call replaceNamespacedJobValidateBeforeCall(String name, String } - private ApiResponse replaceNamespacedJobWithHttpInfo(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedJobWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Job body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedJobAsync(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedJobAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Job body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5674,15 +5945,22 @@ private okhttp3.Call replaceNamespacedJobAsync(String name, String namespace, V1 } public class APIreplaceNamespacedJobRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Job body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedJobRequest(String name, String namespace, V1Job body) { + private APIreplaceNamespacedJobRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Job body) { this.name = name; this.namespace = namespace; this.body = body; @@ -5693,7 +5971,7 @@ private APIreplaceNamespacedJobRequest(String name, String namespace, V1Job body * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedJobRequest */ - public APIreplaceNamespacedJobRequest pretty(String pretty) { + public APIreplaceNamespacedJobRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5703,7 +5981,7 @@ public APIreplaceNamespacedJobRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedJobRequest */ - public APIreplaceNamespacedJobRequest dryRun(String dryRun) { + public APIreplaceNamespacedJobRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -5713,7 +5991,7 @@ public APIreplaceNamespacedJobRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedJobRequest */ - public APIreplaceNamespacedJobRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedJobRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -5723,7 +6001,7 @@ public APIreplaceNamespacedJobRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedJobRequest */ - public APIreplaceNamespacedJobRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedJobRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -5734,7 +6012,8 @@ public APIreplaceNamespacedJobRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5750,7 +6029,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Job * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5767,7 +6047,8 @@ public V1Job execute() throws ApiException { * @return ApiResponse<V1Job> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5784,7 +6065,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5804,17 +6086,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE * @param body (required) * @return APIreplaceNamespacedJobRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedJobRequest replaceNamespacedJob(String name, String namespace, V1Job body) { + public APIreplaceNamespacedJobRequest replaceNamespacedJob(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Job body) { return new APIreplaceNamespacedJobRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedJobStatusCall(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedJobStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Job body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5881,7 +6164,7 @@ private okhttp3.Call replaceNamespacedJobStatusCall(String name, String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedJobStatusValidateBeforeCall(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedJobStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Job body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedJobStatus(Async)"); @@ -5902,13 +6185,13 @@ private okhttp3.Call replaceNamespacedJobStatusValidateBeforeCall(String name, S } - private ApiResponse replaceNamespacedJobStatusWithHttpInfo(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedJobStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Job body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedJobStatusAsync(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedJobStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Job body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5917,15 +6200,22 @@ private okhttp3.Call replaceNamespacedJobStatusAsync(String name, String namespa } public class APIreplaceNamespacedJobStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Job body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedJobStatusRequest(String name, String namespace, V1Job body) { + private APIreplaceNamespacedJobStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Job body) { this.name = name; this.namespace = namespace; this.body = body; @@ -5936,7 +6226,7 @@ private APIreplaceNamespacedJobStatusRequest(String name, String namespace, V1Jo * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedJobStatusRequest */ - public APIreplaceNamespacedJobStatusRequest pretty(String pretty) { + public APIreplaceNamespacedJobStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5946,7 +6236,7 @@ public APIreplaceNamespacedJobStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedJobStatusRequest */ - public APIreplaceNamespacedJobStatusRequest dryRun(String dryRun) { + public APIreplaceNamespacedJobStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -5956,7 +6246,7 @@ public APIreplaceNamespacedJobStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedJobStatusRequest */ - public APIreplaceNamespacedJobStatusRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedJobStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -5966,7 +6256,7 @@ public APIreplaceNamespacedJobStatusRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedJobStatusRequest */ - public APIreplaceNamespacedJobStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedJobStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -5977,7 +6267,8 @@ public APIreplaceNamespacedJobStatusRequest fieldValidation(String fieldValidati * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5993,7 +6284,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Job * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6010,7 +6302,8 @@ public V1Job execute() throws ApiException { * @return ApiResponse<V1Job> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6027,7 +6320,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6047,14 +6341,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE * @param body (required) * @return APIreplaceNamespacedJobStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedJobStatusRequest replaceNamespacedJobStatus(String name, String namespace, V1Job body) { + public APIreplaceNamespacedJobStatusRequest replaceNamespacedJobStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Job body) { return new APIreplaceNamespacedJobStatusRequest(name, namespace, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesApi.java index 9fb184c95f..8271b16bb1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesApi.java @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1Api.java index 9bf41c755c..fe94f8d673 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1Api.java @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createCertificateSigningRequestCall(V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCertificateSigningRequestCall(@jakarta.annotation.Nonnull V1CertificateSigningRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -141,7 +141,7 @@ private okhttp3.Call createCertificateSigningRequestCall(V1CertificateSigningReq } @SuppressWarnings("rawtypes") - private okhttp3.Call createCertificateSigningRequestValidateBeforeCall(V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCertificateSigningRequestValidateBeforeCall(@jakarta.annotation.Nonnull V1CertificateSigningRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createCertificateSigningRequest(Async)"); @@ -152,13 +152,13 @@ private okhttp3.Call createCertificateSigningRequestValidateBeforeCall(V1Certifi } - private ApiResponse createCertificateSigningRequestWithHttpInfo(V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createCertificateSigningRequestWithHttpInfo(@jakarta.annotation.Nonnull V1CertificateSigningRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createCertificateSigningRequestValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createCertificateSigningRequestAsync(V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCertificateSigningRequestAsync(@jakarta.annotation.Nonnull V1CertificateSigningRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCertificateSigningRequestValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -167,13 +167,18 @@ private okhttp3.Call createCertificateSigningRequestAsync(V1CertificateSigningRe } public class APIcreateCertificateSigningRequestRequest { + @jakarta.annotation.Nonnull private final V1CertificateSigningRequest body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateCertificateSigningRequestRequest(V1CertificateSigningRequest body) { + private APIcreateCertificateSigningRequestRequest(@jakarta.annotation.Nonnull V1CertificateSigningRequest body) { this.body = body; } @@ -182,7 +187,7 @@ private APIcreateCertificateSigningRequestRequest(V1CertificateSigningRequest bo * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateCertificateSigningRequestRequest */ - public APIcreateCertificateSigningRequestRequest pretty(String pretty) { + public APIcreateCertificateSigningRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -192,7 +197,7 @@ public APIcreateCertificateSigningRequestRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateCertificateSigningRequestRequest */ - public APIcreateCertificateSigningRequestRequest dryRun(String dryRun) { + public APIcreateCertificateSigningRequestRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -202,7 +207,7 @@ public APIcreateCertificateSigningRequestRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateCertificateSigningRequestRequest */ - public APIcreateCertificateSigningRequestRequest fieldManager(String fieldManager) { + public APIcreateCertificateSigningRequestRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -212,7 +217,7 @@ public APIcreateCertificateSigningRequestRequest fieldManager(String fieldManage * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateCertificateSigningRequestRequest */ - public APIcreateCertificateSigningRequestRequest fieldValidation(String fieldValidation) { + public APIcreateCertificateSigningRequestRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -223,7 +228,8 @@ public APIcreateCertificateSigningRequestRequest fieldValidation(String fieldVal * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -240,7 +246,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -258,7 +265,8 @@ public V1CertificateSigningRequest execute() throws ApiException { * @return ApiResponse<V1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -276,7 +284,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -295,7 +304,8 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIcreateCertificateSigningRequestRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -303,10 +313,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateCertificateSigningRequestRequest createCertificateSigningRequest(V1CertificateSigningRequest body) { + public APIcreateCertificateSigningRequestRequest createCertificateSigningRequest(@jakarta.annotation.Nonnull V1CertificateSigningRequest body) { return new APIcreateCertificateSigningRequestRequest(body); } - private okhttp3.Call deleteCertificateSigningRequestCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCertificateSigningRequestCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -380,7 +390,7 @@ private okhttp3.Call deleteCertificateSigningRequestCall(String name, String pre } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCertificateSigningRequestValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCertificateSigningRequestValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteCertificateSigningRequest(Async)"); @@ -391,13 +401,13 @@ private okhttp3.Call deleteCertificateSigningRequestValidateBeforeCall(String na } - private ApiResponse deleteCertificateSigningRequestWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCertificateSigningRequestWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCertificateSigningRequestValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCertificateSigningRequestAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCertificateSigningRequestAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCertificateSigningRequestValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -406,16 +416,24 @@ private okhttp3.Call deleteCertificateSigningRequestAsync(String name, String pr } public class APIdeleteCertificateSigningRequestRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCertificateSigningRequestRequest(String name) { + private APIdeleteCertificateSigningRequestRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -424,7 +442,7 @@ private APIdeleteCertificateSigningRequestRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCertificateSigningRequestRequest */ - public APIdeleteCertificateSigningRequestRequest pretty(String pretty) { + public APIdeleteCertificateSigningRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -434,7 +452,7 @@ public APIdeleteCertificateSigningRequestRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCertificateSigningRequestRequest */ - public APIdeleteCertificateSigningRequestRequest dryRun(String dryRun) { + public APIdeleteCertificateSigningRequestRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -444,7 +462,7 @@ public APIdeleteCertificateSigningRequestRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCertificateSigningRequestRequest */ - public APIdeleteCertificateSigningRequestRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCertificateSigningRequestRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -454,7 +472,7 @@ public APIdeleteCertificateSigningRequestRequest gracePeriodSeconds(Integer grac * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCertificateSigningRequestRequest */ - public APIdeleteCertificateSigningRequestRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCertificateSigningRequestRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -464,7 +482,7 @@ public APIdeleteCertificateSigningRequestRequest ignoreStoreReadErrorWithCluster * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCertificateSigningRequestRequest */ - public APIdeleteCertificateSigningRequestRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCertificateSigningRequestRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -474,7 +492,7 @@ public APIdeleteCertificateSigningRequestRequest orphanDependents(Boolean orphan * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCertificateSigningRequestRequest */ - public APIdeleteCertificateSigningRequestRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCertificateSigningRequestRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -484,7 +502,7 @@ public APIdeleteCertificateSigningRequestRequest propagationPolicy(String propag * @param body (optional) * @return APIdeleteCertificateSigningRequestRequest */ - public APIdeleteCertificateSigningRequestRequest body(V1DeleteOptions body) { + public APIdeleteCertificateSigningRequestRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -495,7 +513,8 @@ public APIdeleteCertificateSigningRequestRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -511,7 +530,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -528,7 +548,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -545,7 +566,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -563,17 +585,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the CertificateSigningRequest (required) * @return APIdeleteCertificateSigningRequestRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteCertificateSigningRequestRequest deleteCertificateSigningRequest(String name) { + public APIdeleteCertificateSigningRequestRequest deleteCertificateSigningRequest(@jakarta.annotation.Nonnull String name) { return new APIdeleteCertificateSigningRequestRequest(name); } - private okhttp3.Call deleteCollectionCertificateSigningRequestCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCertificateSigningRequestCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -678,19 +701,19 @@ private okhttp3.Call deleteCollectionCertificateSigningRequestCall(String pretty } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionCertificateSigningRequestValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCertificateSigningRequestValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionCertificateSigningRequestCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionCertificateSigningRequestWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionCertificateSigningRequestWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionCertificateSigningRequestValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionCertificateSigningRequestAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCertificateSigningRequestAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionCertificateSigningRequestValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -699,20 +722,35 @@ private okhttp3.Call deleteCollectionCertificateSigningRequestAsync(String prett } public class APIdeleteCollectionCertificateSigningRequestRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionCertificateSigningRequestRequest() { @@ -723,7 +761,7 @@ private APIdeleteCollectionCertificateSigningRequestRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionCertificateSigningRequestRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest pretty(String pretty) { + public APIdeleteCollectionCertificateSigningRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -733,7 +771,7 @@ public APIdeleteCollectionCertificateSigningRequestRequest pretty(String pretty) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionCertificateSigningRequestRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest _continue(String _continue) { + public APIdeleteCollectionCertificateSigningRequestRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -743,7 +781,7 @@ public APIdeleteCollectionCertificateSigningRequestRequest _continue(String _con * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionCertificateSigningRequestRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest dryRun(String dryRun) { + public APIdeleteCollectionCertificateSigningRequestRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -753,7 +791,7 @@ public APIdeleteCollectionCertificateSigningRequestRequest dryRun(String dryRun) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionCertificateSigningRequestRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionCertificateSigningRequestRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -763,7 +801,7 @@ public APIdeleteCollectionCertificateSigningRequestRequest fieldSelector(String * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionCertificateSigningRequestRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionCertificateSigningRequestRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -773,7 +811,7 @@ public APIdeleteCollectionCertificateSigningRequestRequest gracePeriodSeconds(In * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionCertificateSigningRequestRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionCertificateSigningRequestRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -783,7 +821,7 @@ public APIdeleteCollectionCertificateSigningRequestRequest ignoreStoreReadErrorW * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionCertificateSigningRequestRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest labelSelector(String labelSelector) { + public APIdeleteCollectionCertificateSigningRequestRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -793,7 +831,7 @@ public APIdeleteCollectionCertificateSigningRequestRequest labelSelector(String * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionCertificateSigningRequestRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest limit(Integer limit) { + public APIdeleteCollectionCertificateSigningRequestRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -803,7 +841,7 @@ public APIdeleteCollectionCertificateSigningRequestRequest limit(Integer limit) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionCertificateSigningRequestRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionCertificateSigningRequestRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -813,7 +851,7 @@ public APIdeleteCollectionCertificateSigningRequestRequest orphanDependents(Bool * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionCertificateSigningRequestRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionCertificateSigningRequestRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -823,7 +861,7 @@ public APIdeleteCollectionCertificateSigningRequestRequest propagationPolicy(Str * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionCertificateSigningRequestRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionCertificateSigningRequestRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -833,7 +871,7 @@ public APIdeleteCollectionCertificateSigningRequestRequest resourceVersion(Strin * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionCertificateSigningRequestRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionCertificateSigningRequestRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -843,7 +881,7 @@ public APIdeleteCollectionCertificateSigningRequestRequest resourceVersionMatch( * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionCertificateSigningRequestRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionCertificateSigningRequestRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -853,7 +891,7 @@ public APIdeleteCollectionCertificateSigningRequestRequest sendInitialEvents(Boo * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionCertificateSigningRequestRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionCertificateSigningRequestRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -863,7 +901,7 @@ public APIdeleteCollectionCertificateSigningRequestRequest timeoutSeconds(Intege * @param body (optional) * @return APIdeleteCollectionCertificateSigningRequestRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest body(V1DeleteOptions body) { + public APIdeleteCollectionCertificateSigningRequestRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -874,7 +912,8 @@ public APIdeleteCollectionCertificateSigningRequestRequest body(V1DeleteOptions * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -889,7 +928,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -905,7 +945,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -921,7 +962,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -937,7 +979,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of CertificateSigningRequest * @return APIdeleteCollectionCertificateSigningRequestRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1025,7 +1068,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1040,7 +1084,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1056,7 +1101,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1072,7 +1118,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1088,7 +1135,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1097,7 +1145,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listCertificateSigningRequestCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCertificateSigningRequestCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1192,19 +1240,19 @@ private okhttp3.Call listCertificateSigningRequestCall(String pretty, Boolean al } @SuppressWarnings("rawtypes") - private okhttp3.Call listCertificateSigningRequestValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCertificateSigningRequestValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listCertificateSigningRequestCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listCertificateSigningRequestWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listCertificateSigningRequestWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listCertificateSigningRequestValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listCertificateSigningRequestAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCertificateSigningRequestAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCertificateSigningRequestValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1213,16 +1261,27 @@ private okhttp3.Call listCertificateSigningRequestAsync(String pretty, Boolean a } public class APIlistCertificateSigningRequestRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistCertificateSigningRequestRequest() { @@ -1233,7 +1292,7 @@ private APIlistCertificateSigningRequestRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistCertificateSigningRequestRequest */ - public APIlistCertificateSigningRequestRequest pretty(String pretty) { + public APIlistCertificateSigningRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1243,7 +1302,7 @@ public APIlistCertificateSigningRequestRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistCertificateSigningRequestRequest */ - public APIlistCertificateSigningRequestRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistCertificateSigningRequestRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1253,7 +1312,7 @@ public APIlistCertificateSigningRequestRequest allowWatchBookmarks(Boolean allow * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistCertificateSigningRequestRequest */ - public APIlistCertificateSigningRequestRequest _continue(String _continue) { + public APIlistCertificateSigningRequestRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1263,7 +1322,7 @@ public APIlistCertificateSigningRequestRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistCertificateSigningRequestRequest */ - public APIlistCertificateSigningRequestRequest fieldSelector(String fieldSelector) { + public APIlistCertificateSigningRequestRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1273,7 +1332,7 @@ public APIlistCertificateSigningRequestRequest fieldSelector(String fieldSelecto * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistCertificateSigningRequestRequest */ - public APIlistCertificateSigningRequestRequest labelSelector(String labelSelector) { + public APIlistCertificateSigningRequestRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1283,7 +1342,7 @@ public APIlistCertificateSigningRequestRequest labelSelector(String labelSelecto * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistCertificateSigningRequestRequest */ - public APIlistCertificateSigningRequestRequest limit(Integer limit) { + public APIlistCertificateSigningRequestRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1293,7 +1352,7 @@ public APIlistCertificateSigningRequestRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistCertificateSigningRequestRequest */ - public APIlistCertificateSigningRequestRequest resourceVersion(String resourceVersion) { + public APIlistCertificateSigningRequestRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1303,7 +1362,7 @@ public APIlistCertificateSigningRequestRequest resourceVersion(String resourceVe * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistCertificateSigningRequestRequest */ - public APIlistCertificateSigningRequestRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistCertificateSigningRequestRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1313,7 +1372,7 @@ public APIlistCertificateSigningRequestRequest resourceVersionMatch(String resou * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistCertificateSigningRequestRequest */ - public APIlistCertificateSigningRequestRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistCertificateSigningRequestRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1323,7 +1382,7 @@ public APIlistCertificateSigningRequestRequest sendInitialEvents(Boolean sendIni * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistCertificateSigningRequestRequest */ - public APIlistCertificateSigningRequestRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistCertificateSigningRequestRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1333,7 +1392,7 @@ public APIlistCertificateSigningRequestRequest timeoutSeconds(Integer timeoutSec * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistCertificateSigningRequestRequest */ - public APIlistCertificateSigningRequestRequest watch(Boolean watch) { + public APIlistCertificateSigningRequestRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1344,7 +1403,8 @@ public APIlistCertificateSigningRequestRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1359,7 +1419,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CertificateSigningRequestList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1375,7 +1436,8 @@ public V1CertificateSigningRequestList execute() throws ApiException { * @return ApiResponse<V1CertificateSigningRequestList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1391,7 +1453,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1407,7 +1470,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -1416,7 +1480,7 @@ public okhttp3.Call executeAsync(final ApiCallback patchCertificateSigningRequestWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchCertificateSigningRequestWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchCertificateSigningRequestValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchCertificateSigningRequestAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCertificateSigningRequestAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchCertificateSigningRequestValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1517,15 +1581,22 @@ private okhttp3.Call patchCertificateSigningRequestAsync(String name, V1Patch bo } public class APIpatchCertificateSigningRequestRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchCertificateSigningRequestRequest(String name, V1Patch body) { + private APIpatchCertificateSigningRequestRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -1535,7 +1606,7 @@ private APIpatchCertificateSigningRequestRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchCertificateSigningRequestRequest */ - public APIpatchCertificateSigningRequestRequest pretty(String pretty) { + public APIpatchCertificateSigningRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1545,7 +1616,7 @@ public APIpatchCertificateSigningRequestRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchCertificateSigningRequestRequest */ - public APIpatchCertificateSigningRequestRequest dryRun(String dryRun) { + public APIpatchCertificateSigningRequestRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1555,7 +1626,7 @@ public APIpatchCertificateSigningRequestRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchCertificateSigningRequestRequest */ - public APIpatchCertificateSigningRequestRequest fieldManager(String fieldManager) { + public APIpatchCertificateSigningRequestRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1565,7 +1636,7 @@ public APIpatchCertificateSigningRequestRequest fieldManager(String fieldManager * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchCertificateSigningRequestRequest */ - public APIpatchCertificateSigningRequestRequest fieldValidation(String fieldValidation) { + public APIpatchCertificateSigningRequestRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1575,7 +1646,7 @@ public APIpatchCertificateSigningRequestRequest fieldValidation(String fieldVali * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchCertificateSigningRequestRequest */ - public APIpatchCertificateSigningRequestRequest force(Boolean force) { + public APIpatchCertificateSigningRequestRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1586,7 +1657,8 @@ public APIpatchCertificateSigningRequestRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1602,7 +1674,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1619,7 +1692,8 @@ public V1CertificateSigningRequest execute() throws ApiException { * @return ApiResponse<V1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1636,7 +1710,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1655,17 +1730,18 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIpatchCertificateSigningRequestRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchCertificateSigningRequestRequest patchCertificateSigningRequest(String name, V1Patch body) { + public APIpatchCertificateSigningRequestRequest patchCertificateSigningRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchCertificateSigningRequestRequest(name, body); } - private okhttp3.Call patchCertificateSigningRequestApprovalCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCertificateSigningRequestApprovalCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1735,7 +1811,7 @@ private okhttp3.Call patchCertificateSigningRequestApprovalCall(String name, V1P } @SuppressWarnings("rawtypes") - private okhttp3.Call patchCertificateSigningRequestApprovalValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCertificateSigningRequestApprovalValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchCertificateSigningRequestApproval(Async)"); @@ -1751,13 +1827,13 @@ private okhttp3.Call patchCertificateSigningRequestApprovalValidateBeforeCall(St } - private ApiResponse patchCertificateSigningRequestApprovalWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchCertificateSigningRequestApprovalWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchCertificateSigningRequestApprovalValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchCertificateSigningRequestApprovalAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCertificateSigningRequestApprovalAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchCertificateSigningRequestApprovalValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1766,15 +1842,22 @@ private okhttp3.Call patchCertificateSigningRequestApprovalAsync(String name, V1 } public class APIpatchCertificateSigningRequestApprovalRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchCertificateSigningRequestApprovalRequest(String name, V1Patch body) { + private APIpatchCertificateSigningRequestApprovalRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -1784,7 +1867,7 @@ private APIpatchCertificateSigningRequestApprovalRequest(String name, V1Patch bo * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchCertificateSigningRequestApprovalRequest */ - public APIpatchCertificateSigningRequestApprovalRequest pretty(String pretty) { + public APIpatchCertificateSigningRequestApprovalRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1794,7 +1877,7 @@ public APIpatchCertificateSigningRequestApprovalRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchCertificateSigningRequestApprovalRequest */ - public APIpatchCertificateSigningRequestApprovalRequest dryRun(String dryRun) { + public APIpatchCertificateSigningRequestApprovalRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1804,7 +1887,7 @@ public APIpatchCertificateSigningRequestApprovalRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchCertificateSigningRequestApprovalRequest */ - public APIpatchCertificateSigningRequestApprovalRequest fieldManager(String fieldManager) { + public APIpatchCertificateSigningRequestApprovalRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1814,7 +1897,7 @@ public APIpatchCertificateSigningRequestApprovalRequest fieldManager(String fiel * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchCertificateSigningRequestApprovalRequest */ - public APIpatchCertificateSigningRequestApprovalRequest fieldValidation(String fieldValidation) { + public APIpatchCertificateSigningRequestApprovalRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1824,7 +1907,7 @@ public APIpatchCertificateSigningRequestApprovalRequest fieldValidation(String f * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchCertificateSigningRequestApprovalRequest */ - public APIpatchCertificateSigningRequestApprovalRequest force(Boolean force) { + public APIpatchCertificateSigningRequestApprovalRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1835,7 +1918,8 @@ public APIpatchCertificateSigningRequestApprovalRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1851,7 +1935,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1868,7 +1953,8 @@ public V1CertificateSigningRequest execute() throws ApiException { * @return ApiResponse<V1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1885,7 +1971,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1904,17 +1991,18 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIpatchCertificateSigningRequestApprovalRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchCertificateSigningRequestApprovalRequest patchCertificateSigningRequestApproval(String name, V1Patch body) { + public APIpatchCertificateSigningRequestApprovalRequest patchCertificateSigningRequestApproval(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchCertificateSigningRequestApprovalRequest(name, body); } - private okhttp3.Call patchCertificateSigningRequestStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCertificateSigningRequestStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1984,7 +2072,7 @@ private okhttp3.Call patchCertificateSigningRequestStatusCall(String name, V1Pat } @SuppressWarnings("rawtypes") - private okhttp3.Call patchCertificateSigningRequestStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCertificateSigningRequestStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchCertificateSigningRequestStatus(Async)"); @@ -2000,13 +2088,13 @@ private okhttp3.Call patchCertificateSigningRequestStatusValidateBeforeCall(Stri } - private ApiResponse patchCertificateSigningRequestStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchCertificateSigningRequestStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchCertificateSigningRequestStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchCertificateSigningRequestStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCertificateSigningRequestStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchCertificateSigningRequestStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2015,15 +2103,22 @@ private okhttp3.Call patchCertificateSigningRequestStatusAsync(String name, V1Pa } public class APIpatchCertificateSigningRequestStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchCertificateSigningRequestStatusRequest(String name, V1Patch body) { + private APIpatchCertificateSigningRequestStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -2033,7 +2128,7 @@ private APIpatchCertificateSigningRequestStatusRequest(String name, V1Patch body * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchCertificateSigningRequestStatusRequest */ - public APIpatchCertificateSigningRequestStatusRequest pretty(String pretty) { + public APIpatchCertificateSigningRequestStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2043,7 +2138,7 @@ public APIpatchCertificateSigningRequestStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchCertificateSigningRequestStatusRequest */ - public APIpatchCertificateSigningRequestStatusRequest dryRun(String dryRun) { + public APIpatchCertificateSigningRequestStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2053,7 +2148,7 @@ public APIpatchCertificateSigningRequestStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchCertificateSigningRequestStatusRequest */ - public APIpatchCertificateSigningRequestStatusRequest fieldManager(String fieldManager) { + public APIpatchCertificateSigningRequestStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2063,7 +2158,7 @@ public APIpatchCertificateSigningRequestStatusRequest fieldManager(String fieldM * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchCertificateSigningRequestStatusRequest */ - public APIpatchCertificateSigningRequestStatusRequest fieldValidation(String fieldValidation) { + public APIpatchCertificateSigningRequestStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2073,7 +2168,7 @@ public APIpatchCertificateSigningRequestStatusRequest fieldValidation(String fie * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchCertificateSigningRequestStatusRequest */ - public APIpatchCertificateSigningRequestStatusRequest force(Boolean force) { + public APIpatchCertificateSigningRequestStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -2084,7 +2179,8 @@ public APIpatchCertificateSigningRequestStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2100,7 +2196,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2117,7 +2214,8 @@ public V1CertificateSigningRequest execute() throws ApiException { * @return ApiResponse<V1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2134,7 +2232,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2153,17 +2252,18 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIpatchCertificateSigningRequestStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchCertificateSigningRequestStatusRequest patchCertificateSigningRequestStatus(String name, V1Patch body) { + public APIpatchCertificateSigningRequestStatusRequest patchCertificateSigningRequestStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchCertificateSigningRequestStatusRequest(name, body); } - private okhttp3.Call readCertificateSigningRequestCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCertificateSigningRequestCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2216,7 +2316,7 @@ private okhttp3.Call readCertificateSigningRequestCall(String name, String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call readCertificateSigningRequestValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCertificateSigningRequestValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readCertificateSigningRequest(Async)"); @@ -2227,13 +2327,13 @@ private okhttp3.Call readCertificateSigningRequestValidateBeforeCall(String name } - private ApiResponse readCertificateSigningRequestWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readCertificateSigningRequestWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readCertificateSigningRequestValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readCertificateSigningRequestAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCertificateSigningRequestAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readCertificateSigningRequestValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2242,10 +2342,12 @@ private okhttp3.Call readCertificateSigningRequestAsync(String name, String pret } public class APIreadCertificateSigningRequestRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadCertificateSigningRequestRequest(String name) { + private APIreadCertificateSigningRequestRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -2254,7 +2356,7 @@ private APIreadCertificateSigningRequestRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadCertificateSigningRequestRequest */ - public APIreadCertificateSigningRequestRequest pretty(String pretty) { + public APIreadCertificateSigningRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2265,7 +2367,8 @@ public APIreadCertificateSigningRequestRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2280,7 +2383,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2296,7 +2400,8 @@ public V1CertificateSigningRequest execute() throws ApiException { * @return ApiResponse<V1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2312,7 +2417,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2329,16 +2435,17 @@ public okhttp3.Call executeAsync(final ApiCallback * @param name name of the CertificateSigningRequest (required) * @return APIreadCertificateSigningRequestRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadCertificateSigningRequestRequest readCertificateSigningRequest(String name) { + public APIreadCertificateSigningRequestRequest readCertificateSigningRequest(@jakarta.annotation.Nonnull String name) { return new APIreadCertificateSigningRequestRequest(name); } - private okhttp3.Call readCertificateSigningRequestApprovalCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCertificateSigningRequestApprovalCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2391,7 +2498,7 @@ private okhttp3.Call readCertificateSigningRequestApprovalCall(String name, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call readCertificateSigningRequestApprovalValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCertificateSigningRequestApprovalValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readCertificateSigningRequestApproval(Async)"); @@ -2402,13 +2509,13 @@ private okhttp3.Call readCertificateSigningRequestApprovalValidateBeforeCall(Str } - private ApiResponse readCertificateSigningRequestApprovalWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readCertificateSigningRequestApprovalWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readCertificateSigningRequestApprovalValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readCertificateSigningRequestApprovalAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCertificateSigningRequestApprovalAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readCertificateSigningRequestApprovalValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2417,10 +2524,12 @@ private okhttp3.Call readCertificateSigningRequestApprovalAsync(String name, Str } public class APIreadCertificateSigningRequestApprovalRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadCertificateSigningRequestApprovalRequest(String name) { + private APIreadCertificateSigningRequestApprovalRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -2429,7 +2538,7 @@ private APIreadCertificateSigningRequestApprovalRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadCertificateSigningRequestApprovalRequest */ - public APIreadCertificateSigningRequestApprovalRequest pretty(String pretty) { + public APIreadCertificateSigningRequestApprovalRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2440,7 +2549,8 @@ public APIreadCertificateSigningRequestApprovalRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2455,7 +2565,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2471,7 +2582,8 @@ public V1CertificateSigningRequest execute() throws ApiException { * @return ApiResponse<V1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2487,7 +2599,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2504,16 +2617,17 @@ public okhttp3.Call executeAsync(final ApiCallback * @param name name of the CertificateSigningRequest (required) * @return APIreadCertificateSigningRequestApprovalRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadCertificateSigningRequestApprovalRequest readCertificateSigningRequestApproval(String name) { + public APIreadCertificateSigningRequestApprovalRequest readCertificateSigningRequestApproval(@jakarta.annotation.Nonnull String name) { return new APIreadCertificateSigningRequestApprovalRequest(name); } - private okhttp3.Call readCertificateSigningRequestStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCertificateSigningRequestStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2566,7 +2680,7 @@ private okhttp3.Call readCertificateSigningRequestStatusCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call readCertificateSigningRequestStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCertificateSigningRequestStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readCertificateSigningRequestStatus(Async)"); @@ -2577,13 +2691,13 @@ private okhttp3.Call readCertificateSigningRequestStatusValidateBeforeCall(Strin } - private ApiResponse readCertificateSigningRequestStatusWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readCertificateSigningRequestStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readCertificateSigningRequestStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readCertificateSigningRequestStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCertificateSigningRequestStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readCertificateSigningRequestStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2592,10 +2706,12 @@ private okhttp3.Call readCertificateSigningRequestStatusAsync(String name, Strin } public class APIreadCertificateSigningRequestStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadCertificateSigningRequestStatusRequest(String name) { + private APIreadCertificateSigningRequestStatusRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -2604,7 +2720,7 @@ private APIreadCertificateSigningRequestStatusRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadCertificateSigningRequestStatusRequest */ - public APIreadCertificateSigningRequestStatusRequest pretty(String pretty) { + public APIreadCertificateSigningRequestStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2615,7 +2731,8 @@ public APIreadCertificateSigningRequestStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2630,7 +2747,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2646,7 +2764,8 @@ public V1CertificateSigningRequest execute() throws ApiException { * @return ApiResponse<V1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2662,7 +2781,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2679,16 +2799,17 @@ public okhttp3.Call executeAsync(final ApiCallback * @param name name of the CertificateSigningRequest (required) * @return APIreadCertificateSigningRequestStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadCertificateSigningRequestStatusRequest readCertificateSigningRequestStatus(String name) { + public APIreadCertificateSigningRequestStatusRequest readCertificateSigningRequestStatus(@jakarta.annotation.Nonnull String name) { return new APIreadCertificateSigningRequestStatusRequest(name); } - private okhttp3.Call replaceCertificateSigningRequestCall(String name, V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCertificateSigningRequestCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2754,7 +2875,7 @@ private okhttp3.Call replaceCertificateSigningRequestCall(String name, V1Certifi } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceCertificateSigningRequestValidateBeforeCall(String name, V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCertificateSigningRequestValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceCertificateSigningRequest(Async)"); @@ -2770,13 +2891,13 @@ private okhttp3.Call replaceCertificateSigningRequestValidateBeforeCall(String n } - private ApiResponse replaceCertificateSigningRequestWithHttpInfo(String name, V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceCertificateSigningRequestWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceCertificateSigningRequestValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceCertificateSigningRequestAsync(String name, V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCertificateSigningRequestAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceCertificateSigningRequestValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2785,14 +2906,20 @@ private okhttp3.Call replaceCertificateSigningRequestAsync(String name, V1Certif } public class APIreplaceCertificateSigningRequestRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1CertificateSigningRequest body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceCertificateSigningRequestRequest(String name, V1CertificateSigningRequest body) { + private APIreplaceCertificateSigningRequestRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body) { this.name = name; this.body = body; } @@ -2802,7 +2929,7 @@ private APIreplaceCertificateSigningRequestRequest(String name, V1CertificateSig * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceCertificateSigningRequestRequest */ - public APIreplaceCertificateSigningRequestRequest pretty(String pretty) { + public APIreplaceCertificateSigningRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2812,7 +2939,7 @@ public APIreplaceCertificateSigningRequestRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceCertificateSigningRequestRequest */ - public APIreplaceCertificateSigningRequestRequest dryRun(String dryRun) { + public APIreplaceCertificateSigningRequestRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2822,7 +2949,7 @@ public APIreplaceCertificateSigningRequestRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceCertificateSigningRequestRequest */ - public APIreplaceCertificateSigningRequestRequest fieldManager(String fieldManager) { + public APIreplaceCertificateSigningRequestRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2832,7 +2959,7 @@ public APIreplaceCertificateSigningRequestRequest fieldManager(String fieldManag * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceCertificateSigningRequestRequest */ - public APIreplaceCertificateSigningRequestRequest fieldValidation(String fieldValidation) { + public APIreplaceCertificateSigningRequestRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2843,7 +2970,8 @@ public APIreplaceCertificateSigningRequestRequest fieldValidation(String fieldVa * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2859,7 +2987,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2876,7 +3005,8 @@ public V1CertificateSigningRequest execute() throws ApiException { * @return ApiResponse<V1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2893,7 +3023,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2912,17 +3043,18 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIreplaceCertificateSigningRequestRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceCertificateSigningRequestRequest replaceCertificateSigningRequest(String name, V1CertificateSigningRequest body) { + public APIreplaceCertificateSigningRequestRequest replaceCertificateSigningRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body) { return new APIreplaceCertificateSigningRequestRequest(name, body); } - private okhttp3.Call replaceCertificateSigningRequestApprovalCall(String name, V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCertificateSigningRequestApprovalCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2988,7 +3120,7 @@ private okhttp3.Call replaceCertificateSigningRequestApprovalCall(String name, V } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceCertificateSigningRequestApprovalValidateBeforeCall(String name, V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCertificateSigningRequestApprovalValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceCertificateSigningRequestApproval(Async)"); @@ -3004,13 +3136,13 @@ private okhttp3.Call replaceCertificateSigningRequestApprovalValidateBeforeCall( } - private ApiResponse replaceCertificateSigningRequestApprovalWithHttpInfo(String name, V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceCertificateSigningRequestApprovalWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceCertificateSigningRequestApprovalValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceCertificateSigningRequestApprovalAsync(String name, V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCertificateSigningRequestApprovalAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceCertificateSigningRequestApprovalValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3019,14 +3151,20 @@ private okhttp3.Call replaceCertificateSigningRequestApprovalAsync(String name, } public class APIreplaceCertificateSigningRequestApprovalRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1CertificateSigningRequest body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceCertificateSigningRequestApprovalRequest(String name, V1CertificateSigningRequest body) { + private APIreplaceCertificateSigningRequestApprovalRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body) { this.name = name; this.body = body; } @@ -3036,7 +3174,7 @@ private APIreplaceCertificateSigningRequestApprovalRequest(String name, V1Certif * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceCertificateSigningRequestApprovalRequest */ - public APIreplaceCertificateSigningRequestApprovalRequest pretty(String pretty) { + public APIreplaceCertificateSigningRequestApprovalRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3046,7 +3184,7 @@ public APIreplaceCertificateSigningRequestApprovalRequest pretty(String pretty) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceCertificateSigningRequestApprovalRequest */ - public APIreplaceCertificateSigningRequestApprovalRequest dryRun(String dryRun) { + public APIreplaceCertificateSigningRequestApprovalRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3056,7 +3194,7 @@ public APIreplaceCertificateSigningRequestApprovalRequest dryRun(String dryRun) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceCertificateSigningRequestApprovalRequest */ - public APIreplaceCertificateSigningRequestApprovalRequest fieldManager(String fieldManager) { + public APIreplaceCertificateSigningRequestApprovalRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -3066,7 +3204,7 @@ public APIreplaceCertificateSigningRequestApprovalRequest fieldManager(String fi * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceCertificateSigningRequestApprovalRequest */ - public APIreplaceCertificateSigningRequestApprovalRequest fieldValidation(String fieldValidation) { + public APIreplaceCertificateSigningRequestApprovalRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -3077,7 +3215,8 @@ public APIreplaceCertificateSigningRequestApprovalRequest fieldValidation(String * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3093,7 +3232,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3110,7 +3250,8 @@ public V1CertificateSigningRequest execute() throws ApiException { * @return ApiResponse<V1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3127,7 +3268,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3146,17 +3288,18 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIreplaceCertificateSigningRequestApprovalRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceCertificateSigningRequestApprovalRequest replaceCertificateSigningRequestApproval(String name, V1CertificateSigningRequest body) { + public APIreplaceCertificateSigningRequestApprovalRequest replaceCertificateSigningRequestApproval(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body) { return new APIreplaceCertificateSigningRequestApprovalRequest(name, body); } - private okhttp3.Call replaceCertificateSigningRequestStatusCall(String name, V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCertificateSigningRequestStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3222,7 +3365,7 @@ private okhttp3.Call replaceCertificateSigningRequestStatusCall(String name, V1C } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceCertificateSigningRequestStatusValidateBeforeCall(String name, V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCertificateSigningRequestStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceCertificateSigningRequestStatus(Async)"); @@ -3238,13 +3381,13 @@ private okhttp3.Call replaceCertificateSigningRequestStatusValidateBeforeCall(St } - private ApiResponse replaceCertificateSigningRequestStatusWithHttpInfo(String name, V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceCertificateSigningRequestStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceCertificateSigningRequestStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceCertificateSigningRequestStatusAsync(String name, V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCertificateSigningRequestStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceCertificateSigningRequestStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3253,14 +3396,20 @@ private okhttp3.Call replaceCertificateSigningRequestStatusAsync(String name, V1 } public class APIreplaceCertificateSigningRequestStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1CertificateSigningRequest body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceCertificateSigningRequestStatusRequest(String name, V1CertificateSigningRequest body) { + private APIreplaceCertificateSigningRequestStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body) { this.name = name; this.body = body; } @@ -3270,7 +3419,7 @@ private APIreplaceCertificateSigningRequestStatusRequest(String name, V1Certific * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceCertificateSigningRequestStatusRequest */ - public APIreplaceCertificateSigningRequestStatusRequest pretty(String pretty) { + public APIreplaceCertificateSigningRequestStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3280,7 +3429,7 @@ public APIreplaceCertificateSigningRequestStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceCertificateSigningRequestStatusRequest */ - public APIreplaceCertificateSigningRequestStatusRequest dryRun(String dryRun) { + public APIreplaceCertificateSigningRequestStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3290,7 +3439,7 @@ public APIreplaceCertificateSigningRequestStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceCertificateSigningRequestStatusRequest */ - public APIreplaceCertificateSigningRequestStatusRequest fieldManager(String fieldManager) { + public APIreplaceCertificateSigningRequestStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -3300,7 +3449,7 @@ public APIreplaceCertificateSigningRequestStatusRequest fieldManager(String fiel * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceCertificateSigningRequestStatusRequest */ - public APIreplaceCertificateSigningRequestStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceCertificateSigningRequestStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -3311,7 +3460,8 @@ public APIreplaceCertificateSigningRequestStatusRequest fieldValidation(String f * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3327,7 +3477,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3344,7 +3495,8 @@ public V1CertificateSigningRequest execute() throws ApiException { * @return ApiResponse<V1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3361,7 +3513,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3380,14 +3533,15 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIreplaceCertificateSigningRequestStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceCertificateSigningRequestStatusRequest replaceCertificateSigningRequestStatus(String name, V1CertificateSigningRequest body) { + public APIreplaceCertificateSigningRequestStatusRequest replaceCertificateSigningRequestStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body) { return new APIreplaceCertificateSigningRequestStatusRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java index efc957a0be..93a1aefe81 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createClusterTrustBundleCall(V1alpha1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createClusterTrustBundleCall(@jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -141,7 +141,7 @@ private okhttp3.Call createClusterTrustBundleCall(V1alpha1ClusterTrustBundle bod } @SuppressWarnings("rawtypes") - private okhttp3.Call createClusterTrustBundleValidateBeforeCall(V1alpha1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createClusterTrustBundle(Async)"); @@ -152,13 +152,13 @@ private okhttp3.Call createClusterTrustBundleValidateBeforeCall(V1alpha1ClusterT } - private ApiResponse createClusterTrustBundleWithHttpInfo(V1alpha1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createClusterTrustBundleValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createClusterTrustBundleAsync(V1alpha1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createClusterTrustBundleAsync(@jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createClusterTrustBundleValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -167,13 +167,18 @@ private okhttp3.Call createClusterTrustBundleAsync(V1alpha1ClusterTrustBundle bo } public class APIcreateClusterTrustBundleRequest { + @jakarta.annotation.Nonnull private final V1alpha1ClusterTrustBundle body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateClusterTrustBundleRequest(V1alpha1ClusterTrustBundle body) { + private APIcreateClusterTrustBundleRequest(@jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body) { this.body = body; } @@ -182,7 +187,7 @@ private APIcreateClusterTrustBundleRequest(V1alpha1ClusterTrustBundle body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateClusterTrustBundleRequest */ - public APIcreateClusterTrustBundleRequest pretty(String pretty) { + public APIcreateClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -192,7 +197,7 @@ public APIcreateClusterTrustBundleRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateClusterTrustBundleRequest */ - public APIcreateClusterTrustBundleRequest dryRun(String dryRun) { + public APIcreateClusterTrustBundleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -202,7 +207,7 @@ public APIcreateClusterTrustBundleRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateClusterTrustBundleRequest */ - public APIcreateClusterTrustBundleRequest fieldManager(String fieldManager) { + public APIcreateClusterTrustBundleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -212,7 +217,7 @@ public APIcreateClusterTrustBundleRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateClusterTrustBundleRequest */ - public APIcreateClusterTrustBundleRequest fieldValidation(String fieldValidation) { + public APIcreateClusterTrustBundleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -223,7 +228,8 @@ public APIcreateClusterTrustBundleRequest fieldValidation(String fieldValidation * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -240,7 +246,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1ClusterTrustBundle * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -258,7 +265,8 @@ public V1alpha1ClusterTrustBundle execute() throws ApiException { * @return ApiResponse<V1alpha1ClusterTrustBundle> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -276,7 +284,8 @@ public ApiResponse executeWithHttpInfo() throws ApiE * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -295,7 +304,8 @@ public okhttp3.Call executeAsync(final ApiCallback _ * @param body (required) * @return APIcreateClusterTrustBundleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -303,10 +313,10 @@ public okhttp3.Call executeAsync(final ApiCallback _
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateClusterTrustBundleRequest createClusterTrustBundle(V1alpha1ClusterTrustBundle body) { + public APIcreateClusterTrustBundleRequest createClusterTrustBundle(@jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body) { return new APIcreateClusterTrustBundleRequest(body); } - private okhttp3.Call deleteClusterTrustBundleCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteClusterTrustBundleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -380,7 +390,7 @@ private okhttp3.Call deleteClusterTrustBundleCall(String name, String pretty, St } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteClusterTrustBundleValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteClusterTrustBundle(Async)"); @@ -391,13 +401,13 @@ private okhttp3.Call deleteClusterTrustBundleValidateBeforeCall(String name, Str } - private ApiResponse deleteClusterTrustBundleWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteClusterTrustBundleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteClusterTrustBundleAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteClusterTrustBundleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteClusterTrustBundleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -406,16 +416,24 @@ private okhttp3.Call deleteClusterTrustBundleAsync(String name, String pretty, S } public class APIdeleteClusterTrustBundleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteClusterTrustBundleRequest(String name) { + private APIdeleteClusterTrustBundleRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -424,7 +442,7 @@ private APIdeleteClusterTrustBundleRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteClusterTrustBundleRequest */ - public APIdeleteClusterTrustBundleRequest pretty(String pretty) { + public APIdeleteClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -434,7 +452,7 @@ public APIdeleteClusterTrustBundleRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteClusterTrustBundleRequest */ - public APIdeleteClusterTrustBundleRequest dryRun(String dryRun) { + public APIdeleteClusterTrustBundleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -444,7 +462,7 @@ public APIdeleteClusterTrustBundleRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteClusterTrustBundleRequest */ - public APIdeleteClusterTrustBundleRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteClusterTrustBundleRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -454,7 +472,7 @@ public APIdeleteClusterTrustBundleRequest gracePeriodSeconds(Integer gracePeriod * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteClusterTrustBundleRequest */ - public APIdeleteClusterTrustBundleRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteClusterTrustBundleRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -464,7 +482,7 @@ public APIdeleteClusterTrustBundleRequest ignoreStoreReadErrorWithClusterBreakin * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteClusterTrustBundleRequest */ - public APIdeleteClusterTrustBundleRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteClusterTrustBundleRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -474,7 +492,7 @@ public APIdeleteClusterTrustBundleRequest orphanDependents(Boolean orphanDepende * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteClusterTrustBundleRequest */ - public APIdeleteClusterTrustBundleRequest propagationPolicy(String propagationPolicy) { + public APIdeleteClusterTrustBundleRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -484,7 +502,7 @@ public APIdeleteClusterTrustBundleRequest propagationPolicy(String propagationPo * @param body (optional) * @return APIdeleteClusterTrustBundleRequest */ - public APIdeleteClusterTrustBundleRequest body(V1DeleteOptions body) { + public APIdeleteClusterTrustBundleRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -495,7 +513,8 @@ public APIdeleteClusterTrustBundleRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -511,7 +530,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -528,7 +548,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -545,7 +566,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -563,17 +585,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the ClusterTrustBundle (required) * @return APIdeleteClusterTrustBundleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteClusterTrustBundleRequest deleteClusterTrustBundle(String name) { + public APIdeleteClusterTrustBundleRequest deleteClusterTrustBundle(@jakarta.annotation.Nonnull String name) { return new APIdeleteClusterTrustBundleRequest(name); } - private okhttp3.Call deleteCollectionClusterTrustBundleCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterTrustBundleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -678,19 +701,19 @@ private okhttp3.Call deleteCollectionClusterTrustBundleCall(String pretty, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionClusterTrustBundleValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionClusterTrustBundleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionClusterTrustBundleWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionClusterTrustBundleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionClusterTrustBundleAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterTrustBundleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionClusterTrustBundleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -699,20 +722,35 @@ private okhttp3.Call deleteCollectionClusterTrustBundleAsync(String pretty, Stri } public class APIdeleteCollectionClusterTrustBundleRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionClusterTrustBundleRequest() { @@ -723,7 +761,7 @@ private APIdeleteCollectionClusterTrustBundleRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionClusterTrustBundleRequest */ - public APIdeleteCollectionClusterTrustBundleRequest pretty(String pretty) { + public APIdeleteCollectionClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -733,7 +771,7 @@ public APIdeleteCollectionClusterTrustBundleRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionClusterTrustBundleRequest */ - public APIdeleteCollectionClusterTrustBundleRequest _continue(String _continue) { + public APIdeleteCollectionClusterTrustBundleRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -743,7 +781,7 @@ public APIdeleteCollectionClusterTrustBundleRequest _continue(String _continue) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionClusterTrustBundleRequest */ - public APIdeleteCollectionClusterTrustBundleRequest dryRun(String dryRun) { + public APIdeleteCollectionClusterTrustBundleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -753,7 +791,7 @@ public APIdeleteCollectionClusterTrustBundleRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionClusterTrustBundleRequest */ - public APIdeleteCollectionClusterTrustBundleRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionClusterTrustBundleRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -763,7 +801,7 @@ public APIdeleteCollectionClusterTrustBundleRequest fieldSelector(String fieldSe * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionClusterTrustBundleRequest */ - public APIdeleteCollectionClusterTrustBundleRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionClusterTrustBundleRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -773,7 +811,7 @@ public APIdeleteCollectionClusterTrustBundleRequest gracePeriodSeconds(Integer g * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionClusterTrustBundleRequest */ - public APIdeleteCollectionClusterTrustBundleRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionClusterTrustBundleRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -783,7 +821,7 @@ public APIdeleteCollectionClusterTrustBundleRequest ignoreStoreReadErrorWithClus * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionClusterTrustBundleRequest */ - public APIdeleteCollectionClusterTrustBundleRequest labelSelector(String labelSelector) { + public APIdeleteCollectionClusterTrustBundleRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -793,7 +831,7 @@ public APIdeleteCollectionClusterTrustBundleRequest labelSelector(String labelSe * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionClusterTrustBundleRequest */ - public APIdeleteCollectionClusterTrustBundleRequest limit(Integer limit) { + public APIdeleteCollectionClusterTrustBundleRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -803,7 +841,7 @@ public APIdeleteCollectionClusterTrustBundleRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionClusterTrustBundleRequest */ - public APIdeleteCollectionClusterTrustBundleRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionClusterTrustBundleRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -813,7 +851,7 @@ public APIdeleteCollectionClusterTrustBundleRequest orphanDependents(Boolean orp * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionClusterTrustBundleRequest */ - public APIdeleteCollectionClusterTrustBundleRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionClusterTrustBundleRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -823,7 +861,7 @@ public APIdeleteCollectionClusterTrustBundleRequest propagationPolicy(String pro * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionClusterTrustBundleRequest */ - public APIdeleteCollectionClusterTrustBundleRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionClusterTrustBundleRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -833,7 +871,7 @@ public APIdeleteCollectionClusterTrustBundleRequest resourceVersion(String resou * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionClusterTrustBundleRequest */ - public APIdeleteCollectionClusterTrustBundleRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionClusterTrustBundleRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -843,7 +881,7 @@ public APIdeleteCollectionClusterTrustBundleRequest resourceVersionMatch(String * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionClusterTrustBundleRequest */ - public APIdeleteCollectionClusterTrustBundleRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionClusterTrustBundleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -853,7 +891,7 @@ public APIdeleteCollectionClusterTrustBundleRequest sendInitialEvents(Boolean se * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionClusterTrustBundleRequest */ - public APIdeleteCollectionClusterTrustBundleRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionClusterTrustBundleRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -863,7 +901,7 @@ public APIdeleteCollectionClusterTrustBundleRequest timeoutSeconds(Integer timeo * @param body (optional) * @return APIdeleteCollectionClusterTrustBundleRequest */ - public APIdeleteCollectionClusterTrustBundleRequest body(V1DeleteOptions body) { + public APIdeleteCollectionClusterTrustBundleRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -874,7 +912,8 @@ public APIdeleteCollectionClusterTrustBundleRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -889,7 +928,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -905,7 +945,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -921,7 +962,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -937,7 +979,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of ClusterTrustBundle * @return APIdeleteCollectionClusterTrustBundleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1025,7 +1068,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1040,7 +1084,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1056,7 +1101,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1072,7 +1118,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1088,7 +1135,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1097,7 +1145,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listClusterTrustBundleCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listClusterTrustBundleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1192,19 +1240,19 @@ private okhttp3.Call listClusterTrustBundleCall(String pretty, Boolean allowWatc } @SuppressWarnings("rawtypes") - private okhttp3.Call listClusterTrustBundleValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listClusterTrustBundleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listClusterTrustBundleWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listClusterTrustBundleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listClusterTrustBundleAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listClusterTrustBundleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listClusterTrustBundleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1213,16 +1261,27 @@ private okhttp3.Call listClusterTrustBundleAsync(String pretty, Boolean allowWat } public class APIlistClusterTrustBundleRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistClusterTrustBundleRequest() { @@ -1233,7 +1292,7 @@ private APIlistClusterTrustBundleRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistClusterTrustBundleRequest */ - public APIlistClusterTrustBundleRequest pretty(String pretty) { + public APIlistClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1243,7 +1302,7 @@ public APIlistClusterTrustBundleRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistClusterTrustBundleRequest */ - public APIlistClusterTrustBundleRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistClusterTrustBundleRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1253,7 +1312,7 @@ public APIlistClusterTrustBundleRequest allowWatchBookmarks(Boolean allowWatchBo * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistClusterTrustBundleRequest */ - public APIlistClusterTrustBundleRequest _continue(String _continue) { + public APIlistClusterTrustBundleRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1263,7 +1322,7 @@ public APIlistClusterTrustBundleRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistClusterTrustBundleRequest */ - public APIlistClusterTrustBundleRequest fieldSelector(String fieldSelector) { + public APIlistClusterTrustBundleRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1273,7 +1332,7 @@ public APIlistClusterTrustBundleRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistClusterTrustBundleRequest */ - public APIlistClusterTrustBundleRequest labelSelector(String labelSelector) { + public APIlistClusterTrustBundleRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1283,7 +1342,7 @@ public APIlistClusterTrustBundleRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistClusterTrustBundleRequest */ - public APIlistClusterTrustBundleRequest limit(Integer limit) { + public APIlistClusterTrustBundleRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1293,7 +1352,7 @@ public APIlistClusterTrustBundleRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistClusterTrustBundleRequest */ - public APIlistClusterTrustBundleRequest resourceVersion(String resourceVersion) { + public APIlistClusterTrustBundleRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1303,7 +1362,7 @@ public APIlistClusterTrustBundleRequest resourceVersion(String resourceVersion) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistClusterTrustBundleRequest */ - public APIlistClusterTrustBundleRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistClusterTrustBundleRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1313,7 +1372,7 @@ public APIlistClusterTrustBundleRequest resourceVersionMatch(String resourceVers * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistClusterTrustBundleRequest */ - public APIlistClusterTrustBundleRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistClusterTrustBundleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1323,7 +1382,7 @@ public APIlistClusterTrustBundleRequest sendInitialEvents(Boolean sendInitialEve * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistClusterTrustBundleRequest */ - public APIlistClusterTrustBundleRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistClusterTrustBundleRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1333,7 +1392,7 @@ public APIlistClusterTrustBundleRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistClusterTrustBundleRequest */ - public APIlistClusterTrustBundleRequest watch(Boolean watch) { + public APIlistClusterTrustBundleRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1344,7 +1403,8 @@ public APIlistClusterTrustBundleRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1359,7 +1419,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1ClusterTrustBundleList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1375,7 +1436,8 @@ public V1alpha1ClusterTrustBundleList execute() throws ApiException { * @return ApiResponse<V1alpha1ClusterTrustBundleList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1391,7 +1453,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1407,7 +1470,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -1416,7 +1480,7 @@ public okhttp3.Call executeAsync(final ApiCallback patchClusterTrustBundleWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchClusterTrustBundleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchClusterTrustBundleAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchClusterTrustBundleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchClusterTrustBundleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1517,15 +1581,22 @@ private okhttp3.Call patchClusterTrustBundleAsync(String name, V1Patch body, Str } public class APIpatchClusterTrustBundleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchClusterTrustBundleRequest(String name, V1Patch body) { + private APIpatchClusterTrustBundleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -1535,7 +1606,7 @@ private APIpatchClusterTrustBundleRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchClusterTrustBundleRequest */ - public APIpatchClusterTrustBundleRequest pretty(String pretty) { + public APIpatchClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1545,7 +1616,7 @@ public APIpatchClusterTrustBundleRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchClusterTrustBundleRequest */ - public APIpatchClusterTrustBundleRequest dryRun(String dryRun) { + public APIpatchClusterTrustBundleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1555,7 +1626,7 @@ public APIpatchClusterTrustBundleRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchClusterTrustBundleRequest */ - public APIpatchClusterTrustBundleRequest fieldManager(String fieldManager) { + public APIpatchClusterTrustBundleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1565,7 +1636,7 @@ public APIpatchClusterTrustBundleRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchClusterTrustBundleRequest */ - public APIpatchClusterTrustBundleRequest fieldValidation(String fieldValidation) { + public APIpatchClusterTrustBundleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1575,7 +1646,7 @@ public APIpatchClusterTrustBundleRequest fieldValidation(String fieldValidation) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchClusterTrustBundleRequest */ - public APIpatchClusterTrustBundleRequest force(Boolean force) { + public APIpatchClusterTrustBundleRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1586,7 +1657,8 @@ public APIpatchClusterTrustBundleRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1602,7 +1674,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1ClusterTrustBundle * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1619,7 +1692,8 @@ public V1alpha1ClusterTrustBundle execute() throws ApiException { * @return ApiResponse<V1alpha1ClusterTrustBundle> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1636,7 +1710,8 @@ public ApiResponse executeWithHttpInfo() throws ApiE * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1655,17 +1730,18 @@ public okhttp3.Call executeAsync(final ApiCallback _ * @param body (required) * @return APIpatchClusterTrustBundleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchClusterTrustBundleRequest patchClusterTrustBundle(String name, V1Patch body) { + public APIpatchClusterTrustBundleRequest patchClusterTrustBundle(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchClusterTrustBundleRequest(name, body); } - private okhttp3.Call readClusterTrustBundleCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readClusterTrustBundleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1718,7 +1794,7 @@ private okhttp3.Call readClusterTrustBundleCall(String name, String pretty, fina } @SuppressWarnings("rawtypes") - private okhttp3.Call readClusterTrustBundleValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readClusterTrustBundle(Async)"); @@ -1729,13 +1805,13 @@ private okhttp3.Call readClusterTrustBundleValidateBeforeCall(String name, Strin } - private ApiResponse readClusterTrustBundleWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readClusterTrustBundleValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readClusterTrustBundleAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readClusterTrustBundleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readClusterTrustBundleValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1744,10 +1820,12 @@ private okhttp3.Call readClusterTrustBundleAsync(String name, String pretty, fin } public class APIreadClusterTrustBundleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadClusterTrustBundleRequest(String name) { + private APIreadClusterTrustBundleRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -1756,7 +1834,7 @@ private APIreadClusterTrustBundleRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadClusterTrustBundleRequest */ - public APIreadClusterTrustBundleRequest pretty(String pretty) { + public APIreadClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1767,7 +1845,8 @@ public APIreadClusterTrustBundleRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1782,7 +1861,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1ClusterTrustBundle * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1798,7 +1878,8 @@ public V1alpha1ClusterTrustBundle execute() throws ApiException { * @return ApiResponse<V1alpha1ClusterTrustBundle> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1814,7 +1895,8 @@ public ApiResponse executeWithHttpInfo() throws ApiE * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1831,16 +1913,17 @@ public okhttp3.Call executeAsync(final ApiCallback _ * @param name name of the ClusterTrustBundle (required) * @return APIreadClusterTrustBundleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadClusterTrustBundleRequest readClusterTrustBundle(String name) { + public APIreadClusterTrustBundleRequest readClusterTrustBundle(@jakarta.annotation.Nonnull String name) { return new APIreadClusterTrustBundleRequest(name); } - private okhttp3.Call replaceClusterTrustBundleCall(String name, V1alpha1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceClusterTrustBundleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1906,7 +1989,7 @@ private okhttp3.Call replaceClusterTrustBundleCall(String name, V1alpha1ClusterT } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceClusterTrustBundleValidateBeforeCall(String name, V1alpha1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceClusterTrustBundle(Async)"); @@ -1922,13 +2005,13 @@ private okhttp3.Call replaceClusterTrustBundleValidateBeforeCall(String name, V1 } - private ApiResponse replaceClusterTrustBundleWithHttpInfo(String name, V1alpha1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceClusterTrustBundleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceClusterTrustBundleAsync(String name, V1alpha1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceClusterTrustBundleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceClusterTrustBundleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1937,14 +2020,20 @@ private okhttp3.Call replaceClusterTrustBundleAsync(String name, V1alpha1Cluster } public class APIreplaceClusterTrustBundleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1alpha1ClusterTrustBundle body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceClusterTrustBundleRequest(String name, V1alpha1ClusterTrustBundle body) { + private APIreplaceClusterTrustBundleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body) { this.name = name; this.body = body; } @@ -1954,7 +2043,7 @@ private APIreplaceClusterTrustBundleRequest(String name, V1alpha1ClusterTrustBun * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceClusterTrustBundleRequest */ - public APIreplaceClusterTrustBundleRequest pretty(String pretty) { + public APIreplaceClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1964,7 +2053,7 @@ public APIreplaceClusterTrustBundleRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceClusterTrustBundleRequest */ - public APIreplaceClusterTrustBundleRequest dryRun(String dryRun) { + public APIreplaceClusterTrustBundleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1974,7 +2063,7 @@ public APIreplaceClusterTrustBundleRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceClusterTrustBundleRequest */ - public APIreplaceClusterTrustBundleRequest fieldManager(String fieldManager) { + public APIreplaceClusterTrustBundleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1984,7 +2073,7 @@ public APIreplaceClusterTrustBundleRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceClusterTrustBundleRequest */ - public APIreplaceClusterTrustBundleRequest fieldValidation(String fieldValidation) { + public APIreplaceClusterTrustBundleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1995,7 +2084,8 @@ public APIreplaceClusterTrustBundleRequest fieldValidation(String fieldValidatio * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2011,7 +2101,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1ClusterTrustBundle * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2028,7 +2119,8 @@ public V1alpha1ClusterTrustBundle execute() throws ApiException { * @return ApiResponse<V1alpha1ClusterTrustBundle> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2045,7 +2137,8 @@ public ApiResponse executeWithHttpInfo() throws ApiE * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2064,14 +2157,15 @@ public okhttp3.Call executeAsync(final ApiCallback _ * @param body (required) * @return APIreplaceClusterTrustBundleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceClusterTrustBundleRequest replaceClusterTrustBundle(String name, V1alpha1ClusterTrustBundle body) { + public APIreplaceClusterTrustBundleRequest replaceClusterTrustBundle(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body) { return new APIreplaceClusterTrustBundleRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1beta1Api.java new file mode 100644 index 0000000000..06321bbd1c --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1beta1Api.java @@ -0,0 +1,2171 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.apis; + +import io.kubernetes.client.openapi.ApiCallback; +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.ApiResponse; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.Pair; +import io.kubernetes.client.openapi.ProgressRequestBody; +import io.kubernetes.client.openapi.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.kubernetes.client.openapi.models.V1APIResourceList; +import io.kubernetes.client.openapi.models.V1DeleteOptions; +import io.kubernetes.client.custom.V1Patch; +import io.kubernetes.client.openapi.models.V1Status; +import io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundle; +import io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundleList; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CertificatesV1beta1Api { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public CertificatesV1beta1Api() { + this(Configuration.getDefaultApiClient()); + } + + public CertificatesV1beta1Api(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + private okhttp3.Call createClusterTrustBundleCall(@jakarta.annotation.Nonnull V1beta1ClusterTrustBundle body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1beta1/clustertrustbundles"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nonnull V1beta1ClusterTrustBundle body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createClusterTrustBundle(Async)"); + } + + return createClusterTrustBundleCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse createClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nonnull V1beta1ClusterTrustBundle body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createClusterTrustBundleValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createClusterTrustBundleAsync(@jakarta.annotation.Nonnull V1beta1ClusterTrustBundle body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createClusterTrustBundleValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateClusterTrustBundleRequest { + @jakarta.annotation.Nonnull + private final V1beta1ClusterTrustBundle body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIcreateClusterTrustBundleRequest(@jakarta.annotation.Nonnull V1beta1ClusterTrustBundle body) { + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIcreateClusterTrustBundleRequest + */ + public APIcreateClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIcreateClusterTrustBundleRequest + */ + public APIcreateClusterTrustBundleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIcreateClusterTrustBundleRequest + */ + public APIcreateClusterTrustBundleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIcreateClusterTrustBundleRequest + */ + public APIcreateClusterTrustBundleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for createClusterTrustBundle + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return createClusterTrustBundleCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute createClusterTrustBundle request + * @return V1beta1ClusterTrustBundle + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta1ClusterTrustBundle execute() throws ApiException { + ApiResponse localVarResp = createClusterTrustBundleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createClusterTrustBundle request with HTTP info returned + * @return ApiResponse<V1beta1ClusterTrustBundle> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createClusterTrustBundleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute createClusterTrustBundle request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createClusterTrustBundleAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * create a ClusterTrustBundle + * @param body (required) + * @return APIcreateClusterTrustBundleRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public APIcreateClusterTrustBundleRequest createClusterTrustBundle(@jakarta.annotation.Nonnull V1beta1ClusterTrustBundle body) { + return new APIcreateClusterTrustBundleRequest(body); + } + private okhttp3.Call deleteClusterTrustBundleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteClusterTrustBundle(Async)"); + } + + return deleteClusterTrustBundleCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteClusterTrustBundleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteClusterTrustBundleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteClusterTrustBundleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteClusterTrustBundleRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteClusterTrustBundleRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteClusterTrustBundleRequest + */ + public APIdeleteClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteClusterTrustBundleRequest + */ + public APIdeleteClusterTrustBundleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteClusterTrustBundleRequest + */ + public APIdeleteClusterTrustBundleRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteClusterTrustBundleRequest + */ + public APIdeleteClusterTrustBundleRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteClusterTrustBundleRequest + */ + public APIdeleteClusterTrustBundleRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteClusterTrustBundleRequest + */ + public APIdeleteClusterTrustBundleRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteClusterTrustBundleRequest + */ + public APIdeleteClusterTrustBundleRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteClusterTrustBundle + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteClusterTrustBundleCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteClusterTrustBundle request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteClusterTrustBundleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteClusterTrustBundle request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteClusterTrustBundleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteClusterTrustBundle request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteClusterTrustBundleAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @return APIdeleteClusterTrustBundleRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteClusterTrustBundleRequest deleteClusterTrustBundle(@jakarta.annotation.Nonnull String name) { + return new APIdeleteClusterTrustBundleRequest(name); + } + private okhttp3.Call deleteCollectionClusterTrustBundleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1beta1/clustertrustbundles"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionClusterTrustBundleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + + } + + + private ApiResponse deleteCollectionClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionClusterTrustBundleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteCollectionClusterTrustBundleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionClusterTrustBundleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteCollectionClusterTrustBundleRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionClusterTrustBundleRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteCollectionClusterTrustBundleRequest + */ + public APIdeleteCollectionClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIdeleteCollectionClusterTrustBundleRequest + */ + public APIdeleteCollectionClusterTrustBundleRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteCollectionClusterTrustBundleRequest + */ + public APIdeleteCollectionClusterTrustBundleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionClusterTrustBundleRequest + */ + public APIdeleteCollectionClusterTrustBundleRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteCollectionClusterTrustBundleRequest + */ + public APIdeleteCollectionClusterTrustBundleRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionClusterTrustBundleRequest + */ + public APIdeleteCollectionClusterTrustBundleRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionClusterTrustBundleRequest + */ + public APIdeleteCollectionClusterTrustBundleRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIdeleteCollectionClusterTrustBundleRequest + */ + public APIdeleteCollectionClusterTrustBundleRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteCollectionClusterTrustBundleRequest + */ + public APIdeleteCollectionClusterTrustBundleRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteCollectionClusterTrustBundleRequest + */ + public APIdeleteCollectionClusterTrustBundleRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionClusterTrustBundleRequest + */ + public APIdeleteCollectionClusterTrustBundleRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionClusterTrustBundleRequest + */ + public APIdeleteCollectionClusterTrustBundleRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionClusterTrustBundleRequest + */ + public APIdeleteCollectionClusterTrustBundleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionClusterTrustBundleRequest + */ + public APIdeleteCollectionClusterTrustBundleRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionClusterTrustBundleRequest + */ + public APIdeleteCollectionClusterTrustBundleRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionClusterTrustBundle + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteCollectionClusterTrustBundleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionClusterTrustBundle request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionClusterTrustBundleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionClusterTrustBundle request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCollectionClusterTrustBundleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionClusterTrustBundle request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCollectionClusterTrustBundleAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of ClusterTrustBundle + * @return APIdeleteCollectionClusterTrustBundleRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionClusterTrustBundleRequest deleteCollectionClusterTrustBundle() { + return new APIdeleteCollectionClusterTrustBundleRequest(); + } + private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1beta1/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return getAPIResourcesCall(_callback); + + } + + + private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetAPIResourcesRequest { + + private APIgetAPIResourcesRequest() { + } + + /** + * Build call for getAPIResources + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getAPIResourcesCall(_callback); + } + + /** + * Execute getAPIResources request + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList execute() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Execute getAPIResources request with HTTP info returned + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getAPIResourcesWithHttpInfo(); + } + + /** + * Execute getAPIResources request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getAPIResourcesAsync(_callback); + } + } + + /** + * + * get available resources + * @return APIgetAPIResourcesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIgetAPIResourcesRequest getAPIResources() { + return new APIgetAPIResourcesRequest(); + } + private okhttp3.Call listClusterTrustBundleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1beta1/clustertrustbundles"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listClusterTrustBundleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listClusterTrustBundleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listClusterTrustBundleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listClusterTrustBundleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistClusterTrustBundleRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistClusterTrustBundleRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listClusterTrustBundle + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listClusterTrustBundleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listClusterTrustBundle request + * @return V1beta1ClusterTrustBundleList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1ClusterTrustBundleList execute() throws ApiException { + ApiResponse localVarResp = listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listClusterTrustBundle request with HTTP info returned + * @return ApiResponse<V1beta1ClusterTrustBundleList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + } + + /** + * Execute listClusterTrustBundle request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listClusterTrustBundleAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind ClusterTrustBundle + * @return APIlistClusterTrustBundleRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistClusterTrustBundleRequest listClusterTrustBundle() { + return new APIlistClusterTrustBundleRequest(); + } + private okhttp3.Call patchClusterTrustBundleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchClusterTrustBundle(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchClusterTrustBundle(Async)"); + } + + return patchClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchClusterTrustBundleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchClusterTrustBundleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchClusterTrustBundleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchClusterTrustBundleRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchClusterTrustBundleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchClusterTrustBundleRequest + */ + public APIpatchClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchClusterTrustBundleRequest + */ + public APIpatchClusterTrustBundleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchClusterTrustBundleRequest + */ + public APIpatchClusterTrustBundleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchClusterTrustBundleRequest + */ + public APIpatchClusterTrustBundleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchClusterTrustBundleRequest + */ + public APIpatchClusterTrustBundleRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchClusterTrustBundle + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchClusterTrustBundle request + * @return V1beta1ClusterTrustBundle + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1ClusterTrustBundle execute() throws ApiException { + ApiResponse localVarResp = patchClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchClusterTrustBundle request with HTTP info returned + * @return ApiResponse<V1beta1ClusterTrustBundle> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchClusterTrustBundle request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchClusterTrustBundleAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param body (required) + * @return APIpatchClusterTrustBundleRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchClusterTrustBundleRequest patchClusterTrustBundle(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchClusterTrustBundleRequest(name, body); + } + private okhttp3.Call readClusterTrustBundleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readClusterTrustBundle(Async)"); + } + + return readClusterTrustBundleCall(name, pretty, _callback); + + } + + + private ApiResponse readClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readClusterTrustBundleValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readClusterTrustBundleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readClusterTrustBundleValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadClusterTrustBundleRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadClusterTrustBundleRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreadClusterTrustBundleRequest + */ + public APIreadClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readClusterTrustBundle + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return readClusterTrustBundleCall(name, pretty, _callback); + } + + /** + * Execute readClusterTrustBundle request + * @return V1beta1ClusterTrustBundle + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1ClusterTrustBundle execute() throws ApiException { + ApiResponse localVarResp = readClusterTrustBundleWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * Execute readClusterTrustBundle request with HTTP info returned + * @return ApiResponse<V1beta1ClusterTrustBundle> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return readClusterTrustBundleWithHttpInfo(name, pretty); + } + + /** + * Execute readClusterTrustBundle request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readClusterTrustBundleAsync(name, pretty, _callback); + } + } + + /** + * + * read the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @return APIreadClusterTrustBundleRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadClusterTrustBundleRequest readClusterTrustBundle(@jakarta.annotation.Nonnull String name) { + return new APIreadClusterTrustBundleRequest(name); + } + private okhttp3.Call replaceClusterTrustBundleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ClusterTrustBundle body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ClusterTrustBundle body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceClusterTrustBundle(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceClusterTrustBundle(Async)"); + } + + return replaceClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse replaceClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ClusterTrustBundle body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceClusterTrustBundleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call replaceClusterTrustBundleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ClusterTrustBundle body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceClusterTrustBundleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreplaceClusterTrustBundleRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1beta1ClusterTrustBundle body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIreplaceClusterTrustBundleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ClusterTrustBundle body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreplaceClusterTrustBundleRequest + */ + public APIreplaceClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceClusterTrustBundleRequest + */ + public APIreplaceClusterTrustBundleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceClusterTrustBundleRequest + */ + public APIreplaceClusterTrustBundleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceClusterTrustBundleRequest + */ + public APIreplaceClusterTrustBundleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceClusterTrustBundle + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return replaceClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute replaceClusterTrustBundle request + * @return V1beta1ClusterTrustBundle + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1ClusterTrustBundle execute() throws ApiException { + ApiResponse localVarResp = replaceClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute replaceClusterTrustBundle request with HTTP info returned + * @return ApiResponse<V1beta1ClusterTrustBundle> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute replaceClusterTrustBundle request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceClusterTrustBundleAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * replace the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param body (required) + * @return APIreplaceClusterTrustBundleRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIreplaceClusterTrustBundleRequest replaceClusterTrustBundle(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ClusterTrustBundle body) { + return new APIreplaceClusterTrustBundleRequest(name, body); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationApi.java index 38fcdea192..31c582a8c4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationApi.java @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1Api.java index a5cd8452f9..674491cbec 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1Api.java @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createNamespacedLeaseCall(String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedLeaseCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Lease body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -142,7 +142,7 @@ private okhttp3.Call createNamespacedLeaseCall(String namespace, V1Lease body, S } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedLeaseValidateBeforeCall(String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedLeaseValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Lease body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedLease(Async)"); @@ -158,13 +158,13 @@ private okhttp3.Call createNamespacedLeaseValidateBeforeCall(String namespace, V } - private ApiResponse createNamespacedLeaseWithHttpInfo(String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedLeaseWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Lease body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedLeaseValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedLeaseAsync(String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedLeaseAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Lease body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedLeaseValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -173,14 +173,20 @@ private okhttp3.Call createNamespacedLeaseAsync(String namespace, V1Lease body, } public class APIcreateNamespacedLeaseRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Lease body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedLeaseRequest(String namespace, V1Lease body) { + private APIcreateNamespacedLeaseRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Lease body) { this.namespace = namespace; this.body = body; } @@ -190,7 +196,7 @@ private APIcreateNamespacedLeaseRequest(String namespace, V1Lease body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedLeaseRequest */ - public APIcreateNamespacedLeaseRequest pretty(String pretty) { + public APIcreateNamespacedLeaseRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -200,7 +206,7 @@ public APIcreateNamespacedLeaseRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedLeaseRequest */ - public APIcreateNamespacedLeaseRequest dryRun(String dryRun) { + public APIcreateNamespacedLeaseRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -210,7 +216,7 @@ public APIcreateNamespacedLeaseRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedLeaseRequest */ - public APIcreateNamespacedLeaseRequest fieldManager(String fieldManager) { + public APIcreateNamespacedLeaseRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -220,7 +226,7 @@ public APIcreateNamespacedLeaseRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedLeaseRequest */ - public APIcreateNamespacedLeaseRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedLeaseRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -231,7 +237,8 @@ public APIcreateNamespacedLeaseRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -248,7 +255,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Lease * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -266,7 +274,8 @@ public V1Lease execute() throws ApiException { * @return ApiResponse<V1Lease> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -284,7 +293,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -304,7 +314,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap * @param body (required) * @return APIcreateNamespacedLeaseRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -312,10 +323,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedLeaseRequest createNamespacedLease(String namespace, V1Lease body) { + public APIcreateNamespacedLeaseRequest createNamespacedLease(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Lease body) { return new APIcreateNamespacedLeaseRequest(namespace, body); } - private okhttp3.Call deleteCollectionNamespacedLeaseCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLeaseCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -421,7 +432,7 @@ private okhttp3.Call deleteCollectionNamespacedLeaseCall(String namespace, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedLeaseValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLeaseValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedLease(Async)"); @@ -432,13 +443,13 @@ private okhttp3.Call deleteCollectionNamespacedLeaseValidateBeforeCall(String na } - private ApiResponse deleteCollectionNamespacedLeaseWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedLeaseWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedLeaseAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLeaseAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -447,24 +458,40 @@ private okhttp3.Call deleteCollectionNamespacedLeaseAsync(String namespace, Stri } public class APIdeleteCollectionNamespacedLeaseRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedLeaseRequest(String namespace) { + private APIdeleteCollectionNamespacedLeaseRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -473,7 +500,7 @@ private APIdeleteCollectionNamespacedLeaseRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedLeaseRequest */ - public APIdeleteCollectionNamespacedLeaseRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedLeaseRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -483,7 +510,7 @@ public APIdeleteCollectionNamespacedLeaseRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedLeaseRequest */ - public APIdeleteCollectionNamespacedLeaseRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedLeaseRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -493,7 +520,7 @@ public APIdeleteCollectionNamespacedLeaseRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedLeaseRequest */ - public APIdeleteCollectionNamespacedLeaseRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedLeaseRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -503,7 +530,7 @@ public APIdeleteCollectionNamespacedLeaseRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedLeaseRequest */ - public APIdeleteCollectionNamespacedLeaseRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedLeaseRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -513,7 +540,7 @@ public APIdeleteCollectionNamespacedLeaseRequest fieldSelector(String fieldSelec * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedLeaseRequest */ - public APIdeleteCollectionNamespacedLeaseRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedLeaseRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -523,7 +550,7 @@ public APIdeleteCollectionNamespacedLeaseRequest gracePeriodSeconds(Integer grac * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedLeaseRequest */ - public APIdeleteCollectionNamespacedLeaseRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedLeaseRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -533,7 +560,7 @@ public APIdeleteCollectionNamespacedLeaseRequest ignoreStoreReadErrorWithCluster * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedLeaseRequest */ - public APIdeleteCollectionNamespacedLeaseRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedLeaseRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -543,7 +570,7 @@ public APIdeleteCollectionNamespacedLeaseRequest labelSelector(String labelSelec * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedLeaseRequest */ - public APIdeleteCollectionNamespacedLeaseRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedLeaseRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -553,7 +580,7 @@ public APIdeleteCollectionNamespacedLeaseRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedLeaseRequest */ - public APIdeleteCollectionNamespacedLeaseRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedLeaseRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -563,7 +590,7 @@ public APIdeleteCollectionNamespacedLeaseRequest orphanDependents(Boolean orphan * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedLeaseRequest */ - public APIdeleteCollectionNamespacedLeaseRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedLeaseRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -573,7 +600,7 @@ public APIdeleteCollectionNamespacedLeaseRequest propagationPolicy(String propag * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedLeaseRequest */ - public APIdeleteCollectionNamespacedLeaseRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedLeaseRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -583,7 +610,7 @@ public APIdeleteCollectionNamespacedLeaseRequest resourceVersion(String resource * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedLeaseRequest */ - public APIdeleteCollectionNamespacedLeaseRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedLeaseRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -593,7 +620,7 @@ public APIdeleteCollectionNamespacedLeaseRequest resourceVersionMatch(String res * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedLeaseRequest */ - public APIdeleteCollectionNamespacedLeaseRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedLeaseRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -603,7 +630,7 @@ public APIdeleteCollectionNamespacedLeaseRequest sendInitialEvents(Boolean sendI * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedLeaseRequest */ - public APIdeleteCollectionNamespacedLeaseRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedLeaseRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -613,7 +640,7 @@ public APIdeleteCollectionNamespacedLeaseRequest timeoutSeconds(Integer timeoutS * @param body (optional) * @return APIdeleteCollectionNamespacedLeaseRequest */ - public APIdeleteCollectionNamespacedLeaseRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedLeaseRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -624,7 +651,8 @@ public APIdeleteCollectionNamespacedLeaseRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -639,7 +667,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -655,7 +684,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -671,7 +701,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -688,16 +719,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedLeaseRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedLeaseRequest deleteCollectionNamespacedLease(String namespace) { + public APIdeleteCollectionNamespacedLeaseRequest deleteCollectionNamespacedLease(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedLeaseRequest(namespace); } - private okhttp3.Call deleteNamespacedLeaseCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedLeaseCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -772,7 +804,7 @@ private okhttp3.Call deleteNamespacedLeaseCall(String name, String namespace, St } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedLeaseValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedLeaseValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedLease(Async)"); @@ -788,13 +820,13 @@ private okhttp3.Call deleteNamespacedLeaseValidateBeforeCall(String name, String } - private ApiResponse deleteNamespacedLeaseWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedLeaseWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedLeaseValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedLeaseAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedLeaseAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedLeaseValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -803,17 +835,26 @@ private okhttp3.Call deleteNamespacedLeaseAsync(String name, String namespace, S } public class APIdeleteNamespacedLeaseRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedLeaseRequest(String name, String namespace) { + private APIdeleteNamespacedLeaseRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -823,7 +864,7 @@ private APIdeleteNamespacedLeaseRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedLeaseRequest */ - public APIdeleteNamespacedLeaseRequest pretty(String pretty) { + public APIdeleteNamespacedLeaseRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -833,7 +874,7 @@ public APIdeleteNamespacedLeaseRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedLeaseRequest */ - public APIdeleteNamespacedLeaseRequest dryRun(String dryRun) { + public APIdeleteNamespacedLeaseRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -843,7 +884,7 @@ public APIdeleteNamespacedLeaseRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedLeaseRequest */ - public APIdeleteNamespacedLeaseRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedLeaseRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -853,7 +894,7 @@ public APIdeleteNamespacedLeaseRequest gracePeriodSeconds(Integer gracePeriodSec * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedLeaseRequest */ - public APIdeleteNamespacedLeaseRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedLeaseRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -863,7 +904,7 @@ public APIdeleteNamespacedLeaseRequest ignoreStoreReadErrorWithClusterBreakingPo * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedLeaseRequest */ - public APIdeleteNamespacedLeaseRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedLeaseRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -873,7 +914,7 @@ public APIdeleteNamespacedLeaseRequest orphanDependents(Boolean orphanDependents * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedLeaseRequest */ - public APIdeleteNamespacedLeaseRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedLeaseRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -883,7 +924,7 @@ public APIdeleteNamespacedLeaseRequest propagationPolicy(String propagationPolic * @param body (optional) * @return APIdeleteNamespacedLeaseRequest */ - public APIdeleteNamespacedLeaseRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedLeaseRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -894,7 +935,8 @@ public APIdeleteNamespacedLeaseRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -910,7 +952,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -927,7 +970,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -944,7 +988,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -963,14 +1008,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedLeaseRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedLeaseRequest deleteNamespacedLease(String name, String namespace) { + public APIdeleteNamespacedLeaseRequest deleteNamespacedLease(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedLeaseRequest(name, namespace); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -1052,7 +1098,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1067,7 +1114,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1083,7 +1131,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1099,7 +1148,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1115,7 +1165,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1124,7 +1175,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listLeaseForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listLeaseForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1219,19 +1270,19 @@ private okhttp3.Call listLeaseForAllNamespacesCall(Boolean allowWatchBookmarks, } @SuppressWarnings("rawtypes") - private okhttp3.Call listLeaseForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listLeaseForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listLeaseForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listLeaseForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listLeaseForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listLeaseForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listLeaseForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listLeaseForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listLeaseForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1240,16 +1291,27 @@ private okhttp3.Call listLeaseForAllNamespacesAsync(Boolean allowWatchBookmarks, } public class APIlistLeaseForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistLeaseForAllNamespacesRequest() { @@ -1260,7 +1322,7 @@ private APIlistLeaseForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistLeaseForAllNamespacesRequest */ - public APIlistLeaseForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistLeaseForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1270,7 +1332,7 @@ public APIlistLeaseForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatc * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistLeaseForAllNamespacesRequest */ - public APIlistLeaseForAllNamespacesRequest _continue(String _continue) { + public APIlistLeaseForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1280,7 +1342,7 @@ public APIlistLeaseForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistLeaseForAllNamespacesRequest */ - public APIlistLeaseForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistLeaseForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1290,7 +1352,7 @@ public APIlistLeaseForAllNamespacesRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistLeaseForAllNamespacesRequest */ - public APIlistLeaseForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistLeaseForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1300,7 +1362,7 @@ public APIlistLeaseForAllNamespacesRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistLeaseForAllNamespacesRequest */ - public APIlistLeaseForAllNamespacesRequest limit(Integer limit) { + public APIlistLeaseForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1310,7 +1372,7 @@ public APIlistLeaseForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistLeaseForAllNamespacesRequest */ - public APIlistLeaseForAllNamespacesRequest pretty(String pretty) { + public APIlistLeaseForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1320,7 +1382,7 @@ public APIlistLeaseForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistLeaseForAllNamespacesRequest */ - public APIlistLeaseForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistLeaseForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1330,7 +1392,7 @@ public APIlistLeaseForAllNamespacesRequest resourceVersion(String resourceVersio * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistLeaseForAllNamespacesRequest */ - public APIlistLeaseForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistLeaseForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1340,7 +1402,7 @@ public APIlistLeaseForAllNamespacesRequest resourceVersionMatch(String resourceV * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistLeaseForAllNamespacesRequest */ - public APIlistLeaseForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistLeaseForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1350,7 +1412,7 @@ public APIlistLeaseForAllNamespacesRequest sendInitialEvents(Boolean sendInitial * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistLeaseForAllNamespacesRequest */ - public APIlistLeaseForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistLeaseForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1360,7 +1422,7 @@ public APIlistLeaseForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistLeaseForAllNamespacesRequest */ - public APIlistLeaseForAllNamespacesRequest watch(Boolean watch) { + public APIlistLeaseForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1371,7 +1433,8 @@ public APIlistLeaseForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1386,7 +1449,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1LeaseList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1402,7 +1466,8 @@ public V1LeaseList execute() throws ApiException { * @return ApiResponse<V1LeaseList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1418,7 +1483,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1434,7 +1500,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * list or watch objects of kind Lease * @return APIlistLeaseForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1443,7 +1510,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw public APIlistLeaseForAllNamespacesRequest listLeaseForAllNamespaces() { return new APIlistLeaseForAllNamespacesRequest(); } - private okhttp3.Call listNamespacedLeaseCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedLeaseCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1539,7 +1606,7 @@ private okhttp3.Call listNamespacedLeaseCall(String namespace, String pretty, Bo } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedLeaseValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedLeaseValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedLease(Async)"); @@ -1550,13 +1617,13 @@ private okhttp3.Call listNamespacedLeaseValidateBeforeCall(String namespace, Str } - private ApiResponse listNamespacedLeaseWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedLeaseWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedLeaseValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedLeaseAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedLeaseAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedLeaseValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1565,20 +1632,32 @@ private okhttp3.Call listNamespacedLeaseAsync(String namespace, String pretty, B } public class APIlistNamespacedLeaseRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedLeaseRequest(String namespace) { + private APIlistNamespacedLeaseRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -1587,7 +1666,7 @@ private APIlistNamespacedLeaseRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedLeaseRequest */ - public APIlistNamespacedLeaseRequest pretty(String pretty) { + public APIlistNamespacedLeaseRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1597,7 +1676,7 @@ public APIlistNamespacedLeaseRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedLeaseRequest */ - public APIlistNamespacedLeaseRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedLeaseRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1607,7 +1686,7 @@ public APIlistNamespacedLeaseRequest allowWatchBookmarks(Boolean allowWatchBookm * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedLeaseRequest */ - public APIlistNamespacedLeaseRequest _continue(String _continue) { + public APIlistNamespacedLeaseRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1617,7 +1696,7 @@ public APIlistNamespacedLeaseRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedLeaseRequest */ - public APIlistNamespacedLeaseRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedLeaseRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1627,7 +1706,7 @@ public APIlistNamespacedLeaseRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedLeaseRequest */ - public APIlistNamespacedLeaseRequest labelSelector(String labelSelector) { + public APIlistNamespacedLeaseRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1637,7 +1716,7 @@ public APIlistNamespacedLeaseRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedLeaseRequest */ - public APIlistNamespacedLeaseRequest limit(Integer limit) { + public APIlistNamespacedLeaseRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1647,7 +1726,7 @@ public APIlistNamespacedLeaseRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedLeaseRequest */ - public APIlistNamespacedLeaseRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedLeaseRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1657,7 +1736,7 @@ public APIlistNamespacedLeaseRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedLeaseRequest */ - public APIlistNamespacedLeaseRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedLeaseRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1667,7 +1746,7 @@ public APIlistNamespacedLeaseRequest resourceVersionMatch(String resourceVersion * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedLeaseRequest */ - public APIlistNamespacedLeaseRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedLeaseRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1677,7 +1756,7 @@ public APIlistNamespacedLeaseRequest sendInitialEvents(Boolean sendInitialEvents * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedLeaseRequest */ - public APIlistNamespacedLeaseRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedLeaseRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1687,7 +1766,7 @@ public APIlistNamespacedLeaseRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedLeaseRequest */ - public APIlistNamespacedLeaseRequest watch(Boolean watch) { + public APIlistNamespacedLeaseRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1698,7 +1777,8 @@ public APIlistNamespacedLeaseRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1713,7 +1793,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1LeaseList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1729,7 +1810,8 @@ public V1LeaseList execute() throws ApiException { * @return ApiResponse<V1LeaseList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1745,7 +1827,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1762,16 +1845,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedLeaseRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedLeaseRequest listNamespacedLease(String namespace) { + public APIlistNamespacedLeaseRequest listNamespacedLease(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedLeaseRequest(namespace); } - private okhttp3.Call patchNamespacedLeaseCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedLeaseCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1842,7 +1926,7 @@ private okhttp3.Call patchNamespacedLeaseCall(String name, String namespace, V1P } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedLeaseValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedLeaseValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedLease(Async)"); @@ -1863,13 +1947,13 @@ private okhttp3.Call patchNamespacedLeaseValidateBeforeCall(String name, String } - private ApiResponse patchNamespacedLeaseWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedLeaseWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedLeaseValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedLeaseAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedLeaseAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedLeaseValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1878,16 +1962,24 @@ private okhttp3.Call patchNamespacedLeaseAsync(String name, String namespace, V1 } public class APIpatchNamespacedLeaseRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedLeaseRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedLeaseRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -1898,7 +1990,7 @@ private APIpatchNamespacedLeaseRequest(String name, String namespace, V1Patch bo * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedLeaseRequest */ - public APIpatchNamespacedLeaseRequest pretty(String pretty) { + public APIpatchNamespacedLeaseRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1908,7 +2000,7 @@ public APIpatchNamespacedLeaseRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedLeaseRequest */ - public APIpatchNamespacedLeaseRequest dryRun(String dryRun) { + public APIpatchNamespacedLeaseRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1918,7 +2010,7 @@ public APIpatchNamespacedLeaseRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedLeaseRequest */ - public APIpatchNamespacedLeaseRequest fieldManager(String fieldManager) { + public APIpatchNamespacedLeaseRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1928,7 +2020,7 @@ public APIpatchNamespacedLeaseRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedLeaseRequest */ - public APIpatchNamespacedLeaseRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedLeaseRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1938,7 +2030,7 @@ public APIpatchNamespacedLeaseRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedLeaseRequest */ - public APIpatchNamespacedLeaseRequest force(Boolean force) { + public APIpatchNamespacedLeaseRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1949,7 +2041,8 @@ public APIpatchNamespacedLeaseRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1965,7 +2058,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Lease * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1982,7 +2076,8 @@ public V1Lease execute() throws ApiException { * @return ApiResponse<V1Lease> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1999,7 +2094,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2019,17 +2115,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap * @param body (required) * @return APIpatchNamespacedLeaseRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedLeaseRequest patchNamespacedLease(String name, String namespace, V1Patch body) { + public APIpatchNamespacedLeaseRequest patchNamespacedLease(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedLeaseRequest(name, namespace, body); } - private okhttp3.Call readNamespacedLeaseCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedLeaseCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2083,7 +2180,7 @@ private okhttp3.Call readNamespacedLeaseCall(String name, String namespace, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedLeaseValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedLeaseValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedLease(Async)"); @@ -2099,13 +2196,13 @@ private okhttp3.Call readNamespacedLeaseValidateBeforeCall(String name, String n } - private ApiResponse readNamespacedLeaseWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedLeaseWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedLeaseValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedLeaseAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedLeaseAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedLeaseValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2114,11 +2211,14 @@ private okhttp3.Call readNamespacedLeaseAsync(String name, String namespace, Str } public class APIreadNamespacedLeaseRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedLeaseRequest(String name, String namespace) { + private APIreadNamespacedLeaseRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -2128,7 +2228,7 @@ private APIreadNamespacedLeaseRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedLeaseRequest */ - public APIreadNamespacedLeaseRequest pretty(String pretty) { + public APIreadNamespacedLeaseRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2139,7 +2239,8 @@ public APIreadNamespacedLeaseRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2154,7 +2255,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Lease * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2170,7 +2272,8 @@ public V1Lease execute() throws ApiException { * @return ApiResponse<V1Lease> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2186,7 +2289,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2204,16 +2308,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedLeaseRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedLeaseRequest readNamespacedLease(String name, String namespace) { + public APIreadNamespacedLeaseRequest readNamespacedLease(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedLeaseRequest(name, namespace); } - private okhttp3.Call replaceNamespacedLeaseCall(String name, String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedLeaseCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Lease body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2280,7 +2385,7 @@ private okhttp3.Call replaceNamespacedLeaseCall(String name, String namespace, V } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedLeaseValidateBeforeCall(String name, String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedLeaseValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Lease body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedLease(Async)"); @@ -2301,13 +2406,13 @@ private okhttp3.Call replaceNamespacedLeaseValidateBeforeCall(String name, Strin } - private ApiResponse replaceNamespacedLeaseWithHttpInfo(String name, String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedLeaseWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Lease body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedLeaseValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedLeaseAsync(String name, String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedLeaseAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Lease body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedLeaseValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2316,15 +2421,22 @@ private okhttp3.Call replaceNamespacedLeaseAsync(String name, String namespace, } public class APIreplaceNamespacedLeaseRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Lease body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedLeaseRequest(String name, String namespace, V1Lease body) { + private APIreplaceNamespacedLeaseRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Lease body) { this.name = name; this.namespace = namespace; this.body = body; @@ -2335,7 +2447,7 @@ private APIreplaceNamespacedLeaseRequest(String name, String namespace, V1Lease * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedLeaseRequest */ - public APIreplaceNamespacedLeaseRequest pretty(String pretty) { + public APIreplaceNamespacedLeaseRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2345,7 +2457,7 @@ public APIreplaceNamespacedLeaseRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedLeaseRequest */ - public APIreplaceNamespacedLeaseRequest dryRun(String dryRun) { + public APIreplaceNamespacedLeaseRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2355,7 +2467,7 @@ public APIreplaceNamespacedLeaseRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedLeaseRequest */ - public APIreplaceNamespacedLeaseRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedLeaseRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2365,7 +2477,7 @@ public APIreplaceNamespacedLeaseRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedLeaseRequest */ - public APIreplaceNamespacedLeaseRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedLeaseRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2376,7 +2488,8 @@ public APIreplaceNamespacedLeaseRequest fieldValidation(String fieldValidation) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2392,7 +2505,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Lease * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2409,7 +2523,8 @@ public V1Lease execute() throws ApiException { * @return ApiResponse<V1Lease> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2426,7 +2541,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2446,14 +2562,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap * @param body (required) * @return APIreplaceNamespacedLeaseRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedLeaseRequest replaceNamespacedLease(String name, String namespace, V1Lease body) { + public APIreplaceNamespacedLeaseRequest replaceNamespacedLease(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Lease body) { return new APIreplaceNamespacedLeaseRequest(name, namespace, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha2Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha2Api.java index 188c1363e2..bec94a9127 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha2Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha2Api.java @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createNamespacedLeaseCandidateCall(String namespace, V1alpha2LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2LeaseCandidate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -142,7 +142,7 @@ private okhttp3.Call createNamespacedLeaseCandidateCall(String namespace, V1alph } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedLeaseCandidateValidateBeforeCall(String namespace, V1alpha2LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedLeaseCandidateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2LeaseCandidate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedLeaseCandidate(Async)"); @@ -158,13 +158,13 @@ private okhttp3.Call createNamespacedLeaseCandidateValidateBeforeCall(String nam } - private ApiResponse createNamespacedLeaseCandidateWithHttpInfo(String namespace, V1alpha2LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedLeaseCandidateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2LeaseCandidate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedLeaseCandidateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedLeaseCandidateAsync(String namespace, V1alpha2LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedLeaseCandidateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2LeaseCandidate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedLeaseCandidateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -173,14 +173,20 @@ private okhttp3.Call createNamespacedLeaseCandidateAsync(String namespace, V1alp } public class APIcreateNamespacedLeaseCandidateRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1alpha2LeaseCandidate body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedLeaseCandidateRequest(String namespace, V1alpha2LeaseCandidate body) { + private APIcreateNamespacedLeaseCandidateRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2LeaseCandidate body) { this.namespace = namespace; this.body = body; } @@ -190,7 +196,7 @@ private APIcreateNamespacedLeaseCandidateRequest(String namespace, V1alpha2Lease * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedLeaseCandidateRequest */ - public APIcreateNamespacedLeaseCandidateRequest pretty(String pretty) { + public APIcreateNamespacedLeaseCandidateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -200,7 +206,7 @@ public APIcreateNamespacedLeaseCandidateRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedLeaseCandidateRequest */ - public APIcreateNamespacedLeaseCandidateRequest dryRun(String dryRun) { + public APIcreateNamespacedLeaseCandidateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -210,7 +216,7 @@ public APIcreateNamespacedLeaseCandidateRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedLeaseCandidateRequest */ - public APIcreateNamespacedLeaseCandidateRequest fieldManager(String fieldManager) { + public APIcreateNamespacedLeaseCandidateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -220,7 +226,7 @@ public APIcreateNamespacedLeaseCandidateRequest fieldManager(String fieldManager * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedLeaseCandidateRequest */ - public APIcreateNamespacedLeaseCandidateRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedLeaseCandidateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -231,7 +237,8 @@ public APIcreateNamespacedLeaseCandidateRequest fieldValidation(String fieldVali * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -248,7 +255,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha2LeaseCandidate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -266,7 +274,8 @@ public V1alpha2LeaseCandidate execute() throws ApiException { * @return ApiResponse<V1alpha2LeaseCandidate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -284,7 +293,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -304,7 +314,8 @@ public okhttp3.Call executeAsync(final ApiCallback _call * @param body (required) * @return APIcreateNamespacedLeaseCandidateRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -312,10 +323,10 @@ public okhttp3.Call executeAsync(final ApiCallback _call
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedLeaseCandidateRequest createNamespacedLeaseCandidate(String namespace, V1alpha2LeaseCandidate body) { + public APIcreateNamespacedLeaseCandidateRequest createNamespacedLeaseCandidate(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2LeaseCandidate body) { return new APIcreateNamespacedLeaseCandidateRequest(namespace, body); } - private okhttp3.Call deleteCollectionNamespacedLeaseCandidateCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -421,7 +432,7 @@ private okhttp3.Call deleteCollectionNamespacedLeaseCandidateCall(String namespa } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedLeaseCandidate(Async)"); @@ -432,13 +443,13 @@ private okhttp3.Call deleteCollectionNamespacedLeaseCandidateValidateBeforeCall( } - private ApiResponse deleteCollectionNamespacedLeaseCandidateWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedLeaseCandidateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedLeaseCandidateAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLeaseCandidateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -447,24 +458,40 @@ private okhttp3.Call deleteCollectionNamespacedLeaseCandidateAsync(String namesp } public class APIdeleteCollectionNamespacedLeaseCandidateRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedLeaseCandidateRequest(String namespace) { + private APIdeleteCollectionNamespacedLeaseCandidateRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -473,7 +500,7 @@ private APIdeleteCollectionNamespacedLeaseCandidateRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedLeaseCandidateRequest */ - public APIdeleteCollectionNamespacedLeaseCandidateRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedLeaseCandidateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -483,7 +510,7 @@ public APIdeleteCollectionNamespacedLeaseCandidateRequest pretty(String pretty) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedLeaseCandidateRequest */ - public APIdeleteCollectionNamespacedLeaseCandidateRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedLeaseCandidateRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -493,7 +520,7 @@ public APIdeleteCollectionNamespacedLeaseCandidateRequest _continue(String _cont * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedLeaseCandidateRequest */ - public APIdeleteCollectionNamespacedLeaseCandidateRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedLeaseCandidateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -503,7 +530,7 @@ public APIdeleteCollectionNamespacedLeaseCandidateRequest dryRun(String dryRun) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedLeaseCandidateRequest */ - public APIdeleteCollectionNamespacedLeaseCandidateRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedLeaseCandidateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -513,7 +540,7 @@ public APIdeleteCollectionNamespacedLeaseCandidateRequest fieldSelector(String f * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedLeaseCandidateRequest */ - public APIdeleteCollectionNamespacedLeaseCandidateRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedLeaseCandidateRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -523,7 +550,7 @@ public APIdeleteCollectionNamespacedLeaseCandidateRequest gracePeriodSeconds(Int * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedLeaseCandidateRequest */ - public APIdeleteCollectionNamespacedLeaseCandidateRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedLeaseCandidateRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -533,7 +560,7 @@ public APIdeleteCollectionNamespacedLeaseCandidateRequest ignoreStoreReadErrorWi * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedLeaseCandidateRequest */ - public APIdeleteCollectionNamespacedLeaseCandidateRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedLeaseCandidateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -543,7 +570,7 @@ public APIdeleteCollectionNamespacedLeaseCandidateRequest labelSelector(String l * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedLeaseCandidateRequest */ - public APIdeleteCollectionNamespacedLeaseCandidateRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedLeaseCandidateRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -553,7 +580,7 @@ public APIdeleteCollectionNamespacedLeaseCandidateRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedLeaseCandidateRequest */ - public APIdeleteCollectionNamespacedLeaseCandidateRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedLeaseCandidateRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -563,7 +590,7 @@ public APIdeleteCollectionNamespacedLeaseCandidateRequest orphanDependents(Boole * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedLeaseCandidateRequest */ - public APIdeleteCollectionNamespacedLeaseCandidateRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedLeaseCandidateRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -573,7 +600,7 @@ public APIdeleteCollectionNamespacedLeaseCandidateRequest propagationPolicy(Stri * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedLeaseCandidateRequest */ - public APIdeleteCollectionNamespacedLeaseCandidateRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedLeaseCandidateRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -583,7 +610,7 @@ public APIdeleteCollectionNamespacedLeaseCandidateRequest resourceVersion(String * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedLeaseCandidateRequest */ - public APIdeleteCollectionNamespacedLeaseCandidateRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedLeaseCandidateRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -593,7 +620,7 @@ public APIdeleteCollectionNamespacedLeaseCandidateRequest resourceVersionMatch(S * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedLeaseCandidateRequest */ - public APIdeleteCollectionNamespacedLeaseCandidateRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedLeaseCandidateRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -603,7 +630,7 @@ public APIdeleteCollectionNamespacedLeaseCandidateRequest sendInitialEvents(Bool * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedLeaseCandidateRequest */ - public APIdeleteCollectionNamespacedLeaseCandidateRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedLeaseCandidateRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -613,7 +640,7 @@ public APIdeleteCollectionNamespacedLeaseCandidateRequest timeoutSeconds(Integer * @param body (optional) * @return APIdeleteCollectionNamespacedLeaseCandidateRequest */ - public APIdeleteCollectionNamespacedLeaseCandidateRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedLeaseCandidateRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -624,7 +651,8 @@ public APIdeleteCollectionNamespacedLeaseCandidateRequest body(V1DeleteOptions b * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -639,7 +667,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -655,7 +684,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -671,7 +701,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -688,16 +719,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedLeaseCandidateRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedLeaseCandidateRequest deleteCollectionNamespacedLeaseCandidate(String namespace) { + public APIdeleteCollectionNamespacedLeaseCandidateRequest deleteCollectionNamespacedLeaseCandidate(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedLeaseCandidateRequest(namespace); } - private okhttp3.Call deleteNamespacedLeaseCandidateCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -772,7 +804,7 @@ private okhttp3.Call deleteNamespacedLeaseCandidateCall(String name, String name } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedLeaseCandidateValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedLeaseCandidateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedLeaseCandidate(Async)"); @@ -788,13 +820,13 @@ private okhttp3.Call deleteNamespacedLeaseCandidateValidateBeforeCall(String nam } - private ApiResponse deleteNamespacedLeaseCandidateWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedLeaseCandidateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedLeaseCandidateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedLeaseCandidateAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedLeaseCandidateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedLeaseCandidateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -803,17 +835,26 @@ private okhttp3.Call deleteNamespacedLeaseCandidateAsync(String name, String nam } public class APIdeleteNamespacedLeaseCandidateRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedLeaseCandidateRequest(String name, String namespace) { + private APIdeleteNamespacedLeaseCandidateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -823,7 +864,7 @@ private APIdeleteNamespacedLeaseCandidateRequest(String name, String namespace) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedLeaseCandidateRequest */ - public APIdeleteNamespacedLeaseCandidateRequest pretty(String pretty) { + public APIdeleteNamespacedLeaseCandidateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -833,7 +874,7 @@ public APIdeleteNamespacedLeaseCandidateRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedLeaseCandidateRequest */ - public APIdeleteNamespacedLeaseCandidateRequest dryRun(String dryRun) { + public APIdeleteNamespacedLeaseCandidateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -843,7 +884,7 @@ public APIdeleteNamespacedLeaseCandidateRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedLeaseCandidateRequest */ - public APIdeleteNamespacedLeaseCandidateRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedLeaseCandidateRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -853,7 +894,7 @@ public APIdeleteNamespacedLeaseCandidateRequest gracePeriodSeconds(Integer grace * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedLeaseCandidateRequest */ - public APIdeleteNamespacedLeaseCandidateRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedLeaseCandidateRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -863,7 +904,7 @@ public APIdeleteNamespacedLeaseCandidateRequest ignoreStoreReadErrorWithClusterB * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedLeaseCandidateRequest */ - public APIdeleteNamespacedLeaseCandidateRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedLeaseCandidateRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -873,7 +914,7 @@ public APIdeleteNamespacedLeaseCandidateRequest orphanDependents(Boolean orphanD * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedLeaseCandidateRequest */ - public APIdeleteNamespacedLeaseCandidateRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedLeaseCandidateRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -883,7 +924,7 @@ public APIdeleteNamespacedLeaseCandidateRequest propagationPolicy(String propaga * @param body (optional) * @return APIdeleteNamespacedLeaseCandidateRequest */ - public APIdeleteNamespacedLeaseCandidateRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedLeaseCandidateRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -894,7 +935,8 @@ public APIdeleteNamespacedLeaseCandidateRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -910,7 +952,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -927,7 +970,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -944,7 +988,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -963,14 +1008,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedLeaseCandidateRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedLeaseCandidateRequest deleteNamespacedLeaseCandidate(String name, String namespace) { + public APIdeleteNamespacedLeaseCandidateRequest deleteNamespacedLeaseCandidate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedLeaseCandidateRequest(name, namespace); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -1052,7 +1098,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1067,7 +1114,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1083,7 +1131,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1099,7 +1148,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1115,7 +1165,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1124,7 +1175,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listLeaseCandidateForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listLeaseCandidateForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1219,19 +1270,19 @@ private okhttp3.Call listLeaseCandidateForAllNamespacesCall(Boolean allowWatchBo } @SuppressWarnings("rawtypes") - private okhttp3.Call listLeaseCandidateForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listLeaseCandidateForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listLeaseCandidateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listLeaseCandidateForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listLeaseCandidateForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listLeaseCandidateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listLeaseCandidateForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listLeaseCandidateForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listLeaseCandidateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1240,16 +1291,27 @@ private okhttp3.Call listLeaseCandidateForAllNamespacesAsync(Boolean allowWatchB } public class APIlistLeaseCandidateForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistLeaseCandidateForAllNamespacesRequest() { @@ -1260,7 +1322,7 @@ private APIlistLeaseCandidateForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistLeaseCandidateForAllNamespacesRequest */ - public APIlistLeaseCandidateForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistLeaseCandidateForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1270,7 +1332,7 @@ public APIlistLeaseCandidateForAllNamespacesRequest allowWatchBookmarks(Boolean * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistLeaseCandidateForAllNamespacesRequest */ - public APIlistLeaseCandidateForAllNamespacesRequest _continue(String _continue) { + public APIlistLeaseCandidateForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1280,7 +1342,7 @@ public APIlistLeaseCandidateForAllNamespacesRequest _continue(String _continue) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistLeaseCandidateForAllNamespacesRequest */ - public APIlistLeaseCandidateForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistLeaseCandidateForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1290,7 +1352,7 @@ public APIlistLeaseCandidateForAllNamespacesRequest fieldSelector(String fieldSe * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistLeaseCandidateForAllNamespacesRequest */ - public APIlistLeaseCandidateForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistLeaseCandidateForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1300,7 +1362,7 @@ public APIlistLeaseCandidateForAllNamespacesRequest labelSelector(String labelSe * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistLeaseCandidateForAllNamespacesRequest */ - public APIlistLeaseCandidateForAllNamespacesRequest limit(Integer limit) { + public APIlistLeaseCandidateForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1310,7 +1372,7 @@ public APIlistLeaseCandidateForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistLeaseCandidateForAllNamespacesRequest */ - public APIlistLeaseCandidateForAllNamespacesRequest pretty(String pretty) { + public APIlistLeaseCandidateForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1320,7 +1382,7 @@ public APIlistLeaseCandidateForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistLeaseCandidateForAllNamespacesRequest */ - public APIlistLeaseCandidateForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistLeaseCandidateForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1330,7 +1392,7 @@ public APIlistLeaseCandidateForAllNamespacesRequest resourceVersion(String resou * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistLeaseCandidateForAllNamespacesRequest */ - public APIlistLeaseCandidateForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistLeaseCandidateForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1340,7 +1402,7 @@ public APIlistLeaseCandidateForAllNamespacesRequest resourceVersionMatch(String * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistLeaseCandidateForAllNamespacesRequest */ - public APIlistLeaseCandidateForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistLeaseCandidateForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1350,7 +1412,7 @@ public APIlistLeaseCandidateForAllNamespacesRequest sendInitialEvents(Boolean se * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistLeaseCandidateForAllNamespacesRequest */ - public APIlistLeaseCandidateForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistLeaseCandidateForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1360,7 +1422,7 @@ public APIlistLeaseCandidateForAllNamespacesRequest timeoutSeconds(Integer timeo * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistLeaseCandidateForAllNamespacesRequest */ - public APIlistLeaseCandidateForAllNamespacesRequest watch(Boolean watch) { + public APIlistLeaseCandidateForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1371,7 +1433,8 @@ public APIlistLeaseCandidateForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1386,7 +1449,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha2LeaseCandidateList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1402,7 +1466,8 @@ public V1alpha2LeaseCandidateList execute() throws ApiException { * @return ApiResponse<V1alpha2LeaseCandidateList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1418,7 +1483,8 @@ public ApiResponse executeWithHttpInfo() throws ApiE * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1434,7 +1500,8 @@ public okhttp3.Call executeAsync(final ApiCallback _ * list or watch objects of kind LeaseCandidate * @return APIlistLeaseCandidateForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1443,7 +1510,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ public APIlistLeaseCandidateForAllNamespacesRequest listLeaseCandidateForAllNamespaces() { return new APIlistLeaseCandidateForAllNamespacesRequest(); } - private okhttp3.Call listNamespacedLeaseCandidateCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1539,7 +1606,7 @@ private okhttp3.Call listNamespacedLeaseCandidateCall(String namespace, String p } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedLeaseCandidateValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedLeaseCandidateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedLeaseCandidate(Async)"); @@ -1550,13 +1617,13 @@ private okhttp3.Call listNamespacedLeaseCandidateValidateBeforeCall(String names } - private ApiResponse listNamespacedLeaseCandidateWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedLeaseCandidateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedLeaseCandidateAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedLeaseCandidateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1565,20 +1632,32 @@ private okhttp3.Call listNamespacedLeaseCandidateAsync(String namespace, String } public class APIlistNamespacedLeaseCandidateRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedLeaseCandidateRequest(String namespace) { + private APIlistNamespacedLeaseCandidateRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -1587,7 +1666,7 @@ private APIlistNamespacedLeaseCandidateRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedLeaseCandidateRequest */ - public APIlistNamespacedLeaseCandidateRequest pretty(String pretty) { + public APIlistNamespacedLeaseCandidateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1597,7 +1676,7 @@ public APIlistNamespacedLeaseCandidateRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedLeaseCandidateRequest */ - public APIlistNamespacedLeaseCandidateRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedLeaseCandidateRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1607,7 +1686,7 @@ public APIlistNamespacedLeaseCandidateRequest allowWatchBookmarks(Boolean allowW * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedLeaseCandidateRequest */ - public APIlistNamespacedLeaseCandidateRequest _continue(String _continue) { + public APIlistNamespacedLeaseCandidateRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1617,7 +1696,7 @@ public APIlistNamespacedLeaseCandidateRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedLeaseCandidateRequest */ - public APIlistNamespacedLeaseCandidateRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedLeaseCandidateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1627,7 +1706,7 @@ public APIlistNamespacedLeaseCandidateRequest fieldSelector(String fieldSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedLeaseCandidateRequest */ - public APIlistNamespacedLeaseCandidateRequest labelSelector(String labelSelector) { + public APIlistNamespacedLeaseCandidateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1637,7 +1716,7 @@ public APIlistNamespacedLeaseCandidateRequest labelSelector(String labelSelector * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedLeaseCandidateRequest */ - public APIlistNamespacedLeaseCandidateRequest limit(Integer limit) { + public APIlistNamespacedLeaseCandidateRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1647,7 +1726,7 @@ public APIlistNamespacedLeaseCandidateRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedLeaseCandidateRequest */ - public APIlistNamespacedLeaseCandidateRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedLeaseCandidateRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1657,7 +1736,7 @@ public APIlistNamespacedLeaseCandidateRequest resourceVersion(String resourceVer * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedLeaseCandidateRequest */ - public APIlistNamespacedLeaseCandidateRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedLeaseCandidateRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1667,7 +1746,7 @@ public APIlistNamespacedLeaseCandidateRequest resourceVersionMatch(String resour * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedLeaseCandidateRequest */ - public APIlistNamespacedLeaseCandidateRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedLeaseCandidateRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1677,7 +1756,7 @@ public APIlistNamespacedLeaseCandidateRequest sendInitialEvents(Boolean sendInit * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedLeaseCandidateRequest */ - public APIlistNamespacedLeaseCandidateRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedLeaseCandidateRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1687,7 +1766,7 @@ public APIlistNamespacedLeaseCandidateRequest timeoutSeconds(Integer timeoutSeco * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedLeaseCandidateRequest */ - public APIlistNamespacedLeaseCandidateRequest watch(Boolean watch) { + public APIlistNamespacedLeaseCandidateRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1698,7 +1777,8 @@ public APIlistNamespacedLeaseCandidateRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1713,7 +1793,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha2LeaseCandidateList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1729,7 +1810,8 @@ public V1alpha2LeaseCandidateList execute() throws ApiException { * @return ApiResponse<V1alpha2LeaseCandidateList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1745,7 +1827,8 @@ public ApiResponse executeWithHttpInfo() throws ApiE * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1762,16 +1845,17 @@ public okhttp3.Call executeAsync(final ApiCallback _ * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedLeaseCandidateRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedLeaseCandidateRequest listNamespacedLeaseCandidate(String namespace) { + public APIlistNamespacedLeaseCandidateRequest listNamespacedLeaseCandidate(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedLeaseCandidateRequest(namespace); } - private okhttp3.Call patchNamespacedLeaseCandidateCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1842,7 +1926,7 @@ private okhttp3.Call patchNamespacedLeaseCandidateCall(String name, String names } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedLeaseCandidateValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedLeaseCandidateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedLeaseCandidate(Async)"); @@ -1863,13 +1947,13 @@ private okhttp3.Call patchNamespacedLeaseCandidateValidateBeforeCall(String name } - private ApiResponse patchNamespacedLeaseCandidateWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedLeaseCandidateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedLeaseCandidateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedLeaseCandidateAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedLeaseCandidateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedLeaseCandidateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1878,16 +1962,24 @@ private okhttp3.Call patchNamespacedLeaseCandidateAsync(String name, String name } public class APIpatchNamespacedLeaseCandidateRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedLeaseCandidateRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedLeaseCandidateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -1898,7 +1990,7 @@ private APIpatchNamespacedLeaseCandidateRequest(String name, String namespace, V * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedLeaseCandidateRequest */ - public APIpatchNamespacedLeaseCandidateRequest pretty(String pretty) { + public APIpatchNamespacedLeaseCandidateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1908,7 +2000,7 @@ public APIpatchNamespacedLeaseCandidateRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedLeaseCandidateRequest */ - public APIpatchNamespacedLeaseCandidateRequest dryRun(String dryRun) { + public APIpatchNamespacedLeaseCandidateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1918,7 +2010,7 @@ public APIpatchNamespacedLeaseCandidateRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedLeaseCandidateRequest */ - public APIpatchNamespacedLeaseCandidateRequest fieldManager(String fieldManager) { + public APIpatchNamespacedLeaseCandidateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1928,7 +2020,7 @@ public APIpatchNamespacedLeaseCandidateRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedLeaseCandidateRequest */ - public APIpatchNamespacedLeaseCandidateRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedLeaseCandidateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1938,7 +2030,7 @@ public APIpatchNamespacedLeaseCandidateRequest fieldValidation(String fieldValid * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedLeaseCandidateRequest */ - public APIpatchNamespacedLeaseCandidateRequest force(Boolean force) { + public APIpatchNamespacedLeaseCandidateRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1949,7 +2041,8 @@ public APIpatchNamespacedLeaseCandidateRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1965,7 +2058,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha2LeaseCandidate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1982,7 +2076,8 @@ public V1alpha2LeaseCandidate execute() throws ApiException { * @return ApiResponse<V1alpha2LeaseCandidate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1999,7 +2094,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2019,17 +2115,18 @@ public okhttp3.Call executeAsync(final ApiCallback _call * @param body (required) * @return APIpatchNamespacedLeaseCandidateRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedLeaseCandidateRequest patchNamespacedLeaseCandidate(String name, String namespace, V1Patch body) { + public APIpatchNamespacedLeaseCandidateRequest patchNamespacedLeaseCandidate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedLeaseCandidateRequest(name, namespace, body); } - private okhttp3.Call readNamespacedLeaseCandidateCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2083,7 +2180,7 @@ private okhttp3.Call readNamespacedLeaseCandidateCall(String name, String namesp } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedLeaseCandidateValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedLeaseCandidateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedLeaseCandidate(Async)"); @@ -2099,13 +2196,13 @@ private okhttp3.Call readNamespacedLeaseCandidateValidateBeforeCall(String name, } - private ApiResponse readNamespacedLeaseCandidateWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedLeaseCandidateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedLeaseCandidateValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedLeaseCandidateAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedLeaseCandidateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedLeaseCandidateValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2114,11 +2211,14 @@ private okhttp3.Call readNamespacedLeaseCandidateAsync(String name, String names } public class APIreadNamespacedLeaseCandidateRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedLeaseCandidateRequest(String name, String namespace) { + private APIreadNamespacedLeaseCandidateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -2128,7 +2228,7 @@ private APIreadNamespacedLeaseCandidateRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedLeaseCandidateRequest */ - public APIreadNamespacedLeaseCandidateRequest pretty(String pretty) { + public APIreadNamespacedLeaseCandidateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2139,7 +2239,8 @@ public APIreadNamespacedLeaseCandidateRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2154,7 +2255,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha2LeaseCandidate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2170,7 +2272,8 @@ public V1alpha2LeaseCandidate execute() throws ApiException { * @return ApiResponse<V1alpha2LeaseCandidate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2186,7 +2289,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2204,16 +2308,17 @@ public okhttp3.Call executeAsync(final ApiCallback _call * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedLeaseCandidateRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedLeaseCandidateRequest readNamespacedLeaseCandidate(String name, String namespace) { + public APIreadNamespacedLeaseCandidateRequest readNamespacedLeaseCandidate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedLeaseCandidateRequest(name, namespace); } - private okhttp3.Call replaceNamespacedLeaseCandidateCall(String name, String namespace, V1alpha2LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2LeaseCandidate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2280,7 +2385,7 @@ private okhttp3.Call replaceNamespacedLeaseCandidateCall(String name, String nam } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedLeaseCandidateValidateBeforeCall(String name, String namespace, V1alpha2LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedLeaseCandidateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2LeaseCandidate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedLeaseCandidate(Async)"); @@ -2301,13 +2406,13 @@ private okhttp3.Call replaceNamespacedLeaseCandidateValidateBeforeCall(String na } - private ApiResponse replaceNamespacedLeaseCandidateWithHttpInfo(String name, String namespace, V1alpha2LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedLeaseCandidateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2LeaseCandidate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedLeaseCandidateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedLeaseCandidateAsync(String name, String namespace, V1alpha2LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedLeaseCandidateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2LeaseCandidate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedLeaseCandidateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2316,15 +2421,22 @@ private okhttp3.Call replaceNamespacedLeaseCandidateAsync(String name, String na } public class APIreplaceNamespacedLeaseCandidateRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1alpha2LeaseCandidate body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedLeaseCandidateRequest(String name, String namespace, V1alpha2LeaseCandidate body) { + private APIreplaceNamespacedLeaseCandidateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2LeaseCandidate body) { this.name = name; this.namespace = namespace; this.body = body; @@ -2335,7 +2447,7 @@ private APIreplaceNamespacedLeaseCandidateRequest(String name, String namespace, * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedLeaseCandidateRequest */ - public APIreplaceNamespacedLeaseCandidateRequest pretty(String pretty) { + public APIreplaceNamespacedLeaseCandidateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2345,7 +2457,7 @@ public APIreplaceNamespacedLeaseCandidateRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedLeaseCandidateRequest */ - public APIreplaceNamespacedLeaseCandidateRequest dryRun(String dryRun) { + public APIreplaceNamespacedLeaseCandidateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2355,7 +2467,7 @@ public APIreplaceNamespacedLeaseCandidateRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedLeaseCandidateRequest */ - public APIreplaceNamespacedLeaseCandidateRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedLeaseCandidateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2365,7 +2477,7 @@ public APIreplaceNamespacedLeaseCandidateRequest fieldManager(String fieldManage * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedLeaseCandidateRequest */ - public APIreplaceNamespacedLeaseCandidateRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedLeaseCandidateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2376,7 +2488,8 @@ public APIreplaceNamespacedLeaseCandidateRequest fieldValidation(String fieldVal * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2392,7 +2505,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha2LeaseCandidate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2409,7 +2523,8 @@ public V1alpha2LeaseCandidate execute() throws ApiException { * @return ApiResponse<V1alpha2LeaseCandidate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2426,7 +2541,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2446,14 +2562,15 @@ public okhttp3.Call executeAsync(final ApiCallback _call * @param body (required) * @return APIreplaceNamespacedLeaseCandidateRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedLeaseCandidateRequest replaceNamespacedLeaseCandidate(String name, String namespace, V1alpha2LeaseCandidate body) { + public APIreplaceNamespacedLeaseCandidateRequest replaceNamespacedLeaseCandidate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2LeaseCandidate body) { return new APIreplaceNamespacedLeaseCandidateRequest(name, namespace, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java new file mode 100644 index 0000000000..82451d4b1d --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java @@ -0,0 +1,2576 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.apis; + +import io.kubernetes.client.openapi.ApiCallback; +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.ApiResponse; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.Pair; +import io.kubernetes.client.openapi.ProgressRequestBody; +import io.kubernetes.client.openapi.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.kubernetes.client.openapi.models.V1APIResourceList; +import io.kubernetes.client.openapi.models.V1DeleteOptions; +import io.kubernetes.client.custom.V1Patch; +import io.kubernetes.client.openapi.models.V1Status; +import io.kubernetes.client.openapi.models.V1beta1LeaseCandidate; +import io.kubernetes.client.openapi.models.V1beta1LeaseCandidateList; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CoordinationV1beta1Api { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public CoordinationV1beta1Api() { + this(Configuration.getDefaultApiClient()); + } + + public CoordinationV1beta1Api(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + private okhttp3.Call createNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1LeaseCandidate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createNamespacedLeaseCandidateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1LeaseCandidate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedLeaseCandidate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createNamespacedLeaseCandidate(Async)"); + } + + return createNamespacedLeaseCandidateCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse createNamespacedLeaseCandidateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1LeaseCandidate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createNamespacedLeaseCandidateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createNamespacedLeaseCandidateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1LeaseCandidate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedLeaseCandidateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateNamespacedLeaseCandidateRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1beta1LeaseCandidate body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIcreateNamespacedLeaseCandidateRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1LeaseCandidate body) { + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIcreateNamespacedLeaseCandidateRequest + */ + public APIcreateNamespacedLeaseCandidateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIcreateNamespacedLeaseCandidateRequest + */ + public APIcreateNamespacedLeaseCandidateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIcreateNamespacedLeaseCandidateRequest + */ + public APIcreateNamespacedLeaseCandidateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIcreateNamespacedLeaseCandidateRequest + */ + public APIcreateNamespacedLeaseCandidateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for createNamespacedLeaseCandidate + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return createNamespacedLeaseCandidateCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute createNamespacedLeaseCandidate request + * @return V1beta1LeaseCandidate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta1LeaseCandidate execute() throws ApiException { + ApiResponse localVarResp = createNamespacedLeaseCandidateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createNamespacedLeaseCandidate request with HTTP info returned + * @return ApiResponse<V1beta1LeaseCandidate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createNamespacedLeaseCandidateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute createNamespacedLeaseCandidate request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createNamespacedLeaseCandidateAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * create a LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIcreateNamespacedLeaseCandidateRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public APIcreateNamespacedLeaseCandidateRequest createNamespacedLeaseCandidate(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1LeaseCandidate body) { + return new APIcreateNamespacedLeaseCandidateRequest(namespace, body); + } + private okhttp3.Call deleteCollectionNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedLeaseCandidate(Async)"); + } + + return deleteCollectionNamespacedLeaseCandidateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + + } + + + private ApiResponse deleteCollectionNamespacedLeaseCandidateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteCollectionNamespacedLeaseCandidateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteCollectionNamespacedLeaseCandidateRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionNamespacedLeaseCandidateRequest(@jakarta.annotation.Nonnull String namespace) { + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteCollectionNamespacedLeaseCandidateRequest + */ + public APIdeleteCollectionNamespacedLeaseCandidateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIdeleteCollectionNamespacedLeaseCandidateRequest + */ + public APIdeleteCollectionNamespacedLeaseCandidateRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteCollectionNamespacedLeaseCandidateRequest + */ + public APIdeleteCollectionNamespacedLeaseCandidateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionNamespacedLeaseCandidateRequest + */ + public APIdeleteCollectionNamespacedLeaseCandidateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteCollectionNamespacedLeaseCandidateRequest + */ + public APIdeleteCollectionNamespacedLeaseCandidateRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionNamespacedLeaseCandidateRequest + */ + public APIdeleteCollectionNamespacedLeaseCandidateRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionNamespacedLeaseCandidateRequest + */ + public APIdeleteCollectionNamespacedLeaseCandidateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIdeleteCollectionNamespacedLeaseCandidateRequest + */ + public APIdeleteCollectionNamespacedLeaseCandidateRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteCollectionNamespacedLeaseCandidateRequest + */ + public APIdeleteCollectionNamespacedLeaseCandidateRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteCollectionNamespacedLeaseCandidateRequest + */ + public APIdeleteCollectionNamespacedLeaseCandidateRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionNamespacedLeaseCandidateRequest + */ + public APIdeleteCollectionNamespacedLeaseCandidateRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionNamespacedLeaseCandidateRequest + */ + public APIdeleteCollectionNamespacedLeaseCandidateRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionNamespacedLeaseCandidateRequest + */ + public APIdeleteCollectionNamespacedLeaseCandidateRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionNamespacedLeaseCandidateRequest + */ + public APIdeleteCollectionNamespacedLeaseCandidateRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionNamespacedLeaseCandidateRequest + */ + public APIdeleteCollectionNamespacedLeaseCandidateRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionNamespacedLeaseCandidate + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteCollectionNamespacedLeaseCandidateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionNamespacedLeaseCandidate request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionNamespacedLeaseCandidate request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCollectionNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionNamespacedLeaseCandidate request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCollectionNamespacedLeaseCandidateAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteCollectionNamespacedLeaseCandidateRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionNamespacedLeaseCandidateRequest deleteCollectionNamespacedLeaseCandidate(@jakarta.annotation.Nonnull String namespace) { + return new APIdeleteCollectionNamespacedLeaseCandidateRequest(namespace); + } + private okhttp3.Call deleteNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNamespacedLeaseCandidateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedLeaseCandidate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedLeaseCandidate(Async)"); + } + + return deleteNamespacedLeaseCandidateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteNamespacedLeaseCandidateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedLeaseCandidateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteNamespacedLeaseCandidateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteNamespacedLeaseCandidateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteNamespacedLeaseCandidateRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteNamespacedLeaseCandidateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteNamespacedLeaseCandidateRequest + */ + public APIdeleteNamespacedLeaseCandidateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteNamespacedLeaseCandidateRequest + */ + public APIdeleteNamespacedLeaseCandidateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteNamespacedLeaseCandidateRequest + */ + public APIdeleteNamespacedLeaseCandidateRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteNamespacedLeaseCandidateRequest + */ + public APIdeleteNamespacedLeaseCandidateRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteNamespacedLeaseCandidateRequest + */ + public APIdeleteNamespacedLeaseCandidateRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteNamespacedLeaseCandidateRequest + */ + public APIdeleteNamespacedLeaseCandidateRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteNamespacedLeaseCandidateRequest + */ + public APIdeleteNamespacedLeaseCandidateRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteNamespacedLeaseCandidate + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteNamespacedLeaseCandidateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteNamespacedLeaseCandidate request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteNamespacedLeaseCandidateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteNamespacedLeaseCandidate request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteNamespacedLeaseCandidateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteNamespacedLeaseCandidate request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteNamespacedLeaseCandidateAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteNamespacedLeaseCandidateRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteNamespacedLeaseCandidateRequest deleteNamespacedLeaseCandidate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIdeleteNamespacedLeaseCandidateRequest(name, namespace); + } + private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1beta1/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return getAPIResourcesCall(_callback); + + } + + + private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetAPIResourcesRequest { + + private APIgetAPIResourcesRequest() { + } + + /** + * Build call for getAPIResources + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getAPIResourcesCall(_callback); + } + + /** + * Execute getAPIResources request + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList execute() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Execute getAPIResources request with HTTP info returned + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getAPIResourcesWithHttpInfo(); + } + + /** + * Execute getAPIResources request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getAPIResourcesAsync(_callback); + } + } + + /** + * + * get available resources + * @return APIgetAPIResourcesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIgetAPIResourcesRequest getAPIResources() { + return new APIgetAPIResourcesRequest(); + } + private okhttp3.Call listLeaseCandidateForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1beta1/leasecandidates"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listLeaseCandidateForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listLeaseCandidateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listLeaseCandidateForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listLeaseCandidateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listLeaseCandidateForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listLeaseCandidateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistLeaseCandidateForAllNamespacesRequest { + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistLeaseCandidateForAllNamespacesRequest() { + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistLeaseCandidateForAllNamespacesRequest + */ + public APIlistLeaseCandidateForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistLeaseCandidateForAllNamespacesRequest + */ + public APIlistLeaseCandidateForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistLeaseCandidateForAllNamespacesRequest + */ + public APIlistLeaseCandidateForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistLeaseCandidateForAllNamespacesRequest + */ + public APIlistLeaseCandidateForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistLeaseCandidateForAllNamespacesRequest + */ + public APIlistLeaseCandidateForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistLeaseCandidateForAllNamespacesRequest + */ + public APIlistLeaseCandidateForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistLeaseCandidateForAllNamespacesRequest + */ + public APIlistLeaseCandidateForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistLeaseCandidateForAllNamespacesRequest + */ + public APIlistLeaseCandidateForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistLeaseCandidateForAllNamespacesRequest + */ + public APIlistLeaseCandidateForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistLeaseCandidateForAllNamespacesRequest + */ + public APIlistLeaseCandidateForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistLeaseCandidateForAllNamespacesRequest + */ + public APIlistLeaseCandidateForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listLeaseCandidateForAllNamespaces + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listLeaseCandidateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listLeaseCandidateForAllNamespaces request + * @return V1beta1LeaseCandidateList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1LeaseCandidateList execute() throws ApiException { + ApiResponse localVarResp = listLeaseCandidateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listLeaseCandidateForAllNamespaces request with HTTP info returned + * @return ApiResponse<V1beta1LeaseCandidateList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listLeaseCandidateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + } + + /** + * Execute listLeaseCandidateForAllNamespaces request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listLeaseCandidateForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind LeaseCandidate + * @return APIlistLeaseCandidateForAllNamespacesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistLeaseCandidateForAllNamespacesRequest listLeaseCandidateForAllNamespaces() { + return new APIlistLeaseCandidateForAllNamespacesRequest(); + } + private okhttp3.Call listNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNamespacedLeaseCandidateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedLeaseCandidate(Async)"); + } + + return listNamespacedLeaseCandidateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listNamespacedLeaseCandidateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listNamespacedLeaseCandidateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistNamespacedLeaseCandidateRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistNamespacedLeaseCandidateRequest(@jakarta.annotation.Nonnull String namespace) { + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistNamespacedLeaseCandidateRequest + */ + public APIlistNamespacedLeaseCandidateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistNamespacedLeaseCandidateRequest + */ + public APIlistNamespacedLeaseCandidateRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistNamespacedLeaseCandidateRequest + */ + public APIlistNamespacedLeaseCandidateRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistNamespacedLeaseCandidateRequest + */ + public APIlistNamespacedLeaseCandidateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistNamespacedLeaseCandidateRequest + */ + public APIlistNamespacedLeaseCandidateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistNamespacedLeaseCandidateRequest + */ + public APIlistNamespacedLeaseCandidateRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistNamespacedLeaseCandidateRequest + */ + public APIlistNamespacedLeaseCandidateRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistNamespacedLeaseCandidateRequest + */ + public APIlistNamespacedLeaseCandidateRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistNamespacedLeaseCandidateRequest + */ + public APIlistNamespacedLeaseCandidateRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistNamespacedLeaseCandidateRequest + */ + public APIlistNamespacedLeaseCandidateRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistNamespacedLeaseCandidateRequest + */ + public APIlistNamespacedLeaseCandidateRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listNamespacedLeaseCandidate + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listNamespacedLeaseCandidateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listNamespacedLeaseCandidate request + * @return V1beta1LeaseCandidateList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1LeaseCandidateList execute() throws ApiException { + ApiResponse localVarResp = listNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listNamespacedLeaseCandidate request with HTTP info returned + * @return ApiResponse<V1beta1LeaseCandidateList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + } + + /** + * Execute listNamespacedLeaseCandidate request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listNamespacedLeaseCandidateAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIlistNamespacedLeaseCandidateRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistNamespacedLeaseCandidateRequest listNamespacedLeaseCandidate(@jakarta.annotation.Nonnull String namespace) { + return new APIlistNamespacedLeaseCandidateRequest(namespace); + } + private okhttp3.Call patchNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedLeaseCandidateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedLeaseCandidate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedLeaseCandidate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedLeaseCandidate(Async)"); + } + + return patchNamespacedLeaseCandidateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedLeaseCandidateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedLeaseCandidateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedLeaseCandidateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedLeaseCandidateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedLeaseCandidateRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchNamespacedLeaseCandidateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchNamespacedLeaseCandidateRequest + */ + public APIpatchNamespacedLeaseCandidateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchNamespacedLeaseCandidateRequest + */ + public APIpatchNamespacedLeaseCandidateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchNamespacedLeaseCandidateRequest + */ + public APIpatchNamespacedLeaseCandidateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchNamespacedLeaseCandidateRequest + */ + public APIpatchNamespacedLeaseCandidateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchNamespacedLeaseCandidateRequest + */ + public APIpatchNamespacedLeaseCandidateRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedLeaseCandidate + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchNamespacedLeaseCandidateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedLeaseCandidate request + * @return V1beta1LeaseCandidate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1LeaseCandidate execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedLeaseCandidateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedLeaseCandidate request with HTTP info returned + * @return ApiResponse<V1beta1LeaseCandidate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchNamespacedLeaseCandidateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedLeaseCandidate request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchNamespacedLeaseCandidateAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedLeaseCandidateRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedLeaseCandidateRequest patchNamespacedLeaseCandidate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedLeaseCandidateRequest(name, namespace, body); + } + private okhttp3.Call readNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedLeaseCandidateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedLeaseCandidate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedLeaseCandidate(Async)"); + } + + return readNamespacedLeaseCandidateCall(name, namespace, pretty, _callback); + + } + + + private ApiResponse readNamespacedLeaseCandidateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedLeaseCandidateValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readNamespacedLeaseCandidateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedLeaseCandidateValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadNamespacedLeaseCandidateRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadNamespacedLeaseCandidateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreadNamespacedLeaseCandidateRequest + */ + public APIreadNamespacedLeaseCandidateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readNamespacedLeaseCandidate + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return readNamespacedLeaseCandidateCall(name, namespace, pretty, _callback); + } + + /** + * Execute readNamespacedLeaseCandidate request + * @return V1beta1LeaseCandidate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1LeaseCandidate execute() throws ApiException { + ApiResponse localVarResp = readNamespacedLeaseCandidateWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * Execute readNamespacedLeaseCandidate request with HTTP info returned + * @return ApiResponse<V1beta1LeaseCandidate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedLeaseCandidateWithHttpInfo(name, namespace, pretty); + } + + /** + * Execute readNamespacedLeaseCandidate request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedLeaseCandidateAsync(name, namespace, pretty, _callback); + } + } + + /** + * + * read the specified LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedLeaseCandidateRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadNamespacedLeaseCandidateRequest readNamespacedLeaseCandidate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedLeaseCandidateRequest(name, namespace); + } + private okhttp3.Call replaceNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1LeaseCandidate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedLeaseCandidateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1LeaseCandidate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedLeaseCandidate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedLeaseCandidate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedLeaseCandidate(Async)"); + } + + return replaceNamespacedLeaseCandidateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse replaceNamespacedLeaseCandidateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1LeaseCandidate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedLeaseCandidateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call replaceNamespacedLeaseCandidateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1LeaseCandidate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceNamespacedLeaseCandidateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreplaceNamespacedLeaseCandidateRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1beta1LeaseCandidate body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIreplaceNamespacedLeaseCandidateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1LeaseCandidate body) { + this.name = name; + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreplaceNamespacedLeaseCandidateRequest + */ + public APIreplaceNamespacedLeaseCandidateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceNamespacedLeaseCandidateRequest + */ + public APIreplaceNamespacedLeaseCandidateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceNamespacedLeaseCandidateRequest + */ + public APIreplaceNamespacedLeaseCandidateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceNamespacedLeaseCandidateRequest + */ + public APIreplaceNamespacedLeaseCandidateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceNamespacedLeaseCandidate + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return replaceNamespacedLeaseCandidateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute replaceNamespacedLeaseCandidate request + * @return V1beta1LeaseCandidate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1LeaseCandidate execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedLeaseCandidateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute replaceNamespacedLeaseCandidate request with HTTP info returned + * @return ApiResponse<V1beta1LeaseCandidate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceNamespacedLeaseCandidateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute replaceNamespacedLeaseCandidate request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceNamespacedLeaseCandidateAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * replace the specified LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIreplaceNamespacedLeaseCandidateRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIreplaceNamespacedLeaseCandidateRequest replaceNamespacedLeaseCandidate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1LeaseCandidate body) { + return new APIreplaceNamespacedLeaseCandidateRequest(name, namespace, body); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreApi.java index e47097b9d3..b136a81fa0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreApi.java @@ -149,7 +149,8 @@ private APIgetAPIVersionsRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIVersions * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIVersions execute() throws ApiException { * @return ApiResponse<V1APIVersions> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * get available API versions * @return APIgetAPIVersionsRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreV1Api.java index 6820525a9d..0801447352 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreV1Api.java @@ -110,7 +110,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call connectDeleteNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectDeleteNamespacedPodProxyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -161,7 +161,7 @@ private okhttp3.Call connectDeleteNamespacedPodProxyCall(String name, String nam } @SuppressWarnings("rawtypes") - private okhttp3.Call connectDeleteNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectDeleteNamespacedPodProxyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNamespacedPodProxy(Async)"); @@ -177,13 +177,13 @@ private okhttp3.Call connectDeleteNamespacedPodProxyValidateBeforeCall(String na } - private ApiResponse connectDeleteNamespacedPodProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { + private ApiResponse connectDeleteNamespacedPodProxyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path) throws ApiException { okhttp3.Call localVarCall = connectDeleteNamespacedPodProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectDeleteNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectDeleteNamespacedPodProxyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectDeleteNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -192,11 +192,14 @@ private okhttp3.Call connectDeleteNamespacedPodProxyAsync(String name, String na } public class APIconnectDeleteNamespacedPodProxyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String path; - private APIconnectDeleteNamespacedPodProxyRequest(String name, String namespace) { + private APIconnectDeleteNamespacedPodProxyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -206,7 +209,7 @@ private APIconnectDeleteNamespacedPodProxyRequest(String name, String namespace) * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectDeleteNamespacedPodProxyRequest */ - public APIconnectDeleteNamespacedPodProxyRequest path(String path) { + public APIconnectDeleteNamespacedPodProxyRequest path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } @@ -217,7 +220,8 @@ public APIconnectDeleteNamespacedPodProxyRequest path(String path) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -232,7 +236,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -248,7 +253,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -264,7 +270,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -282,16 +289,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectDeleteNamespacedPodProxyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectDeleteNamespacedPodProxyRequest connectDeleteNamespacedPodProxy(String name, String namespace) { + public APIconnectDeleteNamespacedPodProxyRequest connectDeleteNamespacedPodProxy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIconnectDeleteNamespacedPodProxyRequest(name, namespace); } - private okhttp3.Call connectDeleteNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectDeleteNamespacedPodProxyWithPathCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -343,7 +351,7 @@ private okhttp3.Call connectDeleteNamespacedPodProxyWithPathCall(String name, St } @SuppressWarnings("rawtypes") - private okhttp3.Call connectDeleteNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectDeleteNamespacedPodProxyWithPathValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNamespacedPodProxyWithPath(Async)"); @@ -364,13 +372,13 @@ private okhttp3.Call connectDeleteNamespacedPodProxyWithPathValidateBeforeCall(S } - private ApiResponse connectDeleteNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { + private ApiResponse connectDeleteNamespacedPodProxyWithPathWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2) throws ApiException { okhttp3.Call localVarCall = connectDeleteNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectDeleteNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectDeleteNamespacedPodProxyWithPathAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectDeleteNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -379,12 +387,16 @@ private okhttp3.Call connectDeleteNamespacedPodProxyWithPathAsync(String name, S } public class APIconnectDeleteNamespacedPodProxyWithPathRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String path; + @jakarta.annotation.Nullable private String path2; - private APIconnectDeleteNamespacedPodProxyWithPathRequest(String name, String namespace, String path) { + private APIconnectDeleteNamespacedPodProxyWithPathRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { this.name = name; this.namespace = namespace; this.path = path; @@ -395,7 +407,7 @@ private APIconnectDeleteNamespacedPodProxyWithPathRequest(String name, String na * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectDeleteNamespacedPodProxyWithPathRequest */ - public APIconnectDeleteNamespacedPodProxyWithPathRequest path2(String path2) { + public APIconnectDeleteNamespacedPodProxyWithPathRequest path2(@jakarta.annotation.Nullable String path2) { this.path2 = path2; return this; } @@ -406,7 +418,8 @@ public APIconnectDeleteNamespacedPodProxyWithPathRequest path2(String path2) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -421,7 +434,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -437,7 +451,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -453,7 +468,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -472,16 +488,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param path path to the resource (required) * @return APIconnectDeleteNamespacedPodProxyWithPathRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectDeleteNamespacedPodProxyWithPathRequest connectDeleteNamespacedPodProxyWithPath(String name, String namespace, String path) { + public APIconnectDeleteNamespacedPodProxyWithPathRequest connectDeleteNamespacedPodProxyWithPath(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { return new APIconnectDeleteNamespacedPodProxyWithPathRequest(name, namespace, path); } - private okhttp3.Call connectDeleteNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectDeleteNamespacedServiceProxyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -532,7 +549,7 @@ private okhttp3.Call connectDeleteNamespacedServiceProxyCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call connectDeleteNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectDeleteNamespacedServiceProxyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNamespacedServiceProxy(Async)"); @@ -548,13 +565,13 @@ private okhttp3.Call connectDeleteNamespacedServiceProxyValidateBeforeCall(Strin } - private ApiResponse connectDeleteNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { + private ApiResponse connectDeleteNamespacedServiceProxyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path) throws ApiException { okhttp3.Call localVarCall = connectDeleteNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectDeleteNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectDeleteNamespacedServiceProxyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectDeleteNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -563,11 +580,14 @@ private okhttp3.Call connectDeleteNamespacedServiceProxyAsync(String name, Strin } public class APIconnectDeleteNamespacedServiceProxyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String path; - private APIconnectDeleteNamespacedServiceProxyRequest(String name, String namespace) { + private APIconnectDeleteNamespacedServiceProxyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -577,7 +597,7 @@ private APIconnectDeleteNamespacedServiceProxyRequest(String name, String namesp * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectDeleteNamespacedServiceProxyRequest */ - public APIconnectDeleteNamespacedServiceProxyRequest path(String path) { + public APIconnectDeleteNamespacedServiceProxyRequest path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } @@ -588,7 +608,8 @@ public APIconnectDeleteNamespacedServiceProxyRequest path(String path) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -603,7 +624,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -619,7 +641,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -635,7 +658,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -653,16 +677,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectDeleteNamespacedServiceProxyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectDeleteNamespacedServiceProxyRequest connectDeleteNamespacedServiceProxy(String name, String namespace) { + public APIconnectDeleteNamespacedServiceProxyRequest connectDeleteNamespacedServiceProxy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIconnectDeleteNamespacedServiceProxyRequest(name, namespace); } - private okhttp3.Call connectDeleteNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectDeleteNamespacedServiceProxyWithPathCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -714,7 +739,7 @@ private okhttp3.Call connectDeleteNamespacedServiceProxyWithPathCall(String name } @SuppressWarnings("rawtypes") - private okhttp3.Call connectDeleteNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectDeleteNamespacedServiceProxyWithPathValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNamespacedServiceProxyWithPath(Async)"); @@ -735,13 +760,13 @@ private okhttp3.Call connectDeleteNamespacedServiceProxyWithPathValidateBeforeCa } - private ApiResponse connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { + private ApiResponse connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2) throws ApiException { okhttp3.Call localVarCall = connectDeleteNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectDeleteNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectDeleteNamespacedServiceProxyWithPathAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectDeleteNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -750,12 +775,16 @@ private okhttp3.Call connectDeleteNamespacedServiceProxyWithPathAsync(String nam } public class APIconnectDeleteNamespacedServiceProxyWithPathRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String path; + @jakarta.annotation.Nullable private String path2; - private APIconnectDeleteNamespacedServiceProxyWithPathRequest(String name, String namespace, String path) { + private APIconnectDeleteNamespacedServiceProxyWithPathRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { this.name = name; this.namespace = namespace; this.path = path; @@ -766,7 +795,7 @@ private APIconnectDeleteNamespacedServiceProxyWithPathRequest(String name, Strin * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectDeleteNamespacedServiceProxyWithPathRequest */ - public APIconnectDeleteNamespacedServiceProxyWithPathRequest path2(String path2) { + public APIconnectDeleteNamespacedServiceProxyWithPathRequest path2(@jakarta.annotation.Nullable String path2) { this.path2 = path2; return this; } @@ -777,7 +806,8 @@ public APIconnectDeleteNamespacedServiceProxyWithPathRequest path2(String path2) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -792,7 +822,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -808,7 +839,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -824,7 +856,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -843,16 +876,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param path path to the resource (required) * @return APIconnectDeleteNamespacedServiceProxyWithPathRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectDeleteNamespacedServiceProxyWithPathRequest connectDeleteNamespacedServiceProxyWithPath(String name, String namespace, String path) { + public APIconnectDeleteNamespacedServiceProxyWithPathRequest connectDeleteNamespacedServiceProxyWithPath(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { return new APIconnectDeleteNamespacedServiceProxyWithPathRequest(name, namespace, path); } - private okhttp3.Call connectDeleteNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectDeleteNodeProxyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -902,7 +936,7 @@ private okhttp3.Call connectDeleteNodeProxyCall(String name, String path, final } @SuppressWarnings("rawtypes") - private okhttp3.Call connectDeleteNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectDeleteNodeProxyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNodeProxy(Async)"); @@ -913,13 +947,13 @@ private okhttp3.Call connectDeleteNodeProxyValidateBeforeCall(String name, Strin } - private ApiResponse connectDeleteNodeProxyWithHttpInfo(String name, String path) throws ApiException { + private ApiResponse connectDeleteNodeProxyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path) throws ApiException { okhttp3.Call localVarCall = connectDeleteNodeProxyValidateBeforeCall(name, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectDeleteNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectDeleteNodeProxyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectDeleteNodeProxyValidateBeforeCall(name, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -928,10 +962,12 @@ private okhttp3.Call connectDeleteNodeProxyAsync(String name, String path, final } public class APIconnectDeleteNodeProxyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String path; - private APIconnectDeleteNodeProxyRequest(String name) { + private APIconnectDeleteNodeProxyRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -940,7 +976,7 @@ private APIconnectDeleteNodeProxyRequest(String name) { * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectDeleteNodeProxyRequest */ - public APIconnectDeleteNodeProxyRequest path(String path) { + public APIconnectDeleteNodeProxyRequest path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } @@ -951,7 +987,8 @@ public APIconnectDeleteNodeProxyRequest path(String path) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -966,7 +1003,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -982,7 +1020,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -998,7 +1037,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1015,16 +1055,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param name name of the NodeProxyOptions (required) * @return APIconnectDeleteNodeProxyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectDeleteNodeProxyRequest connectDeleteNodeProxy(String name) { + public APIconnectDeleteNodeProxyRequest connectDeleteNodeProxy(@jakarta.annotation.Nonnull String name) { return new APIconnectDeleteNodeProxyRequest(name); } - private okhttp3.Call connectDeleteNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectDeleteNodeProxyWithPathCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1075,7 +1116,7 @@ private okhttp3.Call connectDeleteNodeProxyWithPathCall(String name, String path } @SuppressWarnings("rawtypes") - private okhttp3.Call connectDeleteNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectDeleteNodeProxyWithPathValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNodeProxyWithPath(Async)"); @@ -1091,13 +1132,13 @@ private okhttp3.Call connectDeleteNodeProxyWithPathValidateBeforeCall(String nam } - private ApiResponse connectDeleteNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException { + private ApiResponse connectDeleteNodeProxyWithPathWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2) throws ApiException { okhttp3.Call localVarCall = connectDeleteNodeProxyWithPathValidateBeforeCall(name, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectDeleteNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectDeleteNodeProxyWithPathAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectDeleteNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1106,11 +1147,14 @@ private okhttp3.Call connectDeleteNodeProxyWithPathAsync(String name, String pat } public class APIconnectDeleteNodeProxyWithPathRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String path; + @jakarta.annotation.Nullable private String path2; - private APIconnectDeleteNodeProxyWithPathRequest(String name, String path) { + private APIconnectDeleteNodeProxyWithPathRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path) { this.name = name; this.path = path; } @@ -1120,7 +1164,7 @@ private APIconnectDeleteNodeProxyWithPathRequest(String name, String path) { * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectDeleteNodeProxyWithPathRequest */ - public APIconnectDeleteNodeProxyWithPathRequest path2(String path2) { + public APIconnectDeleteNodeProxyWithPathRequest path2(@jakarta.annotation.Nullable String path2) { this.path2 = path2; return this; } @@ -1131,7 +1175,8 @@ public APIconnectDeleteNodeProxyWithPathRequest path2(String path2) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1146,7 +1191,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1162,7 +1208,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1178,7 +1225,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1196,16 +1244,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param path path to the resource (required) * @return APIconnectDeleteNodeProxyWithPathRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectDeleteNodeProxyWithPathRequest connectDeleteNodeProxyWithPath(String name, String path) { + public APIconnectDeleteNodeProxyWithPathRequest connectDeleteNodeProxyWithPath(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path) { return new APIconnectDeleteNodeProxyWithPathRequest(name, path); } - private okhttp3.Call connectGetNamespacedPodAttachCall(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNamespacedPodAttachCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String container, @jakarta.annotation.Nullable Boolean stderr, @jakarta.annotation.Nullable Boolean stdin, @jakarta.annotation.Nullable Boolean stdout, @jakarta.annotation.Nullable Boolean tty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1272,7 +1321,7 @@ private okhttp3.Call connectGetNamespacedPodAttachCall(String name, String names } @SuppressWarnings("rawtypes") - private okhttp3.Call connectGetNamespacedPodAttachValidateBeforeCall(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNamespacedPodAttachValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String container, @jakarta.annotation.Nullable Boolean stderr, @jakarta.annotation.Nullable Boolean stdin, @jakarta.annotation.Nullable Boolean stdout, @jakarta.annotation.Nullable Boolean tty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedPodAttach(Async)"); @@ -1288,13 +1337,13 @@ private okhttp3.Call connectGetNamespacedPodAttachValidateBeforeCall(String name } - private ApiResponse connectGetNamespacedPodAttachWithHttpInfo(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty) throws ApiException { + private ApiResponse connectGetNamespacedPodAttachWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String container, @jakarta.annotation.Nullable Boolean stderr, @jakarta.annotation.Nullable Boolean stdin, @jakarta.annotation.Nullable Boolean stdout, @jakarta.annotation.Nullable Boolean tty) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedPodAttachValidateBeforeCall(name, namespace, container, stderr, stdin, stdout, tty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectGetNamespacedPodAttachAsync(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNamespacedPodAttachAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String container, @jakarta.annotation.Nullable Boolean stderr, @jakarta.annotation.Nullable Boolean stdin, @jakarta.annotation.Nullable Boolean stdout, @jakarta.annotation.Nullable Boolean tty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedPodAttachValidateBeforeCall(name, namespace, container, stderr, stdin, stdout, tty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1303,15 +1352,22 @@ private okhttp3.Call connectGetNamespacedPodAttachAsync(String name, String name } public class APIconnectGetNamespacedPodAttachRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String container; + @jakarta.annotation.Nullable private Boolean stderr; + @jakarta.annotation.Nullable private Boolean stdin; + @jakarta.annotation.Nullable private Boolean stdout; + @jakarta.annotation.Nullable private Boolean tty; - private APIconnectGetNamespacedPodAttachRequest(String name, String namespace) { + private APIconnectGetNamespacedPodAttachRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -1321,7 +1377,7 @@ private APIconnectGetNamespacedPodAttachRequest(String name, String namespace) { * @param container The container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional) * @return APIconnectGetNamespacedPodAttachRequest */ - public APIconnectGetNamespacedPodAttachRequest container(String container) { + public APIconnectGetNamespacedPodAttachRequest container(@jakarta.annotation.Nullable String container) { this.container = container; return this; } @@ -1331,7 +1387,7 @@ public APIconnectGetNamespacedPodAttachRequest container(String container) { * @param stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. (optional) * @return APIconnectGetNamespacedPodAttachRequest */ - public APIconnectGetNamespacedPodAttachRequest stderr(Boolean stderr) { + public APIconnectGetNamespacedPodAttachRequest stderr(@jakarta.annotation.Nullable Boolean stderr) { this.stderr = stderr; return this; } @@ -1341,7 +1397,7 @@ public APIconnectGetNamespacedPodAttachRequest stderr(Boolean stderr) { * @param stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. (optional) * @return APIconnectGetNamespacedPodAttachRequest */ - public APIconnectGetNamespacedPodAttachRequest stdin(Boolean stdin) { + public APIconnectGetNamespacedPodAttachRequest stdin(@jakarta.annotation.Nullable Boolean stdin) { this.stdin = stdin; return this; } @@ -1351,7 +1407,7 @@ public APIconnectGetNamespacedPodAttachRequest stdin(Boolean stdin) { * @param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. (optional) * @return APIconnectGetNamespacedPodAttachRequest */ - public APIconnectGetNamespacedPodAttachRequest stdout(Boolean stdout) { + public APIconnectGetNamespacedPodAttachRequest stdout(@jakarta.annotation.Nullable Boolean stdout) { this.stdout = stdout; return this; } @@ -1361,7 +1417,7 @@ public APIconnectGetNamespacedPodAttachRequest stdout(Boolean stdout) { * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional) * @return APIconnectGetNamespacedPodAttachRequest */ - public APIconnectGetNamespacedPodAttachRequest tty(Boolean tty) { + public APIconnectGetNamespacedPodAttachRequest tty(@jakarta.annotation.Nullable Boolean tty) { this.tty = tty; return this; } @@ -1372,7 +1428,8 @@ public APIconnectGetNamespacedPodAttachRequest tty(Boolean tty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1387,7 +1444,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1403,7 +1461,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1419,7 +1478,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1437,16 +1497,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectGetNamespacedPodAttachRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectGetNamespacedPodAttachRequest connectGetNamespacedPodAttach(String name, String namespace) { + public APIconnectGetNamespacedPodAttachRequest connectGetNamespacedPodAttach(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIconnectGetNamespacedPodAttachRequest(name, namespace); } - private okhttp3.Call connectGetNamespacedPodExecCall(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNamespacedPodExecCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String command, @jakarta.annotation.Nullable String container, @jakarta.annotation.Nullable Boolean stderr, @jakarta.annotation.Nullable Boolean stdin, @jakarta.annotation.Nullable Boolean stdout, @jakarta.annotation.Nullable Boolean tty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1517,7 +1578,7 @@ private okhttp3.Call connectGetNamespacedPodExecCall(String name, String namespa } @SuppressWarnings("rawtypes") - private okhttp3.Call connectGetNamespacedPodExecValidateBeforeCall(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNamespacedPodExecValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String command, @jakarta.annotation.Nullable String container, @jakarta.annotation.Nullable Boolean stderr, @jakarta.annotation.Nullable Boolean stdin, @jakarta.annotation.Nullable Boolean stdout, @jakarta.annotation.Nullable Boolean tty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedPodExec(Async)"); @@ -1533,13 +1594,13 @@ private okhttp3.Call connectGetNamespacedPodExecValidateBeforeCall(String name, } - private ApiResponse connectGetNamespacedPodExecWithHttpInfo(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty) throws ApiException { + private ApiResponse connectGetNamespacedPodExecWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String command, @jakarta.annotation.Nullable String container, @jakarta.annotation.Nullable Boolean stderr, @jakarta.annotation.Nullable Boolean stdin, @jakarta.annotation.Nullable Boolean stdout, @jakarta.annotation.Nullable Boolean tty) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedPodExecValidateBeforeCall(name, namespace, command, container, stderr, stdin, stdout, tty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectGetNamespacedPodExecAsync(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNamespacedPodExecAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String command, @jakarta.annotation.Nullable String container, @jakarta.annotation.Nullable Boolean stderr, @jakarta.annotation.Nullable Boolean stdin, @jakarta.annotation.Nullable Boolean stdout, @jakarta.annotation.Nullable Boolean tty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedPodExecValidateBeforeCall(name, namespace, command, container, stderr, stdin, stdout, tty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1548,16 +1609,24 @@ private okhttp3.Call connectGetNamespacedPodExecAsync(String name, String namesp } public class APIconnectGetNamespacedPodExecRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String command; + @jakarta.annotation.Nullable private String container; + @jakarta.annotation.Nullable private Boolean stderr; + @jakarta.annotation.Nullable private Boolean stdin; + @jakarta.annotation.Nullable private Boolean stdout; + @jakarta.annotation.Nullable private Boolean tty; - private APIconnectGetNamespacedPodExecRequest(String name, String namespace) { + private APIconnectGetNamespacedPodExecRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -1567,7 +1636,7 @@ private APIconnectGetNamespacedPodExecRequest(String name, String namespace) { * @param command Command is the remote command to execute. argv array. Not executed within a shell. (optional) * @return APIconnectGetNamespacedPodExecRequest */ - public APIconnectGetNamespacedPodExecRequest command(String command) { + public APIconnectGetNamespacedPodExecRequest command(@jakarta.annotation.Nullable String command) { this.command = command; return this; } @@ -1577,7 +1646,7 @@ public APIconnectGetNamespacedPodExecRequest command(String command) { * @param container Container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional) * @return APIconnectGetNamespacedPodExecRequest */ - public APIconnectGetNamespacedPodExecRequest container(String container) { + public APIconnectGetNamespacedPodExecRequest container(@jakarta.annotation.Nullable String container) { this.container = container; return this; } @@ -1587,7 +1656,7 @@ public APIconnectGetNamespacedPodExecRequest container(String container) { * @param stderr Redirect the standard error stream of the pod for this call. (optional) * @return APIconnectGetNamespacedPodExecRequest */ - public APIconnectGetNamespacedPodExecRequest stderr(Boolean stderr) { + public APIconnectGetNamespacedPodExecRequest stderr(@jakarta.annotation.Nullable Boolean stderr) { this.stderr = stderr; return this; } @@ -1597,7 +1666,7 @@ public APIconnectGetNamespacedPodExecRequest stderr(Boolean stderr) { * @param stdin Redirect the standard input stream of the pod for this call. Defaults to false. (optional) * @return APIconnectGetNamespacedPodExecRequest */ - public APIconnectGetNamespacedPodExecRequest stdin(Boolean stdin) { + public APIconnectGetNamespacedPodExecRequest stdin(@jakarta.annotation.Nullable Boolean stdin) { this.stdin = stdin; return this; } @@ -1607,7 +1676,7 @@ public APIconnectGetNamespacedPodExecRequest stdin(Boolean stdin) { * @param stdout Redirect the standard output stream of the pod for this call. (optional) * @return APIconnectGetNamespacedPodExecRequest */ - public APIconnectGetNamespacedPodExecRequest stdout(Boolean stdout) { + public APIconnectGetNamespacedPodExecRequest stdout(@jakarta.annotation.Nullable Boolean stdout) { this.stdout = stdout; return this; } @@ -1617,7 +1686,7 @@ public APIconnectGetNamespacedPodExecRequest stdout(Boolean stdout) { * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional) * @return APIconnectGetNamespacedPodExecRequest */ - public APIconnectGetNamespacedPodExecRequest tty(Boolean tty) { + public APIconnectGetNamespacedPodExecRequest tty(@jakarta.annotation.Nullable Boolean tty) { this.tty = tty; return this; } @@ -1628,7 +1697,8 @@ public APIconnectGetNamespacedPodExecRequest tty(Boolean tty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1643,7 +1713,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1659,7 +1730,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1675,7 +1747,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1693,16 +1766,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectGetNamespacedPodExecRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectGetNamespacedPodExecRequest connectGetNamespacedPodExec(String name, String namespace) { + public APIconnectGetNamespacedPodExecRequest connectGetNamespacedPodExec(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIconnectGetNamespacedPodExecRequest(name, namespace); } - private okhttp3.Call connectGetNamespacedPodPortforwardCall(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNamespacedPodPortforwardCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable Integer ports, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1753,7 +1827,7 @@ private okhttp3.Call connectGetNamespacedPodPortforwardCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call connectGetNamespacedPodPortforwardValidateBeforeCall(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNamespacedPodPortforwardValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable Integer ports, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedPodPortforward(Async)"); @@ -1769,13 +1843,13 @@ private okhttp3.Call connectGetNamespacedPodPortforwardValidateBeforeCall(String } - private ApiResponse connectGetNamespacedPodPortforwardWithHttpInfo(String name, String namespace, Integer ports) throws ApiException { + private ApiResponse connectGetNamespacedPodPortforwardWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable Integer ports) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedPodPortforwardValidateBeforeCall(name, namespace, ports, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectGetNamespacedPodPortforwardAsync(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNamespacedPodPortforwardAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable Integer ports, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedPodPortforwardValidateBeforeCall(name, namespace, ports, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1784,11 +1858,14 @@ private okhttp3.Call connectGetNamespacedPodPortforwardAsync(String name, String } public class APIconnectGetNamespacedPodPortforwardRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private Integer ports; - private APIconnectGetNamespacedPodPortforwardRequest(String name, String namespace) { + private APIconnectGetNamespacedPodPortforwardRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -1798,7 +1875,7 @@ private APIconnectGetNamespacedPodPortforwardRequest(String name, String namespa * @param ports List of ports to forward Required when using WebSockets (optional) * @return APIconnectGetNamespacedPodPortforwardRequest */ - public APIconnectGetNamespacedPodPortforwardRequest ports(Integer ports) { + public APIconnectGetNamespacedPodPortforwardRequest ports(@jakarta.annotation.Nullable Integer ports) { this.ports = ports; return this; } @@ -1809,7 +1886,8 @@ public APIconnectGetNamespacedPodPortforwardRequest ports(Integer ports) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1824,7 +1902,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1840,7 +1919,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1856,7 +1936,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1874,16 +1955,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectGetNamespacedPodPortforwardRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectGetNamespacedPodPortforwardRequest connectGetNamespacedPodPortforward(String name, String namespace) { + public APIconnectGetNamespacedPodPortforwardRequest connectGetNamespacedPodPortforward(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIconnectGetNamespacedPodPortforwardRequest(name, namespace); } - private okhttp3.Call connectGetNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNamespacedPodProxyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1934,7 +2016,7 @@ private okhttp3.Call connectGetNamespacedPodProxyCall(String name, String namesp } @SuppressWarnings("rawtypes") - private okhttp3.Call connectGetNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNamespacedPodProxyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedPodProxy(Async)"); @@ -1950,13 +2032,13 @@ private okhttp3.Call connectGetNamespacedPodProxyValidateBeforeCall(String name, } - private ApiResponse connectGetNamespacedPodProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { + private ApiResponse connectGetNamespacedPodProxyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedPodProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectGetNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNamespacedPodProxyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1965,11 +2047,14 @@ private okhttp3.Call connectGetNamespacedPodProxyAsync(String name, String names } public class APIconnectGetNamespacedPodProxyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String path; - private APIconnectGetNamespacedPodProxyRequest(String name, String namespace) { + private APIconnectGetNamespacedPodProxyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -1979,7 +2064,7 @@ private APIconnectGetNamespacedPodProxyRequest(String name, String namespace) { * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectGetNamespacedPodProxyRequest */ - public APIconnectGetNamespacedPodProxyRequest path(String path) { + public APIconnectGetNamespacedPodProxyRequest path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } @@ -1990,7 +2075,8 @@ public APIconnectGetNamespacedPodProxyRequest path(String path) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2005,7 +2091,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2021,7 +2108,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2037,7 +2125,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2055,16 +2144,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectGetNamespacedPodProxyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectGetNamespacedPodProxyRequest connectGetNamespacedPodProxy(String name, String namespace) { + public APIconnectGetNamespacedPodProxyRequest connectGetNamespacedPodProxy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIconnectGetNamespacedPodProxyRequest(name, namespace); } - private okhttp3.Call connectGetNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNamespacedPodProxyWithPathCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2116,7 +2206,7 @@ private okhttp3.Call connectGetNamespacedPodProxyWithPathCall(String name, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call connectGetNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNamespacedPodProxyWithPathValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedPodProxyWithPath(Async)"); @@ -2137,13 +2227,13 @@ private okhttp3.Call connectGetNamespacedPodProxyWithPathValidateBeforeCall(Stri } - private ApiResponse connectGetNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { + private ApiResponse connectGetNamespacedPodProxyWithPathWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectGetNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNamespacedPodProxyWithPathAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2152,12 +2242,16 @@ private okhttp3.Call connectGetNamespacedPodProxyWithPathAsync(String name, Stri } public class APIconnectGetNamespacedPodProxyWithPathRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String path; + @jakarta.annotation.Nullable private String path2; - private APIconnectGetNamespacedPodProxyWithPathRequest(String name, String namespace, String path) { + private APIconnectGetNamespacedPodProxyWithPathRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { this.name = name; this.namespace = namespace; this.path = path; @@ -2168,7 +2262,7 @@ private APIconnectGetNamespacedPodProxyWithPathRequest(String name, String names * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectGetNamespacedPodProxyWithPathRequest */ - public APIconnectGetNamespacedPodProxyWithPathRequest path2(String path2) { + public APIconnectGetNamespacedPodProxyWithPathRequest path2(@jakarta.annotation.Nullable String path2) { this.path2 = path2; return this; } @@ -2179,7 +2273,8 @@ public APIconnectGetNamespacedPodProxyWithPathRequest path2(String path2) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2194,7 +2289,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2210,7 +2306,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2226,7 +2323,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2245,16 +2343,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param path path to the resource (required) * @return APIconnectGetNamespacedPodProxyWithPathRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectGetNamespacedPodProxyWithPathRequest connectGetNamespacedPodProxyWithPath(String name, String namespace, String path) { + public APIconnectGetNamespacedPodProxyWithPathRequest connectGetNamespacedPodProxyWithPath(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { return new APIconnectGetNamespacedPodProxyWithPathRequest(name, namespace, path); } - private okhttp3.Call connectGetNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNamespacedServiceProxyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2305,7 +2404,7 @@ private okhttp3.Call connectGetNamespacedServiceProxyCall(String name, String na } @SuppressWarnings("rawtypes") - private okhttp3.Call connectGetNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNamespacedServiceProxyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedServiceProxy(Async)"); @@ -2321,13 +2420,13 @@ private okhttp3.Call connectGetNamespacedServiceProxyValidateBeforeCall(String n } - private ApiResponse connectGetNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { + private ApiResponse connectGetNamespacedServiceProxyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectGetNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNamespacedServiceProxyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2336,11 +2435,14 @@ private okhttp3.Call connectGetNamespacedServiceProxyAsync(String name, String n } public class APIconnectGetNamespacedServiceProxyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String path; - private APIconnectGetNamespacedServiceProxyRequest(String name, String namespace) { + private APIconnectGetNamespacedServiceProxyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -2350,7 +2452,7 @@ private APIconnectGetNamespacedServiceProxyRequest(String name, String namespace * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectGetNamespacedServiceProxyRequest */ - public APIconnectGetNamespacedServiceProxyRequest path(String path) { + public APIconnectGetNamespacedServiceProxyRequest path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } @@ -2361,7 +2463,8 @@ public APIconnectGetNamespacedServiceProxyRequest path(String path) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2376,7 +2479,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2392,7 +2496,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2408,7 +2513,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2426,16 +2532,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectGetNamespacedServiceProxyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectGetNamespacedServiceProxyRequest connectGetNamespacedServiceProxy(String name, String namespace) { + public APIconnectGetNamespacedServiceProxyRequest connectGetNamespacedServiceProxy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIconnectGetNamespacedServiceProxyRequest(name, namespace); } - private okhttp3.Call connectGetNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNamespacedServiceProxyWithPathCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2487,7 +2594,7 @@ private okhttp3.Call connectGetNamespacedServiceProxyWithPathCall(String name, S } @SuppressWarnings("rawtypes") - private okhttp3.Call connectGetNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNamespacedServiceProxyWithPathValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedServiceProxyWithPath(Async)"); @@ -2508,13 +2615,13 @@ private okhttp3.Call connectGetNamespacedServiceProxyWithPathValidateBeforeCall( } - private ApiResponse connectGetNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { + private ApiResponse connectGetNamespacedServiceProxyWithPathWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectGetNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNamespacedServiceProxyWithPathAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2523,12 +2630,16 @@ private okhttp3.Call connectGetNamespacedServiceProxyWithPathAsync(String name, } public class APIconnectGetNamespacedServiceProxyWithPathRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String path; + @jakarta.annotation.Nullable private String path2; - private APIconnectGetNamespacedServiceProxyWithPathRequest(String name, String namespace, String path) { + private APIconnectGetNamespacedServiceProxyWithPathRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { this.name = name; this.namespace = namespace; this.path = path; @@ -2539,7 +2650,7 @@ private APIconnectGetNamespacedServiceProxyWithPathRequest(String name, String n * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectGetNamespacedServiceProxyWithPathRequest */ - public APIconnectGetNamespacedServiceProxyWithPathRequest path2(String path2) { + public APIconnectGetNamespacedServiceProxyWithPathRequest path2(@jakarta.annotation.Nullable String path2) { this.path2 = path2; return this; } @@ -2550,7 +2661,8 @@ public APIconnectGetNamespacedServiceProxyWithPathRequest path2(String path2) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2565,7 +2677,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2581,7 +2694,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2597,7 +2711,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2616,16 +2731,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param path path to the resource (required) * @return APIconnectGetNamespacedServiceProxyWithPathRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectGetNamespacedServiceProxyWithPathRequest connectGetNamespacedServiceProxyWithPath(String name, String namespace, String path) { + public APIconnectGetNamespacedServiceProxyWithPathRequest connectGetNamespacedServiceProxyWithPath(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { return new APIconnectGetNamespacedServiceProxyWithPathRequest(name, namespace, path); } - private okhttp3.Call connectGetNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNodeProxyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2675,7 +2791,7 @@ private okhttp3.Call connectGetNodeProxyCall(String name, String path, final Api } @SuppressWarnings("rawtypes") - private okhttp3.Call connectGetNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNodeProxyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNodeProxy(Async)"); @@ -2686,13 +2802,13 @@ private okhttp3.Call connectGetNodeProxyValidateBeforeCall(String name, String p } - private ApiResponse connectGetNodeProxyWithHttpInfo(String name, String path) throws ApiException { + private ApiResponse connectGetNodeProxyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path) throws ApiException { okhttp3.Call localVarCall = connectGetNodeProxyValidateBeforeCall(name, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectGetNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNodeProxyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectGetNodeProxyValidateBeforeCall(name, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2701,10 +2817,12 @@ private okhttp3.Call connectGetNodeProxyAsync(String name, String path, final Ap } public class APIconnectGetNodeProxyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String path; - private APIconnectGetNodeProxyRequest(String name) { + private APIconnectGetNodeProxyRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -2713,7 +2831,7 @@ private APIconnectGetNodeProxyRequest(String name) { * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectGetNodeProxyRequest */ - public APIconnectGetNodeProxyRequest path(String path) { + public APIconnectGetNodeProxyRequest path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } @@ -2724,7 +2842,8 @@ public APIconnectGetNodeProxyRequest path(String path) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2739,7 +2858,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2755,7 +2875,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2771,7 +2892,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2788,16 +2910,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param name name of the NodeProxyOptions (required) * @return APIconnectGetNodeProxyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectGetNodeProxyRequest connectGetNodeProxy(String name) { + public APIconnectGetNodeProxyRequest connectGetNodeProxy(@jakarta.annotation.Nonnull String name) { return new APIconnectGetNodeProxyRequest(name); } - private okhttp3.Call connectGetNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNodeProxyWithPathCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2848,7 +2971,7 @@ private okhttp3.Call connectGetNodeProxyWithPathCall(String name, String path, S } @SuppressWarnings("rawtypes") - private okhttp3.Call connectGetNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNodeProxyWithPathValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNodeProxyWithPath(Async)"); @@ -2864,13 +2987,13 @@ private okhttp3.Call connectGetNodeProxyWithPathValidateBeforeCall(String name, } - private ApiResponse connectGetNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException { + private ApiResponse connectGetNodeProxyWithPathWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2) throws ApiException { okhttp3.Call localVarCall = connectGetNodeProxyWithPathValidateBeforeCall(name, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectGetNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectGetNodeProxyWithPathAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectGetNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2879,11 +3002,14 @@ private okhttp3.Call connectGetNodeProxyWithPathAsync(String name, String path, } public class APIconnectGetNodeProxyWithPathRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String path; + @jakarta.annotation.Nullable private String path2; - private APIconnectGetNodeProxyWithPathRequest(String name, String path) { + private APIconnectGetNodeProxyWithPathRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path) { this.name = name; this.path = path; } @@ -2893,7 +3019,7 @@ private APIconnectGetNodeProxyWithPathRequest(String name, String path) { * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectGetNodeProxyWithPathRequest */ - public APIconnectGetNodeProxyWithPathRequest path2(String path2) { + public APIconnectGetNodeProxyWithPathRequest path2(@jakarta.annotation.Nullable String path2) { this.path2 = path2; return this; } @@ -2904,7 +3030,8 @@ public APIconnectGetNodeProxyWithPathRequest path2(String path2) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2919,7 +3046,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2935,7 +3063,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2951,7 +3080,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2969,16 +3099,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param path path to the resource (required) * @return APIconnectGetNodeProxyWithPathRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectGetNodeProxyWithPathRequest connectGetNodeProxyWithPath(String name, String path) { + public APIconnectGetNodeProxyWithPathRequest connectGetNodeProxyWithPath(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path) { return new APIconnectGetNodeProxyWithPathRequest(name, path); } - private okhttp3.Call connectHeadNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectHeadNamespacedPodProxyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3029,7 +3160,7 @@ private okhttp3.Call connectHeadNamespacedPodProxyCall(String name, String names } @SuppressWarnings("rawtypes") - private okhttp3.Call connectHeadNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectHeadNamespacedPodProxyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectHeadNamespacedPodProxy(Async)"); @@ -3045,13 +3176,13 @@ private okhttp3.Call connectHeadNamespacedPodProxyValidateBeforeCall(String name } - private ApiResponse connectHeadNamespacedPodProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { + private ApiResponse connectHeadNamespacedPodProxyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path) throws ApiException { okhttp3.Call localVarCall = connectHeadNamespacedPodProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectHeadNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectHeadNamespacedPodProxyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectHeadNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3060,11 +3191,14 @@ private okhttp3.Call connectHeadNamespacedPodProxyAsync(String name, String name } public class APIconnectHeadNamespacedPodProxyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String path; - private APIconnectHeadNamespacedPodProxyRequest(String name, String namespace) { + private APIconnectHeadNamespacedPodProxyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -3074,7 +3208,7 @@ private APIconnectHeadNamespacedPodProxyRequest(String name, String namespace) { * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectHeadNamespacedPodProxyRequest */ - public APIconnectHeadNamespacedPodProxyRequest path(String path) { + public APIconnectHeadNamespacedPodProxyRequest path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } @@ -3085,7 +3219,8 @@ public APIconnectHeadNamespacedPodProxyRequest path(String path) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3100,7 +3235,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3116,7 +3252,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3132,7 +3269,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3150,16 +3288,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectHeadNamespacedPodProxyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectHeadNamespacedPodProxyRequest connectHeadNamespacedPodProxy(String name, String namespace) { + public APIconnectHeadNamespacedPodProxyRequest connectHeadNamespacedPodProxy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIconnectHeadNamespacedPodProxyRequest(name, namespace); } - private okhttp3.Call connectHeadNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectHeadNamespacedPodProxyWithPathCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3211,7 +3350,7 @@ private okhttp3.Call connectHeadNamespacedPodProxyWithPathCall(String name, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call connectHeadNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectHeadNamespacedPodProxyWithPathValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectHeadNamespacedPodProxyWithPath(Async)"); @@ -3232,13 +3371,13 @@ private okhttp3.Call connectHeadNamespacedPodProxyWithPathValidateBeforeCall(Str } - private ApiResponse connectHeadNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { + private ApiResponse connectHeadNamespacedPodProxyWithPathWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2) throws ApiException { okhttp3.Call localVarCall = connectHeadNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectHeadNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectHeadNamespacedPodProxyWithPathAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectHeadNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3247,12 +3386,16 @@ private okhttp3.Call connectHeadNamespacedPodProxyWithPathAsync(String name, Str } public class APIconnectHeadNamespacedPodProxyWithPathRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String path; + @jakarta.annotation.Nullable private String path2; - private APIconnectHeadNamespacedPodProxyWithPathRequest(String name, String namespace, String path) { + private APIconnectHeadNamespacedPodProxyWithPathRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { this.name = name; this.namespace = namespace; this.path = path; @@ -3263,7 +3406,7 @@ private APIconnectHeadNamespacedPodProxyWithPathRequest(String name, String name * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectHeadNamespacedPodProxyWithPathRequest */ - public APIconnectHeadNamespacedPodProxyWithPathRequest path2(String path2) { + public APIconnectHeadNamespacedPodProxyWithPathRequest path2(@jakarta.annotation.Nullable String path2) { this.path2 = path2; return this; } @@ -3274,7 +3417,8 @@ public APIconnectHeadNamespacedPodProxyWithPathRequest path2(String path2) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3289,7 +3433,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3305,7 +3450,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3321,7 +3467,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3340,16 +3487,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param path path to the resource (required) * @return APIconnectHeadNamespacedPodProxyWithPathRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectHeadNamespacedPodProxyWithPathRequest connectHeadNamespacedPodProxyWithPath(String name, String namespace, String path) { + public APIconnectHeadNamespacedPodProxyWithPathRequest connectHeadNamespacedPodProxyWithPath(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { return new APIconnectHeadNamespacedPodProxyWithPathRequest(name, namespace, path); } - private okhttp3.Call connectHeadNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectHeadNamespacedServiceProxyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3400,7 +3548,7 @@ private okhttp3.Call connectHeadNamespacedServiceProxyCall(String name, String n } @SuppressWarnings("rawtypes") - private okhttp3.Call connectHeadNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectHeadNamespacedServiceProxyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectHeadNamespacedServiceProxy(Async)"); @@ -3416,13 +3564,13 @@ private okhttp3.Call connectHeadNamespacedServiceProxyValidateBeforeCall(String } - private ApiResponse connectHeadNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { + private ApiResponse connectHeadNamespacedServiceProxyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path) throws ApiException { okhttp3.Call localVarCall = connectHeadNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectHeadNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectHeadNamespacedServiceProxyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectHeadNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3431,11 +3579,14 @@ private okhttp3.Call connectHeadNamespacedServiceProxyAsync(String name, String } public class APIconnectHeadNamespacedServiceProxyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String path; - private APIconnectHeadNamespacedServiceProxyRequest(String name, String namespace) { + private APIconnectHeadNamespacedServiceProxyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -3445,7 +3596,7 @@ private APIconnectHeadNamespacedServiceProxyRequest(String name, String namespac * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectHeadNamespacedServiceProxyRequest */ - public APIconnectHeadNamespacedServiceProxyRequest path(String path) { + public APIconnectHeadNamespacedServiceProxyRequest path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } @@ -3456,7 +3607,8 @@ public APIconnectHeadNamespacedServiceProxyRequest path(String path) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3471,7 +3623,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3487,7 +3640,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3503,7 +3657,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3521,16 +3676,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectHeadNamespacedServiceProxyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectHeadNamespacedServiceProxyRequest connectHeadNamespacedServiceProxy(String name, String namespace) { + public APIconnectHeadNamespacedServiceProxyRequest connectHeadNamespacedServiceProxy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIconnectHeadNamespacedServiceProxyRequest(name, namespace); } - private okhttp3.Call connectHeadNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectHeadNamespacedServiceProxyWithPathCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3582,7 +3738,7 @@ private okhttp3.Call connectHeadNamespacedServiceProxyWithPathCall(String name, } @SuppressWarnings("rawtypes") - private okhttp3.Call connectHeadNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectHeadNamespacedServiceProxyWithPathValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectHeadNamespacedServiceProxyWithPath(Async)"); @@ -3603,13 +3759,13 @@ private okhttp3.Call connectHeadNamespacedServiceProxyWithPathValidateBeforeCall } - private ApiResponse connectHeadNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { + private ApiResponse connectHeadNamespacedServiceProxyWithPathWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2) throws ApiException { okhttp3.Call localVarCall = connectHeadNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectHeadNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectHeadNamespacedServiceProxyWithPathAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectHeadNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3618,12 +3774,16 @@ private okhttp3.Call connectHeadNamespacedServiceProxyWithPathAsync(String name, } public class APIconnectHeadNamespacedServiceProxyWithPathRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String path; + @jakarta.annotation.Nullable private String path2; - private APIconnectHeadNamespacedServiceProxyWithPathRequest(String name, String namespace, String path) { + private APIconnectHeadNamespacedServiceProxyWithPathRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { this.name = name; this.namespace = namespace; this.path = path; @@ -3634,7 +3794,7 @@ private APIconnectHeadNamespacedServiceProxyWithPathRequest(String name, String * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectHeadNamespacedServiceProxyWithPathRequest */ - public APIconnectHeadNamespacedServiceProxyWithPathRequest path2(String path2) { + public APIconnectHeadNamespacedServiceProxyWithPathRequest path2(@jakarta.annotation.Nullable String path2) { this.path2 = path2; return this; } @@ -3645,7 +3805,8 @@ public APIconnectHeadNamespacedServiceProxyWithPathRequest path2(String path2) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3660,7 +3821,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3676,7 +3838,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3692,7 +3855,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3711,16 +3875,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param path path to the resource (required) * @return APIconnectHeadNamespacedServiceProxyWithPathRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectHeadNamespacedServiceProxyWithPathRequest connectHeadNamespacedServiceProxyWithPath(String name, String namespace, String path) { + public APIconnectHeadNamespacedServiceProxyWithPathRequest connectHeadNamespacedServiceProxyWithPath(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { return new APIconnectHeadNamespacedServiceProxyWithPathRequest(name, namespace, path); } - private okhttp3.Call connectHeadNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectHeadNodeProxyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3770,7 +3935,7 @@ private okhttp3.Call connectHeadNodeProxyCall(String name, String path, final Ap } @SuppressWarnings("rawtypes") - private okhttp3.Call connectHeadNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectHeadNodeProxyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectHeadNodeProxy(Async)"); @@ -3781,13 +3946,13 @@ private okhttp3.Call connectHeadNodeProxyValidateBeforeCall(String name, String } - private ApiResponse connectHeadNodeProxyWithHttpInfo(String name, String path) throws ApiException { + private ApiResponse connectHeadNodeProxyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path) throws ApiException { okhttp3.Call localVarCall = connectHeadNodeProxyValidateBeforeCall(name, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectHeadNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectHeadNodeProxyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectHeadNodeProxyValidateBeforeCall(name, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3796,10 +3961,12 @@ private okhttp3.Call connectHeadNodeProxyAsync(String name, String path, final A } public class APIconnectHeadNodeProxyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String path; - private APIconnectHeadNodeProxyRequest(String name) { + private APIconnectHeadNodeProxyRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -3808,7 +3975,7 @@ private APIconnectHeadNodeProxyRequest(String name) { * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectHeadNodeProxyRequest */ - public APIconnectHeadNodeProxyRequest path(String path) { + public APIconnectHeadNodeProxyRequest path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } @@ -3819,7 +3986,8 @@ public APIconnectHeadNodeProxyRequest path(String path) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3834,7 +4002,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3850,7 +4019,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3866,7 +4036,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3883,16 +4054,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param name name of the NodeProxyOptions (required) * @return APIconnectHeadNodeProxyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectHeadNodeProxyRequest connectHeadNodeProxy(String name) { + public APIconnectHeadNodeProxyRequest connectHeadNodeProxy(@jakarta.annotation.Nonnull String name) { return new APIconnectHeadNodeProxyRequest(name); } - private okhttp3.Call connectHeadNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectHeadNodeProxyWithPathCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3943,7 +4115,7 @@ private okhttp3.Call connectHeadNodeProxyWithPathCall(String name, String path, } @SuppressWarnings("rawtypes") - private okhttp3.Call connectHeadNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectHeadNodeProxyWithPathValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectHeadNodeProxyWithPath(Async)"); @@ -3959,13 +4131,13 @@ private okhttp3.Call connectHeadNodeProxyWithPathValidateBeforeCall(String name, } - private ApiResponse connectHeadNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException { + private ApiResponse connectHeadNodeProxyWithPathWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2) throws ApiException { okhttp3.Call localVarCall = connectHeadNodeProxyWithPathValidateBeforeCall(name, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectHeadNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectHeadNodeProxyWithPathAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectHeadNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3974,11 +4146,14 @@ private okhttp3.Call connectHeadNodeProxyWithPathAsync(String name, String path, } public class APIconnectHeadNodeProxyWithPathRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String path; + @jakarta.annotation.Nullable private String path2; - private APIconnectHeadNodeProxyWithPathRequest(String name, String path) { + private APIconnectHeadNodeProxyWithPathRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path) { this.name = name; this.path = path; } @@ -3988,7 +4163,7 @@ private APIconnectHeadNodeProxyWithPathRequest(String name, String path) { * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectHeadNodeProxyWithPathRequest */ - public APIconnectHeadNodeProxyWithPathRequest path2(String path2) { + public APIconnectHeadNodeProxyWithPathRequest path2(@jakarta.annotation.Nullable String path2) { this.path2 = path2; return this; } @@ -3999,7 +4174,8 @@ public APIconnectHeadNodeProxyWithPathRequest path2(String path2) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4014,7 +4190,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4030,7 +4207,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4046,7 +4224,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4064,16 +4243,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param path path to the resource (required) * @return APIconnectHeadNodeProxyWithPathRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectHeadNodeProxyWithPathRequest connectHeadNodeProxyWithPath(String name, String path) { + public APIconnectHeadNodeProxyWithPathRequest connectHeadNodeProxyWithPath(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path) { return new APIconnectHeadNodeProxyWithPathRequest(name, path); } - private okhttp3.Call connectOptionsNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectOptionsNamespacedPodProxyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4124,7 +4304,7 @@ private okhttp3.Call connectOptionsNamespacedPodProxyCall(String name, String na } @SuppressWarnings("rawtypes") - private okhttp3.Call connectOptionsNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectOptionsNamespacedPodProxyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectOptionsNamespacedPodProxy(Async)"); @@ -4140,13 +4320,13 @@ private okhttp3.Call connectOptionsNamespacedPodProxyValidateBeforeCall(String n } - private ApiResponse connectOptionsNamespacedPodProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { + private ApiResponse connectOptionsNamespacedPodProxyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path) throws ApiException { okhttp3.Call localVarCall = connectOptionsNamespacedPodProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectOptionsNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectOptionsNamespacedPodProxyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectOptionsNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4155,11 +4335,14 @@ private okhttp3.Call connectOptionsNamespacedPodProxyAsync(String name, String n } public class APIconnectOptionsNamespacedPodProxyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String path; - private APIconnectOptionsNamespacedPodProxyRequest(String name, String namespace) { + private APIconnectOptionsNamespacedPodProxyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -4169,7 +4352,7 @@ private APIconnectOptionsNamespacedPodProxyRequest(String name, String namespace * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectOptionsNamespacedPodProxyRequest */ - public APIconnectOptionsNamespacedPodProxyRequest path(String path) { + public APIconnectOptionsNamespacedPodProxyRequest path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } @@ -4180,7 +4363,8 @@ public APIconnectOptionsNamespacedPodProxyRequest path(String path) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4195,7 +4379,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4211,7 +4396,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4227,7 +4413,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4245,16 +4432,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectOptionsNamespacedPodProxyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectOptionsNamespacedPodProxyRequest connectOptionsNamespacedPodProxy(String name, String namespace) { + public APIconnectOptionsNamespacedPodProxyRequest connectOptionsNamespacedPodProxy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIconnectOptionsNamespacedPodProxyRequest(name, namespace); } - private okhttp3.Call connectOptionsNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectOptionsNamespacedPodProxyWithPathCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4306,7 +4494,7 @@ private okhttp3.Call connectOptionsNamespacedPodProxyWithPathCall(String name, S } @SuppressWarnings("rawtypes") - private okhttp3.Call connectOptionsNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectOptionsNamespacedPodProxyWithPathValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectOptionsNamespacedPodProxyWithPath(Async)"); @@ -4327,13 +4515,13 @@ private okhttp3.Call connectOptionsNamespacedPodProxyWithPathValidateBeforeCall( } - private ApiResponse connectOptionsNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { + private ApiResponse connectOptionsNamespacedPodProxyWithPathWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2) throws ApiException { okhttp3.Call localVarCall = connectOptionsNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectOptionsNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectOptionsNamespacedPodProxyWithPathAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectOptionsNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4342,12 +4530,16 @@ private okhttp3.Call connectOptionsNamespacedPodProxyWithPathAsync(String name, } public class APIconnectOptionsNamespacedPodProxyWithPathRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String path; + @jakarta.annotation.Nullable private String path2; - private APIconnectOptionsNamespacedPodProxyWithPathRequest(String name, String namespace, String path) { + private APIconnectOptionsNamespacedPodProxyWithPathRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { this.name = name; this.namespace = namespace; this.path = path; @@ -4358,7 +4550,7 @@ private APIconnectOptionsNamespacedPodProxyWithPathRequest(String name, String n * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectOptionsNamespacedPodProxyWithPathRequest */ - public APIconnectOptionsNamespacedPodProxyWithPathRequest path2(String path2) { + public APIconnectOptionsNamespacedPodProxyWithPathRequest path2(@jakarta.annotation.Nullable String path2) { this.path2 = path2; return this; } @@ -4369,7 +4561,8 @@ public APIconnectOptionsNamespacedPodProxyWithPathRequest path2(String path2) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4384,7 +4577,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4400,7 +4594,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4416,7 +4611,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4435,16 +4631,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param path path to the resource (required) * @return APIconnectOptionsNamespacedPodProxyWithPathRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectOptionsNamespacedPodProxyWithPathRequest connectOptionsNamespacedPodProxyWithPath(String name, String namespace, String path) { + public APIconnectOptionsNamespacedPodProxyWithPathRequest connectOptionsNamespacedPodProxyWithPath(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { return new APIconnectOptionsNamespacedPodProxyWithPathRequest(name, namespace, path); } - private okhttp3.Call connectOptionsNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectOptionsNamespacedServiceProxyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4495,7 +4692,7 @@ private okhttp3.Call connectOptionsNamespacedServiceProxyCall(String name, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call connectOptionsNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectOptionsNamespacedServiceProxyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectOptionsNamespacedServiceProxy(Async)"); @@ -4511,13 +4708,13 @@ private okhttp3.Call connectOptionsNamespacedServiceProxyValidateBeforeCall(Stri } - private ApiResponse connectOptionsNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { + private ApiResponse connectOptionsNamespacedServiceProxyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path) throws ApiException { okhttp3.Call localVarCall = connectOptionsNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectOptionsNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectOptionsNamespacedServiceProxyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectOptionsNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4526,11 +4723,14 @@ private okhttp3.Call connectOptionsNamespacedServiceProxyAsync(String name, Stri } public class APIconnectOptionsNamespacedServiceProxyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String path; - private APIconnectOptionsNamespacedServiceProxyRequest(String name, String namespace) { + private APIconnectOptionsNamespacedServiceProxyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -4540,7 +4740,7 @@ private APIconnectOptionsNamespacedServiceProxyRequest(String name, String names * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectOptionsNamespacedServiceProxyRequest */ - public APIconnectOptionsNamespacedServiceProxyRequest path(String path) { + public APIconnectOptionsNamespacedServiceProxyRequest path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } @@ -4551,7 +4751,8 @@ public APIconnectOptionsNamespacedServiceProxyRequest path(String path) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4566,7 +4767,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4582,7 +4784,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4598,7 +4801,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4616,16 +4820,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectOptionsNamespacedServiceProxyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectOptionsNamespacedServiceProxyRequest connectOptionsNamespacedServiceProxy(String name, String namespace) { + public APIconnectOptionsNamespacedServiceProxyRequest connectOptionsNamespacedServiceProxy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIconnectOptionsNamespacedServiceProxyRequest(name, namespace); } - private okhttp3.Call connectOptionsNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectOptionsNamespacedServiceProxyWithPathCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4677,7 +4882,7 @@ private okhttp3.Call connectOptionsNamespacedServiceProxyWithPathCall(String nam } @SuppressWarnings("rawtypes") - private okhttp3.Call connectOptionsNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectOptionsNamespacedServiceProxyWithPathValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectOptionsNamespacedServiceProxyWithPath(Async)"); @@ -4698,13 +4903,13 @@ private okhttp3.Call connectOptionsNamespacedServiceProxyWithPathValidateBeforeC } - private ApiResponse connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { + private ApiResponse connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2) throws ApiException { okhttp3.Call localVarCall = connectOptionsNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectOptionsNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectOptionsNamespacedServiceProxyWithPathAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectOptionsNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4713,12 +4918,16 @@ private okhttp3.Call connectOptionsNamespacedServiceProxyWithPathAsync(String na } public class APIconnectOptionsNamespacedServiceProxyWithPathRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String path; + @jakarta.annotation.Nullable private String path2; - private APIconnectOptionsNamespacedServiceProxyWithPathRequest(String name, String namespace, String path) { + private APIconnectOptionsNamespacedServiceProxyWithPathRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { this.name = name; this.namespace = namespace; this.path = path; @@ -4729,7 +4938,7 @@ private APIconnectOptionsNamespacedServiceProxyWithPathRequest(String name, Stri * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectOptionsNamespacedServiceProxyWithPathRequest */ - public APIconnectOptionsNamespacedServiceProxyWithPathRequest path2(String path2) { + public APIconnectOptionsNamespacedServiceProxyWithPathRequest path2(@jakarta.annotation.Nullable String path2) { this.path2 = path2; return this; } @@ -4740,7 +4949,8 @@ public APIconnectOptionsNamespacedServiceProxyWithPathRequest path2(String path2 * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4755,7 +4965,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4771,7 +4982,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4787,7 +4999,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4806,16 +5019,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param path path to the resource (required) * @return APIconnectOptionsNamespacedServiceProxyWithPathRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectOptionsNamespacedServiceProxyWithPathRequest connectOptionsNamespacedServiceProxyWithPath(String name, String namespace, String path) { + public APIconnectOptionsNamespacedServiceProxyWithPathRequest connectOptionsNamespacedServiceProxyWithPath(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { return new APIconnectOptionsNamespacedServiceProxyWithPathRequest(name, namespace, path); } - private okhttp3.Call connectOptionsNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectOptionsNodeProxyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4865,7 +5079,7 @@ private okhttp3.Call connectOptionsNodeProxyCall(String name, String path, final } @SuppressWarnings("rawtypes") - private okhttp3.Call connectOptionsNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectOptionsNodeProxyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectOptionsNodeProxy(Async)"); @@ -4876,13 +5090,13 @@ private okhttp3.Call connectOptionsNodeProxyValidateBeforeCall(String name, Stri } - private ApiResponse connectOptionsNodeProxyWithHttpInfo(String name, String path) throws ApiException { + private ApiResponse connectOptionsNodeProxyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path) throws ApiException { okhttp3.Call localVarCall = connectOptionsNodeProxyValidateBeforeCall(name, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectOptionsNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectOptionsNodeProxyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectOptionsNodeProxyValidateBeforeCall(name, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4891,10 +5105,12 @@ private okhttp3.Call connectOptionsNodeProxyAsync(String name, String path, fina } public class APIconnectOptionsNodeProxyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String path; - private APIconnectOptionsNodeProxyRequest(String name) { + private APIconnectOptionsNodeProxyRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -4903,7 +5119,7 @@ private APIconnectOptionsNodeProxyRequest(String name) { * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectOptionsNodeProxyRequest */ - public APIconnectOptionsNodeProxyRequest path(String path) { + public APIconnectOptionsNodeProxyRequest path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } @@ -4914,7 +5130,8 @@ public APIconnectOptionsNodeProxyRequest path(String path) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4929,7 +5146,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4945,7 +5163,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4961,7 +5180,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4978,16 +5198,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param name name of the NodeProxyOptions (required) * @return APIconnectOptionsNodeProxyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectOptionsNodeProxyRequest connectOptionsNodeProxy(String name) { + public APIconnectOptionsNodeProxyRequest connectOptionsNodeProxy(@jakarta.annotation.Nonnull String name) { return new APIconnectOptionsNodeProxyRequest(name); } - private okhttp3.Call connectOptionsNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectOptionsNodeProxyWithPathCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5038,7 +5259,7 @@ private okhttp3.Call connectOptionsNodeProxyWithPathCall(String name, String pat } @SuppressWarnings("rawtypes") - private okhttp3.Call connectOptionsNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectOptionsNodeProxyWithPathValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectOptionsNodeProxyWithPath(Async)"); @@ -5054,13 +5275,13 @@ private okhttp3.Call connectOptionsNodeProxyWithPathValidateBeforeCall(String na } - private ApiResponse connectOptionsNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException { + private ApiResponse connectOptionsNodeProxyWithPathWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2) throws ApiException { okhttp3.Call localVarCall = connectOptionsNodeProxyWithPathValidateBeforeCall(name, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectOptionsNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectOptionsNodeProxyWithPathAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectOptionsNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5069,11 +5290,14 @@ private okhttp3.Call connectOptionsNodeProxyWithPathAsync(String name, String pa } public class APIconnectOptionsNodeProxyWithPathRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String path; + @jakarta.annotation.Nullable private String path2; - private APIconnectOptionsNodeProxyWithPathRequest(String name, String path) { + private APIconnectOptionsNodeProxyWithPathRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path) { this.name = name; this.path = path; } @@ -5083,7 +5307,7 @@ private APIconnectOptionsNodeProxyWithPathRequest(String name, String path) { * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectOptionsNodeProxyWithPathRequest */ - public APIconnectOptionsNodeProxyWithPathRequest path2(String path2) { + public APIconnectOptionsNodeProxyWithPathRequest path2(@jakarta.annotation.Nullable String path2) { this.path2 = path2; return this; } @@ -5094,7 +5318,8 @@ public APIconnectOptionsNodeProxyWithPathRequest path2(String path2) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5109,7 +5334,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5125,7 +5351,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5141,7 +5368,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5159,16 +5387,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param path path to the resource (required) * @return APIconnectOptionsNodeProxyWithPathRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectOptionsNodeProxyWithPathRequest connectOptionsNodeProxyWithPath(String name, String path) { + public APIconnectOptionsNodeProxyWithPathRequest connectOptionsNodeProxyWithPath(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path) { return new APIconnectOptionsNodeProxyWithPathRequest(name, path); } - private okhttp3.Call connectPatchNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPatchNamespacedPodProxyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5219,7 +5448,7 @@ private okhttp3.Call connectPatchNamespacedPodProxyCall(String name, String name } @SuppressWarnings("rawtypes") - private okhttp3.Call connectPatchNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPatchNamespacedPodProxyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPatchNamespacedPodProxy(Async)"); @@ -5235,13 +5464,13 @@ private okhttp3.Call connectPatchNamespacedPodProxyValidateBeforeCall(String nam } - private ApiResponse connectPatchNamespacedPodProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { + private ApiResponse connectPatchNamespacedPodProxyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path) throws ApiException { okhttp3.Call localVarCall = connectPatchNamespacedPodProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectPatchNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPatchNamespacedPodProxyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPatchNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5250,11 +5479,14 @@ private okhttp3.Call connectPatchNamespacedPodProxyAsync(String name, String nam } public class APIconnectPatchNamespacedPodProxyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String path; - private APIconnectPatchNamespacedPodProxyRequest(String name, String namespace) { + private APIconnectPatchNamespacedPodProxyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -5264,7 +5496,7 @@ private APIconnectPatchNamespacedPodProxyRequest(String name, String namespace) * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectPatchNamespacedPodProxyRequest */ - public APIconnectPatchNamespacedPodProxyRequest path(String path) { + public APIconnectPatchNamespacedPodProxyRequest path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } @@ -5275,7 +5507,8 @@ public APIconnectPatchNamespacedPodProxyRequest path(String path) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5290,7 +5523,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5306,7 +5540,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5322,7 +5557,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5340,16 +5576,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectPatchNamespacedPodProxyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectPatchNamespacedPodProxyRequest connectPatchNamespacedPodProxy(String name, String namespace) { + public APIconnectPatchNamespacedPodProxyRequest connectPatchNamespacedPodProxy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIconnectPatchNamespacedPodProxyRequest(name, namespace); } - private okhttp3.Call connectPatchNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPatchNamespacedPodProxyWithPathCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5401,7 +5638,7 @@ private okhttp3.Call connectPatchNamespacedPodProxyWithPathCall(String name, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call connectPatchNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPatchNamespacedPodProxyWithPathValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPatchNamespacedPodProxyWithPath(Async)"); @@ -5422,13 +5659,13 @@ private okhttp3.Call connectPatchNamespacedPodProxyWithPathValidateBeforeCall(St } - private ApiResponse connectPatchNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { + private ApiResponse connectPatchNamespacedPodProxyWithPathWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2) throws ApiException { okhttp3.Call localVarCall = connectPatchNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectPatchNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPatchNamespacedPodProxyWithPathAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPatchNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5437,12 +5674,16 @@ private okhttp3.Call connectPatchNamespacedPodProxyWithPathAsync(String name, St } public class APIconnectPatchNamespacedPodProxyWithPathRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String path; + @jakarta.annotation.Nullable private String path2; - private APIconnectPatchNamespacedPodProxyWithPathRequest(String name, String namespace, String path) { + private APIconnectPatchNamespacedPodProxyWithPathRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { this.name = name; this.namespace = namespace; this.path = path; @@ -5453,7 +5694,7 @@ private APIconnectPatchNamespacedPodProxyWithPathRequest(String name, String nam * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectPatchNamespacedPodProxyWithPathRequest */ - public APIconnectPatchNamespacedPodProxyWithPathRequest path2(String path2) { + public APIconnectPatchNamespacedPodProxyWithPathRequest path2(@jakarta.annotation.Nullable String path2) { this.path2 = path2; return this; } @@ -5464,7 +5705,8 @@ public APIconnectPatchNamespacedPodProxyWithPathRequest path2(String path2) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5479,7 +5721,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5495,7 +5738,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5511,7 +5755,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5530,16 +5775,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param path path to the resource (required) * @return APIconnectPatchNamespacedPodProxyWithPathRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectPatchNamespacedPodProxyWithPathRequest connectPatchNamespacedPodProxyWithPath(String name, String namespace, String path) { + public APIconnectPatchNamespacedPodProxyWithPathRequest connectPatchNamespacedPodProxyWithPath(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { return new APIconnectPatchNamespacedPodProxyWithPathRequest(name, namespace, path); } - private okhttp3.Call connectPatchNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPatchNamespacedServiceProxyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5590,7 +5836,7 @@ private okhttp3.Call connectPatchNamespacedServiceProxyCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call connectPatchNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPatchNamespacedServiceProxyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPatchNamespacedServiceProxy(Async)"); @@ -5606,13 +5852,13 @@ private okhttp3.Call connectPatchNamespacedServiceProxyValidateBeforeCall(String } - private ApiResponse connectPatchNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { + private ApiResponse connectPatchNamespacedServiceProxyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path) throws ApiException { okhttp3.Call localVarCall = connectPatchNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectPatchNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPatchNamespacedServiceProxyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPatchNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5621,11 +5867,14 @@ private okhttp3.Call connectPatchNamespacedServiceProxyAsync(String name, String } public class APIconnectPatchNamespacedServiceProxyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String path; - private APIconnectPatchNamespacedServiceProxyRequest(String name, String namespace) { + private APIconnectPatchNamespacedServiceProxyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -5635,7 +5884,7 @@ private APIconnectPatchNamespacedServiceProxyRequest(String name, String namespa * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectPatchNamespacedServiceProxyRequest */ - public APIconnectPatchNamespacedServiceProxyRequest path(String path) { + public APIconnectPatchNamespacedServiceProxyRequest path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } @@ -5646,7 +5895,8 @@ public APIconnectPatchNamespacedServiceProxyRequest path(String path) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5661,7 +5911,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5677,7 +5928,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5693,7 +5945,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5711,16 +5964,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectPatchNamespacedServiceProxyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectPatchNamespacedServiceProxyRequest connectPatchNamespacedServiceProxy(String name, String namespace) { + public APIconnectPatchNamespacedServiceProxyRequest connectPatchNamespacedServiceProxy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIconnectPatchNamespacedServiceProxyRequest(name, namespace); } - private okhttp3.Call connectPatchNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPatchNamespacedServiceProxyWithPathCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5772,7 +6026,7 @@ private okhttp3.Call connectPatchNamespacedServiceProxyWithPathCall(String name, } @SuppressWarnings("rawtypes") - private okhttp3.Call connectPatchNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPatchNamespacedServiceProxyWithPathValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPatchNamespacedServiceProxyWithPath(Async)"); @@ -5793,13 +6047,13 @@ private okhttp3.Call connectPatchNamespacedServiceProxyWithPathValidateBeforeCal } - private ApiResponse connectPatchNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { + private ApiResponse connectPatchNamespacedServiceProxyWithPathWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2) throws ApiException { okhttp3.Call localVarCall = connectPatchNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectPatchNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPatchNamespacedServiceProxyWithPathAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPatchNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5808,12 +6062,16 @@ private okhttp3.Call connectPatchNamespacedServiceProxyWithPathAsync(String name } public class APIconnectPatchNamespacedServiceProxyWithPathRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String path; + @jakarta.annotation.Nullable private String path2; - private APIconnectPatchNamespacedServiceProxyWithPathRequest(String name, String namespace, String path) { + private APIconnectPatchNamespacedServiceProxyWithPathRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { this.name = name; this.namespace = namespace; this.path = path; @@ -5824,7 +6082,7 @@ private APIconnectPatchNamespacedServiceProxyWithPathRequest(String name, String * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectPatchNamespacedServiceProxyWithPathRequest */ - public APIconnectPatchNamespacedServiceProxyWithPathRequest path2(String path2) { + public APIconnectPatchNamespacedServiceProxyWithPathRequest path2(@jakarta.annotation.Nullable String path2) { this.path2 = path2; return this; } @@ -5835,7 +6093,8 @@ public APIconnectPatchNamespacedServiceProxyWithPathRequest path2(String path2) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5850,7 +6109,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5866,7 +6126,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5882,7 +6143,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5901,16 +6163,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param path path to the resource (required) * @return APIconnectPatchNamespacedServiceProxyWithPathRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectPatchNamespacedServiceProxyWithPathRequest connectPatchNamespacedServiceProxyWithPath(String name, String namespace, String path) { + public APIconnectPatchNamespacedServiceProxyWithPathRequest connectPatchNamespacedServiceProxyWithPath(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { return new APIconnectPatchNamespacedServiceProxyWithPathRequest(name, namespace, path); } - private okhttp3.Call connectPatchNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPatchNodeProxyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5960,7 +6223,7 @@ private okhttp3.Call connectPatchNodeProxyCall(String name, String path, final A } @SuppressWarnings("rawtypes") - private okhttp3.Call connectPatchNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPatchNodeProxyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPatchNodeProxy(Async)"); @@ -5971,13 +6234,13 @@ private okhttp3.Call connectPatchNodeProxyValidateBeforeCall(String name, String } - private ApiResponse connectPatchNodeProxyWithHttpInfo(String name, String path) throws ApiException { + private ApiResponse connectPatchNodeProxyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path) throws ApiException { okhttp3.Call localVarCall = connectPatchNodeProxyValidateBeforeCall(name, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectPatchNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPatchNodeProxyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPatchNodeProxyValidateBeforeCall(name, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5986,10 +6249,12 @@ private okhttp3.Call connectPatchNodeProxyAsync(String name, String path, final } public class APIconnectPatchNodeProxyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String path; - private APIconnectPatchNodeProxyRequest(String name) { + private APIconnectPatchNodeProxyRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -5998,7 +6263,7 @@ private APIconnectPatchNodeProxyRequest(String name) { * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectPatchNodeProxyRequest */ - public APIconnectPatchNodeProxyRequest path(String path) { + public APIconnectPatchNodeProxyRequest path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } @@ -6009,7 +6274,8 @@ public APIconnectPatchNodeProxyRequest path(String path) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6024,7 +6290,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6040,7 +6307,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6056,7 +6324,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6073,16 +6342,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param name name of the NodeProxyOptions (required) * @return APIconnectPatchNodeProxyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectPatchNodeProxyRequest connectPatchNodeProxy(String name) { + public APIconnectPatchNodeProxyRequest connectPatchNodeProxy(@jakarta.annotation.Nonnull String name) { return new APIconnectPatchNodeProxyRequest(name); } - private okhttp3.Call connectPatchNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPatchNodeProxyWithPathCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6133,7 +6403,7 @@ private okhttp3.Call connectPatchNodeProxyWithPathCall(String name, String path, } @SuppressWarnings("rawtypes") - private okhttp3.Call connectPatchNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPatchNodeProxyWithPathValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPatchNodeProxyWithPath(Async)"); @@ -6149,13 +6419,13 @@ private okhttp3.Call connectPatchNodeProxyWithPathValidateBeforeCall(String name } - private ApiResponse connectPatchNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException { + private ApiResponse connectPatchNodeProxyWithPathWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2) throws ApiException { okhttp3.Call localVarCall = connectPatchNodeProxyWithPathValidateBeforeCall(name, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectPatchNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPatchNodeProxyWithPathAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPatchNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6164,11 +6434,14 @@ private okhttp3.Call connectPatchNodeProxyWithPathAsync(String name, String path } public class APIconnectPatchNodeProxyWithPathRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String path; + @jakarta.annotation.Nullable private String path2; - private APIconnectPatchNodeProxyWithPathRequest(String name, String path) { + private APIconnectPatchNodeProxyWithPathRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path) { this.name = name; this.path = path; } @@ -6178,7 +6451,7 @@ private APIconnectPatchNodeProxyWithPathRequest(String name, String path) { * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectPatchNodeProxyWithPathRequest */ - public APIconnectPatchNodeProxyWithPathRequest path2(String path2) { + public APIconnectPatchNodeProxyWithPathRequest path2(@jakarta.annotation.Nullable String path2) { this.path2 = path2; return this; } @@ -6189,7 +6462,8 @@ public APIconnectPatchNodeProxyWithPathRequest path2(String path2) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6204,7 +6478,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6220,7 +6495,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6236,7 +6512,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6254,16 +6531,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param path path to the resource (required) * @return APIconnectPatchNodeProxyWithPathRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectPatchNodeProxyWithPathRequest connectPatchNodeProxyWithPath(String name, String path) { + public APIconnectPatchNodeProxyWithPathRequest connectPatchNodeProxyWithPath(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path) { return new APIconnectPatchNodeProxyWithPathRequest(name, path); } - private okhttp3.Call connectPostNamespacedPodAttachCall(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNamespacedPodAttachCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String container, @jakarta.annotation.Nullable Boolean stderr, @jakarta.annotation.Nullable Boolean stdin, @jakarta.annotation.Nullable Boolean stdout, @jakarta.annotation.Nullable Boolean tty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6330,7 +6608,7 @@ private okhttp3.Call connectPostNamespacedPodAttachCall(String name, String name } @SuppressWarnings("rawtypes") - private okhttp3.Call connectPostNamespacedPodAttachValidateBeforeCall(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNamespacedPodAttachValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String container, @jakarta.annotation.Nullable Boolean stderr, @jakarta.annotation.Nullable Boolean stdin, @jakarta.annotation.Nullable Boolean stdout, @jakarta.annotation.Nullable Boolean tty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPostNamespacedPodAttach(Async)"); @@ -6346,13 +6624,13 @@ private okhttp3.Call connectPostNamespacedPodAttachValidateBeforeCall(String nam } - private ApiResponse connectPostNamespacedPodAttachWithHttpInfo(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty) throws ApiException { + private ApiResponse connectPostNamespacedPodAttachWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String container, @jakarta.annotation.Nullable Boolean stderr, @jakarta.annotation.Nullable Boolean stdin, @jakarta.annotation.Nullable Boolean stdout, @jakarta.annotation.Nullable Boolean tty) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedPodAttachValidateBeforeCall(name, namespace, container, stderr, stdin, stdout, tty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectPostNamespacedPodAttachAsync(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNamespacedPodAttachAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String container, @jakarta.annotation.Nullable Boolean stderr, @jakarta.annotation.Nullable Boolean stdin, @jakarta.annotation.Nullable Boolean stdout, @jakarta.annotation.Nullable Boolean tty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedPodAttachValidateBeforeCall(name, namespace, container, stderr, stdin, stdout, tty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6361,15 +6639,22 @@ private okhttp3.Call connectPostNamespacedPodAttachAsync(String name, String nam } public class APIconnectPostNamespacedPodAttachRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String container; + @jakarta.annotation.Nullable private Boolean stderr; + @jakarta.annotation.Nullable private Boolean stdin; + @jakarta.annotation.Nullable private Boolean stdout; + @jakarta.annotation.Nullable private Boolean tty; - private APIconnectPostNamespacedPodAttachRequest(String name, String namespace) { + private APIconnectPostNamespacedPodAttachRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -6379,7 +6664,7 @@ private APIconnectPostNamespacedPodAttachRequest(String name, String namespace) * @param container The container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional) * @return APIconnectPostNamespacedPodAttachRequest */ - public APIconnectPostNamespacedPodAttachRequest container(String container) { + public APIconnectPostNamespacedPodAttachRequest container(@jakarta.annotation.Nullable String container) { this.container = container; return this; } @@ -6389,7 +6674,7 @@ public APIconnectPostNamespacedPodAttachRequest container(String container) { * @param stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. (optional) * @return APIconnectPostNamespacedPodAttachRequest */ - public APIconnectPostNamespacedPodAttachRequest stderr(Boolean stderr) { + public APIconnectPostNamespacedPodAttachRequest stderr(@jakarta.annotation.Nullable Boolean stderr) { this.stderr = stderr; return this; } @@ -6399,7 +6684,7 @@ public APIconnectPostNamespacedPodAttachRequest stderr(Boolean stderr) { * @param stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. (optional) * @return APIconnectPostNamespacedPodAttachRequest */ - public APIconnectPostNamespacedPodAttachRequest stdin(Boolean stdin) { + public APIconnectPostNamespacedPodAttachRequest stdin(@jakarta.annotation.Nullable Boolean stdin) { this.stdin = stdin; return this; } @@ -6409,7 +6694,7 @@ public APIconnectPostNamespacedPodAttachRequest stdin(Boolean stdin) { * @param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. (optional) * @return APIconnectPostNamespacedPodAttachRequest */ - public APIconnectPostNamespacedPodAttachRequest stdout(Boolean stdout) { + public APIconnectPostNamespacedPodAttachRequest stdout(@jakarta.annotation.Nullable Boolean stdout) { this.stdout = stdout; return this; } @@ -6419,7 +6704,7 @@ public APIconnectPostNamespacedPodAttachRequest stdout(Boolean stdout) { * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional) * @return APIconnectPostNamespacedPodAttachRequest */ - public APIconnectPostNamespacedPodAttachRequest tty(Boolean tty) { + public APIconnectPostNamespacedPodAttachRequest tty(@jakarta.annotation.Nullable Boolean tty) { this.tty = tty; return this; } @@ -6430,7 +6715,8 @@ public APIconnectPostNamespacedPodAttachRequest tty(Boolean tty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6445,7 +6731,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6461,7 +6748,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6477,7 +6765,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6495,16 +6784,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectPostNamespacedPodAttachRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectPostNamespacedPodAttachRequest connectPostNamespacedPodAttach(String name, String namespace) { + public APIconnectPostNamespacedPodAttachRequest connectPostNamespacedPodAttach(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIconnectPostNamespacedPodAttachRequest(name, namespace); } - private okhttp3.Call connectPostNamespacedPodExecCall(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNamespacedPodExecCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String command, @jakarta.annotation.Nullable String container, @jakarta.annotation.Nullable Boolean stderr, @jakarta.annotation.Nullable Boolean stdin, @jakarta.annotation.Nullable Boolean stdout, @jakarta.annotation.Nullable Boolean tty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6575,7 +6865,7 @@ private okhttp3.Call connectPostNamespacedPodExecCall(String name, String namesp } @SuppressWarnings("rawtypes") - private okhttp3.Call connectPostNamespacedPodExecValidateBeforeCall(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNamespacedPodExecValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String command, @jakarta.annotation.Nullable String container, @jakarta.annotation.Nullable Boolean stderr, @jakarta.annotation.Nullable Boolean stdin, @jakarta.annotation.Nullable Boolean stdout, @jakarta.annotation.Nullable Boolean tty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPostNamespacedPodExec(Async)"); @@ -6591,13 +6881,13 @@ private okhttp3.Call connectPostNamespacedPodExecValidateBeforeCall(String name, } - private ApiResponse connectPostNamespacedPodExecWithHttpInfo(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty) throws ApiException { + private ApiResponse connectPostNamespacedPodExecWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String command, @jakarta.annotation.Nullable String container, @jakarta.annotation.Nullable Boolean stderr, @jakarta.annotation.Nullable Boolean stdin, @jakarta.annotation.Nullable Boolean stdout, @jakarta.annotation.Nullable Boolean tty) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedPodExecValidateBeforeCall(name, namespace, command, container, stderr, stdin, stdout, tty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectPostNamespacedPodExecAsync(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNamespacedPodExecAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String command, @jakarta.annotation.Nullable String container, @jakarta.annotation.Nullable Boolean stderr, @jakarta.annotation.Nullable Boolean stdin, @jakarta.annotation.Nullable Boolean stdout, @jakarta.annotation.Nullable Boolean tty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedPodExecValidateBeforeCall(name, namespace, command, container, stderr, stdin, stdout, tty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6606,16 +6896,24 @@ private okhttp3.Call connectPostNamespacedPodExecAsync(String name, String names } public class APIconnectPostNamespacedPodExecRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String command; + @jakarta.annotation.Nullable private String container; + @jakarta.annotation.Nullable private Boolean stderr; + @jakarta.annotation.Nullable private Boolean stdin; + @jakarta.annotation.Nullable private Boolean stdout; + @jakarta.annotation.Nullable private Boolean tty; - private APIconnectPostNamespacedPodExecRequest(String name, String namespace) { + private APIconnectPostNamespacedPodExecRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -6625,7 +6923,7 @@ private APIconnectPostNamespacedPodExecRequest(String name, String namespace) { * @param command Command is the remote command to execute. argv array. Not executed within a shell. (optional) * @return APIconnectPostNamespacedPodExecRequest */ - public APIconnectPostNamespacedPodExecRequest command(String command) { + public APIconnectPostNamespacedPodExecRequest command(@jakarta.annotation.Nullable String command) { this.command = command; return this; } @@ -6635,7 +6933,7 @@ public APIconnectPostNamespacedPodExecRequest command(String command) { * @param container Container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional) * @return APIconnectPostNamespacedPodExecRequest */ - public APIconnectPostNamespacedPodExecRequest container(String container) { + public APIconnectPostNamespacedPodExecRequest container(@jakarta.annotation.Nullable String container) { this.container = container; return this; } @@ -6645,7 +6943,7 @@ public APIconnectPostNamespacedPodExecRequest container(String container) { * @param stderr Redirect the standard error stream of the pod for this call. (optional) * @return APIconnectPostNamespacedPodExecRequest */ - public APIconnectPostNamespacedPodExecRequest stderr(Boolean stderr) { + public APIconnectPostNamespacedPodExecRequest stderr(@jakarta.annotation.Nullable Boolean stderr) { this.stderr = stderr; return this; } @@ -6655,7 +6953,7 @@ public APIconnectPostNamespacedPodExecRequest stderr(Boolean stderr) { * @param stdin Redirect the standard input stream of the pod for this call. Defaults to false. (optional) * @return APIconnectPostNamespacedPodExecRequest */ - public APIconnectPostNamespacedPodExecRequest stdin(Boolean stdin) { + public APIconnectPostNamespacedPodExecRequest stdin(@jakarta.annotation.Nullable Boolean stdin) { this.stdin = stdin; return this; } @@ -6665,7 +6963,7 @@ public APIconnectPostNamespacedPodExecRequest stdin(Boolean stdin) { * @param stdout Redirect the standard output stream of the pod for this call. (optional) * @return APIconnectPostNamespacedPodExecRequest */ - public APIconnectPostNamespacedPodExecRequest stdout(Boolean stdout) { + public APIconnectPostNamespacedPodExecRequest stdout(@jakarta.annotation.Nullable Boolean stdout) { this.stdout = stdout; return this; } @@ -6675,7 +6973,7 @@ public APIconnectPostNamespacedPodExecRequest stdout(Boolean stdout) { * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional) * @return APIconnectPostNamespacedPodExecRequest */ - public APIconnectPostNamespacedPodExecRequest tty(Boolean tty) { + public APIconnectPostNamespacedPodExecRequest tty(@jakarta.annotation.Nullable Boolean tty) { this.tty = tty; return this; } @@ -6686,7 +6984,8 @@ public APIconnectPostNamespacedPodExecRequest tty(Boolean tty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6701,7 +7000,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6717,7 +7017,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6733,7 +7034,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6751,16 +7053,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectPostNamespacedPodExecRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectPostNamespacedPodExecRequest connectPostNamespacedPodExec(String name, String namespace) { + public APIconnectPostNamespacedPodExecRequest connectPostNamespacedPodExec(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIconnectPostNamespacedPodExecRequest(name, namespace); } - private okhttp3.Call connectPostNamespacedPodPortforwardCall(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNamespacedPodPortforwardCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable Integer ports, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6811,7 +7114,7 @@ private okhttp3.Call connectPostNamespacedPodPortforwardCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call connectPostNamespacedPodPortforwardValidateBeforeCall(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNamespacedPodPortforwardValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable Integer ports, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPostNamespacedPodPortforward(Async)"); @@ -6827,13 +7130,13 @@ private okhttp3.Call connectPostNamespacedPodPortforwardValidateBeforeCall(Strin } - private ApiResponse connectPostNamespacedPodPortforwardWithHttpInfo(String name, String namespace, Integer ports) throws ApiException { + private ApiResponse connectPostNamespacedPodPortforwardWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable Integer ports) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedPodPortforwardValidateBeforeCall(name, namespace, ports, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectPostNamespacedPodPortforwardAsync(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNamespacedPodPortforwardAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable Integer ports, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedPodPortforwardValidateBeforeCall(name, namespace, ports, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6842,11 +7145,14 @@ private okhttp3.Call connectPostNamespacedPodPortforwardAsync(String name, Strin } public class APIconnectPostNamespacedPodPortforwardRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private Integer ports; - private APIconnectPostNamespacedPodPortforwardRequest(String name, String namespace) { + private APIconnectPostNamespacedPodPortforwardRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -6856,7 +7162,7 @@ private APIconnectPostNamespacedPodPortforwardRequest(String name, String namesp * @param ports List of ports to forward Required when using WebSockets (optional) * @return APIconnectPostNamespacedPodPortforwardRequest */ - public APIconnectPostNamespacedPodPortforwardRequest ports(Integer ports) { + public APIconnectPostNamespacedPodPortforwardRequest ports(@jakarta.annotation.Nullable Integer ports) { this.ports = ports; return this; } @@ -6867,7 +7173,8 @@ public APIconnectPostNamespacedPodPortforwardRequest ports(Integer ports) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6882,7 +7189,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6898,7 +7206,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6914,7 +7223,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6932,16 +7242,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectPostNamespacedPodPortforwardRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectPostNamespacedPodPortforwardRequest connectPostNamespacedPodPortforward(String name, String namespace) { + public APIconnectPostNamespacedPodPortforwardRequest connectPostNamespacedPodPortforward(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIconnectPostNamespacedPodPortforwardRequest(name, namespace); } - private okhttp3.Call connectPostNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNamespacedPodProxyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6992,7 +7303,7 @@ private okhttp3.Call connectPostNamespacedPodProxyCall(String name, String names } @SuppressWarnings("rawtypes") - private okhttp3.Call connectPostNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNamespacedPodProxyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPostNamespacedPodProxy(Async)"); @@ -7008,13 +7319,13 @@ private okhttp3.Call connectPostNamespacedPodProxyValidateBeforeCall(String name } - private ApiResponse connectPostNamespacedPodProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { + private ApiResponse connectPostNamespacedPodProxyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedPodProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectPostNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNamespacedPodProxyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7023,11 +7334,14 @@ private okhttp3.Call connectPostNamespacedPodProxyAsync(String name, String name } public class APIconnectPostNamespacedPodProxyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String path; - private APIconnectPostNamespacedPodProxyRequest(String name, String namespace) { + private APIconnectPostNamespacedPodProxyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -7037,7 +7351,7 @@ private APIconnectPostNamespacedPodProxyRequest(String name, String namespace) { * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectPostNamespacedPodProxyRequest */ - public APIconnectPostNamespacedPodProxyRequest path(String path) { + public APIconnectPostNamespacedPodProxyRequest path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } @@ -7048,7 +7362,8 @@ public APIconnectPostNamespacedPodProxyRequest path(String path) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7063,7 +7378,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7079,7 +7395,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7095,7 +7412,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7113,16 +7431,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectPostNamespacedPodProxyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectPostNamespacedPodProxyRequest connectPostNamespacedPodProxy(String name, String namespace) { + public APIconnectPostNamespacedPodProxyRequest connectPostNamespacedPodProxy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIconnectPostNamespacedPodProxyRequest(name, namespace); } - private okhttp3.Call connectPostNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNamespacedPodProxyWithPathCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7174,7 +7493,7 @@ private okhttp3.Call connectPostNamespacedPodProxyWithPathCall(String name, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call connectPostNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNamespacedPodProxyWithPathValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPostNamespacedPodProxyWithPath(Async)"); @@ -7195,13 +7514,13 @@ private okhttp3.Call connectPostNamespacedPodProxyWithPathValidateBeforeCall(Str } - private ApiResponse connectPostNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { + private ApiResponse connectPostNamespacedPodProxyWithPathWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectPostNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNamespacedPodProxyWithPathAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7210,12 +7529,16 @@ private okhttp3.Call connectPostNamespacedPodProxyWithPathAsync(String name, Str } public class APIconnectPostNamespacedPodProxyWithPathRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String path; + @jakarta.annotation.Nullable private String path2; - private APIconnectPostNamespacedPodProxyWithPathRequest(String name, String namespace, String path) { + private APIconnectPostNamespacedPodProxyWithPathRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { this.name = name; this.namespace = namespace; this.path = path; @@ -7226,7 +7549,7 @@ private APIconnectPostNamespacedPodProxyWithPathRequest(String name, String name * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectPostNamespacedPodProxyWithPathRequest */ - public APIconnectPostNamespacedPodProxyWithPathRequest path2(String path2) { + public APIconnectPostNamespacedPodProxyWithPathRequest path2(@jakarta.annotation.Nullable String path2) { this.path2 = path2; return this; } @@ -7237,7 +7560,8 @@ public APIconnectPostNamespacedPodProxyWithPathRequest path2(String path2) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7252,7 +7576,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7268,7 +7593,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7284,7 +7610,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7303,16 +7630,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param path path to the resource (required) * @return APIconnectPostNamespacedPodProxyWithPathRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectPostNamespacedPodProxyWithPathRequest connectPostNamespacedPodProxyWithPath(String name, String namespace, String path) { + public APIconnectPostNamespacedPodProxyWithPathRequest connectPostNamespacedPodProxyWithPath(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { return new APIconnectPostNamespacedPodProxyWithPathRequest(name, namespace, path); } - private okhttp3.Call connectPostNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNamespacedServiceProxyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7363,7 +7691,7 @@ private okhttp3.Call connectPostNamespacedServiceProxyCall(String name, String n } @SuppressWarnings("rawtypes") - private okhttp3.Call connectPostNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNamespacedServiceProxyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPostNamespacedServiceProxy(Async)"); @@ -7379,13 +7707,13 @@ private okhttp3.Call connectPostNamespacedServiceProxyValidateBeforeCall(String } - private ApiResponse connectPostNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { + private ApiResponse connectPostNamespacedServiceProxyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectPostNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNamespacedServiceProxyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7394,11 +7722,14 @@ private okhttp3.Call connectPostNamespacedServiceProxyAsync(String name, String } public class APIconnectPostNamespacedServiceProxyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String path; - private APIconnectPostNamespacedServiceProxyRequest(String name, String namespace) { + private APIconnectPostNamespacedServiceProxyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -7408,7 +7739,7 @@ private APIconnectPostNamespacedServiceProxyRequest(String name, String namespac * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectPostNamespacedServiceProxyRequest */ - public APIconnectPostNamespacedServiceProxyRequest path(String path) { + public APIconnectPostNamespacedServiceProxyRequest path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } @@ -7419,7 +7750,8 @@ public APIconnectPostNamespacedServiceProxyRequest path(String path) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7434,7 +7766,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7450,7 +7783,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7466,7 +7800,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7484,16 +7819,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectPostNamespacedServiceProxyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectPostNamespacedServiceProxyRequest connectPostNamespacedServiceProxy(String name, String namespace) { + public APIconnectPostNamespacedServiceProxyRequest connectPostNamespacedServiceProxy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIconnectPostNamespacedServiceProxyRequest(name, namespace); } - private okhttp3.Call connectPostNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNamespacedServiceProxyWithPathCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7545,7 +7881,7 @@ private okhttp3.Call connectPostNamespacedServiceProxyWithPathCall(String name, } @SuppressWarnings("rawtypes") - private okhttp3.Call connectPostNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNamespacedServiceProxyWithPathValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPostNamespacedServiceProxyWithPath(Async)"); @@ -7566,13 +7902,13 @@ private okhttp3.Call connectPostNamespacedServiceProxyWithPathValidateBeforeCall } - private ApiResponse connectPostNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { + private ApiResponse connectPostNamespacedServiceProxyWithPathWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectPostNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNamespacedServiceProxyWithPathAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7581,12 +7917,16 @@ private okhttp3.Call connectPostNamespacedServiceProxyWithPathAsync(String name, } public class APIconnectPostNamespacedServiceProxyWithPathRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String path; + @jakarta.annotation.Nullable private String path2; - private APIconnectPostNamespacedServiceProxyWithPathRequest(String name, String namespace, String path) { + private APIconnectPostNamespacedServiceProxyWithPathRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { this.name = name; this.namespace = namespace; this.path = path; @@ -7597,7 +7937,7 @@ private APIconnectPostNamespacedServiceProxyWithPathRequest(String name, String * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectPostNamespacedServiceProxyWithPathRequest */ - public APIconnectPostNamespacedServiceProxyWithPathRequest path2(String path2) { + public APIconnectPostNamespacedServiceProxyWithPathRequest path2(@jakarta.annotation.Nullable String path2) { this.path2 = path2; return this; } @@ -7608,7 +7948,8 @@ public APIconnectPostNamespacedServiceProxyWithPathRequest path2(String path2) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7623,7 +7964,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7639,7 +7981,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7655,7 +7998,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7674,16 +8018,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param path path to the resource (required) * @return APIconnectPostNamespacedServiceProxyWithPathRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectPostNamespacedServiceProxyWithPathRequest connectPostNamespacedServiceProxyWithPath(String name, String namespace, String path) { + public APIconnectPostNamespacedServiceProxyWithPathRequest connectPostNamespacedServiceProxyWithPath(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { return new APIconnectPostNamespacedServiceProxyWithPathRequest(name, namespace, path); } - private okhttp3.Call connectPostNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNodeProxyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7733,7 +8078,7 @@ private okhttp3.Call connectPostNodeProxyCall(String name, String path, final Ap } @SuppressWarnings("rawtypes") - private okhttp3.Call connectPostNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNodeProxyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPostNodeProxy(Async)"); @@ -7744,13 +8089,13 @@ private okhttp3.Call connectPostNodeProxyValidateBeforeCall(String name, String } - private ApiResponse connectPostNodeProxyWithHttpInfo(String name, String path) throws ApiException { + private ApiResponse connectPostNodeProxyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path) throws ApiException { okhttp3.Call localVarCall = connectPostNodeProxyValidateBeforeCall(name, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectPostNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNodeProxyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPostNodeProxyValidateBeforeCall(name, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7759,10 +8104,12 @@ private okhttp3.Call connectPostNodeProxyAsync(String name, String path, final A } public class APIconnectPostNodeProxyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String path; - private APIconnectPostNodeProxyRequest(String name) { + private APIconnectPostNodeProxyRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -7771,7 +8118,7 @@ private APIconnectPostNodeProxyRequest(String name) { * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectPostNodeProxyRequest */ - public APIconnectPostNodeProxyRequest path(String path) { + public APIconnectPostNodeProxyRequest path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } @@ -7782,7 +8129,8 @@ public APIconnectPostNodeProxyRequest path(String path) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7797,7 +8145,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7813,7 +8162,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7829,7 +8179,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7846,16 +8197,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param name name of the NodeProxyOptions (required) * @return APIconnectPostNodeProxyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectPostNodeProxyRequest connectPostNodeProxy(String name) { + public APIconnectPostNodeProxyRequest connectPostNodeProxy(@jakarta.annotation.Nonnull String name) { return new APIconnectPostNodeProxyRequest(name); } - private okhttp3.Call connectPostNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNodeProxyWithPathCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7906,7 +8258,7 @@ private okhttp3.Call connectPostNodeProxyWithPathCall(String name, String path, } @SuppressWarnings("rawtypes") - private okhttp3.Call connectPostNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNodeProxyWithPathValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPostNodeProxyWithPath(Async)"); @@ -7922,13 +8274,13 @@ private okhttp3.Call connectPostNodeProxyWithPathValidateBeforeCall(String name, } - private ApiResponse connectPostNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException { + private ApiResponse connectPostNodeProxyWithPathWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2) throws ApiException { okhttp3.Call localVarCall = connectPostNodeProxyWithPathValidateBeforeCall(name, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectPostNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPostNodeProxyWithPathAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPostNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7937,11 +8289,14 @@ private okhttp3.Call connectPostNodeProxyWithPathAsync(String name, String path, } public class APIconnectPostNodeProxyWithPathRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String path; + @jakarta.annotation.Nullable private String path2; - private APIconnectPostNodeProxyWithPathRequest(String name, String path) { + private APIconnectPostNodeProxyWithPathRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path) { this.name = name; this.path = path; } @@ -7951,7 +8306,7 @@ private APIconnectPostNodeProxyWithPathRequest(String name, String path) { * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectPostNodeProxyWithPathRequest */ - public APIconnectPostNodeProxyWithPathRequest path2(String path2) { + public APIconnectPostNodeProxyWithPathRequest path2(@jakarta.annotation.Nullable String path2) { this.path2 = path2; return this; } @@ -7962,7 +8317,8 @@ public APIconnectPostNodeProxyWithPathRequest path2(String path2) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7977,7 +8333,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7993,7 +8350,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8009,7 +8367,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8027,16 +8386,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param path path to the resource (required) * @return APIconnectPostNodeProxyWithPathRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectPostNodeProxyWithPathRequest connectPostNodeProxyWithPath(String name, String path) { + public APIconnectPostNodeProxyWithPathRequest connectPostNodeProxyWithPath(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path) { return new APIconnectPostNodeProxyWithPathRequest(name, path); } - private okhttp3.Call connectPutNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPutNamespacedPodProxyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8087,7 +8447,7 @@ private okhttp3.Call connectPutNamespacedPodProxyCall(String name, String namesp } @SuppressWarnings("rawtypes") - private okhttp3.Call connectPutNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPutNamespacedPodProxyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPutNamespacedPodProxy(Async)"); @@ -8103,13 +8463,13 @@ private okhttp3.Call connectPutNamespacedPodProxyValidateBeforeCall(String name, } - private ApiResponse connectPutNamespacedPodProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { + private ApiResponse connectPutNamespacedPodProxyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path) throws ApiException { okhttp3.Call localVarCall = connectPutNamespacedPodProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectPutNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPutNamespacedPodProxyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPutNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8118,11 +8478,14 @@ private okhttp3.Call connectPutNamespacedPodProxyAsync(String name, String names } public class APIconnectPutNamespacedPodProxyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String path; - private APIconnectPutNamespacedPodProxyRequest(String name, String namespace) { + private APIconnectPutNamespacedPodProxyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -8132,7 +8495,7 @@ private APIconnectPutNamespacedPodProxyRequest(String name, String namespace) { * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectPutNamespacedPodProxyRequest */ - public APIconnectPutNamespacedPodProxyRequest path(String path) { + public APIconnectPutNamespacedPodProxyRequest path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } @@ -8143,7 +8506,8 @@ public APIconnectPutNamespacedPodProxyRequest path(String path) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8158,7 +8522,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8174,7 +8539,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8190,7 +8556,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8208,16 +8575,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectPutNamespacedPodProxyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectPutNamespacedPodProxyRequest connectPutNamespacedPodProxy(String name, String namespace) { + public APIconnectPutNamespacedPodProxyRequest connectPutNamespacedPodProxy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIconnectPutNamespacedPodProxyRequest(name, namespace); } - private okhttp3.Call connectPutNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPutNamespacedPodProxyWithPathCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8269,7 +8637,7 @@ private okhttp3.Call connectPutNamespacedPodProxyWithPathCall(String name, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call connectPutNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPutNamespacedPodProxyWithPathValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPutNamespacedPodProxyWithPath(Async)"); @@ -8290,13 +8658,13 @@ private okhttp3.Call connectPutNamespacedPodProxyWithPathValidateBeforeCall(Stri } - private ApiResponse connectPutNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { + private ApiResponse connectPutNamespacedPodProxyWithPathWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2) throws ApiException { okhttp3.Call localVarCall = connectPutNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectPutNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPutNamespacedPodProxyWithPathAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPutNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8305,12 +8673,16 @@ private okhttp3.Call connectPutNamespacedPodProxyWithPathAsync(String name, Stri } public class APIconnectPutNamespacedPodProxyWithPathRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String path; + @jakarta.annotation.Nullable private String path2; - private APIconnectPutNamespacedPodProxyWithPathRequest(String name, String namespace, String path) { + private APIconnectPutNamespacedPodProxyWithPathRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { this.name = name; this.namespace = namespace; this.path = path; @@ -8321,7 +8693,7 @@ private APIconnectPutNamespacedPodProxyWithPathRequest(String name, String names * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectPutNamespacedPodProxyWithPathRequest */ - public APIconnectPutNamespacedPodProxyWithPathRequest path2(String path2) { + public APIconnectPutNamespacedPodProxyWithPathRequest path2(@jakarta.annotation.Nullable String path2) { this.path2 = path2; return this; } @@ -8332,7 +8704,8 @@ public APIconnectPutNamespacedPodProxyWithPathRequest path2(String path2) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8347,7 +8720,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8363,7 +8737,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8379,7 +8754,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8398,16 +8774,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param path path to the resource (required) * @return APIconnectPutNamespacedPodProxyWithPathRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectPutNamespacedPodProxyWithPathRequest connectPutNamespacedPodProxyWithPath(String name, String namespace, String path) { + public APIconnectPutNamespacedPodProxyWithPathRequest connectPutNamespacedPodProxyWithPath(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { return new APIconnectPutNamespacedPodProxyWithPathRequest(name, namespace, path); } - private okhttp3.Call connectPutNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPutNamespacedServiceProxyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8458,7 +8835,7 @@ private okhttp3.Call connectPutNamespacedServiceProxyCall(String name, String na } @SuppressWarnings("rawtypes") - private okhttp3.Call connectPutNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPutNamespacedServiceProxyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPutNamespacedServiceProxy(Async)"); @@ -8474,13 +8851,13 @@ private okhttp3.Call connectPutNamespacedServiceProxyValidateBeforeCall(String n } - private ApiResponse connectPutNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { + private ApiResponse connectPutNamespacedServiceProxyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path) throws ApiException { okhttp3.Call localVarCall = connectPutNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectPutNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPutNamespacedServiceProxyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPutNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8489,11 +8866,14 @@ private okhttp3.Call connectPutNamespacedServiceProxyAsync(String name, String n } public class APIconnectPutNamespacedServiceProxyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String path; - private APIconnectPutNamespacedServiceProxyRequest(String name, String namespace) { + private APIconnectPutNamespacedServiceProxyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -8503,7 +8883,7 @@ private APIconnectPutNamespacedServiceProxyRequest(String name, String namespace * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectPutNamespacedServiceProxyRequest */ - public APIconnectPutNamespacedServiceProxyRequest path(String path) { + public APIconnectPutNamespacedServiceProxyRequest path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } @@ -8514,7 +8894,8 @@ public APIconnectPutNamespacedServiceProxyRequest path(String path) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8529,7 +8910,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8545,7 +8927,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8561,7 +8944,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8579,16 +8963,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectPutNamespacedServiceProxyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectPutNamespacedServiceProxyRequest connectPutNamespacedServiceProxy(String name, String namespace) { + public APIconnectPutNamespacedServiceProxyRequest connectPutNamespacedServiceProxy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIconnectPutNamespacedServiceProxyRequest(name, namespace); } - private okhttp3.Call connectPutNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPutNamespacedServiceProxyWithPathCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8640,7 +9025,7 @@ private okhttp3.Call connectPutNamespacedServiceProxyWithPathCall(String name, S } @SuppressWarnings("rawtypes") - private okhttp3.Call connectPutNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPutNamespacedServiceProxyWithPathValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPutNamespacedServiceProxyWithPath(Async)"); @@ -8661,13 +9046,13 @@ private okhttp3.Call connectPutNamespacedServiceProxyWithPathValidateBeforeCall( } - private ApiResponse connectPutNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { + private ApiResponse connectPutNamespacedServiceProxyWithPathWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2) throws ApiException { okhttp3.Call localVarCall = connectPutNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectPutNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPutNamespacedServiceProxyWithPathAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPutNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8676,12 +9061,16 @@ private okhttp3.Call connectPutNamespacedServiceProxyWithPathAsync(String name, } public class APIconnectPutNamespacedServiceProxyWithPathRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String path; + @jakarta.annotation.Nullable private String path2; - private APIconnectPutNamespacedServiceProxyWithPathRequest(String name, String namespace, String path) { + private APIconnectPutNamespacedServiceProxyWithPathRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { this.name = name; this.namespace = namespace; this.path = path; @@ -8692,7 +9081,7 @@ private APIconnectPutNamespacedServiceProxyWithPathRequest(String name, String n * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectPutNamespacedServiceProxyWithPathRequest */ - public APIconnectPutNamespacedServiceProxyWithPathRequest path2(String path2) { + public APIconnectPutNamespacedServiceProxyWithPathRequest path2(@jakarta.annotation.Nullable String path2) { this.path2 = path2; return this; } @@ -8703,7 +9092,8 @@ public APIconnectPutNamespacedServiceProxyWithPathRequest path2(String path2) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8718,7 +9108,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8734,7 +9125,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8750,7 +9142,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8769,16 +9162,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param path path to the resource (required) * @return APIconnectPutNamespacedServiceProxyWithPathRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectPutNamespacedServiceProxyWithPathRequest connectPutNamespacedServiceProxyWithPath(String name, String namespace, String path) { + public APIconnectPutNamespacedServiceProxyWithPathRequest connectPutNamespacedServiceProxyWithPath(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String path) { return new APIconnectPutNamespacedServiceProxyWithPathRequest(name, namespace, path); } - private okhttp3.Call connectPutNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPutNodeProxyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8828,7 +9222,7 @@ private okhttp3.Call connectPutNodeProxyCall(String name, String path, final Api } @SuppressWarnings("rawtypes") - private okhttp3.Call connectPutNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPutNodeProxyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPutNodeProxy(Async)"); @@ -8839,13 +9233,13 @@ private okhttp3.Call connectPutNodeProxyValidateBeforeCall(String name, String p } - private ApiResponse connectPutNodeProxyWithHttpInfo(String name, String path) throws ApiException { + private ApiResponse connectPutNodeProxyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path) throws ApiException { okhttp3.Call localVarCall = connectPutNodeProxyValidateBeforeCall(name, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectPutNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPutNodeProxyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPutNodeProxyValidateBeforeCall(name, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8854,10 +9248,12 @@ private okhttp3.Call connectPutNodeProxyAsync(String name, String path, final Ap } public class APIconnectPutNodeProxyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String path; - private APIconnectPutNodeProxyRequest(String name) { + private APIconnectPutNodeProxyRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -8866,7 +9262,7 @@ private APIconnectPutNodeProxyRequest(String name) { * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectPutNodeProxyRequest */ - public APIconnectPutNodeProxyRequest path(String path) { + public APIconnectPutNodeProxyRequest path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } @@ -8877,7 +9273,8 @@ public APIconnectPutNodeProxyRequest path(String path) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8892,7 +9289,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8908,7 +9306,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8924,7 +9323,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8941,16 +9341,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param name name of the NodeProxyOptions (required) * @return APIconnectPutNodeProxyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectPutNodeProxyRequest connectPutNodeProxy(String name) { + public APIconnectPutNodeProxyRequest connectPutNodeProxy(@jakarta.annotation.Nonnull String name) { return new APIconnectPutNodeProxyRequest(name); } - private okhttp3.Call connectPutNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPutNodeProxyWithPathCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -9001,7 +9402,7 @@ private okhttp3.Call connectPutNodeProxyWithPathCall(String name, String path, S } @SuppressWarnings("rawtypes") - private okhttp3.Call connectPutNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPutNodeProxyWithPathValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPutNodeProxyWithPath(Async)"); @@ -9017,13 +9418,13 @@ private okhttp3.Call connectPutNodeProxyWithPathValidateBeforeCall(String name, } - private ApiResponse connectPutNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException { + private ApiResponse connectPutNodeProxyWithPathWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2) throws ApiException { okhttp3.Call localVarCall = connectPutNodeProxyWithPathValidateBeforeCall(name, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call connectPutNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectPutNodeProxyWithPathAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path, @jakarta.annotation.Nullable String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPutNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -9032,11 +9433,14 @@ private okhttp3.Call connectPutNodeProxyWithPathAsync(String name, String path, } public class APIconnectPutNodeProxyWithPathRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String path; + @jakarta.annotation.Nullable private String path2; - private APIconnectPutNodeProxyWithPathRequest(String name, String path) { + private APIconnectPutNodeProxyWithPathRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path) { this.name = name; this.path = path; } @@ -9046,7 +9450,7 @@ private APIconnectPutNodeProxyWithPathRequest(String name, String path) { * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectPutNodeProxyWithPathRequest */ - public APIconnectPutNodeProxyWithPathRequest path2(String path2) { + public APIconnectPutNodeProxyWithPathRequest path2(@jakarta.annotation.Nullable String path2) { this.path2 = path2; return this; } @@ -9057,7 +9461,8 @@ public APIconnectPutNodeProxyWithPathRequest path2(String path2) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -9072,7 +9477,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -9088,7 +9494,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -9104,7 +9511,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -9122,16 +9530,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param path path to the resource (required) * @return APIconnectPutNodeProxyWithPathRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIconnectPutNodeProxyWithPathRequest connectPutNodeProxyWithPath(String name, String path) { + public APIconnectPutNodeProxyWithPathRequest connectPutNodeProxyWithPath(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String path) { return new APIconnectPutNodeProxyWithPathRequest(name, path); } - private okhttp3.Call createNamespaceCall(V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespaceCall(@jakarta.annotation.Nonnull V1Namespace body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -9196,7 +9605,7 @@ private okhttp3.Call createNamespaceCall(V1Namespace body, String pretty, String } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespaceValidateBeforeCall(V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespaceValidateBeforeCall(@jakarta.annotation.Nonnull V1Namespace body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNamespace(Async)"); @@ -9207,13 +9616,13 @@ private okhttp3.Call createNamespaceValidateBeforeCall(V1Namespace body, String } - private ApiResponse createNamespaceWithHttpInfo(V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespaceWithHttpInfo(@jakarta.annotation.Nonnull V1Namespace body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespaceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespaceAsync(V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespaceAsync(@jakarta.annotation.Nonnull V1Namespace body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespaceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -9222,13 +9631,18 @@ private okhttp3.Call createNamespaceAsync(V1Namespace body, String pretty, Strin } public class APIcreateNamespaceRequest { + @jakarta.annotation.Nonnull private final V1Namespace body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespaceRequest(V1Namespace body) { + private APIcreateNamespaceRequest(@jakarta.annotation.Nonnull V1Namespace body) { this.body = body; } @@ -9237,7 +9651,7 @@ private APIcreateNamespaceRequest(V1Namespace body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespaceRequest */ - public APIcreateNamespaceRequest pretty(String pretty) { + public APIcreateNamespaceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -9247,7 +9661,7 @@ public APIcreateNamespaceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespaceRequest */ - public APIcreateNamespaceRequest dryRun(String dryRun) { + public APIcreateNamespaceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -9257,7 +9671,7 @@ public APIcreateNamespaceRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespaceRequest */ - public APIcreateNamespaceRequest fieldManager(String fieldManager) { + public APIcreateNamespaceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -9267,7 +9681,7 @@ public APIcreateNamespaceRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespaceRequest */ - public APIcreateNamespaceRequest fieldValidation(String fieldValidation) { + public APIcreateNamespaceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -9278,7 +9692,8 @@ public APIcreateNamespaceRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -9295,7 +9710,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Namespace * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9313,7 +9729,8 @@ public V1Namespace execute() throws ApiException { * @return ApiResponse<V1Namespace> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9331,7 +9748,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9350,7 +9768,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIcreateNamespaceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9358,10 +9777,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespaceRequest createNamespace(V1Namespace body) { + public APIcreateNamespaceRequest createNamespace(@jakarta.annotation.Nonnull V1Namespace body) { return new APIcreateNamespaceRequest(body); } - private okhttp3.Call createNamespacedBindingCall(String namespace, V1Binding body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedBindingCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Binding body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -9427,7 +9846,7 @@ private okhttp3.Call createNamespacedBindingCall(String namespace, V1Binding bod } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedBindingValidateBeforeCall(String namespace, V1Binding body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedBindingValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Binding body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedBinding(Async)"); @@ -9443,13 +9862,13 @@ private okhttp3.Call createNamespacedBindingValidateBeforeCall(String namespace, } - private ApiResponse createNamespacedBindingWithHttpInfo(String namespace, V1Binding body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { + private ApiResponse createNamespacedBindingWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Binding body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = createNamespacedBindingValidateBeforeCall(namespace, body, dryRun, fieldManager, fieldValidation, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedBindingAsync(String namespace, V1Binding body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedBindingAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Binding body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedBindingValidateBeforeCall(namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -9458,14 +9877,20 @@ private okhttp3.Call createNamespacedBindingAsync(String namespace, V1Binding bo } public class APIcreateNamespacedBindingRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Binding body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private String pretty; - private APIcreateNamespacedBindingRequest(String namespace, V1Binding body) { + private APIcreateNamespacedBindingRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Binding body) { this.namespace = namespace; this.body = body; } @@ -9475,7 +9900,7 @@ private APIcreateNamespacedBindingRequest(String namespace, V1Binding body) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedBindingRequest */ - public APIcreateNamespacedBindingRequest dryRun(String dryRun) { + public APIcreateNamespacedBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -9485,7 +9910,7 @@ public APIcreateNamespacedBindingRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedBindingRequest */ - public APIcreateNamespacedBindingRequest fieldManager(String fieldManager) { + public APIcreateNamespacedBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -9495,7 +9920,7 @@ public APIcreateNamespacedBindingRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedBindingRequest */ - public APIcreateNamespacedBindingRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -9505,7 +9930,7 @@ public APIcreateNamespacedBindingRequest fieldValidation(String fieldValidation) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedBindingRequest */ - public APIcreateNamespacedBindingRequest pretty(String pretty) { + public APIcreateNamespacedBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -9516,7 +9941,8 @@ public APIcreateNamespacedBindingRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -9533,7 +9959,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Binding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9551,7 +9978,8 @@ public V1Binding execute() throws ApiException { * @return ApiResponse<V1Binding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9569,7 +9997,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9589,7 +10018,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param body (required) * @return APIcreateNamespacedBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9597,10 +10027,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedBindingRequest createNamespacedBinding(String namespace, V1Binding body) { + public APIcreateNamespacedBindingRequest createNamespacedBinding(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Binding body) { return new APIcreateNamespacedBindingRequest(namespace, body); } - private okhttp3.Call createNamespacedConfigMapCall(String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedConfigMapCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ConfigMap body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -9666,7 +10096,7 @@ private okhttp3.Call createNamespacedConfigMapCall(String namespace, V1ConfigMap } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedConfigMapValidateBeforeCall(String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedConfigMapValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ConfigMap body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedConfigMap(Async)"); @@ -9682,13 +10112,13 @@ private okhttp3.Call createNamespacedConfigMapValidateBeforeCall(String namespac } - private ApiResponse createNamespacedConfigMapWithHttpInfo(String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedConfigMapWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ConfigMap body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedConfigMapValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedConfigMapAsync(String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedConfigMapAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ConfigMap body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedConfigMapValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -9697,14 +10127,20 @@ private okhttp3.Call createNamespacedConfigMapAsync(String namespace, V1ConfigMa } public class APIcreateNamespacedConfigMapRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1ConfigMap body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedConfigMapRequest(String namespace, V1ConfigMap body) { + private APIcreateNamespacedConfigMapRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ConfigMap body) { this.namespace = namespace; this.body = body; } @@ -9714,7 +10150,7 @@ private APIcreateNamespacedConfigMapRequest(String namespace, V1ConfigMap body) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedConfigMapRequest */ - public APIcreateNamespacedConfigMapRequest pretty(String pretty) { + public APIcreateNamespacedConfigMapRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -9724,7 +10160,7 @@ public APIcreateNamespacedConfigMapRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedConfigMapRequest */ - public APIcreateNamespacedConfigMapRequest dryRun(String dryRun) { + public APIcreateNamespacedConfigMapRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -9734,7 +10170,7 @@ public APIcreateNamespacedConfigMapRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedConfigMapRequest */ - public APIcreateNamespacedConfigMapRequest fieldManager(String fieldManager) { + public APIcreateNamespacedConfigMapRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -9744,7 +10180,7 @@ public APIcreateNamespacedConfigMapRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedConfigMapRequest */ - public APIcreateNamespacedConfigMapRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedConfigMapRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -9755,7 +10191,8 @@ public APIcreateNamespacedConfigMapRequest fieldValidation(String fieldValidatio * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -9772,7 +10209,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ConfigMap * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9790,7 +10228,8 @@ public V1ConfigMap execute() throws ApiException { * @return ApiResponse<V1ConfigMap> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9808,7 +10247,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9828,7 +10268,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIcreateNamespacedConfigMapRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9836,10 +10277,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedConfigMapRequest createNamespacedConfigMap(String namespace, V1ConfigMap body) { + public APIcreateNamespacedConfigMapRequest createNamespacedConfigMap(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ConfigMap body) { return new APIcreateNamespacedConfigMapRequest(namespace, body); } - private okhttp3.Call createNamespacedEndpointsCall(String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedEndpointsCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Endpoints body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -9905,7 +10346,7 @@ private okhttp3.Call createNamespacedEndpointsCall(String namespace, V1Endpoints } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedEndpointsValidateBeforeCall(String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedEndpointsValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Endpoints body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedEndpoints(Async)"); @@ -9921,13 +10362,13 @@ private okhttp3.Call createNamespacedEndpointsValidateBeforeCall(String namespac } - private ApiResponse createNamespacedEndpointsWithHttpInfo(String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedEndpointsWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Endpoints body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedEndpointsValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedEndpointsAsync(String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedEndpointsAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Endpoints body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedEndpointsValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -9936,14 +10377,20 @@ private okhttp3.Call createNamespacedEndpointsAsync(String namespace, V1Endpoint } public class APIcreateNamespacedEndpointsRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Endpoints body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedEndpointsRequest(String namespace, V1Endpoints body) { + private APIcreateNamespacedEndpointsRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Endpoints body) { this.namespace = namespace; this.body = body; } @@ -9953,7 +10400,7 @@ private APIcreateNamespacedEndpointsRequest(String namespace, V1Endpoints body) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedEndpointsRequest */ - public APIcreateNamespacedEndpointsRequest pretty(String pretty) { + public APIcreateNamespacedEndpointsRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -9963,7 +10410,7 @@ public APIcreateNamespacedEndpointsRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedEndpointsRequest */ - public APIcreateNamespacedEndpointsRequest dryRun(String dryRun) { + public APIcreateNamespacedEndpointsRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -9973,7 +10420,7 @@ public APIcreateNamespacedEndpointsRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedEndpointsRequest */ - public APIcreateNamespacedEndpointsRequest fieldManager(String fieldManager) { + public APIcreateNamespacedEndpointsRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -9983,7 +10430,7 @@ public APIcreateNamespacedEndpointsRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedEndpointsRequest */ - public APIcreateNamespacedEndpointsRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedEndpointsRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -9994,7 +10441,8 @@ public APIcreateNamespacedEndpointsRequest fieldValidation(String fieldValidatio * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -10011,7 +10459,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Endpoints * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10029,7 +10478,8 @@ public V1Endpoints execute() throws ApiException { * @return ApiResponse<V1Endpoints> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10047,7 +10497,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10067,7 +10518,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIcreateNamespacedEndpointsRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10075,10 +10527,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedEndpointsRequest createNamespacedEndpoints(String namespace, V1Endpoints body) { + public APIcreateNamespacedEndpointsRequest createNamespacedEndpoints(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Endpoints body) { return new APIcreateNamespacedEndpointsRequest(namespace, body); } - private okhttp3.Call createNamespacedEventCall(String namespace, CoreV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedEventCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull CoreV1Event body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -10144,7 +10596,7 @@ private okhttp3.Call createNamespacedEventCall(String namespace, CoreV1Event bod } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedEventValidateBeforeCall(String namespace, CoreV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedEventValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull CoreV1Event body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedEvent(Async)"); @@ -10160,13 +10612,13 @@ private okhttp3.Call createNamespacedEventValidateBeforeCall(String namespace, C } - private ApiResponse createNamespacedEventWithHttpInfo(String namespace, CoreV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedEventWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull CoreV1Event body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedEventValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedEventAsync(String namespace, CoreV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedEventAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull CoreV1Event body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedEventValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -10175,14 +10627,20 @@ private okhttp3.Call createNamespacedEventAsync(String namespace, CoreV1Event bo } public class APIcreateNamespacedEventRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final CoreV1Event body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedEventRequest(String namespace, CoreV1Event body) { + private APIcreateNamespacedEventRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull CoreV1Event body) { this.namespace = namespace; this.body = body; } @@ -10192,7 +10650,7 @@ private APIcreateNamespacedEventRequest(String namespace, CoreV1Event body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedEventRequest */ - public APIcreateNamespacedEventRequest pretty(String pretty) { + public APIcreateNamespacedEventRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -10202,7 +10660,7 @@ public APIcreateNamespacedEventRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedEventRequest */ - public APIcreateNamespacedEventRequest dryRun(String dryRun) { + public APIcreateNamespacedEventRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -10212,7 +10670,7 @@ public APIcreateNamespacedEventRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedEventRequest */ - public APIcreateNamespacedEventRequest fieldManager(String fieldManager) { + public APIcreateNamespacedEventRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -10222,7 +10680,7 @@ public APIcreateNamespacedEventRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedEventRequest */ - public APIcreateNamespacedEventRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedEventRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -10233,7 +10691,8 @@ public APIcreateNamespacedEventRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -10250,7 +10709,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return CoreV1Event * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10268,7 +10728,8 @@ public CoreV1Event execute() throws ApiException { * @return ApiResponse<CoreV1Event> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10286,7 +10747,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10306,7 +10768,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIcreateNamespacedEventRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10314,10 +10777,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedEventRequest createNamespacedEvent(String namespace, CoreV1Event body) { + public APIcreateNamespacedEventRequest createNamespacedEvent(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull CoreV1Event body) { return new APIcreateNamespacedEventRequest(namespace, body); } - private okhttp3.Call createNamespacedLimitRangeCall(String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedLimitRangeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1LimitRange body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -10383,7 +10846,7 @@ private okhttp3.Call createNamespacedLimitRangeCall(String namespace, V1LimitRan } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedLimitRangeValidateBeforeCall(String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedLimitRangeValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1LimitRange body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedLimitRange(Async)"); @@ -10399,13 +10862,13 @@ private okhttp3.Call createNamespacedLimitRangeValidateBeforeCall(String namespa } - private ApiResponse createNamespacedLimitRangeWithHttpInfo(String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedLimitRangeWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1LimitRange body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedLimitRangeValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedLimitRangeAsync(String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedLimitRangeAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1LimitRange body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedLimitRangeValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -10414,14 +10877,20 @@ private okhttp3.Call createNamespacedLimitRangeAsync(String namespace, V1LimitRa } public class APIcreateNamespacedLimitRangeRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1LimitRange body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedLimitRangeRequest(String namespace, V1LimitRange body) { + private APIcreateNamespacedLimitRangeRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1LimitRange body) { this.namespace = namespace; this.body = body; } @@ -10431,7 +10900,7 @@ private APIcreateNamespacedLimitRangeRequest(String namespace, V1LimitRange body * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedLimitRangeRequest */ - public APIcreateNamespacedLimitRangeRequest pretty(String pretty) { + public APIcreateNamespacedLimitRangeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -10441,7 +10910,7 @@ public APIcreateNamespacedLimitRangeRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedLimitRangeRequest */ - public APIcreateNamespacedLimitRangeRequest dryRun(String dryRun) { + public APIcreateNamespacedLimitRangeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -10451,7 +10920,7 @@ public APIcreateNamespacedLimitRangeRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedLimitRangeRequest */ - public APIcreateNamespacedLimitRangeRequest fieldManager(String fieldManager) { + public APIcreateNamespacedLimitRangeRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -10461,7 +10930,7 @@ public APIcreateNamespacedLimitRangeRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedLimitRangeRequest */ - public APIcreateNamespacedLimitRangeRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedLimitRangeRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -10472,7 +10941,8 @@ public APIcreateNamespacedLimitRangeRequest fieldValidation(String fieldValidati * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -10489,7 +10959,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1LimitRange * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10507,7 +10978,8 @@ public V1LimitRange execute() throws ApiException { * @return ApiResponse<V1LimitRange> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10525,7 +10997,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10545,7 +11018,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIcreateNamespacedLimitRangeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10553,10 +11027,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedLimitRangeRequest createNamespacedLimitRange(String namespace, V1LimitRange body) { + public APIcreateNamespacedLimitRangeRequest createNamespacedLimitRange(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1LimitRange body) { return new APIcreateNamespacedLimitRangeRequest(namespace, body); } - private okhttp3.Call createNamespacedPersistentVolumeClaimCall(String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPersistentVolumeClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PersistentVolumeClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -10622,7 +11096,7 @@ private okhttp3.Call createNamespacedPersistentVolumeClaimCall(String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedPersistentVolumeClaimValidateBeforeCall(String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPersistentVolumeClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PersistentVolumeClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedPersistentVolumeClaim(Async)"); @@ -10638,13 +11112,13 @@ private okhttp3.Call createNamespacedPersistentVolumeClaimValidateBeforeCall(Str } - private ApiResponse createNamespacedPersistentVolumeClaimWithHttpInfo(String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedPersistentVolumeClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PersistentVolumeClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedPersistentVolumeClaimAsync(String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPersistentVolumeClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PersistentVolumeClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -10653,14 +11127,20 @@ private okhttp3.Call createNamespacedPersistentVolumeClaimAsync(String namespace } public class APIcreateNamespacedPersistentVolumeClaimRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1PersistentVolumeClaim body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedPersistentVolumeClaimRequest(String namespace, V1PersistentVolumeClaim body) { + private APIcreateNamespacedPersistentVolumeClaimRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PersistentVolumeClaim body) { this.namespace = namespace; this.body = body; } @@ -10670,7 +11150,7 @@ private APIcreateNamespacedPersistentVolumeClaimRequest(String namespace, V1Pers * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedPersistentVolumeClaimRequest */ - public APIcreateNamespacedPersistentVolumeClaimRequest pretty(String pretty) { + public APIcreateNamespacedPersistentVolumeClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -10680,7 +11160,7 @@ public APIcreateNamespacedPersistentVolumeClaimRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedPersistentVolumeClaimRequest */ - public APIcreateNamespacedPersistentVolumeClaimRequest dryRun(String dryRun) { + public APIcreateNamespacedPersistentVolumeClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -10690,7 +11170,7 @@ public APIcreateNamespacedPersistentVolumeClaimRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedPersistentVolumeClaimRequest */ - public APIcreateNamespacedPersistentVolumeClaimRequest fieldManager(String fieldManager) { + public APIcreateNamespacedPersistentVolumeClaimRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -10700,7 +11180,7 @@ public APIcreateNamespacedPersistentVolumeClaimRequest fieldManager(String field * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedPersistentVolumeClaimRequest */ - public APIcreateNamespacedPersistentVolumeClaimRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedPersistentVolumeClaimRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -10711,7 +11191,8 @@ public APIcreateNamespacedPersistentVolumeClaimRequest fieldValidation(String fi * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -10728,7 +11209,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PersistentVolumeClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10746,7 +11228,8 @@ public V1PersistentVolumeClaim execute() throws ApiException { * @return ApiResponse<V1PersistentVolumeClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10764,7 +11247,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExce * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10784,7 +11268,8 @@ public okhttp3.Call executeAsync(final ApiCallback _cal * @param body (required) * @return APIcreateNamespacedPersistentVolumeClaimRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10792,10 +11277,10 @@ public okhttp3.Call executeAsync(final ApiCallback _cal
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedPersistentVolumeClaimRequest createNamespacedPersistentVolumeClaim(String namespace, V1PersistentVolumeClaim body) { + public APIcreateNamespacedPersistentVolumeClaimRequest createNamespacedPersistentVolumeClaim(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PersistentVolumeClaim body) { return new APIcreateNamespacedPersistentVolumeClaimRequest(namespace, body); } - private okhttp3.Call createNamespacedPodCall(String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPodCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -10861,7 +11346,7 @@ private okhttp3.Call createNamespacedPodCall(String namespace, V1Pod body, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedPodValidateBeforeCall(String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPodValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedPod(Async)"); @@ -10877,13 +11362,13 @@ private okhttp3.Call createNamespacedPodValidateBeforeCall(String namespace, V1P } - private ApiResponse createNamespacedPodWithHttpInfo(String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedPodWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedPodValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedPodAsync(String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPodAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedPodValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -10892,14 +11377,20 @@ private okhttp3.Call createNamespacedPodAsync(String namespace, V1Pod body, Stri } public class APIcreateNamespacedPodRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Pod body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedPodRequest(String namespace, V1Pod body) { + private APIcreateNamespacedPodRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body) { this.namespace = namespace; this.body = body; } @@ -10909,7 +11400,7 @@ private APIcreateNamespacedPodRequest(String namespace, V1Pod body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedPodRequest */ - public APIcreateNamespacedPodRequest pretty(String pretty) { + public APIcreateNamespacedPodRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -10919,7 +11410,7 @@ public APIcreateNamespacedPodRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedPodRequest */ - public APIcreateNamespacedPodRequest dryRun(String dryRun) { + public APIcreateNamespacedPodRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -10929,7 +11420,7 @@ public APIcreateNamespacedPodRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedPodRequest */ - public APIcreateNamespacedPodRequest fieldManager(String fieldManager) { + public APIcreateNamespacedPodRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -10939,7 +11430,7 @@ public APIcreateNamespacedPodRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedPodRequest */ - public APIcreateNamespacedPodRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedPodRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -10950,7 +11441,8 @@ public APIcreateNamespacedPodRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -10967,7 +11459,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10985,7 +11478,8 @@ public V1Pod execute() throws ApiException { * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -11003,7 +11497,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -11023,7 +11518,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE * @param body (required) * @return APIcreateNamespacedPodRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -11031,10 +11527,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedPodRequest createNamespacedPod(String namespace, V1Pod body) { + public APIcreateNamespacedPodRequest createNamespacedPod(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body) { return new APIcreateNamespacedPodRequest(namespace, body); } - private okhttp3.Call createNamespacedPodBindingCall(String name, String namespace, V1Binding body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPodBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Binding body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -11101,7 +11597,7 @@ private okhttp3.Call createNamespacedPodBindingCall(String name, String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedPodBindingValidateBeforeCall(String name, String namespace, V1Binding body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPodBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Binding body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling createNamespacedPodBinding(Async)"); @@ -11122,13 +11618,13 @@ private okhttp3.Call createNamespacedPodBindingValidateBeforeCall(String name, S } - private ApiResponse createNamespacedPodBindingWithHttpInfo(String name, String namespace, V1Binding body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { + private ApiResponse createNamespacedPodBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Binding body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = createNamespacedPodBindingValidateBeforeCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedPodBindingAsync(String name, String namespace, V1Binding body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPodBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Binding body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedPodBindingValidateBeforeCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -11137,15 +11633,22 @@ private okhttp3.Call createNamespacedPodBindingAsync(String name, String namespa } public class APIcreateNamespacedPodBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Binding body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private String pretty; - private APIcreateNamespacedPodBindingRequest(String name, String namespace, V1Binding body) { + private APIcreateNamespacedPodBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Binding body) { this.name = name; this.namespace = namespace; this.body = body; @@ -11156,7 +11659,7 @@ private APIcreateNamespacedPodBindingRequest(String name, String namespace, V1Bi * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedPodBindingRequest */ - public APIcreateNamespacedPodBindingRequest dryRun(String dryRun) { + public APIcreateNamespacedPodBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -11166,7 +11669,7 @@ public APIcreateNamespacedPodBindingRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedPodBindingRequest */ - public APIcreateNamespacedPodBindingRequest fieldManager(String fieldManager) { + public APIcreateNamespacedPodBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -11176,7 +11679,7 @@ public APIcreateNamespacedPodBindingRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedPodBindingRequest */ - public APIcreateNamespacedPodBindingRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedPodBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -11186,7 +11689,7 @@ public APIcreateNamespacedPodBindingRequest fieldValidation(String fieldValidati * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedPodBindingRequest */ - public APIcreateNamespacedPodBindingRequest pretty(String pretty) { + public APIcreateNamespacedPodBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -11197,7 +11700,8 @@ public APIcreateNamespacedPodBindingRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -11214,7 +11718,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Binding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -11232,7 +11737,8 @@ public V1Binding execute() throws ApiException { * @return ApiResponse<V1Binding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -11250,7 +11756,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -11271,7 +11778,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param body (required) * @return APIcreateNamespacedPodBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -11279,10 +11787,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedPodBindingRequest createNamespacedPodBinding(String name, String namespace, V1Binding body) { + public APIcreateNamespacedPodBindingRequest createNamespacedPodBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Binding body) { return new APIcreateNamespacedPodBindingRequest(name, namespace, body); } - private okhttp3.Call createNamespacedPodEvictionCall(String name, String namespace, V1Eviction body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPodEvictionCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Eviction body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -11349,7 +11857,7 @@ private okhttp3.Call createNamespacedPodEvictionCall(String name, String namespa } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedPodEvictionValidateBeforeCall(String name, String namespace, V1Eviction body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPodEvictionValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Eviction body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling createNamespacedPodEviction(Async)"); @@ -11370,13 +11878,13 @@ private okhttp3.Call createNamespacedPodEvictionValidateBeforeCall(String name, } - private ApiResponse createNamespacedPodEvictionWithHttpInfo(String name, String namespace, V1Eviction body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { + private ApiResponse createNamespacedPodEvictionWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Eviction body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = createNamespacedPodEvictionValidateBeforeCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedPodEvictionAsync(String name, String namespace, V1Eviction body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPodEvictionAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Eviction body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedPodEvictionValidateBeforeCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -11385,15 +11893,22 @@ private okhttp3.Call createNamespacedPodEvictionAsync(String name, String namesp } public class APIcreateNamespacedPodEvictionRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Eviction body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private String pretty; - private APIcreateNamespacedPodEvictionRequest(String name, String namespace, V1Eviction body) { + private APIcreateNamespacedPodEvictionRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Eviction body) { this.name = name; this.namespace = namespace; this.body = body; @@ -11404,7 +11919,7 @@ private APIcreateNamespacedPodEvictionRequest(String name, String namespace, V1E * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedPodEvictionRequest */ - public APIcreateNamespacedPodEvictionRequest dryRun(String dryRun) { + public APIcreateNamespacedPodEvictionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -11414,7 +11929,7 @@ public APIcreateNamespacedPodEvictionRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedPodEvictionRequest */ - public APIcreateNamespacedPodEvictionRequest fieldManager(String fieldManager) { + public APIcreateNamespacedPodEvictionRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -11424,7 +11939,7 @@ public APIcreateNamespacedPodEvictionRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedPodEvictionRequest */ - public APIcreateNamespacedPodEvictionRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedPodEvictionRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -11434,7 +11949,7 @@ public APIcreateNamespacedPodEvictionRequest fieldValidation(String fieldValidat * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedPodEvictionRequest */ - public APIcreateNamespacedPodEvictionRequest pretty(String pretty) { + public APIcreateNamespacedPodEvictionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -11445,7 +11960,8 @@ public APIcreateNamespacedPodEvictionRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -11462,7 +11978,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Eviction * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -11480,7 +11997,8 @@ public V1Eviction execute() throws ApiException { * @return ApiResponse<V1Eviction> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -11498,7 +12016,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -11519,7 +12038,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param body (required) * @return APIcreateNamespacedPodEvictionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -11527,10 +12047,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedPodEvictionRequest createNamespacedPodEviction(String name, String namespace, V1Eviction body) { + public APIcreateNamespacedPodEvictionRequest createNamespacedPodEviction(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Eviction body) { return new APIcreateNamespacedPodEvictionRequest(name, namespace, body); } - private okhttp3.Call createNamespacedPodTemplateCall(String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPodTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -11596,7 +12116,7 @@ private okhttp3.Call createNamespacedPodTemplateCall(String namespace, V1PodTemp } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedPodTemplateValidateBeforeCall(String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPodTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedPodTemplate(Async)"); @@ -11612,13 +12132,13 @@ private okhttp3.Call createNamespacedPodTemplateValidateBeforeCall(String namesp } - private ApiResponse createNamespacedPodTemplateWithHttpInfo(String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedPodTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedPodTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedPodTemplateAsync(String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPodTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedPodTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -11627,14 +12147,20 @@ private okhttp3.Call createNamespacedPodTemplateAsync(String namespace, V1PodTem } public class APIcreateNamespacedPodTemplateRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1PodTemplate body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedPodTemplateRequest(String namespace, V1PodTemplate body) { + private APIcreateNamespacedPodTemplateRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodTemplate body) { this.namespace = namespace; this.body = body; } @@ -11644,7 +12170,7 @@ private APIcreateNamespacedPodTemplateRequest(String namespace, V1PodTemplate bo * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedPodTemplateRequest */ - public APIcreateNamespacedPodTemplateRequest pretty(String pretty) { + public APIcreateNamespacedPodTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -11654,7 +12180,7 @@ public APIcreateNamespacedPodTemplateRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedPodTemplateRequest */ - public APIcreateNamespacedPodTemplateRequest dryRun(String dryRun) { + public APIcreateNamespacedPodTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -11664,7 +12190,7 @@ public APIcreateNamespacedPodTemplateRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedPodTemplateRequest */ - public APIcreateNamespacedPodTemplateRequest fieldManager(String fieldManager) { + public APIcreateNamespacedPodTemplateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -11674,7 +12200,7 @@ public APIcreateNamespacedPodTemplateRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedPodTemplateRequest */ - public APIcreateNamespacedPodTemplateRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedPodTemplateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -11685,7 +12211,8 @@ public APIcreateNamespacedPodTemplateRequest fieldValidation(String fieldValidat * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -11702,7 +12229,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PodTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -11720,7 +12248,8 @@ public V1PodTemplate execute() throws ApiException { * @return ApiResponse<V1PodTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -11738,7 +12267,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -11758,7 +12288,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param body (required) * @return APIcreateNamespacedPodTemplateRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -11766,10 +12297,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedPodTemplateRequest createNamespacedPodTemplate(String namespace, V1PodTemplate body) { + public APIcreateNamespacedPodTemplateRequest createNamespacedPodTemplate(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodTemplate body) { return new APIcreateNamespacedPodTemplateRequest(namespace, body); } - private okhttp3.Call createNamespacedReplicationControllerCall(String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedReplicationControllerCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicationController body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -11835,7 +12366,7 @@ private okhttp3.Call createNamespacedReplicationControllerCall(String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedReplicationControllerValidateBeforeCall(String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedReplicationControllerValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicationController body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedReplicationController(Async)"); @@ -11851,13 +12382,13 @@ private okhttp3.Call createNamespacedReplicationControllerValidateBeforeCall(Str } - private ApiResponse createNamespacedReplicationControllerWithHttpInfo(String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedReplicationControllerWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicationController body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedReplicationControllerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedReplicationControllerAsync(String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedReplicationControllerAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicationController body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedReplicationControllerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -11866,14 +12397,20 @@ private okhttp3.Call createNamespacedReplicationControllerAsync(String namespace } public class APIcreateNamespacedReplicationControllerRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1ReplicationController body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedReplicationControllerRequest(String namespace, V1ReplicationController body) { + private APIcreateNamespacedReplicationControllerRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicationController body) { this.namespace = namespace; this.body = body; } @@ -11883,7 +12420,7 @@ private APIcreateNamespacedReplicationControllerRequest(String namespace, V1Repl * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedReplicationControllerRequest */ - public APIcreateNamespacedReplicationControllerRequest pretty(String pretty) { + public APIcreateNamespacedReplicationControllerRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -11893,7 +12430,7 @@ public APIcreateNamespacedReplicationControllerRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedReplicationControllerRequest */ - public APIcreateNamespacedReplicationControllerRequest dryRun(String dryRun) { + public APIcreateNamespacedReplicationControllerRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -11903,7 +12440,7 @@ public APIcreateNamespacedReplicationControllerRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedReplicationControllerRequest */ - public APIcreateNamespacedReplicationControllerRequest fieldManager(String fieldManager) { + public APIcreateNamespacedReplicationControllerRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -11913,7 +12450,7 @@ public APIcreateNamespacedReplicationControllerRequest fieldManager(String field * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedReplicationControllerRequest */ - public APIcreateNamespacedReplicationControllerRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedReplicationControllerRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -11924,7 +12461,8 @@ public APIcreateNamespacedReplicationControllerRequest fieldValidation(String fi * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -11941,7 +12479,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ReplicationController * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -11959,7 +12498,8 @@ public V1ReplicationController execute() throws ApiException { * @return ApiResponse<V1ReplicationController> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -11977,7 +12517,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExce * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -11997,7 +12538,8 @@ public okhttp3.Call executeAsync(final ApiCallback _cal * @param body (required) * @return APIcreateNamespacedReplicationControllerRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -12005,10 +12547,10 @@ public okhttp3.Call executeAsync(final ApiCallback _cal
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedReplicationControllerRequest createNamespacedReplicationController(String namespace, V1ReplicationController body) { + public APIcreateNamespacedReplicationControllerRequest createNamespacedReplicationController(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicationController body) { return new APIcreateNamespacedReplicationControllerRequest(namespace, body); } - private okhttp3.Call createNamespacedResourceQuotaCall(String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedResourceQuotaCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceQuota body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -12074,7 +12616,7 @@ private okhttp3.Call createNamespacedResourceQuotaCall(String namespace, V1Resou } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedResourceQuotaValidateBeforeCall(String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedResourceQuotaValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceQuota body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceQuota(Async)"); @@ -12090,13 +12632,13 @@ private okhttp3.Call createNamespacedResourceQuotaValidateBeforeCall(String name } - private ApiResponse createNamespacedResourceQuotaWithHttpInfo(String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedResourceQuotaWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceQuota body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedResourceQuotaValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedResourceQuotaAsync(String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedResourceQuotaAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceQuota body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedResourceQuotaValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -12105,14 +12647,20 @@ private okhttp3.Call createNamespacedResourceQuotaAsync(String namespace, V1Reso } public class APIcreateNamespacedResourceQuotaRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1ResourceQuota body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedResourceQuotaRequest(String namespace, V1ResourceQuota body) { + private APIcreateNamespacedResourceQuotaRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceQuota body) { this.namespace = namespace; this.body = body; } @@ -12122,7 +12670,7 @@ private APIcreateNamespacedResourceQuotaRequest(String namespace, V1ResourceQuot * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedResourceQuotaRequest */ - public APIcreateNamespacedResourceQuotaRequest pretty(String pretty) { + public APIcreateNamespacedResourceQuotaRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -12132,7 +12680,7 @@ public APIcreateNamespacedResourceQuotaRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedResourceQuotaRequest */ - public APIcreateNamespacedResourceQuotaRequest dryRun(String dryRun) { + public APIcreateNamespacedResourceQuotaRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -12142,7 +12690,7 @@ public APIcreateNamespacedResourceQuotaRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedResourceQuotaRequest */ - public APIcreateNamespacedResourceQuotaRequest fieldManager(String fieldManager) { + public APIcreateNamespacedResourceQuotaRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -12152,7 +12700,7 @@ public APIcreateNamespacedResourceQuotaRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedResourceQuotaRequest */ - public APIcreateNamespacedResourceQuotaRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedResourceQuotaRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -12163,7 +12711,8 @@ public APIcreateNamespacedResourceQuotaRequest fieldValidation(String fieldValid * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -12180,7 +12729,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ResourceQuota * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -12198,7 +12748,8 @@ public V1ResourceQuota execute() throws ApiException { * @return ApiResponse<V1ResourceQuota> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -12216,7 +12767,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -12236,7 +12788,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * @param body (required) * @return APIcreateNamespacedResourceQuotaRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -12244,10 +12797,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedResourceQuotaRequest createNamespacedResourceQuota(String namespace, V1ResourceQuota body) { + public APIcreateNamespacedResourceQuotaRequest createNamespacedResourceQuota(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceQuota body) { return new APIcreateNamespacedResourceQuotaRequest(namespace, body); } - private okhttp3.Call createNamespacedSecretCall(String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedSecretCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Secret body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -12313,7 +12866,7 @@ private okhttp3.Call createNamespacedSecretCall(String namespace, V1Secret body, } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedSecretValidateBeforeCall(String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedSecretValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Secret body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedSecret(Async)"); @@ -12329,13 +12882,13 @@ private okhttp3.Call createNamespacedSecretValidateBeforeCall(String namespace, } - private ApiResponse createNamespacedSecretWithHttpInfo(String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedSecretWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Secret body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedSecretValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedSecretAsync(String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedSecretAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Secret body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedSecretValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -12344,14 +12897,20 @@ private okhttp3.Call createNamespacedSecretAsync(String namespace, V1Secret body } public class APIcreateNamespacedSecretRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Secret body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedSecretRequest(String namespace, V1Secret body) { + private APIcreateNamespacedSecretRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Secret body) { this.namespace = namespace; this.body = body; } @@ -12361,7 +12920,7 @@ private APIcreateNamespacedSecretRequest(String namespace, V1Secret body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedSecretRequest */ - public APIcreateNamespacedSecretRequest pretty(String pretty) { + public APIcreateNamespacedSecretRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -12371,7 +12930,7 @@ public APIcreateNamespacedSecretRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedSecretRequest */ - public APIcreateNamespacedSecretRequest dryRun(String dryRun) { + public APIcreateNamespacedSecretRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -12381,7 +12940,7 @@ public APIcreateNamespacedSecretRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedSecretRequest */ - public APIcreateNamespacedSecretRequest fieldManager(String fieldManager) { + public APIcreateNamespacedSecretRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -12391,7 +12950,7 @@ public APIcreateNamespacedSecretRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedSecretRequest */ - public APIcreateNamespacedSecretRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedSecretRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -12402,7 +12961,8 @@ public APIcreateNamespacedSecretRequest fieldValidation(String fieldValidation) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -12419,7 +12979,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Secret * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -12437,7 +12998,8 @@ public V1Secret execute() throws ApiException { * @return ApiResponse<V1Secret> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -12455,7 +13017,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -12475,7 +13038,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param body (required) * @return APIcreateNamespacedSecretRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -12483,10 +13047,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedSecretRequest createNamespacedSecret(String namespace, V1Secret body) { + public APIcreateNamespacedSecretRequest createNamespacedSecret(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Secret body) { return new APIcreateNamespacedSecretRequest(namespace, body); } - private okhttp3.Call createNamespacedServiceCall(String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedServiceCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Service body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -12552,7 +13116,7 @@ private okhttp3.Call createNamespacedServiceCall(String namespace, V1Service bod } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedServiceValidateBeforeCall(String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedServiceValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Service body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedService(Async)"); @@ -12568,13 +13132,13 @@ private okhttp3.Call createNamespacedServiceValidateBeforeCall(String namespace, } - private ApiResponse createNamespacedServiceWithHttpInfo(String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedServiceWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Service body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedServiceValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedServiceAsync(String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedServiceAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Service body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedServiceValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -12583,14 +13147,20 @@ private okhttp3.Call createNamespacedServiceAsync(String namespace, V1Service bo } public class APIcreateNamespacedServiceRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Service body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedServiceRequest(String namespace, V1Service body) { + private APIcreateNamespacedServiceRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Service body) { this.namespace = namespace; this.body = body; } @@ -12600,7 +13170,7 @@ private APIcreateNamespacedServiceRequest(String namespace, V1Service body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedServiceRequest */ - public APIcreateNamespacedServiceRequest pretty(String pretty) { + public APIcreateNamespacedServiceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -12610,7 +13180,7 @@ public APIcreateNamespacedServiceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedServiceRequest */ - public APIcreateNamespacedServiceRequest dryRun(String dryRun) { + public APIcreateNamespacedServiceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -12620,7 +13190,7 @@ public APIcreateNamespacedServiceRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedServiceRequest */ - public APIcreateNamespacedServiceRequest fieldManager(String fieldManager) { + public APIcreateNamespacedServiceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -12630,7 +13200,7 @@ public APIcreateNamespacedServiceRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedServiceRequest */ - public APIcreateNamespacedServiceRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedServiceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -12641,7 +13211,8 @@ public APIcreateNamespacedServiceRequest fieldValidation(String fieldValidation) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -12658,7 +13229,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Service * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -12676,7 +13248,8 @@ public V1Service execute() throws ApiException { * @return ApiResponse<V1Service> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -12694,7 +13267,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -12714,7 +13288,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param body (required) * @return APIcreateNamespacedServiceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -12722,10 +13297,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedServiceRequest createNamespacedService(String namespace, V1Service body) { + public APIcreateNamespacedServiceRequest createNamespacedService(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Service body) { return new APIcreateNamespacedServiceRequest(namespace, body); } - private okhttp3.Call createNamespacedServiceAccountCall(String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedServiceAccountCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ServiceAccount body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -12791,7 +13366,7 @@ private okhttp3.Call createNamespacedServiceAccountCall(String namespace, V1Serv } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedServiceAccountValidateBeforeCall(String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedServiceAccountValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ServiceAccount body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedServiceAccount(Async)"); @@ -12807,13 +13382,13 @@ private okhttp3.Call createNamespacedServiceAccountValidateBeforeCall(String nam } - private ApiResponse createNamespacedServiceAccountWithHttpInfo(String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedServiceAccountWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ServiceAccount body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedServiceAccountValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedServiceAccountAsync(String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedServiceAccountAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ServiceAccount body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedServiceAccountValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -12822,14 +13397,20 @@ private okhttp3.Call createNamespacedServiceAccountAsync(String namespace, V1Ser } public class APIcreateNamespacedServiceAccountRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1ServiceAccount body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedServiceAccountRequest(String namespace, V1ServiceAccount body) { + private APIcreateNamespacedServiceAccountRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ServiceAccount body) { this.namespace = namespace; this.body = body; } @@ -12839,7 +13420,7 @@ private APIcreateNamespacedServiceAccountRequest(String namespace, V1ServiceAcco * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedServiceAccountRequest */ - public APIcreateNamespacedServiceAccountRequest pretty(String pretty) { + public APIcreateNamespacedServiceAccountRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -12849,7 +13430,7 @@ public APIcreateNamespacedServiceAccountRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedServiceAccountRequest */ - public APIcreateNamespacedServiceAccountRequest dryRun(String dryRun) { + public APIcreateNamespacedServiceAccountRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -12859,7 +13440,7 @@ public APIcreateNamespacedServiceAccountRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedServiceAccountRequest */ - public APIcreateNamespacedServiceAccountRequest fieldManager(String fieldManager) { + public APIcreateNamespacedServiceAccountRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -12869,7 +13450,7 @@ public APIcreateNamespacedServiceAccountRequest fieldManager(String fieldManager * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedServiceAccountRequest */ - public APIcreateNamespacedServiceAccountRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedServiceAccountRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -12880,7 +13461,8 @@ public APIcreateNamespacedServiceAccountRequest fieldValidation(String fieldVali * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -12897,7 +13479,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ServiceAccount * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -12915,7 +13498,8 @@ public V1ServiceAccount execute() throws ApiException { * @return ApiResponse<V1ServiceAccount> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -12933,7 +13517,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -12953,7 +13538,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * @param body (required) * @return APIcreateNamespacedServiceAccountRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -12961,10 +13547,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback)
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedServiceAccountRequest createNamespacedServiceAccount(String namespace, V1ServiceAccount body) { + public APIcreateNamespacedServiceAccountRequest createNamespacedServiceAccount(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ServiceAccount body) { return new APIcreateNamespacedServiceAccountRequest(namespace, body); } - private okhttp3.Call createNamespacedServiceAccountTokenCall(String name, String namespace, AuthenticationV1TokenRequest body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedServiceAccountTokenCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull AuthenticationV1TokenRequest body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -13031,7 +13617,7 @@ private okhttp3.Call createNamespacedServiceAccountTokenCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedServiceAccountTokenValidateBeforeCall(String name, String namespace, AuthenticationV1TokenRequest body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedServiceAccountTokenValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull AuthenticationV1TokenRequest body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling createNamespacedServiceAccountToken(Async)"); @@ -13052,13 +13638,13 @@ private okhttp3.Call createNamespacedServiceAccountTokenValidateBeforeCall(Strin } - private ApiResponse createNamespacedServiceAccountTokenWithHttpInfo(String name, String namespace, AuthenticationV1TokenRequest body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { + private ApiResponse createNamespacedServiceAccountTokenWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull AuthenticationV1TokenRequest body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = createNamespacedServiceAccountTokenValidateBeforeCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedServiceAccountTokenAsync(String name, String namespace, AuthenticationV1TokenRequest body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedServiceAccountTokenAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull AuthenticationV1TokenRequest body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedServiceAccountTokenValidateBeforeCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -13067,15 +13653,22 @@ private okhttp3.Call createNamespacedServiceAccountTokenAsync(String name, Strin } public class APIcreateNamespacedServiceAccountTokenRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final AuthenticationV1TokenRequest body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private String pretty; - private APIcreateNamespacedServiceAccountTokenRequest(String name, String namespace, AuthenticationV1TokenRequest body) { + private APIcreateNamespacedServiceAccountTokenRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull AuthenticationV1TokenRequest body) { this.name = name; this.namespace = namespace; this.body = body; @@ -13086,7 +13679,7 @@ private APIcreateNamespacedServiceAccountTokenRequest(String name, String namesp * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedServiceAccountTokenRequest */ - public APIcreateNamespacedServiceAccountTokenRequest dryRun(String dryRun) { + public APIcreateNamespacedServiceAccountTokenRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -13096,7 +13689,7 @@ public APIcreateNamespacedServiceAccountTokenRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedServiceAccountTokenRequest */ - public APIcreateNamespacedServiceAccountTokenRequest fieldManager(String fieldManager) { + public APIcreateNamespacedServiceAccountTokenRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -13106,7 +13699,7 @@ public APIcreateNamespacedServiceAccountTokenRequest fieldManager(String fieldMa * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedServiceAccountTokenRequest */ - public APIcreateNamespacedServiceAccountTokenRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedServiceAccountTokenRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -13116,7 +13709,7 @@ public APIcreateNamespacedServiceAccountTokenRequest fieldValidation(String fiel * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedServiceAccountTokenRequest */ - public APIcreateNamespacedServiceAccountTokenRequest pretty(String pretty) { + public APIcreateNamespacedServiceAccountTokenRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -13127,7 +13720,8 @@ public APIcreateNamespacedServiceAccountTokenRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -13144,7 +13738,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return AuthenticationV1TokenRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -13162,7 +13757,8 @@ public AuthenticationV1TokenRequest execute() throws ApiException { * @return ApiResponse<AuthenticationV1TokenRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -13180,7 +13776,8 @@ public ApiResponse executeWithHttpInfo() throws Ap * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -13201,7 +13798,8 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIcreateNamespacedServiceAccountTokenRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -13209,10 +13807,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedServiceAccountTokenRequest createNamespacedServiceAccountToken(String name, String namespace, AuthenticationV1TokenRequest body) { + public APIcreateNamespacedServiceAccountTokenRequest createNamespacedServiceAccountToken(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull AuthenticationV1TokenRequest body) { return new APIcreateNamespacedServiceAccountTokenRequest(name, namespace, body); } - private okhttp3.Call createNodeCall(V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNodeCall(@jakarta.annotation.Nonnull V1Node body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -13277,7 +13875,7 @@ private okhttp3.Call createNodeCall(V1Node body, String pretty, String dryRun, S } @SuppressWarnings("rawtypes") - private okhttp3.Call createNodeValidateBeforeCall(V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNodeValidateBeforeCall(@jakarta.annotation.Nonnull V1Node body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNode(Async)"); @@ -13288,13 +13886,13 @@ private okhttp3.Call createNodeValidateBeforeCall(V1Node body, String pretty, St } - private ApiResponse createNodeWithHttpInfo(V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNodeWithHttpInfo(@jakarta.annotation.Nonnull V1Node body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNodeValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNodeAsync(V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNodeAsync(@jakarta.annotation.Nonnull V1Node body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNodeValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -13303,13 +13901,18 @@ private okhttp3.Call createNodeAsync(V1Node body, String pretty, String dryRun, } public class APIcreateNodeRequest { + @jakarta.annotation.Nonnull private final V1Node body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNodeRequest(V1Node body) { + private APIcreateNodeRequest(@jakarta.annotation.Nonnull V1Node body) { this.body = body; } @@ -13318,7 +13921,7 @@ private APIcreateNodeRequest(V1Node body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNodeRequest */ - public APIcreateNodeRequest pretty(String pretty) { + public APIcreateNodeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -13328,7 +13931,7 @@ public APIcreateNodeRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNodeRequest */ - public APIcreateNodeRequest dryRun(String dryRun) { + public APIcreateNodeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -13338,7 +13941,7 @@ public APIcreateNodeRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNodeRequest */ - public APIcreateNodeRequest fieldManager(String fieldManager) { + public APIcreateNodeRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -13348,7 +13951,7 @@ public APIcreateNodeRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNodeRequest */ - public APIcreateNodeRequest fieldValidation(String fieldValidation) { + public APIcreateNodeRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -13359,7 +13962,8 @@ public APIcreateNodeRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -13376,7 +13980,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Node * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -13394,7 +13999,8 @@ public V1Node execute() throws ApiException { * @return ApiResponse<V1Node> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -13412,7 +14018,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -13431,7 +14038,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param body (required) * @return APIcreateNodeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -13439,10 +14047,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNodeRequest createNode(V1Node body) { + public APIcreateNodeRequest createNode(@jakarta.annotation.Nonnull V1Node body) { return new APIcreateNodeRequest(body); } - private okhttp3.Call createPersistentVolumeCall(V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createPersistentVolumeCall(@jakarta.annotation.Nonnull V1PersistentVolume body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -13507,7 +14115,7 @@ private okhttp3.Call createPersistentVolumeCall(V1PersistentVolume body, String } @SuppressWarnings("rawtypes") - private okhttp3.Call createPersistentVolumeValidateBeforeCall(V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createPersistentVolumeValidateBeforeCall(@jakarta.annotation.Nonnull V1PersistentVolume body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createPersistentVolume(Async)"); @@ -13518,13 +14126,13 @@ private okhttp3.Call createPersistentVolumeValidateBeforeCall(V1PersistentVolume } - private ApiResponse createPersistentVolumeWithHttpInfo(V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createPersistentVolumeWithHttpInfo(@jakarta.annotation.Nonnull V1PersistentVolume body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createPersistentVolumeValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createPersistentVolumeAsync(V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createPersistentVolumeAsync(@jakarta.annotation.Nonnull V1PersistentVolume body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createPersistentVolumeValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -13533,13 +14141,18 @@ private okhttp3.Call createPersistentVolumeAsync(V1PersistentVolume body, String } public class APIcreatePersistentVolumeRequest { + @jakarta.annotation.Nonnull private final V1PersistentVolume body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreatePersistentVolumeRequest(V1PersistentVolume body) { + private APIcreatePersistentVolumeRequest(@jakarta.annotation.Nonnull V1PersistentVolume body) { this.body = body; } @@ -13548,7 +14161,7 @@ private APIcreatePersistentVolumeRequest(V1PersistentVolume body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreatePersistentVolumeRequest */ - public APIcreatePersistentVolumeRequest pretty(String pretty) { + public APIcreatePersistentVolumeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -13558,7 +14171,7 @@ public APIcreatePersistentVolumeRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreatePersistentVolumeRequest */ - public APIcreatePersistentVolumeRequest dryRun(String dryRun) { + public APIcreatePersistentVolumeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -13568,7 +14181,7 @@ public APIcreatePersistentVolumeRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreatePersistentVolumeRequest */ - public APIcreatePersistentVolumeRequest fieldManager(String fieldManager) { + public APIcreatePersistentVolumeRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -13578,7 +14191,7 @@ public APIcreatePersistentVolumeRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreatePersistentVolumeRequest */ - public APIcreatePersistentVolumeRequest fieldValidation(String fieldValidation) { + public APIcreatePersistentVolumeRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -13589,7 +14202,8 @@ public APIcreatePersistentVolumeRequest fieldValidation(String fieldValidation) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -13606,7 +14220,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PersistentVolume * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -13624,7 +14239,8 @@ public V1PersistentVolume execute() throws ApiException { * @return ApiResponse<V1PersistentVolume> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -13642,7 +14258,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -13661,7 +14278,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param body (required) * @return APIcreatePersistentVolumeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -13669,10 +14287,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreatePersistentVolumeRequest createPersistentVolume(V1PersistentVolume body) { + public APIcreatePersistentVolumeRequest createPersistentVolume(@jakarta.annotation.Nonnull V1PersistentVolume body) { return new APIcreatePersistentVolumeRequest(body); } - private okhttp3.Call deleteCollectionNamespacedConfigMapCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedConfigMapCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -13778,7 +14396,7 @@ private okhttp3.Call deleteCollectionNamespacedConfigMapCall(String namespace, S } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedConfigMapValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedConfigMapValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedConfigMap(Async)"); @@ -13789,13 +14407,13 @@ private okhttp3.Call deleteCollectionNamespacedConfigMapValidateBeforeCall(Strin } - private ApiResponse deleteCollectionNamespacedConfigMapWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedConfigMapWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedConfigMapValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedConfigMapAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedConfigMapAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedConfigMapValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -13804,24 +14422,40 @@ private okhttp3.Call deleteCollectionNamespacedConfigMapAsync(String namespace, } public class APIdeleteCollectionNamespacedConfigMapRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedConfigMapRequest(String namespace) { + private APIdeleteCollectionNamespacedConfigMapRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -13830,7 +14464,7 @@ private APIdeleteCollectionNamespacedConfigMapRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ - public APIdeleteCollectionNamespacedConfigMapRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedConfigMapRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -13840,7 +14474,7 @@ public APIdeleteCollectionNamespacedConfigMapRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ - public APIdeleteCollectionNamespacedConfigMapRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedConfigMapRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -13850,7 +14484,7 @@ public APIdeleteCollectionNamespacedConfigMapRequest _continue(String _continue) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ - public APIdeleteCollectionNamespacedConfigMapRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedConfigMapRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -13860,7 +14494,7 @@ public APIdeleteCollectionNamespacedConfigMapRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ - public APIdeleteCollectionNamespacedConfigMapRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedConfigMapRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -13870,7 +14504,7 @@ public APIdeleteCollectionNamespacedConfigMapRequest fieldSelector(String fieldS * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ - public APIdeleteCollectionNamespacedConfigMapRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedConfigMapRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -13880,7 +14514,7 @@ public APIdeleteCollectionNamespacedConfigMapRequest gracePeriodSeconds(Integer * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ - public APIdeleteCollectionNamespacedConfigMapRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedConfigMapRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -13890,7 +14524,7 @@ public APIdeleteCollectionNamespacedConfigMapRequest ignoreStoreReadErrorWithClu * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ - public APIdeleteCollectionNamespacedConfigMapRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedConfigMapRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -13900,7 +14534,7 @@ public APIdeleteCollectionNamespacedConfigMapRequest labelSelector(String labelS * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ - public APIdeleteCollectionNamespacedConfigMapRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedConfigMapRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -13910,7 +14544,7 @@ public APIdeleteCollectionNamespacedConfigMapRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ - public APIdeleteCollectionNamespacedConfigMapRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedConfigMapRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -13920,7 +14554,7 @@ public APIdeleteCollectionNamespacedConfigMapRequest orphanDependents(Boolean or * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ - public APIdeleteCollectionNamespacedConfigMapRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedConfigMapRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -13930,7 +14564,7 @@ public APIdeleteCollectionNamespacedConfigMapRequest propagationPolicy(String pr * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ - public APIdeleteCollectionNamespacedConfigMapRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedConfigMapRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -13940,7 +14574,7 @@ public APIdeleteCollectionNamespacedConfigMapRequest resourceVersion(String reso * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ - public APIdeleteCollectionNamespacedConfigMapRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedConfigMapRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -13950,7 +14584,7 @@ public APIdeleteCollectionNamespacedConfigMapRequest resourceVersionMatch(String * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ - public APIdeleteCollectionNamespacedConfigMapRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedConfigMapRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -13960,7 +14594,7 @@ public APIdeleteCollectionNamespacedConfigMapRequest sendInitialEvents(Boolean s * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ - public APIdeleteCollectionNamespacedConfigMapRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedConfigMapRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -13970,7 +14604,7 @@ public APIdeleteCollectionNamespacedConfigMapRequest timeoutSeconds(Integer time * @param body (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ - public APIdeleteCollectionNamespacedConfigMapRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedConfigMapRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -13981,7 +14615,8 @@ public APIdeleteCollectionNamespacedConfigMapRequest body(V1DeleteOptions body) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -13996,7 +14631,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -14012,7 +14648,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -14028,7 +14665,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -14045,16 +14683,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedConfigMapRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedConfigMapRequest deleteCollectionNamespacedConfigMap(String namespace) { + public APIdeleteCollectionNamespacedConfigMapRequest deleteCollectionNamespacedConfigMap(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedConfigMapRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedEndpointsCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEndpointsCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -14160,7 +14799,7 @@ private okhttp3.Call deleteCollectionNamespacedEndpointsCall(String namespace, S } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedEndpointsValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEndpointsValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedEndpoints(Async)"); @@ -14171,13 +14810,13 @@ private okhttp3.Call deleteCollectionNamespacedEndpointsValidateBeforeCall(Strin } - private ApiResponse deleteCollectionNamespacedEndpointsWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedEndpointsWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointsValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedEndpointsAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEndpointsAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointsValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -14186,24 +14825,40 @@ private okhttp3.Call deleteCollectionNamespacedEndpointsAsync(String namespace, } public class APIdeleteCollectionNamespacedEndpointsRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedEndpointsRequest(String namespace) { + private APIdeleteCollectionNamespacedEndpointsRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -14212,7 +14867,7 @@ private APIdeleteCollectionNamespacedEndpointsRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ - public APIdeleteCollectionNamespacedEndpointsRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedEndpointsRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -14222,7 +14877,7 @@ public APIdeleteCollectionNamespacedEndpointsRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ - public APIdeleteCollectionNamespacedEndpointsRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedEndpointsRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -14232,7 +14887,7 @@ public APIdeleteCollectionNamespacedEndpointsRequest _continue(String _continue) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ - public APIdeleteCollectionNamespacedEndpointsRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedEndpointsRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -14242,7 +14897,7 @@ public APIdeleteCollectionNamespacedEndpointsRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ - public APIdeleteCollectionNamespacedEndpointsRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedEndpointsRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -14252,7 +14907,7 @@ public APIdeleteCollectionNamespacedEndpointsRequest fieldSelector(String fieldS * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ - public APIdeleteCollectionNamespacedEndpointsRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedEndpointsRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -14262,7 +14917,7 @@ public APIdeleteCollectionNamespacedEndpointsRequest gracePeriodSeconds(Integer * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ - public APIdeleteCollectionNamespacedEndpointsRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedEndpointsRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -14272,7 +14927,7 @@ public APIdeleteCollectionNamespacedEndpointsRequest ignoreStoreReadErrorWithClu * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ - public APIdeleteCollectionNamespacedEndpointsRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedEndpointsRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -14282,7 +14937,7 @@ public APIdeleteCollectionNamespacedEndpointsRequest labelSelector(String labelS * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ - public APIdeleteCollectionNamespacedEndpointsRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedEndpointsRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -14292,7 +14947,7 @@ public APIdeleteCollectionNamespacedEndpointsRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ - public APIdeleteCollectionNamespacedEndpointsRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedEndpointsRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -14302,7 +14957,7 @@ public APIdeleteCollectionNamespacedEndpointsRequest orphanDependents(Boolean or * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ - public APIdeleteCollectionNamespacedEndpointsRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedEndpointsRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -14312,7 +14967,7 @@ public APIdeleteCollectionNamespacedEndpointsRequest propagationPolicy(String pr * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ - public APIdeleteCollectionNamespacedEndpointsRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedEndpointsRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -14322,7 +14977,7 @@ public APIdeleteCollectionNamespacedEndpointsRequest resourceVersion(String reso * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ - public APIdeleteCollectionNamespacedEndpointsRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedEndpointsRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -14332,7 +14987,7 @@ public APIdeleteCollectionNamespacedEndpointsRequest resourceVersionMatch(String * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ - public APIdeleteCollectionNamespacedEndpointsRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedEndpointsRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -14342,7 +14997,7 @@ public APIdeleteCollectionNamespacedEndpointsRequest sendInitialEvents(Boolean s * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ - public APIdeleteCollectionNamespacedEndpointsRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedEndpointsRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -14352,7 +15007,7 @@ public APIdeleteCollectionNamespacedEndpointsRequest timeoutSeconds(Integer time * @param body (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ - public APIdeleteCollectionNamespacedEndpointsRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedEndpointsRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -14363,7 +15018,8 @@ public APIdeleteCollectionNamespacedEndpointsRequest body(V1DeleteOptions body) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -14378,7 +15034,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -14394,7 +15051,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -14410,7 +15068,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -14427,16 +15086,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedEndpointsRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedEndpointsRequest deleteCollectionNamespacedEndpoints(String namespace) { + public APIdeleteCollectionNamespacedEndpointsRequest deleteCollectionNamespacedEndpoints(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedEndpointsRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEventCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -14542,7 +15202,7 @@ private okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedEvent(Async)"); @@ -14553,13 +15213,13 @@ private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(String na } - private ApiResponse deleteCollectionNamespacedEventWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedEventWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedEventAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEventAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -14568,24 +15228,40 @@ private okhttp3.Call deleteCollectionNamespacedEventAsync(String namespace, Stri } public class APIdeleteCollectionNamespacedEventRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedEventRequest(String namespace) { + private APIdeleteCollectionNamespacedEventRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -14594,7 +15270,7 @@ private APIdeleteCollectionNamespacedEventRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedEventRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -14604,7 +15280,7 @@ public APIdeleteCollectionNamespacedEventRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedEventRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -14614,7 +15290,7 @@ public APIdeleteCollectionNamespacedEventRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedEventRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -14624,7 +15300,7 @@ public APIdeleteCollectionNamespacedEventRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedEventRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -14634,7 +15310,7 @@ public APIdeleteCollectionNamespacedEventRequest fieldSelector(String fieldSelec * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedEventRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -14644,7 +15320,7 @@ public APIdeleteCollectionNamespacedEventRequest gracePeriodSeconds(Integer grac * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedEventRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -14654,7 +15330,7 @@ public APIdeleteCollectionNamespacedEventRequest ignoreStoreReadErrorWithCluster * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedEventRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -14664,7 +15340,7 @@ public APIdeleteCollectionNamespacedEventRequest labelSelector(String labelSelec * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedEventRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -14674,7 +15350,7 @@ public APIdeleteCollectionNamespacedEventRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedEventRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -14684,7 +15360,7 @@ public APIdeleteCollectionNamespacedEventRequest orphanDependents(Boolean orphan * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedEventRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -14694,7 +15370,7 @@ public APIdeleteCollectionNamespacedEventRequest propagationPolicy(String propag * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedEventRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -14704,7 +15380,7 @@ public APIdeleteCollectionNamespacedEventRequest resourceVersion(String resource * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedEventRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -14714,7 +15390,7 @@ public APIdeleteCollectionNamespacedEventRequest resourceVersionMatch(String res * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedEventRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -14724,7 +15400,7 @@ public APIdeleteCollectionNamespacedEventRequest sendInitialEvents(Boolean sendI * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedEventRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -14734,7 +15410,7 @@ public APIdeleteCollectionNamespacedEventRequest timeoutSeconds(Integer timeoutS * @param body (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedEventRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -14745,7 +15421,8 @@ public APIdeleteCollectionNamespacedEventRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -14760,7 +15437,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -14776,7 +15454,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -14792,7 +15471,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -14809,16 +15489,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedEventRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedEventRequest deleteCollectionNamespacedEvent(String namespace) { + public APIdeleteCollectionNamespacedEventRequest deleteCollectionNamespacedEvent(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedEventRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedLimitRangeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLimitRangeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -14924,7 +15605,7 @@ private okhttp3.Call deleteCollectionNamespacedLimitRangeCall(String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedLimitRangeValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLimitRangeValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedLimitRange(Async)"); @@ -14935,13 +15616,13 @@ private okhttp3.Call deleteCollectionNamespacedLimitRangeValidateBeforeCall(Stri } - private ApiResponse deleteCollectionNamespacedLimitRangeWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedLimitRangeWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedLimitRangeValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedLimitRangeAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLimitRangeAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedLimitRangeValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -14950,24 +15631,40 @@ private okhttp3.Call deleteCollectionNamespacedLimitRangeAsync(String namespace, } public class APIdeleteCollectionNamespacedLimitRangeRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedLimitRangeRequest(String namespace) { + private APIdeleteCollectionNamespacedLimitRangeRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -14976,7 +15673,7 @@ private APIdeleteCollectionNamespacedLimitRangeRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ - public APIdeleteCollectionNamespacedLimitRangeRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedLimitRangeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -14986,7 +15683,7 @@ public APIdeleteCollectionNamespacedLimitRangeRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ - public APIdeleteCollectionNamespacedLimitRangeRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedLimitRangeRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -14996,7 +15693,7 @@ public APIdeleteCollectionNamespacedLimitRangeRequest _continue(String _continue * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ - public APIdeleteCollectionNamespacedLimitRangeRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedLimitRangeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -15006,7 +15703,7 @@ public APIdeleteCollectionNamespacedLimitRangeRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ - public APIdeleteCollectionNamespacedLimitRangeRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedLimitRangeRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -15016,7 +15713,7 @@ public APIdeleteCollectionNamespacedLimitRangeRequest fieldSelector(String field * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ - public APIdeleteCollectionNamespacedLimitRangeRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedLimitRangeRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -15026,7 +15723,7 @@ public APIdeleteCollectionNamespacedLimitRangeRequest gracePeriodSeconds(Integer * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ - public APIdeleteCollectionNamespacedLimitRangeRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedLimitRangeRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -15036,7 +15733,7 @@ public APIdeleteCollectionNamespacedLimitRangeRequest ignoreStoreReadErrorWithCl * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ - public APIdeleteCollectionNamespacedLimitRangeRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedLimitRangeRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -15046,7 +15743,7 @@ public APIdeleteCollectionNamespacedLimitRangeRequest labelSelector(String label * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ - public APIdeleteCollectionNamespacedLimitRangeRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedLimitRangeRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -15056,7 +15753,7 @@ public APIdeleteCollectionNamespacedLimitRangeRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ - public APIdeleteCollectionNamespacedLimitRangeRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedLimitRangeRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -15066,7 +15763,7 @@ public APIdeleteCollectionNamespacedLimitRangeRequest orphanDependents(Boolean o * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ - public APIdeleteCollectionNamespacedLimitRangeRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedLimitRangeRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -15076,7 +15773,7 @@ public APIdeleteCollectionNamespacedLimitRangeRequest propagationPolicy(String p * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ - public APIdeleteCollectionNamespacedLimitRangeRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedLimitRangeRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -15086,7 +15783,7 @@ public APIdeleteCollectionNamespacedLimitRangeRequest resourceVersion(String res * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ - public APIdeleteCollectionNamespacedLimitRangeRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedLimitRangeRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -15096,7 +15793,7 @@ public APIdeleteCollectionNamespacedLimitRangeRequest resourceVersionMatch(Strin * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ - public APIdeleteCollectionNamespacedLimitRangeRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedLimitRangeRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -15106,7 +15803,7 @@ public APIdeleteCollectionNamespacedLimitRangeRequest sendInitialEvents(Boolean * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ - public APIdeleteCollectionNamespacedLimitRangeRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedLimitRangeRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -15116,7 +15813,7 @@ public APIdeleteCollectionNamespacedLimitRangeRequest timeoutSeconds(Integer tim * @param body (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ - public APIdeleteCollectionNamespacedLimitRangeRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedLimitRangeRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -15127,7 +15824,8 @@ public APIdeleteCollectionNamespacedLimitRangeRequest body(V1DeleteOptions body) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -15142,7 +15840,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -15158,7 +15857,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -15174,7 +15874,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -15191,16 +15892,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedLimitRangeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedLimitRangeRequest deleteCollectionNamespacedLimitRange(String namespace) { + public APIdeleteCollectionNamespacedLimitRangeRequest deleteCollectionNamespacedLimitRange(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedLimitRangeRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -15306,7 +16008,7 @@ private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimCall(String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPersistentVolumeClaim(Async)"); @@ -15317,13 +16019,13 @@ private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimValidateBefo } - private ApiResponse deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -15332,24 +16034,40 @@ private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimAsync(String } public class APIdeleteCollectionNamespacedPersistentVolumeClaimRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedPersistentVolumeClaimRequest(String namespace) { + private APIdeleteCollectionNamespacedPersistentVolumeClaimRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -15358,7 +16076,7 @@ private APIdeleteCollectionNamespacedPersistentVolumeClaimRequest(String namespa * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ - public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -15368,7 +16086,7 @@ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest pretty(String p * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ - public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -15378,7 +16096,7 @@ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest _continue(Strin * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ - public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -15388,7 +16106,7 @@ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest dryRun(String d * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ - public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -15398,7 +16116,7 @@ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest fieldSelector(S * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ - public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -15408,7 +16126,7 @@ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest gracePeriodSeco * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ - public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -15418,7 +16136,7 @@ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest ignoreStoreRead * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ - public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -15428,7 +16146,7 @@ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest labelSelector(S * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ - public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -15438,7 +16156,7 @@ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest limit(Integer l * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ - public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -15448,7 +16166,7 @@ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest orphanDependent * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ - public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -15458,7 +16176,7 @@ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest propagationPoli * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ - public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -15468,7 +16186,7 @@ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest resourceVersion * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ - public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -15478,7 +16196,7 @@ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest resourceVersion * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ - public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -15488,7 +16206,7 @@ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest sendInitialEven * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ - public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -15498,7 +16216,7 @@ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest timeoutSeconds( * @param body (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ - public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -15509,7 +16227,8 @@ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest body(V1DeleteOp * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -15524,7 +16243,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -15540,7 +16260,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -15556,7 +16277,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -15573,16 +16295,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest deleteCollectionNamespacedPersistentVolumeClaim(String namespace) { + public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest deleteCollectionNamespacedPersistentVolumeClaim(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedPersistentVolumeClaimRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedPodCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -15688,7 +16411,7 @@ private okhttp3.Call deleteCollectionNamespacedPodCall(String namespace, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedPodValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPod(Async)"); @@ -15699,13 +16422,13 @@ private okhttp3.Call deleteCollectionNamespacedPodValidateBeforeCall(String name } - private ApiResponse deleteCollectionNamespacedPodWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedPodWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedPodValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedPodAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedPodValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -15714,24 +16437,40 @@ private okhttp3.Call deleteCollectionNamespacedPodAsync(String namespace, String } public class APIdeleteCollectionNamespacedPodRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedPodRequest(String namespace) { + private APIdeleteCollectionNamespacedPodRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -15740,7 +16479,7 @@ private APIdeleteCollectionNamespacedPodRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedPodRequest */ - public APIdeleteCollectionNamespacedPodRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedPodRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -15750,7 +16489,7 @@ public APIdeleteCollectionNamespacedPodRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedPodRequest */ - public APIdeleteCollectionNamespacedPodRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedPodRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -15760,7 +16499,7 @@ public APIdeleteCollectionNamespacedPodRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedPodRequest */ - public APIdeleteCollectionNamespacedPodRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedPodRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -15770,7 +16509,7 @@ public APIdeleteCollectionNamespacedPodRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedPodRequest */ - public APIdeleteCollectionNamespacedPodRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedPodRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -15780,7 +16519,7 @@ public APIdeleteCollectionNamespacedPodRequest fieldSelector(String fieldSelecto * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedPodRequest */ - public APIdeleteCollectionNamespacedPodRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedPodRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -15790,7 +16529,7 @@ public APIdeleteCollectionNamespacedPodRequest gracePeriodSeconds(Integer graceP * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedPodRequest */ - public APIdeleteCollectionNamespacedPodRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedPodRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -15800,7 +16539,7 @@ public APIdeleteCollectionNamespacedPodRequest ignoreStoreReadErrorWithClusterBr * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedPodRequest */ - public APIdeleteCollectionNamespacedPodRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedPodRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -15810,7 +16549,7 @@ public APIdeleteCollectionNamespacedPodRequest labelSelector(String labelSelecto * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedPodRequest */ - public APIdeleteCollectionNamespacedPodRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedPodRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -15820,7 +16559,7 @@ public APIdeleteCollectionNamespacedPodRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedPodRequest */ - public APIdeleteCollectionNamespacedPodRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedPodRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -15830,7 +16569,7 @@ public APIdeleteCollectionNamespacedPodRequest orphanDependents(Boolean orphanDe * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedPodRequest */ - public APIdeleteCollectionNamespacedPodRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedPodRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -15840,7 +16579,7 @@ public APIdeleteCollectionNamespacedPodRequest propagationPolicy(String propagat * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedPodRequest */ - public APIdeleteCollectionNamespacedPodRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedPodRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -15850,7 +16589,7 @@ public APIdeleteCollectionNamespacedPodRequest resourceVersion(String resourceVe * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedPodRequest */ - public APIdeleteCollectionNamespacedPodRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedPodRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -15860,7 +16599,7 @@ public APIdeleteCollectionNamespacedPodRequest resourceVersionMatch(String resou * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedPodRequest */ - public APIdeleteCollectionNamespacedPodRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedPodRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -15870,7 +16609,7 @@ public APIdeleteCollectionNamespacedPodRequest sendInitialEvents(Boolean sendIni * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedPodRequest */ - public APIdeleteCollectionNamespacedPodRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedPodRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -15880,7 +16619,7 @@ public APIdeleteCollectionNamespacedPodRequest timeoutSeconds(Integer timeoutSec * @param body (optional) * @return APIdeleteCollectionNamespacedPodRequest */ - public APIdeleteCollectionNamespacedPodRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedPodRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -15891,7 +16630,8 @@ public APIdeleteCollectionNamespacedPodRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -15906,7 +16646,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -15922,7 +16663,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -15938,7 +16680,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -15955,16 +16698,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedPodRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedPodRequest deleteCollectionNamespacedPod(String namespace) { + public APIdeleteCollectionNamespacedPodRequest deleteCollectionNamespacedPod(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedPodRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedPodTemplateCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -16070,7 +16814,7 @@ private okhttp3.Call deleteCollectionNamespacedPodTemplateCall(String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedPodTemplateValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPodTemplate(Async)"); @@ -16081,13 +16825,13 @@ private okhttp3.Call deleteCollectionNamespacedPodTemplateValidateBeforeCall(Str } - private ApiResponse deleteCollectionNamespacedPodTemplateWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedPodTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedPodTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedPodTemplateAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedPodTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -16096,24 +16840,40 @@ private okhttp3.Call deleteCollectionNamespacedPodTemplateAsync(String namespace } public class APIdeleteCollectionNamespacedPodTemplateRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedPodTemplateRequest(String namespace) { + private APIdeleteCollectionNamespacedPodTemplateRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -16122,7 +16882,7 @@ private APIdeleteCollectionNamespacedPodTemplateRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ - public APIdeleteCollectionNamespacedPodTemplateRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedPodTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -16132,7 +16892,7 @@ public APIdeleteCollectionNamespacedPodTemplateRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ - public APIdeleteCollectionNamespacedPodTemplateRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedPodTemplateRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -16142,7 +16902,7 @@ public APIdeleteCollectionNamespacedPodTemplateRequest _continue(String _continu * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ - public APIdeleteCollectionNamespacedPodTemplateRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedPodTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -16152,7 +16912,7 @@ public APIdeleteCollectionNamespacedPodTemplateRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ - public APIdeleteCollectionNamespacedPodTemplateRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedPodTemplateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -16162,7 +16922,7 @@ public APIdeleteCollectionNamespacedPodTemplateRequest fieldSelector(String fiel * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ - public APIdeleteCollectionNamespacedPodTemplateRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedPodTemplateRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -16172,7 +16932,7 @@ public APIdeleteCollectionNamespacedPodTemplateRequest gracePeriodSeconds(Intege * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ - public APIdeleteCollectionNamespacedPodTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedPodTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -16182,7 +16942,7 @@ public APIdeleteCollectionNamespacedPodTemplateRequest ignoreStoreReadErrorWithC * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ - public APIdeleteCollectionNamespacedPodTemplateRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedPodTemplateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -16192,7 +16952,7 @@ public APIdeleteCollectionNamespacedPodTemplateRequest labelSelector(String labe * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ - public APIdeleteCollectionNamespacedPodTemplateRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedPodTemplateRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -16202,7 +16962,7 @@ public APIdeleteCollectionNamespacedPodTemplateRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ - public APIdeleteCollectionNamespacedPodTemplateRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedPodTemplateRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -16212,7 +16972,7 @@ public APIdeleteCollectionNamespacedPodTemplateRequest orphanDependents(Boolean * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ - public APIdeleteCollectionNamespacedPodTemplateRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedPodTemplateRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -16222,7 +16982,7 @@ public APIdeleteCollectionNamespacedPodTemplateRequest propagationPolicy(String * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ - public APIdeleteCollectionNamespacedPodTemplateRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedPodTemplateRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -16232,7 +16992,7 @@ public APIdeleteCollectionNamespacedPodTemplateRequest resourceVersion(String re * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ - public APIdeleteCollectionNamespacedPodTemplateRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedPodTemplateRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -16242,7 +17002,7 @@ public APIdeleteCollectionNamespacedPodTemplateRequest resourceVersionMatch(Stri * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ - public APIdeleteCollectionNamespacedPodTemplateRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedPodTemplateRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -16252,7 +17012,7 @@ public APIdeleteCollectionNamespacedPodTemplateRequest sendInitialEvents(Boolean * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ - public APIdeleteCollectionNamespacedPodTemplateRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedPodTemplateRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -16262,7 +17022,7 @@ public APIdeleteCollectionNamespacedPodTemplateRequest timeoutSeconds(Integer ti * @param body (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ - public APIdeleteCollectionNamespacedPodTemplateRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedPodTemplateRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -16273,7 +17033,8 @@ public APIdeleteCollectionNamespacedPodTemplateRequest body(V1DeleteOptions body * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -16288,7 +17049,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -16304,7 +17066,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -16320,7 +17083,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -16337,16 +17101,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedPodTemplateRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedPodTemplateRequest deleteCollectionNamespacedPodTemplate(String namespace) { + public APIdeleteCollectionNamespacedPodTemplateRequest deleteCollectionNamespacedPodTemplate(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedPodTemplateRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedReplicationControllerCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedReplicationControllerCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -16452,7 +17217,7 @@ private okhttp3.Call deleteCollectionNamespacedReplicationControllerCall(String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedReplicationControllerValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedReplicationControllerValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedReplicationController(Async)"); @@ -16463,13 +17228,13 @@ private okhttp3.Call deleteCollectionNamespacedReplicationControllerValidateBefo } - private ApiResponse deleteCollectionNamespacedReplicationControllerWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedReplicationControllerWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedReplicationControllerAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedReplicationControllerAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -16478,24 +17243,40 @@ private okhttp3.Call deleteCollectionNamespacedReplicationControllerAsync(String } public class APIdeleteCollectionNamespacedReplicationControllerRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedReplicationControllerRequest(String namespace) { + private APIdeleteCollectionNamespacedReplicationControllerRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -16504,7 +17285,7 @@ private APIdeleteCollectionNamespacedReplicationControllerRequest(String namespa * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ - public APIdeleteCollectionNamespacedReplicationControllerRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedReplicationControllerRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -16514,7 +17295,7 @@ public APIdeleteCollectionNamespacedReplicationControllerRequest pretty(String p * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ - public APIdeleteCollectionNamespacedReplicationControllerRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedReplicationControllerRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -16524,7 +17305,7 @@ public APIdeleteCollectionNamespacedReplicationControllerRequest _continue(Strin * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ - public APIdeleteCollectionNamespacedReplicationControllerRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedReplicationControllerRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -16534,7 +17315,7 @@ public APIdeleteCollectionNamespacedReplicationControllerRequest dryRun(String d * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ - public APIdeleteCollectionNamespacedReplicationControllerRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedReplicationControllerRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -16544,7 +17325,7 @@ public APIdeleteCollectionNamespacedReplicationControllerRequest fieldSelector(S * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ - public APIdeleteCollectionNamespacedReplicationControllerRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedReplicationControllerRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -16554,7 +17335,7 @@ public APIdeleteCollectionNamespacedReplicationControllerRequest gracePeriodSeco * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ - public APIdeleteCollectionNamespacedReplicationControllerRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedReplicationControllerRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -16564,7 +17345,7 @@ public APIdeleteCollectionNamespacedReplicationControllerRequest ignoreStoreRead * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ - public APIdeleteCollectionNamespacedReplicationControllerRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedReplicationControllerRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -16574,7 +17355,7 @@ public APIdeleteCollectionNamespacedReplicationControllerRequest labelSelector(S * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ - public APIdeleteCollectionNamespacedReplicationControllerRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedReplicationControllerRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -16584,7 +17365,7 @@ public APIdeleteCollectionNamespacedReplicationControllerRequest limit(Integer l * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ - public APIdeleteCollectionNamespacedReplicationControllerRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedReplicationControllerRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -16594,7 +17375,7 @@ public APIdeleteCollectionNamespacedReplicationControllerRequest orphanDependent * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ - public APIdeleteCollectionNamespacedReplicationControllerRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedReplicationControllerRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -16604,7 +17385,7 @@ public APIdeleteCollectionNamespacedReplicationControllerRequest propagationPoli * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ - public APIdeleteCollectionNamespacedReplicationControllerRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedReplicationControllerRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -16614,7 +17395,7 @@ public APIdeleteCollectionNamespacedReplicationControllerRequest resourceVersion * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ - public APIdeleteCollectionNamespacedReplicationControllerRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedReplicationControllerRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -16624,7 +17405,7 @@ public APIdeleteCollectionNamespacedReplicationControllerRequest resourceVersion * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ - public APIdeleteCollectionNamespacedReplicationControllerRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedReplicationControllerRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -16634,7 +17415,7 @@ public APIdeleteCollectionNamespacedReplicationControllerRequest sendInitialEven * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ - public APIdeleteCollectionNamespacedReplicationControllerRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedReplicationControllerRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -16644,7 +17425,7 @@ public APIdeleteCollectionNamespacedReplicationControllerRequest timeoutSeconds( * @param body (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ - public APIdeleteCollectionNamespacedReplicationControllerRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedReplicationControllerRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -16655,7 +17436,8 @@ public APIdeleteCollectionNamespacedReplicationControllerRequest body(V1DeleteOp * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -16670,7 +17452,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -16686,7 +17469,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -16702,7 +17486,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -16719,16 +17504,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedReplicationControllerRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedReplicationControllerRequest deleteCollectionNamespacedReplicationController(String namespace) { + public APIdeleteCollectionNamespacedReplicationControllerRequest deleteCollectionNamespacedReplicationController(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedReplicationControllerRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedResourceQuotaCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceQuotaCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -16834,7 +17620,7 @@ private okhttp3.Call deleteCollectionNamespacedResourceQuotaCall(String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedResourceQuotaValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceQuotaValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceQuota(Async)"); @@ -16845,13 +17631,13 @@ private okhttp3.Call deleteCollectionNamespacedResourceQuotaValidateBeforeCall(S } - private ApiResponse deleteCollectionNamespacedResourceQuotaWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedResourceQuotaWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedResourceQuotaAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceQuotaAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -16860,24 +17646,40 @@ private okhttp3.Call deleteCollectionNamespacedResourceQuotaAsync(String namespa } public class APIdeleteCollectionNamespacedResourceQuotaRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedResourceQuotaRequest(String namespace) { + private APIdeleteCollectionNamespacedResourceQuotaRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -16886,7 +17688,7 @@ private APIdeleteCollectionNamespacedResourceQuotaRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ - public APIdeleteCollectionNamespacedResourceQuotaRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedResourceQuotaRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -16896,7 +17698,7 @@ public APIdeleteCollectionNamespacedResourceQuotaRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ - public APIdeleteCollectionNamespacedResourceQuotaRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedResourceQuotaRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -16906,7 +17708,7 @@ public APIdeleteCollectionNamespacedResourceQuotaRequest _continue(String _conti * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ - public APIdeleteCollectionNamespacedResourceQuotaRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedResourceQuotaRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -16916,7 +17718,7 @@ public APIdeleteCollectionNamespacedResourceQuotaRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ - public APIdeleteCollectionNamespacedResourceQuotaRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedResourceQuotaRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -16926,7 +17728,7 @@ public APIdeleteCollectionNamespacedResourceQuotaRequest fieldSelector(String fi * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ - public APIdeleteCollectionNamespacedResourceQuotaRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedResourceQuotaRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -16936,7 +17738,7 @@ public APIdeleteCollectionNamespacedResourceQuotaRequest gracePeriodSeconds(Inte * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ - public APIdeleteCollectionNamespacedResourceQuotaRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedResourceQuotaRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -16946,7 +17748,7 @@ public APIdeleteCollectionNamespacedResourceQuotaRequest ignoreStoreReadErrorWit * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ - public APIdeleteCollectionNamespacedResourceQuotaRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedResourceQuotaRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -16956,7 +17758,7 @@ public APIdeleteCollectionNamespacedResourceQuotaRequest labelSelector(String la * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ - public APIdeleteCollectionNamespacedResourceQuotaRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedResourceQuotaRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -16966,7 +17768,7 @@ public APIdeleteCollectionNamespacedResourceQuotaRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ - public APIdeleteCollectionNamespacedResourceQuotaRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedResourceQuotaRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -16976,7 +17778,7 @@ public APIdeleteCollectionNamespacedResourceQuotaRequest orphanDependents(Boolea * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ - public APIdeleteCollectionNamespacedResourceQuotaRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedResourceQuotaRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -16986,7 +17788,7 @@ public APIdeleteCollectionNamespacedResourceQuotaRequest propagationPolicy(Strin * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ - public APIdeleteCollectionNamespacedResourceQuotaRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedResourceQuotaRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -16996,7 +17798,7 @@ public APIdeleteCollectionNamespacedResourceQuotaRequest resourceVersion(String * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ - public APIdeleteCollectionNamespacedResourceQuotaRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedResourceQuotaRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -17006,7 +17808,7 @@ public APIdeleteCollectionNamespacedResourceQuotaRequest resourceVersionMatch(St * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ - public APIdeleteCollectionNamespacedResourceQuotaRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedResourceQuotaRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -17016,7 +17818,7 @@ public APIdeleteCollectionNamespacedResourceQuotaRequest sendInitialEvents(Boole * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ - public APIdeleteCollectionNamespacedResourceQuotaRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedResourceQuotaRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -17026,7 +17828,7 @@ public APIdeleteCollectionNamespacedResourceQuotaRequest timeoutSeconds(Integer * @param body (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ - public APIdeleteCollectionNamespacedResourceQuotaRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedResourceQuotaRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -17037,7 +17839,8 @@ public APIdeleteCollectionNamespacedResourceQuotaRequest body(V1DeleteOptions bo * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -17052,7 +17855,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -17068,7 +17872,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -17084,7 +17889,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -17101,16 +17907,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedResourceQuotaRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedResourceQuotaRequest deleteCollectionNamespacedResourceQuota(String namespace) { + public APIdeleteCollectionNamespacedResourceQuotaRequest deleteCollectionNamespacedResourceQuota(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedResourceQuotaRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedSecretCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedSecretCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -17216,7 +18023,7 @@ private okhttp3.Call deleteCollectionNamespacedSecretCall(String namespace, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedSecretValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedSecretValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedSecret(Async)"); @@ -17227,13 +18034,13 @@ private okhttp3.Call deleteCollectionNamespacedSecretValidateBeforeCall(String n } - private ApiResponse deleteCollectionNamespacedSecretWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedSecretWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedSecretValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedSecretAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedSecretAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedSecretValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -17242,24 +18049,40 @@ private okhttp3.Call deleteCollectionNamespacedSecretAsync(String namespace, Str } public class APIdeleteCollectionNamespacedSecretRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedSecretRequest(String namespace) { + private APIdeleteCollectionNamespacedSecretRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -17268,7 +18091,7 @@ private APIdeleteCollectionNamespacedSecretRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ - public APIdeleteCollectionNamespacedSecretRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedSecretRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -17278,7 +18101,7 @@ public APIdeleteCollectionNamespacedSecretRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ - public APIdeleteCollectionNamespacedSecretRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedSecretRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -17288,7 +18111,7 @@ public APIdeleteCollectionNamespacedSecretRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ - public APIdeleteCollectionNamespacedSecretRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedSecretRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -17298,7 +18121,7 @@ public APIdeleteCollectionNamespacedSecretRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ - public APIdeleteCollectionNamespacedSecretRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedSecretRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -17308,7 +18131,7 @@ public APIdeleteCollectionNamespacedSecretRequest fieldSelector(String fieldSele * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ - public APIdeleteCollectionNamespacedSecretRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedSecretRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -17318,7 +18141,7 @@ public APIdeleteCollectionNamespacedSecretRequest gracePeriodSeconds(Integer gra * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ - public APIdeleteCollectionNamespacedSecretRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedSecretRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -17328,7 +18151,7 @@ public APIdeleteCollectionNamespacedSecretRequest ignoreStoreReadErrorWithCluste * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ - public APIdeleteCollectionNamespacedSecretRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedSecretRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -17338,7 +18161,7 @@ public APIdeleteCollectionNamespacedSecretRequest labelSelector(String labelSele * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ - public APIdeleteCollectionNamespacedSecretRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedSecretRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -17348,7 +18171,7 @@ public APIdeleteCollectionNamespacedSecretRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ - public APIdeleteCollectionNamespacedSecretRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedSecretRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -17358,7 +18181,7 @@ public APIdeleteCollectionNamespacedSecretRequest orphanDependents(Boolean orpha * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ - public APIdeleteCollectionNamespacedSecretRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedSecretRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -17368,7 +18191,7 @@ public APIdeleteCollectionNamespacedSecretRequest propagationPolicy(String propa * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ - public APIdeleteCollectionNamespacedSecretRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedSecretRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -17378,7 +18201,7 @@ public APIdeleteCollectionNamespacedSecretRequest resourceVersion(String resourc * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ - public APIdeleteCollectionNamespacedSecretRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedSecretRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -17388,7 +18211,7 @@ public APIdeleteCollectionNamespacedSecretRequest resourceVersionMatch(String re * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ - public APIdeleteCollectionNamespacedSecretRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedSecretRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -17398,7 +18221,7 @@ public APIdeleteCollectionNamespacedSecretRequest sendInitialEvents(Boolean send * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ - public APIdeleteCollectionNamespacedSecretRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedSecretRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -17408,7 +18231,7 @@ public APIdeleteCollectionNamespacedSecretRequest timeoutSeconds(Integer timeout * @param body (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ - public APIdeleteCollectionNamespacedSecretRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedSecretRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -17419,7 +18242,8 @@ public APIdeleteCollectionNamespacedSecretRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -17434,7 +18258,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -17450,7 +18275,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -17466,7 +18292,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -17483,16 +18310,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedSecretRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedSecretRequest deleteCollectionNamespacedSecret(String namespace) { + public APIdeleteCollectionNamespacedSecretRequest deleteCollectionNamespacedSecret(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedSecretRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedServiceCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedServiceCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -17598,7 +18426,7 @@ private okhttp3.Call deleteCollectionNamespacedServiceCall(String namespace, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedServiceValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedServiceValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedService(Async)"); @@ -17609,13 +18437,13 @@ private okhttp3.Call deleteCollectionNamespacedServiceValidateBeforeCall(String } - private ApiResponse deleteCollectionNamespacedServiceWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedServiceWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedServiceValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedServiceAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedServiceAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedServiceValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -17624,24 +18452,40 @@ private okhttp3.Call deleteCollectionNamespacedServiceAsync(String namespace, St } public class APIdeleteCollectionNamespacedServiceRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedServiceRequest(String namespace) { + private APIdeleteCollectionNamespacedServiceRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -17650,7 +18494,7 @@ private APIdeleteCollectionNamespacedServiceRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ - public APIdeleteCollectionNamespacedServiceRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedServiceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -17660,7 +18504,7 @@ public APIdeleteCollectionNamespacedServiceRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ - public APIdeleteCollectionNamespacedServiceRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedServiceRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -17670,7 +18514,7 @@ public APIdeleteCollectionNamespacedServiceRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ - public APIdeleteCollectionNamespacedServiceRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedServiceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -17680,7 +18524,7 @@ public APIdeleteCollectionNamespacedServiceRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ - public APIdeleteCollectionNamespacedServiceRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedServiceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -17690,7 +18534,7 @@ public APIdeleteCollectionNamespacedServiceRequest fieldSelector(String fieldSel * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ - public APIdeleteCollectionNamespacedServiceRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedServiceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -17700,7 +18544,7 @@ public APIdeleteCollectionNamespacedServiceRequest gracePeriodSeconds(Integer gr * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ - public APIdeleteCollectionNamespacedServiceRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedServiceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -17710,7 +18554,7 @@ public APIdeleteCollectionNamespacedServiceRequest ignoreStoreReadErrorWithClust * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ - public APIdeleteCollectionNamespacedServiceRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedServiceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -17720,7 +18564,7 @@ public APIdeleteCollectionNamespacedServiceRequest labelSelector(String labelSel * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ - public APIdeleteCollectionNamespacedServiceRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedServiceRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -17730,7 +18574,7 @@ public APIdeleteCollectionNamespacedServiceRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ - public APIdeleteCollectionNamespacedServiceRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedServiceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -17740,7 +18584,7 @@ public APIdeleteCollectionNamespacedServiceRequest orphanDependents(Boolean orph * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ - public APIdeleteCollectionNamespacedServiceRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedServiceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -17750,7 +18594,7 @@ public APIdeleteCollectionNamespacedServiceRequest propagationPolicy(String prop * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ - public APIdeleteCollectionNamespacedServiceRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedServiceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -17760,7 +18604,7 @@ public APIdeleteCollectionNamespacedServiceRequest resourceVersion(String resour * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ - public APIdeleteCollectionNamespacedServiceRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedServiceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -17770,7 +18614,7 @@ public APIdeleteCollectionNamespacedServiceRequest resourceVersionMatch(String r * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ - public APIdeleteCollectionNamespacedServiceRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedServiceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -17780,7 +18624,7 @@ public APIdeleteCollectionNamespacedServiceRequest sendInitialEvents(Boolean sen * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ - public APIdeleteCollectionNamespacedServiceRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedServiceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -17790,7 +18634,7 @@ public APIdeleteCollectionNamespacedServiceRequest timeoutSeconds(Integer timeou * @param body (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ - public APIdeleteCollectionNamespacedServiceRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedServiceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -17801,7 +18645,8 @@ public APIdeleteCollectionNamespacedServiceRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -17816,7 +18661,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -17832,7 +18678,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -17848,7 +18695,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -17865,16 +18713,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedServiceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedServiceRequest deleteCollectionNamespacedService(String namespace) { + public APIdeleteCollectionNamespacedServiceRequest deleteCollectionNamespacedService(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedServiceRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedServiceAccountCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedServiceAccountCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -17980,7 +18829,7 @@ private okhttp3.Call deleteCollectionNamespacedServiceAccountCall(String namespa } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedServiceAccountValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedServiceAccountValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedServiceAccount(Async)"); @@ -17991,13 +18840,13 @@ private okhttp3.Call deleteCollectionNamespacedServiceAccountValidateBeforeCall( } - private ApiResponse deleteCollectionNamespacedServiceAccountWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedServiceAccountWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedServiceAccountValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedServiceAccountAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedServiceAccountAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedServiceAccountValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -18006,24 +18855,40 @@ private okhttp3.Call deleteCollectionNamespacedServiceAccountAsync(String namesp } public class APIdeleteCollectionNamespacedServiceAccountRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedServiceAccountRequest(String namespace) { + private APIdeleteCollectionNamespacedServiceAccountRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -18032,7 +18897,7 @@ private APIdeleteCollectionNamespacedServiceAccountRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ - public APIdeleteCollectionNamespacedServiceAccountRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedServiceAccountRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -18042,7 +18907,7 @@ public APIdeleteCollectionNamespacedServiceAccountRequest pretty(String pretty) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ - public APIdeleteCollectionNamespacedServiceAccountRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedServiceAccountRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -18052,7 +18917,7 @@ public APIdeleteCollectionNamespacedServiceAccountRequest _continue(String _cont * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ - public APIdeleteCollectionNamespacedServiceAccountRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedServiceAccountRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -18062,7 +18927,7 @@ public APIdeleteCollectionNamespacedServiceAccountRequest dryRun(String dryRun) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ - public APIdeleteCollectionNamespacedServiceAccountRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedServiceAccountRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -18072,7 +18937,7 @@ public APIdeleteCollectionNamespacedServiceAccountRequest fieldSelector(String f * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ - public APIdeleteCollectionNamespacedServiceAccountRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedServiceAccountRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -18082,7 +18947,7 @@ public APIdeleteCollectionNamespacedServiceAccountRequest gracePeriodSeconds(Int * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ - public APIdeleteCollectionNamespacedServiceAccountRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedServiceAccountRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -18092,7 +18957,7 @@ public APIdeleteCollectionNamespacedServiceAccountRequest ignoreStoreReadErrorWi * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ - public APIdeleteCollectionNamespacedServiceAccountRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedServiceAccountRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -18102,7 +18967,7 @@ public APIdeleteCollectionNamespacedServiceAccountRequest labelSelector(String l * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ - public APIdeleteCollectionNamespacedServiceAccountRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedServiceAccountRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -18112,7 +18977,7 @@ public APIdeleteCollectionNamespacedServiceAccountRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ - public APIdeleteCollectionNamespacedServiceAccountRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedServiceAccountRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -18122,7 +18987,7 @@ public APIdeleteCollectionNamespacedServiceAccountRequest orphanDependents(Boole * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ - public APIdeleteCollectionNamespacedServiceAccountRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedServiceAccountRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -18132,7 +18997,7 @@ public APIdeleteCollectionNamespacedServiceAccountRequest propagationPolicy(Stri * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ - public APIdeleteCollectionNamespacedServiceAccountRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedServiceAccountRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -18142,7 +19007,7 @@ public APIdeleteCollectionNamespacedServiceAccountRequest resourceVersion(String * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ - public APIdeleteCollectionNamespacedServiceAccountRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedServiceAccountRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -18152,7 +19017,7 @@ public APIdeleteCollectionNamespacedServiceAccountRequest resourceVersionMatch(S * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ - public APIdeleteCollectionNamespacedServiceAccountRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedServiceAccountRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -18162,7 +19027,7 @@ public APIdeleteCollectionNamespacedServiceAccountRequest sendInitialEvents(Bool * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ - public APIdeleteCollectionNamespacedServiceAccountRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedServiceAccountRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -18172,7 +19037,7 @@ public APIdeleteCollectionNamespacedServiceAccountRequest timeoutSeconds(Integer * @param body (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ - public APIdeleteCollectionNamespacedServiceAccountRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedServiceAccountRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -18183,7 +19048,8 @@ public APIdeleteCollectionNamespacedServiceAccountRequest body(V1DeleteOptions b * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -18198,7 +19064,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -18214,7 +19081,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -18230,7 +19098,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -18247,16 +19116,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedServiceAccountRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedServiceAccountRequest deleteCollectionNamespacedServiceAccount(String namespace) { + public APIdeleteCollectionNamespacedServiceAccountRequest deleteCollectionNamespacedServiceAccount(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedServiceAccountRequest(namespace); } - private okhttp3.Call deleteCollectionNodeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNodeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -18361,19 +19231,19 @@ private okhttp3.Call deleteCollectionNodeCall(String pretty, String _continue, S } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNodeValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNodeValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionNodeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNodeWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNodeWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNodeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNodeAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNodeAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNodeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -18382,20 +19252,35 @@ private okhttp3.Call deleteCollectionNodeAsync(String pretty, String _continue, } public class APIdeleteCollectionNodeRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionNodeRequest() { @@ -18406,7 +19291,7 @@ private APIdeleteCollectionNodeRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNodeRequest */ - public APIdeleteCollectionNodeRequest pretty(String pretty) { + public APIdeleteCollectionNodeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -18416,7 +19301,7 @@ public APIdeleteCollectionNodeRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNodeRequest */ - public APIdeleteCollectionNodeRequest _continue(String _continue) { + public APIdeleteCollectionNodeRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -18426,7 +19311,7 @@ public APIdeleteCollectionNodeRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNodeRequest */ - public APIdeleteCollectionNodeRequest dryRun(String dryRun) { + public APIdeleteCollectionNodeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -18436,7 +19321,7 @@ public APIdeleteCollectionNodeRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNodeRequest */ - public APIdeleteCollectionNodeRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNodeRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -18446,7 +19331,7 @@ public APIdeleteCollectionNodeRequest fieldSelector(String fieldSelector) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNodeRequest */ - public APIdeleteCollectionNodeRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNodeRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -18456,7 +19341,7 @@ public APIdeleteCollectionNodeRequest gracePeriodSeconds(Integer gracePeriodSeco * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNodeRequest */ - public APIdeleteCollectionNodeRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNodeRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -18466,7 +19351,7 @@ public APIdeleteCollectionNodeRequest ignoreStoreReadErrorWithClusterBreakingPot * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNodeRequest */ - public APIdeleteCollectionNodeRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNodeRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -18476,7 +19361,7 @@ public APIdeleteCollectionNodeRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNodeRequest */ - public APIdeleteCollectionNodeRequest limit(Integer limit) { + public APIdeleteCollectionNodeRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -18486,7 +19371,7 @@ public APIdeleteCollectionNodeRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNodeRequest */ - public APIdeleteCollectionNodeRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNodeRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -18496,7 +19381,7 @@ public APIdeleteCollectionNodeRequest orphanDependents(Boolean orphanDependents) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNodeRequest */ - public APIdeleteCollectionNodeRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNodeRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -18506,7 +19391,7 @@ public APIdeleteCollectionNodeRequest propagationPolicy(String propagationPolicy * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNodeRequest */ - public APIdeleteCollectionNodeRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNodeRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -18516,7 +19401,7 @@ public APIdeleteCollectionNodeRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNodeRequest */ - public APIdeleteCollectionNodeRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNodeRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -18526,7 +19411,7 @@ public APIdeleteCollectionNodeRequest resourceVersionMatch(String resourceVersio * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNodeRequest */ - public APIdeleteCollectionNodeRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNodeRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -18536,7 +19421,7 @@ public APIdeleteCollectionNodeRequest sendInitialEvents(Boolean sendInitialEvent * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNodeRequest */ - public APIdeleteCollectionNodeRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNodeRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -18546,7 +19431,7 @@ public APIdeleteCollectionNodeRequest timeoutSeconds(Integer timeoutSeconds) { * @param body (optional) * @return APIdeleteCollectionNodeRequest */ - public APIdeleteCollectionNodeRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNodeRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -18557,7 +19442,8 @@ public APIdeleteCollectionNodeRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -18572,7 +19458,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -18588,7 +19475,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -18604,7 +19492,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -18620,7 +19509,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of Node * @return APIdeleteCollectionNodeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -18629,7 +19519,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNodeRequest deleteCollectionNode() { return new APIdeleteCollectionNodeRequest(); } - private okhttp3.Call deleteCollectionPersistentVolumeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionPersistentVolumeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -18734,19 +19624,19 @@ private okhttp3.Call deleteCollectionPersistentVolumeCall(String pretty, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionPersistentVolumeValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionPersistentVolumeValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionPersistentVolumeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionPersistentVolumeWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionPersistentVolumeWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionPersistentVolumeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionPersistentVolumeAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionPersistentVolumeAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionPersistentVolumeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -18755,20 +19645,35 @@ private okhttp3.Call deleteCollectionPersistentVolumeAsync(String pretty, String } public class APIdeleteCollectionPersistentVolumeRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionPersistentVolumeRequest() { @@ -18779,7 +19684,7 @@ private APIdeleteCollectionPersistentVolumeRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ - public APIdeleteCollectionPersistentVolumeRequest pretty(String pretty) { + public APIdeleteCollectionPersistentVolumeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -18789,7 +19694,7 @@ public APIdeleteCollectionPersistentVolumeRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ - public APIdeleteCollectionPersistentVolumeRequest _continue(String _continue) { + public APIdeleteCollectionPersistentVolumeRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -18799,7 +19704,7 @@ public APIdeleteCollectionPersistentVolumeRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ - public APIdeleteCollectionPersistentVolumeRequest dryRun(String dryRun) { + public APIdeleteCollectionPersistentVolumeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -18809,7 +19714,7 @@ public APIdeleteCollectionPersistentVolumeRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ - public APIdeleteCollectionPersistentVolumeRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionPersistentVolumeRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -18819,7 +19724,7 @@ public APIdeleteCollectionPersistentVolumeRequest fieldSelector(String fieldSele * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ - public APIdeleteCollectionPersistentVolumeRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionPersistentVolumeRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -18829,7 +19734,7 @@ public APIdeleteCollectionPersistentVolumeRequest gracePeriodSeconds(Integer gra * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ - public APIdeleteCollectionPersistentVolumeRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionPersistentVolumeRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -18839,7 +19744,7 @@ public APIdeleteCollectionPersistentVolumeRequest ignoreStoreReadErrorWithCluste * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ - public APIdeleteCollectionPersistentVolumeRequest labelSelector(String labelSelector) { + public APIdeleteCollectionPersistentVolumeRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -18849,7 +19754,7 @@ public APIdeleteCollectionPersistentVolumeRequest labelSelector(String labelSele * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ - public APIdeleteCollectionPersistentVolumeRequest limit(Integer limit) { + public APIdeleteCollectionPersistentVolumeRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -18859,7 +19764,7 @@ public APIdeleteCollectionPersistentVolumeRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ - public APIdeleteCollectionPersistentVolumeRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionPersistentVolumeRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -18869,7 +19774,7 @@ public APIdeleteCollectionPersistentVolumeRequest orphanDependents(Boolean orpha * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ - public APIdeleteCollectionPersistentVolumeRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionPersistentVolumeRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -18879,7 +19784,7 @@ public APIdeleteCollectionPersistentVolumeRequest propagationPolicy(String propa * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ - public APIdeleteCollectionPersistentVolumeRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionPersistentVolumeRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -18889,7 +19794,7 @@ public APIdeleteCollectionPersistentVolumeRequest resourceVersion(String resourc * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ - public APIdeleteCollectionPersistentVolumeRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionPersistentVolumeRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -18899,7 +19804,7 @@ public APIdeleteCollectionPersistentVolumeRequest resourceVersionMatch(String re * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ - public APIdeleteCollectionPersistentVolumeRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionPersistentVolumeRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -18909,7 +19814,7 @@ public APIdeleteCollectionPersistentVolumeRequest sendInitialEvents(Boolean send * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ - public APIdeleteCollectionPersistentVolumeRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionPersistentVolumeRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -18919,7 +19824,7 @@ public APIdeleteCollectionPersistentVolumeRequest timeoutSeconds(Integer timeout * @param body (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ - public APIdeleteCollectionPersistentVolumeRequest body(V1DeleteOptions body) { + public APIdeleteCollectionPersistentVolumeRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -18930,7 +19835,8 @@ public APIdeleteCollectionPersistentVolumeRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -18945,7 +19851,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -18961,7 +19868,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -18977,7 +19885,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -18993,7 +19902,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of PersistentVolume * @return APIdeleteCollectionPersistentVolumeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -19002,7 +19912,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionPersistentVolumeRequest deleteCollectionPersistentVolume() { return new APIdeleteCollectionPersistentVolumeRequest(); } - private okhttp3.Call deleteNamespaceCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespaceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -19076,7 +19986,7 @@ private okhttp3.Call deleteNamespaceCall(String name, String pretty, String dryR } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespaceValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespaceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespace(Async)"); @@ -19087,13 +19997,13 @@ private okhttp3.Call deleteNamespaceValidateBeforeCall(String name, String prett } - private ApiResponse deleteNamespaceWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespaceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespaceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespaceAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespaceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespaceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -19102,16 +20012,24 @@ private okhttp3.Call deleteNamespaceAsync(String name, String pretty, String dry } public class APIdeleteNamespaceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespaceRequest(String name) { + private APIdeleteNamespaceRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -19120,7 +20038,7 @@ private APIdeleteNamespaceRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespaceRequest */ - public APIdeleteNamespaceRequest pretty(String pretty) { + public APIdeleteNamespaceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -19130,7 +20048,7 @@ public APIdeleteNamespaceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespaceRequest */ - public APIdeleteNamespaceRequest dryRun(String dryRun) { + public APIdeleteNamespaceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -19140,7 +20058,7 @@ public APIdeleteNamespaceRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespaceRequest */ - public APIdeleteNamespaceRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespaceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -19150,7 +20068,7 @@ public APIdeleteNamespaceRequest gracePeriodSeconds(Integer gracePeriodSeconds) * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespaceRequest */ - public APIdeleteNamespaceRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespaceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -19160,7 +20078,7 @@ public APIdeleteNamespaceRequest ignoreStoreReadErrorWithClusterBreakingPotentia * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespaceRequest */ - public APIdeleteNamespaceRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespaceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -19170,7 +20088,7 @@ public APIdeleteNamespaceRequest orphanDependents(Boolean orphanDependents) { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespaceRequest */ - public APIdeleteNamespaceRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespaceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -19180,7 +20098,7 @@ public APIdeleteNamespaceRequest propagationPolicy(String propagationPolicy) { * @param body (optional) * @return APIdeleteNamespaceRequest */ - public APIdeleteNamespaceRequest body(V1DeleteOptions body) { + public APIdeleteNamespaceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -19191,7 +20109,8 @@ public APIdeleteNamespaceRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -19207,7 +20126,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -19224,7 +20144,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -19241,7 +20162,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -19259,17 +20181,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the Namespace (required) * @return APIdeleteNamespaceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespaceRequest deleteNamespace(String name) { + public APIdeleteNamespaceRequest deleteNamespace(@jakarta.annotation.Nonnull String name) { return new APIdeleteNamespaceRequest(name); } - private okhttp3.Call deleteNamespacedConfigMapCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedConfigMapCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -19344,7 +20267,7 @@ private okhttp3.Call deleteNamespacedConfigMapCall(String name, String namespace } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedConfigMapValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedConfigMapValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedConfigMap(Async)"); @@ -19360,13 +20283,13 @@ private okhttp3.Call deleteNamespacedConfigMapValidateBeforeCall(String name, St } - private ApiResponse deleteNamespacedConfigMapWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedConfigMapWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedConfigMapValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedConfigMapAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedConfigMapAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedConfigMapValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -19375,17 +20298,26 @@ private okhttp3.Call deleteNamespacedConfigMapAsync(String name, String namespac } public class APIdeleteNamespacedConfigMapRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedConfigMapRequest(String name, String namespace) { + private APIdeleteNamespacedConfigMapRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -19395,7 +20327,7 @@ private APIdeleteNamespacedConfigMapRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedConfigMapRequest */ - public APIdeleteNamespacedConfigMapRequest pretty(String pretty) { + public APIdeleteNamespacedConfigMapRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -19405,7 +20337,7 @@ public APIdeleteNamespacedConfigMapRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedConfigMapRequest */ - public APIdeleteNamespacedConfigMapRequest dryRun(String dryRun) { + public APIdeleteNamespacedConfigMapRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -19415,7 +20347,7 @@ public APIdeleteNamespacedConfigMapRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedConfigMapRequest */ - public APIdeleteNamespacedConfigMapRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedConfigMapRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -19425,7 +20357,7 @@ public APIdeleteNamespacedConfigMapRequest gracePeriodSeconds(Integer gracePerio * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedConfigMapRequest */ - public APIdeleteNamespacedConfigMapRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedConfigMapRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -19435,7 +20367,7 @@ public APIdeleteNamespacedConfigMapRequest ignoreStoreReadErrorWithClusterBreaki * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedConfigMapRequest */ - public APIdeleteNamespacedConfigMapRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedConfigMapRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -19445,7 +20377,7 @@ public APIdeleteNamespacedConfigMapRequest orphanDependents(Boolean orphanDepend * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedConfigMapRequest */ - public APIdeleteNamespacedConfigMapRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedConfigMapRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -19455,7 +20387,7 @@ public APIdeleteNamespacedConfigMapRequest propagationPolicy(String propagationP * @param body (optional) * @return APIdeleteNamespacedConfigMapRequest */ - public APIdeleteNamespacedConfigMapRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedConfigMapRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -19466,7 +20398,8 @@ public APIdeleteNamespacedConfigMapRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -19482,7 +20415,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -19499,7 +20433,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -19516,7 +20451,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -19535,17 +20471,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedConfigMapRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedConfigMapRequest deleteNamespacedConfigMap(String name, String namespace) { + public APIdeleteNamespacedConfigMapRequest deleteNamespacedConfigMap(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedConfigMapRequest(name, namespace); } - private okhttp3.Call deleteNamespacedEndpointsCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedEndpointsCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -19620,7 +20557,7 @@ private okhttp3.Call deleteNamespacedEndpointsCall(String name, String namespace } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedEndpointsValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedEndpointsValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedEndpoints(Async)"); @@ -19636,13 +20573,13 @@ private okhttp3.Call deleteNamespacedEndpointsValidateBeforeCall(String name, St } - private ApiResponse deleteNamespacedEndpointsWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedEndpointsWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedEndpointsValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedEndpointsAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedEndpointsAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedEndpointsValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -19651,17 +20588,26 @@ private okhttp3.Call deleteNamespacedEndpointsAsync(String name, String namespac } public class APIdeleteNamespacedEndpointsRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedEndpointsRequest(String name, String namespace) { + private APIdeleteNamespacedEndpointsRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -19671,7 +20617,7 @@ private APIdeleteNamespacedEndpointsRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedEndpointsRequest */ - public APIdeleteNamespacedEndpointsRequest pretty(String pretty) { + public APIdeleteNamespacedEndpointsRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -19681,7 +20627,7 @@ public APIdeleteNamespacedEndpointsRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedEndpointsRequest */ - public APIdeleteNamespacedEndpointsRequest dryRun(String dryRun) { + public APIdeleteNamespacedEndpointsRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -19691,7 +20637,7 @@ public APIdeleteNamespacedEndpointsRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedEndpointsRequest */ - public APIdeleteNamespacedEndpointsRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedEndpointsRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -19701,7 +20647,7 @@ public APIdeleteNamespacedEndpointsRequest gracePeriodSeconds(Integer gracePerio * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedEndpointsRequest */ - public APIdeleteNamespacedEndpointsRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedEndpointsRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -19711,7 +20657,7 @@ public APIdeleteNamespacedEndpointsRequest ignoreStoreReadErrorWithClusterBreaki * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedEndpointsRequest */ - public APIdeleteNamespacedEndpointsRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedEndpointsRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -19721,7 +20667,7 @@ public APIdeleteNamespacedEndpointsRequest orphanDependents(Boolean orphanDepend * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedEndpointsRequest */ - public APIdeleteNamespacedEndpointsRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedEndpointsRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -19731,7 +20677,7 @@ public APIdeleteNamespacedEndpointsRequest propagationPolicy(String propagationP * @param body (optional) * @return APIdeleteNamespacedEndpointsRequest */ - public APIdeleteNamespacedEndpointsRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedEndpointsRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -19742,7 +20688,8 @@ public APIdeleteNamespacedEndpointsRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -19758,7 +20705,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -19775,7 +20723,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -19792,7 +20741,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -19811,17 +20761,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedEndpointsRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedEndpointsRequest deleteNamespacedEndpoints(String name, String namespace) { + public APIdeleteNamespacedEndpointsRequest deleteNamespacedEndpoints(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedEndpointsRequest(name, namespace); } - private okhttp3.Call deleteNamespacedEventCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedEventCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -19896,7 +20847,7 @@ private okhttp3.Call deleteNamespacedEventCall(String name, String namespace, St } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedEventValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedEventValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedEvent(Async)"); @@ -19912,13 +20863,13 @@ private okhttp3.Call deleteNamespacedEventValidateBeforeCall(String name, String } - private ApiResponse deleteNamespacedEventWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedEventWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedEventValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedEventAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedEventAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedEventValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -19927,17 +20878,26 @@ private okhttp3.Call deleteNamespacedEventAsync(String name, String namespace, S } public class APIdeleteNamespacedEventRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedEventRequest(String name, String namespace) { + private APIdeleteNamespacedEventRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -19947,7 +20907,7 @@ private APIdeleteNamespacedEventRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedEventRequest */ - public APIdeleteNamespacedEventRequest pretty(String pretty) { + public APIdeleteNamespacedEventRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -19957,7 +20917,7 @@ public APIdeleteNamespacedEventRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedEventRequest */ - public APIdeleteNamespacedEventRequest dryRun(String dryRun) { + public APIdeleteNamespacedEventRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -19967,7 +20927,7 @@ public APIdeleteNamespacedEventRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedEventRequest */ - public APIdeleteNamespacedEventRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedEventRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -19977,7 +20937,7 @@ public APIdeleteNamespacedEventRequest gracePeriodSeconds(Integer gracePeriodSec * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedEventRequest */ - public APIdeleteNamespacedEventRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedEventRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -19987,7 +20947,7 @@ public APIdeleteNamespacedEventRequest ignoreStoreReadErrorWithClusterBreakingPo * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedEventRequest */ - public APIdeleteNamespacedEventRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedEventRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -19997,7 +20957,7 @@ public APIdeleteNamespacedEventRequest orphanDependents(Boolean orphanDependents * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedEventRequest */ - public APIdeleteNamespacedEventRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedEventRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -20007,7 +20967,7 @@ public APIdeleteNamespacedEventRequest propagationPolicy(String propagationPolic * @param body (optional) * @return APIdeleteNamespacedEventRequest */ - public APIdeleteNamespacedEventRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedEventRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -20018,7 +20978,8 @@ public APIdeleteNamespacedEventRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -20034,7 +20995,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -20051,7 +21013,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -20068,7 +21031,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -20087,17 +21051,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedEventRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedEventRequest deleteNamespacedEvent(String name, String namespace) { + public APIdeleteNamespacedEventRequest deleteNamespacedEvent(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedEventRequest(name, namespace); } - private okhttp3.Call deleteNamespacedLimitRangeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedLimitRangeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -20172,7 +21137,7 @@ private okhttp3.Call deleteNamespacedLimitRangeCall(String name, String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedLimitRangeValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedLimitRangeValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedLimitRange(Async)"); @@ -20188,13 +21153,13 @@ private okhttp3.Call deleteNamespacedLimitRangeValidateBeforeCall(String name, S } - private ApiResponse deleteNamespacedLimitRangeWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedLimitRangeWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedLimitRangeValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedLimitRangeAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedLimitRangeAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedLimitRangeValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -20203,17 +21168,26 @@ private okhttp3.Call deleteNamespacedLimitRangeAsync(String name, String namespa } public class APIdeleteNamespacedLimitRangeRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedLimitRangeRequest(String name, String namespace) { + private APIdeleteNamespacedLimitRangeRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -20223,7 +21197,7 @@ private APIdeleteNamespacedLimitRangeRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedLimitRangeRequest */ - public APIdeleteNamespacedLimitRangeRequest pretty(String pretty) { + public APIdeleteNamespacedLimitRangeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -20233,7 +21207,7 @@ public APIdeleteNamespacedLimitRangeRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedLimitRangeRequest */ - public APIdeleteNamespacedLimitRangeRequest dryRun(String dryRun) { + public APIdeleteNamespacedLimitRangeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -20243,7 +21217,7 @@ public APIdeleteNamespacedLimitRangeRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedLimitRangeRequest */ - public APIdeleteNamespacedLimitRangeRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedLimitRangeRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -20253,7 +21227,7 @@ public APIdeleteNamespacedLimitRangeRequest gracePeriodSeconds(Integer gracePeri * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedLimitRangeRequest */ - public APIdeleteNamespacedLimitRangeRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedLimitRangeRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -20263,7 +21237,7 @@ public APIdeleteNamespacedLimitRangeRequest ignoreStoreReadErrorWithClusterBreak * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedLimitRangeRequest */ - public APIdeleteNamespacedLimitRangeRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedLimitRangeRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -20273,7 +21247,7 @@ public APIdeleteNamespacedLimitRangeRequest orphanDependents(Boolean orphanDepen * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedLimitRangeRequest */ - public APIdeleteNamespacedLimitRangeRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedLimitRangeRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -20283,7 +21257,7 @@ public APIdeleteNamespacedLimitRangeRequest propagationPolicy(String propagation * @param body (optional) * @return APIdeleteNamespacedLimitRangeRequest */ - public APIdeleteNamespacedLimitRangeRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedLimitRangeRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -20294,7 +21268,8 @@ public APIdeleteNamespacedLimitRangeRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -20310,7 +21285,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -20327,7 +21303,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -20344,7 +21321,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -20363,17 +21341,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedLimitRangeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedLimitRangeRequest deleteNamespacedLimitRange(String name, String namespace) { + public APIdeleteNamespacedLimitRangeRequest deleteNamespacedLimitRange(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedLimitRangeRequest(name, namespace); } - private okhttp3.Call deleteNamespacedPersistentVolumeClaimCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedPersistentVolumeClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -20448,7 +21427,7 @@ private okhttp3.Call deleteNamespacedPersistentVolumeClaimCall(String name, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedPersistentVolumeClaimValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedPersistentVolumeClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedPersistentVolumeClaim(Async)"); @@ -20464,13 +21443,13 @@ private okhttp3.Call deleteNamespacedPersistentVolumeClaimValidateBeforeCall(Str } - private ApiResponse deleteNamespacedPersistentVolumeClaimWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedPersistentVolumeClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedPersistentVolumeClaimAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedPersistentVolumeClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -20479,17 +21458,26 @@ private okhttp3.Call deleteNamespacedPersistentVolumeClaimAsync(String name, Str } public class APIdeleteNamespacedPersistentVolumeClaimRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedPersistentVolumeClaimRequest(String name, String namespace) { + private APIdeleteNamespacedPersistentVolumeClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -20499,7 +21487,7 @@ private APIdeleteNamespacedPersistentVolumeClaimRequest(String name, String name * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedPersistentVolumeClaimRequest */ - public APIdeleteNamespacedPersistentVolumeClaimRequest pretty(String pretty) { + public APIdeleteNamespacedPersistentVolumeClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -20509,7 +21497,7 @@ public APIdeleteNamespacedPersistentVolumeClaimRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedPersistentVolumeClaimRequest */ - public APIdeleteNamespacedPersistentVolumeClaimRequest dryRun(String dryRun) { + public APIdeleteNamespacedPersistentVolumeClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -20519,7 +21507,7 @@ public APIdeleteNamespacedPersistentVolumeClaimRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedPersistentVolumeClaimRequest */ - public APIdeleteNamespacedPersistentVolumeClaimRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedPersistentVolumeClaimRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -20529,7 +21517,7 @@ public APIdeleteNamespacedPersistentVolumeClaimRequest gracePeriodSeconds(Intege * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedPersistentVolumeClaimRequest */ - public APIdeleteNamespacedPersistentVolumeClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedPersistentVolumeClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -20539,7 +21527,7 @@ public APIdeleteNamespacedPersistentVolumeClaimRequest ignoreStoreReadErrorWithC * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedPersistentVolumeClaimRequest */ - public APIdeleteNamespacedPersistentVolumeClaimRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedPersistentVolumeClaimRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -20549,7 +21537,7 @@ public APIdeleteNamespacedPersistentVolumeClaimRequest orphanDependents(Boolean * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedPersistentVolumeClaimRequest */ - public APIdeleteNamespacedPersistentVolumeClaimRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedPersistentVolumeClaimRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -20559,7 +21547,7 @@ public APIdeleteNamespacedPersistentVolumeClaimRequest propagationPolicy(String * @param body (optional) * @return APIdeleteNamespacedPersistentVolumeClaimRequest */ - public APIdeleteNamespacedPersistentVolumeClaimRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedPersistentVolumeClaimRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -20570,7 +21558,8 @@ public APIdeleteNamespacedPersistentVolumeClaimRequest body(V1DeleteOptions body * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -20586,7 +21575,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PersistentVolumeClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -20603,7 +21593,8 @@ public V1PersistentVolumeClaim execute() throws ApiException { * @return ApiResponse<V1PersistentVolumeClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -20620,7 +21611,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExce * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -20639,17 +21631,18 @@ public okhttp3.Call executeAsync(final ApiCallback _cal * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedPersistentVolumeClaimRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedPersistentVolumeClaimRequest deleteNamespacedPersistentVolumeClaim(String name, String namespace) { + public APIdeleteNamespacedPersistentVolumeClaimRequest deleteNamespacedPersistentVolumeClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedPersistentVolumeClaimRequest(name, namespace); } - private okhttp3.Call deleteNamespacedPodCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedPodCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -20724,7 +21717,7 @@ private okhttp3.Call deleteNamespacedPodCall(String name, String namespace, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedPodValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedPodValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedPod(Async)"); @@ -20740,13 +21733,13 @@ private okhttp3.Call deleteNamespacedPodValidateBeforeCall(String name, String n } - private ApiResponse deleteNamespacedPodWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedPodWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedPodValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedPodAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedPodAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedPodValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -20755,17 +21748,26 @@ private okhttp3.Call deleteNamespacedPodAsync(String name, String namespace, Str } public class APIdeleteNamespacedPodRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedPodRequest(String name, String namespace) { + private APIdeleteNamespacedPodRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -20775,7 +21777,7 @@ private APIdeleteNamespacedPodRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedPodRequest */ - public APIdeleteNamespacedPodRequest pretty(String pretty) { + public APIdeleteNamespacedPodRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -20785,7 +21787,7 @@ public APIdeleteNamespacedPodRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedPodRequest */ - public APIdeleteNamespacedPodRequest dryRun(String dryRun) { + public APIdeleteNamespacedPodRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -20795,7 +21797,7 @@ public APIdeleteNamespacedPodRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedPodRequest */ - public APIdeleteNamespacedPodRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedPodRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -20805,7 +21807,7 @@ public APIdeleteNamespacedPodRequest gracePeriodSeconds(Integer gracePeriodSecon * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedPodRequest */ - public APIdeleteNamespacedPodRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedPodRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -20815,7 +21817,7 @@ public APIdeleteNamespacedPodRequest ignoreStoreReadErrorWithClusterBreakingPote * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedPodRequest */ - public APIdeleteNamespacedPodRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedPodRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -20825,7 +21827,7 @@ public APIdeleteNamespacedPodRequest orphanDependents(Boolean orphanDependents) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedPodRequest */ - public APIdeleteNamespacedPodRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedPodRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -20835,7 +21837,7 @@ public APIdeleteNamespacedPodRequest propagationPolicy(String propagationPolicy) * @param body (optional) * @return APIdeleteNamespacedPodRequest */ - public APIdeleteNamespacedPodRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedPodRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -20846,7 +21848,8 @@ public APIdeleteNamespacedPodRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -20862,7 +21865,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -20879,7 +21883,8 @@ public V1Pod execute() throws ApiException { * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -20896,7 +21901,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -20915,17 +21921,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedPodRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedPodRequest deleteNamespacedPod(String name, String namespace) { + public APIdeleteNamespacedPodRequest deleteNamespacedPod(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedPodRequest(name, namespace); } - private okhttp3.Call deleteNamespacedPodTemplateCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedPodTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -21000,7 +22007,7 @@ private okhttp3.Call deleteNamespacedPodTemplateCall(String name, String namespa } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedPodTemplateValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedPodTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedPodTemplate(Async)"); @@ -21016,13 +22023,13 @@ private okhttp3.Call deleteNamespacedPodTemplateValidateBeforeCall(String name, } - private ApiResponse deleteNamespacedPodTemplateWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedPodTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedPodTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedPodTemplateAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedPodTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedPodTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -21031,17 +22038,26 @@ private okhttp3.Call deleteNamespacedPodTemplateAsync(String name, String namesp } public class APIdeleteNamespacedPodTemplateRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedPodTemplateRequest(String name, String namespace) { + private APIdeleteNamespacedPodTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -21051,7 +22067,7 @@ private APIdeleteNamespacedPodTemplateRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedPodTemplateRequest */ - public APIdeleteNamespacedPodTemplateRequest pretty(String pretty) { + public APIdeleteNamespacedPodTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -21061,7 +22077,7 @@ public APIdeleteNamespacedPodTemplateRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedPodTemplateRequest */ - public APIdeleteNamespacedPodTemplateRequest dryRun(String dryRun) { + public APIdeleteNamespacedPodTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -21071,7 +22087,7 @@ public APIdeleteNamespacedPodTemplateRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedPodTemplateRequest */ - public APIdeleteNamespacedPodTemplateRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedPodTemplateRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -21081,7 +22097,7 @@ public APIdeleteNamespacedPodTemplateRequest gracePeriodSeconds(Integer gracePer * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedPodTemplateRequest */ - public APIdeleteNamespacedPodTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedPodTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -21091,7 +22107,7 @@ public APIdeleteNamespacedPodTemplateRequest ignoreStoreReadErrorWithClusterBrea * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedPodTemplateRequest */ - public APIdeleteNamespacedPodTemplateRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedPodTemplateRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -21101,7 +22117,7 @@ public APIdeleteNamespacedPodTemplateRequest orphanDependents(Boolean orphanDepe * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedPodTemplateRequest */ - public APIdeleteNamespacedPodTemplateRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedPodTemplateRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -21111,7 +22127,7 @@ public APIdeleteNamespacedPodTemplateRequest propagationPolicy(String propagatio * @param body (optional) * @return APIdeleteNamespacedPodTemplateRequest */ - public APIdeleteNamespacedPodTemplateRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedPodTemplateRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -21122,7 +22138,8 @@ public APIdeleteNamespacedPodTemplateRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -21138,7 +22155,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PodTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -21155,7 +22173,8 @@ public V1PodTemplate execute() throws ApiException { * @return ApiResponse<V1PodTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -21172,7 +22191,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -21191,17 +22211,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedPodTemplateRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedPodTemplateRequest deleteNamespacedPodTemplate(String name, String namespace) { + public APIdeleteNamespacedPodTemplateRequest deleteNamespacedPodTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedPodTemplateRequest(name, namespace); } - private okhttp3.Call deleteNamespacedReplicationControllerCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedReplicationControllerCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -21276,7 +22297,7 @@ private okhttp3.Call deleteNamespacedReplicationControllerCall(String name, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedReplicationControllerValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedReplicationControllerValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedReplicationController(Async)"); @@ -21292,13 +22313,13 @@ private okhttp3.Call deleteNamespacedReplicationControllerValidateBeforeCall(Str } - private ApiResponse deleteNamespacedReplicationControllerWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedReplicationControllerWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedReplicationControllerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedReplicationControllerAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedReplicationControllerAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedReplicationControllerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -21307,17 +22328,26 @@ private okhttp3.Call deleteNamespacedReplicationControllerAsync(String name, Str } public class APIdeleteNamespacedReplicationControllerRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedReplicationControllerRequest(String name, String namespace) { + private APIdeleteNamespacedReplicationControllerRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -21327,7 +22357,7 @@ private APIdeleteNamespacedReplicationControllerRequest(String name, String name * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedReplicationControllerRequest */ - public APIdeleteNamespacedReplicationControllerRequest pretty(String pretty) { + public APIdeleteNamespacedReplicationControllerRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -21337,7 +22367,7 @@ public APIdeleteNamespacedReplicationControllerRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedReplicationControllerRequest */ - public APIdeleteNamespacedReplicationControllerRequest dryRun(String dryRun) { + public APIdeleteNamespacedReplicationControllerRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -21347,7 +22377,7 @@ public APIdeleteNamespacedReplicationControllerRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedReplicationControllerRequest */ - public APIdeleteNamespacedReplicationControllerRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedReplicationControllerRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -21357,7 +22387,7 @@ public APIdeleteNamespacedReplicationControllerRequest gracePeriodSeconds(Intege * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedReplicationControllerRequest */ - public APIdeleteNamespacedReplicationControllerRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedReplicationControllerRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -21367,7 +22397,7 @@ public APIdeleteNamespacedReplicationControllerRequest ignoreStoreReadErrorWithC * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedReplicationControllerRequest */ - public APIdeleteNamespacedReplicationControllerRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedReplicationControllerRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -21377,7 +22407,7 @@ public APIdeleteNamespacedReplicationControllerRequest orphanDependents(Boolean * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedReplicationControllerRequest */ - public APIdeleteNamespacedReplicationControllerRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedReplicationControllerRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -21387,7 +22417,7 @@ public APIdeleteNamespacedReplicationControllerRequest propagationPolicy(String * @param body (optional) * @return APIdeleteNamespacedReplicationControllerRequest */ - public APIdeleteNamespacedReplicationControllerRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedReplicationControllerRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -21398,7 +22428,8 @@ public APIdeleteNamespacedReplicationControllerRequest body(V1DeleteOptions body * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -21414,7 +22445,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -21431,7 +22463,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -21448,7 +22481,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -21467,17 +22501,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedReplicationControllerRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedReplicationControllerRequest deleteNamespacedReplicationController(String name, String namespace) { + public APIdeleteNamespacedReplicationControllerRequest deleteNamespacedReplicationController(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedReplicationControllerRequest(name, namespace); } - private okhttp3.Call deleteNamespacedResourceQuotaCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedResourceQuotaCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -21552,7 +22587,7 @@ private okhttp3.Call deleteNamespacedResourceQuotaCall(String name, String names } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedResourceQuotaValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedResourceQuotaValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceQuota(Async)"); @@ -21568,13 +22603,13 @@ private okhttp3.Call deleteNamespacedResourceQuotaValidateBeforeCall(String name } - private ApiResponse deleteNamespacedResourceQuotaWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedResourceQuotaWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedResourceQuotaValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedResourceQuotaAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedResourceQuotaAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedResourceQuotaValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -21583,17 +22618,26 @@ private okhttp3.Call deleteNamespacedResourceQuotaAsync(String name, String name } public class APIdeleteNamespacedResourceQuotaRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedResourceQuotaRequest(String name, String namespace) { + private APIdeleteNamespacedResourceQuotaRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -21603,7 +22647,7 @@ private APIdeleteNamespacedResourceQuotaRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedResourceQuotaRequest */ - public APIdeleteNamespacedResourceQuotaRequest pretty(String pretty) { + public APIdeleteNamespacedResourceQuotaRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -21613,7 +22657,7 @@ public APIdeleteNamespacedResourceQuotaRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedResourceQuotaRequest */ - public APIdeleteNamespacedResourceQuotaRequest dryRun(String dryRun) { + public APIdeleteNamespacedResourceQuotaRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -21623,7 +22667,7 @@ public APIdeleteNamespacedResourceQuotaRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedResourceQuotaRequest */ - public APIdeleteNamespacedResourceQuotaRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedResourceQuotaRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -21633,7 +22677,7 @@ public APIdeleteNamespacedResourceQuotaRequest gracePeriodSeconds(Integer graceP * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedResourceQuotaRequest */ - public APIdeleteNamespacedResourceQuotaRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedResourceQuotaRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -21643,7 +22687,7 @@ public APIdeleteNamespacedResourceQuotaRequest ignoreStoreReadErrorWithClusterBr * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedResourceQuotaRequest */ - public APIdeleteNamespacedResourceQuotaRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedResourceQuotaRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -21653,7 +22697,7 @@ public APIdeleteNamespacedResourceQuotaRequest orphanDependents(Boolean orphanDe * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedResourceQuotaRequest */ - public APIdeleteNamespacedResourceQuotaRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedResourceQuotaRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -21663,7 +22707,7 @@ public APIdeleteNamespacedResourceQuotaRequest propagationPolicy(String propagat * @param body (optional) * @return APIdeleteNamespacedResourceQuotaRequest */ - public APIdeleteNamespacedResourceQuotaRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedResourceQuotaRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -21674,7 +22718,8 @@ public APIdeleteNamespacedResourceQuotaRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -21690,7 +22735,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ResourceQuota * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -21707,7 +22753,8 @@ public V1ResourceQuota execute() throws ApiException { * @return ApiResponse<V1ResourceQuota> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -21724,7 +22771,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -21743,17 +22791,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedResourceQuotaRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedResourceQuotaRequest deleteNamespacedResourceQuota(String name, String namespace) { + public APIdeleteNamespacedResourceQuotaRequest deleteNamespacedResourceQuota(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedResourceQuotaRequest(name, namespace); } - private okhttp3.Call deleteNamespacedSecretCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedSecretCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -21828,7 +22877,7 @@ private okhttp3.Call deleteNamespacedSecretCall(String name, String namespace, S } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedSecretValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedSecretValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedSecret(Async)"); @@ -21844,13 +22893,13 @@ private okhttp3.Call deleteNamespacedSecretValidateBeforeCall(String name, Strin } - private ApiResponse deleteNamespacedSecretWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedSecretWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedSecretValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedSecretAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedSecretAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedSecretValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -21859,17 +22908,26 @@ private okhttp3.Call deleteNamespacedSecretAsync(String name, String namespace, } public class APIdeleteNamespacedSecretRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedSecretRequest(String name, String namespace) { + private APIdeleteNamespacedSecretRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -21879,7 +22937,7 @@ private APIdeleteNamespacedSecretRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedSecretRequest */ - public APIdeleteNamespacedSecretRequest pretty(String pretty) { + public APIdeleteNamespacedSecretRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -21889,7 +22947,7 @@ public APIdeleteNamespacedSecretRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedSecretRequest */ - public APIdeleteNamespacedSecretRequest dryRun(String dryRun) { + public APIdeleteNamespacedSecretRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -21899,7 +22957,7 @@ public APIdeleteNamespacedSecretRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedSecretRequest */ - public APIdeleteNamespacedSecretRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedSecretRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -21909,7 +22967,7 @@ public APIdeleteNamespacedSecretRequest gracePeriodSeconds(Integer gracePeriodSe * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedSecretRequest */ - public APIdeleteNamespacedSecretRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedSecretRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -21919,7 +22977,7 @@ public APIdeleteNamespacedSecretRequest ignoreStoreReadErrorWithClusterBreakingP * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedSecretRequest */ - public APIdeleteNamespacedSecretRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedSecretRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -21929,7 +22987,7 @@ public APIdeleteNamespacedSecretRequest orphanDependents(Boolean orphanDependent * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedSecretRequest */ - public APIdeleteNamespacedSecretRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedSecretRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -21939,7 +22997,7 @@ public APIdeleteNamespacedSecretRequest propagationPolicy(String propagationPoli * @param body (optional) * @return APIdeleteNamespacedSecretRequest */ - public APIdeleteNamespacedSecretRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedSecretRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -21950,7 +23008,8 @@ public APIdeleteNamespacedSecretRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -21966,7 +23025,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -21983,7 +23043,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -22000,7 +23061,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -22019,17 +23081,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedSecretRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedSecretRequest deleteNamespacedSecret(String name, String namespace) { + public APIdeleteNamespacedSecretRequest deleteNamespacedSecret(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedSecretRequest(name, namespace); } - private okhttp3.Call deleteNamespacedServiceCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedServiceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -22104,7 +23167,7 @@ private okhttp3.Call deleteNamespacedServiceCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedServiceValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedServiceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedService(Async)"); @@ -22120,13 +23183,13 @@ private okhttp3.Call deleteNamespacedServiceValidateBeforeCall(String name, Stri } - private ApiResponse deleteNamespacedServiceWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedServiceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedServiceValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedServiceAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedServiceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedServiceValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -22135,17 +23198,26 @@ private okhttp3.Call deleteNamespacedServiceAsync(String name, String namespace, } public class APIdeleteNamespacedServiceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedServiceRequest(String name, String namespace) { + private APIdeleteNamespacedServiceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -22155,7 +23227,7 @@ private APIdeleteNamespacedServiceRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedServiceRequest */ - public APIdeleteNamespacedServiceRequest pretty(String pretty) { + public APIdeleteNamespacedServiceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -22165,7 +23237,7 @@ public APIdeleteNamespacedServiceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedServiceRequest */ - public APIdeleteNamespacedServiceRequest dryRun(String dryRun) { + public APIdeleteNamespacedServiceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -22175,7 +23247,7 @@ public APIdeleteNamespacedServiceRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedServiceRequest */ - public APIdeleteNamespacedServiceRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedServiceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -22185,7 +23257,7 @@ public APIdeleteNamespacedServiceRequest gracePeriodSeconds(Integer gracePeriodS * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedServiceRequest */ - public APIdeleteNamespacedServiceRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedServiceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -22195,7 +23267,7 @@ public APIdeleteNamespacedServiceRequest ignoreStoreReadErrorWithClusterBreaking * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedServiceRequest */ - public APIdeleteNamespacedServiceRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedServiceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -22205,7 +23277,7 @@ public APIdeleteNamespacedServiceRequest orphanDependents(Boolean orphanDependen * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedServiceRequest */ - public APIdeleteNamespacedServiceRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedServiceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -22215,7 +23287,7 @@ public APIdeleteNamespacedServiceRequest propagationPolicy(String propagationPol * @param body (optional) * @return APIdeleteNamespacedServiceRequest */ - public APIdeleteNamespacedServiceRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedServiceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -22226,7 +23298,8 @@ public APIdeleteNamespacedServiceRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -22242,7 +23315,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Service * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -22259,7 +23333,8 @@ public V1Service execute() throws ApiException { * @return ApiResponse<V1Service> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -22276,7 +23351,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -22295,17 +23371,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedServiceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedServiceRequest deleteNamespacedService(String name, String namespace) { + public APIdeleteNamespacedServiceRequest deleteNamespacedService(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedServiceRequest(name, namespace); } - private okhttp3.Call deleteNamespacedServiceAccountCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedServiceAccountCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -22380,7 +23457,7 @@ private okhttp3.Call deleteNamespacedServiceAccountCall(String name, String name } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedServiceAccountValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedServiceAccountValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedServiceAccount(Async)"); @@ -22396,13 +23473,13 @@ private okhttp3.Call deleteNamespacedServiceAccountValidateBeforeCall(String nam } - private ApiResponse deleteNamespacedServiceAccountWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedServiceAccountWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedServiceAccountValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedServiceAccountAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedServiceAccountAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedServiceAccountValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -22411,17 +23488,26 @@ private okhttp3.Call deleteNamespacedServiceAccountAsync(String name, String nam } public class APIdeleteNamespacedServiceAccountRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedServiceAccountRequest(String name, String namespace) { + private APIdeleteNamespacedServiceAccountRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -22431,7 +23517,7 @@ private APIdeleteNamespacedServiceAccountRequest(String name, String namespace) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedServiceAccountRequest */ - public APIdeleteNamespacedServiceAccountRequest pretty(String pretty) { + public APIdeleteNamespacedServiceAccountRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -22441,7 +23527,7 @@ public APIdeleteNamespacedServiceAccountRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedServiceAccountRequest */ - public APIdeleteNamespacedServiceAccountRequest dryRun(String dryRun) { + public APIdeleteNamespacedServiceAccountRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -22451,7 +23537,7 @@ public APIdeleteNamespacedServiceAccountRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedServiceAccountRequest */ - public APIdeleteNamespacedServiceAccountRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedServiceAccountRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -22461,7 +23547,7 @@ public APIdeleteNamespacedServiceAccountRequest gracePeriodSeconds(Integer grace * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedServiceAccountRequest */ - public APIdeleteNamespacedServiceAccountRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedServiceAccountRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -22471,7 +23557,7 @@ public APIdeleteNamespacedServiceAccountRequest ignoreStoreReadErrorWithClusterB * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedServiceAccountRequest */ - public APIdeleteNamespacedServiceAccountRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedServiceAccountRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -22481,7 +23567,7 @@ public APIdeleteNamespacedServiceAccountRequest orphanDependents(Boolean orphanD * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedServiceAccountRequest */ - public APIdeleteNamespacedServiceAccountRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedServiceAccountRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -22491,7 +23577,7 @@ public APIdeleteNamespacedServiceAccountRequest propagationPolicy(String propaga * @param body (optional) * @return APIdeleteNamespacedServiceAccountRequest */ - public APIdeleteNamespacedServiceAccountRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedServiceAccountRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -22502,7 +23588,8 @@ public APIdeleteNamespacedServiceAccountRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -22518,7 +23605,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ServiceAccount * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -22535,7 +23623,8 @@ public V1ServiceAccount execute() throws ApiException { * @return ApiResponse<V1ServiceAccount> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -22552,7 +23641,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -22571,17 +23661,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedServiceAccountRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedServiceAccountRequest deleteNamespacedServiceAccount(String name, String namespace) { + public APIdeleteNamespacedServiceAccountRequest deleteNamespacedServiceAccount(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedServiceAccountRequest(name, namespace); } - private okhttp3.Call deleteNodeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNodeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -22655,7 +23746,7 @@ private okhttp3.Call deleteNodeCall(String name, String pretty, String dryRun, I } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNodeValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNodeValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNode(Async)"); @@ -22666,13 +23757,13 @@ private okhttp3.Call deleteNodeValidateBeforeCall(String name, String pretty, St } - private ApiResponse deleteNodeWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNodeWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNodeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNodeAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNodeAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNodeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -22681,16 +23772,24 @@ private okhttp3.Call deleteNodeAsync(String name, String pretty, String dryRun, } public class APIdeleteNodeRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNodeRequest(String name) { + private APIdeleteNodeRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -22699,7 +23798,7 @@ private APIdeleteNodeRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNodeRequest */ - public APIdeleteNodeRequest pretty(String pretty) { + public APIdeleteNodeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -22709,7 +23808,7 @@ public APIdeleteNodeRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNodeRequest */ - public APIdeleteNodeRequest dryRun(String dryRun) { + public APIdeleteNodeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -22719,7 +23818,7 @@ public APIdeleteNodeRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNodeRequest */ - public APIdeleteNodeRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNodeRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -22729,7 +23828,7 @@ public APIdeleteNodeRequest gracePeriodSeconds(Integer gracePeriodSeconds) { * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNodeRequest */ - public APIdeleteNodeRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNodeRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -22739,7 +23838,7 @@ public APIdeleteNodeRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boo * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNodeRequest */ - public APIdeleteNodeRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNodeRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -22749,7 +23848,7 @@ public APIdeleteNodeRequest orphanDependents(Boolean orphanDependents) { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNodeRequest */ - public APIdeleteNodeRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNodeRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -22759,7 +23858,7 @@ public APIdeleteNodeRequest propagationPolicy(String propagationPolicy) { * @param body (optional) * @return APIdeleteNodeRequest */ - public APIdeleteNodeRequest body(V1DeleteOptions body) { + public APIdeleteNodeRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -22770,7 +23869,8 @@ public APIdeleteNodeRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -22786,7 +23886,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -22803,7 +23904,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -22820,7 +23922,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -22838,17 +23941,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the Node (required) * @return APIdeleteNodeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNodeRequest deleteNode(String name) { + public APIdeleteNodeRequest deleteNode(@jakarta.annotation.Nonnull String name) { return new APIdeleteNodeRequest(name); } - private okhttp3.Call deletePersistentVolumeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePersistentVolumeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -22922,7 +24026,7 @@ private okhttp3.Call deletePersistentVolumeCall(String name, String pretty, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call deletePersistentVolumeValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePersistentVolumeValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deletePersistentVolume(Async)"); @@ -22933,13 +24037,13 @@ private okhttp3.Call deletePersistentVolumeValidateBeforeCall(String name, Strin } - private ApiResponse deletePersistentVolumeWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deletePersistentVolumeWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deletePersistentVolumeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deletePersistentVolumeAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePersistentVolumeAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deletePersistentVolumeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -22948,16 +24052,24 @@ private okhttp3.Call deletePersistentVolumeAsync(String name, String pretty, Str } public class APIdeletePersistentVolumeRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeletePersistentVolumeRequest(String name) { + private APIdeletePersistentVolumeRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -22966,7 +24078,7 @@ private APIdeletePersistentVolumeRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeletePersistentVolumeRequest */ - public APIdeletePersistentVolumeRequest pretty(String pretty) { + public APIdeletePersistentVolumeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -22976,7 +24088,7 @@ public APIdeletePersistentVolumeRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeletePersistentVolumeRequest */ - public APIdeletePersistentVolumeRequest dryRun(String dryRun) { + public APIdeletePersistentVolumeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -22986,7 +24098,7 @@ public APIdeletePersistentVolumeRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeletePersistentVolumeRequest */ - public APIdeletePersistentVolumeRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeletePersistentVolumeRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -22996,7 +24108,7 @@ public APIdeletePersistentVolumeRequest gracePeriodSeconds(Integer gracePeriodSe * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeletePersistentVolumeRequest */ - public APIdeletePersistentVolumeRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeletePersistentVolumeRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -23006,7 +24118,7 @@ public APIdeletePersistentVolumeRequest ignoreStoreReadErrorWithClusterBreakingP * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeletePersistentVolumeRequest */ - public APIdeletePersistentVolumeRequest orphanDependents(Boolean orphanDependents) { + public APIdeletePersistentVolumeRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -23016,7 +24128,7 @@ public APIdeletePersistentVolumeRequest orphanDependents(Boolean orphanDependent * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeletePersistentVolumeRequest */ - public APIdeletePersistentVolumeRequest propagationPolicy(String propagationPolicy) { + public APIdeletePersistentVolumeRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -23026,7 +24138,7 @@ public APIdeletePersistentVolumeRequest propagationPolicy(String propagationPoli * @param body (optional) * @return APIdeletePersistentVolumeRequest */ - public APIdeletePersistentVolumeRequest body(V1DeleteOptions body) { + public APIdeletePersistentVolumeRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -23037,7 +24149,8 @@ public APIdeletePersistentVolumeRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -23053,7 +24166,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PersistentVolume * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -23070,7 +24184,8 @@ public V1PersistentVolume execute() throws ApiException { * @return ApiResponse<V1PersistentVolume> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -23087,7 +24202,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -23105,14 +24221,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param name name of the PersistentVolume (required) * @return APIdeletePersistentVolumeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeletePersistentVolumeRequest deletePersistentVolume(String name) { + public APIdeletePersistentVolumeRequest deletePersistentVolume(@jakarta.annotation.Nonnull String name) { return new APIdeletePersistentVolumeRequest(name); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -23194,7 +24311,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -23209,7 +24327,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -23225,7 +24344,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -23241,7 +24361,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -23257,7 +24378,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -23266,7 +24388,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listComponentStatusCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listComponentStatusCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -23361,19 +24483,19 @@ private okhttp3.Call listComponentStatusCall(Boolean allowWatchBookmarks, String } @SuppressWarnings("rawtypes") - private okhttp3.Call listComponentStatusValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listComponentStatusValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listComponentStatusCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listComponentStatusWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listComponentStatusWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listComponentStatusValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listComponentStatusAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listComponentStatusAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listComponentStatusValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -23382,16 +24504,27 @@ private okhttp3.Call listComponentStatusAsync(Boolean allowWatchBookmarks, Strin } public class APIlistComponentStatusRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistComponentStatusRequest() { @@ -23402,7 +24535,7 @@ private APIlistComponentStatusRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistComponentStatusRequest */ - public APIlistComponentStatusRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistComponentStatusRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -23412,7 +24545,7 @@ public APIlistComponentStatusRequest allowWatchBookmarks(Boolean allowWatchBookm * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistComponentStatusRequest */ - public APIlistComponentStatusRequest _continue(String _continue) { + public APIlistComponentStatusRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -23422,7 +24555,7 @@ public APIlistComponentStatusRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistComponentStatusRequest */ - public APIlistComponentStatusRequest fieldSelector(String fieldSelector) { + public APIlistComponentStatusRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -23432,7 +24565,7 @@ public APIlistComponentStatusRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistComponentStatusRequest */ - public APIlistComponentStatusRequest labelSelector(String labelSelector) { + public APIlistComponentStatusRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -23442,7 +24575,7 @@ public APIlistComponentStatusRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistComponentStatusRequest */ - public APIlistComponentStatusRequest limit(Integer limit) { + public APIlistComponentStatusRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -23452,7 +24585,7 @@ public APIlistComponentStatusRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistComponentStatusRequest */ - public APIlistComponentStatusRequest pretty(String pretty) { + public APIlistComponentStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -23462,7 +24595,7 @@ public APIlistComponentStatusRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistComponentStatusRequest */ - public APIlistComponentStatusRequest resourceVersion(String resourceVersion) { + public APIlistComponentStatusRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -23472,7 +24605,7 @@ public APIlistComponentStatusRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistComponentStatusRequest */ - public APIlistComponentStatusRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistComponentStatusRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -23482,7 +24615,7 @@ public APIlistComponentStatusRequest resourceVersionMatch(String resourceVersion * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistComponentStatusRequest */ - public APIlistComponentStatusRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistComponentStatusRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -23492,7 +24625,7 @@ public APIlistComponentStatusRequest sendInitialEvents(Boolean sendInitialEvents * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistComponentStatusRequest */ - public APIlistComponentStatusRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistComponentStatusRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -23502,7 +24635,7 @@ public APIlistComponentStatusRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistComponentStatusRequest */ - public APIlistComponentStatusRequest watch(Boolean watch) { + public APIlistComponentStatusRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -23513,7 +24646,8 @@ public APIlistComponentStatusRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -23528,7 +24662,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ComponentStatusList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -23544,7 +24679,8 @@ public V1ComponentStatusList execute() throws ApiException { * @return ApiResponse<V1ComponentStatusList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -23560,7 +24696,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -23576,7 +24713,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callb * list objects of kind ComponentStatus * @return APIlistComponentStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -23585,7 +24723,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb public APIlistComponentStatusRequest listComponentStatus() { return new APIlistComponentStatusRequest(); } - private okhttp3.Call listConfigMapForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listConfigMapForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -23680,19 +24818,19 @@ private okhttp3.Call listConfigMapForAllNamespacesCall(Boolean allowWatchBookmar } @SuppressWarnings("rawtypes") - private okhttp3.Call listConfigMapForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listConfigMapForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listConfigMapForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listConfigMapForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listConfigMapForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listConfigMapForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listConfigMapForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listConfigMapForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listConfigMapForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -23701,16 +24839,27 @@ private okhttp3.Call listConfigMapForAllNamespacesAsync(Boolean allowWatchBookma } public class APIlistConfigMapForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistConfigMapForAllNamespacesRequest() { @@ -23721,7 +24870,7 @@ private APIlistConfigMapForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistConfigMapForAllNamespacesRequest */ - public APIlistConfigMapForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistConfigMapForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -23731,7 +24880,7 @@ public APIlistConfigMapForAllNamespacesRequest allowWatchBookmarks(Boolean allow * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistConfigMapForAllNamespacesRequest */ - public APIlistConfigMapForAllNamespacesRequest _continue(String _continue) { + public APIlistConfigMapForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -23741,7 +24890,7 @@ public APIlistConfigMapForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistConfigMapForAllNamespacesRequest */ - public APIlistConfigMapForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistConfigMapForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -23751,7 +24900,7 @@ public APIlistConfigMapForAllNamespacesRequest fieldSelector(String fieldSelecto * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistConfigMapForAllNamespacesRequest */ - public APIlistConfigMapForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistConfigMapForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -23761,7 +24910,7 @@ public APIlistConfigMapForAllNamespacesRequest labelSelector(String labelSelecto * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistConfigMapForAllNamespacesRequest */ - public APIlistConfigMapForAllNamespacesRequest limit(Integer limit) { + public APIlistConfigMapForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -23771,7 +24920,7 @@ public APIlistConfigMapForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistConfigMapForAllNamespacesRequest */ - public APIlistConfigMapForAllNamespacesRequest pretty(String pretty) { + public APIlistConfigMapForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -23781,7 +24930,7 @@ public APIlistConfigMapForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistConfigMapForAllNamespacesRequest */ - public APIlistConfigMapForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistConfigMapForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -23791,7 +24940,7 @@ public APIlistConfigMapForAllNamespacesRequest resourceVersion(String resourceVe * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistConfigMapForAllNamespacesRequest */ - public APIlistConfigMapForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistConfigMapForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -23801,7 +24950,7 @@ public APIlistConfigMapForAllNamespacesRequest resourceVersionMatch(String resou * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistConfigMapForAllNamespacesRequest */ - public APIlistConfigMapForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistConfigMapForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -23811,7 +24960,7 @@ public APIlistConfigMapForAllNamespacesRequest sendInitialEvents(Boolean sendIni * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistConfigMapForAllNamespacesRequest */ - public APIlistConfigMapForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistConfigMapForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -23821,7 +24970,7 @@ public APIlistConfigMapForAllNamespacesRequest timeoutSeconds(Integer timeoutSec * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistConfigMapForAllNamespacesRequest */ - public APIlistConfigMapForAllNamespacesRequest watch(Boolean watch) { + public APIlistConfigMapForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -23832,7 +24981,8 @@ public APIlistConfigMapForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -23847,7 +24997,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ConfigMapList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -23863,7 +25014,8 @@ public V1ConfigMapList execute() throws ApiException { * @return ApiResponse<V1ConfigMapList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -23879,7 +25031,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -23895,7 +25048,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * list or watch objects of kind ConfigMap * @return APIlistConfigMapForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -23904,7 +25058,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t public APIlistConfigMapForAllNamespacesRequest listConfigMapForAllNamespaces() { return new APIlistConfigMapForAllNamespacesRequest(); } - private okhttp3.Call listEndpointsForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEndpointsForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -23999,19 +25153,19 @@ private okhttp3.Call listEndpointsForAllNamespacesCall(Boolean allowWatchBookmar } @SuppressWarnings("rawtypes") - private okhttp3.Call listEndpointsForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEndpointsForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listEndpointsForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listEndpointsForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listEndpointsForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listEndpointsForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listEndpointsForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEndpointsForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listEndpointsForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -24020,16 +25174,27 @@ private okhttp3.Call listEndpointsForAllNamespacesAsync(Boolean allowWatchBookma } public class APIlistEndpointsForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistEndpointsForAllNamespacesRequest() { @@ -24040,7 +25205,7 @@ private APIlistEndpointsForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistEndpointsForAllNamespacesRequest */ - public APIlistEndpointsForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistEndpointsForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -24050,7 +25215,7 @@ public APIlistEndpointsForAllNamespacesRequest allowWatchBookmarks(Boolean allow * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistEndpointsForAllNamespacesRequest */ - public APIlistEndpointsForAllNamespacesRequest _continue(String _continue) { + public APIlistEndpointsForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -24060,7 +25225,7 @@ public APIlistEndpointsForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistEndpointsForAllNamespacesRequest */ - public APIlistEndpointsForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistEndpointsForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -24070,7 +25235,7 @@ public APIlistEndpointsForAllNamespacesRequest fieldSelector(String fieldSelecto * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistEndpointsForAllNamespacesRequest */ - public APIlistEndpointsForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistEndpointsForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -24080,7 +25245,7 @@ public APIlistEndpointsForAllNamespacesRequest labelSelector(String labelSelecto * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistEndpointsForAllNamespacesRequest */ - public APIlistEndpointsForAllNamespacesRequest limit(Integer limit) { + public APIlistEndpointsForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -24090,7 +25255,7 @@ public APIlistEndpointsForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistEndpointsForAllNamespacesRequest */ - public APIlistEndpointsForAllNamespacesRequest pretty(String pretty) { + public APIlistEndpointsForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -24100,7 +25265,7 @@ public APIlistEndpointsForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistEndpointsForAllNamespacesRequest */ - public APIlistEndpointsForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistEndpointsForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -24110,7 +25275,7 @@ public APIlistEndpointsForAllNamespacesRequest resourceVersion(String resourceVe * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistEndpointsForAllNamespacesRequest */ - public APIlistEndpointsForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistEndpointsForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -24120,7 +25285,7 @@ public APIlistEndpointsForAllNamespacesRequest resourceVersionMatch(String resou * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistEndpointsForAllNamespacesRequest */ - public APIlistEndpointsForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistEndpointsForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -24130,7 +25295,7 @@ public APIlistEndpointsForAllNamespacesRequest sendInitialEvents(Boolean sendIni * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistEndpointsForAllNamespacesRequest */ - public APIlistEndpointsForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistEndpointsForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -24140,7 +25305,7 @@ public APIlistEndpointsForAllNamespacesRequest timeoutSeconds(Integer timeoutSec * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistEndpointsForAllNamespacesRequest */ - public APIlistEndpointsForAllNamespacesRequest watch(Boolean watch) { + public APIlistEndpointsForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -24151,7 +25316,8 @@ public APIlistEndpointsForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -24166,7 +25332,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1EndpointsList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -24182,7 +25349,8 @@ public V1EndpointsList execute() throws ApiException { * @return ApiResponse<V1EndpointsList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -24198,7 +25366,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -24214,7 +25383,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * list or watch objects of kind Endpoints * @return APIlistEndpointsForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -24223,7 +25393,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t public APIlistEndpointsForAllNamespacesRequest listEndpointsForAllNamespaces() { return new APIlistEndpointsForAllNamespacesRequest(); } - private okhttp3.Call listEventForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEventForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -24318,19 +25488,19 @@ private okhttp3.Call listEventForAllNamespacesCall(Boolean allowWatchBookmarks, } @SuppressWarnings("rawtypes") - private okhttp3.Call listEventForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEventForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listEventForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listEventForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listEventForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listEventForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listEventForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEventForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listEventForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -24339,16 +25509,27 @@ private okhttp3.Call listEventForAllNamespacesAsync(Boolean allowWatchBookmarks, } public class APIlistEventForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistEventForAllNamespacesRequest() { @@ -24359,7 +25540,7 @@ private APIlistEventForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistEventForAllNamespacesRequest */ - public APIlistEventForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistEventForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -24369,7 +25550,7 @@ public APIlistEventForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatc * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistEventForAllNamespacesRequest */ - public APIlistEventForAllNamespacesRequest _continue(String _continue) { + public APIlistEventForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -24379,7 +25560,7 @@ public APIlistEventForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistEventForAllNamespacesRequest */ - public APIlistEventForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistEventForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -24389,7 +25570,7 @@ public APIlistEventForAllNamespacesRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistEventForAllNamespacesRequest */ - public APIlistEventForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistEventForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -24399,7 +25580,7 @@ public APIlistEventForAllNamespacesRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistEventForAllNamespacesRequest */ - public APIlistEventForAllNamespacesRequest limit(Integer limit) { + public APIlistEventForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -24409,7 +25590,7 @@ public APIlistEventForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistEventForAllNamespacesRequest */ - public APIlistEventForAllNamespacesRequest pretty(String pretty) { + public APIlistEventForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -24419,7 +25600,7 @@ public APIlistEventForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistEventForAllNamespacesRequest */ - public APIlistEventForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistEventForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -24429,7 +25610,7 @@ public APIlistEventForAllNamespacesRequest resourceVersion(String resourceVersio * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistEventForAllNamespacesRequest */ - public APIlistEventForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistEventForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -24439,7 +25620,7 @@ public APIlistEventForAllNamespacesRequest resourceVersionMatch(String resourceV * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistEventForAllNamespacesRequest */ - public APIlistEventForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistEventForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -24449,7 +25630,7 @@ public APIlistEventForAllNamespacesRequest sendInitialEvents(Boolean sendInitial * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistEventForAllNamespacesRequest */ - public APIlistEventForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistEventForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -24459,7 +25640,7 @@ public APIlistEventForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistEventForAllNamespacesRequest */ - public APIlistEventForAllNamespacesRequest watch(Boolean watch) { + public APIlistEventForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -24470,7 +25651,8 @@ public APIlistEventForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -24485,7 +25667,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return CoreV1EventList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -24501,7 +25684,8 @@ public CoreV1EventList execute() throws ApiException { * @return ApiResponse<CoreV1EventList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -24517,7 +25701,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -24533,7 +25718,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * list or watch objects of kind Event * @return APIlistEventForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -24542,7 +25728,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t public APIlistEventForAllNamespacesRequest listEventForAllNamespaces() { return new APIlistEventForAllNamespacesRequest(); } - private okhttp3.Call listLimitRangeForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listLimitRangeForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -24637,19 +25823,19 @@ private okhttp3.Call listLimitRangeForAllNamespacesCall(Boolean allowWatchBookma } @SuppressWarnings("rawtypes") - private okhttp3.Call listLimitRangeForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listLimitRangeForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listLimitRangeForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listLimitRangeForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listLimitRangeForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listLimitRangeForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listLimitRangeForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listLimitRangeForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listLimitRangeForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -24658,16 +25844,27 @@ private okhttp3.Call listLimitRangeForAllNamespacesAsync(Boolean allowWatchBookm } public class APIlistLimitRangeForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistLimitRangeForAllNamespacesRequest() { @@ -24678,7 +25875,7 @@ private APIlistLimitRangeForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistLimitRangeForAllNamespacesRequest */ - public APIlistLimitRangeForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistLimitRangeForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -24688,7 +25885,7 @@ public APIlistLimitRangeForAllNamespacesRequest allowWatchBookmarks(Boolean allo * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistLimitRangeForAllNamespacesRequest */ - public APIlistLimitRangeForAllNamespacesRequest _continue(String _continue) { + public APIlistLimitRangeForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -24698,7 +25895,7 @@ public APIlistLimitRangeForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistLimitRangeForAllNamespacesRequest */ - public APIlistLimitRangeForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistLimitRangeForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -24708,7 +25905,7 @@ public APIlistLimitRangeForAllNamespacesRequest fieldSelector(String fieldSelect * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistLimitRangeForAllNamespacesRequest */ - public APIlistLimitRangeForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistLimitRangeForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -24718,7 +25915,7 @@ public APIlistLimitRangeForAllNamespacesRequest labelSelector(String labelSelect * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistLimitRangeForAllNamespacesRequest */ - public APIlistLimitRangeForAllNamespacesRequest limit(Integer limit) { + public APIlistLimitRangeForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -24728,7 +25925,7 @@ public APIlistLimitRangeForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistLimitRangeForAllNamespacesRequest */ - public APIlistLimitRangeForAllNamespacesRequest pretty(String pretty) { + public APIlistLimitRangeForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -24738,7 +25935,7 @@ public APIlistLimitRangeForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistLimitRangeForAllNamespacesRequest */ - public APIlistLimitRangeForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistLimitRangeForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -24748,7 +25945,7 @@ public APIlistLimitRangeForAllNamespacesRequest resourceVersion(String resourceV * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistLimitRangeForAllNamespacesRequest */ - public APIlistLimitRangeForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistLimitRangeForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -24758,7 +25955,7 @@ public APIlistLimitRangeForAllNamespacesRequest resourceVersionMatch(String reso * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistLimitRangeForAllNamespacesRequest */ - public APIlistLimitRangeForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistLimitRangeForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -24768,7 +25965,7 @@ public APIlistLimitRangeForAllNamespacesRequest sendInitialEvents(Boolean sendIn * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistLimitRangeForAllNamespacesRequest */ - public APIlistLimitRangeForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistLimitRangeForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -24778,7 +25975,7 @@ public APIlistLimitRangeForAllNamespacesRequest timeoutSeconds(Integer timeoutSe * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistLimitRangeForAllNamespacesRequest */ - public APIlistLimitRangeForAllNamespacesRequest watch(Boolean watch) { + public APIlistLimitRangeForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -24789,7 +25986,8 @@ public APIlistLimitRangeForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -24804,7 +26002,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1LimitRangeList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -24820,7 +26019,8 @@ public V1LimitRangeList execute() throws ApiException { * @return ApiResponse<V1LimitRangeList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -24836,7 +26036,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -24852,7 +26053,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * list or watch objects of kind LimitRange * @return APIlistLimitRangeForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -24861,7 +26063,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistLimitRangeForAllNamespacesRequest listLimitRangeForAllNamespaces() { return new APIlistLimitRangeForAllNamespacesRequest(); } - private okhttp3.Call listNamespaceCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespaceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -24956,19 +26158,19 @@ private okhttp3.Call listNamespaceCall(String pretty, Boolean allowWatchBookmark } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespaceValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespaceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listNamespaceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespaceWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespaceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespaceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespaceAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespaceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespaceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -24977,16 +26179,27 @@ private okhttp3.Call listNamespaceAsync(String pretty, Boolean allowWatchBookmar } public class APIlistNamespaceRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistNamespaceRequest() { @@ -24997,7 +26210,7 @@ private APIlistNamespaceRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespaceRequest */ - public APIlistNamespaceRequest pretty(String pretty) { + public APIlistNamespaceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -25007,7 +26220,7 @@ public APIlistNamespaceRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespaceRequest */ - public APIlistNamespaceRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespaceRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -25017,7 +26230,7 @@ public APIlistNamespaceRequest allowWatchBookmarks(Boolean allowWatchBookmarks) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespaceRequest */ - public APIlistNamespaceRequest _continue(String _continue) { + public APIlistNamespaceRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -25027,7 +26240,7 @@ public APIlistNamespaceRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespaceRequest */ - public APIlistNamespaceRequest fieldSelector(String fieldSelector) { + public APIlistNamespaceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -25037,7 +26250,7 @@ public APIlistNamespaceRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespaceRequest */ - public APIlistNamespaceRequest labelSelector(String labelSelector) { + public APIlistNamespaceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -25047,7 +26260,7 @@ public APIlistNamespaceRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespaceRequest */ - public APIlistNamespaceRequest limit(Integer limit) { + public APIlistNamespaceRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -25057,7 +26270,7 @@ public APIlistNamespaceRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespaceRequest */ - public APIlistNamespaceRequest resourceVersion(String resourceVersion) { + public APIlistNamespaceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -25067,7 +26280,7 @@ public APIlistNamespaceRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespaceRequest */ - public APIlistNamespaceRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespaceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -25077,7 +26290,7 @@ public APIlistNamespaceRequest resourceVersionMatch(String resourceVersionMatch) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespaceRequest */ - public APIlistNamespaceRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespaceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -25087,7 +26300,7 @@ public APIlistNamespaceRequest sendInitialEvents(Boolean sendInitialEvents) { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespaceRequest */ - public APIlistNamespaceRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespaceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -25097,7 +26310,7 @@ public APIlistNamespaceRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespaceRequest */ - public APIlistNamespaceRequest watch(Boolean watch) { + public APIlistNamespaceRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -25108,7 +26321,8 @@ public APIlistNamespaceRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -25123,7 +26337,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1NamespaceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -25139,7 +26354,8 @@ public V1NamespaceList execute() throws ApiException { * @return ApiResponse<V1NamespaceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -25155,7 +26371,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -25171,7 +26388,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * list or watch objects of kind Namespace * @return APIlistNamespaceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -25180,7 +26398,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t public APIlistNamespaceRequest listNamespace() { return new APIlistNamespaceRequest(); } - private okhttp3.Call listNamespacedConfigMapCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedConfigMapCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -25276,7 +26494,7 @@ private okhttp3.Call listNamespacedConfigMapCall(String namespace, String pretty } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedConfigMapValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedConfigMapValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedConfigMap(Async)"); @@ -25287,13 +26505,13 @@ private okhttp3.Call listNamespacedConfigMapValidateBeforeCall(String namespace, } - private ApiResponse listNamespacedConfigMapWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedConfigMapWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedConfigMapValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedConfigMapAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedConfigMapAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedConfigMapValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -25302,20 +26520,32 @@ private okhttp3.Call listNamespacedConfigMapAsync(String namespace, String prett } public class APIlistNamespacedConfigMapRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedConfigMapRequest(String namespace) { + private APIlistNamespacedConfigMapRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -25324,7 +26554,7 @@ private APIlistNamespacedConfigMapRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedConfigMapRequest */ - public APIlistNamespacedConfigMapRequest pretty(String pretty) { + public APIlistNamespacedConfigMapRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -25334,7 +26564,7 @@ public APIlistNamespacedConfigMapRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedConfigMapRequest */ - public APIlistNamespacedConfigMapRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedConfigMapRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -25344,7 +26574,7 @@ public APIlistNamespacedConfigMapRequest allowWatchBookmarks(Boolean allowWatchB * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedConfigMapRequest */ - public APIlistNamespacedConfigMapRequest _continue(String _continue) { + public APIlistNamespacedConfigMapRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -25354,7 +26584,7 @@ public APIlistNamespacedConfigMapRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedConfigMapRequest */ - public APIlistNamespacedConfigMapRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedConfigMapRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -25364,7 +26594,7 @@ public APIlistNamespacedConfigMapRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedConfigMapRequest */ - public APIlistNamespacedConfigMapRequest labelSelector(String labelSelector) { + public APIlistNamespacedConfigMapRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -25374,7 +26604,7 @@ public APIlistNamespacedConfigMapRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedConfigMapRequest */ - public APIlistNamespacedConfigMapRequest limit(Integer limit) { + public APIlistNamespacedConfigMapRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -25384,7 +26614,7 @@ public APIlistNamespacedConfigMapRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedConfigMapRequest */ - public APIlistNamespacedConfigMapRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedConfigMapRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -25394,7 +26624,7 @@ public APIlistNamespacedConfigMapRequest resourceVersion(String resourceVersion) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedConfigMapRequest */ - public APIlistNamespacedConfigMapRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedConfigMapRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -25404,7 +26634,7 @@ public APIlistNamespacedConfigMapRequest resourceVersionMatch(String resourceVer * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedConfigMapRequest */ - public APIlistNamespacedConfigMapRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedConfigMapRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -25414,7 +26644,7 @@ public APIlistNamespacedConfigMapRequest sendInitialEvents(Boolean sendInitialEv * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedConfigMapRequest */ - public APIlistNamespacedConfigMapRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedConfigMapRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -25424,7 +26654,7 @@ public APIlistNamespacedConfigMapRequest timeoutSeconds(Integer timeoutSeconds) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedConfigMapRequest */ - public APIlistNamespacedConfigMapRequest watch(Boolean watch) { + public APIlistNamespacedConfigMapRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -25435,7 +26665,8 @@ public APIlistNamespacedConfigMapRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -25450,7 +26681,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ConfigMapList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -25466,7 +26698,8 @@ public V1ConfigMapList execute() throws ApiException { * @return ApiResponse<V1ConfigMapList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -25482,7 +26715,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -25499,16 +26733,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedConfigMapRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedConfigMapRequest listNamespacedConfigMap(String namespace) { + public APIlistNamespacedConfigMapRequest listNamespacedConfigMap(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedConfigMapRequest(namespace); } - private okhttp3.Call listNamespacedEndpointsCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEndpointsCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -25604,7 +26839,7 @@ private okhttp3.Call listNamespacedEndpointsCall(String namespace, String pretty } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedEndpointsValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEndpointsValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedEndpoints(Async)"); @@ -25615,13 +26850,13 @@ private okhttp3.Call listNamespacedEndpointsValidateBeforeCall(String namespace, } - private ApiResponse listNamespacedEndpointsWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedEndpointsWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedEndpointsValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedEndpointsAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEndpointsAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedEndpointsValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -25630,20 +26865,32 @@ private okhttp3.Call listNamespacedEndpointsAsync(String namespace, String prett } public class APIlistNamespacedEndpointsRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedEndpointsRequest(String namespace) { + private APIlistNamespacedEndpointsRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -25652,7 +26899,7 @@ private APIlistNamespacedEndpointsRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedEndpointsRequest */ - public APIlistNamespacedEndpointsRequest pretty(String pretty) { + public APIlistNamespacedEndpointsRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -25662,7 +26909,7 @@ public APIlistNamespacedEndpointsRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedEndpointsRequest */ - public APIlistNamespacedEndpointsRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedEndpointsRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -25672,7 +26919,7 @@ public APIlistNamespacedEndpointsRequest allowWatchBookmarks(Boolean allowWatchB * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedEndpointsRequest */ - public APIlistNamespacedEndpointsRequest _continue(String _continue) { + public APIlistNamespacedEndpointsRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -25682,7 +26929,7 @@ public APIlistNamespacedEndpointsRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedEndpointsRequest */ - public APIlistNamespacedEndpointsRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedEndpointsRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -25692,7 +26939,7 @@ public APIlistNamespacedEndpointsRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedEndpointsRequest */ - public APIlistNamespacedEndpointsRequest labelSelector(String labelSelector) { + public APIlistNamespacedEndpointsRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -25702,7 +26949,7 @@ public APIlistNamespacedEndpointsRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedEndpointsRequest */ - public APIlistNamespacedEndpointsRequest limit(Integer limit) { + public APIlistNamespacedEndpointsRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -25712,7 +26959,7 @@ public APIlistNamespacedEndpointsRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedEndpointsRequest */ - public APIlistNamespacedEndpointsRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedEndpointsRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -25722,7 +26969,7 @@ public APIlistNamespacedEndpointsRequest resourceVersion(String resourceVersion) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedEndpointsRequest */ - public APIlistNamespacedEndpointsRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedEndpointsRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -25732,7 +26979,7 @@ public APIlistNamespacedEndpointsRequest resourceVersionMatch(String resourceVer * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedEndpointsRequest */ - public APIlistNamespacedEndpointsRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedEndpointsRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -25742,7 +26989,7 @@ public APIlistNamespacedEndpointsRequest sendInitialEvents(Boolean sendInitialEv * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedEndpointsRequest */ - public APIlistNamespacedEndpointsRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedEndpointsRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -25752,7 +26999,7 @@ public APIlistNamespacedEndpointsRequest timeoutSeconds(Integer timeoutSeconds) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedEndpointsRequest */ - public APIlistNamespacedEndpointsRequest watch(Boolean watch) { + public APIlistNamespacedEndpointsRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -25763,7 +27010,8 @@ public APIlistNamespacedEndpointsRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -25778,7 +27026,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1EndpointsList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -25794,7 +27043,8 @@ public V1EndpointsList execute() throws ApiException { * @return ApiResponse<V1EndpointsList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -25810,7 +27060,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -25827,16 +27078,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedEndpointsRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedEndpointsRequest listNamespacedEndpoints(String namespace) { + public APIlistNamespacedEndpointsRequest listNamespacedEndpoints(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedEndpointsRequest(namespace); } - private okhttp3.Call listNamespacedEventCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEventCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -25932,7 +27184,7 @@ private okhttp3.Call listNamespacedEventCall(String namespace, String pretty, Bo } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedEventValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEventValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedEvent(Async)"); @@ -25943,13 +27195,13 @@ private okhttp3.Call listNamespacedEventValidateBeforeCall(String namespace, Str } - private ApiResponse listNamespacedEventWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedEventWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedEventValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedEventAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEventAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedEventValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -25958,20 +27210,32 @@ private okhttp3.Call listNamespacedEventAsync(String namespace, String pretty, B } public class APIlistNamespacedEventRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedEventRequest(String namespace) { + private APIlistNamespacedEventRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -25980,7 +27244,7 @@ private APIlistNamespacedEventRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedEventRequest */ - public APIlistNamespacedEventRequest pretty(String pretty) { + public APIlistNamespacedEventRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -25990,7 +27254,7 @@ public APIlistNamespacedEventRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedEventRequest */ - public APIlistNamespacedEventRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedEventRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -26000,7 +27264,7 @@ public APIlistNamespacedEventRequest allowWatchBookmarks(Boolean allowWatchBookm * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedEventRequest */ - public APIlistNamespacedEventRequest _continue(String _continue) { + public APIlistNamespacedEventRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -26010,7 +27274,7 @@ public APIlistNamespacedEventRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedEventRequest */ - public APIlistNamespacedEventRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedEventRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -26020,7 +27284,7 @@ public APIlistNamespacedEventRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedEventRequest */ - public APIlistNamespacedEventRequest labelSelector(String labelSelector) { + public APIlistNamespacedEventRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -26030,7 +27294,7 @@ public APIlistNamespacedEventRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedEventRequest */ - public APIlistNamespacedEventRequest limit(Integer limit) { + public APIlistNamespacedEventRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -26040,7 +27304,7 @@ public APIlistNamespacedEventRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedEventRequest */ - public APIlistNamespacedEventRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedEventRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -26050,7 +27314,7 @@ public APIlistNamespacedEventRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedEventRequest */ - public APIlistNamespacedEventRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedEventRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -26060,7 +27324,7 @@ public APIlistNamespacedEventRequest resourceVersionMatch(String resourceVersion * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedEventRequest */ - public APIlistNamespacedEventRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedEventRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -26070,7 +27334,7 @@ public APIlistNamespacedEventRequest sendInitialEvents(Boolean sendInitialEvents * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedEventRequest */ - public APIlistNamespacedEventRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedEventRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -26080,7 +27344,7 @@ public APIlistNamespacedEventRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedEventRequest */ - public APIlistNamespacedEventRequest watch(Boolean watch) { + public APIlistNamespacedEventRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -26091,7 +27355,8 @@ public APIlistNamespacedEventRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -26106,7 +27371,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return CoreV1EventList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -26122,7 +27388,8 @@ public CoreV1EventList execute() throws ApiException { * @return ApiResponse<CoreV1EventList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -26138,7 +27405,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -26155,16 +27423,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedEventRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedEventRequest listNamespacedEvent(String namespace) { + public APIlistNamespacedEventRequest listNamespacedEvent(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedEventRequest(namespace); } - private okhttp3.Call listNamespacedLimitRangeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedLimitRangeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -26260,7 +27529,7 @@ private okhttp3.Call listNamespacedLimitRangeCall(String namespace, String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedLimitRangeValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedLimitRangeValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedLimitRange(Async)"); @@ -26271,13 +27540,13 @@ private okhttp3.Call listNamespacedLimitRangeValidateBeforeCall(String namespace } - private ApiResponse listNamespacedLimitRangeWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedLimitRangeWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedLimitRangeValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedLimitRangeAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedLimitRangeAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedLimitRangeValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -26286,20 +27555,32 @@ private okhttp3.Call listNamespacedLimitRangeAsync(String namespace, String pret } public class APIlistNamespacedLimitRangeRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedLimitRangeRequest(String namespace) { + private APIlistNamespacedLimitRangeRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -26308,7 +27589,7 @@ private APIlistNamespacedLimitRangeRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedLimitRangeRequest */ - public APIlistNamespacedLimitRangeRequest pretty(String pretty) { + public APIlistNamespacedLimitRangeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -26318,7 +27599,7 @@ public APIlistNamespacedLimitRangeRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedLimitRangeRequest */ - public APIlistNamespacedLimitRangeRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedLimitRangeRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -26328,7 +27609,7 @@ public APIlistNamespacedLimitRangeRequest allowWatchBookmarks(Boolean allowWatch * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedLimitRangeRequest */ - public APIlistNamespacedLimitRangeRequest _continue(String _continue) { + public APIlistNamespacedLimitRangeRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -26338,7 +27619,7 @@ public APIlistNamespacedLimitRangeRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedLimitRangeRequest */ - public APIlistNamespacedLimitRangeRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedLimitRangeRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -26348,7 +27629,7 @@ public APIlistNamespacedLimitRangeRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedLimitRangeRequest */ - public APIlistNamespacedLimitRangeRequest labelSelector(String labelSelector) { + public APIlistNamespacedLimitRangeRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -26358,7 +27639,7 @@ public APIlistNamespacedLimitRangeRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedLimitRangeRequest */ - public APIlistNamespacedLimitRangeRequest limit(Integer limit) { + public APIlistNamespacedLimitRangeRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -26368,7 +27649,7 @@ public APIlistNamespacedLimitRangeRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedLimitRangeRequest */ - public APIlistNamespacedLimitRangeRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedLimitRangeRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -26378,7 +27659,7 @@ public APIlistNamespacedLimitRangeRequest resourceVersion(String resourceVersion * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedLimitRangeRequest */ - public APIlistNamespacedLimitRangeRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedLimitRangeRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -26388,7 +27669,7 @@ public APIlistNamespacedLimitRangeRequest resourceVersionMatch(String resourceVe * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedLimitRangeRequest */ - public APIlistNamespacedLimitRangeRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedLimitRangeRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -26398,7 +27679,7 @@ public APIlistNamespacedLimitRangeRequest sendInitialEvents(Boolean sendInitialE * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedLimitRangeRequest */ - public APIlistNamespacedLimitRangeRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedLimitRangeRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -26408,7 +27689,7 @@ public APIlistNamespacedLimitRangeRequest timeoutSeconds(Integer timeoutSeconds) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedLimitRangeRequest */ - public APIlistNamespacedLimitRangeRequest watch(Boolean watch) { + public APIlistNamespacedLimitRangeRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -26419,7 +27700,8 @@ public APIlistNamespacedLimitRangeRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -26434,7 +27716,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1LimitRangeList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -26450,7 +27733,8 @@ public V1LimitRangeList execute() throws ApiException { * @return ApiResponse<V1LimitRangeList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -26466,7 +27750,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -26483,16 +27768,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedLimitRangeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedLimitRangeRequest listNamespacedLimitRange(String namespace) { + public APIlistNamespacedLimitRangeRequest listNamespacedLimitRange(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedLimitRangeRequest(namespace); } - private okhttp3.Call listNamespacedPersistentVolumeClaimCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPersistentVolumeClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -26588,7 +27874,7 @@ private okhttp3.Call listNamespacedPersistentVolumeClaimCall(String namespace, S } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedPersistentVolumeClaimValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPersistentVolumeClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPersistentVolumeClaim(Async)"); @@ -26599,13 +27885,13 @@ private okhttp3.Call listNamespacedPersistentVolumeClaimValidateBeforeCall(Strin } - private ApiResponse listNamespacedPersistentVolumeClaimWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedPersistentVolumeClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedPersistentVolumeClaimAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPersistentVolumeClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -26614,20 +27900,32 @@ private okhttp3.Call listNamespacedPersistentVolumeClaimAsync(String namespace, } public class APIlistNamespacedPersistentVolumeClaimRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedPersistentVolumeClaimRequest(String namespace) { + private APIlistNamespacedPersistentVolumeClaimRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -26636,7 +27934,7 @@ private APIlistNamespacedPersistentVolumeClaimRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedPersistentVolumeClaimRequest */ - public APIlistNamespacedPersistentVolumeClaimRequest pretty(String pretty) { + public APIlistNamespacedPersistentVolumeClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -26646,7 +27944,7 @@ public APIlistNamespacedPersistentVolumeClaimRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedPersistentVolumeClaimRequest */ - public APIlistNamespacedPersistentVolumeClaimRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedPersistentVolumeClaimRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -26656,7 +27954,7 @@ public APIlistNamespacedPersistentVolumeClaimRequest allowWatchBookmarks(Boolean * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedPersistentVolumeClaimRequest */ - public APIlistNamespacedPersistentVolumeClaimRequest _continue(String _continue) { + public APIlistNamespacedPersistentVolumeClaimRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -26666,7 +27964,7 @@ public APIlistNamespacedPersistentVolumeClaimRequest _continue(String _continue) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedPersistentVolumeClaimRequest */ - public APIlistNamespacedPersistentVolumeClaimRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedPersistentVolumeClaimRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -26676,7 +27974,7 @@ public APIlistNamespacedPersistentVolumeClaimRequest fieldSelector(String fieldS * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedPersistentVolumeClaimRequest */ - public APIlistNamespacedPersistentVolumeClaimRequest labelSelector(String labelSelector) { + public APIlistNamespacedPersistentVolumeClaimRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -26686,7 +27984,7 @@ public APIlistNamespacedPersistentVolumeClaimRequest labelSelector(String labelS * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedPersistentVolumeClaimRequest */ - public APIlistNamespacedPersistentVolumeClaimRequest limit(Integer limit) { + public APIlistNamespacedPersistentVolumeClaimRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -26696,7 +27994,7 @@ public APIlistNamespacedPersistentVolumeClaimRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedPersistentVolumeClaimRequest */ - public APIlistNamespacedPersistentVolumeClaimRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedPersistentVolumeClaimRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -26706,7 +28004,7 @@ public APIlistNamespacedPersistentVolumeClaimRequest resourceVersion(String reso * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedPersistentVolumeClaimRequest */ - public APIlistNamespacedPersistentVolumeClaimRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedPersistentVolumeClaimRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -26716,7 +28014,7 @@ public APIlistNamespacedPersistentVolumeClaimRequest resourceVersionMatch(String * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedPersistentVolumeClaimRequest */ - public APIlistNamespacedPersistentVolumeClaimRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedPersistentVolumeClaimRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -26726,7 +28024,7 @@ public APIlistNamespacedPersistentVolumeClaimRequest sendInitialEvents(Boolean s * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedPersistentVolumeClaimRequest */ - public APIlistNamespacedPersistentVolumeClaimRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedPersistentVolumeClaimRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -26736,7 +28034,7 @@ public APIlistNamespacedPersistentVolumeClaimRequest timeoutSeconds(Integer time * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedPersistentVolumeClaimRequest */ - public APIlistNamespacedPersistentVolumeClaimRequest watch(Boolean watch) { + public APIlistNamespacedPersistentVolumeClaimRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -26747,7 +28045,8 @@ public APIlistNamespacedPersistentVolumeClaimRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -26762,7 +28061,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PersistentVolumeClaimList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -26778,7 +28078,8 @@ public V1PersistentVolumeClaimList execute() throws ApiException { * @return ApiResponse<V1PersistentVolumeClaimList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -26794,7 +28095,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -26811,16 +28113,17 @@ public okhttp3.Call executeAsync(final ApiCallback * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedPersistentVolumeClaimRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedPersistentVolumeClaimRequest listNamespacedPersistentVolumeClaim(String namespace) { + public APIlistNamespacedPersistentVolumeClaimRequest listNamespacedPersistentVolumeClaim(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedPersistentVolumeClaimRequest(namespace); } - private okhttp3.Call listNamespacedPodCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPodCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -26916,7 +28219,7 @@ private okhttp3.Call listNamespacedPodCall(String namespace, String pretty, Bool } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedPodValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPodValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPod(Async)"); @@ -26927,13 +28230,13 @@ private okhttp3.Call listNamespacedPodValidateBeforeCall(String namespace, Strin } - private ApiResponse listNamespacedPodWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedPodWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedPodValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedPodAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPodAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedPodValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -26942,20 +28245,32 @@ private okhttp3.Call listNamespacedPodAsync(String namespace, String pretty, Boo } public class APIlistNamespacedPodRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedPodRequest(String namespace) { + private APIlistNamespacedPodRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -26964,7 +28279,7 @@ private APIlistNamespacedPodRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedPodRequest */ - public APIlistNamespacedPodRequest pretty(String pretty) { + public APIlistNamespacedPodRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -26974,7 +28289,7 @@ public APIlistNamespacedPodRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedPodRequest */ - public APIlistNamespacedPodRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedPodRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -26984,7 +28299,7 @@ public APIlistNamespacedPodRequest allowWatchBookmarks(Boolean allowWatchBookmar * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedPodRequest */ - public APIlistNamespacedPodRequest _continue(String _continue) { + public APIlistNamespacedPodRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -26994,7 +28309,7 @@ public APIlistNamespacedPodRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedPodRequest */ - public APIlistNamespacedPodRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedPodRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -27004,7 +28319,7 @@ public APIlistNamespacedPodRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedPodRequest */ - public APIlistNamespacedPodRequest labelSelector(String labelSelector) { + public APIlistNamespacedPodRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -27014,7 +28329,7 @@ public APIlistNamespacedPodRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedPodRequest */ - public APIlistNamespacedPodRequest limit(Integer limit) { + public APIlistNamespacedPodRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -27024,7 +28339,7 @@ public APIlistNamespacedPodRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedPodRequest */ - public APIlistNamespacedPodRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedPodRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -27034,7 +28349,7 @@ public APIlistNamespacedPodRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedPodRequest */ - public APIlistNamespacedPodRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedPodRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -27044,7 +28359,7 @@ public APIlistNamespacedPodRequest resourceVersionMatch(String resourceVersionMa * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedPodRequest */ - public APIlistNamespacedPodRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedPodRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -27054,7 +28369,7 @@ public APIlistNamespacedPodRequest sendInitialEvents(Boolean sendInitialEvents) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedPodRequest */ - public APIlistNamespacedPodRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedPodRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -27064,7 +28379,7 @@ public APIlistNamespacedPodRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedPodRequest */ - public APIlistNamespacedPodRequest watch(Boolean watch) { + public APIlistNamespacedPodRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -27075,7 +28390,8 @@ public APIlistNamespacedPodRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -27090,7 +28406,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PodList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -27106,7 +28423,8 @@ public V1PodList execute() throws ApiException { * @return ApiResponse<V1PodList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -27122,7 +28440,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -27139,16 +28458,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedPodRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedPodRequest listNamespacedPod(String namespace) { + public APIlistNamespacedPodRequest listNamespacedPod(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedPodRequest(namespace); } - private okhttp3.Call listNamespacedPodTemplateCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPodTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -27244,7 +28564,7 @@ private okhttp3.Call listNamespacedPodTemplateCall(String namespace, String pret } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedPodTemplateValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPodTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPodTemplate(Async)"); @@ -27255,13 +28575,13 @@ private okhttp3.Call listNamespacedPodTemplateValidateBeforeCall(String namespac } - private ApiResponse listNamespacedPodTemplateWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedPodTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedPodTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedPodTemplateAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPodTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedPodTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -27270,20 +28590,32 @@ private okhttp3.Call listNamespacedPodTemplateAsync(String namespace, String pre } public class APIlistNamespacedPodTemplateRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedPodTemplateRequest(String namespace) { + private APIlistNamespacedPodTemplateRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -27292,7 +28624,7 @@ private APIlistNamespacedPodTemplateRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedPodTemplateRequest */ - public APIlistNamespacedPodTemplateRequest pretty(String pretty) { + public APIlistNamespacedPodTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -27302,7 +28634,7 @@ public APIlistNamespacedPodTemplateRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedPodTemplateRequest */ - public APIlistNamespacedPodTemplateRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedPodTemplateRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -27312,7 +28644,7 @@ public APIlistNamespacedPodTemplateRequest allowWatchBookmarks(Boolean allowWatc * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedPodTemplateRequest */ - public APIlistNamespacedPodTemplateRequest _continue(String _continue) { + public APIlistNamespacedPodTemplateRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -27322,7 +28654,7 @@ public APIlistNamespacedPodTemplateRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedPodTemplateRequest */ - public APIlistNamespacedPodTemplateRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedPodTemplateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -27332,7 +28664,7 @@ public APIlistNamespacedPodTemplateRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedPodTemplateRequest */ - public APIlistNamespacedPodTemplateRequest labelSelector(String labelSelector) { + public APIlistNamespacedPodTemplateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -27342,7 +28674,7 @@ public APIlistNamespacedPodTemplateRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedPodTemplateRequest */ - public APIlistNamespacedPodTemplateRequest limit(Integer limit) { + public APIlistNamespacedPodTemplateRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -27352,7 +28684,7 @@ public APIlistNamespacedPodTemplateRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedPodTemplateRequest */ - public APIlistNamespacedPodTemplateRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedPodTemplateRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -27362,7 +28694,7 @@ public APIlistNamespacedPodTemplateRequest resourceVersion(String resourceVersio * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedPodTemplateRequest */ - public APIlistNamespacedPodTemplateRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedPodTemplateRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -27372,7 +28704,7 @@ public APIlistNamespacedPodTemplateRequest resourceVersionMatch(String resourceV * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedPodTemplateRequest */ - public APIlistNamespacedPodTemplateRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedPodTemplateRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -27382,7 +28714,7 @@ public APIlistNamespacedPodTemplateRequest sendInitialEvents(Boolean sendInitial * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedPodTemplateRequest */ - public APIlistNamespacedPodTemplateRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedPodTemplateRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -27392,7 +28724,7 @@ public APIlistNamespacedPodTemplateRequest timeoutSeconds(Integer timeoutSeconds * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedPodTemplateRequest */ - public APIlistNamespacedPodTemplateRequest watch(Boolean watch) { + public APIlistNamespacedPodTemplateRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -27403,7 +28735,8 @@ public APIlistNamespacedPodTemplateRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -27418,7 +28751,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PodTemplateList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -27434,7 +28768,8 @@ public V1PodTemplateList execute() throws ApiException { * @return ApiResponse<V1PodTemplateList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -27450,7 +28785,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -27467,16 +28803,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedPodTemplateRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedPodTemplateRequest listNamespacedPodTemplate(String namespace) { + public APIlistNamespacedPodTemplateRequest listNamespacedPodTemplate(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedPodTemplateRequest(namespace); } - private okhttp3.Call listNamespacedReplicationControllerCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedReplicationControllerCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -27572,7 +28909,7 @@ private okhttp3.Call listNamespacedReplicationControllerCall(String namespace, S } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedReplicationControllerValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedReplicationControllerValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedReplicationController(Async)"); @@ -27583,13 +28920,13 @@ private okhttp3.Call listNamespacedReplicationControllerValidateBeforeCall(Strin } - private ApiResponse listNamespacedReplicationControllerWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedReplicationControllerWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedReplicationControllerAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedReplicationControllerAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -27598,20 +28935,32 @@ private okhttp3.Call listNamespacedReplicationControllerAsync(String namespace, } public class APIlistNamespacedReplicationControllerRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedReplicationControllerRequest(String namespace) { + private APIlistNamespacedReplicationControllerRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -27620,7 +28969,7 @@ private APIlistNamespacedReplicationControllerRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedReplicationControllerRequest */ - public APIlistNamespacedReplicationControllerRequest pretty(String pretty) { + public APIlistNamespacedReplicationControllerRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -27630,7 +28979,7 @@ public APIlistNamespacedReplicationControllerRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedReplicationControllerRequest */ - public APIlistNamespacedReplicationControllerRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedReplicationControllerRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -27640,7 +28989,7 @@ public APIlistNamespacedReplicationControllerRequest allowWatchBookmarks(Boolean * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedReplicationControllerRequest */ - public APIlistNamespacedReplicationControllerRequest _continue(String _continue) { + public APIlistNamespacedReplicationControllerRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -27650,7 +28999,7 @@ public APIlistNamespacedReplicationControllerRequest _continue(String _continue) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedReplicationControllerRequest */ - public APIlistNamespacedReplicationControllerRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedReplicationControllerRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -27660,7 +29009,7 @@ public APIlistNamespacedReplicationControllerRequest fieldSelector(String fieldS * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedReplicationControllerRequest */ - public APIlistNamespacedReplicationControllerRequest labelSelector(String labelSelector) { + public APIlistNamespacedReplicationControllerRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -27670,7 +29019,7 @@ public APIlistNamespacedReplicationControllerRequest labelSelector(String labelS * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedReplicationControllerRequest */ - public APIlistNamespacedReplicationControllerRequest limit(Integer limit) { + public APIlistNamespacedReplicationControllerRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -27680,7 +29029,7 @@ public APIlistNamespacedReplicationControllerRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedReplicationControllerRequest */ - public APIlistNamespacedReplicationControllerRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedReplicationControllerRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -27690,7 +29039,7 @@ public APIlistNamespacedReplicationControllerRequest resourceVersion(String reso * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedReplicationControllerRequest */ - public APIlistNamespacedReplicationControllerRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedReplicationControllerRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -27700,7 +29049,7 @@ public APIlistNamespacedReplicationControllerRequest resourceVersionMatch(String * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedReplicationControllerRequest */ - public APIlistNamespacedReplicationControllerRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedReplicationControllerRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -27710,7 +29059,7 @@ public APIlistNamespacedReplicationControllerRequest sendInitialEvents(Boolean s * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedReplicationControllerRequest */ - public APIlistNamespacedReplicationControllerRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedReplicationControllerRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -27720,7 +29069,7 @@ public APIlistNamespacedReplicationControllerRequest timeoutSeconds(Integer time * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedReplicationControllerRequest */ - public APIlistNamespacedReplicationControllerRequest watch(Boolean watch) { + public APIlistNamespacedReplicationControllerRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -27731,7 +29080,8 @@ public APIlistNamespacedReplicationControllerRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -27746,7 +29096,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ReplicationControllerList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -27762,7 +29113,8 @@ public V1ReplicationControllerList execute() throws ApiException { * @return ApiResponse<V1ReplicationControllerList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -27778,7 +29130,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -27795,16 +29148,17 @@ public okhttp3.Call executeAsync(final ApiCallback * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedReplicationControllerRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedReplicationControllerRequest listNamespacedReplicationController(String namespace) { + public APIlistNamespacedReplicationControllerRequest listNamespacedReplicationController(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedReplicationControllerRequest(namespace); } - private okhttp3.Call listNamespacedResourceQuotaCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceQuotaCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -27900,7 +29254,7 @@ private okhttp3.Call listNamespacedResourceQuotaCall(String namespace, String pr } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedResourceQuotaValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceQuotaValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceQuota(Async)"); @@ -27911,13 +29265,13 @@ private okhttp3.Call listNamespacedResourceQuotaValidateBeforeCall(String namesp } - private ApiResponse listNamespacedResourceQuotaWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedResourceQuotaWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedResourceQuotaAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceQuotaAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -27926,20 +29280,32 @@ private okhttp3.Call listNamespacedResourceQuotaAsync(String namespace, String p } public class APIlistNamespacedResourceQuotaRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedResourceQuotaRequest(String namespace) { + private APIlistNamespacedResourceQuotaRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -27948,7 +29314,7 @@ private APIlistNamespacedResourceQuotaRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedResourceQuotaRequest */ - public APIlistNamespacedResourceQuotaRequest pretty(String pretty) { + public APIlistNamespacedResourceQuotaRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -27958,7 +29324,7 @@ public APIlistNamespacedResourceQuotaRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedResourceQuotaRequest */ - public APIlistNamespacedResourceQuotaRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedResourceQuotaRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -27968,7 +29334,7 @@ public APIlistNamespacedResourceQuotaRequest allowWatchBookmarks(Boolean allowWa * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedResourceQuotaRequest */ - public APIlistNamespacedResourceQuotaRequest _continue(String _continue) { + public APIlistNamespacedResourceQuotaRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -27978,7 +29344,7 @@ public APIlistNamespacedResourceQuotaRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedResourceQuotaRequest */ - public APIlistNamespacedResourceQuotaRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedResourceQuotaRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -27988,7 +29354,7 @@ public APIlistNamespacedResourceQuotaRequest fieldSelector(String fieldSelector) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedResourceQuotaRequest */ - public APIlistNamespacedResourceQuotaRequest labelSelector(String labelSelector) { + public APIlistNamespacedResourceQuotaRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -27998,7 +29364,7 @@ public APIlistNamespacedResourceQuotaRequest labelSelector(String labelSelector) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedResourceQuotaRequest */ - public APIlistNamespacedResourceQuotaRequest limit(Integer limit) { + public APIlistNamespacedResourceQuotaRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -28008,7 +29374,7 @@ public APIlistNamespacedResourceQuotaRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedResourceQuotaRequest */ - public APIlistNamespacedResourceQuotaRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedResourceQuotaRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -28018,7 +29384,7 @@ public APIlistNamespacedResourceQuotaRequest resourceVersion(String resourceVers * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedResourceQuotaRequest */ - public APIlistNamespacedResourceQuotaRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedResourceQuotaRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -28028,7 +29394,7 @@ public APIlistNamespacedResourceQuotaRequest resourceVersionMatch(String resourc * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedResourceQuotaRequest */ - public APIlistNamespacedResourceQuotaRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedResourceQuotaRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -28038,7 +29404,7 @@ public APIlistNamespacedResourceQuotaRequest sendInitialEvents(Boolean sendIniti * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedResourceQuotaRequest */ - public APIlistNamespacedResourceQuotaRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedResourceQuotaRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -28048,7 +29414,7 @@ public APIlistNamespacedResourceQuotaRequest timeoutSeconds(Integer timeoutSecon * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedResourceQuotaRequest */ - public APIlistNamespacedResourceQuotaRequest watch(Boolean watch) { + public APIlistNamespacedResourceQuotaRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -28059,7 +29425,8 @@ public APIlistNamespacedResourceQuotaRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -28074,7 +29441,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ResourceQuotaList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -28090,7 +29458,8 @@ public V1ResourceQuotaList execute() throws ApiException { * @return ApiResponse<V1ResourceQuotaList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -28106,7 +29475,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -28123,16 +29493,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedResourceQuotaRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedResourceQuotaRequest listNamespacedResourceQuota(String namespace) { + public APIlistNamespacedResourceQuotaRequest listNamespacedResourceQuota(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedResourceQuotaRequest(namespace); } - private okhttp3.Call listNamespacedSecretCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedSecretCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -28228,7 +29599,7 @@ private okhttp3.Call listNamespacedSecretCall(String namespace, String pretty, B } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedSecretValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedSecretValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedSecret(Async)"); @@ -28239,13 +29610,13 @@ private okhttp3.Call listNamespacedSecretValidateBeforeCall(String namespace, St } - private ApiResponse listNamespacedSecretWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedSecretWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedSecretValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedSecretAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedSecretAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedSecretValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -28254,20 +29625,32 @@ private okhttp3.Call listNamespacedSecretAsync(String namespace, String pretty, } public class APIlistNamespacedSecretRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedSecretRequest(String namespace) { + private APIlistNamespacedSecretRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -28276,7 +29659,7 @@ private APIlistNamespacedSecretRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedSecretRequest */ - public APIlistNamespacedSecretRequest pretty(String pretty) { + public APIlistNamespacedSecretRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -28286,7 +29669,7 @@ public APIlistNamespacedSecretRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedSecretRequest */ - public APIlistNamespacedSecretRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedSecretRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -28296,7 +29679,7 @@ public APIlistNamespacedSecretRequest allowWatchBookmarks(Boolean allowWatchBook * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedSecretRequest */ - public APIlistNamespacedSecretRequest _continue(String _continue) { + public APIlistNamespacedSecretRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -28306,7 +29689,7 @@ public APIlistNamespacedSecretRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedSecretRequest */ - public APIlistNamespacedSecretRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedSecretRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -28316,7 +29699,7 @@ public APIlistNamespacedSecretRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedSecretRequest */ - public APIlistNamespacedSecretRequest labelSelector(String labelSelector) { + public APIlistNamespacedSecretRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -28326,7 +29709,7 @@ public APIlistNamespacedSecretRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedSecretRequest */ - public APIlistNamespacedSecretRequest limit(Integer limit) { + public APIlistNamespacedSecretRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -28336,7 +29719,7 @@ public APIlistNamespacedSecretRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedSecretRequest */ - public APIlistNamespacedSecretRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedSecretRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -28346,7 +29729,7 @@ public APIlistNamespacedSecretRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedSecretRequest */ - public APIlistNamespacedSecretRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedSecretRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -28356,7 +29739,7 @@ public APIlistNamespacedSecretRequest resourceVersionMatch(String resourceVersio * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedSecretRequest */ - public APIlistNamespacedSecretRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedSecretRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -28366,7 +29749,7 @@ public APIlistNamespacedSecretRequest sendInitialEvents(Boolean sendInitialEvent * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedSecretRequest */ - public APIlistNamespacedSecretRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedSecretRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -28376,7 +29759,7 @@ public APIlistNamespacedSecretRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedSecretRequest */ - public APIlistNamespacedSecretRequest watch(Boolean watch) { + public APIlistNamespacedSecretRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -28387,7 +29770,8 @@ public APIlistNamespacedSecretRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -28402,7 +29786,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1SecretList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -28418,7 +29803,8 @@ public V1SecretList execute() throws ApiException { * @return ApiResponse<V1SecretList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -28434,7 +29820,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -28451,16 +29838,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedSecretRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedSecretRequest listNamespacedSecret(String namespace) { + public APIlistNamespacedSecretRequest listNamespacedSecret(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedSecretRequest(namespace); } - private okhttp3.Call listNamespacedServiceCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedServiceCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -28556,7 +29944,7 @@ private okhttp3.Call listNamespacedServiceCall(String namespace, String pretty, } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedServiceValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedServiceValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedService(Async)"); @@ -28567,13 +29955,13 @@ private okhttp3.Call listNamespacedServiceValidateBeforeCall(String namespace, S } - private ApiResponse listNamespacedServiceWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedServiceWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedServiceValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedServiceAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedServiceAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedServiceValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -28582,20 +29970,32 @@ private okhttp3.Call listNamespacedServiceAsync(String namespace, String pretty, } public class APIlistNamespacedServiceRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedServiceRequest(String namespace) { + private APIlistNamespacedServiceRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -28604,7 +30004,7 @@ private APIlistNamespacedServiceRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedServiceRequest */ - public APIlistNamespacedServiceRequest pretty(String pretty) { + public APIlistNamespacedServiceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -28614,7 +30014,7 @@ public APIlistNamespacedServiceRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedServiceRequest */ - public APIlistNamespacedServiceRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedServiceRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -28624,7 +30024,7 @@ public APIlistNamespacedServiceRequest allowWatchBookmarks(Boolean allowWatchBoo * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedServiceRequest */ - public APIlistNamespacedServiceRequest _continue(String _continue) { + public APIlistNamespacedServiceRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -28634,7 +30034,7 @@ public APIlistNamespacedServiceRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedServiceRequest */ - public APIlistNamespacedServiceRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedServiceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -28644,7 +30044,7 @@ public APIlistNamespacedServiceRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedServiceRequest */ - public APIlistNamespacedServiceRequest labelSelector(String labelSelector) { + public APIlistNamespacedServiceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -28654,7 +30054,7 @@ public APIlistNamespacedServiceRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedServiceRequest */ - public APIlistNamespacedServiceRequest limit(Integer limit) { + public APIlistNamespacedServiceRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -28664,7 +30064,7 @@ public APIlistNamespacedServiceRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedServiceRequest */ - public APIlistNamespacedServiceRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedServiceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -28674,7 +30074,7 @@ public APIlistNamespacedServiceRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedServiceRequest */ - public APIlistNamespacedServiceRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedServiceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -28684,7 +30084,7 @@ public APIlistNamespacedServiceRequest resourceVersionMatch(String resourceVersi * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedServiceRequest */ - public APIlistNamespacedServiceRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedServiceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -28694,7 +30094,7 @@ public APIlistNamespacedServiceRequest sendInitialEvents(Boolean sendInitialEven * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedServiceRequest */ - public APIlistNamespacedServiceRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedServiceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -28704,7 +30104,7 @@ public APIlistNamespacedServiceRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedServiceRequest */ - public APIlistNamespacedServiceRequest watch(Boolean watch) { + public APIlistNamespacedServiceRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -28715,7 +30115,8 @@ public APIlistNamespacedServiceRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -28730,7 +30131,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ServiceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -28746,7 +30148,8 @@ public V1ServiceList execute() throws ApiException { * @return ApiResponse<V1ServiceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -28762,7 +30165,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -28779,16 +30183,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedServiceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedServiceRequest listNamespacedService(String namespace) { + public APIlistNamespacedServiceRequest listNamespacedService(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedServiceRequest(namespace); } - private okhttp3.Call listNamespacedServiceAccountCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedServiceAccountCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -28884,7 +30289,7 @@ private okhttp3.Call listNamespacedServiceAccountCall(String namespace, String p } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedServiceAccountValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedServiceAccountValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedServiceAccount(Async)"); @@ -28895,13 +30300,13 @@ private okhttp3.Call listNamespacedServiceAccountValidateBeforeCall(String names } - private ApiResponse listNamespacedServiceAccountWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedServiceAccountWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedServiceAccountValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedServiceAccountAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedServiceAccountAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedServiceAccountValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -28910,20 +30315,32 @@ private okhttp3.Call listNamespacedServiceAccountAsync(String namespace, String } public class APIlistNamespacedServiceAccountRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedServiceAccountRequest(String namespace) { + private APIlistNamespacedServiceAccountRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -28932,7 +30349,7 @@ private APIlistNamespacedServiceAccountRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedServiceAccountRequest */ - public APIlistNamespacedServiceAccountRequest pretty(String pretty) { + public APIlistNamespacedServiceAccountRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -28942,7 +30359,7 @@ public APIlistNamespacedServiceAccountRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedServiceAccountRequest */ - public APIlistNamespacedServiceAccountRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedServiceAccountRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -28952,7 +30369,7 @@ public APIlistNamespacedServiceAccountRequest allowWatchBookmarks(Boolean allowW * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedServiceAccountRequest */ - public APIlistNamespacedServiceAccountRequest _continue(String _continue) { + public APIlistNamespacedServiceAccountRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -28962,7 +30379,7 @@ public APIlistNamespacedServiceAccountRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedServiceAccountRequest */ - public APIlistNamespacedServiceAccountRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedServiceAccountRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -28972,7 +30389,7 @@ public APIlistNamespacedServiceAccountRequest fieldSelector(String fieldSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedServiceAccountRequest */ - public APIlistNamespacedServiceAccountRequest labelSelector(String labelSelector) { + public APIlistNamespacedServiceAccountRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -28982,7 +30399,7 @@ public APIlistNamespacedServiceAccountRequest labelSelector(String labelSelector * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedServiceAccountRequest */ - public APIlistNamespacedServiceAccountRequest limit(Integer limit) { + public APIlistNamespacedServiceAccountRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -28992,7 +30409,7 @@ public APIlistNamespacedServiceAccountRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedServiceAccountRequest */ - public APIlistNamespacedServiceAccountRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedServiceAccountRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -29002,7 +30419,7 @@ public APIlistNamespacedServiceAccountRequest resourceVersion(String resourceVer * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedServiceAccountRequest */ - public APIlistNamespacedServiceAccountRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedServiceAccountRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -29012,7 +30429,7 @@ public APIlistNamespacedServiceAccountRequest resourceVersionMatch(String resour * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedServiceAccountRequest */ - public APIlistNamespacedServiceAccountRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedServiceAccountRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -29022,7 +30439,7 @@ public APIlistNamespacedServiceAccountRequest sendInitialEvents(Boolean sendInit * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedServiceAccountRequest */ - public APIlistNamespacedServiceAccountRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedServiceAccountRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -29032,7 +30449,7 @@ public APIlistNamespacedServiceAccountRequest timeoutSeconds(Integer timeoutSeco * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedServiceAccountRequest */ - public APIlistNamespacedServiceAccountRequest watch(Boolean watch) { + public APIlistNamespacedServiceAccountRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -29043,7 +30460,8 @@ public APIlistNamespacedServiceAccountRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -29058,7 +30476,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ServiceAccountList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -29074,7 +30493,8 @@ public V1ServiceAccountList execute() throws ApiException { * @return ApiResponse<V1ServiceAccountList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -29090,7 +30510,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -29107,16 +30528,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedServiceAccountRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedServiceAccountRequest listNamespacedServiceAccount(String namespace) { + public APIlistNamespacedServiceAccountRequest listNamespacedServiceAccount(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedServiceAccountRequest(namespace); } - private okhttp3.Call listNodeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNodeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -29211,19 +30633,19 @@ private okhttp3.Call listNodeCall(String pretty, Boolean allowWatchBookmarks, St } @SuppressWarnings("rawtypes") - private okhttp3.Call listNodeValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNodeValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listNodeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listNodeWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNodeWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNodeAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNodeAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -29232,16 +30654,27 @@ private okhttp3.Call listNodeAsync(String pretty, Boolean allowWatchBookmarks, S } public class APIlistNodeRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistNodeRequest() { @@ -29252,7 +30685,7 @@ private APIlistNodeRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNodeRequest */ - public APIlistNodeRequest pretty(String pretty) { + public APIlistNodeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -29262,7 +30695,7 @@ public APIlistNodeRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNodeRequest */ - public APIlistNodeRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNodeRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -29272,7 +30705,7 @@ public APIlistNodeRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNodeRequest */ - public APIlistNodeRequest _continue(String _continue) { + public APIlistNodeRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -29282,7 +30715,7 @@ public APIlistNodeRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNodeRequest */ - public APIlistNodeRequest fieldSelector(String fieldSelector) { + public APIlistNodeRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -29292,7 +30725,7 @@ public APIlistNodeRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNodeRequest */ - public APIlistNodeRequest labelSelector(String labelSelector) { + public APIlistNodeRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -29302,7 +30735,7 @@ public APIlistNodeRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNodeRequest */ - public APIlistNodeRequest limit(Integer limit) { + public APIlistNodeRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -29312,7 +30745,7 @@ public APIlistNodeRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNodeRequest */ - public APIlistNodeRequest resourceVersion(String resourceVersion) { + public APIlistNodeRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -29322,7 +30755,7 @@ public APIlistNodeRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNodeRequest */ - public APIlistNodeRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNodeRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -29332,7 +30765,7 @@ public APIlistNodeRequest resourceVersionMatch(String resourceVersionMatch) { * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNodeRequest */ - public APIlistNodeRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNodeRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -29342,7 +30775,7 @@ public APIlistNodeRequest sendInitialEvents(Boolean sendInitialEvents) { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNodeRequest */ - public APIlistNodeRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNodeRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -29352,7 +30785,7 @@ public APIlistNodeRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNodeRequest */ - public APIlistNodeRequest watch(Boolean watch) { + public APIlistNodeRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -29363,7 +30796,8 @@ public APIlistNodeRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -29378,7 +30812,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1NodeList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -29394,7 +30829,8 @@ public V1NodeList execute() throws ApiException { * @return ApiResponse<V1NodeList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -29410,7 +30846,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -29426,7 +30863,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * list or watch objects of kind Node * @return APIlistNodeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -29435,7 +30873,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws public APIlistNodeRequest listNode() { return new APIlistNodeRequest(); } - private okhttp3.Call listPersistentVolumeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPersistentVolumeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -29530,19 +30968,19 @@ private okhttp3.Call listPersistentVolumeCall(String pretty, Boolean allowWatchB } @SuppressWarnings("rawtypes") - private okhttp3.Call listPersistentVolumeValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPersistentVolumeValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listPersistentVolumeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listPersistentVolumeWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listPersistentVolumeWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listPersistentVolumeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listPersistentVolumeAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPersistentVolumeAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listPersistentVolumeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -29551,16 +30989,27 @@ private okhttp3.Call listPersistentVolumeAsync(String pretty, Boolean allowWatch } public class APIlistPersistentVolumeRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistPersistentVolumeRequest() { @@ -29571,7 +31020,7 @@ private APIlistPersistentVolumeRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistPersistentVolumeRequest */ - public APIlistPersistentVolumeRequest pretty(String pretty) { + public APIlistPersistentVolumeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -29581,7 +31030,7 @@ public APIlistPersistentVolumeRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistPersistentVolumeRequest */ - public APIlistPersistentVolumeRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistPersistentVolumeRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -29591,7 +31040,7 @@ public APIlistPersistentVolumeRequest allowWatchBookmarks(Boolean allowWatchBook * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistPersistentVolumeRequest */ - public APIlistPersistentVolumeRequest _continue(String _continue) { + public APIlistPersistentVolumeRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -29601,7 +31050,7 @@ public APIlistPersistentVolumeRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistPersistentVolumeRequest */ - public APIlistPersistentVolumeRequest fieldSelector(String fieldSelector) { + public APIlistPersistentVolumeRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -29611,7 +31060,7 @@ public APIlistPersistentVolumeRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistPersistentVolumeRequest */ - public APIlistPersistentVolumeRequest labelSelector(String labelSelector) { + public APIlistPersistentVolumeRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -29621,7 +31070,7 @@ public APIlistPersistentVolumeRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistPersistentVolumeRequest */ - public APIlistPersistentVolumeRequest limit(Integer limit) { + public APIlistPersistentVolumeRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -29631,7 +31080,7 @@ public APIlistPersistentVolumeRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistPersistentVolumeRequest */ - public APIlistPersistentVolumeRequest resourceVersion(String resourceVersion) { + public APIlistPersistentVolumeRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -29641,7 +31090,7 @@ public APIlistPersistentVolumeRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistPersistentVolumeRequest */ - public APIlistPersistentVolumeRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistPersistentVolumeRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -29651,7 +31100,7 @@ public APIlistPersistentVolumeRequest resourceVersionMatch(String resourceVersio * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistPersistentVolumeRequest */ - public APIlistPersistentVolumeRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistPersistentVolumeRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -29661,7 +31110,7 @@ public APIlistPersistentVolumeRequest sendInitialEvents(Boolean sendInitialEvent * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistPersistentVolumeRequest */ - public APIlistPersistentVolumeRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistPersistentVolumeRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -29671,7 +31120,7 @@ public APIlistPersistentVolumeRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistPersistentVolumeRequest */ - public APIlistPersistentVolumeRequest watch(Boolean watch) { + public APIlistPersistentVolumeRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -29682,7 +31131,8 @@ public APIlistPersistentVolumeRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -29697,7 +31147,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PersistentVolumeList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -29713,7 +31164,8 @@ public V1PersistentVolumeList execute() throws ApiException { * @return ApiResponse<V1PersistentVolumeList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -29729,7 +31181,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -29745,7 +31198,8 @@ public okhttp3.Call executeAsync(final ApiCallback _call * list or watch objects of kind PersistentVolume * @return APIlistPersistentVolumeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -29754,7 +31208,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call public APIlistPersistentVolumeRequest listPersistentVolume() { return new APIlistPersistentVolumeRequest(); } - private okhttp3.Call listPersistentVolumeClaimForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPersistentVolumeClaimForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -29849,19 +31303,19 @@ private okhttp3.Call listPersistentVolumeClaimForAllNamespacesCall(Boolean allow } @SuppressWarnings("rawtypes") - private okhttp3.Call listPersistentVolumeClaimForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPersistentVolumeClaimForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listPersistentVolumeClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listPersistentVolumeClaimForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listPersistentVolumeClaimForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listPersistentVolumeClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listPersistentVolumeClaimForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPersistentVolumeClaimForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listPersistentVolumeClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -29870,16 +31324,27 @@ private okhttp3.Call listPersistentVolumeClaimForAllNamespacesAsync(Boolean allo } public class APIlistPersistentVolumeClaimForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistPersistentVolumeClaimForAllNamespacesRequest() { @@ -29890,7 +31355,7 @@ private APIlistPersistentVolumeClaimForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistPersistentVolumeClaimForAllNamespacesRequest */ - public APIlistPersistentVolumeClaimForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistPersistentVolumeClaimForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -29900,7 +31365,7 @@ public APIlistPersistentVolumeClaimForAllNamespacesRequest allowWatchBookmarks(B * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistPersistentVolumeClaimForAllNamespacesRequest */ - public APIlistPersistentVolumeClaimForAllNamespacesRequest _continue(String _continue) { + public APIlistPersistentVolumeClaimForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -29910,7 +31375,7 @@ public APIlistPersistentVolumeClaimForAllNamespacesRequest _continue(String _con * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistPersistentVolumeClaimForAllNamespacesRequest */ - public APIlistPersistentVolumeClaimForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistPersistentVolumeClaimForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -29920,7 +31385,7 @@ public APIlistPersistentVolumeClaimForAllNamespacesRequest fieldSelector(String * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistPersistentVolumeClaimForAllNamespacesRequest */ - public APIlistPersistentVolumeClaimForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistPersistentVolumeClaimForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -29930,7 +31395,7 @@ public APIlistPersistentVolumeClaimForAllNamespacesRequest labelSelector(String * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistPersistentVolumeClaimForAllNamespacesRequest */ - public APIlistPersistentVolumeClaimForAllNamespacesRequest limit(Integer limit) { + public APIlistPersistentVolumeClaimForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -29940,7 +31405,7 @@ public APIlistPersistentVolumeClaimForAllNamespacesRequest limit(Integer limit) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistPersistentVolumeClaimForAllNamespacesRequest */ - public APIlistPersistentVolumeClaimForAllNamespacesRequest pretty(String pretty) { + public APIlistPersistentVolumeClaimForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -29950,7 +31415,7 @@ public APIlistPersistentVolumeClaimForAllNamespacesRequest pretty(String pretty) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistPersistentVolumeClaimForAllNamespacesRequest */ - public APIlistPersistentVolumeClaimForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistPersistentVolumeClaimForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -29960,7 +31425,7 @@ public APIlistPersistentVolumeClaimForAllNamespacesRequest resourceVersion(Strin * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistPersistentVolumeClaimForAllNamespacesRequest */ - public APIlistPersistentVolumeClaimForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistPersistentVolumeClaimForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -29970,7 +31435,7 @@ public APIlistPersistentVolumeClaimForAllNamespacesRequest resourceVersionMatch( * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistPersistentVolumeClaimForAllNamespacesRequest */ - public APIlistPersistentVolumeClaimForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistPersistentVolumeClaimForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -29980,7 +31445,7 @@ public APIlistPersistentVolumeClaimForAllNamespacesRequest sendInitialEvents(Boo * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistPersistentVolumeClaimForAllNamespacesRequest */ - public APIlistPersistentVolumeClaimForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistPersistentVolumeClaimForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -29990,7 +31455,7 @@ public APIlistPersistentVolumeClaimForAllNamespacesRequest timeoutSeconds(Intege * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistPersistentVolumeClaimForAllNamespacesRequest */ - public APIlistPersistentVolumeClaimForAllNamespacesRequest watch(Boolean watch) { + public APIlistPersistentVolumeClaimForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -30001,7 +31466,8 @@ public APIlistPersistentVolumeClaimForAllNamespacesRequest watch(Boolean watch) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -30016,7 +31482,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PersistentVolumeClaimList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -30032,7 +31499,8 @@ public V1PersistentVolumeClaimList execute() throws ApiException { * @return ApiResponse<V1PersistentVolumeClaimList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -30048,7 +31516,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -30064,7 +31533,8 @@ public okhttp3.Call executeAsync(final ApiCallback * list or watch objects of kind PersistentVolumeClaim * @return APIlistPersistentVolumeClaimForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -30073,7 +31543,7 @@ public okhttp3.Call executeAsync(final ApiCallback public APIlistPersistentVolumeClaimForAllNamespacesRequest listPersistentVolumeClaimForAllNamespaces() { return new APIlistPersistentVolumeClaimForAllNamespacesRequest(); } - private okhttp3.Call listPodForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPodForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -30168,19 +31638,19 @@ private okhttp3.Call listPodForAllNamespacesCall(Boolean allowWatchBookmarks, St } @SuppressWarnings("rawtypes") - private okhttp3.Call listPodForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPodForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listPodForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listPodForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listPodForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listPodForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listPodForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPodForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listPodForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -30189,16 +31659,27 @@ private okhttp3.Call listPodForAllNamespacesAsync(Boolean allowWatchBookmarks, S } public class APIlistPodForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistPodForAllNamespacesRequest() { @@ -30209,7 +31690,7 @@ private APIlistPodForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistPodForAllNamespacesRequest */ - public APIlistPodForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistPodForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -30219,7 +31700,7 @@ public APIlistPodForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchB * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistPodForAllNamespacesRequest */ - public APIlistPodForAllNamespacesRequest _continue(String _continue) { + public APIlistPodForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -30229,7 +31710,7 @@ public APIlistPodForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistPodForAllNamespacesRequest */ - public APIlistPodForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistPodForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -30239,7 +31720,7 @@ public APIlistPodForAllNamespacesRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistPodForAllNamespacesRequest */ - public APIlistPodForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistPodForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -30249,7 +31730,7 @@ public APIlistPodForAllNamespacesRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistPodForAllNamespacesRequest */ - public APIlistPodForAllNamespacesRequest limit(Integer limit) { + public APIlistPodForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -30259,7 +31740,7 @@ public APIlistPodForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistPodForAllNamespacesRequest */ - public APIlistPodForAllNamespacesRequest pretty(String pretty) { + public APIlistPodForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -30269,7 +31750,7 @@ public APIlistPodForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistPodForAllNamespacesRequest */ - public APIlistPodForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistPodForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -30279,7 +31760,7 @@ public APIlistPodForAllNamespacesRequest resourceVersion(String resourceVersion) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistPodForAllNamespacesRequest */ - public APIlistPodForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistPodForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -30289,7 +31770,7 @@ public APIlistPodForAllNamespacesRequest resourceVersionMatch(String resourceVer * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistPodForAllNamespacesRequest */ - public APIlistPodForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistPodForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -30299,7 +31780,7 @@ public APIlistPodForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEv * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistPodForAllNamespacesRequest */ - public APIlistPodForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistPodForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -30309,7 +31790,7 @@ public APIlistPodForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistPodForAllNamespacesRequest */ - public APIlistPodForAllNamespacesRequest watch(Boolean watch) { + public APIlistPodForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -30320,7 +31801,8 @@ public APIlistPodForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -30335,7 +31817,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PodList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -30351,7 +31834,8 @@ public V1PodList execute() throws ApiException { * @return ApiResponse<V1PodList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -30367,7 +31851,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -30383,7 +31868,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * list or watch objects of kind Pod * @return APIlistPodForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -30392,7 +31878,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws public APIlistPodForAllNamespacesRequest listPodForAllNamespaces() { return new APIlistPodForAllNamespacesRequest(); } - private okhttp3.Call listPodTemplateForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPodTemplateForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -30487,19 +31973,19 @@ private okhttp3.Call listPodTemplateForAllNamespacesCall(Boolean allowWatchBookm } @SuppressWarnings("rawtypes") - private okhttp3.Call listPodTemplateForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPodTemplateForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listPodTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listPodTemplateForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listPodTemplateForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listPodTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listPodTemplateForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPodTemplateForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listPodTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -30508,16 +31994,27 @@ private okhttp3.Call listPodTemplateForAllNamespacesAsync(Boolean allowWatchBook } public class APIlistPodTemplateForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistPodTemplateForAllNamespacesRequest() { @@ -30528,7 +32025,7 @@ private APIlistPodTemplateForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistPodTemplateForAllNamespacesRequest */ - public APIlistPodTemplateForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistPodTemplateForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -30538,7 +32035,7 @@ public APIlistPodTemplateForAllNamespacesRequest allowWatchBookmarks(Boolean all * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistPodTemplateForAllNamespacesRequest */ - public APIlistPodTemplateForAllNamespacesRequest _continue(String _continue) { + public APIlistPodTemplateForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -30548,7 +32045,7 @@ public APIlistPodTemplateForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistPodTemplateForAllNamespacesRequest */ - public APIlistPodTemplateForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistPodTemplateForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -30558,7 +32055,7 @@ public APIlistPodTemplateForAllNamespacesRequest fieldSelector(String fieldSelec * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistPodTemplateForAllNamespacesRequest */ - public APIlistPodTemplateForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistPodTemplateForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -30568,7 +32065,7 @@ public APIlistPodTemplateForAllNamespacesRequest labelSelector(String labelSelec * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistPodTemplateForAllNamespacesRequest */ - public APIlistPodTemplateForAllNamespacesRequest limit(Integer limit) { + public APIlistPodTemplateForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -30578,7 +32075,7 @@ public APIlistPodTemplateForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistPodTemplateForAllNamespacesRequest */ - public APIlistPodTemplateForAllNamespacesRequest pretty(String pretty) { + public APIlistPodTemplateForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -30588,7 +32085,7 @@ public APIlistPodTemplateForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistPodTemplateForAllNamespacesRequest */ - public APIlistPodTemplateForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistPodTemplateForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -30598,7 +32095,7 @@ public APIlistPodTemplateForAllNamespacesRequest resourceVersion(String resource * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistPodTemplateForAllNamespacesRequest */ - public APIlistPodTemplateForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistPodTemplateForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -30608,7 +32105,7 @@ public APIlistPodTemplateForAllNamespacesRequest resourceVersionMatch(String res * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistPodTemplateForAllNamespacesRequest */ - public APIlistPodTemplateForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistPodTemplateForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -30618,7 +32115,7 @@ public APIlistPodTemplateForAllNamespacesRequest sendInitialEvents(Boolean sendI * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistPodTemplateForAllNamespacesRequest */ - public APIlistPodTemplateForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistPodTemplateForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -30628,7 +32125,7 @@ public APIlistPodTemplateForAllNamespacesRequest timeoutSeconds(Integer timeoutS * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistPodTemplateForAllNamespacesRequest */ - public APIlistPodTemplateForAllNamespacesRequest watch(Boolean watch) { + public APIlistPodTemplateForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -30639,7 +32136,8 @@ public APIlistPodTemplateForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -30654,7 +32152,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PodTemplateList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -30670,7 +32169,8 @@ public V1PodTemplateList execute() throws ApiException { * @return ApiResponse<V1PodTemplateList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -30686,7 +32186,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -30702,7 +32203,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * list or watch objects of kind PodTemplate * @return APIlistPodTemplateForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -30711,7 +32213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistPodTemplateForAllNamespacesRequest listPodTemplateForAllNamespaces() { return new APIlistPodTemplateForAllNamespacesRequest(); } - private okhttp3.Call listReplicationControllerForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listReplicationControllerForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -30806,19 +32308,19 @@ private okhttp3.Call listReplicationControllerForAllNamespacesCall(Boolean allow } @SuppressWarnings("rawtypes") - private okhttp3.Call listReplicationControllerForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listReplicationControllerForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listReplicationControllerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listReplicationControllerForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listReplicationControllerForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listReplicationControllerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listReplicationControllerForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listReplicationControllerForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listReplicationControllerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -30827,16 +32329,27 @@ private okhttp3.Call listReplicationControllerForAllNamespacesAsync(Boolean allo } public class APIlistReplicationControllerForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistReplicationControllerForAllNamespacesRequest() { @@ -30847,7 +32360,7 @@ private APIlistReplicationControllerForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistReplicationControllerForAllNamespacesRequest */ - public APIlistReplicationControllerForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistReplicationControllerForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -30857,7 +32370,7 @@ public APIlistReplicationControllerForAllNamespacesRequest allowWatchBookmarks(B * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistReplicationControllerForAllNamespacesRequest */ - public APIlistReplicationControllerForAllNamespacesRequest _continue(String _continue) { + public APIlistReplicationControllerForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -30867,7 +32380,7 @@ public APIlistReplicationControllerForAllNamespacesRequest _continue(String _con * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistReplicationControllerForAllNamespacesRequest */ - public APIlistReplicationControllerForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistReplicationControllerForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -30877,7 +32390,7 @@ public APIlistReplicationControllerForAllNamespacesRequest fieldSelector(String * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistReplicationControllerForAllNamespacesRequest */ - public APIlistReplicationControllerForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistReplicationControllerForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -30887,7 +32400,7 @@ public APIlistReplicationControllerForAllNamespacesRequest labelSelector(String * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistReplicationControllerForAllNamespacesRequest */ - public APIlistReplicationControllerForAllNamespacesRequest limit(Integer limit) { + public APIlistReplicationControllerForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -30897,7 +32410,7 @@ public APIlistReplicationControllerForAllNamespacesRequest limit(Integer limit) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistReplicationControllerForAllNamespacesRequest */ - public APIlistReplicationControllerForAllNamespacesRequest pretty(String pretty) { + public APIlistReplicationControllerForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -30907,7 +32420,7 @@ public APIlistReplicationControllerForAllNamespacesRequest pretty(String pretty) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistReplicationControllerForAllNamespacesRequest */ - public APIlistReplicationControllerForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistReplicationControllerForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -30917,7 +32430,7 @@ public APIlistReplicationControllerForAllNamespacesRequest resourceVersion(Strin * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistReplicationControllerForAllNamespacesRequest */ - public APIlistReplicationControllerForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistReplicationControllerForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -30927,7 +32440,7 @@ public APIlistReplicationControllerForAllNamespacesRequest resourceVersionMatch( * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistReplicationControllerForAllNamespacesRequest */ - public APIlistReplicationControllerForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistReplicationControllerForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -30937,7 +32450,7 @@ public APIlistReplicationControllerForAllNamespacesRequest sendInitialEvents(Boo * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistReplicationControllerForAllNamespacesRequest */ - public APIlistReplicationControllerForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistReplicationControllerForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -30947,7 +32460,7 @@ public APIlistReplicationControllerForAllNamespacesRequest timeoutSeconds(Intege * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistReplicationControllerForAllNamespacesRequest */ - public APIlistReplicationControllerForAllNamespacesRequest watch(Boolean watch) { + public APIlistReplicationControllerForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -30958,7 +32471,8 @@ public APIlistReplicationControllerForAllNamespacesRequest watch(Boolean watch) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -30973,7 +32487,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ReplicationControllerList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -30989,7 +32504,8 @@ public V1ReplicationControllerList execute() throws ApiException { * @return ApiResponse<V1ReplicationControllerList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -31005,7 +32521,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -31021,7 +32538,8 @@ public okhttp3.Call executeAsync(final ApiCallback * list or watch objects of kind ReplicationController * @return APIlistReplicationControllerForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -31030,7 +32548,7 @@ public okhttp3.Call executeAsync(final ApiCallback public APIlistReplicationControllerForAllNamespacesRequest listReplicationControllerForAllNamespaces() { return new APIlistReplicationControllerForAllNamespacesRequest(); } - private okhttp3.Call listResourceQuotaForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceQuotaForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -31125,19 +32643,19 @@ private okhttp3.Call listResourceQuotaForAllNamespacesCall(Boolean allowWatchBoo } @SuppressWarnings("rawtypes") - private okhttp3.Call listResourceQuotaForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceQuotaForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listResourceQuotaForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listResourceQuotaForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listResourceQuotaForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listResourceQuotaForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listResourceQuotaForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceQuotaForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listResourceQuotaForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -31146,16 +32664,27 @@ private okhttp3.Call listResourceQuotaForAllNamespacesAsync(Boolean allowWatchBo } public class APIlistResourceQuotaForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistResourceQuotaForAllNamespacesRequest() { @@ -31166,7 +32695,7 @@ private APIlistResourceQuotaForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistResourceQuotaForAllNamespacesRequest */ - public APIlistResourceQuotaForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistResourceQuotaForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -31176,7 +32705,7 @@ public APIlistResourceQuotaForAllNamespacesRequest allowWatchBookmarks(Boolean a * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistResourceQuotaForAllNamespacesRequest */ - public APIlistResourceQuotaForAllNamespacesRequest _continue(String _continue) { + public APIlistResourceQuotaForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -31186,7 +32715,7 @@ public APIlistResourceQuotaForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistResourceQuotaForAllNamespacesRequest */ - public APIlistResourceQuotaForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistResourceQuotaForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -31196,7 +32725,7 @@ public APIlistResourceQuotaForAllNamespacesRequest fieldSelector(String fieldSel * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistResourceQuotaForAllNamespacesRequest */ - public APIlistResourceQuotaForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistResourceQuotaForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -31206,7 +32735,7 @@ public APIlistResourceQuotaForAllNamespacesRequest labelSelector(String labelSel * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistResourceQuotaForAllNamespacesRequest */ - public APIlistResourceQuotaForAllNamespacesRequest limit(Integer limit) { + public APIlistResourceQuotaForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -31216,7 +32745,7 @@ public APIlistResourceQuotaForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistResourceQuotaForAllNamespacesRequest */ - public APIlistResourceQuotaForAllNamespacesRequest pretty(String pretty) { + public APIlistResourceQuotaForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -31226,7 +32755,7 @@ public APIlistResourceQuotaForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistResourceQuotaForAllNamespacesRequest */ - public APIlistResourceQuotaForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistResourceQuotaForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -31236,7 +32765,7 @@ public APIlistResourceQuotaForAllNamespacesRequest resourceVersion(String resour * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistResourceQuotaForAllNamespacesRequest */ - public APIlistResourceQuotaForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistResourceQuotaForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -31246,7 +32775,7 @@ public APIlistResourceQuotaForAllNamespacesRequest resourceVersionMatch(String r * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistResourceQuotaForAllNamespacesRequest */ - public APIlistResourceQuotaForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistResourceQuotaForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -31256,7 +32785,7 @@ public APIlistResourceQuotaForAllNamespacesRequest sendInitialEvents(Boolean sen * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistResourceQuotaForAllNamespacesRequest */ - public APIlistResourceQuotaForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistResourceQuotaForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -31266,7 +32795,7 @@ public APIlistResourceQuotaForAllNamespacesRequest timeoutSeconds(Integer timeou * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistResourceQuotaForAllNamespacesRequest */ - public APIlistResourceQuotaForAllNamespacesRequest watch(Boolean watch) { + public APIlistResourceQuotaForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -31277,7 +32806,8 @@ public APIlistResourceQuotaForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -31292,7 +32822,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ResourceQuotaList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -31308,7 +32839,8 @@ public V1ResourceQuotaList execute() throws ApiException { * @return ApiResponse<V1ResourceQuotaList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -31324,7 +32856,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -31340,7 +32873,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac * list or watch objects of kind ResourceQuota * @return APIlistResourceQuotaForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -31349,7 +32883,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac public APIlistResourceQuotaForAllNamespacesRequest listResourceQuotaForAllNamespaces() { return new APIlistResourceQuotaForAllNamespacesRequest(); } - private okhttp3.Call listSecretForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listSecretForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -31444,19 +32978,19 @@ private okhttp3.Call listSecretForAllNamespacesCall(Boolean allowWatchBookmarks, } @SuppressWarnings("rawtypes") - private okhttp3.Call listSecretForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listSecretForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listSecretForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listSecretForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listSecretForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listSecretForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listSecretForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listSecretForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listSecretForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -31465,16 +32999,27 @@ private okhttp3.Call listSecretForAllNamespacesAsync(Boolean allowWatchBookmarks } public class APIlistSecretForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistSecretForAllNamespacesRequest() { @@ -31485,7 +33030,7 @@ private APIlistSecretForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistSecretForAllNamespacesRequest */ - public APIlistSecretForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistSecretForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -31495,7 +33040,7 @@ public APIlistSecretForAllNamespacesRequest allowWatchBookmarks(Boolean allowWat * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistSecretForAllNamespacesRequest */ - public APIlistSecretForAllNamespacesRequest _continue(String _continue) { + public APIlistSecretForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -31505,7 +33050,7 @@ public APIlistSecretForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistSecretForAllNamespacesRequest */ - public APIlistSecretForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistSecretForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -31515,7 +33060,7 @@ public APIlistSecretForAllNamespacesRequest fieldSelector(String fieldSelector) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistSecretForAllNamespacesRequest */ - public APIlistSecretForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistSecretForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -31525,7 +33070,7 @@ public APIlistSecretForAllNamespacesRequest labelSelector(String labelSelector) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistSecretForAllNamespacesRequest */ - public APIlistSecretForAllNamespacesRequest limit(Integer limit) { + public APIlistSecretForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -31535,7 +33080,7 @@ public APIlistSecretForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistSecretForAllNamespacesRequest */ - public APIlistSecretForAllNamespacesRequest pretty(String pretty) { + public APIlistSecretForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -31545,7 +33090,7 @@ public APIlistSecretForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistSecretForAllNamespacesRequest */ - public APIlistSecretForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistSecretForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -31555,7 +33100,7 @@ public APIlistSecretForAllNamespacesRequest resourceVersion(String resourceVersi * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistSecretForAllNamespacesRequest */ - public APIlistSecretForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistSecretForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -31565,7 +33110,7 @@ public APIlistSecretForAllNamespacesRequest resourceVersionMatch(String resource * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistSecretForAllNamespacesRequest */ - public APIlistSecretForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistSecretForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -31575,7 +33120,7 @@ public APIlistSecretForAllNamespacesRequest sendInitialEvents(Boolean sendInitia * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistSecretForAllNamespacesRequest */ - public APIlistSecretForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistSecretForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -31585,7 +33130,7 @@ public APIlistSecretForAllNamespacesRequest timeoutSeconds(Integer timeoutSecond * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistSecretForAllNamespacesRequest */ - public APIlistSecretForAllNamespacesRequest watch(Boolean watch) { + public APIlistSecretForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -31596,7 +33141,8 @@ public APIlistSecretForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -31611,7 +33157,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1SecretList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -31627,7 +33174,8 @@ public V1SecretList execute() throws ApiException { * @return ApiResponse<V1SecretList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -31643,7 +33191,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -31659,7 +33208,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * list or watch objects of kind Secret * @return APIlistSecretForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -31668,7 +33218,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro public APIlistSecretForAllNamespacesRequest listSecretForAllNamespaces() { return new APIlistSecretForAllNamespacesRequest(); } - private okhttp3.Call listServiceAccountForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listServiceAccountForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -31763,19 +33313,19 @@ private okhttp3.Call listServiceAccountForAllNamespacesCall(Boolean allowWatchBo } @SuppressWarnings("rawtypes") - private okhttp3.Call listServiceAccountForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listServiceAccountForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listServiceAccountForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listServiceAccountForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listServiceAccountForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listServiceAccountForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listServiceAccountForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listServiceAccountForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listServiceAccountForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -31784,16 +33334,27 @@ private okhttp3.Call listServiceAccountForAllNamespacesAsync(Boolean allowWatchB } public class APIlistServiceAccountForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistServiceAccountForAllNamespacesRequest() { @@ -31804,7 +33365,7 @@ private APIlistServiceAccountForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistServiceAccountForAllNamespacesRequest */ - public APIlistServiceAccountForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistServiceAccountForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -31814,7 +33375,7 @@ public APIlistServiceAccountForAllNamespacesRequest allowWatchBookmarks(Boolean * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistServiceAccountForAllNamespacesRequest */ - public APIlistServiceAccountForAllNamespacesRequest _continue(String _continue) { + public APIlistServiceAccountForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -31824,7 +33385,7 @@ public APIlistServiceAccountForAllNamespacesRequest _continue(String _continue) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistServiceAccountForAllNamespacesRequest */ - public APIlistServiceAccountForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistServiceAccountForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -31834,7 +33395,7 @@ public APIlistServiceAccountForAllNamespacesRequest fieldSelector(String fieldSe * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistServiceAccountForAllNamespacesRequest */ - public APIlistServiceAccountForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistServiceAccountForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -31844,7 +33405,7 @@ public APIlistServiceAccountForAllNamespacesRequest labelSelector(String labelSe * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistServiceAccountForAllNamespacesRequest */ - public APIlistServiceAccountForAllNamespacesRequest limit(Integer limit) { + public APIlistServiceAccountForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -31854,7 +33415,7 @@ public APIlistServiceAccountForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistServiceAccountForAllNamespacesRequest */ - public APIlistServiceAccountForAllNamespacesRequest pretty(String pretty) { + public APIlistServiceAccountForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -31864,7 +33425,7 @@ public APIlistServiceAccountForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistServiceAccountForAllNamespacesRequest */ - public APIlistServiceAccountForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistServiceAccountForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -31874,7 +33435,7 @@ public APIlistServiceAccountForAllNamespacesRequest resourceVersion(String resou * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistServiceAccountForAllNamespacesRequest */ - public APIlistServiceAccountForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistServiceAccountForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -31884,7 +33445,7 @@ public APIlistServiceAccountForAllNamespacesRequest resourceVersionMatch(String * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistServiceAccountForAllNamespacesRequest */ - public APIlistServiceAccountForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistServiceAccountForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -31894,7 +33455,7 @@ public APIlistServiceAccountForAllNamespacesRequest sendInitialEvents(Boolean se * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistServiceAccountForAllNamespacesRequest */ - public APIlistServiceAccountForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistServiceAccountForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -31904,7 +33465,7 @@ public APIlistServiceAccountForAllNamespacesRequest timeoutSeconds(Integer timeo * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistServiceAccountForAllNamespacesRequest */ - public APIlistServiceAccountForAllNamespacesRequest watch(Boolean watch) { + public APIlistServiceAccountForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -31915,7 +33476,8 @@ public APIlistServiceAccountForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -31930,7 +33492,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ServiceAccountList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -31946,7 +33509,8 @@ public V1ServiceAccountList execute() throws ApiException { * @return ApiResponse<V1ServiceAccountList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -31962,7 +33526,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -31978,7 +33543,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * list or watch objects of kind ServiceAccount * @return APIlistServiceAccountForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -31987,7 +33553,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba public APIlistServiceAccountForAllNamespacesRequest listServiceAccountForAllNamespaces() { return new APIlistServiceAccountForAllNamespacesRequest(); } - private okhttp3.Call listServiceForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listServiceForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -32082,19 +33648,19 @@ private okhttp3.Call listServiceForAllNamespacesCall(Boolean allowWatchBookmarks } @SuppressWarnings("rawtypes") - private okhttp3.Call listServiceForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listServiceForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listServiceForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listServiceForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listServiceForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listServiceForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listServiceForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listServiceForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listServiceForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -32103,16 +33669,27 @@ private okhttp3.Call listServiceForAllNamespacesAsync(Boolean allowWatchBookmark } public class APIlistServiceForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistServiceForAllNamespacesRequest() { @@ -32123,7 +33700,7 @@ private APIlistServiceForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistServiceForAllNamespacesRequest */ - public APIlistServiceForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistServiceForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -32133,7 +33710,7 @@ public APIlistServiceForAllNamespacesRequest allowWatchBookmarks(Boolean allowWa * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistServiceForAllNamespacesRequest */ - public APIlistServiceForAllNamespacesRequest _continue(String _continue) { + public APIlistServiceForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -32143,7 +33720,7 @@ public APIlistServiceForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistServiceForAllNamespacesRequest */ - public APIlistServiceForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistServiceForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -32153,7 +33730,7 @@ public APIlistServiceForAllNamespacesRequest fieldSelector(String fieldSelector) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistServiceForAllNamespacesRequest */ - public APIlistServiceForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistServiceForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -32163,7 +33740,7 @@ public APIlistServiceForAllNamespacesRequest labelSelector(String labelSelector) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistServiceForAllNamespacesRequest */ - public APIlistServiceForAllNamespacesRequest limit(Integer limit) { + public APIlistServiceForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -32173,7 +33750,7 @@ public APIlistServiceForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistServiceForAllNamespacesRequest */ - public APIlistServiceForAllNamespacesRequest pretty(String pretty) { + public APIlistServiceForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -32183,7 +33760,7 @@ public APIlistServiceForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistServiceForAllNamespacesRequest */ - public APIlistServiceForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistServiceForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -32193,7 +33770,7 @@ public APIlistServiceForAllNamespacesRequest resourceVersion(String resourceVers * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistServiceForAllNamespacesRequest */ - public APIlistServiceForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistServiceForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -32203,7 +33780,7 @@ public APIlistServiceForAllNamespacesRequest resourceVersionMatch(String resourc * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistServiceForAllNamespacesRequest */ - public APIlistServiceForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistServiceForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -32213,7 +33790,7 @@ public APIlistServiceForAllNamespacesRequest sendInitialEvents(Boolean sendIniti * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistServiceForAllNamespacesRequest */ - public APIlistServiceForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistServiceForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -32223,7 +33800,7 @@ public APIlistServiceForAllNamespacesRequest timeoutSeconds(Integer timeoutSecon * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistServiceForAllNamespacesRequest */ - public APIlistServiceForAllNamespacesRequest watch(Boolean watch) { + public APIlistServiceForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -32234,7 +33811,8 @@ public APIlistServiceForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -32249,7 +33827,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ServiceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -32265,7 +33844,8 @@ public V1ServiceList execute() throws ApiException { * @return ApiResponse<V1ServiceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -32281,7 +33861,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -32297,7 +33878,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * list or watch objects of kind Service * @return APIlistServiceForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -32306,7 +33888,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr public APIlistServiceForAllNamespacesRequest listServiceForAllNamespaces() { return new APIlistServiceForAllNamespacesRequest(); } - private okhttp3.Call patchNamespaceCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespaceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -32376,7 +33958,7 @@ private okhttp3.Call patchNamespaceCall(String name, V1Patch body, String pretty } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespaceValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespaceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespace(Async)"); @@ -32392,13 +33974,13 @@ private okhttp3.Call patchNamespaceValidateBeforeCall(String name, V1Patch body, } - private ApiResponse patchNamespaceWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespaceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespaceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespaceAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespaceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespaceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -32407,15 +33989,22 @@ private okhttp3.Call patchNamespaceAsync(String name, V1Patch body, String prett } public class APIpatchNamespaceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespaceRequest(String name, V1Patch body) { + private APIpatchNamespaceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -32425,7 +34014,7 @@ private APIpatchNamespaceRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespaceRequest */ - public APIpatchNamespaceRequest pretty(String pretty) { + public APIpatchNamespaceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -32435,7 +34024,7 @@ public APIpatchNamespaceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespaceRequest */ - public APIpatchNamespaceRequest dryRun(String dryRun) { + public APIpatchNamespaceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -32445,7 +34034,7 @@ public APIpatchNamespaceRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespaceRequest */ - public APIpatchNamespaceRequest fieldManager(String fieldManager) { + public APIpatchNamespaceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -32455,7 +34044,7 @@ public APIpatchNamespaceRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespaceRequest */ - public APIpatchNamespaceRequest fieldValidation(String fieldValidation) { + public APIpatchNamespaceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -32465,7 +34054,7 @@ public APIpatchNamespaceRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespaceRequest */ - public APIpatchNamespaceRequest force(Boolean force) { + public APIpatchNamespaceRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -32476,7 +34065,8 @@ public APIpatchNamespaceRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -32492,7 +34082,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Namespace * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -32509,7 +34100,8 @@ public V1Namespace execute() throws ApiException { * @return ApiResponse<V1Namespace> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -32526,7 +34118,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -32545,17 +34138,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIpatchNamespaceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespaceRequest patchNamespace(String name, V1Patch body) { + public APIpatchNamespaceRequest patchNamespace(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespaceRequest(name, body); } - private okhttp3.Call patchNamespaceStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespaceStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -32625,7 +34219,7 @@ private okhttp3.Call patchNamespaceStatusCall(String name, V1Patch body, String } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespaceStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespaceStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespaceStatus(Async)"); @@ -32641,13 +34235,13 @@ private okhttp3.Call patchNamespaceStatusValidateBeforeCall(String name, V1Patch } - private ApiResponse patchNamespaceStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespaceStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespaceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespaceStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespaceStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespaceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -32656,15 +34250,22 @@ private okhttp3.Call patchNamespaceStatusAsync(String name, V1Patch body, String } public class APIpatchNamespaceStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespaceStatusRequest(String name, V1Patch body) { + private APIpatchNamespaceStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -32674,7 +34275,7 @@ private APIpatchNamespaceStatusRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespaceStatusRequest */ - public APIpatchNamespaceStatusRequest pretty(String pretty) { + public APIpatchNamespaceStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -32684,7 +34285,7 @@ public APIpatchNamespaceStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespaceStatusRequest */ - public APIpatchNamespaceStatusRequest dryRun(String dryRun) { + public APIpatchNamespaceStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -32694,7 +34295,7 @@ public APIpatchNamespaceStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespaceStatusRequest */ - public APIpatchNamespaceStatusRequest fieldManager(String fieldManager) { + public APIpatchNamespaceStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -32704,7 +34305,7 @@ public APIpatchNamespaceStatusRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespaceStatusRequest */ - public APIpatchNamespaceStatusRequest fieldValidation(String fieldValidation) { + public APIpatchNamespaceStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -32714,7 +34315,7 @@ public APIpatchNamespaceStatusRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespaceStatusRequest */ - public APIpatchNamespaceStatusRequest force(Boolean force) { + public APIpatchNamespaceStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -32725,7 +34326,8 @@ public APIpatchNamespaceStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -32741,7 +34343,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Namespace * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -32758,7 +34361,8 @@ public V1Namespace execute() throws ApiException { * @return ApiResponse<V1Namespace> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -32775,7 +34379,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -32794,17 +34399,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIpatchNamespaceStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespaceStatusRequest patchNamespaceStatus(String name, V1Patch body) { + public APIpatchNamespaceStatusRequest patchNamespaceStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespaceStatusRequest(name, body); } - private okhttp3.Call patchNamespacedConfigMapCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedConfigMapCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -32875,7 +34481,7 @@ private okhttp3.Call patchNamespacedConfigMapCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedConfigMapValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedConfigMapValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedConfigMap(Async)"); @@ -32896,13 +34502,13 @@ private okhttp3.Call patchNamespacedConfigMapValidateBeforeCall(String name, Str } - private ApiResponse patchNamespacedConfigMapWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedConfigMapWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedConfigMapValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedConfigMapAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedConfigMapAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedConfigMapValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -32911,16 +34517,24 @@ private okhttp3.Call patchNamespacedConfigMapAsync(String name, String namespace } public class APIpatchNamespacedConfigMapRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedConfigMapRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedConfigMapRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -32931,7 +34545,7 @@ private APIpatchNamespacedConfigMapRequest(String name, String namespace, V1Patc * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedConfigMapRequest */ - public APIpatchNamespacedConfigMapRequest pretty(String pretty) { + public APIpatchNamespacedConfigMapRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -32941,7 +34555,7 @@ public APIpatchNamespacedConfigMapRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedConfigMapRequest */ - public APIpatchNamespacedConfigMapRequest dryRun(String dryRun) { + public APIpatchNamespacedConfigMapRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -32951,7 +34565,7 @@ public APIpatchNamespacedConfigMapRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedConfigMapRequest */ - public APIpatchNamespacedConfigMapRequest fieldManager(String fieldManager) { + public APIpatchNamespacedConfigMapRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -32961,7 +34575,7 @@ public APIpatchNamespacedConfigMapRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedConfigMapRequest */ - public APIpatchNamespacedConfigMapRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedConfigMapRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -32971,7 +34585,7 @@ public APIpatchNamespacedConfigMapRequest fieldValidation(String fieldValidation * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedConfigMapRequest */ - public APIpatchNamespacedConfigMapRequest force(Boolean force) { + public APIpatchNamespacedConfigMapRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -32982,7 +34596,8 @@ public APIpatchNamespacedConfigMapRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -32998,7 +34613,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ConfigMap * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -33015,7 +34631,8 @@ public V1ConfigMap execute() throws ApiException { * @return ApiResponse<V1ConfigMap> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -33032,7 +34649,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -33052,17 +34670,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIpatchNamespacedConfigMapRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedConfigMapRequest patchNamespacedConfigMap(String name, String namespace, V1Patch body) { + public APIpatchNamespacedConfigMapRequest patchNamespacedConfigMap(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedConfigMapRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedEndpointsCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedEndpointsCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -33133,7 +34752,7 @@ private okhttp3.Call patchNamespacedEndpointsCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedEndpointsValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedEndpointsValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedEndpoints(Async)"); @@ -33154,13 +34773,13 @@ private okhttp3.Call patchNamespacedEndpointsValidateBeforeCall(String name, Str } - private ApiResponse patchNamespacedEndpointsWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedEndpointsWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedEndpointsValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedEndpointsAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedEndpointsAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedEndpointsValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -33169,16 +34788,24 @@ private okhttp3.Call patchNamespacedEndpointsAsync(String name, String namespace } public class APIpatchNamespacedEndpointsRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedEndpointsRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedEndpointsRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -33189,7 +34816,7 @@ private APIpatchNamespacedEndpointsRequest(String name, String namespace, V1Patc * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedEndpointsRequest */ - public APIpatchNamespacedEndpointsRequest pretty(String pretty) { + public APIpatchNamespacedEndpointsRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -33199,7 +34826,7 @@ public APIpatchNamespacedEndpointsRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedEndpointsRequest */ - public APIpatchNamespacedEndpointsRequest dryRun(String dryRun) { + public APIpatchNamespacedEndpointsRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -33209,7 +34836,7 @@ public APIpatchNamespacedEndpointsRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedEndpointsRequest */ - public APIpatchNamespacedEndpointsRequest fieldManager(String fieldManager) { + public APIpatchNamespacedEndpointsRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -33219,7 +34846,7 @@ public APIpatchNamespacedEndpointsRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedEndpointsRequest */ - public APIpatchNamespacedEndpointsRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedEndpointsRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -33229,7 +34856,7 @@ public APIpatchNamespacedEndpointsRequest fieldValidation(String fieldValidation * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedEndpointsRequest */ - public APIpatchNamespacedEndpointsRequest force(Boolean force) { + public APIpatchNamespacedEndpointsRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -33240,7 +34867,8 @@ public APIpatchNamespacedEndpointsRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -33256,7 +34884,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Endpoints * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -33273,7 +34902,8 @@ public V1Endpoints execute() throws ApiException { * @return ApiResponse<V1Endpoints> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -33290,7 +34920,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -33310,17 +34941,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIpatchNamespacedEndpointsRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedEndpointsRequest patchNamespacedEndpoints(String name, String namespace, V1Patch body) { + public APIpatchNamespacedEndpointsRequest patchNamespacedEndpoints(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedEndpointsRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedEventCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedEventCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -33391,7 +35023,7 @@ private okhttp3.Call patchNamespacedEventCall(String name, String namespace, V1P } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedEventValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedEventValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedEvent(Async)"); @@ -33412,13 +35044,13 @@ private okhttp3.Call patchNamespacedEventValidateBeforeCall(String name, String } - private ApiResponse patchNamespacedEventWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedEventWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedEventAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedEventAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -33427,16 +35059,24 @@ private okhttp3.Call patchNamespacedEventAsync(String name, String namespace, V1 } public class APIpatchNamespacedEventRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedEventRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedEventRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -33447,7 +35087,7 @@ private APIpatchNamespacedEventRequest(String name, String namespace, V1Patch bo * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedEventRequest */ - public APIpatchNamespacedEventRequest pretty(String pretty) { + public APIpatchNamespacedEventRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -33457,7 +35097,7 @@ public APIpatchNamespacedEventRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedEventRequest */ - public APIpatchNamespacedEventRequest dryRun(String dryRun) { + public APIpatchNamespacedEventRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -33467,7 +35107,7 @@ public APIpatchNamespacedEventRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedEventRequest */ - public APIpatchNamespacedEventRequest fieldManager(String fieldManager) { + public APIpatchNamespacedEventRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -33477,7 +35117,7 @@ public APIpatchNamespacedEventRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedEventRequest */ - public APIpatchNamespacedEventRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedEventRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -33487,7 +35127,7 @@ public APIpatchNamespacedEventRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedEventRequest */ - public APIpatchNamespacedEventRequest force(Boolean force) { + public APIpatchNamespacedEventRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -33498,7 +35138,8 @@ public APIpatchNamespacedEventRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -33514,7 +35155,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return CoreV1Event * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -33531,7 +35173,8 @@ public CoreV1Event execute() throws ApiException { * @return ApiResponse<CoreV1Event> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -33548,7 +35191,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -33568,17 +35212,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIpatchNamespacedEventRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedEventRequest patchNamespacedEvent(String name, String namespace, V1Patch body) { + public APIpatchNamespacedEventRequest patchNamespacedEvent(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedEventRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedLimitRangeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedLimitRangeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -33649,7 +35294,7 @@ private okhttp3.Call patchNamespacedLimitRangeCall(String name, String namespace } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedLimitRangeValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedLimitRangeValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedLimitRange(Async)"); @@ -33670,13 +35315,13 @@ private okhttp3.Call patchNamespacedLimitRangeValidateBeforeCall(String name, St } - private ApiResponse patchNamespacedLimitRangeWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedLimitRangeWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedLimitRangeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedLimitRangeAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedLimitRangeAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedLimitRangeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -33685,16 +35330,24 @@ private okhttp3.Call patchNamespacedLimitRangeAsync(String name, String namespac } public class APIpatchNamespacedLimitRangeRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedLimitRangeRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedLimitRangeRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -33705,7 +35358,7 @@ private APIpatchNamespacedLimitRangeRequest(String name, String namespace, V1Pat * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedLimitRangeRequest */ - public APIpatchNamespacedLimitRangeRequest pretty(String pretty) { + public APIpatchNamespacedLimitRangeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -33715,7 +35368,7 @@ public APIpatchNamespacedLimitRangeRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedLimitRangeRequest */ - public APIpatchNamespacedLimitRangeRequest dryRun(String dryRun) { + public APIpatchNamespacedLimitRangeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -33725,7 +35378,7 @@ public APIpatchNamespacedLimitRangeRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedLimitRangeRequest */ - public APIpatchNamespacedLimitRangeRequest fieldManager(String fieldManager) { + public APIpatchNamespacedLimitRangeRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -33735,7 +35388,7 @@ public APIpatchNamespacedLimitRangeRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedLimitRangeRequest */ - public APIpatchNamespacedLimitRangeRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedLimitRangeRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -33745,7 +35398,7 @@ public APIpatchNamespacedLimitRangeRequest fieldValidation(String fieldValidatio * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedLimitRangeRequest */ - public APIpatchNamespacedLimitRangeRequest force(Boolean force) { + public APIpatchNamespacedLimitRangeRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -33756,7 +35409,8 @@ public APIpatchNamespacedLimitRangeRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -33772,7 +35426,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1LimitRange * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -33789,7 +35444,8 @@ public V1LimitRange execute() throws ApiException { * @return ApiResponse<V1LimitRange> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -33806,7 +35462,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -33826,17 +35483,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIpatchNamespacedLimitRangeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedLimitRangeRequest patchNamespacedLimitRange(String name, String namespace, V1Patch body) { + public APIpatchNamespacedLimitRangeRequest patchNamespacedLimitRange(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedLimitRangeRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedPersistentVolumeClaimCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPersistentVolumeClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -33907,7 +35565,7 @@ private okhttp3.Call patchNamespacedPersistentVolumeClaimCall(String name, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedPersistentVolumeClaimValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPersistentVolumeClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPersistentVolumeClaim(Async)"); @@ -33928,13 +35586,13 @@ private okhttp3.Call patchNamespacedPersistentVolumeClaimValidateBeforeCall(Stri } - private ApiResponse patchNamespacedPersistentVolumeClaimWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedPersistentVolumeClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedPersistentVolumeClaimAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPersistentVolumeClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -33943,16 +35601,24 @@ private okhttp3.Call patchNamespacedPersistentVolumeClaimAsync(String name, Stri } public class APIpatchNamespacedPersistentVolumeClaimRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedPersistentVolumeClaimRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedPersistentVolumeClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -33963,7 +35629,7 @@ private APIpatchNamespacedPersistentVolumeClaimRequest(String name, String names * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedPersistentVolumeClaimRequest */ - public APIpatchNamespacedPersistentVolumeClaimRequest pretty(String pretty) { + public APIpatchNamespacedPersistentVolumeClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -33973,7 +35639,7 @@ public APIpatchNamespacedPersistentVolumeClaimRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedPersistentVolumeClaimRequest */ - public APIpatchNamespacedPersistentVolumeClaimRequest dryRun(String dryRun) { + public APIpatchNamespacedPersistentVolumeClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -33983,7 +35649,7 @@ public APIpatchNamespacedPersistentVolumeClaimRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedPersistentVolumeClaimRequest */ - public APIpatchNamespacedPersistentVolumeClaimRequest fieldManager(String fieldManager) { + public APIpatchNamespacedPersistentVolumeClaimRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -33993,7 +35659,7 @@ public APIpatchNamespacedPersistentVolumeClaimRequest fieldManager(String fieldM * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedPersistentVolumeClaimRequest */ - public APIpatchNamespacedPersistentVolumeClaimRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedPersistentVolumeClaimRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -34003,7 +35669,7 @@ public APIpatchNamespacedPersistentVolumeClaimRequest fieldValidation(String fie * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedPersistentVolumeClaimRequest */ - public APIpatchNamespacedPersistentVolumeClaimRequest force(Boolean force) { + public APIpatchNamespacedPersistentVolumeClaimRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -34014,7 +35680,8 @@ public APIpatchNamespacedPersistentVolumeClaimRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -34030,7 +35697,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PersistentVolumeClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -34047,7 +35715,8 @@ public V1PersistentVolumeClaim execute() throws ApiException { * @return ApiResponse<V1PersistentVolumeClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -34064,7 +35733,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExce * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -34084,17 +35754,18 @@ public okhttp3.Call executeAsync(final ApiCallback _cal * @param body (required) * @return APIpatchNamespacedPersistentVolumeClaimRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedPersistentVolumeClaimRequest patchNamespacedPersistentVolumeClaim(String name, String namespace, V1Patch body) { + public APIpatchNamespacedPersistentVolumeClaimRequest patchNamespacedPersistentVolumeClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedPersistentVolumeClaimRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedPersistentVolumeClaimStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPersistentVolumeClaimStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -34165,7 +35836,7 @@ private okhttp3.Call patchNamespacedPersistentVolumeClaimStatusCall(String name, } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedPersistentVolumeClaimStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPersistentVolumeClaimStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPersistentVolumeClaimStatus(Async)"); @@ -34186,13 +35857,13 @@ private okhttp3.Call patchNamespacedPersistentVolumeClaimStatusValidateBeforeCal } - private ApiResponse patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedPersistentVolumeClaimStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPersistentVolumeClaimStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -34201,16 +35872,24 @@ private okhttp3.Call patchNamespacedPersistentVolumeClaimStatusAsync(String name } public class APIpatchNamespacedPersistentVolumeClaimStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedPersistentVolumeClaimStatusRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedPersistentVolumeClaimStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -34221,7 +35900,7 @@ private APIpatchNamespacedPersistentVolumeClaimStatusRequest(String name, String * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedPersistentVolumeClaimStatusRequest */ - public APIpatchNamespacedPersistentVolumeClaimStatusRequest pretty(String pretty) { + public APIpatchNamespacedPersistentVolumeClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -34231,7 +35910,7 @@ public APIpatchNamespacedPersistentVolumeClaimStatusRequest pretty(String pretty * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedPersistentVolumeClaimStatusRequest */ - public APIpatchNamespacedPersistentVolumeClaimStatusRequest dryRun(String dryRun) { + public APIpatchNamespacedPersistentVolumeClaimStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -34241,7 +35920,7 @@ public APIpatchNamespacedPersistentVolumeClaimStatusRequest dryRun(String dryRun * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedPersistentVolumeClaimStatusRequest */ - public APIpatchNamespacedPersistentVolumeClaimStatusRequest fieldManager(String fieldManager) { + public APIpatchNamespacedPersistentVolumeClaimStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -34251,7 +35930,7 @@ public APIpatchNamespacedPersistentVolumeClaimStatusRequest fieldManager(String * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedPersistentVolumeClaimStatusRequest */ - public APIpatchNamespacedPersistentVolumeClaimStatusRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedPersistentVolumeClaimStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -34261,7 +35940,7 @@ public APIpatchNamespacedPersistentVolumeClaimStatusRequest fieldValidation(Stri * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedPersistentVolumeClaimStatusRequest */ - public APIpatchNamespacedPersistentVolumeClaimStatusRequest force(Boolean force) { + public APIpatchNamespacedPersistentVolumeClaimStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -34272,7 +35951,8 @@ public APIpatchNamespacedPersistentVolumeClaimStatusRequest force(Boolean force) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -34288,7 +35968,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PersistentVolumeClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -34305,7 +35986,8 @@ public V1PersistentVolumeClaim execute() throws ApiException { * @return ApiResponse<V1PersistentVolumeClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -34322,7 +36004,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExce * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -34342,17 +36025,18 @@ public okhttp3.Call executeAsync(final ApiCallback _cal * @param body (required) * @return APIpatchNamespacedPersistentVolumeClaimStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedPersistentVolumeClaimStatusRequest patchNamespacedPersistentVolumeClaimStatus(String name, String namespace, V1Patch body) { + public APIpatchNamespacedPersistentVolumeClaimStatusRequest patchNamespacedPersistentVolumeClaimStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedPersistentVolumeClaimStatusRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedPodCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPodCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -34423,7 +36107,7 @@ private okhttp3.Call patchNamespacedPodCall(String name, String namespace, V1Pat } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedPodValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPodValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPod(Async)"); @@ -34444,13 +36128,13 @@ private okhttp3.Call patchNamespacedPodValidateBeforeCall(String name, String na } - private ApiResponse patchNamespacedPodWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedPodWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPodValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedPodAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPodAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPodValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -34459,16 +36143,24 @@ private okhttp3.Call patchNamespacedPodAsync(String name, String namespace, V1Pa } public class APIpatchNamespacedPodRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedPodRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedPodRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -34479,7 +36171,7 @@ private APIpatchNamespacedPodRequest(String name, String namespace, V1Patch body * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedPodRequest */ - public APIpatchNamespacedPodRequest pretty(String pretty) { + public APIpatchNamespacedPodRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -34489,7 +36181,7 @@ public APIpatchNamespacedPodRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedPodRequest */ - public APIpatchNamespacedPodRequest dryRun(String dryRun) { + public APIpatchNamespacedPodRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -34499,7 +36191,7 @@ public APIpatchNamespacedPodRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedPodRequest */ - public APIpatchNamespacedPodRequest fieldManager(String fieldManager) { + public APIpatchNamespacedPodRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -34509,7 +36201,7 @@ public APIpatchNamespacedPodRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedPodRequest */ - public APIpatchNamespacedPodRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedPodRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -34519,7 +36211,7 @@ public APIpatchNamespacedPodRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedPodRequest */ - public APIpatchNamespacedPodRequest force(Boolean force) { + public APIpatchNamespacedPodRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -34530,7 +36222,8 @@ public APIpatchNamespacedPodRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -34546,7 +36239,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -34563,7 +36257,8 @@ public V1Pod execute() throws ApiException { * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -34580,7 +36275,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -34600,17 +36296,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE * @param body (required) * @return APIpatchNamespacedPodRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedPodRequest patchNamespacedPod(String name, String namespace, V1Patch body) { + public APIpatchNamespacedPodRequest patchNamespacedPod(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedPodRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedPodEphemeralcontainersCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPodEphemeralcontainersCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -34681,7 +36378,7 @@ private okhttp3.Call patchNamespacedPodEphemeralcontainersCall(String name, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedPodEphemeralcontainersValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPodEphemeralcontainersValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPodEphemeralcontainers(Async)"); @@ -34702,13 +36399,13 @@ private okhttp3.Call patchNamespacedPodEphemeralcontainersValidateBeforeCall(Str } - private ApiResponse patchNamespacedPodEphemeralcontainersWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedPodEphemeralcontainersWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPodEphemeralcontainersValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedPodEphemeralcontainersAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPodEphemeralcontainersAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPodEphemeralcontainersValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -34717,16 +36414,24 @@ private okhttp3.Call patchNamespacedPodEphemeralcontainersAsync(String name, Str } public class APIpatchNamespacedPodEphemeralcontainersRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedPodEphemeralcontainersRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedPodEphemeralcontainersRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -34737,7 +36442,7 @@ private APIpatchNamespacedPodEphemeralcontainersRequest(String name, String name * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedPodEphemeralcontainersRequest */ - public APIpatchNamespacedPodEphemeralcontainersRequest pretty(String pretty) { + public APIpatchNamespacedPodEphemeralcontainersRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -34747,7 +36452,7 @@ public APIpatchNamespacedPodEphemeralcontainersRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedPodEphemeralcontainersRequest */ - public APIpatchNamespacedPodEphemeralcontainersRequest dryRun(String dryRun) { + public APIpatchNamespacedPodEphemeralcontainersRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -34757,7 +36462,7 @@ public APIpatchNamespacedPodEphemeralcontainersRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedPodEphemeralcontainersRequest */ - public APIpatchNamespacedPodEphemeralcontainersRequest fieldManager(String fieldManager) { + public APIpatchNamespacedPodEphemeralcontainersRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -34767,7 +36472,7 @@ public APIpatchNamespacedPodEphemeralcontainersRequest fieldManager(String field * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedPodEphemeralcontainersRequest */ - public APIpatchNamespacedPodEphemeralcontainersRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedPodEphemeralcontainersRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -34777,7 +36482,7 @@ public APIpatchNamespacedPodEphemeralcontainersRequest fieldValidation(String fi * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedPodEphemeralcontainersRequest */ - public APIpatchNamespacedPodEphemeralcontainersRequest force(Boolean force) { + public APIpatchNamespacedPodEphemeralcontainersRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -34788,7 +36493,8 @@ public APIpatchNamespacedPodEphemeralcontainersRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -34804,7 +36510,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -34821,7 +36528,8 @@ public V1Pod execute() throws ApiException { * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -34838,7 +36546,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -34858,17 +36567,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE * @param body (required) * @return APIpatchNamespacedPodEphemeralcontainersRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedPodEphemeralcontainersRequest patchNamespacedPodEphemeralcontainers(String name, String namespace, V1Patch body) { + public APIpatchNamespacedPodEphemeralcontainersRequest patchNamespacedPodEphemeralcontainers(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedPodEphemeralcontainersRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedPodResizeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPodResizeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -34939,7 +36649,7 @@ private okhttp3.Call patchNamespacedPodResizeCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedPodResizeValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPodResizeValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPodResize(Async)"); @@ -34960,13 +36670,13 @@ private okhttp3.Call patchNamespacedPodResizeValidateBeforeCall(String name, Str } - private ApiResponse patchNamespacedPodResizeWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedPodResizeWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPodResizeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedPodResizeAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPodResizeAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPodResizeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -34975,16 +36685,24 @@ private okhttp3.Call patchNamespacedPodResizeAsync(String name, String namespace } public class APIpatchNamespacedPodResizeRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedPodResizeRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedPodResizeRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -34995,7 +36713,7 @@ private APIpatchNamespacedPodResizeRequest(String name, String namespace, V1Patc * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedPodResizeRequest */ - public APIpatchNamespacedPodResizeRequest pretty(String pretty) { + public APIpatchNamespacedPodResizeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -35005,7 +36723,7 @@ public APIpatchNamespacedPodResizeRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedPodResizeRequest */ - public APIpatchNamespacedPodResizeRequest dryRun(String dryRun) { + public APIpatchNamespacedPodResizeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -35015,7 +36733,7 @@ public APIpatchNamespacedPodResizeRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedPodResizeRequest */ - public APIpatchNamespacedPodResizeRequest fieldManager(String fieldManager) { + public APIpatchNamespacedPodResizeRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -35025,7 +36743,7 @@ public APIpatchNamespacedPodResizeRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedPodResizeRequest */ - public APIpatchNamespacedPodResizeRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedPodResizeRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -35035,7 +36753,7 @@ public APIpatchNamespacedPodResizeRequest fieldValidation(String fieldValidation * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedPodResizeRequest */ - public APIpatchNamespacedPodResizeRequest force(Boolean force) { + public APIpatchNamespacedPodResizeRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -35046,7 +36764,8 @@ public APIpatchNamespacedPodResizeRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -35062,7 +36781,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -35079,7 +36799,8 @@ public V1Pod execute() throws ApiException { * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -35096,7 +36817,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -35116,17 +36838,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE * @param body (required) * @return APIpatchNamespacedPodResizeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedPodResizeRequest patchNamespacedPodResize(String name, String namespace, V1Patch body) { + public APIpatchNamespacedPodResizeRequest patchNamespacedPodResize(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedPodResizeRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedPodStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPodStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -35197,7 +36920,7 @@ private okhttp3.Call patchNamespacedPodStatusCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedPodStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPodStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPodStatus(Async)"); @@ -35218,13 +36941,13 @@ private okhttp3.Call patchNamespacedPodStatusValidateBeforeCall(String name, Str } - private ApiResponse patchNamespacedPodStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedPodStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPodStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedPodStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPodStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPodStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -35233,16 +36956,24 @@ private okhttp3.Call patchNamespacedPodStatusAsync(String name, String namespace } public class APIpatchNamespacedPodStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedPodStatusRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedPodStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -35253,7 +36984,7 @@ private APIpatchNamespacedPodStatusRequest(String name, String namespace, V1Patc * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedPodStatusRequest */ - public APIpatchNamespacedPodStatusRequest pretty(String pretty) { + public APIpatchNamespacedPodStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -35263,7 +36994,7 @@ public APIpatchNamespacedPodStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedPodStatusRequest */ - public APIpatchNamespacedPodStatusRequest dryRun(String dryRun) { + public APIpatchNamespacedPodStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -35273,7 +37004,7 @@ public APIpatchNamespacedPodStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedPodStatusRequest */ - public APIpatchNamespacedPodStatusRequest fieldManager(String fieldManager) { + public APIpatchNamespacedPodStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -35283,7 +37014,7 @@ public APIpatchNamespacedPodStatusRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedPodStatusRequest */ - public APIpatchNamespacedPodStatusRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedPodStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -35293,7 +37024,7 @@ public APIpatchNamespacedPodStatusRequest fieldValidation(String fieldValidation * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedPodStatusRequest */ - public APIpatchNamespacedPodStatusRequest force(Boolean force) { + public APIpatchNamespacedPodStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -35304,7 +37035,8 @@ public APIpatchNamespacedPodStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -35320,7 +37052,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -35337,7 +37070,8 @@ public V1Pod execute() throws ApiException { * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -35354,7 +37088,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -35374,17 +37109,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE * @param body (required) * @return APIpatchNamespacedPodStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedPodStatusRequest patchNamespacedPodStatus(String name, String namespace, V1Patch body) { + public APIpatchNamespacedPodStatusRequest patchNamespacedPodStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedPodStatusRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedPodTemplateCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPodTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -35455,7 +37191,7 @@ private okhttp3.Call patchNamespacedPodTemplateCall(String name, String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedPodTemplateValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPodTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPodTemplate(Async)"); @@ -35476,13 +37212,13 @@ private okhttp3.Call patchNamespacedPodTemplateValidateBeforeCall(String name, S } - private ApiResponse patchNamespacedPodTemplateWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedPodTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPodTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedPodTemplateAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPodTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPodTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -35491,16 +37227,24 @@ private okhttp3.Call patchNamespacedPodTemplateAsync(String name, String namespa } public class APIpatchNamespacedPodTemplateRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedPodTemplateRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedPodTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -35511,7 +37255,7 @@ private APIpatchNamespacedPodTemplateRequest(String name, String namespace, V1Pa * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedPodTemplateRequest */ - public APIpatchNamespacedPodTemplateRequest pretty(String pretty) { + public APIpatchNamespacedPodTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -35521,7 +37265,7 @@ public APIpatchNamespacedPodTemplateRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedPodTemplateRequest */ - public APIpatchNamespacedPodTemplateRequest dryRun(String dryRun) { + public APIpatchNamespacedPodTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -35531,7 +37275,7 @@ public APIpatchNamespacedPodTemplateRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedPodTemplateRequest */ - public APIpatchNamespacedPodTemplateRequest fieldManager(String fieldManager) { + public APIpatchNamespacedPodTemplateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -35541,7 +37285,7 @@ public APIpatchNamespacedPodTemplateRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedPodTemplateRequest */ - public APIpatchNamespacedPodTemplateRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedPodTemplateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -35551,7 +37295,7 @@ public APIpatchNamespacedPodTemplateRequest fieldValidation(String fieldValidati * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedPodTemplateRequest */ - public APIpatchNamespacedPodTemplateRequest force(Boolean force) { + public APIpatchNamespacedPodTemplateRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -35562,7 +37306,8 @@ public APIpatchNamespacedPodTemplateRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -35578,7 +37323,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PodTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -35595,7 +37341,8 @@ public V1PodTemplate execute() throws ApiException { * @return ApiResponse<V1PodTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -35612,7 +37359,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -35632,17 +37380,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param body (required) * @return APIpatchNamespacedPodTemplateRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedPodTemplateRequest patchNamespacedPodTemplate(String name, String namespace, V1Patch body) { + public APIpatchNamespacedPodTemplateRequest patchNamespacedPodTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedPodTemplateRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedReplicationControllerCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedReplicationControllerCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -35713,7 +37462,7 @@ private okhttp3.Call patchNamespacedReplicationControllerCall(String name, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedReplicationControllerValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedReplicationControllerValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedReplicationController(Async)"); @@ -35734,13 +37483,13 @@ private okhttp3.Call patchNamespacedReplicationControllerValidateBeforeCall(Stri } - private ApiResponse patchNamespacedReplicationControllerWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedReplicationControllerWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicationControllerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedReplicationControllerAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedReplicationControllerAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicationControllerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -35749,16 +37498,24 @@ private okhttp3.Call patchNamespacedReplicationControllerAsync(String name, Stri } public class APIpatchNamespacedReplicationControllerRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedReplicationControllerRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedReplicationControllerRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -35769,7 +37526,7 @@ private APIpatchNamespacedReplicationControllerRequest(String name, String names * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedReplicationControllerRequest */ - public APIpatchNamespacedReplicationControllerRequest pretty(String pretty) { + public APIpatchNamespacedReplicationControllerRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -35779,7 +37536,7 @@ public APIpatchNamespacedReplicationControllerRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedReplicationControllerRequest */ - public APIpatchNamespacedReplicationControllerRequest dryRun(String dryRun) { + public APIpatchNamespacedReplicationControllerRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -35789,7 +37546,7 @@ public APIpatchNamespacedReplicationControllerRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedReplicationControllerRequest */ - public APIpatchNamespacedReplicationControllerRequest fieldManager(String fieldManager) { + public APIpatchNamespacedReplicationControllerRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -35799,7 +37556,7 @@ public APIpatchNamespacedReplicationControllerRequest fieldManager(String fieldM * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedReplicationControllerRequest */ - public APIpatchNamespacedReplicationControllerRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedReplicationControllerRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -35809,7 +37566,7 @@ public APIpatchNamespacedReplicationControllerRequest fieldValidation(String fie * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedReplicationControllerRequest */ - public APIpatchNamespacedReplicationControllerRequest force(Boolean force) { + public APIpatchNamespacedReplicationControllerRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -35820,7 +37577,8 @@ public APIpatchNamespacedReplicationControllerRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -35836,7 +37594,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ReplicationController * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -35853,7 +37612,8 @@ public V1ReplicationController execute() throws ApiException { * @return ApiResponse<V1ReplicationController> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -35870,7 +37630,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExce * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -35890,17 +37651,18 @@ public okhttp3.Call executeAsync(final ApiCallback _cal * @param body (required) * @return APIpatchNamespacedReplicationControllerRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedReplicationControllerRequest patchNamespacedReplicationController(String name, String namespace, V1Patch body) { + public APIpatchNamespacedReplicationControllerRequest patchNamespacedReplicationController(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedReplicationControllerRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedReplicationControllerScaleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedReplicationControllerScaleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -35971,7 +37733,7 @@ private okhttp3.Call patchNamespacedReplicationControllerScaleCall(String name, } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedReplicationControllerScaleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedReplicationControllerScaleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedReplicationControllerScale(Async)"); @@ -35992,13 +37754,13 @@ private okhttp3.Call patchNamespacedReplicationControllerScaleValidateBeforeCall } - private ApiResponse patchNamespacedReplicationControllerScaleWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedReplicationControllerScaleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedReplicationControllerScaleAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedReplicationControllerScaleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -36007,16 +37769,24 @@ private okhttp3.Call patchNamespacedReplicationControllerScaleAsync(String name, } public class APIpatchNamespacedReplicationControllerScaleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedReplicationControllerScaleRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedReplicationControllerScaleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -36027,7 +37797,7 @@ private APIpatchNamespacedReplicationControllerScaleRequest(String name, String * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedReplicationControllerScaleRequest */ - public APIpatchNamespacedReplicationControllerScaleRequest pretty(String pretty) { + public APIpatchNamespacedReplicationControllerScaleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -36037,7 +37807,7 @@ public APIpatchNamespacedReplicationControllerScaleRequest pretty(String pretty) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedReplicationControllerScaleRequest */ - public APIpatchNamespacedReplicationControllerScaleRequest dryRun(String dryRun) { + public APIpatchNamespacedReplicationControllerScaleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -36047,7 +37817,7 @@ public APIpatchNamespacedReplicationControllerScaleRequest dryRun(String dryRun) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedReplicationControllerScaleRequest */ - public APIpatchNamespacedReplicationControllerScaleRequest fieldManager(String fieldManager) { + public APIpatchNamespacedReplicationControllerScaleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -36057,7 +37827,7 @@ public APIpatchNamespacedReplicationControllerScaleRequest fieldManager(String f * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedReplicationControllerScaleRequest */ - public APIpatchNamespacedReplicationControllerScaleRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedReplicationControllerScaleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -36067,7 +37837,7 @@ public APIpatchNamespacedReplicationControllerScaleRequest fieldValidation(Strin * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedReplicationControllerScaleRequest */ - public APIpatchNamespacedReplicationControllerScaleRequest force(Boolean force) { + public APIpatchNamespacedReplicationControllerScaleRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -36078,7 +37848,8 @@ public APIpatchNamespacedReplicationControllerScaleRequest force(Boolean force) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -36094,7 +37865,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -36111,7 +37883,8 @@ public V1Scale execute() throws ApiException { * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -36128,7 +37901,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -36148,17 +37922,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap * @param body (required) * @return APIpatchNamespacedReplicationControllerScaleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedReplicationControllerScaleRequest patchNamespacedReplicationControllerScale(String name, String namespace, V1Patch body) { + public APIpatchNamespacedReplicationControllerScaleRequest patchNamespacedReplicationControllerScale(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedReplicationControllerScaleRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedReplicationControllerStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedReplicationControllerStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -36229,7 +38004,7 @@ private okhttp3.Call patchNamespacedReplicationControllerStatusCall(String name, } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedReplicationControllerStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedReplicationControllerStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedReplicationControllerStatus(Async)"); @@ -36250,13 +38025,13 @@ private okhttp3.Call patchNamespacedReplicationControllerStatusValidateBeforeCal } - private ApiResponse patchNamespacedReplicationControllerStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedReplicationControllerStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedReplicationControllerStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedReplicationControllerStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -36265,16 +38040,24 @@ private okhttp3.Call patchNamespacedReplicationControllerStatusAsync(String name } public class APIpatchNamespacedReplicationControllerStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedReplicationControllerStatusRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedReplicationControllerStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -36285,7 +38068,7 @@ private APIpatchNamespacedReplicationControllerStatusRequest(String name, String * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedReplicationControllerStatusRequest */ - public APIpatchNamespacedReplicationControllerStatusRequest pretty(String pretty) { + public APIpatchNamespacedReplicationControllerStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -36295,7 +38078,7 @@ public APIpatchNamespacedReplicationControllerStatusRequest pretty(String pretty * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedReplicationControllerStatusRequest */ - public APIpatchNamespacedReplicationControllerStatusRequest dryRun(String dryRun) { + public APIpatchNamespacedReplicationControllerStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -36305,7 +38088,7 @@ public APIpatchNamespacedReplicationControllerStatusRequest dryRun(String dryRun * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedReplicationControllerStatusRequest */ - public APIpatchNamespacedReplicationControllerStatusRequest fieldManager(String fieldManager) { + public APIpatchNamespacedReplicationControllerStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -36315,7 +38098,7 @@ public APIpatchNamespacedReplicationControllerStatusRequest fieldManager(String * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedReplicationControllerStatusRequest */ - public APIpatchNamespacedReplicationControllerStatusRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedReplicationControllerStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -36325,7 +38108,7 @@ public APIpatchNamespacedReplicationControllerStatusRequest fieldValidation(Stri * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedReplicationControllerStatusRequest */ - public APIpatchNamespacedReplicationControllerStatusRequest force(Boolean force) { + public APIpatchNamespacedReplicationControllerStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -36336,7 +38119,8 @@ public APIpatchNamespacedReplicationControllerStatusRequest force(Boolean force) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -36352,7 +38136,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ReplicationController * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -36369,7 +38154,8 @@ public V1ReplicationController execute() throws ApiException { * @return ApiResponse<V1ReplicationController> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -36386,7 +38172,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExce * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -36406,17 +38193,18 @@ public okhttp3.Call executeAsync(final ApiCallback _cal * @param body (required) * @return APIpatchNamespacedReplicationControllerStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedReplicationControllerStatusRequest patchNamespacedReplicationControllerStatus(String name, String namespace, V1Patch body) { + public APIpatchNamespacedReplicationControllerStatusRequest patchNamespacedReplicationControllerStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedReplicationControllerStatusRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedResourceQuotaCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceQuotaCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -36487,7 +38275,7 @@ private okhttp3.Call patchNamespacedResourceQuotaCall(String name, String namesp } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedResourceQuotaValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceQuotaValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceQuota(Async)"); @@ -36508,13 +38296,13 @@ private okhttp3.Call patchNamespacedResourceQuotaValidateBeforeCall(String name, } - private ApiResponse patchNamespacedResourceQuotaWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedResourceQuotaWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedResourceQuotaValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedResourceQuotaAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceQuotaAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedResourceQuotaValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -36523,16 +38311,24 @@ private okhttp3.Call patchNamespacedResourceQuotaAsync(String name, String names } public class APIpatchNamespacedResourceQuotaRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedResourceQuotaRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedResourceQuotaRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -36543,7 +38339,7 @@ private APIpatchNamespacedResourceQuotaRequest(String name, String namespace, V1 * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedResourceQuotaRequest */ - public APIpatchNamespacedResourceQuotaRequest pretty(String pretty) { + public APIpatchNamespacedResourceQuotaRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -36553,7 +38349,7 @@ public APIpatchNamespacedResourceQuotaRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedResourceQuotaRequest */ - public APIpatchNamespacedResourceQuotaRequest dryRun(String dryRun) { + public APIpatchNamespacedResourceQuotaRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -36563,7 +38359,7 @@ public APIpatchNamespacedResourceQuotaRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedResourceQuotaRequest */ - public APIpatchNamespacedResourceQuotaRequest fieldManager(String fieldManager) { + public APIpatchNamespacedResourceQuotaRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -36573,7 +38369,7 @@ public APIpatchNamespacedResourceQuotaRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedResourceQuotaRequest */ - public APIpatchNamespacedResourceQuotaRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedResourceQuotaRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -36583,7 +38379,7 @@ public APIpatchNamespacedResourceQuotaRequest fieldValidation(String fieldValida * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedResourceQuotaRequest */ - public APIpatchNamespacedResourceQuotaRequest force(Boolean force) { + public APIpatchNamespacedResourceQuotaRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -36594,7 +38390,8 @@ public APIpatchNamespacedResourceQuotaRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -36610,7 +38407,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ResourceQuota * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -36627,7 +38425,8 @@ public V1ResourceQuota execute() throws ApiException { * @return ApiResponse<V1ResourceQuota> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -36644,7 +38443,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -36664,17 +38464,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * @param body (required) * @return APIpatchNamespacedResourceQuotaRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedResourceQuotaRequest patchNamespacedResourceQuota(String name, String namespace, V1Patch body) { + public APIpatchNamespacedResourceQuotaRequest patchNamespacedResourceQuota(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedResourceQuotaRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedResourceQuotaStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceQuotaStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -36745,7 +38546,7 @@ private okhttp3.Call patchNamespacedResourceQuotaStatusCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedResourceQuotaStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceQuotaStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceQuotaStatus(Async)"); @@ -36766,13 +38567,13 @@ private okhttp3.Call patchNamespacedResourceQuotaStatusValidateBeforeCall(String } - private ApiResponse patchNamespacedResourceQuotaStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedResourceQuotaStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedResourceQuotaStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceQuotaStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -36781,16 +38582,24 @@ private okhttp3.Call patchNamespacedResourceQuotaStatusAsync(String name, String } public class APIpatchNamespacedResourceQuotaStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedResourceQuotaStatusRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedResourceQuotaStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -36801,7 +38610,7 @@ private APIpatchNamespacedResourceQuotaStatusRequest(String name, String namespa * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedResourceQuotaStatusRequest */ - public APIpatchNamespacedResourceQuotaStatusRequest pretty(String pretty) { + public APIpatchNamespacedResourceQuotaStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -36811,7 +38620,7 @@ public APIpatchNamespacedResourceQuotaStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedResourceQuotaStatusRequest */ - public APIpatchNamespacedResourceQuotaStatusRequest dryRun(String dryRun) { + public APIpatchNamespacedResourceQuotaStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -36821,7 +38630,7 @@ public APIpatchNamespacedResourceQuotaStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedResourceQuotaStatusRequest */ - public APIpatchNamespacedResourceQuotaStatusRequest fieldManager(String fieldManager) { + public APIpatchNamespacedResourceQuotaStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -36831,7 +38640,7 @@ public APIpatchNamespacedResourceQuotaStatusRequest fieldManager(String fieldMan * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedResourceQuotaStatusRequest */ - public APIpatchNamespacedResourceQuotaStatusRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedResourceQuotaStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -36841,7 +38650,7 @@ public APIpatchNamespacedResourceQuotaStatusRequest fieldValidation(String field * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedResourceQuotaStatusRequest */ - public APIpatchNamespacedResourceQuotaStatusRequest force(Boolean force) { + public APIpatchNamespacedResourceQuotaStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -36852,7 +38661,8 @@ public APIpatchNamespacedResourceQuotaStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -36868,7 +38678,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ResourceQuota * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -36885,7 +38696,8 @@ public V1ResourceQuota execute() throws ApiException { * @return ApiResponse<V1ResourceQuota> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -36902,7 +38714,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -36922,17 +38735,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * @param body (required) * @return APIpatchNamespacedResourceQuotaStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedResourceQuotaStatusRequest patchNamespacedResourceQuotaStatus(String name, String namespace, V1Patch body) { + public APIpatchNamespacedResourceQuotaStatusRequest patchNamespacedResourceQuotaStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedResourceQuotaStatusRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedSecretCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedSecretCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -37003,7 +38817,7 @@ private okhttp3.Call patchNamespacedSecretCall(String name, String namespace, V1 } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedSecretValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedSecretValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedSecret(Async)"); @@ -37024,13 +38838,13 @@ private okhttp3.Call patchNamespacedSecretValidateBeforeCall(String name, String } - private ApiResponse patchNamespacedSecretWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedSecretWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedSecretValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedSecretAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedSecretAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedSecretValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -37039,16 +38853,24 @@ private okhttp3.Call patchNamespacedSecretAsync(String name, String namespace, V } public class APIpatchNamespacedSecretRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedSecretRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedSecretRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -37059,7 +38881,7 @@ private APIpatchNamespacedSecretRequest(String name, String namespace, V1Patch b * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedSecretRequest */ - public APIpatchNamespacedSecretRequest pretty(String pretty) { + public APIpatchNamespacedSecretRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -37069,7 +38891,7 @@ public APIpatchNamespacedSecretRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedSecretRequest */ - public APIpatchNamespacedSecretRequest dryRun(String dryRun) { + public APIpatchNamespacedSecretRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -37079,7 +38901,7 @@ public APIpatchNamespacedSecretRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedSecretRequest */ - public APIpatchNamespacedSecretRequest fieldManager(String fieldManager) { + public APIpatchNamespacedSecretRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -37089,7 +38911,7 @@ public APIpatchNamespacedSecretRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedSecretRequest */ - public APIpatchNamespacedSecretRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedSecretRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -37099,7 +38921,7 @@ public APIpatchNamespacedSecretRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedSecretRequest */ - public APIpatchNamespacedSecretRequest force(Boolean force) { + public APIpatchNamespacedSecretRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -37110,7 +38932,8 @@ public APIpatchNamespacedSecretRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -37126,7 +38949,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Secret * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -37143,7 +38967,8 @@ public V1Secret execute() throws ApiException { * @return ApiResponse<V1Secret> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -37160,7 +38985,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -37180,17 +39006,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param body (required) * @return APIpatchNamespacedSecretRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedSecretRequest patchNamespacedSecret(String name, String namespace, V1Patch body) { + public APIpatchNamespacedSecretRequest patchNamespacedSecret(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedSecretRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedServiceCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedServiceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -37261,7 +39088,7 @@ private okhttp3.Call patchNamespacedServiceCall(String name, String namespace, V } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedServiceValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedServiceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedService(Async)"); @@ -37282,13 +39109,13 @@ private okhttp3.Call patchNamespacedServiceValidateBeforeCall(String name, Strin } - private ApiResponse patchNamespacedServiceWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedServiceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedServiceValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedServiceAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedServiceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedServiceValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -37297,16 +39124,24 @@ private okhttp3.Call patchNamespacedServiceAsync(String name, String namespace, } public class APIpatchNamespacedServiceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedServiceRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedServiceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -37317,7 +39152,7 @@ private APIpatchNamespacedServiceRequest(String name, String namespace, V1Patch * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedServiceRequest */ - public APIpatchNamespacedServiceRequest pretty(String pretty) { + public APIpatchNamespacedServiceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -37327,7 +39162,7 @@ public APIpatchNamespacedServiceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedServiceRequest */ - public APIpatchNamespacedServiceRequest dryRun(String dryRun) { + public APIpatchNamespacedServiceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -37337,7 +39172,7 @@ public APIpatchNamespacedServiceRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedServiceRequest */ - public APIpatchNamespacedServiceRequest fieldManager(String fieldManager) { + public APIpatchNamespacedServiceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -37347,7 +39182,7 @@ public APIpatchNamespacedServiceRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedServiceRequest */ - public APIpatchNamespacedServiceRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedServiceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -37357,7 +39192,7 @@ public APIpatchNamespacedServiceRequest fieldValidation(String fieldValidation) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedServiceRequest */ - public APIpatchNamespacedServiceRequest force(Boolean force) { + public APIpatchNamespacedServiceRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -37368,7 +39203,8 @@ public APIpatchNamespacedServiceRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -37384,7 +39220,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Service * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -37401,7 +39238,8 @@ public V1Service execute() throws ApiException { * @return ApiResponse<V1Service> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -37418,7 +39256,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -37438,17 +39277,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param body (required) * @return APIpatchNamespacedServiceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedServiceRequest patchNamespacedService(String name, String namespace, V1Patch body) { + public APIpatchNamespacedServiceRequest patchNamespacedService(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedServiceRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedServiceAccountCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedServiceAccountCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -37519,7 +39359,7 @@ private okhttp3.Call patchNamespacedServiceAccountCall(String name, String names } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedServiceAccountValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedServiceAccountValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedServiceAccount(Async)"); @@ -37540,13 +39380,13 @@ private okhttp3.Call patchNamespacedServiceAccountValidateBeforeCall(String name } - private ApiResponse patchNamespacedServiceAccountWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedServiceAccountWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedServiceAccountValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedServiceAccountAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedServiceAccountAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedServiceAccountValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -37555,16 +39395,24 @@ private okhttp3.Call patchNamespacedServiceAccountAsync(String name, String name } public class APIpatchNamespacedServiceAccountRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedServiceAccountRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedServiceAccountRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -37575,7 +39423,7 @@ private APIpatchNamespacedServiceAccountRequest(String name, String namespace, V * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedServiceAccountRequest */ - public APIpatchNamespacedServiceAccountRequest pretty(String pretty) { + public APIpatchNamespacedServiceAccountRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -37585,7 +39433,7 @@ public APIpatchNamespacedServiceAccountRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedServiceAccountRequest */ - public APIpatchNamespacedServiceAccountRequest dryRun(String dryRun) { + public APIpatchNamespacedServiceAccountRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -37595,7 +39443,7 @@ public APIpatchNamespacedServiceAccountRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedServiceAccountRequest */ - public APIpatchNamespacedServiceAccountRequest fieldManager(String fieldManager) { + public APIpatchNamespacedServiceAccountRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -37605,7 +39453,7 @@ public APIpatchNamespacedServiceAccountRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedServiceAccountRequest */ - public APIpatchNamespacedServiceAccountRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedServiceAccountRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -37615,7 +39463,7 @@ public APIpatchNamespacedServiceAccountRequest fieldValidation(String fieldValid * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedServiceAccountRequest */ - public APIpatchNamespacedServiceAccountRequest force(Boolean force) { + public APIpatchNamespacedServiceAccountRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -37626,7 +39474,8 @@ public APIpatchNamespacedServiceAccountRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -37642,7 +39491,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ServiceAccount * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -37659,7 +39509,8 @@ public V1ServiceAccount execute() throws ApiException { * @return ApiResponse<V1ServiceAccount> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -37676,7 +39527,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -37696,17 +39548,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * @param body (required) * @return APIpatchNamespacedServiceAccountRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedServiceAccountRequest patchNamespacedServiceAccount(String name, String namespace, V1Patch body) { + public APIpatchNamespacedServiceAccountRequest patchNamespacedServiceAccount(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedServiceAccountRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedServiceStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedServiceStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -37777,7 +39630,7 @@ private okhttp3.Call patchNamespacedServiceStatusCall(String name, String namesp } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedServiceStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedServiceStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedServiceStatus(Async)"); @@ -37798,13 +39651,13 @@ private okhttp3.Call patchNamespacedServiceStatusValidateBeforeCall(String name, } - private ApiResponse patchNamespacedServiceStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedServiceStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedServiceStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedServiceStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedServiceStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedServiceStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -37813,16 +39666,24 @@ private okhttp3.Call patchNamespacedServiceStatusAsync(String name, String names } public class APIpatchNamespacedServiceStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedServiceStatusRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedServiceStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -37833,7 +39694,7 @@ private APIpatchNamespacedServiceStatusRequest(String name, String namespace, V1 * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedServiceStatusRequest */ - public APIpatchNamespacedServiceStatusRequest pretty(String pretty) { + public APIpatchNamespacedServiceStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -37843,7 +39704,7 @@ public APIpatchNamespacedServiceStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedServiceStatusRequest */ - public APIpatchNamespacedServiceStatusRequest dryRun(String dryRun) { + public APIpatchNamespacedServiceStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -37853,7 +39714,7 @@ public APIpatchNamespacedServiceStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedServiceStatusRequest */ - public APIpatchNamespacedServiceStatusRequest fieldManager(String fieldManager) { + public APIpatchNamespacedServiceStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -37863,7 +39724,7 @@ public APIpatchNamespacedServiceStatusRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedServiceStatusRequest */ - public APIpatchNamespacedServiceStatusRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedServiceStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -37873,7 +39734,7 @@ public APIpatchNamespacedServiceStatusRequest fieldValidation(String fieldValida * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedServiceStatusRequest */ - public APIpatchNamespacedServiceStatusRequest force(Boolean force) { + public APIpatchNamespacedServiceStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -37884,7 +39745,8 @@ public APIpatchNamespacedServiceStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -37900,7 +39762,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Service * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -37917,7 +39780,8 @@ public V1Service execute() throws ApiException { * @return ApiResponse<V1Service> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -37934,7 +39798,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -37954,17 +39819,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param body (required) * @return APIpatchNamespacedServiceStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedServiceStatusRequest patchNamespacedServiceStatus(String name, String namespace, V1Patch body) { + public APIpatchNamespacedServiceStatusRequest patchNamespacedServiceStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedServiceStatusRequest(name, namespace, body); } - private okhttp3.Call patchNodeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNodeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -38034,7 +39900,7 @@ private okhttp3.Call patchNodeCall(String name, V1Patch body, String pretty, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNodeValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNodeValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNode(Async)"); @@ -38050,13 +39916,13 @@ private okhttp3.Call patchNodeValidateBeforeCall(String name, V1Patch body, Stri } - private ApiResponse patchNodeWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNodeWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNodeAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNodeAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -38065,15 +39931,22 @@ private okhttp3.Call patchNodeAsync(String name, V1Patch body, String pretty, St } public class APIpatchNodeRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNodeRequest(String name, V1Patch body) { + private APIpatchNodeRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -38083,7 +39956,7 @@ private APIpatchNodeRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNodeRequest */ - public APIpatchNodeRequest pretty(String pretty) { + public APIpatchNodeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -38093,7 +39966,7 @@ public APIpatchNodeRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNodeRequest */ - public APIpatchNodeRequest dryRun(String dryRun) { + public APIpatchNodeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -38103,7 +39976,7 @@ public APIpatchNodeRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNodeRequest */ - public APIpatchNodeRequest fieldManager(String fieldManager) { + public APIpatchNodeRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -38113,7 +39986,7 @@ public APIpatchNodeRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNodeRequest */ - public APIpatchNodeRequest fieldValidation(String fieldValidation) { + public APIpatchNodeRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -38123,7 +39996,7 @@ public APIpatchNodeRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNodeRequest */ - public APIpatchNodeRequest force(Boolean force) { + public APIpatchNodeRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -38134,7 +40007,8 @@ public APIpatchNodeRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -38150,7 +40024,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Node * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -38167,7 +40042,8 @@ public V1Node execute() throws ApiException { * @return ApiResponse<V1Node> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -38184,7 +40060,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -38203,17 +40080,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param body (required) * @return APIpatchNodeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNodeRequest patchNode(String name, V1Patch body) { + public APIpatchNodeRequest patchNode(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNodeRequest(name, body); } - private okhttp3.Call patchNodeStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNodeStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -38283,7 +40161,7 @@ private okhttp3.Call patchNodeStatusCall(String name, V1Patch body, String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNodeStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNodeStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNodeStatus(Async)"); @@ -38299,13 +40177,13 @@ private okhttp3.Call patchNodeStatusValidateBeforeCall(String name, V1Patch body } - private ApiResponse patchNodeStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNodeStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNodeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNodeStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNodeStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNodeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -38314,15 +40192,22 @@ private okhttp3.Call patchNodeStatusAsync(String name, V1Patch body, String pret } public class APIpatchNodeStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNodeStatusRequest(String name, V1Patch body) { + private APIpatchNodeStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -38332,7 +40217,7 @@ private APIpatchNodeStatusRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNodeStatusRequest */ - public APIpatchNodeStatusRequest pretty(String pretty) { + public APIpatchNodeStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -38342,7 +40227,7 @@ public APIpatchNodeStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNodeStatusRequest */ - public APIpatchNodeStatusRequest dryRun(String dryRun) { + public APIpatchNodeStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -38352,7 +40237,7 @@ public APIpatchNodeStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNodeStatusRequest */ - public APIpatchNodeStatusRequest fieldManager(String fieldManager) { + public APIpatchNodeStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -38362,7 +40247,7 @@ public APIpatchNodeStatusRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNodeStatusRequest */ - public APIpatchNodeStatusRequest fieldValidation(String fieldValidation) { + public APIpatchNodeStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -38372,7 +40257,7 @@ public APIpatchNodeStatusRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNodeStatusRequest */ - public APIpatchNodeStatusRequest force(Boolean force) { + public APIpatchNodeStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -38383,7 +40268,8 @@ public APIpatchNodeStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -38399,7 +40285,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Node * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -38416,7 +40303,8 @@ public V1Node execute() throws ApiException { * @return ApiResponse<V1Node> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -38433,7 +40321,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -38452,17 +40341,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param body (required) * @return APIpatchNodeStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNodeStatusRequest patchNodeStatus(String name, V1Patch body) { + public APIpatchNodeStatusRequest patchNodeStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNodeStatusRequest(name, body); } - private okhttp3.Call patchPersistentVolumeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchPersistentVolumeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -38532,7 +40422,7 @@ private okhttp3.Call patchPersistentVolumeCall(String name, V1Patch body, String } @SuppressWarnings("rawtypes") - private okhttp3.Call patchPersistentVolumeValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchPersistentVolumeValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchPersistentVolume(Async)"); @@ -38548,13 +40438,13 @@ private okhttp3.Call patchPersistentVolumeValidateBeforeCall(String name, V1Patc } - private ApiResponse patchPersistentVolumeWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchPersistentVolumeWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchPersistentVolumeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchPersistentVolumeAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchPersistentVolumeAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchPersistentVolumeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -38563,15 +40453,22 @@ private okhttp3.Call patchPersistentVolumeAsync(String name, V1Patch body, Strin } public class APIpatchPersistentVolumeRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchPersistentVolumeRequest(String name, V1Patch body) { + private APIpatchPersistentVolumeRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -38581,7 +40478,7 @@ private APIpatchPersistentVolumeRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchPersistentVolumeRequest */ - public APIpatchPersistentVolumeRequest pretty(String pretty) { + public APIpatchPersistentVolumeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -38591,7 +40488,7 @@ public APIpatchPersistentVolumeRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchPersistentVolumeRequest */ - public APIpatchPersistentVolumeRequest dryRun(String dryRun) { + public APIpatchPersistentVolumeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -38601,7 +40498,7 @@ public APIpatchPersistentVolumeRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchPersistentVolumeRequest */ - public APIpatchPersistentVolumeRequest fieldManager(String fieldManager) { + public APIpatchPersistentVolumeRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -38611,7 +40508,7 @@ public APIpatchPersistentVolumeRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchPersistentVolumeRequest */ - public APIpatchPersistentVolumeRequest fieldValidation(String fieldValidation) { + public APIpatchPersistentVolumeRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -38621,7 +40518,7 @@ public APIpatchPersistentVolumeRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchPersistentVolumeRequest */ - public APIpatchPersistentVolumeRequest force(Boolean force) { + public APIpatchPersistentVolumeRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -38632,7 +40529,8 @@ public APIpatchPersistentVolumeRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -38648,7 +40546,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PersistentVolume * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -38665,7 +40564,8 @@ public V1PersistentVolume execute() throws ApiException { * @return ApiResponse<V1PersistentVolume> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -38682,7 +40582,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -38701,17 +40602,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param body (required) * @return APIpatchPersistentVolumeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchPersistentVolumeRequest patchPersistentVolume(String name, V1Patch body) { + public APIpatchPersistentVolumeRequest patchPersistentVolume(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchPersistentVolumeRequest(name, body); } - private okhttp3.Call patchPersistentVolumeStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchPersistentVolumeStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -38781,7 +40683,7 @@ private okhttp3.Call patchPersistentVolumeStatusCall(String name, V1Patch body, } @SuppressWarnings("rawtypes") - private okhttp3.Call patchPersistentVolumeStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchPersistentVolumeStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchPersistentVolumeStatus(Async)"); @@ -38797,13 +40699,13 @@ private okhttp3.Call patchPersistentVolumeStatusValidateBeforeCall(String name, } - private ApiResponse patchPersistentVolumeStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchPersistentVolumeStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchPersistentVolumeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchPersistentVolumeStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchPersistentVolumeStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchPersistentVolumeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -38812,15 +40714,22 @@ private okhttp3.Call patchPersistentVolumeStatusAsync(String name, V1Patch body, } public class APIpatchPersistentVolumeStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchPersistentVolumeStatusRequest(String name, V1Patch body) { + private APIpatchPersistentVolumeStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -38830,7 +40739,7 @@ private APIpatchPersistentVolumeStatusRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchPersistentVolumeStatusRequest */ - public APIpatchPersistentVolumeStatusRequest pretty(String pretty) { + public APIpatchPersistentVolumeStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -38840,7 +40749,7 @@ public APIpatchPersistentVolumeStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchPersistentVolumeStatusRequest */ - public APIpatchPersistentVolumeStatusRequest dryRun(String dryRun) { + public APIpatchPersistentVolumeStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -38850,7 +40759,7 @@ public APIpatchPersistentVolumeStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchPersistentVolumeStatusRequest */ - public APIpatchPersistentVolumeStatusRequest fieldManager(String fieldManager) { + public APIpatchPersistentVolumeStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -38860,7 +40769,7 @@ public APIpatchPersistentVolumeStatusRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchPersistentVolumeStatusRequest */ - public APIpatchPersistentVolumeStatusRequest fieldValidation(String fieldValidation) { + public APIpatchPersistentVolumeStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -38870,7 +40779,7 @@ public APIpatchPersistentVolumeStatusRequest fieldValidation(String fieldValidat * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchPersistentVolumeStatusRequest */ - public APIpatchPersistentVolumeStatusRequest force(Boolean force) { + public APIpatchPersistentVolumeStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -38881,7 +40790,8 @@ public APIpatchPersistentVolumeStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -38897,7 +40807,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PersistentVolume * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -38914,7 +40825,8 @@ public V1PersistentVolume execute() throws ApiException { * @return ApiResponse<V1PersistentVolume> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -38931,7 +40843,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -38950,17 +40863,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param body (required) * @return APIpatchPersistentVolumeStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchPersistentVolumeStatusRequest patchPersistentVolumeStatus(String name, V1Patch body) { + public APIpatchPersistentVolumeStatusRequest patchPersistentVolumeStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchPersistentVolumeStatusRequest(name, body); } - private okhttp3.Call readComponentStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readComponentStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -39013,7 +40927,7 @@ private okhttp3.Call readComponentStatusCall(String name, String pretty, final A } @SuppressWarnings("rawtypes") - private okhttp3.Call readComponentStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readComponentStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readComponentStatus(Async)"); @@ -39024,13 +40938,13 @@ private okhttp3.Call readComponentStatusValidateBeforeCall(String name, String p } - private ApiResponse readComponentStatusWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readComponentStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readComponentStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readComponentStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readComponentStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readComponentStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -39039,10 +40953,12 @@ private okhttp3.Call readComponentStatusAsync(String name, String pretty, final } public class APIreadComponentStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadComponentStatusRequest(String name) { + private APIreadComponentStatusRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -39051,7 +40967,7 @@ private APIreadComponentStatusRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadComponentStatusRequest */ - public APIreadComponentStatusRequest pretty(String pretty) { + public APIreadComponentStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -39062,7 +40978,8 @@ public APIreadComponentStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -39077,7 +40994,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ComponentStatus * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -39093,7 +41011,8 @@ public V1ComponentStatus execute() throws ApiException { * @return ApiResponse<V1ComponentStatus> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -39109,7 +41028,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -39126,16 +41046,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * @param name name of the ComponentStatus (required) * @return APIreadComponentStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadComponentStatusRequest readComponentStatus(String name) { + public APIreadComponentStatusRequest readComponentStatus(@jakarta.annotation.Nonnull String name) { return new APIreadComponentStatusRequest(name); } - private okhttp3.Call readNamespaceCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespaceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -39188,7 +41109,7 @@ private okhttp3.Call readNamespaceCall(String name, String pretty, final ApiCall } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespaceValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespaceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespace(Async)"); @@ -39199,13 +41120,13 @@ private okhttp3.Call readNamespaceValidateBeforeCall(String name, String pretty, } - private ApiResponse readNamespaceWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readNamespaceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespaceValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespaceAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespaceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespaceValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -39214,10 +41135,12 @@ private okhttp3.Call readNamespaceAsync(String name, String pretty, final ApiCal } public class APIreadNamespaceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespaceRequest(String name) { + private APIreadNamespaceRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -39226,7 +41149,7 @@ private APIreadNamespaceRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespaceRequest */ - public APIreadNamespaceRequest pretty(String pretty) { + public APIreadNamespaceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -39237,7 +41160,8 @@ public APIreadNamespaceRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -39252,7 +41176,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Namespace * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -39268,7 +41193,8 @@ public V1Namespace execute() throws ApiException { * @return ApiResponse<V1Namespace> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -39284,7 +41210,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -39301,16 +41228,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param name name of the Namespace (required) * @return APIreadNamespaceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespaceRequest readNamespace(String name) { + public APIreadNamespaceRequest readNamespace(@jakarta.annotation.Nonnull String name) { return new APIreadNamespaceRequest(name); } - private okhttp3.Call readNamespaceStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespaceStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -39363,7 +41291,7 @@ private okhttp3.Call readNamespaceStatusCall(String name, String pretty, final A } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespaceStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespaceStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespaceStatus(Async)"); @@ -39374,13 +41302,13 @@ private okhttp3.Call readNamespaceStatusValidateBeforeCall(String name, String p } - private ApiResponse readNamespaceStatusWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readNamespaceStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespaceStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespaceStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespaceStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespaceStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -39389,10 +41317,12 @@ private okhttp3.Call readNamespaceStatusAsync(String name, String pretty, final } public class APIreadNamespaceStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespaceStatusRequest(String name) { + private APIreadNamespaceStatusRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -39401,7 +41331,7 @@ private APIreadNamespaceStatusRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespaceStatusRequest */ - public APIreadNamespaceStatusRequest pretty(String pretty) { + public APIreadNamespaceStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -39412,7 +41342,8 @@ public APIreadNamespaceStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -39427,7 +41358,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Namespace * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -39443,7 +41375,8 @@ public V1Namespace execute() throws ApiException { * @return ApiResponse<V1Namespace> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -39459,7 +41392,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -39476,16 +41410,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param name name of the Namespace (required) * @return APIreadNamespaceStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespaceStatusRequest readNamespaceStatus(String name) { + public APIreadNamespaceStatusRequest readNamespaceStatus(@jakarta.annotation.Nonnull String name) { return new APIreadNamespaceStatusRequest(name); } - private okhttp3.Call readNamespacedConfigMapCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedConfigMapCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -39539,7 +41474,7 @@ private okhttp3.Call readNamespacedConfigMapCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedConfigMapValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedConfigMapValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedConfigMap(Async)"); @@ -39555,13 +41490,13 @@ private okhttp3.Call readNamespacedConfigMapValidateBeforeCall(String name, Stri } - private ApiResponse readNamespacedConfigMapWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedConfigMapWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedConfigMapValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedConfigMapAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedConfigMapAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedConfigMapValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -39570,11 +41505,14 @@ private okhttp3.Call readNamespacedConfigMapAsync(String name, String namespace, } public class APIreadNamespacedConfigMapRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedConfigMapRequest(String name, String namespace) { + private APIreadNamespacedConfigMapRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -39584,7 +41522,7 @@ private APIreadNamespacedConfigMapRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedConfigMapRequest */ - public APIreadNamespacedConfigMapRequest pretty(String pretty) { + public APIreadNamespacedConfigMapRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -39595,7 +41533,8 @@ public APIreadNamespacedConfigMapRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -39610,7 +41549,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ConfigMap * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -39626,7 +41566,8 @@ public V1ConfigMap execute() throws ApiException { * @return ApiResponse<V1ConfigMap> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -39642,7 +41583,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -39660,16 +41602,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedConfigMapRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedConfigMapRequest readNamespacedConfigMap(String name, String namespace) { + public APIreadNamespacedConfigMapRequest readNamespacedConfigMap(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedConfigMapRequest(name, namespace); } - private okhttp3.Call readNamespacedEndpointsCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedEndpointsCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -39723,7 +41666,7 @@ private okhttp3.Call readNamespacedEndpointsCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedEndpointsValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedEndpointsValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedEndpoints(Async)"); @@ -39739,13 +41682,13 @@ private okhttp3.Call readNamespacedEndpointsValidateBeforeCall(String name, Stri } - private ApiResponse readNamespacedEndpointsWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedEndpointsWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedEndpointsValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedEndpointsAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedEndpointsAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedEndpointsValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -39754,11 +41697,14 @@ private okhttp3.Call readNamespacedEndpointsAsync(String name, String namespace, } public class APIreadNamespacedEndpointsRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedEndpointsRequest(String name, String namespace) { + private APIreadNamespacedEndpointsRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -39768,7 +41714,7 @@ private APIreadNamespacedEndpointsRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedEndpointsRequest */ - public APIreadNamespacedEndpointsRequest pretty(String pretty) { + public APIreadNamespacedEndpointsRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -39779,7 +41725,8 @@ public APIreadNamespacedEndpointsRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -39794,7 +41741,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Endpoints * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -39810,7 +41758,8 @@ public V1Endpoints execute() throws ApiException { * @return ApiResponse<V1Endpoints> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -39826,7 +41775,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -39844,16 +41794,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedEndpointsRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedEndpointsRequest readNamespacedEndpoints(String name, String namespace) { + public APIreadNamespacedEndpointsRequest readNamespacedEndpoints(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedEndpointsRequest(name, namespace); } - private okhttp3.Call readNamespacedEventCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedEventCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -39907,7 +41858,7 @@ private okhttp3.Call readNamespacedEventCall(String name, String namespace, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedEventValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedEventValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedEvent(Async)"); @@ -39923,13 +41874,13 @@ private okhttp3.Call readNamespacedEventValidateBeforeCall(String name, String n } - private ApiResponse readNamespacedEventWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedEventWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedEventValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedEventAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedEventAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedEventValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -39938,11 +41889,14 @@ private okhttp3.Call readNamespacedEventAsync(String name, String namespace, Str } public class APIreadNamespacedEventRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedEventRequest(String name, String namespace) { + private APIreadNamespacedEventRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -39952,7 +41906,7 @@ private APIreadNamespacedEventRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedEventRequest */ - public APIreadNamespacedEventRequest pretty(String pretty) { + public APIreadNamespacedEventRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -39963,7 +41917,8 @@ public APIreadNamespacedEventRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -39978,7 +41933,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return CoreV1Event * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -39994,7 +41950,8 @@ public CoreV1Event execute() throws ApiException { * @return ApiResponse<CoreV1Event> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -40010,7 +41967,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -40028,16 +41986,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedEventRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedEventRequest readNamespacedEvent(String name, String namespace) { + public APIreadNamespacedEventRequest readNamespacedEvent(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedEventRequest(name, namespace); } - private okhttp3.Call readNamespacedLimitRangeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedLimitRangeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -40091,7 +42050,7 @@ private okhttp3.Call readNamespacedLimitRangeCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedLimitRangeValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedLimitRangeValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedLimitRange(Async)"); @@ -40107,13 +42066,13 @@ private okhttp3.Call readNamespacedLimitRangeValidateBeforeCall(String name, Str } - private ApiResponse readNamespacedLimitRangeWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedLimitRangeWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedLimitRangeValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedLimitRangeAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedLimitRangeAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedLimitRangeValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -40122,11 +42081,14 @@ private okhttp3.Call readNamespacedLimitRangeAsync(String name, String namespace } public class APIreadNamespacedLimitRangeRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedLimitRangeRequest(String name, String namespace) { + private APIreadNamespacedLimitRangeRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -40136,7 +42098,7 @@ private APIreadNamespacedLimitRangeRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedLimitRangeRequest */ - public APIreadNamespacedLimitRangeRequest pretty(String pretty) { + public APIreadNamespacedLimitRangeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -40147,7 +42109,8 @@ public APIreadNamespacedLimitRangeRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -40162,7 +42125,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1LimitRange * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -40178,7 +42142,8 @@ public V1LimitRange execute() throws ApiException { * @return ApiResponse<V1LimitRange> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -40194,7 +42159,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -40212,16 +42178,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedLimitRangeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedLimitRangeRequest readNamespacedLimitRange(String name, String namespace) { + public APIreadNamespacedLimitRangeRequest readNamespacedLimitRange(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedLimitRangeRequest(name, namespace); } - private okhttp3.Call readNamespacedPersistentVolumeClaimCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPersistentVolumeClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -40275,7 +42242,7 @@ private okhttp3.Call readNamespacedPersistentVolumeClaimCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedPersistentVolumeClaimValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPersistentVolumeClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPersistentVolumeClaim(Async)"); @@ -40291,13 +42258,13 @@ private okhttp3.Call readNamespacedPersistentVolumeClaimValidateBeforeCall(Strin } - private ApiResponse readNamespacedPersistentVolumeClaimWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedPersistentVolumeClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedPersistentVolumeClaimAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPersistentVolumeClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -40306,11 +42273,14 @@ private okhttp3.Call readNamespacedPersistentVolumeClaimAsync(String name, Strin } public class APIreadNamespacedPersistentVolumeClaimRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedPersistentVolumeClaimRequest(String name, String namespace) { + private APIreadNamespacedPersistentVolumeClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -40320,7 +42290,7 @@ private APIreadNamespacedPersistentVolumeClaimRequest(String name, String namesp * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedPersistentVolumeClaimRequest */ - public APIreadNamespacedPersistentVolumeClaimRequest pretty(String pretty) { + public APIreadNamespacedPersistentVolumeClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -40331,7 +42301,8 @@ public APIreadNamespacedPersistentVolumeClaimRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -40346,7 +42317,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PersistentVolumeClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -40362,7 +42334,8 @@ public V1PersistentVolumeClaim execute() throws ApiException { * @return ApiResponse<V1PersistentVolumeClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -40378,7 +42351,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExce * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -40396,16 +42370,17 @@ public okhttp3.Call executeAsync(final ApiCallback _cal * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedPersistentVolumeClaimRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedPersistentVolumeClaimRequest readNamespacedPersistentVolumeClaim(String name, String namespace) { + public APIreadNamespacedPersistentVolumeClaimRequest readNamespacedPersistentVolumeClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedPersistentVolumeClaimRequest(name, namespace); } - private okhttp3.Call readNamespacedPersistentVolumeClaimStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPersistentVolumeClaimStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -40459,7 +42434,7 @@ private okhttp3.Call readNamespacedPersistentVolumeClaimStatusCall(String name, } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedPersistentVolumeClaimStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPersistentVolumeClaimStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPersistentVolumeClaimStatus(Async)"); @@ -40475,13 +42450,13 @@ private okhttp3.Call readNamespacedPersistentVolumeClaimStatusValidateBeforeCall } - private ApiResponse readNamespacedPersistentVolumeClaimStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedPersistentVolumeClaimStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedPersistentVolumeClaimStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPersistentVolumeClaimStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -40490,11 +42465,14 @@ private okhttp3.Call readNamespacedPersistentVolumeClaimStatusAsync(String name, } public class APIreadNamespacedPersistentVolumeClaimStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedPersistentVolumeClaimStatusRequest(String name, String namespace) { + private APIreadNamespacedPersistentVolumeClaimStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -40504,7 +42482,7 @@ private APIreadNamespacedPersistentVolumeClaimStatusRequest(String name, String * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedPersistentVolumeClaimStatusRequest */ - public APIreadNamespacedPersistentVolumeClaimStatusRequest pretty(String pretty) { + public APIreadNamespacedPersistentVolumeClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -40515,7 +42493,8 @@ public APIreadNamespacedPersistentVolumeClaimStatusRequest pretty(String pretty) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -40530,7 +42509,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PersistentVolumeClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -40546,7 +42526,8 @@ public V1PersistentVolumeClaim execute() throws ApiException { * @return ApiResponse<V1PersistentVolumeClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -40562,7 +42543,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExce * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -40580,16 +42562,17 @@ public okhttp3.Call executeAsync(final ApiCallback _cal * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedPersistentVolumeClaimStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedPersistentVolumeClaimStatusRequest readNamespacedPersistentVolumeClaimStatus(String name, String namespace) { + public APIreadNamespacedPersistentVolumeClaimStatusRequest readNamespacedPersistentVolumeClaimStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedPersistentVolumeClaimStatusRequest(name, namespace); } - private okhttp3.Call readNamespacedPodCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -40643,7 +42626,7 @@ private okhttp3.Call readNamespacedPodCall(String name, String namespace, String } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedPodValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPod(Async)"); @@ -40659,13 +42642,13 @@ private okhttp3.Call readNamespacedPodValidateBeforeCall(String name, String nam } - private ApiResponse readNamespacedPodWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedPodWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedPodAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -40674,11 +42657,14 @@ private okhttp3.Call readNamespacedPodAsync(String name, String namespace, Strin } public class APIreadNamespacedPodRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedPodRequest(String name, String namespace) { + private APIreadNamespacedPodRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -40688,7 +42674,7 @@ private APIreadNamespacedPodRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedPodRequest */ - public APIreadNamespacedPodRequest pretty(String pretty) { + public APIreadNamespacedPodRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -40699,7 +42685,8 @@ public APIreadNamespacedPodRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -40714,7 +42701,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -40730,7 +42718,8 @@ public V1Pod execute() throws ApiException { * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -40746,7 +42735,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -40764,16 +42754,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedPodRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedPodRequest readNamespacedPod(String name, String namespace) { + public APIreadNamespacedPodRequest readNamespacedPod(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedPodRequest(name, namespace); } - private okhttp3.Call readNamespacedPodEphemeralcontainersCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodEphemeralcontainersCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -40827,7 +42818,7 @@ private okhttp3.Call readNamespacedPodEphemeralcontainersCall(String name, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedPodEphemeralcontainersValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodEphemeralcontainersValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPodEphemeralcontainers(Async)"); @@ -40843,13 +42834,13 @@ private okhttp3.Call readNamespacedPodEphemeralcontainersValidateBeforeCall(Stri } - private ApiResponse readNamespacedPodEphemeralcontainersWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedPodEphemeralcontainersWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodEphemeralcontainersValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedPodEphemeralcontainersAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodEphemeralcontainersAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodEphemeralcontainersValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -40858,11 +42849,14 @@ private okhttp3.Call readNamespacedPodEphemeralcontainersAsync(String name, Stri } public class APIreadNamespacedPodEphemeralcontainersRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedPodEphemeralcontainersRequest(String name, String namespace) { + private APIreadNamespacedPodEphemeralcontainersRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -40872,7 +42866,7 @@ private APIreadNamespacedPodEphemeralcontainersRequest(String name, String names * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedPodEphemeralcontainersRequest */ - public APIreadNamespacedPodEphemeralcontainersRequest pretty(String pretty) { + public APIreadNamespacedPodEphemeralcontainersRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -40883,7 +42877,8 @@ public APIreadNamespacedPodEphemeralcontainersRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -40898,7 +42893,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -40914,7 +42910,8 @@ public V1Pod execute() throws ApiException { * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -40930,7 +42927,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -40948,16 +42946,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedPodEphemeralcontainersRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedPodEphemeralcontainersRequest readNamespacedPodEphemeralcontainers(String name, String namespace) { + public APIreadNamespacedPodEphemeralcontainersRequest readNamespacedPodEphemeralcontainers(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedPodEphemeralcontainersRequest(name, namespace); } - private okhttp3.Call readNamespacedPodLogCall(String name, String namespace, String container, Boolean follow, Boolean insecureSkipTLSVerifyBackend, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, String stream, Integer tailLines, Boolean timestamps, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodLogCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String container, @jakarta.annotation.Nullable Boolean follow, @jakarta.annotation.Nullable Boolean insecureSkipTLSVerifyBackend, @jakarta.annotation.Nullable Integer limitBytes, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean previous, @jakarta.annotation.Nullable Integer sinceSeconds, @jakarta.annotation.Nullable String stream, @jakarta.annotation.Nullable Integer tailLines, @jakarta.annotation.Nullable Boolean timestamps, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -41048,7 +43047,7 @@ private okhttp3.Call readNamespacedPodLogCall(String name, String namespace, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedPodLogValidateBeforeCall(String name, String namespace, String container, Boolean follow, Boolean insecureSkipTLSVerifyBackend, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, String stream, Integer tailLines, Boolean timestamps, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodLogValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String container, @jakarta.annotation.Nullable Boolean follow, @jakarta.annotation.Nullable Boolean insecureSkipTLSVerifyBackend, @jakarta.annotation.Nullable Integer limitBytes, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean previous, @jakarta.annotation.Nullable Integer sinceSeconds, @jakarta.annotation.Nullable String stream, @jakarta.annotation.Nullable Integer tailLines, @jakarta.annotation.Nullable Boolean timestamps, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPodLog(Async)"); @@ -41064,13 +43063,13 @@ private okhttp3.Call readNamespacedPodLogValidateBeforeCall(String name, String } - private ApiResponse readNamespacedPodLogWithHttpInfo(String name, String namespace, String container, Boolean follow, Boolean insecureSkipTLSVerifyBackend, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, String stream, Integer tailLines, Boolean timestamps) throws ApiException { + private ApiResponse readNamespacedPodLogWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String container, @jakarta.annotation.Nullable Boolean follow, @jakarta.annotation.Nullable Boolean insecureSkipTLSVerifyBackend, @jakarta.annotation.Nullable Integer limitBytes, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean previous, @jakarta.annotation.Nullable Integer sinceSeconds, @jakarta.annotation.Nullable String stream, @jakarta.annotation.Nullable Integer tailLines, @jakarta.annotation.Nullable Boolean timestamps) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodLogValidateBeforeCall(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, stream, tailLines, timestamps, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedPodLogAsync(String name, String namespace, String container, Boolean follow, Boolean insecureSkipTLSVerifyBackend, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, String stream, Integer tailLines, Boolean timestamps, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodLogAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String container, @jakarta.annotation.Nullable Boolean follow, @jakarta.annotation.Nullable Boolean insecureSkipTLSVerifyBackend, @jakarta.annotation.Nullable Integer limitBytes, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean previous, @jakarta.annotation.Nullable Integer sinceSeconds, @jakarta.annotation.Nullable String stream, @jakarta.annotation.Nullable Integer tailLines, @jakarta.annotation.Nullable Boolean timestamps, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodLogValidateBeforeCall(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, stream, tailLines, timestamps, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -41079,20 +43078,32 @@ private okhttp3.Call readNamespacedPodLogAsync(String name, String namespace, St } public class APIreadNamespacedPodLogRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String container; + @jakarta.annotation.Nullable private Boolean follow; + @jakarta.annotation.Nullable private Boolean insecureSkipTLSVerifyBackend; + @jakarta.annotation.Nullable private Integer limitBytes; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean previous; + @jakarta.annotation.Nullable private Integer sinceSeconds; + @jakarta.annotation.Nullable private String stream; + @jakarta.annotation.Nullable private Integer tailLines; + @jakarta.annotation.Nullable private Boolean timestamps; - private APIreadNamespacedPodLogRequest(String name, String namespace) { + private APIreadNamespacedPodLogRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -41102,7 +43113,7 @@ private APIreadNamespacedPodLogRequest(String name, String namespace) { * @param container The container for which to stream logs. Defaults to only container if there is one container in the pod. (optional) * @return APIreadNamespacedPodLogRequest */ - public APIreadNamespacedPodLogRequest container(String container) { + public APIreadNamespacedPodLogRequest container(@jakarta.annotation.Nullable String container) { this.container = container; return this; } @@ -41112,7 +43123,7 @@ public APIreadNamespacedPodLogRequest container(String container) { * @param follow Follow the log stream of the pod. Defaults to false. (optional) * @return APIreadNamespacedPodLogRequest */ - public APIreadNamespacedPodLogRequest follow(Boolean follow) { + public APIreadNamespacedPodLogRequest follow(@jakarta.annotation.Nullable Boolean follow) { this.follow = follow; return this; } @@ -41122,7 +43133,7 @@ public APIreadNamespacedPodLogRequest follow(Boolean follow) { * @param insecureSkipTLSVerifyBackend insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). (optional) * @return APIreadNamespacedPodLogRequest */ - public APIreadNamespacedPodLogRequest insecureSkipTLSVerifyBackend(Boolean insecureSkipTLSVerifyBackend) { + public APIreadNamespacedPodLogRequest insecureSkipTLSVerifyBackend(@jakarta.annotation.Nullable Boolean insecureSkipTLSVerifyBackend) { this.insecureSkipTLSVerifyBackend = insecureSkipTLSVerifyBackend; return this; } @@ -41132,7 +43143,7 @@ public APIreadNamespacedPodLogRequest insecureSkipTLSVerifyBackend(Boolean insec * @param limitBytes If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. (optional) * @return APIreadNamespacedPodLogRequest */ - public APIreadNamespacedPodLogRequest limitBytes(Integer limitBytes) { + public APIreadNamespacedPodLogRequest limitBytes(@jakarta.annotation.Nullable Integer limitBytes) { this.limitBytes = limitBytes; return this; } @@ -41142,7 +43153,7 @@ public APIreadNamespacedPodLogRequest limitBytes(Integer limitBytes) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedPodLogRequest */ - public APIreadNamespacedPodLogRequest pretty(String pretty) { + public APIreadNamespacedPodLogRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -41152,7 +43163,7 @@ public APIreadNamespacedPodLogRequest pretty(String pretty) { * @param previous Return previous terminated container logs. Defaults to false. (optional) * @return APIreadNamespacedPodLogRequest */ - public APIreadNamespacedPodLogRequest previous(Boolean previous) { + public APIreadNamespacedPodLogRequest previous(@jakarta.annotation.Nullable Boolean previous) { this.previous = previous; return this; } @@ -41162,7 +43173,7 @@ public APIreadNamespacedPodLogRequest previous(Boolean previous) { * @param sinceSeconds A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. (optional) * @return APIreadNamespacedPodLogRequest */ - public APIreadNamespacedPodLogRequest sinceSeconds(Integer sinceSeconds) { + public APIreadNamespacedPodLogRequest sinceSeconds(@jakarta.annotation.Nullable Integer sinceSeconds) { this.sinceSeconds = sinceSeconds; return this; } @@ -41172,7 +43183,7 @@ public APIreadNamespacedPodLogRequest sinceSeconds(Integer sinceSeconds) { * @param stream Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". (optional) * @return APIreadNamespacedPodLogRequest */ - public APIreadNamespacedPodLogRequest stream(String stream) { + public APIreadNamespacedPodLogRequest stream(@jakarta.annotation.Nullable String stream) { this.stream = stream; return this; } @@ -41182,7 +43193,7 @@ public APIreadNamespacedPodLogRequest stream(String stream) { * @param tailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". (optional) * @return APIreadNamespacedPodLogRequest */ - public APIreadNamespacedPodLogRequest tailLines(Integer tailLines) { + public APIreadNamespacedPodLogRequest tailLines(@jakarta.annotation.Nullable Integer tailLines) { this.tailLines = tailLines; return this; } @@ -41192,7 +43203,7 @@ public APIreadNamespacedPodLogRequest tailLines(Integer tailLines) { * @param timestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. (optional) * @return APIreadNamespacedPodLogRequest */ - public APIreadNamespacedPodLogRequest timestamps(Boolean timestamps) { + public APIreadNamespacedPodLogRequest timestamps(@jakarta.annotation.Nullable Boolean timestamps) { this.timestamps = timestamps; return this; } @@ -41203,7 +43214,8 @@ public APIreadNamespacedPodLogRequest timestamps(Boolean timestamps) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -41218,7 +43230,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -41234,7 +43247,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -41250,7 +43264,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -41268,16 +43283,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedPodLogRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedPodLogRequest readNamespacedPodLog(String name, String namespace) { + public APIreadNamespacedPodLogRequest readNamespacedPodLog(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedPodLogRequest(name, namespace); } - private okhttp3.Call readNamespacedPodResizeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodResizeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -41331,7 +43347,7 @@ private okhttp3.Call readNamespacedPodResizeCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedPodResizeValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodResizeValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPodResize(Async)"); @@ -41347,13 +43363,13 @@ private okhttp3.Call readNamespacedPodResizeValidateBeforeCall(String name, Stri } - private ApiResponse readNamespacedPodResizeWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedPodResizeWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodResizeValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedPodResizeAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodResizeAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodResizeValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -41362,11 +43378,14 @@ private okhttp3.Call readNamespacedPodResizeAsync(String name, String namespace, } public class APIreadNamespacedPodResizeRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedPodResizeRequest(String name, String namespace) { + private APIreadNamespacedPodResizeRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -41376,7 +43395,7 @@ private APIreadNamespacedPodResizeRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedPodResizeRequest */ - public APIreadNamespacedPodResizeRequest pretty(String pretty) { + public APIreadNamespacedPodResizeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -41387,7 +43406,8 @@ public APIreadNamespacedPodResizeRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -41402,7 +43422,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -41418,7 +43439,8 @@ public V1Pod execute() throws ApiException { * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -41434,7 +43456,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -41452,16 +43475,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedPodResizeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedPodResizeRequest readNamespacedPodResize(String name, String namespace) { + public APIreadNamespacedPodResizeRequest readNamespacedPodResize(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedPodResizeRequest(name, namespace); } - private okhttp3.Call readNamespacedPodStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -41515,7 +43539,7 @@ private okhttp3.Call readNamespacedPodStatusCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedPodStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPodStatus(Async)"); @@ -41531,13 +43555,13 @@ private okhttp3.Call readNamespacedPodStatusValidateBeforeCall(String name, Stri } - private ApiResponse readNamespacedPodStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedPodStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedPodStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -41546,11 +43570,14 @@ private okhttp3.Call readNamespacedPodStatusAsync(String name, String namespace, } public class APIreadNamespacedPodStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedPodStatusRequest(String name, String namespace) { + private APIreadNamespacedPodStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -41560,7 +43587,7 @@ private APIreadNamespacedPodStatusRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedPodStatusRequest */ - public APIreadNamespacedPodStatusRequest pretty(String pretty) { + public APIreadNamespacedPodStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -41571,7 +43598,8 @@ public APIreadNamespacedPodStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -41586,7 +43614,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -41602,7 +43631,8 @@ public V1Pod execute() throws ApiException { * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -41618,7 +43648,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -41636,16 +43667,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedPodStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedPodStatusRequest readNamespacedPodStatus(String name, String namespace) { + public APIreadNamespacedPodStatusRequest readNamespacedPodStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedPodStatusRequest(name, namespace); } - private okhttp3.Call readNamespacedPodTemplateCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -41699,7 +43731,7 @@ private okhttp3.Call readNamespacedPodTemplateCall(String name, String namespace } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedPodTemplateValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPodTemplate(Async)"); @@ -41715,13 +43747,13 @@ private okhttp3.Call readNamespacedPodTemplateValidateBeforeCall(String name, St } - private ApiResponse readNamespacedPodTemplateWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedPodTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodTemplateValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedPodTemplateAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodTemplateValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -41730,11 +43762,14 @@ private okhttp3.Call readNamespacedPodTemplateAsync(String name, String namespac } public class APIreadNamespacedPodTemplateRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedPodTemplateRequest(String name, String namespace) { + private APIreadNamespacedPodTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -41744,7 +43779,7 @@ private APIreadNamespacedPodTemplateRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedPodTemplateRequest */ - public APIreadNamespacedPodTemplateRequest pretty(String pretty) { + public APIreadNamespacedPodTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -41755,7 +43790,8 @@ public APIreadNamespacedPodTemplateRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -41770,7 +43806,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PodTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -41786,7 +43823,8 @@ public V1PodTemplate execute() throws ApiException { * @return ApiResponse<V1PodTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -41802,7 +43840,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -41820,16 +43859,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedPodTemplateRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedPodTemplateRequest readNamespacedPodTemplate(String name, String namespace) { + public APIreadNamespacedPodTemplateRequest readNamespacedPodTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedPodTemplateRequest(name, namespace); } - private okhttp3.Call readNamespacedReplicationControllerCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedReplicationControllerCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -41883,7 +43923,7 @@ private okhttp3.Call readNamespacedReplicationControllerCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedReplicationControllerValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedReplicationControllerValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedReplicationController(Async)"); @@ -41899,13 +43939,13 @@ private okhttp3.Call readNamespacedReplicationControllerValidateBeforeCall(Strin } - private ApiResponse readNamespacedReplicationControllerWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedReplicationControllerWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicationControllerValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedReplicationControllerAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedReplicationControllerAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicationControllerValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -41914,11 +43954,14 @@ private okhttp3.Call readNamespacedReplicationControllerAsync(String name, Strin } public class APIreadNamespacedReplicationControllerRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedReplicationControllerRequest(String name, String namespace) { + private APIreadNamespacedReplicationControllerRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -41928,7 +43971,7 @@ private APIreadNamespacedReplicationControllerRequest(String name, String namesp * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedReplicationControllerRequest */ - public APIreadNamespacedReplicationControllerRequest pretty(String pretty) { + public APIreadNamespacedReplicationControllerRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -41939,7 +43982,8 @@ public APIreadNamespacedReplicationControllerRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -41954,7 +43998,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ReplicationController * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -41970,7 +44015,8 @@ public V1ReplicationController execute() throws ApiException { * @return ApiResponse<V1ReplicationController> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -41986,7 +44032,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExce * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -42004,16 +44051,17 @@ public okhttp3.Call executeAsync(final ApiCallback _cal * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedReplicationControllerRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedReplicationControllerRequest readNamespacedReplicationController(String name, String namespace) { + public APIreadNamespacedReplicationControllerRequest readNamespacedReplicationController(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedReplicationControllerRequest(name, namespace); } - private okhttp3.Call readNamespacedReplicationControllerScaleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedReplicationControllerScaleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -42067,7 +44115,7 @@ private okhttp3.Call readNamespacedReplicationControllerScaleCall(String name, S } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedReplicationControllerScaleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedReplicationControllerScaleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedReplicationControllerScale(Async)"); @@ -42083,13 +44131,13 @@ private okhttp3.Call readNamespacedReplicationControllerScaleValidateBeforeCall( } - private ApiResponse readNamespacedReplicationControllerScaleWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedReplicationControllerScaleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedReplicationControllerScaleAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedReplicationControllerScaleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -42098,11 +44146,14 @@ private okhttp3.Call readNamespacedReplicationControllerScaleAsync(String name, } public class APIreadNamespacedReplicationControllerScaleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedReplicationControllerScaleRequest(String name, String namespace) { + private APIreadNamespacedReplicationControllerScaleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -42112,7 +44163,7 @@ private APIreadNamespacedReplicationControllerScaleRequest(String name, String n * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedReplicationControllerScaleRequest */ - public APIreadNamespacedReplicationControllerScaleRequest pretty(String pretty) { + public APIreadNamespacedReplicationControllerScaleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -42123,7 +44174,8 @@ public APIreadNamespacedReplicationControllerScaleRequest pretty(String pretty) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -42138,7 +44190,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -42154,7 +44207,8 @@ public V1Scale execute() throws ApiException { * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -42170,7 +44224,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -42188,16 +44243,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedReplicationControllerScaleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedReplicationControllerScaleRequest readNamespacedReplicationControllerScale(String name, String namespace) { + public APIreadNamespacedReplicationControllerScaleRequest readNamespacedReplicationControllerScale(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedReplicationControllerScaleRequest(name, namespace); } - private okhttp3.Call readNamespacedReplicationControllerStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedReplicationControllerStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -42251,7 +44307,7 @@ private okhttp3.Call readNamespacedReplicationControllerStatusCall(String name, } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedReplicationControllerStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedReplicationControllerStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedReplicationControllerStatus(Async)"); @@ -42267,13 +44323,13 @@ private okhttp3.Call readNamespacedReplicationControllerStatusValidateBeforeCall } - private ApiResponse readNamespacedReplicationControllerStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedReplicationControllerStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedReplicationControllerStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedReplicationControllerStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -42282,11 +44338,14 @@ private okhttp3.Call readNamespacedReplicationControllerStatusAsync(String name, } public class APIreadNamespacedReplicationControllerStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedReplicationControllerStatusRequest(String name, String namespace) { + private APIreadNamespacedReplicationControllerStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -42296,7 +44355,7 @@ private APIreadNamespacedReplicationControllerStatusRequest(String name, String * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedReplicationControllerStatusRequest */ - public APIreadNamespacedReplicationControllerStatusRequest pretty(String pretty) { + public APIreadNamespacedReplicationControllerStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -42307,7 +44366,8 @@ public APIreadNamespacedReplicationControllerStatusRequest pretty(String pretty) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -42322,7 +44382,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ReplicationController * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -42338,7 +44399,8 @@ public V1ReplicationController execute() throws ApiException { * @return ApiResponse<V1ReplicationController> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -42354,7 +44416,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExce * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -42372,16 +44435,17 @@ public okhttp3.Call executeAsync(final ApiCallback _cal * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedReplicationControllerStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedReplicationControllerStatusRequest readNamespacedReplicationControllerStatus(String name, String namespace) { + public APIreadNamespacedReplicationControllerStatusRequest readNamespacedReplicationControllerStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedReplicationControllerStatusRequest(name, namespace); } - private okhttp3.Call readNamespacedResourceQuotaCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceQuotaCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -42435,7 +44499,7 @@ private okhttp3.Call readNamespacedResourceQuotaCall(String name, String namespa } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedResourceQuotaValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceQuotaValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceQuota(Async)"); @@ -42451,13 +44515,13 @@ private okhttp3.Call readNamespacedResourceQuotaValidateBeforeCall(String name, } - private ApiResponse readNamespacedResourceQuotaWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedResourceQuotaWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedResourceQuotaValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedResourceQuotaAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceQuotaAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedResourceQuotaValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -42466,11 +44530,14 @@ private okhttp3.Call readNamespacedResourceQuotaAsync(String name, String namesp } public class APIreadNamespacedResourceQuotaRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedResourceQuotaRequest(String name, String namespace) { + private APIreadNamespacedResourceQuotaRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -42480,7 +44547,7 @@ private APIreadNamespacedResourceQuotaRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedResourceQuotaRequest */ - public APIreadNamespacedResourceQuotaRequest pretty(String pretty) { + public APIreadNamespacedResourceQuotaRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -42491,7 +44558,8 @@ public APIreadNamespacedResourceQuotaRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -42506,7 +44574,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ResourceQuota * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -42522,7 +44591,8 @@ public V1ResourceQuota execute() throws ApiException { * @return ApiResponse<V1ResourceQuota> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -42538,7 +44608,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -42556,16 +44627,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedResourceQuotaRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedResourceQuotaRequest readNamespacedResourceQuota(String name, String namespace) { + public APIreadNamespacedResourceQuotaRequest readNamespacedResourceQuota(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedResourceQuotaRequest(name, namespace); } - private okhttp3.Call readNamespacedResourceQuotaStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceQuotaStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -42619,7 +44691,7 @@ private okhttp3.Call readNamespacedResourceQuotaStatusCall(String name, String n } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedResourceQuotaStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceQuotaStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceQuotaStatus(Async)"); @@ -42635,13 +44707,13 @@ private okhttp3.Call readNamespacedResourceQuotaStatusValidateBeforeCall(String } - private ApiResponse readNamespacedResourceQuotaStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedResourceQuotaStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedResourceQuotaStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceQuotaStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -42650,11 +44722,14 @@ private okhttp3.Call readNamespacedResourceQuotaStatusAsync(String name, String } public class APIreadNamespacedResourceQuotaStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedResourceQuotaStatusRequest(String name, String namespace) { + private APIreadNamespacedResourceQuotaStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -42664,7 +44739,7 @@ private APIreadNamespacedResourceQuotaStatusRequest(String name, String namespac * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedResourceQuotaStatusRequest */ - public APIreadNamespacedResourceQuotaStatusRequest pretty(String pretty) { + public APIreadNamespacedResourceQuotaStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -42675,7 +44750,8 @@ public APIreadNamespacedResourceQuotaStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -42690,7 +44766,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ResourceQuota * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -42706,7 +44783,8 @@ public V1ResourceQuota execute() throws ApiException { * @return ApiResponse<V1ResourceQuota> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -42722,7 +44800,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -42740,16 +44819,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedResourceQuotaStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedResourceQuotaStatusRequest readNamespacedResourceQuotaStatus(String name, String namespace) { + public APIreadNamespacedResourceQuotaStatusRequest readNamespacedResourceQuotaStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedResourceQuotaStatusRequest(name, namespace); } - private okhttp3.Call readNamespacedSecretCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedSecretCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -42803,7 +44883,7 @@ private okhttp3.Call readNamespacedSecretCall(String name, String namespace, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedSecretValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedSecretValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedSecret(Async)"); @@ -42819,13 +44899,13 @@ private okhttp3.Call readNamespacedSecretValidateBeforeCall(String name, String } - private ApiResponse readNamespacedSecretWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedSecretWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedSecretValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedSecretAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedSecretAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedSecretValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -42834,11 +44914,14 @@ private okhttp3.Call readNamespacedSecretAsync(String name, String namespace, St } public class APIreadNamespacedSecretRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedSecretRequest(String name, String namespace) { + private APIreadNamespacedSecretRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -42848,7 +44931,7 @@ private APIreadNamespacedSecretRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedSecretRequest */ - public APIreadNamespacedSecretRequest pretty(String pretty) { + public APIreadNamespacedSecretRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -42859,7 +44942,8 @@ public APIreadNamespacedSecretRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -42874,7 +44958,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Secret * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -42890,7 +44975,8 @@ public V1Secret execute() throws ApiException { * @return ApiResponse<V1Secret> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -42906,7 +44992,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -42924,16 +45011,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedSecretRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedSecretRequest readNamespacedSecret(String name, String namespace) { + public APIreadNamespacedSecretRequest readNamespacedSecret(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedSecretRequest(name, namespace); } - private okhttp3.Call readNamespacedServiceCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedServiceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -42987,7 +45075,7 @@ private okhttp3.Call readNamespacedServiceCall(String name, String namespace, St } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedServiceValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedServiceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedService(Async)"); @@ -43003,13 +45091,13 @@ private okhttp3.Call readNamespacedServiceValidateBeforeCall(String name, String } - private ApiResponse readNamespacedServiceWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedServiceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedServiceValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedServiceAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedServiceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedServiceValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -43018,11 +45106,14 @@ private okhttp3.Call readNamespacedServiceAsync(String name, String namespace, S } public class APIreadNamespacedServiceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedServiceRequest(String name, String namespace) { + private APIreadNamespacedServiceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -43032,7 +45123,7 @@ private APIreadNamespacedServiceRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedServiceRequest */ - public APIreadNamespacedServiceRequest pretty(String pretty) { + public APIreadNamespacedServiceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -43043,7 +45134,8 @@ public APIreadNamespacedServiceRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -43058,7 +45150,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Service * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -43074,7 +45167,8 @@ public V1Service execute() throws ApiException { * @return ApiResponse<V1Service> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -43090,7 +45184,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -43108,16 +45203,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedServiceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedServiceRequest readNamespacedService(String name, String namespace) { + public APIreadNamespacedServiceRequest readNamespacedService(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedServiceRequest(name, namespace); } - private okhttp3.Call readNamespacedServiceAccountCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedServiceAccountCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -43171,7 +45267,7 @@ private okhttp3.Call readNamespacedServiceAccountCall(String name, String namesp } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedServiceAccountValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedServiceAccountValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedServiceAccount(Async)"); @@ -43187,13 +45283,13 @@ private okhttp3.Call readNamespacedServiceAccountValidateBeforeCall(String name, } - private ApiResponse readNamespacedServiceAccountWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedServiceAccountWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedServiceAccountValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedServiceAccountAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedServiceAccountAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedServiceAccountValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -43202,11 +45298,14 @@ private okhttp3.Call readNamespacedServiceAccountAsync(String name, String names } public class APIreadNamespacedServiceAccountRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedServiceAccountRequest(String name, String namespace) { + private APIreadNamespacedServiceAccountRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -43216,7 +45315,7 @@ private APIreadNamespacedServiceAccountRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedServiceAccountRequest */ - public APIreadNamespacedServiceAccountRequest pretty(String pretty) { + public APIreadNamespacedServiceAccountRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -43227,7 +45326,8 @@ public APIreadNamespacedServiceAccountRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -43242,7 +45342,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ServiceAccount * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -43258,7 +45359,8 @@ public V1ServiceAccount execute() throws ApiException { * @return ApiResponse<V1ServiceAccount> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -43274,7 +45376,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -43292,16 +45395,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedServiceAccountRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedServiceAccountRequest readNamespacedServiceAccount(String name, String namespace) { + public APIreadNamespacedServiceAccountRequest readNamespacedServiceAccount(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedServiceAccountRequest(name, namespace); } - private okhttp3.Call readNamespacedServiceStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedServiceStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -43355,7 +45459,7 @@ private okhttp3.Call readNamespacedServiceStatusCall(String name, String namespa } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedServiceStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedServiceStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedServiceStatus(Async)"); @@ -43371,13 +45475,13 @@ private okhttp3.Call readNamespacedServiceStatusValidateBeforeCall(String name, } - private ApiResponse readNamespacedServiceStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedServiceStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedServiceStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedServiceStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedServiceStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedServiceStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -43386,11 +45490,14 @@ private okhttp3.Call readNamespacedServiceStatusAsync(String name, String namesp } public class APIreadNamespacedServiceStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedServiceStatusRequest(String name, String namespace) { + private APIreadNamespacedServiceStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -43400,7 +45507,7 @@ private APIreadNamespacedServiceStatusRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedServiceStatusRequest */ - public APIreadNamespacedServiceStatusRequest pretty(String pretty) { + public APIreadNamespacedServiceStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -43411,7 +45518,8 @@ public APIreadNamespacedServiceStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -43426,7 +45534,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Service * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -43442,7 +45551,8 @@ public V1Service execute() throws ApiException { * @return ApiResponse<V1Service> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -43458,7 +45568,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -43476,16 +45587,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedServiceStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedServiceStatusRequest readNamespacedServiceStatus(String name, String namespace) { + public APIreadNamespacedServiceStatusRequest readNamespacedServiceStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedServiceStatusRequest(name, namespace); } - private okhttp3.Call readNodeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNodeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -43538,7 +45650,7 @@ private okhttp3.Call readNodeCall(String name, String pretty, final ApiCallback } @SuppressWarnings("rawtypes") - private okhttp3.Call readNodeValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNodeValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNode(Async)"); @@ -43549,13 +45661,13 @@ private okhttp3.Call readNodeValidateBeforeCall(String name, String pretty, fina } - private ApiResponse readNodeWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readNodeWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNodeValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNodeAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNodeAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNodeValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -43564,10 +45676,12 @@ private okhttp3.Call readNodeAsync(String name, String pretty, final ApiCallback } public class APIreadNodeRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadNodeRequest(String name) { + private APIreadNodeRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -43576,7 +45690,7 @@ private APIreadNodeRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNodeRequest */ - public APIreadNodeRequest pretty(String pretty) { + public APIreadNodeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -43587,7 +45701,8 @@ public APIreadNodeRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -43602,7 +45717,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Node * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -43618,7 +45734,8 @@ public V1Node execute() throws ApiException { * @return ApiResponse<V1Node> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -43634,7 +45751,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -43651,16 +45769,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param name name of the Node (required) * @return APIreadNodeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNodeRequest readNode(String name) { + public APIreadNodeRequest readNode(@jakarta.annotation.Nonnull String name) { return new APIreadNodeRequest(name); } - private okhttp3.Call readNodeStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNodeStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -43713,7 +45832,7 @@ private okhttp3.Call readNodeStatusCall(String name, String pretty, final ApiCal } @SuppressWarnings("rawtypes") - private okhttp3.Call readNodeStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNodeStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNodeStatus(Async)"); @@ -43724,13 +45843,13 @@ private okhttp3.Call readNodeStatusValidateBeforeCall(String name, String pretty } - private ApiResponse readNodeStatusWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readNodeStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNodeStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNodeStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNodeStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNodeStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -43739,10 +45858,12 @@ private okhttp3.Call readNodeStatusAsync(String name, String pretty, final ApiCa } public class APIreadNodeStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadNodeStatusRequest(String name) { + private APIreadNodeStatusRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -43751,7 +45872,7 @@ private APIreadNodeStatusRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNodeStatusRequest */ - public APIreadNodeStatusRequest pretty(String pretty) { + public APIreadNodeStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -43762,7 +45883,8 @@ public APIreadNodeStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -43777,7 +45899,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Node * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -43793,7 +45916,8 @@ public V1Node execute() throws ApiException { * @return ApiResponse<V1Node> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -43809,7 +45933,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -43826,16 +45951,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param name name of the Node (required) * @return APIreadNodeStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNodeStatusRequest readNodeStatus(String name) { + public APIreadNodeStatusRequest readNodeStatus(@jakarta.annotation.Nonnull String name) { return new APIreadNodeStatusRequest(name); } - private okhttp3.Call readPersistentVolumeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readPersistentVolumeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -43888,7 +46014,7 @@ private okhttp3.Call readPersistentVolumeCall(String name, String pretty, final } @SuppressWarnings("rawtypes") - private okhttp3.Call readPersistentVolumeValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readPersistentVolumeValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readPersistentVolume(Async)"); @@ -43899,13 +46025,13 @@ private okhttp3.Call readPersistentVolumeValidateBeforeCall(String name, String } - private ApiResponse readPersistentVolumeWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readPersistentVolumeWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readPersistentVolumeValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readPersistentVolumeAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readPersistentVolumeAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readPersistentVolumeValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -43914,10 +46040,12 @@ private okhttp3.Call readPersistentVolumeAsync(String name, String pretty, final } public class APIreadPersistentVolumeRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadPersistentVolumeRequest(String name) { + private APIreadPersistentVolumeRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -43926,7 +46054,7 @@ private APIreadPersistentVolumeRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadPersistentVolumeRequest */ - public APIreadPersistentVolumeRequest pretty(String pretty) { + public APIreadPersistentVolumeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -43937,7 +46065,8 @@ public APIreadPersistentVolumeRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -43952,7 +46081,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PersistentVolume * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -43968,7 +46098,8 @@ public V1PersistentVolume execute() throws ApiException { * @return ApiResponse<V1PersistentVolume> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -43984,7 +46115,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -44001,16 +46133,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param name name of the PersistentVolume (required) * @return APIreadPersistentVolumeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadPersistentVolumeRequest readPersistentVolume(String name) { + public APIreadPersistentVolumeRequest readPersistentVolume(@jakarta.annotation.Nonnull String name) { return new APIreadPersistentVolumeRequest(name); } - private okhttp3.Call readPersistentVolumeStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readPersistentVolumeStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -44063,7 +46196,7 @@ private okhttp3.Call readPersistentVolumeStatusCall(String name, String pretty, } @SuppressWarnings("rawtypes") - private okhttp3.Call readPersistentVolumeStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readPersistentVolumeStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readPersistentVolumeStatus(Async)"); @@ -44074,13 +46207,13 @@ private okhttp3.Call readPersistentVolumeStatusValidateBeforeCall(String name, S } - private ApiResponse readPersistentVolumeStatusWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readPersistentVolumeStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readPersistentVolumeStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readPersistentVolumeStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readPersistentVolumeStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readPersistentVolumeStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -44089,10 +46222,12 @@ private okhttp3.Call readPersistentVolumeStatusAsync(String name, String pretty, } public class APIreadPersistentVolumeStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadPersistentVolumeStatusRequest(String name) { + private APIreadPersistentVolumeStatusRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -44101,7 +46236,7 @@ private APIreadPersistentVolumeStatusRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadPersistentVolumeStatusRequest */ - public APIreadPersistentVolumeStatusRequest pretty(String pretty) { + public APIreadPersistentVolumeStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -44112,7 +46247,8 @@ public APIreadPersistentVolumeStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -44127,7 +46263,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PersistentVolume * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -44143,7 +46280,8 @@ public V1PersistentVolume execute() throws ApiException { * @return ApiResponse<V1PersistentVolume> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -44159,7 +46297,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -44176,16 +46315,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param name name of the PersistentVolume (required) * @return APIreadPersistentVolumeStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadPersistentVolumeStatusRequest readPersistentVolumeStatus(String name) { + public APIreadPersistentVolumeStatusRequest readPersistentVolumeStatus(@jakarta.annotation.Nonnull String name) { return new APIreadPersistentVolumeStatusRequest(name); } - private okhttp3.Call replaceNamespaceCall(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespaceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Namespace body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -44251,7 +46391,7 @@ private okhttp3.Call replaceNamespaceCall(String name, V1Namespace body, String } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespaceValidateBeforeCall(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespaceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Namespace body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespace(Async)"); @@ -44267,13 +46407,13 @@ private okhttp3.Call replaceNamespaceValidateBeforeCall(String name, V1Namespace } - private ApiResponse replaceNamespaceWithHttpInfo(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespaceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Namespace body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespaceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespaceAsync(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespaceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Namespace body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespaceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -44282,14 +46422,20 @@ private okhttp3.Call replaceNamespaceAsync(String name, V1Namespace body, String } public class APIreplaceNamespaceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Namespace body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespaceRequest(String name, V1Namespace body) { + private APIreplaceNamespaceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Namespace body) { this.name = name; this.body = body; } @@ -44299,7 +46445,7 @@ private APIreplaceNamespaceRequest(String name, V1Namespace body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespaceRequest */ - public APIreplaceNamespaceRequest pretty(String pretty) { + public APIreplaceNamespaceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -44309,7 +46455,7 @@ public APIreplaceNamespaceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespaceRequest */ - public APIreplaceNamespaceRequest dryRun(String dryRun) { + public APIreplaceNamespaceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -44319,7 +46465,7 @@ public APIreplaceNamespaceRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespaceRequest */ - public APIreplaceNamespaceRequest fieldManager(String fieldManager) { + public APIreplaceNamespaceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -44329,7 +46475,7 @@ public APIreplaceNamespaceRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespaceRequest */ - public APIreplaceNamespaceRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespaceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -44340,7 +46486,8 @@ public APIreplaceNamespaceRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -44356,7 +46503,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Namespace * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -44373,7 +46521,8 @@ public V1Namespace execute() throws ApiException { * @return ApiResponse<V1Namespace> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -44390,7 +46539,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -44409,17 +46559,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIreplaceNamespaceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespaceRequest replaceNamespace(String name, V1Namespace body) { + public APIreplaceNamespaceRequest replaceNamespace(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Namespace body) { return new APIreplaceNamespaceRequest(name, body); } - private okhttp3.Call replaceNamespaceFinalizeCall(String name, V1Namespace body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespaceFinalizeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Namespace body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -44485,7 +46636,7 @@ private okhttp3.Call replaceNamespaceFinalizeCall(String name, V1Namespace body, } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespaceFinalizeValidateBeforeCall(String name, V1Namespace body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespaceFinalizeValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Namespace body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespaceFinalize(Async)"); @@ -44501,13 +46652,13 @@ private okhttp3.Call replaceNamespaceFinalizeValidateBeforeCall(String name, V1N } - private ApiResponse replaceNamespaceFinalizeWithHttpInfo(String name, V1Namespace body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { + private ApiResponse replaceNamespaceFinalizeWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Namespace body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = replaceNamespaceFinalizeValidateBeforeCall(name, body, dryRun, fieldManager, fieldValidation, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespaceFinalizeAsync(String name, V1Namespace body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespaceFinalizeAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Namespace body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespaceFinalizeValidateBeforeCall(name, body, dryRun, fieldManager, fieldValidation, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -44516,14 +46667,20 @@ private okhttp3.Call replaceNamespaceFinalizeAsync(String name, V1Namespace body } public class APIreplaceNamespaceFinalizeRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Namespace body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private String pretty; - private APIreplaceNamespaceFinalizeRequest(String name, V1Namespace body) { + private APIreplaceNamespaceFinalizeRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Namespace body) { this.name = name; this.body = body; } @@ -44533,7 +46690,7 @@ private APIreplaceNamespaceFinalizeRequest(String name, V1Namespace body) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespaceFinalizeRequest */ - public APIreplaceNamespaceFinalizeRequest dryRun(String dryRun) { + public APIreplaceNamespaceFinalizeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -44543,7 +46700,7 @@ public APIreplaceNamespaceFinalizeRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespaceFinalizeRequest */ - public APIreplaceNamespaceFinalizeRequest fieldManager(String fieldManager) { + public APIreplaceNamespaceFinalizeRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -44553,7 +46710,7 @@ public APIreplaceNamespaceFinalizeRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespaceFinalizeRequest */ - public APIreplaceNamespaceFinalizeRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespaceFinalizeRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -44563,7 +46720,7 @@ public APIreplaceNamespaceFinalizeRequest fieldValidation(String fieldValidation * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespaceFinalizeRequest */ - public APIreplaceNamespaceFinalizeRequest pretty(String pretty) { + public APIreplaceNamespaceFinalizeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -44574,7 +46731,8 @@ public APIreplaceNamespaceFinalizeRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -44590,7 +46748,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Namespace * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -44607,7 +46766,8 @@ public V1Namespace execute() throws ApiException { * @return ApiResponse<V1Namespace> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -44624,7 +46784,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -44643,17 +46804,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIreplaceNamespaceFinalizeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespaceFinalizeRequest replaceNamespaceFinalize(String name, V1Namespace body) { + public APIreplaceNamespaceFinalizeRequest replaceNamespaceFinalize(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Namespace body) { return new APIreplaceNamespaceFinalizeRequest(name, body); } - private okhttp3.Call replaceNamespaceStatusCall(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespaceStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Namespace body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -44719,7 +46881,7 @@ private okhttp3.Call replaceNamespaceStatusCall(String name, V1Namespace body, S } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespaceStatusValidateBeforeCall(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespaceStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Namespace body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespaceStatus(Async)"); @@ -44735,13 +46897,13 @@ private okhttp3.Call replaceNamespaceStatusValidateBeforeCall(String name, V1Nam } - private ApiResponse replaceNamespaceStatusWithHttpInfo(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespaceStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Namespace body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespaceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespaceStatusAsync(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespaceStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Namespace body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespaceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -44750,14 +46912,20 @@ private okhttp3.Call replaceNamespaceStatusAsync(String name, V1Namespace body, } public class APIreplaceNamespaceStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Namespace body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespaceStatusRequest(String name, V1Namespace body) { + private APIreplaceNamespaceStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Namespace body) { this.name = name; this.body = body; } @@ -44767,7 +46935,7 @@ private APIreplaceNamespaceStatusRequest(String name, V1Namespace body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespaceStatusRequest */ - public APIreplaceNamespaceStatusRequest pretty(String pretty) { + public APIreplaceNamespaceStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -44777,7 +46945,7 @@ public APIreplaceNamespaceStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespaceStatusRequest */ - public APIreplaceNamespaceStatusRequest dryRun(String dryRun) { + public APIreplaceNamespaceStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -44787,7 +46955,7 @@ public APIreplaceNamespaceStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespaceStatusRequest */ - public APIreplaceNamespaceStatusRequest fieldManager(String fieldManager) { + public APIreplaceNamespaceStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -44797,7 +46965,7 @@ public APIreplaceNamespaceStatusRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespaceStatusRequest */ - public APIreplaceNamespaceStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespaceStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -44808,7 +46976,8 @@ public APIreplaceNamespaceStatusRequest fieldValidation(String fieldValidation) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -44824,7 +46993,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Namespace * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -44841,7 +47011,8 @@ public V1Namespace execute() throws ApiException { * @return ApiResponse<V1Namespace> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -44858,7 +47029,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -44877,17 +47049,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIreplaceNamespaceStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespaceStatusRequest replaceNamespaceStatus(String name, V1Namespace body) { + public APIreplaceNamespaceStatusRequest replaceNamespaceStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Namespace body) { return new APIreplaceNamespaceStatusRequest(name, body); } - private okhttp3.Call replaceNamespacedConfigMapCall(String name, String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedConfigMapCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ConfigMap body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -44954,7 +47127,7 @@ private okhttp3.Call replaceNamespacedConfigMapCall(String name, String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedConfigMapValidateBeforeCall(String name, String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedConfigMapValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ConfigMap body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedConfigMap(Async)"); @@ -44975,13 +47148,13 @@ private okhttp3.Call replaceNamespacedConfigMapValidateBeforeCall(String name, S } - private ApiResponse replaceNamespacedConfigMapWithHttpInfo(String name, String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedConfigMapWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ConfigMap body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedConfigMapValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedConfigMapAsync(String name, String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedConfigMapAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ConfigMap body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedConfigMapValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -44990,15 +47163,22 @@ private okhttp3.Call replaceNamespacedConfigMapAsync(String name, String namespa } public class APIreplaceNamespacedConfigMapRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1ConfigMap body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedConfigMapRequest(String name, String namespace, V1ConfigMap body) { + private APIreplaceNamespacedConfigMapRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ConfigMap body) { this.name = name; this.namespace = namespace; this.body = body; @@ -45009,7 +47189,7 @@ private APIreplaceNamespacedConfigMapRequest(String name, String namespace, V1Co * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedConfigMapRequest */ - public APIreplaceNamespacedConfigMapRequest pretty(String pretty) { + public APIreplaceNamespacedConfigMapRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -45019,7 +47199,7 @@ public APIreplaceNamespacedConfigMapRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedConfigMapRequest */ - public APIreplaceNamespacedConfigMapRequest dryRun(String dryRun) { + public APIreplaceNamespacedConfigMapRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -45029,7 +47209,7 @@ public APIreplaceNamespacedConfigMapRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedConfigMapRequest */ - public APIreplaceNamespacedConfigMapRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedConfigMapRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -45039,7 +47219,7 @@ public APIreplaceNamespacedConfigMapRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedConfigMapRequest */ - public APIreplaceNamespacedConfigMapRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedConfigMapRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -45050,7 +47230,8 @@ public APIreplaceNamespacedConfigMapRequest fieldValidation(String fieldValidati * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -45066,7 +47247,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ConfigMap * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -45083,7 +47265,8 @@ public V1ConfigMap execute() throws ApiException { * @return ApiResponse<V1ConfigMap> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -45100,7 +47283,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -45120,17 +47304,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIreplaceNamespacedConfigMapRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedConfigMapRequest replaceNamespacedConfigMap(String name, String namespace, V1ConfigMap body) { + public APIreplaceNamespacedConfigMapRequest replaceNamespacedConfigMap(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ConfigMap body) { return new APIreplaceNamespacedConfigMapRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedEndpointsCall(String name, String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedEndpointsCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Endpoints body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -45197,7 +47382,7 @@ private okhttp3.Call replaceNamespacedEndpointsCall(String name, String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedEndpointsValidateBeforeCall(String name, String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedEndpointsValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Endpoints body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedEndpoints(Async)"); @@ -45218,13 +47403,13 @@ private okhttp3.Call replaceNamespacedEndpointsValidateBeforeCall(String name, S } - private ApiResponse replaceNamespacedEndpointsWithHttpInfo(String name, String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedEndpointsWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Endpoints body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedEndpointsValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedEndpointsAsync(String name, String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedEndpointsAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Endpoints body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedEndpointsValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -45233,15 +47418,22 @@ private okhttp3.Call replaceNamespacedEndpointsAsync(String name, String namespa } public class APIreplaceNamespacedEndpointsRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Endpoints body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedEndpointsRequest(String name, String namespace, V1Endpoints body) { + private APIreplaceNamespacedEndpointsRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Endpoints body) { this.name = name; this.namespace = namespace; this.body = body; @@ -45252,7 +47444,7 @@ private APIreplaceNamespacedEndpointsRequest(String name, String namespace, V1En * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedEndpointsRequest */ - public APIreplaceNamespacedEndpointsRequest pretty(String pretty) { + public APIreplaceNamespacedEndpointsRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -45262,7 +47454,7 @@ public APIreplaceNamespacedEndpointsRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedEndpointsRequest */ - public APIreplaceNamespacedEndpointsRequest dryRun(String dryRun) { + public APIreplaceNamespacedEndpointsRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -45272,7 +47464,7 @@ public APIreplaceNamespacedEndpointsRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedEndpointsRequest */ - public APIreplaceNamespacedEndpointsRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedEndpointsRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -45282,7 +47474,7 @@ public APIreplaceNamespacedEndpointsRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedEndpointsRequest */ - public APIreplaceNamespacedEndpointsRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedEndpointsRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -45293,7 +47485,8 @@ public APIreplaceNamespacedEndpointsRequest fieldValidation(String fieldValidati * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -45309,7 +47502,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Endpoints * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -45326,7 +47520,8 @@ public V1Endpoints execute() throws ApiException { * @return ApiResponse<V1Endpoints> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -45343,7 +47538,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -45363,17 +47559,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIreplaceNamespacedEndpointsRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedEndpointsRequest replaceNamespacedEndpoints(String name, String namespace, V1Endpoints body) { + public APIreplaceNamespacedEndpointsRequest replaceNamespacedEndpoints(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Endpoints body) { return new APIreplaceNamespacedEndpointsRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedEventCall(String name, String namespace, CoreV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedEventCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull CoreV1Event body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -45440,7 +47637,7 @@ private okhttp3.Call replaceNamespacedEventCall(String name, String namespace, C } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedEventValidateBeforeCall(String name, String namespace, CoreV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedEventValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull CoreV1Event body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedEvent(Async)"); @@ -45461,13 +47658,13 @@ private okhttp3.Call replaceNamespacedEventValidateBeforeCall(String name, Strin } - private ApiResponse replaceNamespacedEventWithHttpInfo(String name, String namespace, CoreV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedEventWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull CoreV1Event body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedEventAsync(String name, String namespace, CoreV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedEventAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull CoreV1Event body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -45476,15 +47673,22 @@ private okhttp3.Call replaceNamespacedEventAsync(String name, String namespace, } public class APIreplaceNamespacedEventRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final CoreV1Event body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedEventRequest(String name, String namespace, CoreV1Event body) { + private APIreplaceNamespacedEventRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull CoreV1Event body) { this.name = name; this.namespace = namespace; this.body = body; @@ -45495,7 +47699,7 @@ private APIreplaceNamespacedEventRequest(String name, String namespace, CoreV1Ev * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedEventRequest */ - public APIreplaceNamespacedEventRequest pretty(String pretty) { + public APIreplaceNamespacedEventRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -45505,7 +47709,7 @@ public APIreplaceNamespacedEventRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedEventRequest */ - public APIreplaceNamespacedEventRequest dryRun(String dryRun) { + public APIreplaceNamespacedEventRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -45515,7 +47719,7 @@ public APIreplaceNamespacedEventRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedEventRequest */ - public APIreplaceNamespacedEventRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedEventRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -45525,7 +47729,7 @@ public APIreplaceNamespacedEventRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedEventRequest */ - public APIreplaceNamespacedEventRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedEventRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -45536,7 +47740,8 @@ public APIreplaceNamespacedEventRequest fieldValidation(String fieldValidation) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -45552,7 +47757,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return CoreV1Event * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -45569,7 +47775,8 @@ public CoreV1Event execute() throws ApiException { * @return ApiResponse<CoreV1Event> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -45586,7 +47793,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -45606,17 +47814,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIreplaceNamespacedEventRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedEventRequest replaceNamespacedEvent(String name, String namespace, CoreV1Event body) { + public APIreplaceNamespacedEventRequest replaceNamespacedEvent(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull CoreV1Event body) { return new APIreplaceNamespacedEventRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedLimitRangeCall(String name, String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedLimitRangeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1LimitRange body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -45683,7 +47892,7 @@ private okhttp3.Call replaceNamespacedLimitRangeCall(String name, String namespa } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedLimitRangeValidateBeforeCall(String name, String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedLimitRangeValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1LimitRange body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedLimitRange(Async)"); @@ -45704,13 +47913,13 @@ private okhttp3.Call replaceNamespacedLimitRangeValidateBeforeCall(String name, } - private ApiResponse replaceNamespacedLimitRangeWithHttpInfo(String name, String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedLimitRangeWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1LimitRange body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedLimitRangeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedLimitRangeAsync(String name, String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedLimitRangeAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1LimitRange body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedLimitRangeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -45719,15 +47928,22 @@ private okhttp3.Call replaceNamespacedLimitRangeAsync(String name, String namesp } public class APIreplaceNamespacedLimitRangeRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1LimitRange body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedLimitRangeRequest(String name, String namespace, V1LimitRange body) { + private APIreplaceNamespacedLimitRangeRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1LimitRange body) { this.name = name; this.namespace = namespace; this.body = body; @@ -45738,7 +47954,7 @@ private APIreplaceNamespacedLimitRangeRequest(String name, String namespace, V1L * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedLimitRangeRequest */ - public APIreplaceNamespacedLimitRangeRequest pretty(String pretty) { + public APIreplaceNamespacedLimitRangeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -45748,7 +47964,7 @@ public APIreplaceNamespacedLimitRangeRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedLimitRangeRequest */ - public APIreplaceNamespacedLimitRangeRequest dryRun(String dryRun) { + public APIreplaceNamespacedLimitRangeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -45758,7 +47974,7 @@ public APIreplaceNamespacedLimitRangeRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedLimitRangeRequest */ - public APIreplaceNamespacedLimitRangeRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedLimitRangeRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -45768,7 +47984,7 @@ public APIreplaceNamespacedLimitRangeRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedLimitRangeRequest */ - public APIreplaceNamespacedLimitRangeRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedLimitRangeRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -45779,7 +47995,8 @@ public APIreplaceNamespacedLimitRangeRequest fieldValidation(String fieldValidat * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -45795,7 +48012,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1LimitRange * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -45812,7 +48030,8 @@ public V1LimitRange execute() throws ApiException { * @return ApiResponse<V1LimitRange> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -45829,7 +48048,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -45849,17 +48069,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIreplaceNamespacedLimitRangeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedLimitRangeRequest replaceNamespacedLimitRange(String name, String namespace, V1LimitRange body) { + public APIreplaceNamespacedLimitRangeRequest replaceNamespacedLimitRange(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1LimitRange body) { return new APIreplaceNamespacedLimitRangeRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedPersistentVolumeClaimCall(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPersistentVolumeClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PersistentVolumeClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -45926,7 +48147,7 @@ private okhttp3.Call replaceNamespacedPersistentVolumeClaimCall(String name, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedPersistentVolumeClaimValidateBeforeCall(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPersistentVolumeClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PersistentVolumeClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPersistentVolumeClaim(Async)"); @@ -45947,13 +48168,13 @@ private okhttp3.Call replaceNamespacedPersistentVolumeClaimValidateBeforeCall(St } - private ApiResponse replaceNamespacedPersistentVolumeClaimWithHttpInfo(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedPersistentVolumeClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PersistentVolumeClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedPersistentVolumeClaimAsync(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPersistentVolumeClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PersistentVolumeClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -45962,15 +48183,22 @@ private okhttp3.Call replaceNamespacedPersistentVolumeClaimAsync(String name, St } public class APIreplaceNamespacedPersistentVolumeClaimRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1PersistentVolumeClaim body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedPersistentVolumeClaimRequest(String name, String namespace, V1PersistentVolumeClaim body) { + private APIreplaceNamespacedPersistentVolumeClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PersistentVolumeClaim body) { this.name = name; this.namespace = namespace; this.body = body; @@ -45981,7 +48209,7 @@ private APIreplaceNamespacedPersistentVolumeClaimRequest(String name, String nam * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedPersistentVolumeClaimRequest */ - public APIreplaceNamespacedPersistentVolumeClaimRequest pretty(String pretty) { + public APIreplaceNamespacedPersistentVolumeClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -45991,7 +48219,7 @@ public APIreplaceNamespacedPersistentVolumeClaimRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedPersistentVolumeClaimRequest */ - public APIreplaceNamespacedPersistentVolumeClaimRequest dryRun(String dryRun) { + public APIreplaceNamespacedPersistentVolumeClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -46001,7 +48229,7 @@ public APIreplaceNamespacedPersistentVolumeClaimRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedPersistentVolumeClaimRequest */ - public APIreplaceNamespacedPersistentVolumeClaimRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedPersistentVolumeClaimRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -46011,7 +48239,7 @@ public APIreplaceNamespacedPersistentVolumeClaimRequest fieldManager(String fiel * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedPersistentVolumeClaimRequest */ - public APIreplaceNamespacedPersistentVolumeClaimRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedPersistentVolumeClaimRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -46022,7 +48250,8 @@ public APIreplaceNamespacedPersistentVolumeClaimRequest fieldValidation(String f * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -46038,7 +48267,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PersistentVolumeClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -46055,7 +48285,8 @@ public V1PersistentVolumeClaim execute() throws ApiException { * @return ApiResponse<V1PersistentVolumeClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -46072,7 +48303,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExce * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -46092,17 +48324,18 @@ public okhttp3.Call executeAsync(final ApiCallback _cal * @param body (required) * @return APIreplaceNamespacedPersistentVolumeClaimRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedPersistentVolumeClaimRequest replaceNamespacedPersistentVolumeClaim(String name, String namespace, V1PersistentVolumeClaim body) { + public APIreplaceNamespacedPersistentVolumeClaimRequest replaceNamespacedPersistentVolumeClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PersistentVolumeClaim body) { return new APIreplaceNamespacedPersistentVolumeClaimRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusCall(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PersistentVolumeClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -46169,7 +48402,7 @@ private okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusCall(String nam } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusValidateBeforeCall(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PersistentVolumeClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPersistentVolumeClaimStatus(Async)"); @@ -46190,13 +48423,13 @@ private okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusValidateBeforeC } - private ApiResponse replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PersistentVolumeClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusAsync(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PersistentVolumeClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -46205,15 +48438,22 @@ private okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusAsync(String na } public class APIreplaceNamespacedPersistentVolumeClaimStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1PersistentVolumeClaim body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedPersistentVolumeClaimStatusRequest(String name, String namespace, V1PersistentVolumeClaim body) { + private APIreplaceNamespacedPersistentVolumeClaimStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PersistentVolumeClaim body) { this.name = name; this.namespace = namespace; this.body = body; @@ -46224,7 +48464,7 @@ private APIreplaceNamespacedPersistentVolumeClaimStatusRequest(String name, Stri * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedPersistentVolumeClaimStatusRequest */ - public APIreplaceNamespacedPersistentVolumeClaimStatusRequest pretty(String pretty) { + public APIreplaceNamespacedPersistentVolumeClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -46234,7 +48474,7 @@ public APIreplaceNamespacedPersistentVolumeClaimStatusRequest pretty(String pret * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedPersistentVolumeClaimStatusRequest */ - public APIreplaceNamespacedPersistentVolumeClaimStatusRequest dryRun(String dryRun) { + public APIreplaceNamespacedPersistentVolumeClaimStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -46244,7 +48484,7 @@ public APIreplaceNamespacedPersistentVolumeClaimStatusRequest dryRun(String dryR * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedPersistentVolumeClaimStatusRequest */ - public APIreplaceNamespacedPersistentVolumeClaimStatusRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedPersistentVolumeClaimStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -46254,7 +48494,7 @@ public APIreplaceNamespacedPersistentVolumeClaimStatusRequest fieldManager(Strin * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedPersistentVolumeClaimStatusRequest */ - public APIreplaceNamespacedPersistentVolumeClaimStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedPersistentVolumeClaimStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -46265,7 +48505,8 @@ public APIreplaceNamespacedPersistentVolumeClaimStatusRequest fieldValidation(St * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -46281,7 +48522,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PersistentVolumeClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -46298,7 +48540,8 @@ public V1PersistentVolumeClaim execute() throws ApiException { * @return ApiResponse<V1PersistentVolumeClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -46315,7 +48558,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExce * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -46335,17 +48579,18 @@ public okhttp3.Call executeAsync(final ApiCallback _cal * @param body (required) * @return APIreplaceNamespacedPersistentVolumeClaimStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedPersistentVolumeClaimStatusRequest replaceNamespacedPersistentVolumeClaimStatus(String name, String namespace, V1PersistentVolumeClaim body) { + public APIreplaceNamespacedPersistentVolumeClaimStatusRequest replaceNamespacedPersistentVolumeClaimStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PersistentVolumeClaim body) { return new APIreplaceNamespacedPersistentVolumeClaimStatusRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedPodCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -46412,7 +48657,7 @@ private okhttp3.Call replaceNamespacedPodCall(String name, String namespace, V1P } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedPodValidateBeforeCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPod(Async)"); @@ -46433,13 +48678,13 @@ private okhttp3.Call replaceNamespacedPodValidateBeforeCall(String name, String } - private ApiResponse replaceNamespacedPodWithHttpInfo(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedPodWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPodValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedPodAsync(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPodValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -46448,15 +48693,22 @@ private okhttp3.Call replaceNamespacedPodAsync(String name, String namespace, V1 } public class APIreplaceNamespacedPodRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Pod body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedPodRequest(String name, String namespace, V1Pod body) { + private APIreplaceNamespacedPodRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body) { this.name = name; this.namespace = namespace; this.body = body; @@ -46467,7 +48719,7 @@ private APIreplaceNamespacedPodRequest(String name, String namespace, V1Pod body * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedPodRequest */ - public APIreplaceNamespacedPodRequest pretty(String pretty) { + public APIreplaceNamespacedPodRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -46477,7 +48729,7 @@ public APIreplaceNamespacedPodRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedPodRequest */ - public APIreplaceNamespacedPodRequest dryRun(String dryRun) { + public APIreplaceNamespacedPodRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -46487,7 +48739,7 @@ public APIreplaceNamespacedPodRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedPodRequest */ - public APIreplaceNamespacedPodRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedPodRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -46497,7 +48749,7 @@ public APIreplaceNamespacedPodRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedPodRequest */ - public APIreplaceNamespacedPodRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedPodRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -46508,7 +48760,8 @@ public APIreplaceNamespacedPodRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -46524,7 +48777,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -46541,7 +48795,8 @@ public V1Pod execute() throws ApiException { * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -46558,7 +48813,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -46578,17 +48834,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE * @param body (required) * @return APIreplaceNamespacedPodRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedPodRequest replaceNamespacedPod(String name, String namespace, V1Pod body) { + public APIreplaceNamespacedPodRequest replaceNamespacedPod(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body) { return new APIreplaceNamespacedPodRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedPodEphemeralcontainersCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodEphemeralcontainersCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -46655,7 +48912,7 @@ private okhttp3.Call replaceNamespacedPodEphemeralcontainersCall(String name, St } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedPodEphemeralcontainersValidateBeforeCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodEphemeralcontainersValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPodEphemeralcontainers(Async)"); @@ -46676,13 +48933,13 @@ private okhttp3.Call replaceNamespacedPodEphemeralcontainersValidateBeforeCall(S } - private ApiResponse replaceNamespacedPodEphemeralcontainersWithHttpInfo(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedPodEphemeralcontainersWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPodEphemeralcontainersValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedPodEphemeralcontainersAsync(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodEphemeralcontainersAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPodEphemeralcontainersValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -46691,15 +48948,22 @@ private okhttp3.Call replaceNamespacedPodEphemeralcontainersAsync(String name, S } public class APIreplaceNamespacedPodEphemeralcontainersRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Pod body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedPodEphemeralcontainersRequest(String name, String namespace, V1Pod body) { + private APIreplaceNamespacedPodEphemeralcontainersRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body) { this.name = name; this.namespace = namespace; this.body = body; @@ -46710,7 +48974,7 @@ private APIreplaceNamespacedPodEphemeralcontainersRequest(String name, String na * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedPodEphemeralcontainersRequest */ - public APIreplaceNamespacedPodEphemeralcontainersRequest pretty(String pretty) { + public APIreplaceNamespacedPodEphemeralcontainersRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -46720,7 +48984,7 @@ public APIreplaceNamespacedPodEphemeralcontainersRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedPodEphemeralcontainersRequest */ - public APIreplaceNamespacedPodEphemeralcontainersRequest dryRun(String dryRun) { + public APIreplaceNamespacedPodEphemeralcontainersRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -46730,7 +48994,7 @@ public APIreplaceNamespacedPodEphemeralcontainersRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedPodEphemeralcontainersRequest */ - public APIreplaceNamespacedPodEphemeralcontainersRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedPodEphemeralcontainersRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -46740,7 +49004,7 @@ public APIreplaceNamespacedPodEphemeralcontainersRequest fieldManager(String fie * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedPodEphemeralcontainersRequest */ - public APIreplaceNamespacedPodEphemeralcontainersRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedPodEphemeralcontainersRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -46751,7 +49015,8 @@ public APIreplaceNamespacedPodEphemeralcontainersRequest fieldValidation(String * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -46767,7 +49032,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -46784,7 +49050,8 @@ public V1Pod execute() throws ApiException { * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -46801,7 +49068,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -46821,17 +49089,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE * @param body (required) * @return APIreplaceNamespacedPodEphemeralcontainersRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedPodEphemeralcontainersRequest replaceNamespacedPodEphemeralcontainers(String name, String namespace, V1Pod body) { + public APIreplaceNamespacedPodEphemeralcontainersRequest replaceNamespacedPodEphemeralcontainers(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body) { return new APIreplaceNamespacedPodEphemeralcontainersRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedPodResizeCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodResizeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -46898,7 +49167,7 @@ private okhttp3.Call replaceNamespacedPodResizeCall(String name, String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedPodResizeValidateBeforeCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodResizeValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPodResize(Async)"); @@ -46919,13 +49188,13 @@ private okhttp3.Call replaceNamespacedPodResizeValidateBeforeCall(String name, S } - private ApiResponse replaceNamespacedPodResizeWithHttpInfo(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedPodResizeWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPodResizeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedPodResizeAsync(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodResizeAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPodResizeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -46934,15 +49203,22 @@ private okhttp3.Call replaceNamespacedPodResizeAsync(String name, String namespa } public class APIreplaceNamespacedPodResizeRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Pod body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedPodResizeRequest(String name, String namespace, V1Pod body) { + private APIreplaceNamespacedPodResizeRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body) { this.name = name; this.namespace = namespace; this.body = body; @@ -46953,7 +49229,7 @@ private APIreplaceNamespacedPodResizeRequest(String name, String namespace, V1Po * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedPodResizeRequest */ - public APIreplaceNamespacedPodResizeRequest pretty(String pretty) { + public APIreplaceNamespacedPodResizeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -46963,7 +49239,7 @@ public APIreplaceNamespacedPodResizeRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedPodResizeRequest */ - public APIreplaceNamespacedPodResizeRequest dryRun(String dryRun) { + public APIreplaceNamespacedPodResizeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -46973,7 +49249,7 @@ public APIreplaceNamespacedPodResizeRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedPodResizeRequest */ - public APIreplaceNamespacedPodResizeRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedPodResizeRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -46983,7 +49259,7 @@ public APIreplaceNamespacedPodResizeRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedPodResizeRequest */ - public APIreplaceNamespacedPodResizeRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedPodResizeRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -46994,7 +49270,8 @@ public APIreplaceNamespacedPodResizeRequest fieldValidation(String fieldValidati * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -47010,7 +49287,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -47027,7 +49305,8 @@ public V1Pod execute() throws ApiException { * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -47044,7 +49323,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -47064,17 +49344,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE * @param body (required) * @return APIreplaceNamespacedPodResizeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedPodResizeRequest replaceNamespacedPodResize(String name, String namespace, V1Pod body) { + public APIreplaceNamespacedPodResizeRequest replaceNamespacedPodResize(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body) { return new APIreplaceNamespacedPodResizeRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedPodStatusCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -47141,7 +49422,7 @@ private okhttp3.Call replaceNamespacedPodStatusCall(String name, String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedPodStatusValidateBeforeCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPodStatus(Async)"); @@ -47162,13 +49443,13 @@ private okhttp3.Call replaceNamespacedPodStatusValidateBeforeCall(String name, S } - private ApiResponse replaceNamespacedPodStatusWithHttpInfo(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedPodStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPodStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedPodStatusAsync(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPodStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -47177,15 +49458,22 @@ private okhttp3.Call replaceNamespacedPodStatusAsync(String name, String namespa } public class APIreplaceNamespacedPodStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Pod body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedPodStatusRequest(String name, String namespace, V1Pod body) { + private APIreplaceNamespacedPodStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body) { this.name = name; this.namespace = namespace; this.body = body; @@ -47196,7 +49484,7 @@ private APIreplaceNamespacedPodStatusRequest(String name, String namespace, V1Po * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedPodStatusRequest */ - public APIreplaceNamespacedPodStatusRequest pretty(String pretty) { + public APIreplaceNamespacedPodStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -47206,7 +49494,7 @@ public APIreplaceNamespacedPodStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedPodStatusRequest */ - public APIreplaceNamespacedPodStatusRequest dryRun(String dryRun) { + public APIreplaceNamespacedPodStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -47216,7 +49504,7 @@ public APIreplaceNamespacedPodStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedPodStatusRequest */ - public APIreplaceNamespacedPodStatusRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedPodStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -47226,7 +49514,7 @@ public APIreplaceNamespacedPodStatusRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedPodStatusRequest */ - public APIreplaceNamespacedPodStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedPodStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -47237,7 +49525,8 @@ public APIreplaceNamespacedPodStatusRequest fieldValidation(String fieldValidati * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -47253,7 +49542,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -47270,7 +49560,8 @@ public V1Pod execute() throws ApiException { * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -47287,7 +49578,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -47307,17 +49599,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE * @param body (required) * @return APIreplaceNamespacedPodStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedPodStatusRequest replaceNamespacedPodStatus(String name, String namespace, V1Pod body) { + public APIreplaceNamespacedPodStatusRequest replaceNamespacedPodStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Pod body) { return new APIreplaceNamespacedPodStatusRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedPodTemplateCall(String name, String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -47384,7 +49677,7 @@ private okhttp3.Call replaceNamespacedPodTemplateCall(String name, String namesp } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedPodTemplateValidateBeforeCall(String name, String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPodTemplate(Async)"); @@ -47405,13 +49698,13 @@ private okhttp3.Call replaceNamespacedPodTemplateValidateBeforeCall(String name, } - private ApiResponse replaceNamespacedPodTemplateWithHttpInfo(String name, String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedPodTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPodTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedPodTemplateAsync(String name, String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPodTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -47420,15 +49713,22 @@ private okhttp3.Call replaceNamespacedPodTemplateAsync(String name, String names } public class APIreplaceNamespacedPodTemplateRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1PodTemplate body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedPodTemplateRequest(String name, String namespace, V1PodTemplate body) { + private APIreplaceNamespacedPodTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodTemplate body) { this.name = name; this.namespace = namespace; this.body = body; @@ -47439,7 +49739,7 @@ private APIreplaceNamespacedPodTemplateRequest(String name, String namespace, V1 * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedPodTemplateRequest */ - public APIreplaceNamespacedPodTemplateRequest pretty(String pretty) { + public APIreplaceNamespacedPodTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -47449,7 +49749,7 @@ public APIreplaceNamespacedPodTemplateRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedPodTemplateRequest */ - public APIreplaceNamespacedPodTemplateRequest dryRun(String dryRun) { + public APIreplaceNamespacedPodTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -47459,7 +49759,7 @@ public APIreplaceNamespacedPodTemplateRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedPodTemplateRequest */ - public APIreplaceNamespacedPodTemplateRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedPodTemplateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -47469,7 +49769,7 @@ public APIreplaceNamespacedPodTemplateRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedPodTemplateRequest */ - public APIreplaceNamespacedPodTemplateRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedPodTemplateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -47480,7 +49780,8 @@ public APIreplaceNamespacedPodTemplateRequest fieldValidation(String fieldValida * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -47496,7 +49797,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PodTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -47513,7 +49815,8 @@ public V1PodTemplate execute() throws ApiException { * @return ApiResponse<V1PodTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -47530,7 +49833,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -47550,17 +49854,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param body (required) * @return APIreplaceNamespacedPodTemplateRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedPodTemplateRequest replaceNamespacedPodTemplate(String name, String namespace, V1PodTemplate body) { + public APIreplaceNamespacedPodTemplateRequest replaceNamespacedPodTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodTemplate body) { return new APIreplaceNamespacedPodTemplateRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedReplicationControllerCall(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedReplicationControllerCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicationController body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -47627,7 +49932,7 @@ private okhttp3.Call replaceNamespacedReplicationControllerCall(String name, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedReplicationControllerValidateBeforeCall(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedReplicationControllerValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicationController body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedReplicationController(Async)"); @@ -47648,13 +49953,13 @@ private okhttp3.Call replaceNamespacedReplicationControllerValidateBeforeCall(St } - private ApiResponse replaceNamespacedReplicationControllerWithHttpInfo(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedReplicationControllerWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicationController body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicationControllerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedReplicationControllerAsync(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedReplicationControllerAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicationController body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicationControllerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -47663,15 +49968,22 @@ private okhttp3.Call replaceNamespacedReplicationControllerAsync(String name, St } public class APIreplaceNamespacedReplicationControllerRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1ReplicationController body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedReplicationControllerRequest(String name, String namespace, V1ReplicationController body) { + private APIreplaceNamespacedReplicationControllerRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicationController body) { this.name = name; this.namespace = namespace; this.body = body; @@ -47682,7 +49994,7 @@ private APIreplaceNamespacedReplicationControllerRequest(String name, String nam * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedReplicationControllerRequest */ - public APIreplaceNamespacedReplicationControllerRequest pretty(String pretty) { + public APIreplaceNamespacedReplicationControllerRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -47692,7 +50004,7 @@ public APIreplaceNamespacedReplicationControllerRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedReplicationControllerRequest */ - public APIreplaceNamespacedReplicationControllerRequest dryRun(String dryRun) { + public APIreplaceNamespacedReplicationControllerRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -47702,7 +50014,7 @@ public APIreplaceNamespacedReplicationControllerRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedReplicationControllerRequest */ - public APIreplaceNamespacedReplicationControllerRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedReplicationControllerRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -47712,7 +50024,7 @@ public APIreplaceNamespacedReplicationControllerRequest fieldManager(String fiel * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedReplicationControllerRequest */ - public APIreplaceNamespacedReplicationControllerRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedReplicationControllerRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -47723,7 +50035,8 @@ public APIreplaceNamespacedReplicationControllerRequest fieldValidation(String f * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -47739,7 +50052,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ReplicationController * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -47756,7 +50070,8 @@ public V1ReplicationController execute() throws ApiException { * @return ApiResponse<V1ReplicationController> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -47773,7 +50088,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExce * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -47793,17 +50109,18 @@ public okhttp3.Call executeAsync(final ApiCallback _cal * @param body (required) * @return APIreplaceNamespacedReplicationControllerRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedReplicationControllerRequest replaceNamespacedReplicationController(String name, String namespace, V1ReplicationController body) { + public APIreplaceNamespacedReplicationControllerRequest replaceNamespacedReplicationController(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicationController body) { return new APIreplaceNamespacedReplicationControllerRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedReplicationControllerScaleCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedReplicationControllerScaleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -47870,7 +50187,7 @@ private okhttp3.Call replaceNamespacedReplicationControllerScaleCall(String name } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedReplicationControllerScaleValidateBeforeCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedReplicationControllerScaleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedReplicationControllerScale(Async)"); @@ -47891,13 +50208,13 @@ private okhttp3.Call replaceNamespacedReplicationControllerScaleValidateBeforeCa } - private ApiResponse replaceNamespacedReplicationControllerScaleWithHttpInfo(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedReplicationControllerScaleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedReplicationControllerScaleAsync(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedReplicationControllerScaleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -47906,15 +50223,22 @@ private okhttp3.Call replaceNamespacedReplicationControllerScaleAsync(String nam } public class APIreplaceNamespacedReplicationControllerScaleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Scale body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedReplicationControllerScaleRequest(String name, String namespace, V1Scale body) { + private APIreplaceNamespacedReplicationControllerScaleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body) { this.name = name; this.namespace = namespace; this.body = body; @@ -47925,7 +50249,7 @@ private APIreplaceNamespacedReplicationControllerScaleRequest(String name, Strin * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedReplicationControllerScaleRequest */ - public APIreplaceNamespacedReplicationControllerScaleRequest pretty(String pretty) { + public APIreplaceNamespacedReplicationControllerScaleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -47935,7 +50259,7 @@ public APIreplaceNamespacedReplicationControllerScaleRequest pretty(String prett * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedReplicationControllerScaleRequest */ - public APIreplaceNamespacedReplicationControllerScaleRequest dryRun(String dryRun) { + public APIreplaceNamespacedReplicationControllerScaleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -47945,7 +50269,7 @@ public APIreplaceNamespacedReplicationControllerScaleRequest dryRun(String dryRu * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedReplicationControllerScaleRequest */ - public APIreplaceNamespacedReplicationControllerScaleRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedReplicationControllerScaleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -47955,7 +50279,7 @@ public APIreplaceNamespacedReplicationControllerScaleRequest fieldManager(String * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedReplicationControllerScaleRequest */ - public APIreplaceNamespacedReplicationControllerScaleRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedReplicationControllerScaleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -47966,7 +50290,8 @@ public APIreplaceNamespacedReplicationControllerScaleRequest fieldValidation(Str * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -47982,7 +50307,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -47999,7 +50325,8 @@ public V1Scale execute() throws ApiException { * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -48016,7 +50343,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -48036,17 +50364,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap * @param body (required) * @return APIreplaceNamespacedReplicationControllerScaleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedReplicationControllerScaleRequest replaceNamespacedReplicationControllerScale(String name, String namespace, V1Scale body) { + public APIreplaceNamespacedReplicationControllerScaleRequest replaceNamespacedReplicationControllerScale(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Scale body) { return new APIreplaceNamespacedReplicationControllerScaleRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedReplicationControllerStatusCall(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedReplicationControllerStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicationController body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -48113,7 +50442,7 @@ private okhttp3.Call replaceNamespacedReplicationControllerStatusCall(String nam } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedReplicationControllerStatusValidateBeforeCall(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedReplicationControllerStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicationController body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedReplicationControllerStatus(Async)"); @@ -48134,13 +50463,13 @@ private okhttp3.Call replaceNamespacedReplicationControllerStatusValidateBeforeC } - private ApiResponse replaceNamespacedReplicationControllerStatusWithHttpInfo(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedReplicationControllerStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicationController body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedReplicationControllerStatusAsync(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedReplicationControllerStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicationController body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -48149,15 +50478,22 @@ private okhttp3.Call replaceNamespacedReplicationControllerStatusAsync(String na } public class APIreplaceNamespacedReplicationControllerStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1ReplicationController body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedReplicationControllerStatusRequest(String name, String namespace, V1ReplicationController body) { + private APIreplaceNamespacedReplicationControllerStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicationController body) { this.name = name; this.namespace = namespace; this.body = body; @@ -48168,7 +50504,7 @@ private APIreplaceNamespacedReplicationControllerStatusRequest(String name, Stri * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedReplicationControllerStatusRequest */ - public APIreplaceNamespacedReplicationControllerStatusRequest pretty(String pretty) { + public APIreplaceNamespacedReplicationControllerStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -48178,7 +50514,7 @@ public APIreplaceNamespacedReplicationControllerStatusRequest pretty(String pret * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedReplicationControllerStatusRequest */ - public APIreplaceNamespacedReplicationControllerStatusRequest dryRun(String dryRun) { + public APIreplaceNamespacedReplicationControllerStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -48188,7 +50524,7 @@ public APIreplaceNamespacedReplicationControllerStatusRequest dryRun(String dryR * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedReplicationControllerStatusRequest */ - public APIreplaceNamespacedReplicationControllerStatusRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedReplicationControllerStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -48198,7 +50534,7 @@ public APIreplaceNamespacedReplicationControllerStatusRequest fieldManager(Strin * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedReplicationControllerStatusRequest */ - public APIreplaceNamespacedReplicationControllerStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedReplicationControllerStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -48209,7 +50545,8 @@ public APIreplaceNamespacedReplicationControllerStatusRequest fieldValidation(St * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -48225,7 +50562,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ReplicationController * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -48242,7 +50580,8 @@ public V1ReplicationController execute() throws ApiException { * @return ApiResponse<V1ReplicationController> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -48259,7 +50598,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExce * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -48279,17 +50619,18 @@ public okhttp3.Call executeAsync(final ApiCallback _cal * @param body (required) * @return APIreplaceNamespacedReplicationControllerStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedReplicationControllerStatusRequest replaceNamespacedReplicationControllerStatus(String name, String namespace, V1ReplicationController body) { + public APIreplaceNamespacedReplicationControllerStatusRequest replaceNamespacedReplicationControllerStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicationController body) { return new APIreplaceNamespacedReplicationControllerStatusRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedResourceQuotaCall(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceQuotaCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceQuota body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -48356,7 +50697,7 @@ private okhttp3.Call replaceNamespacedResourceQuotaCall(String name, String name } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedResourceQuotaValidateBeforeCall(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceQuotaValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceQuota body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceQuota(Async)"); @@ -48377,13 +50718,13 @@ private okhttp3.Call replaceNamespacedResourceQuotaValidateBeforeCall(String nam } - private ApiResponse replaceNamespacedResourceQuotaWithHttpInfo(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedResourceQuotaWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceQuota body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedResourceQuotaValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedResourceQuotaAsync(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceQuotaAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceQuota body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedResourceQuotaValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -48392,15 +50733,22 @@ private okhttp3.Call replaceNamespacedResourceQuotaAsync(String name, String nam } public class APIreplaceNamespacedResourceQuotaRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1ResourceQuota body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedResourceQuotaRequest(String name, String namespace, V1ResourceQuota body) { + private APIreplaceNamespacedResourceQuotaRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceQuota body) { this.name = name; this.namespace = namespace; this.body = body; @@ -48411,7 +50759,7 @@ private APIreplaceNamespacedResourceQuotaRequest(String name, String namespace, * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedResourceQuotaRequest */ - public APIreplaceNamespacedResourceQuotaRequest pretty(String pretty) { + public APIreplaceNamespacedResourceQuotaRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -48421,7 +50769,7 @@ public APIreplaceNamespacedResourceQuotaRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedResourceQuotaRequest */ - public APIreplaceNamespacedResourceQuotaRequest dryRun(String dryRun) { + public APIreplaceNamespacedResourceQuotaRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -48431,7 +50779,7 @@ public APIreplaceNamespacedResourceQuotaRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedResourceQuotaRequest */ - public APIreplaceNamespacedResourceQuotaRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedResourceQuotaRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -48441,7 +50789,7 @@ public APIreplaceNamespacedResourceQuotaRequest fieldManager(String fieldManager * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedResourceQuotaRequest */ - public APIreplaceNamespacedResourceQuotaRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedResourceQuotaRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -48452,7 +50800,8 @@ public APIreplaceNamespacedResourceQuotaRequest fieldValidation(String fieldVali * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -48468,7 +50817,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ResourceQuota * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -48485,7 +50835,8 @@ public V1ResourceQuota execute() throws ApiException { * @return ApiResponse<V1ResourceQuota> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -48502,7 +50853,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -48522,17 +50874,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * @param body (required) * @return APIreplaceNamespacedResourceQuotaRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedResourceQuotaRequest replaceNamespacedResourceQuota(String name, String namespace, V1ResourceQuota body) { + public APIreplaceNamespacedResourceQuotaRequest replaceNamespacedResourceQuota(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceQuota body) { return new APIreplaceNamespacedResourceQuotaRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedResourceQuotaStatusCall(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceQuotaStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceQuota body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -48599,7 +50952,7 @@ private okhttp3.Call replaceNamespacedResourceQuotaStatusCall(String name, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedResourceQuotaStatusValidateBeforeCall(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceQuotaStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceQuota body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceQuotaStatus(Async)"); @@ -48620,13 +50973,13 @@ private okhttp3.Call replaceNamespacedResourceQuotaStatusValidateBeforeCall(Stri } - private ApiResponse replaceNamespacedResourceQuotaStatusWithHttpInfo(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedResourceQuotaStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceQuota body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedResourceQuotaStatusAsync(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceQuotaStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceQuota body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -48635,15 +50988,22 @@ private okhttp3.Call replaceNamespacedResourceQuotaStatusAsync(String name, Stri } public class APIreplaceNamespacedResourceQuotaStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1ResourceQuota body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedResourceQuotaStatusRequest(String name, String namespace, V1ResourceQuota body) { + private APIreplaceNamespacedResourceQuotaStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceQuota body) { this.name = name; this.namespace = namespace; this.body = body; @@ -48654,7 +51014,7 @@ private APIreplaceNamespacedResourceQuotaStatusRequest(String name, String names * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedResourceQuotaStatusRequest */ - public APIreplaceNamespacedResourceQuotaStatusRequest pretty(String pretty) { + public APIreplaceNamespacedResourceQuotaStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -48664,7 +51024,7 @@ public APIreplaceNamespacedResourceQuotaStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedResourceQuotaStatusRequest */ - public APIreplaceNamespacedResourceQuotaStatusRequest dryRun(String dryRun) { + public APIreplaceNamespacedResourceQuotaStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -48674,7 +51034,7 @@ public APIreplaceNamespacedResourceQuotaStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedResourceQuotaStatusRequest */ - public APIreplaceNamespacedResourceQuotaStatusRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedResourceQuotaStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -48684,7 +51044,7 @@ public APIreplaceNamespacedResourceQuotaStatusRequest fieldManager(String fieldM * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedResourceQuotaStatusRequest */ - public APIreplaceNamespacedResourceQuotaStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedResourceQuotaStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -48695,7 +51055,8 @@ public APIreplaceNamespacedResourceQuotaStatusRequest fieldValidation(String fie * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -48711,7 +51072,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ResourceQuota * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -48728,7 +51090,8 @@ public V1ResourceQuota execute() throws ApiException { * @return ApiResponse<V1ResourceQuota> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -48745,7 +51108,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -48765,17 +51129,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * @param body (required) * @return APIreplaceNamespacedResourceQuotaStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedResourceQuotaStatusRequest replaceNamespacedResourceQuotaStatus(String name, String namespace, V1ResourceQuota body) { + public APIreplaceNamespacedResourceQuotaStatusRequest replaceNamespacedResourceQuotaStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceQuota body) { return new APIreplaceNamespacedResourceQuotaStatusRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedSecretCall(String name, String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedSecretCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Secret body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -48842,7 +51207,7 @@ private okhttp3.Call replaceNamespacedSecretCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedSecretValidateBeforeCall(String name, String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedSecretValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Secret body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedSecret(Async)"); @@ -48863,13 +51228,13 @@ private okhttp3.Call replaceNamespacedSecretValidateBeforeCall(String name, Stri } - private ApiResponse replaceNamespacedSecretWithHttpInfo(String name, String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedSecretWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Secret body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedSecretValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedSecretAsync(String name, String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedSecretAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Secret body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedSecretValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -48878,15 +51243,22 @@ private okhttp3.Call replaceNamespacedSecretAsync(String name, String namespace, } public class APIreplaceNamespacedSecretRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Secret body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedSecretRequest(String name, String namespace, V1Secret body) { + private APIreplaceNamespacedSecretRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Secret body) { this.name = name; this.namespace = namespace; this.body = body; @@ -48897,7 +51269,7 @@ private APIreplaceNamespacedSecretRequest(String name, String namespace, V1Secre * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedSecretRequest */ - public APIreplaceNamespacedSecretRequest pretty(String pretty) { + public APIreplaceNamespacedSecretRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -48907,7 +51279,7 @@ public APIreplaceNamespacedSecretRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedSecretRequest */ - public APIreplaceNamespacedSecretRequest dryRun(String dryRun) { + public APIreplaceNamespacedSecretRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -48917,7 +51289,7 @@ public APIreplaceNamespacedSecretRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedSecretRequest */ - public APIreplaceNamespacedSecretRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedSecretRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -48927,7 +51299,7 @@ public APIreplaceNamespacedSecretRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedSecretRequest */ - public APIreplaceNamespacedSecretRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedSecretRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -48938,7 +51310,8 @@ public APIreplaceNamespacedSecretRequest fieldValidation(String fieldValidation) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -48954,7 +51327,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Secret * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -48971,7 +51345,8 @@ public V1Secret execute() throws ApiException { * @return ApiResponse<V1Secret> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -48988,7 +51363,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -49008,17 +51384,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param body (required) * @return APIreplaceNamespacedSecretRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedSecretRequest replaceNamespacedSecret(String name, String namespace, V1Secret body) { + public APIreplaceNamespacedSecretRequest replaceNamespacedSecret(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Secret body) { return new APIreplaceNamespacedSecretRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedServiceCall(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedServiceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Service body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -49085,7 +51462,7 @@ private okhttp3.Call replaceNamespacedServiceCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedServiceValidateBeforeCall(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedServiceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Service body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedService(Async)"); @@ -49106,13 +51483,13 @@ private okhttp3.Call replaceNamespacedServiceValidateBeforeCall(String name, Str } - private ApiResponse replaceNamespacedServiceWithHttpInfo(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedServiceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Service body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedServiceValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedServiceAsync(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedServiceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Service body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedServiceValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -49121,15 +51498,22 @@ private okhttp3.Call replaceNamespacedServiceAsync(String name, String namespace } public class APIreplaceNamespacedServiceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Service body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedServiceRequest(String name, String namespace, V1Service body) { + private APIreplaceNamespacedServiceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Service body) { this.name = name; this.namespace = namespace; this.body = body; @@ -49140,7 +51524,7 @@ private APIreplaceNamespacedServiceRequest(String name, String namespace, V1Serv * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedServiceRequest */ - public APIreplaceNamespacedServiceRequest pretty(String pretty) { + public APIreplaceNamespacedServiceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -49150,7 +51534,7 @@ public APIreplaceNamespacedServiceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedServiceRequest */ - public APIreplaceNamespacedServiceRequest dryRun(String dryRun) { + public APIreplaceNamespacedServiceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -49160,7 +51544,7 @@ public APIreplaceNamespacedServiceRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedServiceRequest */ - public APIreplaceNamespacedServiceRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedServiceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -49170,7 +51554,7 @@ public APIreplaceNamespacedServiceRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedServiceRequest */ - public APIreplaceNamespacedServiceRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedServiceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -49181,7 +51565,8 @@ public APIreplaceNamespacedServiceRequest fieldValidation(String fieldValidation * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -49197,7 +51582,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Service * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -49214,7 +51600,8 @@ public V1Service execute() throws ApiException { * @return ApiResponse<V1Service> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -49231,7 +51618,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -49251,17 +51639,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param body (required) * @return APIreplaceNamespacedServiceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedServiceRequest replaceNamespacedService(String name, String namespace, V1Service body) { + public APIreplaceNamespacedServiceRequest replaceNamespacedService(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Service body) { return new APIreplaceNamespacedServiceRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedServiceAccountCall(String name, String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedServiceAccountCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ServiceAccount body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -49328,7 +51717,7 @@ private okhttp3.Call replaceNamespacedServiceAccountCall(String name, String nam } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedServiceAccountValidateBeforeCall(String name, String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedServiceAccountValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ServiceAccount body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedServiceAccount(Async)"); @@ -49349,13 +51738,13 @@ private okhttp3.Call replaceNamespacedServiceAccountValidateBeforeCall(String na } - private ApiResponse replaceNamespacedServiceAccountWithHttpInfo(String name, String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedServiceAccountWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ServiceAccount body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedServiceAccountValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedServiceAccountAsync(String name, String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedServiceAccountAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ServiceAccount body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedServiceAccountValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -49364,15 +51753,22 @@ private okhttp3.Call replaceNamespacedServiceAccountAsync(String name, String na } public class APIreplaceNamespacedServiceAccountRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1ServiceAccount body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedServiceAccountRequest(String name, String namespace, V1ServiceAccount body) { + private APIreplaceNamespacedServiceAccountRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ServiceAccount body) { this.name = name; this.namespace = namespace; this.body = body; @@ -49383,7 +51779,7 @@ private APIreplaceNamespacedServiceAccountRequest(String name, String namespace, * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedServiceAccountRequest */ - public APIreplaceNamespacedServiceAccountRequest pretty(String pretty) { + public APIreplaceNamespacedServiceAccountRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -49393,7 +51789,7 @@ public APIreplaceNamespacedServiceAccountRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedServiceAccountRequest */ - public APIreplaceNamespacedServiceAccountRequest dryRun(String dryRun) { + public APIreplaceNamespacedServiceAccountRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -49403,7 +51799,7 @@ public APIreplaceNamespacedServiceAccountRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedServiceAccountRequest */ - public APIreplaceNamespacedServiceAccountRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedServiceAccountRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -49413,7 +51809,7 @@ public APIreplaceNamespacedServiceAccountRequest fieldManager(String fieldManage * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedServiceAccountRequest */ - public APIreplaceNamespacedServiceAccountRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedServiceAccountRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -49424,7 +51820,8 @@ public APIreplaceNamespacedServiceAccountRequest fieldValidation(String fieldVal * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -49440,7 +51837,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ServiceAccount * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -49457,7 +51855,8 @@ public V1ServiceAccount execute() throws ApiException { * @return ApiResponse<V1ServiceAccount> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -49474,7 +51873,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -49494,17 +51894,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * @param body (required) * @return APIreplaceNamespacedServiceAccountRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedServiceAccountRequest replaceNamespacedServiceAccount(String name, String namespace, V1ServiceAccount body) { + public APIreplaceNamespacedServiceAccountRequest replaceNamespacedServiceAccount(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ServiceAccount body) { return new APIreplaceNamespacedServiceAccountRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedServiceStatusCall(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedServiceStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Service body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -49571,7 +51972,7 @@ private okhttp3.Call replaceNamespacedServiceStatusCall(String name, String name } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedServiceStatusValidateBeforeCall(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedServiceStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Service body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedServiceStatus(Async)"); @@ -49592,13 +51993,13 @@ private okhttp3.Call replaceNamespacedServiceStatusValidateBeforeCall(String nam } - private ApiResponse replaceNamespacedServiceStatusWithHttpInfo(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedServiceStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Service body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedServiceStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedServiceStatusAsync(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedServiceStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Service body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedServiceStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -49607,15 +52008,22 @@ private okhttp3.Call replaceNamespacedServiceStatusAsync(String name, String nam } public class APIreplaceNamespacedServiceStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Service body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedServiceStatusRequest(String name, String namespace, V1Service body) { + private APIreplaceNamespacedServiceStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Service body) { this.name = name; this.namespace = namespace; this.body = body; @@ -49626,7 +52034,7 @@ private APIreplaceNamespacedServiceStatusRequest(String name, String namespace, * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedServiceStatusRequest */ - public APIreplaceNamespacedServiceStatusRequest pretty(String pretty) { + public APIreplaceNamespacedServiceStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -49636,7 +52044,7 @@ public APIreplaceNamespacedServiceStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedServiceStatusRequest */ - public APIreplaceNamespacedServiceStatusRequest dryRun(String dryRun) { + public APIreplaceNamespacedServiceStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -49646,7 +52054,7 @@ public APIreplaceNamespacedServiceStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedServiceStatusRequest */ - public APIreplaceNamespacedServiceStatusRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedServiceStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -49656,7 +52064,7 @@ public APIreplaceNamespacedServiceStatusRequest fieldManager(String fieldManager * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedServiceStatusRequest */ - public APIreplaceNamespacedServiceStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedServiceStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -49667,7 +52075,8 @@ public APIreplaceNamespacedServiceStatusRequest fieldValidation(String fieldVali * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -49683,7 +52092,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Service * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -49700,7 +52110,8 @@ public V1Service execute() throws ApiException { * @return ApiResponse<V1Service> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -49717,7 +52128,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -49737,17 +52149,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param body (required) * @return APIreplaceNamespacedServiceStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedServiceStatusRequest replaceNamespacedServiceStatus(String name, String namespace, V1Service body) { + public APIreplaceNamespacedServiceStatusRequest replaceNamespacedServiceStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Service body) { return new APIreplaceNamespacedServiceStatusRequest(name, namespace, body); } - private okhttp3.Call replaceNodeCall(String name, V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNodeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Node body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -49813,7 +52226,7 @@ private okhttp3.Call replaceNodeCall(String name, V1Node body, String pretty, St } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNodeValidateBeforeCall(String name, V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNodeValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Node body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNode(Async)"); @@ -49829,13 +52242,13 @@ private okhttp3.Call replaceNodeValidateBeforeCall(String name, V1Node body, Str } - private ApiResponse replaceNodeWithHttpInfo(String name, V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNodeWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Node body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNodeAsync(String name, V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNodeAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Node body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -49844,14 +52257,20 @@ private okhttp3.Call replaceNodeAsync(String name, V1Node body, String pretty, S } public class APIreplaceNodeRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Node body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNodeRequest(String name, V1Node body) { + private APIreplaceNodeRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Node body) { this.name = name; this.body = body; } @@ -49861,7 +52280,7 @@ private APIreplaceNodeRequest(String name, V1Node body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNodeRequest */ - public APIreplaceNodeRequest pretty(String pretty) { + public APIreplaceNodeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -49871,7 +52290,7 @@ public APIreplaceNodeRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNodeRequest */ - public APIreplaceNodeRequest dryRun(String dryRun) { + public APIreplaceNodeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -49881,7 +52300,7 @@ public APIreplaceNodeRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNodeRequest */ - public APIreplaceNodeRequest fieldManager(String fieldManager) { + public APIreplaceNodeRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -49891,7 +52310,7 @@ public APIreplaceNodeRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNodeRequest */ - public APIreplaceNodeRequest fieldValidation(String fieldValidation) { + public APIreplaceNodeRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -49902,7 +52321,8 @@ public APIreplaceNodeRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -49918,7 +52338,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Node * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -49935,7 +52356,8 @@ public V1Node execute() throws ApiException { * @return ApiResponse<V1Node> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -49952,7 +52374,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -49971,17 +52394,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param body (required) * @return APIreplaceNodeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNodeRequest replaceNode(String name, V1Node body) { + public APIreplaceNodeRequest replaceNode(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Node body) { return new APIreplaceNodeRequest(name, body); } - private okhttp3.Call replaceNodeStatusCall(String name, V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNodeStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Node body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -50047,7 +52471,7 @@ private okhttp3.Call replaceNodeStatusCall(String name, V1Node body, String pret } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNodeStatusValidateBeforeCall(String name, V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNodeStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Node body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNodeStatus(Async)"); @@ -50063,13 +52487,13 @@ private okhttp3.Call replaceNodeStatusValidateBeforeCall(String name, V1Node bod } - private ApiResponse replaceNodeStatusWithHttpInfo(String name, V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNodeStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Node body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNodeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNodeStatusAsync(String name, V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNodeStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Node body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNodeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -50078,14 +52502,20 @@ private okhttp3.Call replaceNodeStatusAsync(String name, V1Node body, String pre } public class APIreplaceNodeStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Node body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNodeStatusRequest(String name, V1Node body) { + private APIreplaceNodeStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Node body) { this.name = name; this.body = body; } @@ -50095,7 +52525,7 @@ private APIreplaceNodeStatusRequest(String name, V1Node body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNodeStatusRequest */ - public APIreplaceNodeStatusRequest pretty(String pretty) { + public APIreplaceNodeStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -50105,7 +52535,7 @@ public APIreplaceNodeStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNodeStatusRequest */ - public APIreplaceNodeStatusRequest dryRun(String dryRun) { + public APIreplaceNodeStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -50115,7 +52545,7 @@ public APIreplaceNodeStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNodeStatusRequest */ - public APIreplaceNodeStatusRequest fieldManager(String fieldManager) { + public APIreplaceNodeStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -50125,7 +52555,7 @@ public APIreplaceNodeStatusRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNodeStatusRequest */ - public APIreplaceNodeStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceNodeStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -50136,7 +52566,8 @@ public APIreplaceNodeStatusRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -50152,7 +52583,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Node * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -50169,7 +52601,8 @@ public V1Node execute() throws ApiException { * @return ApiResponse<V1Node> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -50186,7 +52619,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -50205,17 +52639,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param body (required) * @return APIreplaceNodeStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNodeStatusRequest replaceNodeStatus(String name, V1Node body) { + public APIreplaceNodeStatusRequest replaceNodeStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Node body) { return new APIreplaceNodeStatusRequest(name, body); } - private okhttp3.Call replacePersistentVolumeCall(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replacePersistentVolumeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PersistentVolume body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -50281,7 +52716,7 @@ private okhttp3.Call replacePersistentVolumeCall(String name, V1PersistentVolume } @SuppressWarnings("rawtypes") - private okhttp3.Call replacePersistentVolumeValidateBeforeCall(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replacePersistentVolumeValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PersistentVolume body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replacePersistentVolume(Async)"); @@ -50297,13 +52732,13 @@ private okhttp3.Call replacePersistentVolumeValidateBeforeCall(String name, V1Pe } - private ApiResponse replacePersistentVolumeWithHttpInfo(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replacePersistentVolumeWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PersistentVolume body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replacePersistentVolumeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replacePersistentVolumeAsync(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replacePersistentVolumeAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PersistentVolume body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replacePersistentVolumeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -50312,14 +52747,20 @@ private okhttp3.Call replacePersistentVolumeAsync(String name, V1PersistentVolum } public class APIreplacePersistentVolumeRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1PersistentVolume body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplacePersistentVolumeRequest(String name, V1PersistentVolume body) { + private APIreplacePersistentVolumeRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PersistentVolume body) { this.name = name; this.body = body; } @@ -50329,7 +52770,7 @@ private APIreplacePersistentVolumeRequest(String name, V1PersistentVolume body) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplacePersistentVolumeRequest */ - public APIreplacePersistentVolumeRequest pretty(String pretty) { + public APIreplacePersistentVolumeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -50339,7 +52780,7 @@ public APIreplacePersistentVolumeRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplacePersistentVolumeRequest */ - public APIreplacePersistentVolumeRequest dryRun(String dryRun) { + public APIreplacePersistentVolumeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -50349,7 +52790,7 @@ public APIreplacePersistentVolumeRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplacePersistentVolumeRequest */ - public APIreplacePersistentVolumeRequest fieldManager(String fieldManager) { + public APIreplacePersistentVolumeRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -50359,7 +52800,7 @@ public APIreplacePersistentVolumeRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplacePersistentVolumeRequest */ - public APIreplacePersistentVolumeRequest fieldValidation(String fieldValidation) { + public APIreplacePersistentVolumeRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -50370,7 +52811,8 @@ public APIreplacePersistentVolumeRequest fieldValidation(String fieldValidation) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -50386,7 +52828,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PersistentVolume * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -50403,7 +52846,8 @@ public V1PersistentVolume execute() throws ApiException { * @return ApiResponse<V1PersistentVolume> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -50420,7 +52864,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -50439,17 +52884,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param body (required) * @return APIreplacePersistentVolumeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplacePersistentVolumeRequest replacePersistentVolume(String name, V1PersistentVolume body) { + public APIreplacePersistentVolumeRequest replacePersistentVolume(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PersistentVolume body) { return new APIreplacePersistentVolumeRequest(name, body); } - private okhttp3.Call replacePersistentVolumeStatusCall(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replacePersistentVolumeStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PersistentVolume body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -50515,7 +52961,7 @@ private okhttp3.Call replacePersistentVolumeStatusCall(String name, V1Persistent } @SuppressWarnings("rawtypes") - private okhttp3.Call replacePersistentVolumeStatusValidateBeforeCall(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replacePersistentVolumeStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PersistentVolume body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replacePersistentVolumeStatus(Async)"); @@ -50531,13 +52977,13 @@ private okhttp3.Call replacePersistentVolumeStatusValidateBeforeCall(String name } - private ApiResponse replacePersistentVolumeStatusWithHttpInfo(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replacePersistentVolumeStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PersistentVolume body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replacePersistentVolumeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replacePersistentVolumeStatusAsync(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replacePersistentVolumeStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PersistentVolume body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replacePersistentVolumeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -50546,14 +52992,20 @@ private okhttp3.Call replacePersistentVolumeStatusAsync(String name, V1Persisten } public class APIreplacePersistentVolumeStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1PersistentVolume body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplacePersistentVolumeStatusRequest(String name, V1PersistentVolume body) { + private APIreplacePersistentVolumeStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PersistentVolume body) { this.name = name; this.body = body; } @@ -50563,7 +53015,7 @@ private APIreplacePersistentVolumeStatusRequest(String name, V1PersistentVolume * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplacePersistentVolumeStatusRequest */ - public APIreplacePersistentVolumeStatusRequest pretty(String pretty) { + public APIreplacePersistentVolumeStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -50573,7 +53025,7 @@ public APIreplacePersistentVolumeStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplacePersistentVolumeStatusRequest */ - public APIreplacePersistentVolumeStatusRequest dryRun(String dryRun) { + public APIreplacePersistentVolumeStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -50583,7 +53035,7 @@ public APIreplacePersistentVolumeStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplacePersistentVolumeStatusRequest */ - public APIreplacePersistentVolumeStatusRequest fieldManager(String fieldManager) { + public APIreplacePersistentVolumeStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -50593,7 +53045,7 @@ public APIreplacePersistentVolumeStatusRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplacePersistentVolumeStatusRequest */ - public APIreplacePersistentVolumeStatusRequest fieldValidation(String fieldValidation) { + public APIreplacePersistentVolumeStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -50604,7 +53056,8 @@ public APIreplacePersistentVolumeStatusRequest fieldValidation(String fieldValid * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -50620,7 +53073,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PersistentVolume * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -50637,7 +53091,8 @@ public V1PersistentVolume execute() throws ApiException { * @return ApiResponse<V1PersistentVolume> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -50654,7 +53109,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -50673,14 +53129,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param body (required) * @return APIreplacePersistentVolumeStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplacePersistentVolumeStatusRequest replacePersistentVolumeStatus(String name, V1PersistentVolume body) { + public APIreplacePersistentVolumeStatusRequest replacePersistentVolumeStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PersistentVolume body) { return new APIreplacePersistentVolumeStatusRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CustomObjectsApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CustomObjectsApi.java index 536844904a..8cda5462f9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CustomObjectsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CustomObjectsApi.java @@ -72,7 +72,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createClusterCustomObjectCall(String group, String version, String plural, Object body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createClusterCustomObjectCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -137,7 +137,7 @@ private okhttp3.Call createClusterCustomObjectCall(String group, String version, } @SuppressWarnings("rawtypes") - private okhttp3.Call createClusterCustomObjectValidateBeforeCall(String group, String version, String plural, Object body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createClusterCustomObjectValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling createClusterCustomObject(Async)"); @@ -163,13 +163,13 @@ private okhttp3.Call createClusterCustomObjectValidateBeforeCall(String group, S } - private ApiResponse createClusterCustomObjectWithHttpInfo(String group, String version, String plural, Object body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createClusterCustomObjectWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createClusterCustomObjectValidateBeforeCall(group, version, plural, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createClusterCustomObjectAsync(String group, String version, String plural, Object body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createClusterCustomObjectAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createClusterCustomObjectValidateBeforeCall(group, version, plural, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -178,16 +178,24 @@ private okhttp3.Call createClusterCustomObjectAsync(String group, String version } public class APIcreateClusterCustomObjectRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nonnull private final Object body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateClusterCustomObjectRequest(String group, String version, String plural, Object body) { + private APIcreateClusterCustomObjectRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull Object body) { this.group = group; this.version = version; this.plural = plural; @@ -199,7 +207,7 @@ private APIcreateClusterCustomObjectRequest(String group, String version, String * @param pretty If 'true', then the output is pretty printed. (optional) * @return APIcreateClusterCustomObjectRequest */ - public APIcreateClusterCustomObjectRequest pretty(String pretty) { + public APIcreateClusterCustomObjectRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -209,7 +217,7 @@ public APIcreateClusterCustomObjectRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateClusterCustomObjectRequest */ - public APIcreateClusterCustomObjectRequest dryRun(String dryRun) { + public APIcreateClusterCustomObjectRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -219,7 +227,7 @@ public APIcreateClusterCustomObjectRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIcreateClusterCustomObjectRequest */ - public APIcreateClusterCustomObjectRequest fieldManager(String fieldManager) { + public APIcreateClusterCustomObjectRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -229,7 +237,7 @@ public APIcreateClusterCustomObjectRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return APIcreateClusterCustomObjectRequest */ - public APIcreateClusterCustomObjectRequest fieldValidation(String fieldValidation) { + public APIcreateClusterCustomObjectRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -240,7 +248,8 @@ public APIcreateClusterCustomObjectRequest fieldValidation(String fieldValidatio * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -255,7 +264,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
201 Created -
401 Unauthorized -
+
+ @@ -271,7 +281,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
201 Created -
401 Unauthorized -
+
+ @@ -287,7 +298,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
201 Created -
401 Unauthorized -
+
+ @@ -307,16 +319,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param body The JSON schema of the Resource to create. (required) * @return APIcreateClusterCustomObjectRequest * @http.response.details -
Response Details
Status Code Description Response Headers
201 Created -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
201 Created -
401 Unauthorized -
*/ - public APIcreateClusterCustomObjectRequest createClusterCustomObject(String group, String version, String plural, Object body) { + public APIcreateClusterCustomObjectRequest createClusterCustomObject(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull Object body) { return new APIcreateClusterCustomObjectRequest(group, version, plural, body); } - private okhttp3.Call createNamespacedCustomObjectCall(String group, String version, String namespace, String plural, Object body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedCustomObjectCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -382,7 +395,7 @@ private okhttp3.Call createNamespacedCustomObjectCall(String group, String versi } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, Object body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedCustomObjectValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling createNamespacedCustomObject(Async)"); @@ -413,13 +426,13 @@ private okhttp3.Call createNamespacedCustomObjectValidateBeforeCall(String group } - private ApiResponse createNamespacedCustomObjectWithHttpInfo(String group, String version, String namespace, String plural, Object body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedCustomObjectWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, Object body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedCustomObjectAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -428,17 +441,26 @@ private okhttp3.Call createNamespacedCustomObjectAsync(String group, String vers } public class APIcreateNamespacedCustomObjectRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nonnull private final Object body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedCustomObjectRequest(String group, String version, String namespace, String plural, Object body) { + private APIcreateNamespacedCustomObjectRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull Object body) { this.group = group; this.version = version; this.namespace = namespace; @@ -451,7 +473,7 @@ private APIcreateNamespacedCustomObjectRequest(String group, String version, Str * @param pretty If 'true', then the output is pretty printed. (optional) * @return APIcreateNamespacedCustomObjectRequest */ - public APIcreateNamespacedCustomObjectRequest pretty(String pretty) { + public APIcreateNamespacedCustomObjectRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -461,7 +483,7 @@ public APIcreateNamespacedCustomObjectRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedCustomObjectRequest */ - public APIcreateNamespacedCustomObjectRequest dryRun(String dryRun) { + public APIcreateNamespacedCustomObjectRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -471,7 +493,7 @@ public APIcreateNamespacedCustomObjectRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedCustomObjectRequest */ - public APIcreateNamespacedCustomObjectRequest fieldManager(String fieldManager) { + public APIcreateNamespacedCustomObjectRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -481,7 +503,7 @@ public APIcreateNamespacedCustomObjectRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return APIcreateNamespacedCustomObjectRequest */ - public APIcreateNamespacedCustomObjectRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedCustomObjectRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -492,7 +514,8 @@ public APIcreateNamespacedCustomObjectRequest fieldValidation(String fieldValida * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -507,7 +530,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
201 Created -
401 Unauthorized -
+
+ @@ -523,7 +547,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
201 Created -
401 Unauthorized -
+
+ @@ -539,7 +564,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
201 Created -
401 Unauthorized -
+
+ @@ -560,16 +586,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param body The JSON schema of the Resource to create. (required) * @return APIcreateNamespacedCustomObjectRequest * @http.response.details -
Response Details
Status Code Description Response Headers
201 Created -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedCustomObjectRequest createNamespacedCustomObject(String group, String version, String namespace, String plural, Object body) { + public APIcreateNamespacedCustomObjectRequest createNamespacedCustomObject(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull Object body) { return new APIcreateNamespacedCustomObjectRequest(group, version, namespace, plural, body); } - private okhttp3.Call deleteClusterCustomObjectCall(String group, String version, String plural, String name, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteClusterCustomObjectCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -635,7 +662,7 @@ private okhttp3.Call deleteClusterCustomObjectCall(String group, String version, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String name, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteClusterCustomObjectValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling deleteClusterCustomObject(Async)"); @@ -661,13 +688,13 @@ private okhttp3.Call deleteClusterCustomObjectValidateBeforeCall(String group, S } - private ApiResponse deleteClusterCustomObjectWithHttpInfo(String group, String version, String plural, String name, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteClusterCustomObjectWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteClusterCustomObjectValidateBeforeCall(group, version, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteClusterCustomObjectAsync(String group, String version, String plural, String name, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteClusterCustomObjectAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteClusterCustomObjectValidateBeforeCall(group, version, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -676,17 +703,26 @@ private okhttp3.Call deleteClusterCustomObjectAsync(String group, String version } public class APIdeleteClusterCustomObjectRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteClusterCustomObjectRequest(String group, String version, String plural, String name) { + private APIdeleteClusterCustomObjectRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name) { this.group = group; this.version = version; this.plural = plural; @@ -698,7 +734,7 @@ private APIdeleteClusterCustomObjectRequest(String group, String version, String * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteClusterCustomObjectRequest */ - public APIdeleteClusterCustomObjectRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteClusterCustomObjectRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -708,7 +744,7 @@ public APIdeleteClusterCustomObjectRequest gracePeriodSeconds(Integer gracePerio * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteClusterCustomObjectRequest */ - public APIdeleteClusterCustomObjectRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteClusterCustomObjectRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -718,7 +754,7 @@ public APIdeleteClusterCustomObjectRequest orphanDependents(Boolean orphanDepend * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) * @return APIdeleteClusterCustomObjectRequest */ - public APIdeleteClusterCustomObjectRequest propagationPolicy(String propagationPolicy) { + public APIdeleteClusterCustomObjectRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -728,7 +764,7 @@ public APIdeleteClusterCustomObjectRequest propagationPolicy(String propagationP * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteClusterCustomObjectRequest */ - public APIdeleteClusterCustomObjectRequest dryRun(String dryRun) { + public APIdeleteClusterCustomObjectRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -738,7 +774,7 @@ public APIdeleteClusterCustomObjectRequest dryRun(String dryRun) { * @param body (optional) * @return APIdeleteClusterCustomObjectRequest */ - public APIdeleteClusterCustomObjectRequest body(V1DeleteOptions body) { + public APIdeleteClusterCustomObjectRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -749,7 +785,8 @@ public APIdeleteClusterCustomObjectRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -764,7 +801,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -780,7 +818,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -796,7 +835,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -816,16 +856,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param name the custom object's name (required) * @return APIdeleteClusterCustomObjectRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteClusterCustomObjectRequest deleteClusterCustomObject(String group, String version, String plural, String name) { + public APIdeleteClusterCustomObjectRequest deleteClusterCustomObject(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name) { return new APIdeleteClusterCustomObjectRequest(group, version, plural, name); } - private okhttp3.Call deleteCollectionClusterCustomObjectCall(String group, String version, String plural, String pretty, String labelSelector, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterCustomObjectCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -898,7 +939,7 @@ private okhttp3.Call deleteCollectionClusterCustomObjectCall(String group, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String pretty, String labelSelector, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterCustomObjectValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling deleteCollectionClusterCustomObject(Async)"); @@ -919,13 +960,13 @@ private okhttp3.Call deleteCollectionClusterCustomObjectValidateBeforeCall(Strin } - private ApiResponse deleteCollectionClusterCustomObjectWithHttpInfo(String group, String version, String plural, String pretty, String labelSelector, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionClusterCustomObjectWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionClusterCustomObjectValidateBeforeCall(group, version, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionClusterCustomObjectAsync(String group, String version, String plural, String pretty, String labelSelector, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterCustomObjectAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionClusterCustomObjectValidateBeforeCall(group, version, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -934,18 +975,28 @@ private okhttp3.Call deleteCollectionClusterCustomObjectAsync(String group, Stri } public class APIdeleteCollectionClusterCustomObjectRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionClusterCustomObjectRequest(String group, String version, String plural) { + private APIdeleteCollectionClusterCustomObjectRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural) { this.group = group; this.version = version; this.plural = plural; @@ -956,7 +1007,7 @@ private APIdeleteCollectionClusterCustomObjectRequest(String group, String versi * @param pretty If 'true', then the output is pretty printed. (optional) * @return APIdeleteCollectionClusterCustomObjectRequest */ - public APIdeleteCollectionClusterCustomObjectRequest pretty(String pretty) { + public APIdeleteCollectionClusterCustomObjectRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -966,7 +1017,7 @@ public APIdeleteCollectionClusterCustomObjectRequest pretty(String pretty) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionClusterCustomObjectRequest */ - public APIdeleteCollectionClusterCustomObjectRequest labelSelector(String labelSelector) { + public APIdeleteCollectionClusterCustomObjectRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -976,7 +1027,7 @@ public APIdeleteCollectionClusterCustomObjectRequest labelSelector(String labelS * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionClusterCustomObjectRequest */ - public APIdeleteCollectionClusterCustomObjectRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionClusterCustomObjectRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -986,7 +1037,7 @@ public APIdeleteCollectionClusterCustomObjectRequest gracePeriodSeconds(Integer * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionClusterCustomObjectRequest */ - public APIdeleteCollectionClusterCustomObjectRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionClusterCustomObjectRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -996,7 +1047,7 @@ public APIdeleteCollectionClusterCustomObjectRequest orphanDependents(Boolean or * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) * @return APIdeleteCollectionClusterCustomObjectRequest */ - public APIdeleteCollectionClusterCustomObjectRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionClusterCustomObjectRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1006,7 +1057,7 @@ public APIdeleteCollectionClusterCustomObjectRequest propagationPolicy(String pr * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionClusterCustomObjectRequest */ - public APIdeleteCollectionClusterCustomObjectRequest dryRun(String dryRun) { + public APIdeleteCollectionClusterCustomObjectRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1016,7 +1067,7 @@ public APIdeleteCollectionClusterCustomObjectRequest dryRun(String dryRun) { * @param body (optional) * @return APIdeleteCollectionClusterCustomObjectRequest */ - public APIdeleteCollectionClusterCustomObjectRequest body(V1DeleteOptions body) { + public APIdeleteCollectionClusterCustomObjectRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1027,7 +1078,8 @@ public APIdeleteCollectionClusterCustomObjectRequest body(V1DeleteOptions body) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1042,7 +1094,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1058,7 +1111,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1074,7 +1128,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1093,16 +1148,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @return APIdeleteCollectionClusterCustomObjectRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionClusterCustomObjectRequest deleteCollectionClusterCustomObject(String group, String version, String plural) { + public APIdeleteCollectionClusterCustomObjectRequest deleteCollectionClusterCustomObject(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural) { return new APIdeleteCollectionClusterCustomObjectRequest(group, version, plural); } - private okhttp3.Call deleteCollectionNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String pretty, String labelSelector, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, String fieldSelector, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedCustomObjectCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1180,7 +1236,7 @@ private okhttp3.Call deleteCollectionNamespacedCustomObjectCall(String group, St } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String pretty, String labelSelector, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, String fieldSelector, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedCustomObjectValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling deleteCollectionNamespacedCustomObject(Async)"); @@ -1206,13 +1262,13 @@ private okhttp3.Call deleteCollectionNamespacedCustomObjectValidateBeforeCall(St } - private ApiResponse deleteCollectionNamespacedCustomObjectWithHttpInfo(String group, String version, String namespace, String plural, String pretty, String labelSelector, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, String fieldSelector, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedCustomObjectWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, fieldSelector, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String pretty, String labelSelector, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, String fieldSelector, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedCustomObjectAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, fieldSelector, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1221,20 +1277,32 @@ private okhttp3.Call deleteCollectionNamespacedCustomObjectAsync(String group, S } public class APIdeleteCollectionNamespacedCustomObjectRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedCustomObjectRequest(String group, String version, String namespace, String plural) { + private APIdeleteCollectionNamespacedCustomObjectRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural) { this.group = group; this.version = version; this.namespace = namespace; @@ -1246,7 +1314,7 @@ private APIdeleteCollectionNamespacedCustomObjectRequest(String group, String ve * @param pretty If 'true', then the output is pretty printed. (optional) * @return APIdeleteCollectionNamespacedCustomObjectRequest */ - public APIdeleteCollectionNamespacedCustomObjectRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedCustomObjectRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1256,7 +1324,7 @@ public APIdeleteCollectionNamespacedCustomObjectRequest pretty(String pretty) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedCustomObjectRequest */ - public APIdeleteCollectionNamespacedCustomObjectRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedCustomObjectRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1266,7 +1334,7 @@ public APIdeleteCollectionNamespacedCustomObjectRequest labelSelector(String lab * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedCustomObjectRequest */ - public APIdeleteCollectionNamespacedCustomObjectRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedCustomObjectRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1276,7 +1344,7 @@ public APIdeleteCollectionNamespacedCustomObjectRequest gracePeriodSeconds(Integ * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedCustomObjectRequest */ - public APIdeleteCollectionNamespacedCustomObjectRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedCustomObjectRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1286,7 +1354,7 @@ public APIdeleteCollectionNamespacedCustomObjectRequest orphanDependents(Boolean * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) * @return APIdeleteCollectionNamespacedCustomObjectRequest */ - public APIdeleteCollectionNamespacedCustomObjectRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedCustomObjectRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1296,7 +1364,7 @@ public APIdeleteCollectionNamespacedCustomObjectRequest propagationPolicy(String * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedCustomObjectRequest */ - public APIdeleteCollectionNamespacedCustomObjectRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedCustomObjectRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1306,7 +1374,7 @@ public APIdeleteCollectionNamespacedCustomObjectRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedCustomObjectRequest */ - public APIdeleteCollectionNamespacedCustomObjectRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedCustomObjectRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1316,7 +1384,7 @@ public APIdeleteCollectionNamespacedCustomObjectRequest fieldSelector(String fie * @param body (optional) * @return APIdeleteCollectionNamespacedCustomObjectRequest */ - public APIdeleteCollectionNamespacedCustomObjectRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedCustomObjectRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1327,7 +1395,8 @@ public APIdeleteCollectionNamespacedCustomObjectRequest body(V1DeleteOptions bod * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1342,7 +1411,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1358,7 +1428,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1374,7 +1445,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1394,16 +1466,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @return APIdeleteCollectionNamespacedCustomObjectRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedCustomObjectRequest deleteCollectionNamespacedCustomObject(String group, String version, String namespace, String plural) { + public APIdeleteCollectionNamespacedCustomObjectRequest deleteCollectionNamespacedCustomObject(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural) { return new APIdeleteCollectionNamespacedCustomObjectRequest(group, version, namespace, plural); } - private okhttp3.Call deleteNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String name, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedCustomObjectCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1470,7 +1543,7 @@ private okhttp3.Call deleteNamespacedCustomObjectCall(String group, String versi } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String name, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedCustomObjectValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling deleteNamespacedCustomObject(Async)"); @@ -1501,13 +1574,13 @@ private okhttp3.Call deleteNamespacedCustomObjectValidateBeforeCall(String group } - private ApiResponse deleteNamespacedCustomObjectWithHttpInfo(String group, String version, String namespace, String plural, String name, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedCustomObjectWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String name, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedCustomObjectAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1516,18 +1589,28 @@ private okhttp3.Call deleteNamespacedCustomObjectAsync(String group, String vers } public class APIdeleteNamespacedCustomObjectRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedCustomObjectRequest(String group, String version, String namespace, String plural, String name) { + private APIdeleteNamespacedCustomObjectRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name) { this.group = group; this.version = version; this.namespace = namespace; @@ -1540,7 +1623,7 @@ private APIdeleteNamespacedCustomObjectRequest(String group, String version, Str * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedCustomObjectRequest */ - public APIdeleteNamespacedCustomObjectRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedCustomObjectRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1550,7 +1633,7 @@ public APIdeleteNamespacedCustomObjectRequest gracePeriodSeconds(Integer gracePe * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedCustomObjectRequest */ - public APIdeleteNamespacedCustomObjectRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedCustomObjectRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1560,7 +1643,7 @@ public APIdeleteNamespacedCustomObjectRequest orphanDependents(Boolean orphanDep * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) * @return APIdeleteNamespacedCustomObjectRequest */ - public APIdeleteNamespacedCustomObjectRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedCustomObjectRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1570,7 +1653,7 @@ public APIdeleteNamespacedCustomObjectRequest propagationPolicy(String propagati * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedCustomObjectRequest */ - public APIdeleteNamespacedCustomObjectRequest dryRun(String dryRun) { + public APIdeleteNamespacedCustomObjectRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1580,7 +1663,7 @@ public APIdeleteNamespacedCustomObjectRequest dryRun(String dryRun) { * @param body (optional) * @return APIdeleteNamespacedCustomObjectRequest */ - public APIdeleteNamespacedCustomObjectRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedCustomObjectRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1591,7 +1674,8 @@ public APIdeleteNamespacedCustomObjectRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1606,7 +1690,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1622,7 +1707,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1638,7 +1724,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1659,16 +1746,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param name the custom object's name (required) * @return APIdeleteNamespacedCustomObjectRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteNamespacedCustomObjectRequest deleteNamespacedCustomObject(String group, String version, String namespace, String plural, String name) { + public APIdeleteNamespacedCustomObjectRequest deleteNamespacedCustomObject(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name) { return new APIdeleteNamespacedCustomObjectRequest(group, version, namespace, plural, name); } - private okhttp3.Call getAPIResourcesCall(String group, String version, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAPIResourcesCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1715,7 +1803,7 @@ private okhttp3.Call getAPIResourcesCall(String group, String version, final Api } @SuppressWarnings("rawtypes") - private okhttp3.Call getAPIResourcesValidateBeforeCall(String group, String version, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAPIResourcesValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling getAPIResources(Async)"); @@ -1731,13 +1819,13 @@ private okhttp3.Call getAPIResourcesValidateBeforeCall(String group, String vers } - private ApiResponse getAPIResourcesWithHttpInfo(String group, String version) throws ApiException { + private ApiResponse getAPIResourcesWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version) throws ApiException { okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(group, version, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getAPIResourcesAsync(String group, String version, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAPIResourcesAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(group, version, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1746,10 +1834,12 @@ private okhttp3.Call getAPIResourcesAsync(String group, String version, final Ap } public class APIgetAPIResourcesRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; - private APIgetAPIResourcesRequest(String group, String version) { + private APIgetAPIResourcesRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version) { this.group = group; this.version = version; } @@ -1760,7 +1850,8 @@ private APIgetAPIResourcesRequest(String group, String version) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1775,7 +1866,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1791,7 +1883,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1807,7 +1900,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1825,16 +1919,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * @param version The custom resource's version (required) * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIgetAPIResourcesRequest getAPIResources(String group, String version) { + public APIgetAPIResourcesRequest getAPIResources(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version) { return new APIgetAPIResourcesRequest(group, version); } - private okhttp3.Call getClusterCustomObjectCall(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getClusterCustomObjectCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1883,7 +1978,7 @@ private okhttp3.Call getClusterCustomObjectCall(String group, String version, St } @SuppressWarnings("rawtypes") - private okhttp3.Call getClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getClusterCustomObjectValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling getClusterCustomObject(Async)"); @@ -1909,13 +2004,13 @@ private okhttp3.Call getClusterCustomObjectValidateBeforeCall(String group, Stri } - private ApiResponse getClusterCustomObjectWithHttpInfo(String group, String version, String plural, String name) throws ApiException { + private ApiResponse getClusterCustomObjectWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name) throws ApiException { okhttp3.Call localVarCall = getClusterCustomObjectValidateBeforeCall(group, version, plural, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getClusterCustomObjectAsync(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getClusterCustomObjectAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getClusterCustomObjectValidateBeforeCall(group, version, plural, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1924,12 +2019,16 @@ private okhttp3.Call getClusterCustomObjectAsync(String group, String version, S } public class APIgetClusterCustomObjectRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nonnull private final String name; - private APIgetClusterCustomObjectRequest(String group, String version, String plural, String name) { + private APIgetClusterCustomObjectRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name) { this.group = group; this.version = version; this.plural = plural; @@ -1942,7 +2041,8 @@ private APIgetClusterCustomObjectRequest(String group, String version, String pl * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1957,7 +2057,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 A single Resource -
401 Unauthorized -
+
+ @@ -1973,7 +2074,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 A single Resource -
401 Unauthorized -
+
+ @@ -1989,7 +2091,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 A single Resource -
401 Unauthorized -
+
+ @@ -2009,16 +2112,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param name the custom object's name (required) * @return APIgetClusterCustomObjectRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 A single Resource -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 A single Resource -
401 Unauthorized -
*/ - public APIgetClusterCustomObjectRequest getClusterCustomObject(String group, String version, String plural, String name) { + public APIgetClusterCustomObjectRequest getClusterCustomObject(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name) { return new APIgetClusterCustomObjectRequest(group, version, plural, name); } - private okhttp3.Call getClusterCustomObjectScaleCall(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getClusterCustomObjectScaleCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2069,7 +2173,7 @@ private okhttp3.Call getClusterCustomObjectScaleCall(String group, String versio } @SuppressWarnings("rawtypes") - private okhttp3.Call getClusterCustomObjectScaleValidateBeforeCall(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getClusterCustomObjectScaleValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling getClusterCustomObjectScale(Async)"); @@ -2095,13 +2199,13 @@ private okhttp3.Call getClusterCustomObjectScaleValidateBeforeCall(String group, } - private ApiResponse getClusterCustomObjectScaleWithHttpInfo(String group, String version, String plural, String name) throws ApiException { + private ApiResponse getClusterCustomObjectScaleWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name) throws ApiException { okhttp3.Call localVarCall = getClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getClusterCustomObjectScaleAsync(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getClusterCustomObjectScaleAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2110,12 +2214,16 @@ private okhttp3.Call getClusterCustomObjectScaleAsync(String group, String versi } public class APIgetClusterCustomObjectScaleRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nonnull private final String name; - private APIgetClusterCustomObjectScaleRequest(String group, String version, String plural, String name) { + private APIgetClusterCustomObjectScaleRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name) { this.group = group; this.version = version; this.plural = plural; @@ -2128,7 +2236,8 @@ private APIgetClusterCustomObjectScaleRequest(String group, String version, Stri * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2143,7 +2252,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2159,7 +2269,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2175,7 +2286,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2195,16 +2307,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param name the custom object's name (required) * @return APIgetClusterCustomObjectScaleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIgetClusterCustomObjectScaleRequest getClusterCustomObjectScale(String group, String version, String plural, String name) { + public APIgetClusterCustomObjectScaleRequest getClusterCustomObjectScale(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name) { return new APIgetClusterCustomObjectScaleRequest(group, version, plural, name); } - private okhttp3.Call getClusterCustomObjectStatusCall(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getClusterCustomObjectStatusCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2255,7 +2368,7 @@ private okhttp3.Call getClusterCustomObjectStatusCall(String group, String versi } @SuppressWarnings("rawtypes") - private okhttp3.Call getClusterCustomObjectStatusValidateBeforeCall(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getClusterCustomObjectStatusValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling getClusterCustomObjectStatus(Async)"); @@ -2281,13 +2394,13 @@ private okhttp3.Call getClusterCustomObjectStatusValidateBeforeCall(String group } - private ApiResponse getClusterCustomObjectStatusWithHttpInfo(String group, String version, String plural, String name) throws ApiException { + private ApiResponse getClusterCustomObjectStatusWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name) throws ApiException { okhttp3.Call localVarCall = getClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getClusterCustomObjectStatusAsync(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getClusterCustomObjectStatusAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2296,12 +2409,16 @@ private okhttp3.Call getClusterCustomObjectStatusAsync(String group, String vers } public class APIgetClusterCustomObjectStatusRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nonnull private final String name; - private APIgetClusterCustomObjectStatusRequest(String group, String version, String plural, String name) { + private APIgetClusterCustomObjectStatusRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name) { this.group = group; this.version = version; this.plural = plural; @@ -2314,7 +2431,8 @@ private APIgetClusterCustomObjectStatusRequest(String group, String version, Str * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2329,7 +2447,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2345,7 +2464,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2361,7 +2481,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2381,16 +2502,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param name the custom object's name (required) * @return APIgetClusterCustomObjectStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIgetClusterCustomObjectStatusRequest getClusterCustomObjectStatus(String group, String version, String plural, String name) { + public APIgetClusterCustomObjectStatusRequest getClusterCustomObjectStatus(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name) { return new APIgetClusterCustomObjectStatusRequest(group, version, plural, name); } - private okhttp3.Call getNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getNamespacedCustomObjectCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2440,7 +2562,7 @@ private okhttp3.Call getNamespacedCustomObjectCall(String group, String version, } @SuppressWarnings("rawtypes") - private okhttp3.Call getNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getNamespacedCustomObjectValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling getNamespacedCustomObject(Async)"); @@ -2471,13 +2593,13 @@ private okhttp3.Call getNamespacedCustomObjectValidateBeforeCall(String group, S } - private ApiResponse getNamespacedCustomObjectWithHttpInfo(String group, String version, String namespace, String plural, String name) throws ApiException { + private ApiResponse getNamespacedCustomObjectWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name) throws ApiException { okhttp3.Call localVarCall = getNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getNamespacedCustomObjectAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2486,13 +2608,18 @@ private okhttp3.Call getNamespacedCustomObjectAsync(String group, String version } public class APIgetNamespacedCustomObjectRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nonnull private final String name; - private APIgetNamespacedCustomObjectRequest(String group, String version, String namespace, String plural, String name) { + private APIgetNamespacedCustomObjectRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name) { this.group = group; this.version = version; this.namespace = namespace; @@ -2506,7 +2633,8 @@ private APIgetNamespacedCustomObjectRequest(String group, String version, String * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2521,7 +2649,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 A single Resource -
401 Unauthorized -
+
+ @@ -2537,7 +2666,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 A single Resource -
401 Unauthorized -
+
+ @@ -2553,7 +2683,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 A single Resource -
401 Unauthorized -
+
+ @@ -2574,16 +2705,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param name the custom object's name (required) * @return APIgetNamespacedCustomObjectRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 A single Resource -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 A single Resource -
401 Unauthorized -
*/ - public APIgetNamespacedCustomObjectRequest getNamespacedCustomObject(String group, String version, String namespace, String plural, String name) { + public APIgetNamespacedCustomObjectRequest getNamespacedCustomObject(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name) { return new APIgetNamespacedCustomObjectRequest(group, version, namespace, plural, name); } - private okhttp3.Call getNamespacedCustomObjectScaleCall(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getNamespacedCustomObjectScaleCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2635,7 +2767,7 @@ private okhttp3.Call getNamespacedCustomObjectScaleCall(String group, String ver } @SuppressWarnings("rawtypes") - private okhttp3.Call getNamespacedCustomObjectScaleValidateBeforeCall(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getNamespacedCustomObjectScaleValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling getNamespacedCustomObjectScale(Async)"); @@ -2666,13 +2798,13 @@ private okhttp3.Call getNamespacedCustomObjectScaleValidateBeforeCall(String gro } - private ApiResponse getNamespacedCustomObjectScaleWithHttpInfo(String group, String version, String namespace, String plural, String name) throws ApiException { + private ApiResponse getNamespacedCustomObjectScaleWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name) throws ApiException { okhttp3.Call localVarCall = getNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getNamespacedCustomObjectScaleAsync(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getNamespacedCustomObjectScaleAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2681,13 +2813,18 @@ private okhttp3.Call getNamespacedCustomObjectScaleAsync(String group, String ve } public class APIgetNamespacedCustomObjectScaleRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nonnull private final String name; - private APIgetNamespacedCustomObjectScaleRequest(String group, String version, String namespace, String plural, String name) { + private APIgetNamespacedCustomObjectScaleRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name) { this.group = group; this.version = version; this.namespace = namespace; @@ -2701,7 +2838,8 @@ private APIgetNamespacedCustomObjectScaleRequest(String group, String version, S * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2716,7 +2854,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2732,7 +2871,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2748,7 +2888,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2769,16 +2910,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param name the custom object's name (required) * @return APIgetNamespacedCustomObjectScaleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIgetNamespacedCustomObjectScaleRequest getNamespacedCustomObjectScale(String group, String version, String namespace, String plural, String name) { + public APIgetNamespacedCustomObjectScaleRequest getNamespacedCustomObjectScale(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name) { return new APIgetNamespacedCustomObjectScaleRequest(group, version, namespace, plural, name); } - private okhttp3.Call getNamespacedCustomObjectStatusCall(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getNamespacedCustomObjectStatusCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2830,7 +2972,7 @@ private okhttp3.Call getNamespacedCustomObjectStatusCall(String group, String ve } @SuppressWarnings("rawtypes") - private okhttp3.Call getNamespacedCustomObjectStatusValidateBeforeCall(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getNamespacedCustomObjectStatusValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling getNamespacedCustomObjectStatus(Async)"); @@ -2861,13 +3003,13 @@ private okhttp3.Call getNamespacedCustomObjectStatusValidateBeforeCall(String gr } - private ApiResponse getNamespacedCustomObjectStatusWithHttpInfo(String group, String version, String namespace, String plural, String name) throws ApiException { + private ApiResponse getNamespacedCustomObjectStatusWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name) throws ApiException { okhttp3.Call localVarCall = getNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getNamespacedCustomObjectStatusAsync(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getNamespacedCustomObjectStatusAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2876,13 +3018,18 @@ private okhttp3.Call getNamespacedCustomObjectStatusAsync(String group, String v } public class APIgetNamespacedCustomObjectStatusRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nonnull private final String name; - private APIgetNamespacedCustomObjectStatusRequest(String group, String version, String namespace, String plural, String name) { + private APIgetNamespacedCustomObjectStatusRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name) { this.group = group; this.version = version; this.namespace = namespace; @@ -2896,7 +3043,8 @@ private APIgetNamespacedCustomObjectStatusRequest(String group, String version, * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2911,7 +3059,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2927,7 +3076,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2943,7 +3093,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2964,16 +3115,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param name the custom object's name (required) * @return APIgetNamespacedCustomObjectStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIgetNamespacedCustomObjectStatusRequest getNamespacedCustomObjectStatus(String group, String version, String namespace, String plural, String name) { + public APIgetNamespacedCustomObjectStatusRequest getNamespacedCustomObjectStatus(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name) { return new APIgetNamespacedCustomObjectStatusRequest(group, version, namespace, plural, name); } - private okhttp3.Call listClusterCustomObjectCall(String group, String version, String plural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listClusterCustomObjectCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3062,7 +3214,7 @@ private okhttp3.Call listClusterCustomObjectCall(String group, String version, S } @SuppressWarnings("rawtypes") - private okhttp3.Call listClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listClusterCustomObjectValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling listClusterCustomObject(Async)"); @@ -3083,13 +3235,13 @@ private okhttp3.Call listClusterCustomObjectValidateBeforeCall(String group, Str } - private ApiResponse listClusterCustomObjectWithHttpInfo(String group, String version, String plural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listClusterCustomObjectWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listClusterCustomObjectValidateBeforeCall(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listClusterCustomObjectAsync(String group, String version, String plural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listClusterCustomObjectAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listClusterCustomObjectValidateBeforeCall(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3098,21 +3250,34 @@ private okhttp3.Call listClusterCustomObjectAsync(String group, String version, } public class APIlistClusterCustomObjectRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistClusterCustomObjectRequest(String group, String version, String plural) { + private APIlistClusterCustomObjectRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural) { this.group = group; this.version = version; this.plural = plural; @@ -3123,7 +3288,7 @@ private APIlistClusterCustomObjectRequest(String group, String version, String p * @param pretty If 'true', then the output is pretty printed. (optional) * @return APIlistClusterCustomObjectRequest */ - public APIlistClusterCustomObjectRequest pretty(String pretty) { + public APIlistClusterCustomObjectRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3133,7 +3298,7 @@ public APIlistClusterCustomObjectRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @return APIlistClusterCustomObjectRequest */ - public APIlistClusterCustomObjectRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistClusterCustomObjectRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -3143,7 +3308,7 @@ public APIlistClusterCustomObjectRequest allowWatchBookmarks(Boolean allowWatchB * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistClusterCustomObjectRequest */ - public APIlistClusterCustomObjectRequest _continue(String _continue) { + public APIlistClusterCustomObjectRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -3153,7 +3318,7 @@ public APIlistClusterCustomObjectRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistClusterCustomObjectRequest */ - public APIlistClusterCustomObjectRequest fieldSelector(String fieldSelector) { + public APIlistClusterCustomObjectRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -3163,7 +3328,7 @@ public APIlistClusterCustomObjectRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistClusterCustomObjectRequest */ - public APIlistClusterCustomObjectRequest labelSelector(String labelSelector) { + public APIlistClusterCustomObjectRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -3173,7 +3338,7 @@ public APIlistClusterCustomObjectRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistClusterCustomObjectRequest */ - public APIlistClusterCustomObjectRequest limit(Integer limit) { + public APIlistClusterCustomObjectRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -3183,7 +3348,7 @@ public APIlistClusterCustomObjectRequest limit(Integer limit) { * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @return APIlistClusterCustomObjectRequest */ - public APIlistClusterCustomObjectRequest resourceVersion(String resourceVersion) { + public APIlistClusterCustomObjectRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -3193,7 +3358,7 @@ public APIlistClusterCustomObjectRequest resourceVersion(String resourceVersion) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistClusterCustomObjectRequest */ - public APIlistClusterCustomObjectRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistClusterCustomObjectRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -3203,7 +3368,7 @@ public APIlistClusterCustomObjectRequest resourceVersionMatch(String resourceVer * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistClusterCustomObjectRequest */ - public APIlistClusterCustomObjectRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistClusterCustomObjectRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -3213,7 +3378,7 @@ public APIlistClusterCustomObjectRequest timeoutSeconds(Integer timeoutSeconds) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) * @return APIlistClusterCustomObjectRequest */ - public APIlistClusterCustomObjectRequest watch(Boolean watch) { + public APIlistClusterCustomObjectRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -3224,7 +3389,8 @@ public APIlistClusterCustomObjectRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3239,7 +3405,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3255,7 +3422,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3271,7 +3439,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3290,16 +3459,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @return APIlistClusterCustomObjectRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistClusterCustomObjectRequest listClusterCustomObject(String group, String version, String plural) { + public APIlistClusterCustomObjectRequest listClusterCustomObject(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural) { return new APIlistClusterCustomObjectRequest(group, version, plural); } - private okhttp3.Call listCustomObjectForAllNamespacesCall(String group, String version, String resourcePlural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCustomObjectForAllNamespacesCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String resourcePlural, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3388,7 +3558,7 @@ private okhttp3.Call listCustomObjectForAllNamespacesCall(String group, String v } @SuppressWarnings("rawtypes") - private okhttp3.Call listCustomObjectForAllNamespacesValidateBeforeCall(String group, String version, String resourcePlural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCustomObjectForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String resourcePlural, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling listCustomObjectForAllNamespaces(Async)"); @@ -3409,13 +3579,13 @@ private okhttp3.Call listCustomObjectForAllNamespacesValidateBeforeCall(String g } - private ApiResponse listCustomObjectForAllNamespacesWithHttpInfo(String group, String version, String resourcePlural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listCustomObjectForAllNamespacesWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String resourcePlural, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listCustomObjectForAllNamespacesValidateBeforeCall(group, version, resourcePlural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listCustomObjectForAllNamespacesAsync(String group, String version, String resourcePlural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCustomObjectForAllNamespacesAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String resourcePlural, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCustomObjectForAllNamespacesValidateBeforeCall(group, version, resourcePlural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3424,21 +3594,34 @@ private okhttp3.Call listCustomObjectForAllNamespacesAsync(String group, String } public class APIlistCustomObjectForAllNamespacesRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String resourcePlural; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistCustomObjectForAllNamespacesRequest(String group, String version, String resourcePlural) { + private APIlistCustomObjectForAllNamespacesRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String resourcePlural) { this.group = group; this.version = version; this.resourcePlural = resourcePlural; @@ -3449,7 +3632,7 @@ private APIlistCustomObjectForAllNamespacesRequest(String group, String version, * @param pretty If 'true', then the output is pretty printed. (optional) * @return APIlistCustomObjectForAllNamespacesRequest */ - public APIlistCustomObjectForAllNamespacesRequest pretty(String pretty) { + public APIlistCustomObjectForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3459,7 +3642,7 @@ public APIlistCustomObjectForAllNamespacesRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @return APIlistCustomObjectForAllNamespacesRequest */ - public APIlistCustomObjectForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistCustomObjectForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -3469,7 +3652,7 @@ public APIlistCustomObjectForAllNamespacesRequest allowWatchBookmarks(Boolean al * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistCustomObjectForAllNamespacesRequest */ - public APIlistCustomObjectForAllNamespacesRequest _continue(String _continue) { + public APIlistCustomObjectForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -3479,7 +3662,7 @@ public APIlistCustomObjectForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistCustomObjectForAllNamespacesRequest */ - public APIlistCustomObjectForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistCustomObjectForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -3489,7 +3672,7 @@ public APIlistCustomObjectForAllNamespacesRequest fieldSelector(String fieldSele * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistCustomObjectForAllNamespacesRequest */ - public APIlistCustomObjectForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistCustomObjectForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -3499,7 +3682,7 @@ public APIlistCustomObjectForAllNamespacesRequest labelSelector(String labelSele * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistCustomObjectForAllNamespacesRequest */ - public APIlistCustomObjectForAllNamespacesRequest limit(Integer limit) { + public APIlistCustomObjectForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -3509,7 +3692,7 @@ public APIlistCustomObjectForAllNamespacesRequest limit(Integer limit) { * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @return APIlistCustomObjectForAllNamespacesRequest */ - public APIlistCustomObjectForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistCustomObjectForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -3519,7 +3702,7 @@ public APIlistCustomObjectForAllNamespacesRequest resourceVersion(String resourc * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistCustomObjectForAllNamespacesRequest */ - public APIlistCustomObjectForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistCustomObjectForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -3529,7 +3712,7 @@ public APIlistCustomObjectForAllNamespacesRequest resourceVersionMatch(String re * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistCustomObjectForAllNamespacesRequest */ - public APIlistCustomObjectForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistCustomObjectForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -3539,7 +3722,7 @@ public APIlistCustomObjectForAllNamespacesRequest timeoutSeconds(Integer timeout * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) * @return APIlistCustomObjectForAllNamespacesRequest */ - public APIlistCustomObjectForAllNamespacesRequest watch(Boolean watch) { + public APIlistCustomObjectForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -3550,7 +3733,8 @@ public APIlistCustomObjectForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3565,7 +3749,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3581,7 +3766,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3597,7 +3783,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3616,16 +3803,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param resourcePlural The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @return APIlistCustomObjectForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistCustomObjectForAllNamespacesRequest listCustomObjectForAllNamespaces(String group, String version, String resourcePlural) { + public APIlistCustomObjectForAllNamespacesRequest listCustomObjectForAllNamespaces(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String resourcePlural) { return new APIlistCustomObjectForAllNamespacesRequest(group, version, resourcePlural); } - private okhttp3.Call listNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedCustomObjectCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3715,7 +3903,7 @@ private okhttp3.Call listNamespacedCustomObjectCall(String group, String version } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedCustomObjectValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling listNamespacedCustomObject(Async)"); @@ -3741,13 +3929,13 @@ private okhttp3.Call listNamespacedCustomObjectValidateBeforeCall(String group, } - private ApiResponse listNamespacedCustomObjectWithHttpInfo(String group, String version, String namespace, String plural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedCustomObjectWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedCustomObjectAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3756,22 +3944,36 @@ private okhttp3.Call listNamespacedCustomObjectAsync(String group, String versio } public class APIlistNamespacedCustomObjectRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedCustomObjectRequest(String group, String version, String namespace, String plural) { + private APIlistNamespacedCustomObjectRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural) { this.group = group; this.version = version; this.namespace = namespace; @@ -3783,7 +3985,7 @@ private APIlistNamespacedCustomObjectRequest(String group, String version, Strin * @param pretty If 'true', then the output is pretty printed. (optional) * @return APIlistNamespacedCustomObjectRequest */ - public APIlistNamespacedCustomObjectRequest pretty(String pretty) { + public APIlistNamespacedCustomObjectRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3793,7 +3995,7 @@ public APIlistNamespacedCustomObjectRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @return APIlistNamespacedCustomObjectRequest */ - public APIlistNamespacedCustomObjectRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedCustomObjectRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -3803,7 +4005,7 @@ public APIlistNamespacedCustomObjectRequest allowWatchBookmarks(Boolean allowWat * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedCustomObjectRequest */ - public APIlistNamespacedCustomObjectRequest _continue(String _continue) { + public APIlistNamespacedCustomObjectRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -3813,7 +4015,7 @@ public APIlistNamespacedCustomObjectRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedCustomObjectRequest */ - public APIlistNamespacedCustomObjectRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedCustomObjectRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -3823,7 +4025,7 @@ public APIlistNamespacedCustomObjectRequest fieldSelector(String fieldSelector) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedCustomObjectRequest */ - public APIlistNamespacedCustomObjectRequest labelSelector(String labelSelector) { + public APIlistNamespacedCustomObjectRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -3833,7 +4035,7 @@ public APIlistNamespacedCustomObjectRequest labelSelector(String labelSelector) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedCustomObjectRequest */ - public APIlistNamespacedCustomObjectRequest limit(Integer limit) { + public APIlistNamespacedCustomObjectRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -3843,7 +4045,7 @@ public APIlistNamespacedCustomObjectRequest limit(Integer limit) { * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @return APIlistNamespacedCustomObjectRequest */ - public APIlistNamespacedCustomObjectRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedCustomObjectRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -3853,7 +4055,7 @@ public APIlistNamespacedCustomObjectRequest resourceVersion(String resourceVersi * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedCustomObjectRequest */ - public APIlistNamespacedCustomObjectRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedCustomObjectRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -3863,7 +4065,7 @@ public APIlistNamespacedCustomObjectRequest resourceVersionMatch(String resource * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedCustomObjectRequest */ - public APIlistNamespacedCustomObjectRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedCustomObjectRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -3873,7 +4075,7 @@ public APIlistNamespacedCustomObjectRequest timeoutSeconds(Integer timeoutSecond * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) * @return APIlistNamespacedCustomObjectRequest */ - public APIlistNamespacedCustomObjectRequest watch(Boolean watch) { + public APIlistNamespacedCustomObjectRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -3884,7 +4086,8 @@ public APIlistNamespacedCustomObjectRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3899,7 +4102,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3915,7 +4119,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3931,7 +4136,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3951,16 +4157,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @return APIlistNamespacedCustomObjectRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedCustomObjectRequest listNamespacedCustomObject(String group, String version, String namespace, String plural) { + public APIlistNamespacedCustomObjectRequest listNamespacedCustomObject(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural) { return new APIlistNamespacedCustomObjectRequest(group, version, namespace, plural); } - private okhttp3.Call patchClusterCustomObjectCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchClusterCustomObjectCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4026,7 +4233,7 @@ private okhttp3.Call patchClusterCustomObjectCall(String group, String version, } @SuppressWarnings("rawtypes") - private okhttp3.Call patchClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchClusterCustomObjectValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling patchClusterCustomObject(Async)"); @@ -4057,13 +4264,13 @@ private okhttp3.Call patchClusterCustomObjectValidateBeforeCall(String group, St } - private ApiResponse patchClusterCustomObjectWithHttpInfo(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchClusterCustomObjectWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchClusterCustomObjectAsync(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchClusterCustomObjectAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4072,17 +4279,26 @@ private okhttp3.Call patchClusterCustomObjectAsync(String group, String version, } public class APIpatchClusterCustomObjectRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final Object body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchClusterCustomObjectRequest(String group, String version, String plural, String name, Object body) { + private APIpatchClusterCustomObjectRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { this.group = group; this.version = version; this.plural = plural; @@ -4095,7 +4311,7 @@ private APIpatchClusterCustomObjectRequest(String group, String version, String * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchClusterCustomObjectRequest */ - public APIpatchClusterCustomObjectRequest dryRun(String dryRun) { + public APIpatchClusterCustomObjectRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4105,7 +4321,7 @@ public APIpatchClusterCustomObjectRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchClusterCustomObjectRequest */ - public APIpatchClusterCustomObjectRequest fieldManager(String fieldManager) { + public APIpatchClusterCustomObjectRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -4115,7 +4331,7 @@ public APIpatchClusterCustomObjectRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return APIpatchClusterCustomObjectRequest */ - public APIpatchClusterCustomObjectRequest fieldValidation(String fieldValidation) { + public APIpatchClusterCustomObjectRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -4125,7 +4341,7 @@ public APIpatchClusterCustomObjectRequest fieldValidation(String fieldValidation * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchClusterCustomObjectRequest */ - public APIpatchClusterCustomObjectRequest force(Boolean force) { + public APIpatchClusterCustomObjectRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -4136,7 +4352,8 @@ public APIpatchClusterCustomObjectRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4151,7 +4368,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4167,7 +4385,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4183,7 +4402,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4204,16 +4424,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param body The JSON schema of the Resource to patch. (required) * @return APIpatchClusterCustomObjectRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIpatchClusterCustomObjectRequest patchClusterCustomObject(String group, String version, String plural, String name, Object body) { + public APIpatchClusterCustomObjectRequest patchClusterCustomObject(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { return new APIpatchClusterCustomObjectRequest(group, version, plural, name, body); } - private okhttp3.Call patchClusterCustomObjectScaleCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchClusterCustomObjectScaleCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4281,7 +4502,7 @@ private okhttp3.Call patchClusterCustomObjectScaleCall(String group, String vers } @SuppressWarnings("rawtypes") - private okhttp3.Call patchClusterCustomObjectScaleValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchClusterCustomObjectScaleValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling patchClusterCustomObjectScale(Async)"); @@ -4312,13 +4533,13 @@ private okhttp3.Call patchClusterCustomObjectScaleValidateBeforeCall(String grou } - private ApiResponse patchClusterCustomObjectScaleWithHttpInfo(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchClusterCustomObjectScaleWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchClusterCustomObjectScaleAsync(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchClusterCustomObjectScaleAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4327,17 +4548,26 @@ private okhttp3.Call patchClusterCustomObjectScaleAsync(String group, String ver } public class APIpatchClusterCustomObjectScaleRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final Object body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchClusterCustomObjectScaleRequest(String group, String version, String plural, String name, Object body) { + private APIpatchClusterCustomObjectScaleRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { this.group = group; this.version = version; this.plural = plural; @@ -4350,7 +4580,7 @@ private APIpatchClusterCustomObjectScaleRequest(String group, String version, St * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchClusterCustomObjectScaleRequest */ - public APIpatchClusterCustomObjectScaleRequest dryRun(String dryRun) { + public APIpatchClusterCustomObjectScaleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4360,7 +4590,7 @@ public APIpatchClusterCustomObjectScaleRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchClusterCustomObjectScaleRequest */ - public APIpatchClusterCustomObjectScaleRequest fieldManager(String fieldManager) { + public APIpatchClusterCustomObjectScaleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -4370,7 +4600,7 @@ public APIpatchClusterCustomObjectScaleRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return APIpatchClusterCustomObjectScaleRequest */ - public APIpatchClusterCustomObjectScaleRequest fieldValidation(String fieldValidation) { + public APIpatchClusterCustomObjectScaleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -4380,7 +4610,7 @@ public APIpatchClusterCustomObjectScaleRequest fieldValidation(String fieldValid * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchClusterCustomObjectScaleRequest */ - public APIpatchClusterCustomObjectScaleRequest force(Boolean force) { + public APIpatchClusterCustomObjectScaleRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -4391,7 +4621,8 @@ public APIpatchClusterCustomObjectScaleRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4406,7 +4637,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4422,7 +4654,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4438,7 +4671,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4459,16 +4693,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param body (required) * @return APIpatchClusterCustomObjectScaleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIpatchClusterCustomObjectScaleRequest patchClusterCustomObjectScale(String group, String version, String plural, String name, Object body) { + public APIpatchClusterCustomObjectScaleRequest patchClusterCustomObjectScale(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { return new APIpatchClusterCustomObjectScaleRequest(group, version, plural, name, body); } - private okhttp3.Call patchClusterCustomObjectStatusCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchClusterCustomObjectStatusCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4536,7 +4771,7 @@ private okhttp3.Call patchClusterCustomObjectStatusCall(String group, String ver } @SuppressWarnings("rawtypes") - private okhttp3.Call patchClusterCustomObjectStatusValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchClusterCustomObjectStatusValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling patchClusterCustomObjectStatus(Async)"); @@ -4567,13 +4802,13 @@ private okhttp3.Call patchClusterCustomObjectStatusValidateBeforeCall(String gro } - private ApiResponse patchClusterCustomObjectStatusWithHttpInfo(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchClusterCustomObjectStatusWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchClusterCustomObjectStatusAsync(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchClusterCustomObjectStatusAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4582,17 +4817,26 @@ private okhttp3.Call patchClusterCustomObjectStatusAsync(String group, String ve } public class APIpatchClusterCustomObjectStatusRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final Object body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchClusterCustomObjectStatusRequest(String group, String version, String plural, String name, Object body) { + private APIpatchClusterCustomObjectStatusRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { this.group = group; this.version = version; this.plural = plural; @@ -4605,7 +4849,7 @@ private APIpatchClusterCustomObjectStatusRequest(String group, String version, S * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchClusterCustomObjectStatusRequest */ - public APIpatchClusterCustomObjectStatusRequest dryRun(String dryRun) { + public APIpatchClusterCustomObjectStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4615,7 +4859,7 @@ public APIpatchClusterCustomObjectStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchClusterCustomObjectStatusRequest */ - public APIpatchClusterCustomObjectStatusRequest fieldManager(String fieldManager) { + public APIpatchClusterCustomObjectStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -4625,7 +4869,7 @@ public APIpatchClusterCustomObjectStatusRequest fieldManager(String fieldManager * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return APIpatchClusterCustomObjectStatusRequest */ - public APIpatchClusterCustomObjectStatusRequest fieldValidation(String fieldValidation) { + public APIpatchClusterCustomObjectStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -4635,7 +4879,7 @@ public APIpatchClusterCustomObjectStatusRequest fieldValidation(String fieldVali * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchClusterCustomObjectStatusRequest */ - public APIpatchClusterCustomObjectStatusRequest force(Boolean force) { + public APIpatchClusterCustomObjectStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -4646,7 +4890,8 @@ public APIpatchClusterCustomObjectStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4661,7 +4906,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4677,7 +4923,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4693,7 +4940,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4714,16 +4962,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param body (required) * @return APIpatchClusterCustomObjectStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIpatchClusterCustomObjectStatusRequest patchClusterCustomObjectStatus(String group, String version, String plural, String name, Object body) { + public APIpatchClusterCustomObjectStatusRequest patchClusterCustomObjectStatus(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { return new APIpatchClusterCustomObjectStatusRequest(group, version, plural, name, body); } - private okhttp3.Call patchNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCustomObjectCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4790,7 +5039,7 @@ private okhttp3.Call patchNamespacedCustomObjectCall(String group, String versio } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCustomObjectValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling patchNamespacedCustomObject(Async)"); @@ -4826,13 +5075,13 @@ private okhttp3.Call patchNamespacedCustomObjectValidateBeforeCall(String group, } - private ApiResponse patchNamespacedCustomObjectWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedCustomObjectWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCustomObjectAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4841,18 +5090,28 @@ private okhttp3.Call patchNamespacedCustomObjectAsync(String group, String versi } public class APIpatchNamespacedCustomObjectRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final Object body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedCustomObjectRequest(String group, String version, String namespace, String plural, String name, Object body) { + private APIpatchNamespacedCustomObjectRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { this.group = group; this.version = version; this.namespace = namespace; @@ -4866,7 +5125,7 @@ private APIpatchNamespacedCustomObjectRequest(String group, String version, Stri * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedCustomObjectRequest */ - public APIpatchNamespacedCustomObjectRequest dryRun(String dryRun) { + public APIpatchNamespacedCustomObjectRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4876,7 +5135,7 @@ public APIpatchNamespacedCustomObjectRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedCustomObjectRequest */ - public APIpatchNamespacedCustomObjectRequest fieldManager(String fieldManager) { + public APIpatchNamespacedCustomObjectRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -4886,7 +5145,7 @@ public APIpatchNamespacedCustomObjectRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return APIpatchNamespacedCustomObjectRequest */ - public APIpatchNamespacedCustomObjectRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedCustomObjectRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -4896,7 +5155,7 @@ public APIpatchNamespacedCustomObjectRequest fieldValidation(String fieldValidat * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedCustomObjectRequest */ - public APIpatchNamespacedCustomObjectRequest force(Boolean force) { + public APIpatchNamespacedCustomObjectRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -4907,7 +5166,8 @@ public APIpatchNamespacedCustomObjectRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4922,7 +5182,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4938,7 +5199,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4954,7 +5216,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4976,16 +5239,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param body The JSON schema of the Resource to patch. (required) * @return APIpatchNamespacedCustomObjectRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIpatchNamespacedCustomObjectRequest patchNamespacedCustomObject(String group, String version, String namespace, String plural, String name, Object body) { + public APIpatchNamespacedCustomObjectRequest patchNamespacedCustomObject(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { return new APIpatchNamespacedCustomObjectRequest(group, version, namespace, plural, name, body); } - private okhttp3.Call patchNamespacedCustomObjectScaleCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCustomObjectScaleCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5054,7 +5318,7 @@ private okhttp3.Call patchNamespacedCustomObjectScaleCall(String group, String v } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedCustomObjectScaleValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCustomObjectScaleValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling patchNamespacedCustomObjectScale(Async)"); @@ -5090,13 +5354,13 @@ private okhttp3.Call patchNamespacedCustomObjectScaleValidateBeforeCall(String g } - private ApiResponse patchNamespacedCustomObjectScaleWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedCustomObjectScaleWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedCustomObjectScaleAsync(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCustomObjectScaleAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5105,18 +5369,28 @@ private okhttp3.Call patchNamespacedCustomObjectScaleAsync(String group, String } public class APIpatchNamespacedCustomObjectScaleRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final Object body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedCustomObjectScaleRequest(String group, String version, String namespace, String plural, String name, Object body) { + private APIpatchNamespacedCustomObjectScaleRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { this.group = group; this.version = version; this.namespace = namespace; @@ -5130,7 +5404,7 @@ private APIpatchNamespacedCustomObjectScaleRequest(String group, String version, * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedCustomObjectScaleRequest */ - public APIpatchNamespacedCustomObjectScaleRequest dryRun(String dryRun) { + public APIpatchNamespacedCustomObjectScaleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -5140,7 +5414,7 @@ public APIpatchNamespacedCustomObjectScaleRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedCustomObjectScaleRequest */ - public APIpatchNamespacedCustomObjectScaleRequest fieldManager(String fieldManager) { + public APIpatchNamespacedCustomObjectScaleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -5150,7 +5424,7 @@ public APIpatchNamespacedCustomObjectScaleRequest fieldManager(String fieldManag * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return APIpatchNamespacedCustomObjectScaleRequest */ - public APIpatchNamespacedCustomObjectScaleRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedCustomObjectScaleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -5160,7 +5434,7 @@ public APIpatchNamespacedCustomObjectScaleRequest fieldValidation(String fieldVa * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedCustomObjectScaleRequest */ - public APIpatchNamespacedCustomObjectScaleRequest force(Boolean force) { + public APIpatchNamespacedCustomObjectScaleRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -5171,7 +5445,8 @@ public APIpatchNamespacedCustomObjectScaleRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5186,7 +5461,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5202,7 +5478,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5218,7 +5495,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5240,16 +5518,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param body (required) * @return APIpatchNamespacedCustomObjectScaleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIpatchNamespacedCustomObjectScaleRequest patchNamespacedCustomObjectScale(String group, String version, String namespace, String plural, String name, Object body) { + public APIpatchNamespacedCustomObjectScaleRequest patchNamespacedCustomObjectScale(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { return new APIpatchNamespacedCustomObjectScaleRequest(group, version, namespace, plural, name, body); } - private okhttp3.Call patchNamespacedCustomObjectStatusCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCustomObjectStatusCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5318,7 +5597,7 @@ private okhttp3.Call patchNamespacedCustomObjectStatusCall(String group, String } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedCustomObjectStatusValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCustomObjectStatusValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling patchNamespacedCustomObjectStatus(Async)"); @@ -5354,13 +5633,13 @@ private okhttp3.Call patchNamespacedCustomObjectStatusValidateBeforeCall(String } - private ApiResponse patchNamespacedCustomObjectStatusWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedCustomObjectStatusWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedCustomObjectStatusAsync(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCustomObjectStatusAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5369,18 +5648,28 @@ private okhttp3.Call patchNamespacedCustomObjectStatusAsync(String group, String } public class APIpatchNamespacedCustomObjectStatusRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final Object body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedCustomObjectStatusRequest(String group, String version, String namespace, String plural, String name, Object body) { + private APIpatchNamespacedCustomObjectStatusRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { this.group = group; this.version = version; this.namespace = namespace; @@ -5394,7 +5683,7 @@ private APIpatchNamespacedCustomObjectStatusRequest(String group, String version * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedCustomObjectStatusRequest */ - public APIpatchNamespacedCustomObjectStatusRequest dryRun(String dryRun) { + public APIpatchNamespacedCustomObjectStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -5404,7 +5693,7 @@ public APIpatchNamespacedCustomObjectStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedCustomObjectStatusRequest */ - public APIpatchNamespacedCustomObjectStatusRequest fieldManager(String fieldManager) { + public APIpatchNamespacedCustomObjectStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -5414,7 +5703,7 @@ public APIpatchNamespacedCustomObjectStatusRequest fieldManager(String fieldMana * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return APIpatchNamespacedCustomObjectStatusRequest */ - public APIpatchNamespacedCustomObjectStatusRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedCustomObjectStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -5424,7 +5713,7 @@ public APIpatchNamespacedCustomObjectStatusRequest fieldValidation(String fieldV * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedCustomObjectStatusRequest */ - public APIpatchNamespacedCustomObjectStatusRequest force(Boolean force) { + public APIpatchNamespacedCustomObjectStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -5435,7 +5724,8 @@ public APIpatchNamespacedCustomObjectStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5450,7 +5740,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5466,7 +5757,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5482,7 +5774,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5504,16 +5797,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param body (required) * @return APIpatchNamespacedCustomObjectStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIpatchNamespacedCustomObjectStatusRequest patchNamespacedCustomObjectStatus(String group, String version, String namespace, String plural, String name, Object body) { + public APIpatchNamespacedCustomObjectStatusRequest patchNamespacedCustomObjectStatus(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { return new APIpatchNamespacedCustomObjectStatusRequest(group, version, namespace, plural, name, body); } - private okhttp3.Call replaceClusterCustomObjectCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceClusterCustomObjectCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5575,7 +5869,7 @@ private okhttp3.Call replaceClusterCustomObjectCall(String group, String version } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceClusterCustomObjectValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling replaceClusterCustomObject(Async)"); @@ -5606,13 +5900,13 @@ private okhttp3.Call replaceClusterCustomObjectValidateBeforeCall(String group, } - private ApiResponse replaceClusterCustomObjectWithHttpInfo(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceClusterCustomObjectWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceClusterCustomObjectAsync(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceClusterCustomObjectAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5621,16 +5915,24 @@ private okhttp3.Call replaceClusterCustomObjectAsync(String group, String versio } public class APIreplaceClusterCustomObjectRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final Object body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceClusterCustomObjectRequest(String group, String version, String plural, String name, Object body) { + private APIreplaceClusterCustomObjectRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { this.group = group; this.version = version; this.plural = plural; @@ -5643,7 +5945,7 @@ private APIreplaceClusterCustomObjectRequest(String group, String version, Strin * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceClusterCustomObjectRequest */ - public APIreplaceClusterCustomObjectRequest dryRun(String dryRun) { + public APIreplaceClusterCustomObjectRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -5653,7 +5955,7 @@ public APIreplaceClusterCustomObjectRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceClusterCustomObjectRequest */ - public APIreplaceClusterCustomObjectRequest fieldManager(String fieldManager) { + public APIreplaceClusterCustomObjectRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -5663,7 +5965,7 @@ public APIreplaceClusterCustomObjectRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return APIreplaceClusterCustomObjectRequest */ - public APIreplaceClusterCustomObjectRequest fieldValidation(String fieldValidation) { + public APIreplaceClusterCustomObjectRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -5674,7 +5976,8 @@ public APIreplaceClusterCustomObjectRequest fieldValidation(String fieldValidati * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5689,7 +5992,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5705,7 +6009,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5721,7 +6026,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5742,16 +6048,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param body The JSON schema of the Resource to replace. (required) * @return APIreplaceClusterCustomObjectRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreplaceClusterCustomObjectRequest replaceClusterCustomObject(String group, String version, String plural, String name, Object body) { + public APIreplaceClusterCustomObjectRequest replaceClusterCustomObject(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { return new APIreplaceClusterCustomObjectRequest(group, version, plural, name, body); } - private okhttp3.Call replaceClusterCustomObjectScaleCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceClusterCustomObjectScaleCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5815,7 +6122,7 @@ private okhttp3.Call replaceClusterCustomObjectScaleCall(String group, String ve } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceClusterCustomObjectScaleValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceClusterCustomObjectScaleValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling replaceClusterCustomObjectScale(Async)"); @@ -5846,13 +6153,13 @@ private okhttp3.Call replaceClusterCustomObjectScaleValidateBeforeCall(String gr } - private ApiResponse replaceClusterCustomObjectScaleWithHttpInfo(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceClusterCustomObjectScaleWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceClusterCustomObjectScaleAsync(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceClusterCustomObjectScaleAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5861,16 +6168,24 @@ private okhttp3.Call replaceClusterCustomObjectScaleAsync(String group, String v } public class APIreplaceClusterCustomObjectScaleRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final Object body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceClusterCustomObjectScaleRequest(String group, String version, String plural, String name, Object body) { + private APIreplaceClusterCustomObjectScaleRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { this.group = group; this.version = version; this.plural = plural; @@ -5883,7 +6198,7 @@ private APIreplaceClusterCustomObjectScaleRequest(String group, String version, * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceClusterCustomObjectScaleRequest */ - public APIreplaceClusterCustomObjectScaleRequest dryRun(String dryRun) { + public APIreplaceClusterCustomObjectScaleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -5893,7 +6208,7 @@ public APIreplaceClusterCustomObjectScaleRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceClusterCustomObjectScaleRequest */ - public APIreplaceClusterCustomObjectScaleRequest fieldManager(String fieldManager) { + public APIreplaceClusterCustomObjectScaleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -5903,7 +6218,7 @@ public APIreplaceClusterCustomObjectScaleRequest fieldManager(String fieldManage * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return APIreplaceClusterCustomObjectScaleRequest */ - public APIreplaceClusterCustomObjectScaleRequest fieldValidation(String fieldValidation) { + public APIreplaceClusterCustomObjectScaleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -5914,7 +6229,8 @@ public APIreplaceClusterCustomObjectScaleRequest fieldValidation(String fieldVal * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5930,7 +6246,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5947,7 +6264,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5964,7 +6282,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5986,17 +6305,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param body (required) * @return APIreplaceClusterCustomObjectScaleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceClusterCustomObjectScaleRequest replaceClusterCustomObjectScale(String group, String version, String plural, String name, Object body) { + public APIreplaceClusterCustomObjectScaleRequest replaceClusterCustomObjectScale(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { return new APIreplaceClusterCustomObjectScaleRequest(group, version, plural, name, body); } - private okhttp3.Call replaceClusterCustomObjectStatusCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceClusterCustomObjectStatusCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6060,7 +6380,7 @@ private okhttp3.Call replaceClusterCustomObjectStatusCall(String group, String v } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceClusterCustomObjectStatusValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceClusterCustomObjectStatusValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling replaceClusterCustomObjectStatus(Async)"); @@ -6091,13 +6411,13 @@ private okhttp3.Call replaceClusterCustomObjectStatusValidateBeforeCall(String g } - private ApiResponse replaceClusterCustomObjectStatusWithHttpInfo(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceClusterCustomObjectStatusWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceClusterCustomObjectStatusAsync(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceClusterCustomObjectStatusAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6106,16 +6426,24 @@ private okhttp3.Call replaceClusterCustomObjectStatusAsync(String group, String } public class APIreplaceClusterCustomObjectStatusRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final Object body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceClusterCustomObjectStatusRequest(String group, String version, String plural, String name, Object body) { + private APIreplaceClusterCustomObjectStatusRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { this.group = group; this.version = version; this.plural = plural; @@ -6128,7 +6456,7 @@ private APIreplaceClusterCustomObjectStatusRequest(String group, String version, * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceClusterCustomObjectStatusRequest */ - public APIreplaceClusterCustomObjectStatusRequest dryRun(String dryRun) { + public APIreplaceClusterCustomObjectStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6138,7 +6466,7 @@ public APIreplaceClusterCustomObjectStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceClusterCustomObjectStatusRequest */ - public APIreplaceClusterCustomObjectStatusRequest fieldManager(String fieldManager) { + public APIreplaceClusterCustomObjectStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6148,7 +6476,7 @@ public APIreplaceClusterCustomObjectStatusRequest fieldManager(String fieldManag * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return APIreplaceClusterCustomObjectStatusRequest */ - public APIreplaceClusterCustomObjectStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceClusterCustomObjectStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -6159,7 +6487,8 @@ public APIreplaceClusterCustomObjectStatusRequest fieldValidation(String fieldVa * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6175,7 +6504,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6192,7 +6522,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6209,7 +6540,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6231,17 +6563,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param body (required) * @return APIreplaceClusterCustomObjectStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceClusterCustomObjectStatusRequest replaceClusterCustomObjectStatus(String group, String version, String plural, String name, Object body) { + public APIreplaceClusterCustomObjectStatusRequest replaceClusterCustomObjectStatus(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { return new APIreplaceClusterCustomObjectStatusRequest(group, version, plural, name, body); } - private okhttp3.Call replaceNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedCustomObjectCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6304,7 +6637,7 @@ private okhttp3.Call replaceNamespacedCustomObjectCall(String group, String vers } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedCustomObjectValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling replaceNamespacedCustomObject(Async)"); @@ -6340,13 +6673,13 @@ private okhttp3.Call replaceNamespacedCustomObjectValidateBeforeCall(String grou } - private ApiResponse replaceNamespacedCustomObjectWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedCustomObjectWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedCustomObjectAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6355,17 +6688,26 @@ private okhttp3.Call replaceNamespacedCustomObjectAsync(String group, String ver } public class APIreplaceNamespacedCustomObjectRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final Object body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedCustomObjectRequest(String group, String version, String namespace, String plural, String name, Object body) { + private APIreplaceNamespacedCustomObjectRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { this.group = group; this.version = version; this.namespace = namespace; @@ -6379,7 +6721,7 @@ private APIreplaceNamespacedCustomObjectRequest(String group, String version, St * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedCustomObjectRequest */ - public APIreplaceNamespacedCustomObjectRequest dryRun(String dryRun) { + public APIreplaceNamespacedCustomObjectRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6389,7 +6731,7 @@ public APIreplaceNamespacedCustomObjectRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedCustomObjectRequest */ - public APIreplaceNamespacedCustomObjectRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedCustomObjectRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6399,7 +6741,7 @@ public APIreplaceNamespacedCustomObjectRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return APIreplaceNamespacedCustomObjectRequest */ - public APIreplaceNamespacedCustomObjectRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedCustomObjectRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -6410,7 +6752,8 @@ public APIreplaceNamespacedCustomObjectRequest fieldValidation(String fieldValid * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6425,7 +6768,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6441,7 +6785,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6457,7 +6802,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6479,16 +6825,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param body The JSON schema of the Resource to replace. (required) * @return APIreplaceNamespacedCustomObjectRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreplaceNamespacedCustomObjectRequest replaceNamespacedCustomObject(String group, String version, String namespace, String plural, String name, Object body) { + public APIreplaceNamespacedCustomObjectRequest replaceNamespacedCustomObject(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { return new APIreplaceNamespacedCustomObjectRequest(group, version, namespace, plural, name, body); } - private okhttp3.Call replaceNamespacedCustomObjectScaleCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedCustomObjectScaleCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6553,7 +6900,7 @@ private okhttp3.Call replaceNamespacedCustomObjectScaleCall(String group, String } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedCustomObjectScaleValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedCustomObjectScaleValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling replaceNamespacedCustomObjectScale(Async)"); @@ -6589,13 +6936,13 @@ private okhttp3.Call replaceNamespacedCustomObjectScaleValidateBeforeCall(String } - private ApiResponse replaceNamespacedCustomObjectScaleWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedCustomObjectScaleWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedCustomObjectScaleAsync(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedCustomObjectScaleAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6604,17 +6951,26 @@ private okhttp3.Call replaceNamespacedCustomObjectScaleAsync(String group, Strin } public class APIreplaceNamespacedCustomObjectScaleRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final Object body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedCustomObjectScaleRequest(String group, String version, String namespace, String plural, String name, Object body) { + private APIreplaceNamespacedCustomObjectScaleRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { this.group = group; this.version = version; this.namespace = namespace; @@ -6628,7 +6984,7 @@ private APIreplaceNamespacedCustomObjectScaleRequest(String group, String versio * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedCustomObjectScaleRequest */ - public APIreplaceNamespacedCustomObjectScaleRequest dryRun(String dryRun) { + public APIreplaceNamespacedCustomObjectScaleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6638,7 +6994,7 @@ public APIreplaceNamespacedCustomObjectScaleRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedCustomObjectScaleRequest */ - public APIreplaceNamespacedCustomObjectScaleRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedCustomObjectScaleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6648,7 +7004,7 @@ public APIreplaceNamespacedCustomObjectScaleRequest fieldManager(String fieldMan * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return APIreplaceNamespacedCustomObjectScaleRequest */ - public APIreplaceNamespacedCustomObjectScaleRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedCustomObjectScaleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -6659,7 +7015,8 @@ public APIreplaceNamespacedCustomObjectScaleRequest fieldValidation(String field * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6675,7 +7032,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6692,7 +7050,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6709,7 +7068,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6732,17 +7092,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param body (required) * @return APIreplaceNamespacedCustomObjectScaleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedCustomObjectScaleRequest replaceNamespacedCustomObjectScale(String group, String version, String namespace, String plural, String name, Object body) { + public APIreplaceNamespacedCustomObjectScaleRequest replaceNamespacedCustomObjectScale(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { return new APIreplaceNamespacedCustomObjectScaleRequest(group, version, namespace, plural, name, body); } - private okhttp3.Call replaceNamespacedCustomObjectStatusCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedCustomObjectStatusCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6807,7 +7168,7 @@ private okhttp3.Call replaceNamespacedCustomObjectStatusCall(String group, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedCustomObjectStatusValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedCustomObjectStatusValidateBeforeCall(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling replaceNamespacedCustomObjectStatus(Async)"); @@ -6843,13 +7204,13 @@ private okhttp3.Call replaceNamespacedCustomObjectStatusValidateBeforeCall(Strin } - private ApiResponse replaceNamespacedCustomObjectStatusWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedCustomObjectStatusWithHttpInfo(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedCustomObjectStatusAsync(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedCustomObjectStatusAsync(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6858,17 +7219,26 @@ private okhttp3.Call replaceNamespacedCustomObjectStatusAsync(String group, Stri } public class APIreplaceNamespacedCustomObjectStatusRequest { + @jakarta.annotation.Nonnull private final String group; + @jakarta.annotation.Nonnull private final String version; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final String plural; + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final Object body; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedCustomObjectStatusRequest(String group, String version, String namespace, String plural, String name, Object body) { + private APIreplaceNamespacedCustomObjectStatusRequest(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { this.group = group; this.version = version; this.namespace = namespace; @@ -6882,7 +7252,7 @@ private APIreplaceNamespacedCustomObjectStatusRequest(String group, String versi * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedCustomObjectStatusRequest */ - public APIreplaceNamespacedCustomObjectStatusRequest dryRun(String dryRun) { + public APIreplaceNamespacedCustomObjectStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6892,7 +7262,7 @@ public APIreplaceNamespacedCustomObjectStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedCustomObjectStatusRequest */ - public APIreplaceNamespacedCustomObjectStatusRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedCustomObjectStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6902,7 +7272,7 @@ public APIreplaceNamespacedCustomObjectStatusRequest fieldManager(String fieldMa * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return APIreplaceNamespacedCustomObjectStatusRequest */ - public APIreplaceNamespacedCustomObjectStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedCustomObjectStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -6913,7 +7283,8 @@ public APIreplaceNamespacedCustomObjectStatusRequest fieldValidation(String fiel * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6929,7 +7300,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6946,7 +7318,8 @@ public Object execute() throws ApiException { * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6963,7 +7336,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6986,14 +7360,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param body (required) * @return APIreplaceNamespacedCustomObjectStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedCustomObjectStatusRequest replaceNamespacedCustomObjectStatus(String group, String version, String namespace, String plural, String name, Object body) { + public APIreplaceNamespacedCustomObjectStatusRequest replaceNamespacedCustomObjectStatus(@jakarta.annotation.Nonnull String group, @jakarta.annotation.Nonnull String version, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull String plural, @jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull Object body) { return new APIreplaceNamespacedCustomObjectStatusRequest(group, version, namespace, plural, name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryApi.java index 5e9803ba3e..da2d077ec4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryApi.java @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryV1Api.java index 664f7c25ee..d0574b7d80 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryV1Api.java @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createNamespacedEndpointSliceCall(String namespace, V1EndpointSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedEndpointSliceCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1EndpointSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -142,7 +142,7 @@ private okhttp3.Call createNamespacedEndpointSliceCall(String namespace, V1Endpo } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedEndpointSliceValidateBeforeCall(String namespace, V1EndpointSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedEndpointSliceValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1EndpointSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedEndpointSlice(Async)"); @@ -158,13 +158,13 @@ private okhttp3.Call createNamespacedEndpointSliceValidateBeforeCall(String name } - private ApiResponse createNamespacedEndpointSliceWithHttpInfo(String namespace, V1EndpointSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedEndpointSliceWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1EndpointSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedEndpointSliceValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedEndpointSliceAsync(String namespace, V1EndpointSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedEndpointSliceAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1EndpointSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedEndpointSliceValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -173,14 +173,20 @@ private okhttp3.Call createNamespacedEndpointSliceAsync(String namespace, V1Endp } public class APIcreateNamespacedEndpointSliceRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1EndpointSlice body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedEndpointSliceRequest(String namespace, V1EndpointSlice body) { + private APIcreateNamespacedEndpointSliceRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1EndpointSlice body) { this.namespace = namespace; this.body = body; } @@ -190,7 +196,7 @@ private APIcreateNamespacedEndpointSliceRequest(String namespace, V1EndpointSlic * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedEndpointSliceRequest */ - public APIcreateNamespacedEndpointSliceRequest pretty(String pretty) { + public APIcreateNamespacedEndpointSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -200,7 +206,7 @@ public APIcreateNamespacedEndpointSliceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedEndpointSliceRequest */ - public APIcreateNamespacedEndpointSliceRequest dryRun(String dryRun) { + public APIcreateNamespacedEndpointSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -210,7 +216,7 @@ public APIcreateNamespacedEndpointSliceRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedEndpointSliceRequest */ - public APIcreateNamespacedEndpointSliceRequest fieldManager(String fieldManager) { + public APIcreateNamespacedEndpointSliceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -220,7 +226,7 @@ public APIcreateNamespacedEndpointSliceRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedEndpointSliceRequest */ - public APIcreateNamespacedEndpointSliceRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedEndpointSliceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -231,7 +237,8 @@ public APIcreateNamespacedEndpointSliceRequest fieldValidation(String fieldValid * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -248,7 +255,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1EndpointSlice * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -266,7 +274,8 @@ public V1EndpointSlice execute() throws ApiException { * @return ApiResponse<V1EndpointSlice> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -284,7 +293,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -304,7 +314,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * @param body (required) * @return APIcreateNamespacedEndpointSliceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -312,10 +323,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedEndpointSliceRequest createNamespacedEndpointSlice(String namespace, V1EndpointSlice body) { + public APIcreateNamespacedEndpointSliceRequest createNamespacedEndpointSlice(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1EndpointSlice body) { return new APIcreateNamespacedEndpointSliceRequest(namespace, body); } - private okhttp3.Call deleteCollectionNamespacedEndpointSliceCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEndpointSliceCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -421,7 +432,7 @@ private okhttp3.Call deleteCollectionNamespacedEndpointSliceCall(String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedEndpointSliceValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEndpointSliceValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedEndpointSlice(Async)"); @@ -432,13 +443,13 @@ private okhttp3.Call deleteCollectionNamespacedEndpointSliceValidateBeforeCall(S } - private ApiResponse deleteCollectionNamespacedEndpointSliceWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedEndpointSliceWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointSliceValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedEndpointSliceAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEndpointSliceAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointSliceValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -447,24 +458,40 @@ private okhttp3.Call deleteCollectionNamespacedEndpointSliceAsync(String namespa } public class APIdeleteCollectionNamespacedEndpointSliceRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedEndpointSliceRequest(String namespace) { + private APIdeleteCollectionNamespacedEndpointSliceRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -473,7 +500,7 @@ private APIdeleteCollectionNamespacedEndpointSliceRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedEndpointSliceRequest */ - public APIdeleteCollectionNamespacedEndpointSliceRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedEndpointSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -483,7 +510,7 @@ public APIdeleteCollectionNamespacedEndpointSliceRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedEndpointSliceRequest */ - public APIdeleteCollectionNamespacedEndpointSliceRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedEndpointSliceRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -493,7 +520,7 @@ public APIdeleteCollectionNamespacedEndpointSliceRequest _continue(String _conti * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedEndpointSliceRequest */ - public APIdeleteCollectionNamespacedEndpointSliceRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedEndpointSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -503,7 +530,7 @@ public APIdeleteCollectionNamespacedEndpointSliceRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedEndpointSliceRequest */ - public APIdeleteCollectionNamespacedEndpointSliceRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedEndpointSliceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -513,7 +540,7 @@ public APIdeleteCollectionNamespacedEndpointSliceRequest fieldSelector(String fi * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedEndpointSliceRequest */ - public APIdeleteCollectionNamespacedEndpointSliceRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedEndpointSliceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -523,7 +550,7 @@ public APIdeleteCollectionNamespacedEndpointSliceRequest gracePeriodSeconds(Inte * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedEndpointSliceRequest */ - public APIdeleteCollectionNamespacedEndpointSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedEndpointSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -533,7 +560,7 @@ public APIdeleteCollectionNamespacedEndpointSliceRequest ignoreStoreReadErrorWit * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedEndpointSliceRequest */ - public APIdeleteCollectionNamespacedEndpointSliceRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedEndpointSliceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -543,7 +570,7 @@ public APIdeleteCollectionNamespacedEndpointSliceRequest labelSelector(String la * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedEndpointSliceRequest */ - public APIdeleteCollectionNamespacedEndpointSliceRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedEndpointSliceRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -553,7 +580,7 @@ public APIdeleteCollectionNamespacedEndpointSliceRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedEndpointSliceRequest */ - public APIdeleteCollectionNamespacedEndpointSliceRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedEndpointSliceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -563,7 +590,7 @@ public APIdeleteCollectionNamespacedEndpointSliceRequest orphanDependents(Boolea * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedEndpointSliceRequest */ - public APIdeleteCollectionNamespacedEndpointSliceRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedEndpointSliceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -573,7 +600,7 @@ public APIdeleteCollectionNamespacedEndpointSliceRequest propagationPolicy(Strin * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedEndpointSliceRequest */ - public APIdeleteCollectionNamespacedEndpointSliceRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedEndpointSliceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -583,7 +610,7 @@ public APIdeleteCollectionNamespacedEndpointSliceRequest resourceVersion(String * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedEndpointSliceRequest */ - public APIdeleteCollectionNamespacedEndpointSliceRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedEndpointSliceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -593,7 +620,7 @@ public APIdeleteCollectionNamespacedEndpointSliceRequest resourceVersionMatch(St * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedEndpointSliceRequest */ - public APIdeleteCollectionNamespacedEndpointSliceRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedEndpointSliceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -603,7 +630,7 @@ public APIdeleteCollectionNamespacedEndpointSliceRequest sendInitialEvents(Boole * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedEndpointSliceRequest */ - public APIdeleteCollectionNamespacedEndpointSliceRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedEndpointSliceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -613,7 +640,7 @@ public APIdeleteCollectionNamespacedEndpointSliceRequest timeoutSeconds(Integer * @param body (optional) * @return APIdeleteCollectionNamespacedEndpointSliceRequest */ - public APIdeleteCollectionNamespacedEndpointSliceRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedEndpointSliceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -624,7 +651,8 @@ public APIdeleteCollectionNamespacedEndpointSliceRequest body(V1DeleteOptions bo * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -639,7 +667,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -655,7 +684,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -671,7 +701,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -688,16 +719,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedEndpointSliceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedEndpointSliceRequest deleteCollectionNamespacedEndpointSlice(String namespace) { + public APIdeleteCollectionNamespacedEndpointSliceRequest deleteCollectionNamespacedEndpointSlice(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedEndpointSliceRequest(namespace); } - private okhttp3.Call deleteNamespacedEndpointSliceCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedEndpointSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -772,7 +804,7 @@ private okhttp3.Call deleteNamespacedEndpointSliceCall(String name, String names } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedEndpointSliceValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedEndpointSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedEndpointSlice(Async)"); @@ -788,13 +820,13 @@ private okhttp3.Call deleteNamespacedEndpointSliceValidateBeforeCall(String name } - private ApiResponse deleteNamespacedEndpointSliceWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedEndpointSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedEndpointSliceValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedEndpointSliceAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedEndpointSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedEndpointSliceValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -803,17 +835,26 @@ private okhttp3.Call deleteNamespacedEndpointSliceAsync(String name, String name } public class APIdeleteNamespacedEndpointSliceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedEndpointSliceRequest(String name, String namespace) { + private APIdeleteNamespacedEndpointSliceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -823,7 +864,7 @@ private APIdeleteNamespacedEndpointSliceRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedEndpointSliceRequest */ - public APIdeleteNamespacedEndpointSliceRequest pretty(String pretty) { + public APIdeleteNamespacedEndpointSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -833,7 +874,7 @@ public APIdeleteNamespacedEndpointSliceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedEndpointSliceRequest */ - public APIdeleteNamespacedEndpointSliceRequest dryRun(String dryRun) { + public APIdeleteNamespacedEndpointSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -843,7 +884,7 @@ public APIdeleteNamespacedEndpointSliceRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedEndpointSliceRequest */ - public APIdeleteNamespacedEndpointSliceRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedEndpointSliceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -853,7 +894,7 @@ public APIdeleteNamespacedEndpointSliceRequest gracePeriodSeconds(Integer graceP * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedEndpointSliceRequest */ - public APIdeleteNamespacedEndpointSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedEndpointSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -863,7 +904,7 @@ public APIdeleteNamespacedEndpointSliceRequest ignoreStoreReadErrorWithClusterBr * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedEndpointSliceRequest */ - public APIdeleteNamespacedEndpointSliceRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedEndpointSliceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -873,7 +914,7 @@ public APIdeleteNamespacedEndpointSliceRequest orphanDependents(Boolean orphanDe * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedEndpointSliceRequest */ - public APIdeleteNamespacedEndpointSliceRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedEndpointSliceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -883,7 +924,7 @@ public APIdeleteNamespacedEndpointSliceRequest propagationPolicy(String propagat * @param body (optional) * @return APIdeleteNamespacedEndpointSliceRequest */ - public APIdeleteNamespacedEndpointSliceRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedEndpointSliceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -894,7 +935,8 @@ public APIdeleteNamespacedEndpointSliceRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -910,7 +952,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -927,7 +970,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -944,7 +988,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -963,14 +1008,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedEndpointSliceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedEndpointSliceRequest deleteNamespacedEndpointSlice(String name, String namespace) { + public APIdeleteNamespacedEndpointSliceRequest deleteNamespacedEndpointSlice(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedEndpointSliceRequest(name, namespace); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -1052,7 +1098,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1067,7 +1114,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1083,7 +1131,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1099,7 +1148,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1115,7 +1165,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1124,7 +1175,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listEndpointSliceForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEndpointSliceForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1219,19 +1270,19 @@ private okhttp3.Call listEndpointSliceForAllNamespacesCall(Boolean allowWatchBoo } @SuppressWarnings("rawtypes") - private okhttp3.Call listEndpointSliceForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEndpointSliceForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listEndpointSliceForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listEndpointSliceForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listEndpointSliceForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listEndpointSliceForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listEndpointSliceForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEndpointSliceForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listEndpointSliceForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1240,16 +1291,27 @@ private okhttp3.Call listEndpointSliceForAllNamespacesAsync(Boolean allowWatchBo } public class APIlistEndpointSliceForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistEndpointSliceForAllNamespacesRequest() { @@ -1260,7 +1322,7 @@ private APIlistEndpointSliceForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistEndpointSliceForAllNamespacesRequest */ - public APIlistEndpointSliceForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistEndpointSliceForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1270,7 +1332,7 @@ public APIlistEndpointSliceForAllNamespacesRequest allowWatchBookmarks(Boolean a * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistEndpointSliceForAllNamespacesRequest */ - public APIlistEndpointSliceForAllNamespacesRequest _continue(String _continue) { + public APIlistEndpointSliceForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1280,7 +1342,7 @@ public APIlistEndpointSliceForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistEndpointSliceForAllNamespacesRequest */ - public APIlistEndpointSliceForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistEndpointSliceForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1290,7 +1352,7 @@ public APIlistEndpointSliceForAllNamespacesRequest fieldSelector(String fieldSel * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistEndpointSliceForAllNamespacesRequest */ - public APIlistEndpointSliceForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistEndpointSliceForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1300,7 +1362,7 @@ public APIlistEndpointSliceForAllNamespacesRequest labelSelector(String labelSel * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistEndpointSliceForAllNamespacesRequest */ - public APIlistEndpointSliceForAllNamespacesRequest limit(Integer limit) { + public APIlistEndpointSliceForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1310,7 +1372,7 @@ public APIlistEndpointSliceForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistEndpointSliceForAllNamespacesRequest */ - public APIlistEndpointSliceForAllNamespacesRequest pretty(String pretty) { + public APIlistEndpointSliceForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1320,7 +1382,7 @@ public APIlistEndpointSliceForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistEndpointSliceForAllNamespacesRequest */ - public APIlistEndpointSliceForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistEndpointSliceForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1330,7 +1392,7 @@ public APIlistEndpointSliceForAllNamespacesRequest resourceVersion(String resour * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistEndpointSliceForAllNamespacesRequest */ - public APIlistEndpointSliceForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistEndpointSliceForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1340,7 +1402,7 @@ public APIlistEndpointSliceForAllNamespacesRequest resourceVersionMatch(String r * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistEndpointSliceForAllNamespacesRequest */ - public APIlistEndpointSliceForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistEndpointSliceForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1350,7 +1412,7 @@ public APIlistEndpointSliceForAllNamespacesRequest sendInitialEvents(Boolean sen * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistEndpointSliceForAllNamespacesRequest */ - public APIlistEndpointSliceForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistEndpointSliceForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1360,7 +1422,7 @@ public APIlistEndpointSliceForAllNamespacesRequest timeoutSeconds(Integer timeou * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistEndpointSliceForAllNamespacesRequest */ - public APIlistEndpointSliceForAllNamespacesRequest watch(Boolean watch) { + public APIlistEndpointSliceForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1371,7 +1433,8 @@ public APIlistEndpointSliceForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1386,7 +1449,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1EndpointSliceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1402,7 +1466,8 @@ public V1EndpointSliceList execute() throws ApiException { * @return ApiResponse<V1EndpointSliceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1418,7 +1483,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1434,7 +1500,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac * list or watch objects of kind EndpointSlice * @return APIlistEndpointSliceForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1443,7 +1510,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac public APIlistEndpointSliceForAllNamespacesRequest listEndpointSliceForAllNamespaces() { return new APIlistEndpointSliceForAllNamespacesRequest(); } - private okhttp3.Call listNamespacedEndpointSliceCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEndpointSliceCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1539,7 +1606,7 @@ private okhttp3.Call listNamespacedEndpointSliceCall(String namespace, String pr } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedEndpointSliceValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEndpointSliceValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedEndpointSlice(Async)"); @@ -1550,13 +1617,13 @@ private okhttp3.Call listNamespacedEndpointSliceValidateBeforeCall(String namesp } - private ApiResponse listNamespacedEndpointSliceWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedEndpointSliceWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedEndpointSliceValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedEndpointSliceAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEndpointSliceAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedEndpointSliceValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1565,20 +1632,32 @@ private okhttp3.Call listNamespacedEndpointSliceAsync(String namespace, String p } public class APIlistNamespacedEndpointSliceRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedEndpointSliceRequest(String namespace) { + private APIlistNamespacedEndpointSliceRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -1587,7 +1666,7 @@ private APIlistNamespacedEndpointSliceRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedEndpointSliceRequest */ - public APIlistNamespacedEndpointSliceRequest pretty(String pretty) { + public APIlistNamespacedEndpointSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1597,7 +1676,7 @@ public APIlistNamespacedEndpointSliceRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedEndpointSliceRequest */ - public APIlistNamespacedEndpointSliceRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedEndpointSliceRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1607,7 +1686,7 @@ public APIlistNamespacedEndpointSliceRequest allowWatchBookmarks(Boolean allowWa * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedEndpointSliceRequest */ - public APIlistNamespacedEndpointSliceRequest _continue(String _continue) { + public APIlistNamespacedEndpointSliceRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1617,7 +1696,7 @@ public APIlistNamespacedEndpointSliceRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedEndpointSliceRequest */ - public APIlistNamespacedEndpointSliceRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedEndpointSliceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1627,7 +1706,7 @@ public APIlistNamespacedEndpointSliceRequest fieldSelector(String fieldSelector) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedEndpointSliceRequest */ - public APIlistNamespacedEndpointSliceRequest labelSelector(String labelSelector) { + public APIlistNamespacedEndpointSliceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1637,7 +1716,7 @@ public APIlistNamespacedEndpointSliceRequest labelSelector(String labelSelector) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedEndpointSliceRequest */ - public APIlistNamespacedEndpointSliceRequest limit(Integer limit) { + public APIlistNamespacedEndpointSliceRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1647,7 +1726,7 @@ public APIlistNamespacedEndpointSliceRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedEndpointSliceRequest */ - public APIlistNamespacedEndpointSliceRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedEndpointSliceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1657,7 +1736,7 @@ public APIlistNamespacedEndpointSliceRequest resourceVersion(String resourceVers * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedEndpointSliceRequest */ - public APIlistNamespacedEndpointSliceRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedEndpointSliceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1667,7 +1746,7 @@ public APIlistNamespacedEndpointSliceRequest resourceVersionMatch(String resourc * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedEndpointSliceRequest */ - public APIlistNamespacedEndpointSliceRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedEndpointSliceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1677,7 +1756,7 @@ public APIlistNamespacedEndpointSliceRequest sendInitialEvents(Boolean sendIniti * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedEndpointSliceRequest */ - public APIlistNamespacedEndpointSliceRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedEndpointSliceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1687,7 +1766,7 @@ public APIlistNamespacedEndpointSliceRequest timeoutSeconds(Integer timeoutSecon * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedEndpointSliceRequest */ - public APIlistNamespacedEndpointSliceRequest watch(Boolean watch) { + public APIlistNamespacedEndpointSliceRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1698,7 +1777,8 @@ public APIlistNamespacedEndpointSliceRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1713,7 +1793,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1EndpointSliceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1729,7 +1810,8 @@ public V1EndpointSliceList execute() throws ApiException { * @return ApiResponse<V1EndpointSliceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1745,7 +1827,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1762,16 +1845,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedEndpointSliceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedEndpointSliceRequest listNamespacedEndpointSlice(String namespace) { + public APIlistNamespacedEndpointSliceRequest listNamespacedEndpointSlice(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedEndpointSliceRequest(namespace); } - private okhttp3.Call patchNamespacedEndpointSliceCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedEndpointSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1842,7 +1926,7 @@ private okhttp3.Call patchNamespacedEndpointSliceCall(String name, String namesp } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedEndpointSliceValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedEndpointSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedEndpointSlice(Async)"); @@ -1863,13 +1947,13 @@ private okhttp3.Call patchNamespacedEndpointSliceValidateBeforeCall(String name, } - private ApiResponse patchNamespacedEndpointSliceWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedEndpointSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedEndpointSliceValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedEndpointSliceAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedEndpointSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedEndpointSliceValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1878,16 +1962,24 @@ private okhttp3.Call patchNamespacedEndpointSliceAsync(String name, String names } public class APIpatchNamespacedEndpointSliceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedEndpointSliceRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedEndpointSliceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -1898,7 +1990,7 @@ private APIpatchNamespacedEndpointSliceRequest(String name, String namespace, V1 * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedEndpointSliceRequest */ - public APIpatchNamespacedEndpointSliceRequest pretty(String pretty) { + public APIpatchNamespacedEndpointSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1908,7 +2000,7 @@ public APIpatchNamespacedEndpointSliceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedEndpointSliceRequest */ - public APIpatchNamespacedEndpointSliceRequest dryRun(String dryRun) { + public APIpatchNamespacedEndpointSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1918,7 +2010,7 @@ public APIpatchNamespacedEndpointSliceRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedEndpointSliceRequest */ - public APIpatchNamespacedEndpointSliceRequest fieldManager(String fieldManager) { + public APIpatchNamespacedEndpointSliceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1928,7 +2020,7 @@ public APIpatchNamespacedEndpointSliceRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedEndpointSliceRequest */ - public APIpatchNamespacedEndpointSliceRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedEndpointSliceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1938,7 +2030,7 @@ public APIpatchNamespacedEndpointSliceRequest fieldValidation(String fieldValida * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedEndpointSliceRequest */ - public APIpatchNamespacedEndpointSliceRequest force(Boolean force) { + public APIpatchNamespacedEndpointSliceRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1949,7 +2041,8 @@ public APIpatchNamespacedEndpointSliceRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1965,7 +2058,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1EndpointSlice * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1982,7 +2076,8 @@ public V1EndpointSlice execute() throws ApiException { * @return ApiResponse<V1EndpointSlice> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1999,7 +2094,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2019,17 +2115,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * @param body (required) * @return APIpatchNamespacedEndpointSliceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedEndpointSliceRequest patchNamespacedEndpointSlice(String name, String namespace, V1Patch body) { + public APIpatchNamespacedEndpointSliceRequest patchNamespacedEndpointSlice(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedEndpointSliceRequest(name, namespace, body); } - private okhttp3.Call readNamespacedEndpointSliceCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedEndpointSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2083,7 +2180,7 @@ private okhttp3.Call readNamespacedEndpointSliceCall(String name, String namespa } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedEndpointSliceValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedEndpointSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedEndpointSlice(Async)"); @@ -2099,13 +2196,13 @@ private okhttp3.Call readNamespacedEndpointSliceValidateBeforeCall(String name, } - private ApiResponse readNamespacedEndpointSliceWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedEndpointSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedEndpointSliceValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedEndpointSliceAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedEndpointSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedEndpointSliceValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2114,11 +2211,14 @@ private okhttp3.Call readNamespacedEndpointSliceAsync(String name, String namesp } public class APIreadNamespacedEndpointSliceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedEndpointSliceRequest(String name, String namespace) { + private APIreadNamespacedEndpointSliceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -2128,7 +2228,7 @@ private APIreadNamespacedEndpointSliceRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedEndpointSliceRequest */ - public APIreadNamespacedEndpointSliceRequest pretty(String pretty) { + public APIreadNamespacedEndpointSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2139,7 +2239,8 @@ public APIreadNamespacedEndpointSliceRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2154,7 +2255,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1EndpointSlice * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2170,7 +2272,8 @@ public V1EndpointSlice execute() throws ApiException { * @return ApiResponse<V1EndpointSlice> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2186,7 +2289,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2204,16 +2308,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedEndpointSliceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedEndpointSliceRequest readNamespacedEndpointSlice(String name, String namespace) { + public APIreadNamespacedEndpointSliceRequest readNamespacedEndpointSlice(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedEndpointSliceRequest(name, namespace); } - private okhttp3.Call replaceNamespacedEndpointSliceCall(String name, String namespace, V1EndpointSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedEndpointSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1EndpointSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2280,7 +2385,7 @@ private okhttp3.Call replaceNamespacedEndpointSliceCall(String name, String name } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedEndpointSliceValidateBeforeCall(String name, String namespace, V1EndpointSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedEndpointSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1EndpointSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedEndpointSlice(Async)"); @@ -2301,13 +2406,13 @@ private okhttp3.Call replaceNamespacedEndpointSliceValidateBeforeCall(String nam } - private ApiResponse replaceNamespacedEndpointSliceWithHttpInfo(String name, String namespace, V1EndpointSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedEndpointSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1EndpointSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedEndpointSliceValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedEndpointSliceAsync(String name, String namespace, V1EndpointSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedEndpointSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1EndpointSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedEndpointSliceValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2316,15 +2421,22 @@ private okhttp3.Call replaceNamespacedEndpointSliceAsync(String name, String nam } public class APIreplaceNamespacedEndpointSliceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1EndpointSlice body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedEndpointSliceRequest(String name, String namespace, V1EndpointSlice body) { + private APIreplaceNamespacedEndpointSliceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1EndpointSlice body) { this.name = name; this.namespace = namespace; this.body = body; @@ -2335,7 +2447,7 @@ private APIreplaceNamespacedEndpointSliceRequest(String name, String namespace, * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedEndpointSliceRequest */ - public APIreplaceNamespacedEndpointSliceRequest pretty(String pretty) { + public APIreplaceNamespacedEndpointSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2345,7 +2457,7 @@ public APIreplaceNamespacedEndpointSliceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedEndpointSliceRequest */ - public APIreplaceNamespacedEndpointSliceRequest dryRun(String dryRun) { + public APIreplaceNamespacedEndpointSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2355,7 +2467,7 @@ public APIreplaceNamespacedEndpointSliceRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedEndpointSliceRequest */ - public APIreplaceNamespacedEndpointSliceRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedEndpointSliceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2365,7 +2477,7 @@ public APIreplaceNamespacedEndpointSliceRequest fieldManager(String fieldManager * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedEndpointSliceRequest */ - public APIreplaceNamespacedEndpointSliceRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedEndpointSliceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2376,7 +2488,8 @@ public APIreplaceNamespacedEndpointSliceRequest fieldValidation(String fieldVali * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2392,7 +2505,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1EndpointSlice * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2409,7 +2523,8 @@ public V1EndpointSlice execute() throws ApiException { * @return ApiResponse<V1EndpointSlice> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2426,7 +2541,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2446,14 +2562,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * @param body (required) * @return APIreplaceNamespacedEndpointSliceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedEndpointSliceRequest replaceNamespacedEndpointSlice(String name, String namespace, V1EndpointSlice body) { + public APIreplaceNamespacedEndpointSliceRequest replaceNamespacedEndpointSlice(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1EndpointSlice body) { return new APIreplaceNamespacedEndpointSliceRequest(name, namespace, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsApi.java index 4f08c6f50d..129d9222c0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsApi.java @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsV1Api.java index 242609a6a1..cc04b7647c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsV1Api.java @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createNamespacedEventCall(String namespace, EventsV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedEventCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull EventsV1Event body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -142,7 +142,7 @@ private okhttp3.Call createNamespacedEventCall(String namespace, EventsV1Event b } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedEventValidateBeforeCall(String namespace, EventsV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedEventValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull EventsV1Event body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedEvent(Async)"); @@ -158,13 +158,13 @@ private okhttp3.Call createNamespacedEventValidateBeforeCall(String namespace, E } - private ApiResponse createNamespacedEventWithHttpInfo(String namespace, EventsV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedEventWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull EventsV1Event body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedEventValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedEventAsync(String namespace, EventsV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedEventAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull EventsV1Event body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedEventValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -173,14 +173,20 @@ private okhttp3.Call createNamespacedEventAsync(String namespace, EventsV1Event } public class APIcreateNamespacedEventRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final EventsV1Event body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedEventRequest(String namespace, EventsV1Event body) { + private APIcreateNamespacedEventRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull EventsV1Event body) { this.namespace = namespace; this.body = body; } @@ -190,7 +196,7 @@ private APIcreateNamespacedEventRequest(String namespace, EventsV1Event body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedEventRequest */ - public APIcreateNamespacedEventRequest pretty(String pretty) { + public APIcreateNamespacedEventRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -200,7 +206,7 @@ public APIcreateNamespacedEventRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedEventRequest */ - public APIcreateNamespacedEventRequest dryRun(String dryRun) { + public APIcreateNamespacedEventRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -210,7 +216,7 @@ public APIcreateNamespacedEventRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedEventRequest */ - public APIcreateNamespacedEventRequest fieldManager(String fieldManager) { + public APIcreateNamespacedEventRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -220,7 +226,7 @@ public APIcreateNamespacedEventRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedEventRequest */ - public APIcreateNamespacedEventRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedEventRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -231,7 +237,8 @@ public APIcreateNamespacedEventRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -248,7 +255,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return EventsV1Event * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -266,7 +274,8 @@ public EventsV1Event execute() throws ApiException { * @return ApiResponse<EventsV1Event> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -284,7 +293,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -304,7 +314,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param body (required) * @return APIcreateNamespacedEventRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -312,10 +323,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedEventRequest createNamespacedEvent(String namespace, EventsV1Event body) { + public APIcreateNamespacedEventRequest createNamespacedEvent(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull EventsV1Event body) { return new APIcreateNamespacedEventRequest(namespace, body); } - private okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEventCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -421,7 +432,7 @@ private okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedEvent(Async)"); @@ -432,13 +443,13 @@ private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(String na } - private ApiResponse deleteCollectionNamespacedEventWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedEventWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedEventAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEventAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -447,24 +458,40 @@ private okhttp3.Call deleteCollectionNamespacedEventAsync(String namespace, Stri } public class APIdeleteCollectionNamespacedEventRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedEventRequest(String namespace) { + private APIdeleteCollectionNamespacedEventRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -473,7 +500,7 @@ private APIdeleteCollectionNamespacedEventRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedEventRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -483,7 +510,7 @@ public APIdeleteCollectionNamespacedEventRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedEventRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -493,7 +520,7 @@ public APIdeleteCollectionNamespacedEventRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedEventRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -503,7 +530,7 @@ public APIdeleteCollectionNamespacedEventRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedEventRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -513,7 +540,7 @@ public APIdeleteCollectionNamespacedEventRequest fieldSelector(String fieldSelec * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedEventRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -523,7 +550,7 @@ public APIdeleteCollectionNamespacedEventRequest gracePeriodSeconds(Integer grac * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedEventRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -533,7 +560,7 @@ public APIdeleteCollectionNamespacedEventRequest ignoreStoreReadErrorWithCluster * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedEventRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -543,7 +570,7 @@ public APIdeleteCollectionNamespacedEventRequest labelSelector(String labelSelec * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedEventRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -553,7 +580,7 @@ public APIdeleteCollectionNamespacedEventRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedEventRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -563,7 +590,7 @@ public APIdeleteCollectionNamespacedEventRequest orphanDependents(Boolean orphan * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedEventRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -573,7 +600,7 @@ public APIdeleteCollectionNamespacedEventRequest propagationPolicy(String propag * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedEventRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -583,7 +610,7 @@ public APIdeleteCollectionNamespacedEventRequest resourceVersion(String resource * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedEventRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -593,7 +620,7 @@ public APIdeleteCollectionNamespacedEventRequest resourceVersionMatch(String res * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedEventRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -603,7 +630,7 @@ public APIdeleteCollectionNamespacedEventRequest sendInitialEvents(Boolean sendI * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedEventRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -613,7 +640,7 @@ public APIdeleteCollectionNamespacedEventRequest timeoutSeconds(Integer timeoutS * @param body (optional) * @return APIdeleteCollectionNamespacedEventRequest */ - public APIdeleteCollectionNamespacedEventRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedEventRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -624,7 +651,8 @@ public APIdeleteCollectionNamespacedEventRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -639,7 +667,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -655,7 +684,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -671,7 +701,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -688,16 +719,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedEventRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedEventRequest deleteCollectionNamespacedEvent(String namespace) { + public APIdeleteCollectionNamespacedEventRequest deleteCollectionNamespacedEvent(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedEventRequest(namespace); } - private okhttp3.Call deleteNamespacedEventCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedEventCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -772,7 +804,7 @@ private okhttp3.Call deleteNamespacedEventCall(String name, String namespace, St } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedEventValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedEventValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedEvent(Async)"); @@ -788,13 +820,13 @@ private okhttp3.Call deleteNamespacedEventValidateBeforeCall(String name, String } - private ApiResponse deleteNamespacedEventWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedEventWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedEventValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedEventAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedEventAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedEventValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -803,17 +835,26 @@ private okhttp3.Call deleteNamespacedEventAsync(String name, String namespace, S } public class APIdeleteNamespacedEventRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedEventRequest(String name, String namespace) { + private APIdeleteNamespacedEventRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -823,7 +864,7 @@ private APIdeleteNamespacedEventRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedEventRequest */ - public APIdeleteNamespacedEventRequest pretty(String pretty) { + public APIdeleteNamespacedEventRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -833,7 +874,7 @@ public APIdeleteNamespacedEventRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedEventRequest */ - public APIdeleteNamespacedEventRequest dryRun(String dryRun) { + public APIdeleteNamespacedEventRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -843,7 +884,7 @@ public APIdeleteNamespacedEventRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedEventRequest */ - public APIdeleteNamespacedEventRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedEventRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -853,7 +894,7 @@ public APIdeleteNamespacedEventRequest gracePeriodSeconds(Integer gracePeriodSec * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedEventRequest */ - public APIdeleteNamespacedEventRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedEventRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -863,7 +904,7 @@ public APIdeleteNamespacedEventRequest ignoreStoreReadErrorWithClusterBreakingPo * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedEventRequest */ - public APIdeleteNamespacedEventRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedEventRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -873,7 +914,7 @@ public APIdeleteNamespacedEventRequest orphanDependents(Boolean orphanDependents * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedEventRequest */ - public APIdeleteNamespacedEventRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedEventRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -883,7 +924,7 @@ public APIdeleteNamespacedEventRequest propagationPolicy(String propagationPolic * @param body (optional) * @return APIdeleteNamespacedEventRequest */ - public APIdeleteNamespacedEventRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedEventRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -894,7 +935,8 @@ public APIdeleteNamespacedEventRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -910,7 +952,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -927,7 +970,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -944,7 +988,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -963,14 +1008,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedEventRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedEventRequest deleteNamespacedEvent(String name, String namespace) { + public APIdeleteNamespacedEventRequest deleteNamespacedEvent(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedEventRequest(name, namespace); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -1052,7 +1098,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1067,7 +1114,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1083,7 +1131,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1099,7 +1148,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1115,7 +1165,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1124,7 +1175,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listEventForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEventForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1219,19 +1270,19 @@ private okhttp3.Call listEventForAllNamespacesCall(Boolean allowWatchBookmarks, } @SuppressWarnings("rawtypes") - private okhttp3.Call listEventForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEventForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listEventForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listEventForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listEventForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listEventForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listEventForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEventForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listEventForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1240,16 +1291,27 @@ private okhttp3.Call listEventForAllNamespacesAsync(Boolean allowWatchBookmarks, } public class APIlistEventForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistEventForAllNamespacesRequest() { @@ -1260,7 +1322,7 @@ private APIlistEventForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistEventForAllNamespacesRequest */ - public APIlistEventForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistEventForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1270,7 +1332,7 @@ public APIlistEventForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatc * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistEventForAllNamespacesRequest */ - public APIlistEventForAllNamespacesRequest _continue(String _continue) { + public APIlistEventForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1280,7 +1342,7 @@ public APIlistEventForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistEventForAllNamespacesRequest */ - public APIlistEventForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistEventForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1290,7 +1352,7 @@ public APIlistEventForAllNamespacesRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistEventForAllNamespacesRequest */ - public APIlistEventForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistEventForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1300,7 +1362,7 @@ public APIlistEventForAllNamespacesRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistEventForAllNamespacesRequest */ - public APIlistEventForAllNamespacesRequest limit(Integer limit) { + public APIlistEventForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1310,7 +1372,7 @@ public APIlistEventForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistEventForAllNamespacesRequest */ - public APIlistEventForAllNamespacesRequest pretty(String pretty) { + public APIlistEventForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1320,7 +1382,7 @@ public APIlistEventForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistEventForAllNamespacesRequest */ - public APIlistEventForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistEventForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1330,7 +1392,7 @@ public APIlistEventForAllNamespacesRequest resourceVersion(String resourceVersio * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistEventForAllNamespacesRequest */ - public APIlistEventForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistEventForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1340,7 +1402,7 @@ public APIlistEventForAllNamespacesRequest resourceVersionMatch(String resourceV * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistEventForAllNamespacesRequest */ - public APIlistEventForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistEventForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1350,7 +1412,7 @@ public APIlistEventForAllNamespacesRequest sendInitialEvents(Boolean sendInitial * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistEventForAllNamespacesRequest */ - public APIlistEventForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistEventForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1360,7 +1422,7 @@ public APIlistEventForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistEventForAllNamespacesRequest */ - public APIlistEventForAllNamespacesRequest watch(Boolean watch) { + public APIlistEventForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1371,7 +1433,8 @@ public APIlistEventForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1386,7 +1449,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return EventsV1EventList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1402,7 +1466,8 @@ public EventsV1EventList execute() throws ApiException { * @return ApiResponse<EventsV1EventList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1418,7 +1483,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1434,7 +1500,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * list or watch objects of kind Event * @return APIlistEventForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1443,7 +1510,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistEventForAllNamespacesRequest listEventForAllNamespaces() { return new APIlistEventForAllNamespacesRequest(); } - private okhttp3.Call listNamespacedEventCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEventCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1539,7 +1606,7 @@ private okhttp3.Call listNamespacedEventCall(String namespace, String pretty, Bo } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedEventValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEventValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedEvent(Async)"); @@ -1550,13 +1617,13 @@ private okhttp3.Call listNamespacedEventValidateBeforeCall(String namespace, Str } - private ApiResponse listNamespacedEventWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedEventWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedEventValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedEventAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEventAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedEventValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1565,20 +1632,32 @@ private okhttp3.Call listNamespacedEventAsync(String namespace, String pretty, B } public class APIlistNamespacedEventRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedEventRequest(String namespace) { + private APIlistNamespacedEventRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -1587,7 +1666,7 @@ private APIlistNamespacedEventRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedEventRequest */ - public APIlistNamespacedEventRequest pretty(String pretty) { + public APIlistNamespacedEventRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1597,7 +1676,7 @@ public APIlistNamespacedEventRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedEventRequest */ - public APIlistNamespacedEventRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedEventRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1607,7 +1686,7 @@ public APIlistNamespacedEventRequest allowWatchBookmarks(Boolean allowWatchBookm * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedEventRequest */ - public APIlistNamespacedEventRequest _continue(String _continue) { + public APIlistNamespacedEventRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1617,7 +1696,7 @@ public APIlistNamespacedEventRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedEventRequest */ - public APIlistNamespacedEventRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedEventRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1627,7 +1706,7 @@ public APIlistNamespacedEventRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedEventRequest */ - public APIlistNamespacedEventRequest labelSelector(String labelSelector) { + public APIlistNamespacedEventRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1637,7 +1716,7 @@ public APIlistNamespacedEventRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedEventRequest */ - public APIlistNamespacedEventRequest limit(Integer limit) { + public APIlistNamespacedEventRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1647,7 +1726,7 @@ public APIlistNamespacedEventRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedEventRequest */ - public APIlistNamespacedEventRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedEventRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1657,7 +1736,7 @@ public APIlistNamespacedEventRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedEventRequest */ - public APIlistNamespacedEventRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedEventRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1667,7 +1746,7 @@ public APIlistNamespacedEventRequest resourceVersionMatch(String resourceVersion * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedEventRequest */ - public APIlistNamespacedEventRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedEventRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1677,7 +1756,7 @@ public APIlistNamespacedEventRequest sendInitialEvents(Boolean sendInitialEvents * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedEventRequest */ - public APIlistNamespacedEventRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedEventRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1687,7 +1766,7 @@ public APIlistNamespacedEventRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedEventRequest */ - public APIlistNamespacedEventRequest watch(Boolean watch) { + public APIlistNamespacedEventRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1698,7 +1777,8 @@ public APIlistNamespacedEventRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1713,7 +1793,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return EventsV1EventList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1729,7 +1810,8 @@ public EventsV1EventList execute() throws ApiException { * @return ApiResponse<EventsV1EventList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1745,7 +1827,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1762,16 +1845,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedEventRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedEventRequest listNamespacedEvent(String namespace) { + public APIlistNamespacedEventRequest listNamespacedEvent(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedEventRequest(namespace); } - private okhttp3.Call patchNamespacedEventCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedEventCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1842,7 +1926,7 @@ private okhttp3.Call patchNamespacedEventCall(String name, String namespace, V1P } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedEventValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedEventValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedEvent(Async)"); @@ -1863,13 +1947,13 @@ private okhttp3.Call patchNamespacedEventValidateBeforeCall(String name, String } - private ApiResponse patchNamespacedEventWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedEventWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedEventAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedEventAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1878,16 +1962,24 @@ private okhttp3.Call patchNamespacedEventAsync(String name, String namespace, V1 } public class APIpatchNamespacedEventRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedEventRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedEventRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -1898,7 +1990,7 @@ private APIpatchNamespacedEventRequest(String name, String namespace, V1Patch bo * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedEventRequest */ - public APIpatchNamespacedEventRequest pretty(String pretty) { + public APIpatchNamespacedEventRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1908,7 +2000,7 @@ public APIpatchNamespacedEventRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedEventRequest */ - public APIpatchNamespacedEventRequest dryRun(String dryRun) { + public APIpatchNamespacedEventRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1918,7 +2010,7 @@ public APIpatchNamespacedEventRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedEventRequest */ - public APIpatchNamespacedEventRequest fieldManager(String fieldManager) { + public APIpatchNamespacedEventRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1928,7 +2020,7 @@ public APIpatchNamespacedEventRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedEventRequest */ - public APIpatchNamespacedEventRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedEventRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1938,7 +2030,7 @@ public APIpatchNamespacedEventRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedEventRequest */ - public APIpatchNamespacedEventRequest force(Boolean force) { + public APIpatchNamespacedEventRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1949,7 +2041,8 @@ public APIpatchNamespacedEventRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1965,7 +2058,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return EventsV1Event * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1982,7 +2076,8 @@ public EventsV1Event execute() throws ApiException { * @return ApiResponse<EventsV1Event> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1999,7 +2094,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2019,17 +2115,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param body (required) * @return APIpatchNamespacedEventRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedEventRequest patchNamespacedEvent(String name, String namespace, V1Patch body) { + public APIpatchNamespacedEventRequest patchNamespacedEvent(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedEventRequest(name, namespace, body); } - private okhttp3.Call readNamespacedEventCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedEventCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2083,7 +2180,7 @@ private okhttp3.Call readNamespacedEventCall(String name, String namespace, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedEventValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedEventValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedEvent(Async)"); @@ -2099,13 +2196,13 @@ private okhttp3.Call readNamespacedEventValidateBeforeCall(String name, String n } - private ApiResponse readNamespacedEventWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedEventWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedEventValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedEventAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedEventAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedEventValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2114,11 +2211,14 @@ private okhttp3.Call readNamespacedEventAsync(String name, String namespace, Str } public class APIreadNamespacedEventRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedEventRequest(String name, String namespace) { + private APIreadNamespacedEventRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -2128,7 +2228,7 @@ private APIreadNamespacedEventRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedEventRequest */ - public APIreadNamespacedEventRequest pretty(String pretty) { + public APIreadNamespacedEventRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2139,7 +2239,8 @@ public APIreadNamespacedEventRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2154,7 +2255,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return EventsV1Event * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2170,7 +2272,8 @@ public EventsV1Event execute() throws ApiException { * @return ApiResponse<EventsV1Event> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2186,7 +2289,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2204,16 +2308,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedEventRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedEventRequest readNamespacedEvent(String name, String namespace) { + public APIreadNamespacedEventRequest readNamespacedEvent(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedEventRequest(name, namespace); } - private okhttp3.Call replaceNamespacedEventCall(String name, String namespace, EventsV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedEventCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull EventsV1Event body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2280,7 +2385,7 @@ private okhttp3.Call replaceNamespacedEventCall(String name, String namespace, E } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedEventValidateBeforeCall(String name, String namespace, EventsV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedEventValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull EventsV1Event body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedEvent(Async)"); @@ -2301,13 +2406,13 @@ private okhttp3.Call replaceNamespacedEventValidateBeforeCall(String name, Strin } - private ApiResponse replaceNamespacedEventWithHttpInfo(String name, String namespace, EventsV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedEventWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull EventsV1Event body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedEventAsync(String name, String namespace, EventsV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedEventAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull EventsV1Event body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2316,15 +2421,22 @@ private okhttp3.Call replaceNamespacedEventAsync(String name, String namespace, } public class APIreplaceNamespacedEventRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final EventsV1Event body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedEventRequest(String name, String namespace, EventsV1Event body) { + private APIreplaceNamespacedEventRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull EventsV1Event body) { this.name = name; this.namespace = namespace; this.body = body; @@ -2335,7 +2447,7 @@ private APIreplaceNamespacedEventRequest(String name, String namespace, EventsV1 * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedEventRequest */ - public APIreplaceNamespacedEventRequest pretty(String pretty) { + public APIreplaceNamespacedEventRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2345,7 +2457,7 @@ public APIreplaceNamespacedEventRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedEventRequest */ - public APIreplaceNamespacedEventRequest dryRun(String dryRun) { + public APIreplaceNamespacedEventRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2355,7 +2467,7 @@ public APIreplaceNamespacedEventRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedEventRequest */ - public APIreplaceNamespacedEventRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedEventRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2365,7 +2477,7 @@ public APIreplaceNamespacedEventRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedEventRequest */ - public APIreplaceNamespacedEventRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedEventRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2376,7 +2488,8 @@ public APIreplaceNamespacedEventRequest fieldValidation(String fieldValidation) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2392,7 +2505,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return EventsV1Event * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2409,7 +2523,8 @@ public EventsV1Event execute() throws ApiException { * @return ApiResponse<EventsV1Event> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2426,7 +2541,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2446,14 +2562,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param body (required) * @return APIreplaceNamespacedEventRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedEventRequest replaceNamespacedEvent(String name, String namespace, EventsV1Event body) { + public APIreplaceNamespacedEventRequest replaceNamespacedEvent(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull EventsV1Event body) { return new APIreplaceNamespacedEventRequest(name, namespace, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverApi.java index c03971cdc9..0752e8da72 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverApi.java @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1Api.java index 56dfdbf3b8..fbbb3bd7b4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1Api.java @@ -78,7 +78,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createFlowSchemaCall(V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createFlowSchemaCall(@jakarta.annotation.Nonnull V1FlowSchema body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -143,7 +143,7 @@ private okhttp3.Call createFlowSchemaCall(V1FlowSchema body, String pretty, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call createFlowSchemaValidateBeforeCall(V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createFlowSchemaValidateBeforeCall(@jakarta.annotation.Nonnull V1FlowSchema body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createFlowSchema(Async)"); @@ -154,13 +154,13 @@ private okhttp3.Call createFlowSchemaValidateBeforeCall(V1FlowSchema body, Strin } - private ApiResponse createFlowSchemaWithHttpInfo(V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createFlowSchemaWithHttpInfo(@jakarta.annotation.Nonnull V1FlowSchema body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createFlowSchemaValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createFlowSchemaAsync(V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createFlowSchemaAsync(@jakarta.annotation.Nonnull V1FlowSchema body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createFlowSchemaValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -169,13 +169,18 @@ private okhttp3.Call createFlowSchemaAsync(V1FlowSchema body, String pretty, Str } public class APIcreateFlowSchemaRequest { + @jakarta.annotation.Nonnull private final V1FlowSchema body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateFlowSchemaRequest(V1FlowSchema body) { + private APIcreateFlowSchemaRequest(@jakarta.annotation.Nonnull V1FlowSchema body) { this.body = body; } @@ -184,7 +189,7 @@ private APIcreateFlowSchemaRequest(V1FlowSchema body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateFlowSchemaRequest */ - public APIcreateFlowSchemaRequest pretty(String pretty) { + public APIcreateFlowSchemaRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -194,7 +199,7 @@ public APIcreateFlowSchemaRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateFlowSchemaRequest */ - public APIcreateFlowSchemaRequest dryRun(String dryRun) { + public APIcreateFlowSchemaRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -204,7 +209,7 @@ public APIcreateFlowSchemaRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateFlowSchemaRequest */ - public APIcreateFlowSchemaRequest fieldManager(String fieldManager) { + public APIcreateFlowSchemaRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -214,7 +219,7 @@ public APIcreateFlowSchemaRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateFlowSchemaRequest */ - public APIcreateFlowSchemaRequest fieldValidation(String fieldValidation) { + public APIcreateFlowSchemaRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -225,7 +230,8 @@ public APIcreateFlowSchemaRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -242,7 +248,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1FlowSchema * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -260,7 +267,8 @@ public V1FlowSchema execute() throws ApiException { * @return ApiResponse<V1FlowSchema> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -278,7 +286,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -297,7 +306,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIcreateFlowSchemaRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -305,10 +315,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateFlowSchemaRequest createFlowSchema(V1FlowSchema body) { + public APIcreateFlowSchemaRequest createFlowSchema(@jakarta.annotation.Nonnull V1FlowSchema body) { return new APIcreateFlowSchemaRequest(body); } - private okhttp3.Call createPriorityLevelConfigurationCall(V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createPriorityLevelConfigurationCall(@jakarta.annotation.Nonnull V1PriorityLevelConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -373,7 +383,7 @@ private okhttp3.Call createPriorityLevelConfigurationCall(V1PriorityLevelConfigu } @SuppressWarnings("rawtypes") - private okhttp3.Call createPriorityLevelConfigurationValidateBeforeCall(V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createPriorityLevelConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull V1PriorityLevelConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createPriorityLevelConfiguration(Async)"); @@ -384,13 +394,13 @@ private okhttp3.Call createPriorityLevelConfigurationValidateBeforeCall(V1Priori } - private ApiResponse createPriorityLevelConfigurationWithHttpInfo(V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createPriorityLevelConfigurationWithHttpInfo(@jakarta.annotation.Nonnull V1PriorityLevelConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createPriorityLevelConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createPriorityLevelConfigurationAsync(V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createPriorityLevelConfigurationAsync(@jakarta.annotation.Nonnull V1PriorityLevelConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createPriorityLevelConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -399,13 +409,18 @@ private okhttp3.Call createPriorityLevelConfigurationAsync(V1PriorityLevelConfig } public class APIcreatePriorityLevelConfigurationRequest { + @jakarta.annotation.Nonnull private final V1PriorityLevelConfiguration body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreatePriorityLevelConfigurationRequest(V1PriorityLevelConfiguration body) { + private APIcreatePriorityLevelConfigurationRequest(@jakarta.annotation.Nonnull V1PriorityLevelConfiguration body) { this.body = body; } @@ -414,7 +429,7 @@ private APIcreatePriorityLevelConfigurationRequest(V1PriorityLevelConfiguration * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreatePriorityLevelConfigurationRequest */ - public APIcreatePriorityLevelConfigurationRequest pretty(String pretty) { + public APIcreatePriorityLevelConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -424,7 +439,7 @@ public APIcreatePriorityLevelConfigurationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreatePriorityLevelConfigurationRequest */ - public APIcreatePriorityLevelConfigurationRequest dryRun(String dryRun) { + public APIcreatePriorityLevelConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -434,7 +449,7 @@ public APIcreatePriorityLevelConfigurationRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreatePriorityLevelConfigurationRequest */ - public APIcreatePriorityLevelConfigurationRequest fieldManager(String fieldManager) { + public APIcreatePriorityLevelConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -444,7 +459,7 @@ public APIcreatePriorityLevelConfigurationRequest fieldManager(String fieldManag * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreatePriorityLevelConfigurationRequest */ - public APIcreatePriorityLevelConfigurationRequest fieldValidation(String fieldValidation) { + public APIcreatePriorityLevelConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -455,7 +470,8 @@ public APIcreatePriorityLevelConfigurationRequest fieldValidation(String fieldVa * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -472,7 +488,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PriorityLevelConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -490,7 +507,8 @@ public V1PriorityLevelConfiguration execute() throws ApiException { * @return ApiResponse<V1PriorityLevelConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -508,7 +526,8 @@ public ApiResponse executeWithHttpInfo() throws Ap * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -527,7 +546,8 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIcreatePriorityLevelConfigurationRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -535,10 +555,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreatePriorityLevelConfigurationRequest createPriorityLevelConfiguration(V1PriorityLevelConfiguration body) { + public APIcreatePriorityLevelConfigurationRequest createPriorityLevelConfiguration(@jakarta.annotation.Nonnull V1PriorityLevelConfiguration body) { return new APIcreatePriorityLevelConfigurationRequest(body); } - private okhttp3.Call deleteCollectionFlowSchemaCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionFlowSchemaCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -643,19 +663,19 @@ private okhttp3.Call deleteCollectionFlowSchemaCall(String pretty, String _conti } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionFlowSchemaValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionFlowSchemaValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionFlowSchemaCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionFlowSchemaWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionFlowSchemaWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionFlowSchemaValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionFlowSchemaAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionFlowSchemaAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionFlowSchemaValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -664,20 +684,35 @@ private okhttp3.Call deleteCollectionFlowSchemaAsync(String pretty, String _cont } public class APIdeleteCollectionFlowSchemaRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionFlowSchemaRequest() { @@ -688,7 +723,7 @@ private APIdeleteCollectionFlowSchemaRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionFlowSchemaRequest */ - public APIdeleteCollectionFlowSchemaRequest pretty(String pretty) { + public APIdeleteCollectionFlowSchemaRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -698,7 +733,7 @@ public APIdeleteCollectionFlowSchemaRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionFlowSchemaRequest */ - public APIdeleteCollectionFlowSchemaRequest _continue(String _continue) { + public APIdeleteCollectionFlowSchemaRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -708,7 +743,7 @@ public APIdeleteCollectionFlowSchemaRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionFlowSchemaRequest */ - public APIdeleteCollectionFlowSchemaRequest dryRun(String dryRun) { + public APIdeleteCollectionFlowSchemaRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -718,7 +753,7 @@ public APIdeleteCollectionFlowSchemaRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionFlowSchemaRequest */ - public APIdeleteCollectionFlowSchemaRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionFlowSchemaRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -728,7 +763,7 @@ public APIdeleteCollectionFlowSchemaRequest fieldSelector(String fieldSelector) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionFlowSchemaRequest */ - public APIdeleteCollectionFlowSchemaRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionFlowSchemaRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -738,7 +773,7 @@ public APIdeleteCollectionFlowSchemaRequest gracePeriodSeconds(Integer gracePeri * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionFlowSchemaRequest */ - public APIdeleteCollectionFlowSchemaRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionFlowSchemaRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -748,7 +783,7 @@ public APIdeleteCollectionFlowSchemaRequest ignoreStoreReadErrorWithClusterBreak * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionFlowSchemaRequest */ - public APIdeleteCollectionFlowSchemaRequest labelSelector(String labelSelector) { + public APIdeleteCollectionFlowSchemaRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -758,7 +793,7 @@ public APIdeleteCollectionFlowSchemaRequest labelSelector(String labelSelector) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionFlowSchemaRequest */ - public APIdeleteCollectionFlowSchemaRequest limit(Integer limit) { + public APIdeleteCollectionFlowSchemaRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -768,7 +803,7 @@ public APIdeleteCollectionFlowSchemaRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionFlowSchemaRequest */ - public APIdeleteCollectionFlowSchemaRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionFlowSchemaRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -778,7 +813,7 @@ public APIdeleteCollectionFlowSchemaRequest orphanDependents(Boolean orphanDepen * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionFlowSchemaRequest */ - public APIdeleteCollectionFlowSchemaRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionFlowSchemaRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -788,7 +823,7 @@ public APIdeleteCollectionFlowSchemaRequest propagationPolicy(String propagation * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionFlowSchemaRequest */ - public APIdeleteCollectionFlowSchemaRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionFlowSchemaRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -798,7 +833,7 @@ public APIdeleteCollectionFlowSchemaRequest resourceVersion(String resourceVersi * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionFlowSchemaRequest */ - public APIdeleteCollectionFlowSchemaRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionFlowSchemaRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -808,7 +843,7 @@ public APIdeleteCollectionFlowSchemaRequest resourceVersionMatch(String resource * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionFlowSchemaRequest */ - public APIdeleteCollectionFlowSchemaRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionFlowSchemaRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -818,7 +853,7 @@ public APIdeleteCollectionFlowSchemaRequest sendInitialEvents(Boolean sendInitia * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionFlowSchemaRequest */ - public APIdeleteCollectionFlowSchemaRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionFlowSchemaRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -828,7 +863,7 @@ public APIdeleteCollectionFlowSchemaRequest timeoutSeconds(Integer timeoutSecond * @param body (optional) * @return APIdeleteCollectionFlowSchemaRequest */ - public APIdeleteCollectionFlowSchemaRequest body(V1DeleteOptions body) { + public APIdeleteCollectionFlowSchemaRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -839,7 +874,8 @@ public APIdeleteCollectionFlowSchemaRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -854,7 +890,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -870,7 +907,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -886,7 +924,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -902,7 +941,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of FlowSchema * @return APIdeleteCollectionFlowSchemaRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -911,7 +951,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionFlowSchemaRequest deleteCollectionFlowSchema() { return new APIdeleteCollectionFlowSchemaRequest(); } - private okhttp3.Call deleteCollectionPriorityLevelConfigurationCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionPriorityLevelConfigurationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1016,19 +1056,19 @@ private okhttp3.Call deleteCollectionPriorityLevelConfigurationCall(String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionPriorityLevelConfigurationValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionPriorityLevelConfigurationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionPriorityLevelConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionPriorityLevelConfigurationWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionPriorityLevelConfigurationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionPriorityLevelConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionPriorityLevelConfigurationAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionPriorityLevelConfigurationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionPriorityLevelConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1037,20 +1077,35 @@ private okhttp3.Call deleteCollectionPriorityLevelConfigurationAsync(String pret } public class APIdeleteCollectionPriorityLevelConfigurationRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionPriorityLevelConfigurationRequest() { @@ -1061,7 +1116,7 @@ private APIdeleteCollectionPriorityLevelConfigurationRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionPriorityLevelConfigurationRequest */ - public APIdeleteCollectionPriorityLevelConfigurationRequest pretty(String pretty) { + public APIdeleteCollectionPriorityLevelConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1071,7 +1126,7 @@ public APIdeleteCollectionPriorityLevelConfigurationRequest pretty(String pretty * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionPriorityLevelConfigurationRequest */ - public APIdeleteCollectionPriorityLevelConfigurationRequest _continue(String _continue) { + public APIdeleteCollectionPriorityLevelConfigurationRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1081,7 +1136,7 @@ public APIdeleteCollectionPriorityLevelConfigurationRequest _continue(String _co * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionPriorityLevelConfigurationRequest */ - public APIdeleteCollectionPriorityLevelConfigurationRequest dryRun(String dryRun) { + public APIdeleteCollectionPriorityLevelConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1091,7 +1146,7 @@ public APIdeleteCollectionPriorityLevelConfigurationRequest dryRun(String dryRun * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionPriorityLevelConfigurationRequest */ - public APIdeleteCollectionPriorityLevelConfigurationRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionPriorityLevelConfigurationRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1101,7 +1156,7 @@ public APIdeleteCollectionPriorityLevelConfigurationRequest fieldSelector(String * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionPriorityLevelConfigurationRequest */ - public APIdeleteCollectionPriorityLevelConfigurationRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionPriorityLevelConfigurationRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1111,7 +1166,7 @@ public APIdeleteCollectionPriorityLevelConfigurationRequest gracePeriodSeconds(I * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionPriorityLevelConfigurationRequest */ - public APIdeleteCollectionPriorityLevelConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionPriorityLevelConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1121,7 +1176,7 @@ public APIdeleteCollectionPriorityLevelConfigurationRequest ignoreStoreReadError * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionPriorityLevelConfigurationRequest */ - public APIdeleteCollectionPriorityLevelConfigurationRequest labelSelector(String labelSelector) { + public APIdeleteCollectionPriorityLevelConfigurationRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1131,7 +1186,7 @@ public APIdeleteCollectionPriorityLevelConfigurationRequest labelSelector(String * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionPriorityLevelConfigurationRequest */ - public APIdeleteCollectionPriorityLevelConfigurationRequest limit(Integer limit) { + public APIdeleteCollectionPriorityLevelConfigurationRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1141,7 +1196,7 @@ public APIdeleteCollectionPriorityLevelConfigurationRequest limit(Integer limit) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionPriorityLevelConfigurationRequest */ - public APIdeleteCollectionPriorityLevelConfigurationRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionPriorityLevelConfigurationRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1151,7 +1206,7 @@ public APIdeleteCollectionPriorityLevelConfigurationRequest orphanDependents(Boo * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionPriorityLevelConfigurationRequest */ - public APIdeleteCollectionPriorityLevelConfigurationRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionPriorityLevelConfigurationRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1161,7 +1216,7 @@ public APIdeleteCollectionPriorityLevelConfigurationRequest propagationPolicy(St * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionPriorityLevelConfigurationRequest */ - public APIdeleteCollectionPriorityLevelConfigurationRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionPriorityLevelConfigurationRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1171,7 +1226,7 @@ public APIdeleteCollectionPriorityLevelConfigurationRequest resourceVersion(Stri * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionPriorityLevelConfigurationRequest */ - public APIdeleteCollectionPriorityLevelConfigurationRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionPriorityLevelConfigurationRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1181,7 +1236,7 @@ public APIdeleteCollectionPriorityLevelConfigurationRequest resourceVersionMatch * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionPriorityLevelConfigurationRequest */ - public APIdeleteCollectionPriorityLevelConfigurationRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionPriorityLevelConfigurationRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1191,7 +1246,7 @@ public APIdeleteCollectionPriorityLevelConfigurationRequest sendInitialEvents(Bo * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionPriorityLevelConfigurationRequest */ - public APIdeleteCollectionPriorityLevelConfigurationRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionPriorityLevelConfigurationRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1201,7 +1256,7 @@ public APIdeleteCollectionPriorityLevelConfigurationRequest timeoutSeconds(Integ * @param body (optional) * @return APIdeleteCollectionPriorityLevelConfigurationRequest */ - public APIdeleteCollectionPriorityLevelConfigurationRequest body(V1DeleteOptions body) { + public APIdeleteCollectionPriorityLevelConfigurationRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1212,7 +1267,8 @@ public APIdeleteCollectionPriorityLevelConfigurationRequest body(V1DeleteOptions * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1227,7 +1283,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1243,7 +1300,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1259,7 +1317,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1275,7 +1334,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of PriorityLevelConfiguration * @return APIdeleteCollectionPriorityLevelConfigurationRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1284,7 +1344,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionPriorityLevelConfigurationRequest deleteCollectionPriorityLevelConfiguration() { return new APIdeleteCollectionPriorityLevelConfigurationRequest(); } - private okhttp3.Call deleteFlowSchemaCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteFlowSchemaCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1358,7 +1418,7 @@ private okhttp3.Call deleteFlowSchemaCall(String name, String pretty, String dry } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteFlowSchemaValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteFlowSchemaValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteFlowSchema(Async)"); @@ -1369,13 +1429,13 @@ private okhttp3.Call deleteFlowSchemaValidateBeforeCall(String name, String pret } - private ApiResponse deleteFlowSchemaWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteFlowSchemaWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteFlowSchemaValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteFlowSchemaAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteFlowSchemaAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteFlowSchemaValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1384,16 +1444,24 @@ private okhttp3.Call deleteFlowSchemaAsync(String name, String pretty, String dr } public class APIdeleteFlowSchemaRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteFlowSchemaRequest(String name) { + private APIdeleteFlowSchemaRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -1402,7 +1470,7 @@ private APIdeleteFlowSchemaRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteFlowSchemaRequest */ - public APIdeleteFlowSchemaRequest pretty(String pretty) { + public APIdeleteFlowSchemaRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1412,7 +1480,7 @@ public APIdeleteFlowSchemaRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteFlowSchemaRequest */ - public APIdeleteFlowSchemaRequest dryRun(String dryRun) { + public APIdeleteFlowSchemaRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1422,7 +1490,7 @@ public APIdeleteFlowSchemaRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteFlowSchemaRequest */ - public APIdeleteFlowSchemaRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteFlowSchemaRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1432,7 +1500,7 @@ public APIdeleteFlowSchemaRequest gracePeriodSeconds(Integer gracePeriodSeconds) * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteFlowSchemaRequest */ - public APIdeleteFlowSchemaRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteFlowSchemaRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1442,7 +1510,7 @@ public APIdeleteFlowSchemaRequest ignoreStoreReadErrorWithClusterBreakingPotenti * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteFlowSchemaRequest */ - public APIdeleteFlowSchemaRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteFlowSchemaRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1452,7 +1520,7 @@ public APIdeleteFlowSchemaRequest orphanDependents(Boolean orphanDependents) { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteFlowSchemaRequest */ - public APIdeleteFlowSchemaRequest propagationPolicy(String propagationPolicy) { + public APIdeleteFlowSchemaRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1462,7 +1530,7 @@ public APIdeleteFlowSchemaRequest propagationPolicy(String propagationPolicy) { * @param body (optional) * @return APIdeleteFlowSchemaRequest */ - public APIdeleteFlowSchemaRequest body(V1DeleteOptions body) { + public APIdeleteFlowSchemaRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1473,7 +1541,8 @@ public APIdeleteFlowSchemaRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1489,7 +1558,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1506,7 +1576,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1523,7 +1594,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1541,17 +1613,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the FlowSchema (required) * @return APIdeleteFlowSchemaRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteFlowSchemaRequest deleteFlowSchema(String name) { + public APIdeleteFlowSchemaRequest deleteFlowSchema(@jakarta.annotation.Nonnull String name) { return new APIdeleteFlowSchemaRequest(name); } - private okhttp3.Call deletePriorityLevelConfigurationCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePriorityLevelConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1625,7 +1698,7 @@ private okhttp3.Call deletePriorityLevelConfigurationCall(String name, String pr } @SuppressWarnings("rawtypes") - private okhttp3.Call deletePriorityLevelConfigurationValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePriorityLevelConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deletePriorityLevelConfiguration(Async)"); @@ -1636,13 +1709,13 @@ private okhttp3.Call deletePriorityLevelConfigurationValidateBeforeCall(String n } - private ApiResponse deletePriorityLevelConfigurationWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deletePriorityLevelConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deletePriorityLevelConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deletePriorityLevelConfigurationAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePriorityLevelConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deletePriorityLevelConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1651,16 +1724,24 @@ private okhttp3.Call deletePriorityLevelConfigurationAsync(String name, String p } public class APIdeletePriorityLevelConfigurationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeletePriorityLevelConfigurationRequest(String name) { + private APIdeletePriorityLevelConfigurationRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -1669,7 +1750,7 @@ private APIdeletePriorityLevelConfigurationRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeletePriorityLevelConfigurationRequest */ - public APIdeletePriorityLevelConfigurationRequest pretty(String pretty) { + public APIdeletePriorityLevelConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1679,7 +1760,7 @@ public APIdeletePriorityLevelConfigurationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeletePriorityLevelConfigurationRequest */ - public APIdeletePriorityLevelConfigurationRequest dryRun(String dryRun) { + public APIdeletePriorityLevelConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1689,7 +1770,7 @@ public APIdeletePriorityLevelConfigurationRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeletePriorityLevelConfigurationRequest */ - public APIdeletePriorityLevelConfigurationRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeletePriorityLevelConfigurationRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1699,7 +1780,7 @@ public APIdeletePriorityLevelConfigurationRequest gracePeriodSeconds(Integer gra * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeletePriorityLevelConfigurationRequest */ - public APIdeletePriorityLevelConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeletePriorityLevelConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1709,7 +1790,7 @@ public APIdeletePriorityLevelConfigurationRequest ignoreStoreReadErrorWithCluste * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeletePriorityLevelConfigurationRequest */ - public APIdeletePriorityLevelConfigurationRequest orphanDependents(Boolean orphanDependents) { + public APIdeletePriorityLevelConfigurationRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1719,7 +1800,7 @@ public APIdeletePriorityLevelConfigurationRequest orphanDependents(Boolean orpha * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeletePriorityLevelConfigurationRequest */ - public APIdeletePriorityLevelConfigurationRequest propagationPolicy(String propagationPolicy) { + public APIdeletePriorityLevelConfigurationRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1729,7 +1810,7 @@ public APIdeletePriorityLevelConfigurationRequest propagationPolicy(String propa * @param body (optional) * @return APIdeletePriorityLevelConfigurationRequest */ - public APIdeletePriorityLevelConfigurationRequest body(V1DeleteOptions body) { + public APIdeletePriorityLevelConfigurationRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1740,7 +1821,8 @@ public APIdeletePriorityLevelConfigurationRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1756,7 +1838,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1773,7 +1856,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1790,7 +1874,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1808,14 +1893,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the PriorityLevelConfiguration (required) * @return APIdeletePriorityLevelConfigurationRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeletePriorityLevelConfigurationRequest deletePriorityLevelConfiguration(String name) { + public APIdeletePriorityLevelConfigurationRequest deletePriorityLevelConfiguration(@jakarta.annotation.Nonnull String name) { return new APIdeletePriorityLevelConfigurationRequest(name); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -1897,7 +1983,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1912,7 +1999,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1928,7 +2016,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1944,7 +2033,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1960,7 +2050,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1969,7 +2060,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listFlowSchemaCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listFlowSchemaCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2064,19 +2155,19 @@ private okhttp3.Call listFlowSchemaCall(String pretty, Boolean allowWatchBookmar } @SuppressWarnings("rawtypes") - private okhttp3.Call listFlowSchemaValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listFlowSchemaValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listFlowSchemaCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listFlowSchemaWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listFlowSchemaWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listFlowSchemaValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listFlowSchemaAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listFlowSchemaAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listFlowSchemaValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2085,16 +2176,27 @@ private okhttp3.Call listFlowSchemaAsync(String pretty, Boolean allowWatchBookma } public class APIlistFlowSchemaRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistFlowSchemaRequest() { @@ -2105,7 +2207,7 @@ private APIlistFlowSchemaRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistFlowSchemaRequest */ - public APIlistFlowSchemaRequest pretty(String pretty) { + public APIlistFlowSchemaRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2115,7 +2217,7 @@ public APIlistFlowSchemaRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistFlowSchemaRequest */ - public APIlistFlowSchemaRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistFlowSchemaRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -2125,7 +2227,7 @@ public APIlistFlowSchemaRequest allowWatchBookmarks(Boolean allowWatchBookmarks) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistFlowSchemaRequest */ - public APIlistFlowSchemaRequest _continue(String _continue) { + public APIlistFlowSchemaRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2135,7 +2237,7 @@ public APIlistFlowSchemaRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistFlowSchemaRequest */ - public APIlistFlowSchemaRequest fieldSelector(String fieldSelector) { + public APIlistFlowSchemaRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2145,7 +2247,7 @@ public APIlistFlowSchemaRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistFlowSchemaRequest */ - public APIlistFlowSchemaRequest labelSelector(String labelSelector) { + public APIlistFlowSchemaRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2155,7 +2257,7 @@ public APIlistFlowSchemaRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistFlowSchemaRequest */ - public APIlistFlowSchemaRequest limit(Integer limit) { + public APIlistFlowSchemaRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2165,7 +2267,7 @@ public APIlistFlowSchemaRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistFlowSchemaRequest */ - public APIlistFlowSchemaRequest resourceVersion(String resourceVersion) { + public APIlistFlowSchemaRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2175,7 +2277,7 @@ public APIlistFlowSchemaRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistFlowSchemaRequest */ - public APIlistFlowSchemaRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistFlowSchemaRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2185,7 +2287,7 @@ public APIlistFlowSchemaRequest resourceVersionMatch(String resourceVersionMatch * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistFlowSchemaRequest */ - public APIlistFlowSchemaRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistFlowSchemaRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2195,7 +2297,7 @@ public APIlistFlowSchemaRequest sendInitialEvents(Boolean sendInitialEvents) { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistFlowSchemaRequest */ - public APIlistFlowSchemaRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistFlowSchemaRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2205,7 +2307,7 @@ public APIlistFlowSchemaRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistFlowSchemaRequest */ - public APIlistFlowSchemaRequest watch(Boolean watch) { + public APIlistFlowSchemaRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -2216,7 +2318,8 @@ public APIlistFlowSchemaRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2231,7 +2334,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1FlowSchemaList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2247,7 +2351,8 @@ public V1FlowSchemaList execute() throws ApiException { * @return ApiResponse<V1FlowSchemaList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2263,7 +2368,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2279,7 +2385,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * list or watch objects of kind FlowSchema * @return APIlistFlowSchemaRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2288,7 +2395,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistFlowSchemaRequest listFlowSchema() { return new APIlistFlowSchemaRequest(); } - private okhttp3.Call listPriorityLevelConfigurationCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPriorityLevelConfigurationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2383,19 +2490,19 @@ private okhttp3.Call listPriorityLevelConfigurationCall(String pretty, Boolean a } @SuppressWarnings("rawtypes") - private okhttp3.Call listPriorityLevelConfigurationValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPriorityLevelConfigurationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listPriorityLevelConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listPriorityLevelConfigurationWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listPriorityLevelConfigurationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listPriorityLevelConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listPriorityLevelConfigurationAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPriorityLevelConfigurationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listPriorityLevelConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2404,16 +2511,27 @@ private okhttp3.Call listPriorityLevelConfigurationAsync(String pretty, Boolean } public class APIlistPriorityLevelConfigurationRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistPriorityLevelConfigurationRequest() { @@ -2424,7 +2542,7 @@ private APIlistPriorityLevelConfigurationRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistPriorityLevelConfigurationRequest */ - public APIlistPriorityLevelConfigurationRequest pretty(String pretty) { + public APIlistPriorityLevelConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2434,7 +2552,7 @@ public APIlistPriorityLevelConfigurationRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistPriorityLevelConfigurationRequest */ - public APIlistPriorityLevelConfigurationRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistPriorityLevelConfigurationRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -2444,7 +2562,7 @@ public APIlistPriorityLevelConfigurationRequest allowWatchBookmarks(Boolean allo * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistPriorityLevelConfigurationRequest */ - public APIlistPriorityLevelConfigurationRequest _continue(String _continue) { + public APIlistPriorityLevelConfigurationRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2454,7 +2572,7 @@ public APIlistPriorityLevelConfigurationRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistPriorityLevelConfigurationRequest */ - public APIlistPriorityLevelConfigurationRequest fieldSelector(String fieldSelector) { + public APIlistPriorityLevelConfigurationRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2464,7 +2582,7 @@ public APIlistPriorityLevelConfigurationRequest fieldSelector(String fieldSelect * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistPriorityLevelConfigurationRequest */ - public APIlistPriorityLevelConfigurationRequest labelSelector(String labelSelector) { + public APIlistPriorityLevelConfigurationRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2474,7 +2592,7 @@ public APIlistPriorityLevelConfigurationRequest labelSelector(String labelSelect * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistPriorityLevelConfigurationRequest */ - public APIlistPriorityLevelConfigurationRequest limit(Integer limit) { + public APIlistPriorityLevelConfigurationRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2484,7 +2602,7 @@ public APIlistPriorityLevelConfigurationRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistPriorityLevelConfigurationRequest */ - public APIlistPriorityLevelConfigurationRequest resourceVersion(String resourceVersion) { + public APIlistPriorityLevelConfigurationRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2494,7 +2612,7 @@ public APIlistPriorityLevelConfigurationRequest resourceVersion(String resourceV * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistPriorityLevelConfigurationRequest */ - public APIlistPriorityLevelConfigurationRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistPriorityLevelConfigurationRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2504,7 +2622,7 @@ public APIlistPriorityLevelConfigurationRequest resourceVersionMatch(String reso * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistPriorityLevelConfigurationRequest */ - public APIlistPriorityLevelConfigurationRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistPriorityLevelConfigurationRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2514,7 +2632,7 @@ public APIlistPriorityLevelConfigurationRequest sendInitialEvents(Boolean sendIn * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistPriorityLevelConfigurationRequest */ - public APIlistPriorityLevelConfigurationRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistPriorityLevelConfigurationRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2524,7 +2642,7 @@ public APIlistPriorityLevelConfigurationRequest timeoutSeconds(Integer timeoutSe * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistPriorityLevelConfigurationRequest */ - public APIlistPriorityLevelConfigurationRequest watch(Boolean watch) { + public APIlistPriorityLevelConfigurationRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -2535,7 +2653,8 @@ public APIlistPriorityLevelConfigurationRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2550,7 +2669,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PriorityLevelConfigurationList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2566,7 +2686,8 @@ public V1PriorityLevelConfigurationList execute() throws ApiException { * @return ApiResponse<V1PriorityLevelConfigurationList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2582,7 +2703,8 @@ public ApiResponse executeWithHttpInfo() throw * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2598,7 +2720,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -2607,7 +2730,7 @@ public okhttp3.Call executeAsync(final ApiCallback patchFlowSchemaWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchFlowSchemaWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchFlowSchemaValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchFlowSchemaAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchFlowSchemaAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchFlowSchemaValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2708,15 +2831,22 @@ private okhttp3.Call patchFlowSchemaAsync(String name, V1Patch body, String pret } public class APIpatchFlowSchemaRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchFlowSchemaRequest(String name, V1Patch body) { + private APIpatchFlowSchemaRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -2726,7 +2856,7 @@ private APIpatchFlowSchemaRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchFlowSchemaRequest */ - public APIpatchFlowSchemaRequest pretty(String pretty) { + public APIpatchFlowSchemaRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2736,7 +2866,7 @@ public APIpatchFlowSchemaRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchFlowSchemaRequest */ - public APIpatchFlowSchemaRequest dryRun(String dryRun) { + public APIpatchFlowSchemaRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2746,7 +2876,7 @@ public APIpatchFlowSchemaRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchFlowSchemaRequest */ - public APIpatchFlowSchemaRequest fieldManager(String fieldManager) { + public APIpatchFlowSchemaRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2756,7 +2886,7 @@ public APIpatchFlowSchemaRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchFlowSchemaRequest */ - public APIpatchFlowSchemaRequest fieldValidation(String fieldValidation) { + public APIpatchFlowSchemaRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2766,7 +2896,7 @@ public APIpatchFlowSchemaRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchFlowSchemaRequest */ - public APIpatchFlowSchemaRequest force(Boolean force) { + public APIpatchFlowSchemaRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -2777,7 +2907,8 @@ public APIpatchFlowSchemaRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2793,7 +2924,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1FlowSchema * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2810,7 +2942,8 @@ public V1FlowSchema execute() throws ApiException { * @return ApiResponse<V1FlowSchema> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2827,7 +2960,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2846,17 +2980,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIpatchFlowSchemaRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchFlowSchemaRequest patchFlowSchema(String name, V1Patch body) { + public APIpatchFlowSchemaRequest patchFlowSchema(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchFlowSchemaRequest(name, body); } - private okhttp3.Call patchFlowSchemaStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchFlowSchemaStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2926,7 +3061,7 @@ private okhttp3.Call patchFlowSchemaStatusCall(String name, V1Patch body, String } @SuppressWarnings("rawtypes") - private okhttp3.Call patchFlowSchemaStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchFlowSchemaStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchFlowSchemaStatus(Async)"); @@ -2942,13 +3077,13 @@ private okhttp3.Call patchFlowSchemaStatusValidateBeforeCall(String name, V1Patc } - private ApiResponse patchFlowSchemaStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchFlowSchemaStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchFlowSchemaStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchFlowSchemaStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchFlowSchemaStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchFlowSchemaStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2957,15 +3092,22 @@ private okhttp3.Call patchFlowSchemaStatusAsync(String name, V1Patch body, Strin } public class APIpatchFlowSchemaStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchFlowSchemaStatusRequest(String name, V1Patch body) { + private APIpatchFlowSchemaStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -2975,7 +3117,7 @@ private APIpatchFlowSchemaStatusRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchFlowSchemaStatusRequest */ - public APIpatchFlowSchemaStatusRequest pretty(String pretty) { + public APIpatchFlowSchemaStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2985,7 +3127,7 @@ public APIpatchFlowSchemaStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchFlowSchemaStatusRequest */ - public APIpatchFlowSchemaStatusRequest dryRun(String dryRun) { + public APIpatchFlowSchemaStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2995,7 +3137,7 @@ public APIpatchFlowSchemaStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchFlowSchemaStatusRequest */ - public APIpatchFlowSchemaStatusRequest fieldManager(String fieldManager) { + public APIpatchFlowSchemaStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -3005,7 +3147,7 @@ public APIpatchFlowSchemaStatusRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchFlowSchemaStatusRequest */ - public APIpatchFlowSchemaStatusRequest fieldValidation(String fieldValidation) { + public APIpatchFlowSchemaStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -3015,7 +3157,7 @@ public APIpatchFlowSchemaStatusRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchFlowSchemaStatusRequest */ - public APIpatchFlowSchemaStatusRequest force(Boolean force) { + public APIpatchFlowSchemaStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -3026,7 +3168,8 @@ public APIpatchFlowSchemaStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3042,7 +3185,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1FlowSchema * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3059,7 +3203,8 @@ public V1FlowSchema execute() throws ApiException { * @return ApiResponse<V1FlowSchema> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3076,7 +3221,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3095,17 +3241,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIpatchFlowSchemaStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchFlowSchemaStatusRequest patchFlowSchemaStatus(String name, V1Patch body) { + public APIpatchFlowSchemaStatusRequest patchFlowSchemaStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchFlowSchemaStatusRequest(name, body); } - private okhttp3.Call patchPriorityLevelConfigurationCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchPriorityLevelConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3175,7 +3322,7 @@ private okhttp3.Call patchPriorityLevelConfigurationCall(String name, V1Patch bo } @SuppressWarnings("rawtypes") - private okhttp3.Call patchPriorityLevelConfigurationValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchPriorityLevelConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchPriorityLevelConfiguration(Async)"); @@ -3191,13 +3338,13 @@ private okhttp3.Call patchPriorityLevelConfigurationValidateBeforeCall(String na } - private ApiResponse patchPriorityLevelConfigurationWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchPriorityLevelConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchPriorityLevelConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchPriorityLevelConfigurationAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchPriorityLevelConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchPriorityLevelConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3206,15 +3353,22 @@ private okhttp3.Call patchPriorityLevelConfigurationAsync(String name, V1Patch b } public class APIpatchPriorityLevelConfigurationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchPriorityLevelConfigurationRequest(String name, V1Patch body) { + private APIpatchPriorityLevelConfigurationRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -3224,7 +3378,7 @@ private APIpatchPriorityLevelConfigurationRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchPriorityLevelConfigurationRequest */ - public APIpatchPriorityLevelConfigurationRequest pretty(String pretty) { + public APIpatchPriorityLevelConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3234,7 +3388,7 @@ public APIpatchPriorityLevelConfigurationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchPriorityLevelConfigurationRequest */ - public APIpatchPriorityLevelConfigurationRequest dryRun(String dryRun) { + public APIpatchPriorityLevelConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3244,7 +3398,7 @@ public APIpatchPriorityLevelConfigurationRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchPriorityLevelConfigurationRequest */ - public APIpatchPriorityLevelConfigurationRequest fieldManager(String fieldManager) { + public APIpatchPriorityLevelConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -3254,7 +3408,7 @@ public APIpatchPriorityLevelConfigurationRequest fieldManager(String fieldManage * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchPriorityLevelConfigurationRequest */ - public APIpatchPriorityLevelConfigurationRequest fieldValidation(String fieldValidation) { + public APIpatchPriorityLevelConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -3264,7 +3418,7 @@ public APIpatchPriorityLevelConfigurationRequest fieldValidation(String fieldVal * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchPriorityLevelConfigurationRequest */ - public APIpatchPriorityLevelConfigurationRequest force(Boolean force) { + public APIpatchPriorityLevelConfigurationRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -3275,7 +3429,8 @@ public APIpatchPriorityLevelConfigurationRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3291,7 +3446,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PriorityLevelConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3308,7 +3464,8 @@ public V1PriorityLevelConfiguration execute() throws ApiException { * @return ApiResponse<V1PriorityLevelConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3325,7 +3482,8 @@ public ApiResponse executeWithHttpInfo() throws Ap * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3344,17 +3502,18 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIpatchPriorityLevelConfigurationRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchPriorityLevelConfigurationRequest patchPriorityLevelConfiguration(String name, V1Patch body) { + public APIpatchPriorityLevelConfigurationRequest patchPriorityLevelConfiguration(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchPriorityLevelConfigurationRequest(name, body); } - private okhttp3.Call patchPriorityLevelConfigurationStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchPriorityLevelConfigurationStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3424,7 +3583,7 @@ private okhttp3.Call patchPriorityLevelConfigurationStatusCall(String name, V1Pa } @SuppressWarnings("rawtypes") - private okhttp3.Call patchPriorityLevelConfigurationStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchPriorityLevelConfigurationStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchPriorityLevelConfigurationStatus(Async)"); @@ -3440,13 +3599,13 @@ private okhttp3.Call patchPriorityLevelConfigurationStatusValidateBeforeCall(Str } - private ApiResponse patchPriorityLevelConfigurationStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchPriorityLevelConfigurationStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchPriorityLevelConfigurationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchPriorityLevelConfigurationStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchPriorityLevelConfigurationStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchPriorityLevelConfigurationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3455,15 +3614,22 @@ private okhttp3.Call patchPriorityLevelConfigurationStatusAsync(String name, V1P } public class APIpatchPriorityLevelConfigurationStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchPriorityLevelConfigurationStatusRequest(String name, V1Patch body) { + private APIpatchPriorityLevelConfigurationStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -3473,7 +3639,7 @@ private APIpatchPriorityLevelConfigurationStatusRequest(String name, V1Patch bod * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchPriorityLevelConfigurationStatusRequest */ - public APIpatchPriorityLevelConfigurationStatusRequest pretty(String pretty) { + public APIpatchPriorityLevelConfigurationStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3483,7 +3649,7 @@ public APIpatchPriorityLevelConfigurationStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchPriorityLevelConfigurationStatusRequest */ - public APIpatchPriorityLevelConfigurationStatusRequest dryRun(String dryRun) { + public APIpatchPriorityLevelConfigurationStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3493,7 +3659,7 @@ public APIpatchPriorityLevelConfigurationStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchPriorityLevelConfigurationStatusRequest */ - public APIpatchPriorityLevelConfigurationStatusRequest fieldManager(String fieldManager) { + public APIpatchPriorityLevelConfigurationStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -3503,7 +3669,7 @@ public APIpatchPriorityLevelConfigurationStatusRequest fieldManager(String field * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchPriorityLevelConfigurationStatusRequest */ - public APIpatchPriorityLevelConfigurationStatusRequest fieldValidation(String fieldValidation) { + public APIpatchPriorityLevelConfigurationStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -3513,7 +3679,7 @@ public APIpatchPriorityLevelConfigurationStatusRequest fieldValidation(String fi * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchPriorityLevelConfigurationStatusRequest */ - public APIpatchPriorityLevelConfigurationStatusRequest force(Boolean force) { + public APIpatchPriorityLevelConfigurationStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -3524,7 +3690,8 @@ public APIpatchPriorityLevelConfigurationStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3540,7 +3707,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PriorityLevelConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3557,7 +3725,8 @@ public V1PriorityLevelConfiguration execute() throws ApiException { * @return ApiResponse<V1PriorityLevelConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3574,7 +3743,8 @@ public ApiResponse executeWithHttpInfo() throws Ap * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3593,17 +3763,18 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIpatchPriorityLevelConfigurationStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchPriorityLevelConfigurationStatusRequest patchPriorityLevelConfigurationStatus(String name, V1Patch body) { + public APIpatchPriorityLevelConfigurationStatusRequest patchPriorityLevelConfigurationStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchPriorityLevelConfigurationStatusRequest(name, body); } - private okhttp3.Call readFlowSchemaCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readFlowSchemaCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3656,7 +3827,7 @@ private okhttp3.Call readFlowSchemaCall(String name, String pretty, final ApiCal } @SuppressWarnings("rawtypes") - private okhttp3.Call readFlowSchemaValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readFlowSchemaValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readFlowSchema(Async)"); @@ -3667,13 +3838,13 @@ private okhttp3.Call readFlowSchemaValidateBeforeCall(String name, String pretty } - private ApiResponse readFlowSchemaWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readFlowSchemaWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readFlowSchemaValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readFlowSchemaAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readFlowSchemaAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readFlowSchemaValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3682,10 +3853,12 @@ private okhttp3.Call readFlowSchemaAsync(String name, String pretty, final ApiCa } public class APIreadFlowSchemaRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadFlowSchemaRequest(String name) { + private APIreadFlowSchemaRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -3694,7 +3867,7 @@ private APIreadFlowSchemaRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadFlowSchemaRequest */ - public APIreadFlowSchemaRequest pretty(String pretty) { + public APIreadFlowSchemaRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3705,7 +3878,8 @@ public APIreadFlowSchemaRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3720,7 +3894,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1FlowSchema * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3736,7 +3911,8 @@ public V1FlowSchema execute() throws ApiException { * @return ApiResponse<V1FlowSchema> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3752,7 +3928,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3769,16 +3946,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param name name of the FlowSchema (required) * @return APIreadFlowSchemaRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadFlowSchemaRequest readFlowSchema(String name) { + public APIreadFlowSchemaRequest readFlowSchema(@jakarta.annotation.Nonnull String name) { return new APIreadFlowSchemaRequest(name); } - private okhttp3.Call readFlowSchemaStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readFlowSchemaStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3831,7 +4009,7 @@ private okhttp3.Call readFlowSchemaStatusCall(String name, String pretty, final } @SuppressWarnings("rawtypes") - private okhttp3.Call readFlowSchemaStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readFlowSchemaStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readFlowSchemaStatus(Async)"); @@ -3842,13 +4020,13 @@ private okhttp3.Call readFlowSchemaStatusValidateBeforeCall(String name, String } - private ApiResponse readFlowSchemaStatusWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readFlowSchemaStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readFlowSchemaStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readFlowSchemaStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readFlowSchemaStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readFlowSchemaStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3857,10 +4035,12 @@ private okhttp3.Call readFlowSchemaStatusAsync(String name, String pretty, final } public class APIreadFlowSchemaStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadFlowSchemaStatusRequest(String name) { + private APIreadFlowSchemaStatusRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -3869,7 +4049,7 @@ private APIreadFlowSchemaStatusRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadFlowSchemaStatusRequest */ - public APIreadFlowSchemaStatusRequest pretty(String pretty) { + public APIreadFlowSchemaStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3880,7 +4060,8 @@ public APIreadFlowSchemaStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3895,7 +4076,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1FlowSchema * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3911,7 +4093,8 @@ public V1FlowSchema execute() throws ApiException { * @return ApiResponse<V1FlowSchema> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3927,7 +4110,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3944,16 +4128,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param name name of the FlowSchema (required) * @return APIreadFlowSchemaStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadFlowSchemaStatusRequest readFlowSchemaStatus(String name) { + public APIreadFlowSchemaStatusRequest readFlowSchemaStatus(@jakarta.annotation.Nonnull String name) { return new APIreadFlowSchemaStatusRequest(name); } - private okhttp3.Call readPriorityLevelConfigurationCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readPriorityLevelConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4006,7 +4191,7 @@ private okhttp3.Call readPriorityLevelConfigurationCall(String name, String pret } @SuppressWarnings("rawtypes") - private okhttp3.Call readPriorityLevelConfigurationValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readPriorityLevelConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readPriorityLevelConfiguration(Async)"); @@ -4017,13 +4202,13 @@ private okhttp3.Call readPriorityLevelConfigurationValidateBeforeCall(String nam } - private ApiResponse readPriorityLevelConfigurationWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readPriorityLevelConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readPriorityLevelConfigurationValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readPriorityLevelConfigurationAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readPriorityLevelConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readPriorityLevelConfigurationValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4032,10 +4217,12 @@ private okhttp3.Call readPriorityLevelConfigurationAsync(String name, String pre } public class APIreadPriorityLevelConfigurationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadPriorityLevelConfigurationRequest(String name) { + private APIreadPriorityLevelConfigurationRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -4044,7 +4231,7 @@ private APIreadPriorityLevelConfigurationRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadPriorityLevelConfigurationRequest */ - public APIreadPriorityLevelConfigurationRequest pretty(String pretty) { + public APIreadPriorityLevelConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4055,7 +4242,8 @@ public APIreadPriorityLevelConfigurationRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4070,7 +4258,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PriorityLevelConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4086,7 +4275,8 @@ public V1PriorityLevelConfiguration execute() throws ApiException { * @return ApiResponse<V1PriorityLevelConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4102,7 +4292,8 @@ public ApiResponse executeWithHttpInfo() throws Ap * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4119,16 +4310,17 @@ public okhttp3.Call executeAsync(final ApiCallback * @param name name of the PriorityLevelConfiguration (required) * @return APIreadPriorityLevelConfigurationRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadPriorityLevelConfigurationRequest readPriorityLevelConfiguration(String name) { + public APIreadPriorityLevelConfigurationRequest readPriorityLevelConfiguration(@jakarta.annotation.Nonnull String name) { return new APIreadPriorityLevelConfigurationRequest(name); } - private okhttp3.Call readPriorityLevelConfigurationStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readPriorityLevelConfigurationStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4181,7 +4373,7 @@ private okhttp3.Call readPriorityLevelConfigurationStatusCall(String name, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call readPriorityLevelConfigurationStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readPriorityLevelConfigurationStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readPriorityLevelConfigurationStatus(Async)"); @@ -4192,13 +4384,13 @@ private okhttp3.Call readPriorityLevelConfigurationStatusValidateBeforeCall(Stri } - private ApiResponse readPriorityLevelConfigurationStatusWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readPriorityLevelConfigurationStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readPriorityLevelConfigurationStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readPriorityLevelConfigurationStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readPriorityLevelConfigurationStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readPriorityLevelConfigurationStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4207,10 +4399,12 @@ private okhttp3.Call readPriorityLevelConfigurationStatusAsync(String name, Stri } public class APIreadPriorityLevelConfigurationStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadPriorityLevelConfigurationStatusRequest(String name) { + private APIreadPriorityLevelConfigurationStatusRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -4219,7 +4413,7 @@ private APIreadPriorityLevelConfigurationStatusRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadPriorityLevelConfigurationStatusRequest */ - public APIreadPriorityLevelConfigurationStatusRequest pretty(String pretty) { + public APIreadPriorityLevelConfigurationStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4230,7 +4424,8 @@ public APIreadPriorityLevelConfigurationStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4245,7 +4440,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PriorityLevelConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4261,7 +4457,8 @@ public V1PriorityLevelConfiguration execute() throws ApiException { * @return ApiResponse<V1PriorityLevelConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4277,7 +4474,8 @@ public ApiResponse executeWithHttpInfo() throws Ap * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4294,16 +4492,17 @@ public okhttp3.Call executeAsync(final ApiCallback * @param name name of the PriorityLevelConfiguration (required) * @return APIreadPriorityLevelConfigurationStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadPriorityLevelConfigurationStatusRequest readPriorityLevelConfigurationStatus(String name) { + public APIreadPriorityLevelConfigurationStatusRequest readPriorityLevelConfigurationStatus(@jakarta.annotation.Nonnull String name) { return new APIreadPriorityLevelConfigurationStatusRequest(name); } - private okhttp3.Call replaceFlowSchemaCall(String name, V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceFlowSchemaCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1FlowSchema body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4369,7 +4568,7 @@ private okhttp3.Call replaceFlowSchemaCall(String name, V1FlowSchema body, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceFlowSchemaValidateBeforeCall(String name, V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceFlowSchemaValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1FlowSchema body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceFlowSchema(Async)"); @@ -4385,13 +4584,13 @@ private okhttp3.Call replaceFlowSchemaValidateBeforeCall(String name, V1FlowSche } - private ApiResponse replaceFlowSchemaWithHttpInfo(String name, V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceFlowSchemaWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1FlowSchema body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceFlowSchemaValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceFlowSchemaAsync(String name, V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceFlowSchemaAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1FlowSchema body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceFlowSchemaValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4400,14 +4599,20 @@ private okhttp3.Call replaceFlowSchemaAsync(String name, V1FlowSchema body, Stri } public class APIreplaceFlowSchemaRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1FlowSchema body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceFlowSchemaRequest(String name, V1FlowSchema body) { + private APIreplaceFlowSchemaRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1FlowSchema body) { this.name = name; this.body = body; } @@ -4417,7 +4622,7 @@ private APIreplaceFlowSchemaRequest(String name, V1FlowSchema body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceFlowSchemaRequest */ - public APIreplaceFlowSchemaRequest pretty(String pretty) { + public APIreplaceFlowSchemaRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4427,7 +4632,7 @@ public APIreplaceFlowSchemaRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceFlowSchemaRequest */ - public APIreplaceFlowSchemaRequest dryRun(String dryRun) { + public APIreplaceFlowSchemaRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4437,7 +4642,7 @@ public APIreplaceFlowSchemaRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceFlowSchemaRequest */ - public APIreplaceFlowSchemaRequest fieldManager(String fieldManager) { + public APIreplaceFlowSchemaRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -4447,7 +4652,7 @@ public APIreplaceFlowSchemaRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceFlowSchemaRequest */ - public APIreplaceFlowSchemaRequest fieldValidation(String fieldValidation) { + public APIreplaceFlowSchemaRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -4458,7 +4663,8 @@ public APIreplaceFlowSchemaRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4474,7 +4680,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1FlowSchema * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4491,7 +4698,8 @@ public V1FlowSchema execute() throws ApiException { * @return ApiResponse<V1FlowSchema> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4508,7 +4716,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4527,17 +4736,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIreplaceFlowSchemaRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceFlowSchemaRequest replaceFlowSchema(String name, V1FlowSchema body) { + public APIreplaceFlowSchemaRequest replaceFlowSchema(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1FlowSchema body) { return new APIreplaceFlowSchemaRequest(name, body); } - private okhttp3.Call replaceFlowSchemaStatusCall(String name, V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceFlowSchemaStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1FlowSchema body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4603,7 +4813,7 @@ private okhttp3.Call replaceFlowSchemaStatusCall(String name, V1FlowSchema body, } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceFlowSchemaStatusValidateBeforeCall(String name, V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceFlowSchemaStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1FlowSchema body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceFlowSchemaStatus(Async)"); @@ -4619,13 +4829,13 @@ private okhttp3.Call replaceFlowSchemaStatusValidateBeforeCall(String name, V1Fl } - private ApiResponse replaceFlowSchemaStatusWithHttpInfo(String name, V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceFlowSchemaStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1FlowSchema body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceFlowSchemaStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceFlowSchemaStatusAsync(String name, V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceFlowSchemaStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1FlowSchema body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceFlowSchemaStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4634,14 +4844,20 @@ private okhttp3.Call replaceFlowSchemaStatusAsync(String name, V1FlowSchema body } public class APIreplaceFlowSchemaStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1FlowSchema body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceFlowSchemaStatusRequest(String name, V1FlowSchema body) { + private APIreplaceFlowSchemaStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1FlowSchema body) { this.name = name; this.body = body; } @@ -4651,7 +4867,7 @@ private APIreplaceFlowSchemaStatusRequest(String name, V1FlowSchema body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceFlowSchemaStatusRequest */ - public APIreplaceFlowSchemaStatusRequest pretty(String pretty) { + public APIreplaceFlowSchemaStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4661,7 +4877,7 @@ public APIreplaceFlowSchemaStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceFlowSchemaStatusRequest */ - public APIreplaceFlowSchemaStatusRequest dryRun(String dryRun) { + public APIreplaceFlowSchemaStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4671,7 +4887,7 @@ public APIreplaceFlowSchemaStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceFlowSchemaStatusRequest */ - public APIreplaceFlowSchemaStatusRequest fieldManager(String fieldManager) { + public APIreplaceFlowSchemaStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -4681,7 +4897,7 @@ public APIreplaceFlowSchemaStatusRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceFlowSchemaStatusRequest */ - public APIreplaceFlowSchemaStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceFlowSchemaStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -4692,7 +4908,8 @@ public APIreplaceFlowSchemaStatusRequest fieldValidation(String fieldValidation) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4708,7 +4925,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1FlowSchema * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4725,7 +4943,8 @@ public V1FlowSchema execute() throws ApiException { * @return ApiResponse<V1FlowSchema> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4742,7 +4961,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4761,17 +4981,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIreplaceFlowSchemaStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceFlowSchemaStatusRequest replaceFlowSchemaStatus(String name, V1FlowSchema body) { + public APIreplaceFlowSchemaStatusRequest replaceFlowSchemaStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1FlowSchema body) { return new APIreplaceFlowSchemaStatusRequest(name, body); } - private okhttp3.Call replacePriorityLevelConfigurationCall(String name, V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replacePriorityLevelConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PriorityLevelConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4837,7 +5058,7 @@ private okhttp3.Call replacePriorityLevelConfigurationCall(String name, V1Priori } @SuppressWarnings("rawtypes") - private okhttp3.Call replacePriorityLevelConfigurationValidateBeforeCall(String name, V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replacePriorityLevelConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PriorityLevelConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replacePriorityLevelConfiguration(Async)"); @@ -4853,13 +5074,13 @@ private okhttp3.Call replacePriorityLevelConfigurationValidateBeforeCall(String } - private ApiResponse replacePriorityLevelConfigurationWithHttpInfo(String name, V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replacePriorityLevelConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PriorityLevelConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replacePriorityLevelConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replacePriorityLevelConfigurationAsync(String name, V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replacePriorityLevelConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PriorityLevelConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replacePriorityLevelConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4868,14 +5089,20 @@ private okhttp3.Call replacePriorityLevelConfigurationAsync(String name, V1Prior } public class APIreplacePriorityLevelConfigurationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1PriorityLevelConfiguration body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplacePriorityLevelConfigurationRequest(String name, V1PriorityLevelConfiguration body) { + private APIreplacePriorityLevelConfigurationRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PriorityLevelConfiguration body) { this.name = name; this.body = body; } @@ -4885,7 +5112,7 @@ private APIreplacePriorityLevelConfigurationRequest(String name, V1PriorityLevel * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplacePriorityLevelConfigurationRequest */ - public APIreplacePriorityLevelConfigurationRequest pretty(String pretty) { + public APIreplacePriorityLevelConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4895,7 +5122,7 @@ public APIreplacePriorityLevelConfigurationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplacePriorityLevelConfigurationRequest */ - public APIreplacePriorityLevelConfigurationRequest dryRun(String dryRun) { + public APIreplacePriorityLevelConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4905,7 +5132,7 @@ public APIreplacePriorityLevelConfigurationRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplacePriorityLevelConfigurationRequest */ - public APIreplacePriorityLevelConfigurationRequest fieldManager(String fieldManager) { + public APIreplacePriorityLevelConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -4915,7 +5142,7 @@ public APIreplacePriorityLevelConfigurationRequest fieldManager(String fieldMana * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplacePriorityLevelConfigurationRequest */ - public APIreplacePriorityLevelConfigurationRequest fieldValidation(String fieldValidation) { + public APIreplacePriorityLevelConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -4926,7 +5153,8 @@ public APIreplacePriorityLevelConfigurationRequest fieldValidation(String fieldV * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4942,7 +5170,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PriorityLevelConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4959,7 +5188,8 @@ public V1PriorityLevelConfiguration execute() throws ApiException { * @return ApiResponse<V1PriorityLevelConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4976,7 +5206,8 @@ public ApiResponse executeWithHttpInfo() throws Ap * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4995,17 +5226,18 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIreplacePriorityLevelConfigurationRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplacePriorityLevelConfigurationRequest replacePriorityLevelConfiguration(String name, V1PriorityLevelConfiguration body) { + public APIreplacePriorityLevelConfigurationRequest replacePriorityLevelConfiguration(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PriorityLevelConfiguration body) { return new APIreplacePriorityLevelConfigurationRequest(name, body); } - private okhttp3.Call replacePriorityLevelConfigurationStatusCall(String name, V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replacePriorityLevelConfigurationStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PriorityLevelConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5071,7 +5303,7 @@ private okhttp3.Call replacePriorityLevelConfigurationStatusCall(String name, V1 } @SuppressWarnings("rawtypes") - private okhttp3.Call replacePriorityLevelConfigurationStatusValidateBeforeCall(String name, V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replacePriorityLevelConfigurationStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PriorityLevelConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replacePriorityLevelConfigurationStatus(Async)"); @@ -5087,13 +5319,13 @@ private okhttp3.Call replacePriorityLevelConfigurationStatusValidateBeforeCall(S } - private ApiResponse replacePriorityLevelConfigurationStatusWithHttpInfo(String name, V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replacePriorityLevelConfigurationStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PriorityLevelConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replacePriorityLevelConfigurationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replacePriorityLevelConfigurationStatusAsync(String name, V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replacePriorityLevelConfigurationStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PriorityLevelConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replacePriorityLevelConfigurationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5102,14 +5334,20 @@ private okhttp3.Call replacePriorityLevelConfigurationStatusAsync(String name, V } public class APIreplacePriorityLevelConfigurationStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1PriorityLevelConfiguration body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplacePriorityLevelConfigurationStatusRequest(String name, V1PriorityLevelConfiguration body) { + private APIreplacePriorityLevelConfigurationStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PriorityLevelConfiguration body) { this.name = name; this.body = body; } @@ -5119,7 +5357,7 @@ private APIreplacePriorityLevelConfigurationStatusRequest(String name, V1Priorit * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplacePriorityLevelConfigurationStatusRequest */ - public APIreplacePriorityLevelConfigurationStatusRequest pretty(String pretty) { + public APIreplacePriorityLevelConfigurationStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5129,7 +5367,7 @@ public APIreplacePriorityLevelConfigurationStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplacePriorityLevelConfigurationStatusRequest */ - public APIreplacePriorityLevelConfigurationStatusRequest dryRun(String dryRun) { + public APIreplacePriorityLevelConfigurationStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -5139,7 +5377,7 @@ public APIreplacePriorityLevelConfigurationStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplacePriorityLevelConfigurationStatusRequest */ - public APIreplacePriorityLevelConfigurationStatusRequest fieldManager(String fieldManager) { + public APIreplacePriorityLevelConfigurationStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -5149,7 +5387,7 @@ public APIreplacePriorityLevelConfigurationStatusRequest fieldManager(String fie * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplacePriorityLevelConfigurationStatusRequest */ - public APIreplacePriorityLevelConfigurationStatusRequest fieldValidation(String fieldValidation) { + public APIreplacePriorityLevelConfigurationStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -5160,7 +5398,8 @@ public APIreplacePriorityLevelConfigurationStatusRequest fieldValidation(String * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5176,7 +5415,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PriorityLevelConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5193,7 +5433,8 @@ public V1PriorityLevelConfiguration execute() throws ApiException { * @return ApiResponse<V1PriorityLevelConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5210,7 +5451,8 @@ public ApiResponse executeWithHttpInfo() throws Ap * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5229,14 +5471,15 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIreplacePriorityLevelConfigurationStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplacePriorityLevelConfigurationStatusRequest replacePriorityLevelConfigurationStatus(String name, V1PriorityLevelConfiguration body) { + public APIreplacePriorityLevelConfigurationStatusRequest replacePriorityLevelConfigurationStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PriorityLevelConfiguration body) { return new APIreplacePriorityLevelConfigurationStatusRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverApi.java index 7acfa572e8..caedcfa7a5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverApi.java @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverV1alpha1Api.java index f068e1172d..a8e37f39d9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverV1alpha1Api.java @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createStorageVersionCall(V1alpha1StorageVersion body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createStorageVersionCall(@jakarta.annotation.Nonnull V1alpha1StorageVersion body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -141,7 +141,7 @@ private okhttp3.Call createStorageVersionCall(V1alpha1StorageVersion body, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call createStorageVersionValidateBeforeCall(V1alpha1StorageVersion body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createStorageVersionValidateBeforeCall(@jakarta.annotation.Nonnull V1alpha1StorageVersion body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createStorageVersion(Async)"); @@ -152,13 +152,13 @@ private okhttp3.Call createStorageVersionValidateBeforeCall(V1alpha1StorageVersi } - private ApiResponse createStorageVersionWithHttpInfo(V1alpha1StorageVersion body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createStorageVersionWithHttpInfo(@jakarta.annotation.Nonnull V1alpha1StorageVersion body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createStorageVersionValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createStorageVersionAsync(V1alpha1StorageVersion body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createStorageVersionAsync(@jakarta.annotation.Nonnull V1alpha1StorageVersion body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createStorageVersionValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -167,13 +167,18 @@ private okhttp3.Call createStorageVersionAsync(V1alpha1StorageVersion body, Stri } public class APIcreateStorageVersionRequest { + @jakarta.annotation.Nonnull private final V1alpha1StorageVersion body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateStorageVersionRequest(V1alpha1StorageVersion body) { + private APIcreateStorageVersionRequest(@jakarta.annotation.Nonnull V1alpha1StorageVersion body) { this.body = body; } @@ -182,7 +187,7 @@ private APIcreateStorageVersionRequest(V1alpha1StorageVersion body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateStorageVersionRequest */ - public APIcreateStorageVersionRequest pretty(String pretty) { + public APIcreateStorageVersionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -192,7 +197,7 @@ public APIcreateStorageVersionRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateStorageVersionRequest */ - public APIcreateStorageVersionRequest dryRun(String dryRun) { + public APIcreateStorageVersionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -202,7 +207,7 @@ public APIcreateStorageVersionRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateStorageVersionRequest */ - public APIcreateStorageVersionRequest fieldManager(String fieldManager) { + public APIcreateStorageVersionRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -212,7 +217,7 @@ public APIcreateStorageVersionRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateStorageVersionRequest */ - public APIcreateStorageVersionRequest fieldValidation(String fieldValidation) { + public APIcreateStorageVersionRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -223,7 +228,8 @@ public APIcreateStorageVersionRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -240,7 +246,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1StorageVersion * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -258,7 +265,8 @@ public V1alpha1StorageVersion execute() throws ApiException { * @return ApiResponse<V1alpha1StorageVersion> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -276,7 +284,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -295,7 +304,8 @@ public okhttp3.Call executeAsync(final ApiCallback _call * @param body (required) * @return APIcreateStorageVersionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -303,10 +313,10 @@ public okhttp3.Call executeAsync(final ApiCallback _call
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateStorageVersionRequest createStorageVersion(V1alpha1StorageVersion body) { + public APIcreateStorageVersionRequest createStorageVersion(@jakarta.annotation.Nonnull V1alpha1StorageVersion body) { return new APIcreateStorageVersionRequest(body); } - private okhttp3.Call deleteCollectionStorageVersionCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionStorageVersionCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -411,19 +421,19 @@ private okhttp3.Call deleteCollectionStorageVersionCall(String pretty, String _c } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionStorageVersionValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionStorageVersionValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionStorageVersionCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionStorageVersionWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionStorageVersionWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionStorageVersionValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionStorageVersionAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionStorageVersionAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionStorageVersionValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -432,20 +442,35 @@ private okhttp3.Call deleteCollectionStorageVersionAsync(String pretty, String _ } public class APIdeleteCollectionStorageVersionRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionStorageVersionRequest() { @@ -456,7 +481,7 @@ private APIdeleteCollectionStorageVersionRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionStorageVersionRequest */ - public APIdeleteCollectionStorageVersionRequest pretty(String pretty) { + public APIdeleteCollectionStorageVersionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -466,7 +491,7 @@ public APIdeleteCollectionStorageVersionRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionStorageVersionRequest */ - public APIdeleteCollectionStorageVersionRequest _continue(String _continue) { + public APIdeleteCollectionStorageVersionRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -476,7 +501,7 @@ public APIdeleteCollectionStorageVersionRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionStorageVersionRequest */ - public APIdeleteCollectionStorageVersionRequest dryRun(String dryRun) { + public APIdeleteCollectionStorageVersionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -486,7 +511,7 @@ public APIdeleteCollectionStorageVersionRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionStorageVersionRequest */ - public APIdeleteCollectionStorageVersionRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionStorageVersionRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -496,7 +521,7 @@ public APIdeleteCollectionStorageVersionRequest fieldSelector(String fieldSelect * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionStorageVersionRequest */ - public APIdeleteCollectionStorageVersionRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionStorageVersionRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -506,7 +531,7 @@ public APIdeleteCollectionStorageVersionRequest gracePeriodSeconds(Integer grace * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionStorageVersionRequest */ - public APIdeleteCollectionStorageVersionRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionStorageVersionRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -516,7 +541,7 @@ public APIdeleteCollectionStorageVersionRequest ignoreStoreReadErrorWithClusterB * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionStorageVersionRequest */ - public APIdeleteCollectionStorageVersionRequest labelSelector(String labelSelector) { + public APIdeleteCollectionStorageVersionRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -526,7 +551,7 @@ public APIdeleteCollectionStorageVersionRequest labelSelector(String labelSelect * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionStorageVersionRequest */ - public APIdeleteCollectionStorageVersionRequest limit(Integer limit) { + public APIdeleteCollectionStorageVersionRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -536,7 +561,7 @@ public APIdeleteCollectionStorageVersionRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionStorageVersionRequest */ - public APIdeleteCollectionStorageVersionRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionStorageVersionRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -546,7 +571,7 @@ public APIdeleteCollectionStorageVersionRequest orphanDependents(Boolean orphanD * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionStorageVersionRequest */ - public APIdeleteCollectionStorageVersionRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionStorageVersionRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -556,7 +581,7 @@ public APIdeleteCollectionStorageVersionRequest propagationPolicy(String propaga * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionStorageVersionRequest */ - public APIdeleteCollectionStorageVersionRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionStorageVersionRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -566,7 +591,7 @@ public APIdeleteCollectionStorageVersionRequest resourceVersion(String resourceV * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionStorageVersionRequest */ - public APIdeleteCollectionStorageVersionRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionStorageVersionRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -576,7 +601,7 @@ public APIdeleteCollectionStorageVersionRequest resourceVersionMatch(String reso * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionStorageVersionRequest */ - public APIdeleteCollectionStorageVersionRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionStorageVersionRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -586,7 +611,7 @@ public APIdeleteCollectionStorageVersionRequest sendInitialEvents(Boolean sendIn * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionStorageVersionRequest */ - public APIdeleteCollectionStorageVersionRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionStorageVersionRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -596,7 +621,7 @@ public APIdeleteCollectionStorageVersionRequest timeoutSeconds(Integer timeoutSe * @param body (optional) * @return APIdeleteCollectionStorageVersionRequest */ - public APIdeleteCollectionStorageVersionRequest body(V1DeleteOptions body) { + public APIdeleteCollectionStorageVersionRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -607,7 +632,8 @@ public APIdeleteCollectionStorageVersionRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -622,7 +648,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -638,7 +665,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -654,7 +682,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -670,7 +699,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of StorageVersion * @return APIdeleteCollectionStorageVersionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -679,7 +709,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionStorageVersionRequest deleteCollectionStorageVersion() { return new APIdeleteCollectionStorageVersionRequest(); } - private okhttp3.Call deleteStorageVersionCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteStorageVersionCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -753,7 +783,7 @@ private okhttp3.Call deleteStorageVersionCall(String name, String pretty, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteStorageVersionValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteStorageVersionValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteStorageVersion(Async)"); @@ -764,13 +794,13 @@ private okhttp3.Call deleteStorageVersionValidateBeforeCall(String name, String } - private ApiResponse deleteStorageVersionWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteStorageVersionWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteStorageVersionValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteStorageVersionAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteStorageVersionAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteStorageVersionValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -779,16 +809,24 @@ private okhttp3.Call deleteStorageVersionAsync(String name, String pretty, Strin } public class APIdeleteStorageVersionRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteStorageVersionRequest(String name) { + private APIdeleteStorageVersionRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -797,7 +835,7 @@ private APIdeleteStorageVersionRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteStorageVersionRequest */ - public APIdeleteStorageVersionRequest pretty(String pretty) { + public APIdeleteStorageVersionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -807,7 +845,7 @@ public APIdeleteStorageVersionRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteStorageVersionRequest */ - public APIdeleteStorageVersionRequest dryRun(String dryRun) { + public APIdeleteStorageVersionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -817,7 +855,7 @@ public APIdeleteStorageVersionRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteStorageVersionRequest */ - public APIdeleteStorageVersionRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteStorageVersionRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -827,7 +865,7 @@ public APIdeleteStorageVersionRequest gracePeriodSeconds(Integer gracePeriodSeco * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteStorageVersionRequest */ - public APIdeleteStorageVersionRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteStorageVersionRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -837,7 +875,7 @@ public APIdeleteStorageVersionRequest ignoreStoreReadErrorWithClusterBreakingPot * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteStorageVersionRequest */ - public APIdeleteStorageVersionRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteStorageVersionRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -847,7 +885,7 @@ public APIdeleteStorageVersionRequest orphanDependents(Boolean orphanDependents) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteStorageVersionRequest */ - public APIdeleteStorageVersionRequest propagationPolicy(String propagationPolicy) { + public APIdeleteStorageVersionRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -857,7 +895,7 @@ public APIdeleteStorageVersionRequest propagationPolicy(String propagationPolicy * @param body (optional) * @return APIdeleteStorageVersionRequest */ - public APIdeleteStorageVersionRequest body(V1DeleteOptions body) { + public APIdeleteStorageVersionRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -868,7 +906,8 @@ public APIdeleteStorageVersionRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -884,7 +923,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -901,7 +941,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -918,7 +959,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -936,14 +978,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the StorageVersion (required) * @return APIdeleteStorageVersionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteStorageVersionRequest deleteStorageVersion(String name) { + public APIdeleteStorageVersionRequest deleteStorageVersion(@jakarta.annotation.Nonnull String name) { return new APIdeleteStorageVersionRequest(name); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -1025,7 +1068,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1040,7 +1084,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1056,7 +1101,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1072,7 +1118,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1088,7 +1135,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1097,7 +1145,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listStorageVersionCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStorageVersionCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1192,19 +1240,19 @@ private okhttp3.Call listStorageVersionCall(String pretty, Boolean allowWatchBoo } @SuppressWarnings("rawtypes") - private okhttp3.Call listStorageVersionValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStorageVersionValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listStorageVersionCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listStorageVersionWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listStorageVersionWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listStorageVersionValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listStorageVersionAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStorageVersionAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listStorageVersionValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1213,16 +1261,27 @@ private okhttp3.Call listStorageVersionAsync(String pretty, Boolean allowWatchBo } public class APIlistStorageVersionRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistStorageVersionRequest() { @@ -1233,7 +1292,7 @@ private APIlistStorageVersionRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistStorageVersionRequest */ - public APIlistStorageVersionRequest pretty(String pretty) { + public APIlistStorageVersionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1243,7 +1302,7 @@ public APIlistStorageVersionRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistStorageVersionRequest */ - public APIlistStorageVersionRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistStorageVersionRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1253,7 +1312,7 @@ public APIlistStorageVersionRequest allowWatchBookmarks(Boolean allowWatchBookma * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistStorageVersionRequest */ - public APIlistStorageVersionRequest _continue(String _continue) { + public APIlistStorageVersionRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1263,7 +1322,7 @@ public APIlistStorageVersionRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistStorageVersionRequest */ - public APIlistStorageVersionRequest fieldSelector(String fieldSelector) { + public APIlistStorageVersionRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1273,7 +1332,7 @@ public APIlistStorageVersionRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistStorageVersionRequest */ - public APIlistStorageVersionRequest labelSelector(String labelSelector) { + public APIlistStorageVersionRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1283,7 +1342,7 @@ public APIlistStorageVersionRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistStorageVersionRequest */ - public APIlistStorageVersionRequest limit(Integer limit) { + public APIlistStorageVersionRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1293,7 +1352,7 @@ public APIlistStorageVersionRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistStorageVersionRequest */ - public APIlistStorageVersionRequest resourceVersion(String resourceVersion) { + public APIlistStorageVersionRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1303,7 +1362,7 @@ public APIlistStorageVersionRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistStorageVersionRequest */ - public APIlistStorageVersionRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistStorageVersionRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1313,7 +1372,7 @@ public APIlistStorageVersionRequest resourceVersionMatch(String resourceVersionM * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistStorageVersionRequest */ - public APIlistStorageVersionRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistStorageVersionRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1323,7 +1382,7 @@ public APIlistStorageVersionRequest sendInitialEvents(Boolean sendInitialEvents) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistStorageVersionRequest */ - public APIlistStorageVersionRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistStorageVersionRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1333,7 +1392,7 @@ public APIlistStorageVersionRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistStorageVersionRequest */ - public APIlistStorageVersionRequest watch(Boolean watch) { + public APIlistStorageVersionRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1344,7 +1403,8 @@ public APIlistStorageVersionRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1359,7 +1419,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1StorageVersionList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1375,7 +1436,8 @@ public V1alpha1StorageVersionList execute() throws ApiException { * @return ApiResponse<V1alpha1StorageVersionList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1391,7 +1453,8 @@ public ApiResponse executeWithHttpInfo() throws ApiE * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1407,7 +1470,8 @@ public okhttp3.Call executeAsync(final ApiCallback _ * list or watch objects of kind StorageVersion * @return APIlistStorageVersionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1416,7 +1480,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ public APIlistStorageVersionRequest listStorageVersion() { return new APIlistStorageVersionRequest(); } - private okhttp3.Call patchStorageVersionCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchStorageVersionCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1486,7 +1550,7 @@ private okhttp3.Call patchStorageVersionCall(String name, V1Patch body, String p } @SuppressWarnings("rawtypes") - private okhttp3.Call patchStorageVersionValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchStorageVersionValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchStorageVersion(Async)"); @@ -1502,13 +1566,13 @@ private okhttp3.Call patchStorageVersionValidateBeforeCall(String name, V1Patch } - private ApiResponse patchStorageVersionWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchStorageVersionWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchStorageVersionValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchStorageVersionAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchStorageVersionAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchStorageVersionValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1517,15 +1581,22 @@ private okhttp3.Call patchStorageVersionAsync(String name, V1Patch body, String } public class APIpatchStorageVersionRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchStorageVersionRequest(String name, V1Patch body) { + private APIpatchStorageVersionRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -1535,7 +1606,7 @@ private APIpatchStorageVersionRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchStorageVersionRequest */ - public APIpatchStorageVersionRequest pretty(String pretty) { + public APIpatchStorageVersionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1545,7 +1616,7 @@ public APIpatchStorageVersionRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchStorageVersionRequest */ - public APIpatchStorageVersionRequest dryRun(String dryRun) { + public APIpatchStorageVersionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1555,7 +1626,7 @@ public APIpatchStorageVersionRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchStorageVersionRequest */ - public APIpatchStorageVersionRequest fieldManager(String fieldManager) { + public APIpatchStorageVersionRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1565,7 +1636,7 @@ public APIpatchStorageVersionRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchStorageVersionRequest */ - public APIpatchStorageVersionRequest fieldValidation(String fieldValidation) { + public APIpatchStorageVersionRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1575,7 +1646,7 @@ public APIpatchStorageVersionRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchStorageVersionRequest */ - public APIpatchStorageVersionRequest force(Boolean force) { + public APIpatchStorageVersionRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1586,7 +1657,8 @@ public APIpatchStorageVersionRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1602,7 +1674,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1StorageVersion * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1619,7 +1692,8 @@ public V1alpha1StorageVersion execute() throws ApiException { * @return ApiResponse<V1alpha1StorageVersion> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1636,7 +1710,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1655,17 +1730,18 @@ public okhttp3.Call executeAsync(final ApiCallback _call * @param body (required) * @return APIpatchStorageVersionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchStorageVersionRequest patchStorageVersion(String name, V1Patch body) { + public APIpatchStorageVersionRequest patchStorageVersion(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchStorageVersionRequest(name, body); } - private okhttp3.Call patchStorageVersionStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchStorageVersionStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1735,7 +1811,7 @@ private okhttp3.Call patchStorageVersionStatusCall(String name, V1Patch body, St } @SuppressWarnings("rawtypes") - private okhttp3.Call patchStorageVersionStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchStorageVersionStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchStorageVersionStatus(Async)"); @@ -1751,13 +1827,13 @@ private okhttp3.Call patchStorageVersionStatusValidateBeforeCall(String name, V1 } - private ApiResponse patchStorageVersionStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchStorageVersionStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchStorageVersionStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchStorageVersionStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchStorageVersionStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchStorageVersionStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1766,15 +1842,22 @@ private okhttp3.Call patchStorageVersionStatusAsync(String name, V1Patch body, S } public class APIpatchStorageVersionStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchStorageVersionStatusRequest(String name, V1Patch body) { + private APIpatchStorageVersionStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -1784,7 +1867,7 @@ private APIpatchStorageVersionStatusRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchStorageVersionStatusRequest */ - public APIpatchStorageVersionStatusRequest pretty(String pretty) { + public APIpatchStorageVersionStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1794,7 +1877,7 @@ public APIpatchStorageVersionStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchStorageVersionStatusRequest */ - public APIpatchStorageVersionStatusRequest dryRun(String dryRun) { + public APIpatchStorageVersionStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1804,7 +1887,7 @@ public APIpatchStorageVersionStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchStorageVersionStatusRequest */ - public APIpatchStorageVersionStatusRequest fieldManager(String fieldManager) { + public APIpatchStorageVersionStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1814,7 +1897,7 @@ public APIpatchStorageVersionStatusRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchStorageVersionStatusRequest */ - public APIpatchStorageVersionStatusRequest fieldValidation(String fieldValidation) { + public APIpatchStorageVersionStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1824,7 +1907,7 @@ public APIpatchStorageVersionStatusRequest fieldValidation(String fieldValidatio * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchStorageVersionStatusRequest */ - public APIpatchStorageVersionStatusRequest force(Boolean force) { + public APIpatchStorageVersionStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1835,7 +1918,8 @@ public APIpatchStorageVersionStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1851,7 +1935,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1StorageVersion * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1868,7 +1953,8 @@ public V1alpha1StorageVersion execute() throws ApiException { * @return ApiResponse<V1alpha1StorageVersion> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1885,7 +1971,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1904,17 +1991,18 @@ public okhttp3.Call executeAsync(final ApiCallback _call * @param body (required) * @return APIpatchStorageVersionStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchStorageVersionStatusRequest patchStorageVersionStatus(String name, V1Patch body) { + public APIpatchStorageVersionStatusRequest patchStorageVersionStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchStorageVersionStatusRequest(name, body); } - private okhttp3.Call readStorageVersionCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readStorageVersionCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1967,7 +2055,7 @@ private okhttp3.Call readStorageVersionCall(String name, String pretty, final Ap } @SuppressWarnings("rawtypes") - private okhttp3.Call readStorageVersionValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readStorageVersionValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readStorageVersion(Async)"); @@ -1978,13 +2066,13 @@ private okhttp3.Call readStorageVersionValidateBeforeCall(String name, String pr } - private ApiResponse readStorageVersionWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readStorageVersionWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readStorageVersionValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readStorageVersionAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readStorageVersionAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readStorageVersionValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1993,10 +2081,12 @@ private okhttp3.Call readStorageVersionAsync(String name, String pretty, final A } public class APIreadStorageVersionRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadStorageVersionRequest(String name) { + private APIreadStorageVersionRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -2005,7 +2095,7 @@ private APIreadStorageVersionRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadStorageVersionRequest */ - public APIreadStorageVersionRequest pretty(String pretty) { + public APIreadStorageVersionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2016,7 +2106,8 @@ public APIreadStorageVersionRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2031,7 +2122,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1StorageVersion * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2047,7 +2139,8 @@ public V1alpha1StorageVersion execute() throws ApiException { * @return ApiResponse<V1alpha1StorageVersion> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2063,7 +2156,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2080,16 +2174,17 @@ public okhttp3.Call executeAsync(final ApiCallback _call * @param name name of the StorageVersion (required) * @return APIreadStorageVersionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadStorageVersionRequest readStorageVersion(String name) { + public APIreadStorageVersionRequest readStorageVersion(@jakarta.annotation.Nonnull String name) { return new APIreadStorageVersionRequest(name); } - private okhttp3.Call readStorageVersionStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readStorageVersionStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2142,7 +2237,7 @@ private okhttp3.Call readStorageVersionStatusCall(String name, String pretty, fi } @SuppressWarnings("rawtypes") - private okhttp3.Call readStorageVersionStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readStorageVersionStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readStorageVersionStatus(Async)"); @@ -2153,13 +2248,13 @@ private okhttp3.Call readStorageVersionStatusValidateBeforeCall(String name, Str } - private ApiResponse readStorageVersionStatusWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readStorageVersionStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readStorageVersionStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readStorageVersionStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readStorageVersionStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readStorageVersionStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2168,10 +2263,12 @@ private okhttp3.Call readStorageVersionStatusAsync(String name, String pretty, f } public class APIreadStorageVersionStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadStorageVersionStatusRequest(String name) { + private APIreadStorageVersionStatusRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -2180,7 +2277,7 @@ private APIreadStorageVersionStatusRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadStorageVersionStatusRequest */ - public APIreadStorageVersionStatusRequest pretty(String pretty) { + public APIreadStorageVersionStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2191,7 +2288,8 @@ public APIreadStorageVersionStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2206,7 +2304,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1StorageVersion * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2222,7 +2321,8 @@ public V1alpha1StorageVersion execute() throws ApiException { * @return ApiResponse<V1alpha1StorageVersion> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2238,7 +2338,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2255,16 +2356,17 @@ public okhttp3.Call executeAsync(final ApiCallback _call * @param name name of the StorageVersion (required) * @return APIreadStorageVersionStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadStorageVersionStatusRequest readStorageVersionStatus(String name) { + public APIreadStorageVersionStatusRequest readStorageVersionStatus(@jakarta.annotation.Nonnull String name) { return new APIreadStorageVersionStatusRequest(name); } - private okhttp3.Call replaceStorageVersionCall(String name, V1alpha1StorageVersion body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceStorageVersionCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersion body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2330,7 +2432,7 @@ private okhttp3.Call replaceStorageVersionCall(String name, V1alpha1StorageVersi } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceStorageVersionValidateBeforeCall(String name, V1alpha1StorageVersion body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceStorageVersionValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersion body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceStorageVersion(Async)"); @@ -2346,13 +2448,13 @@ private okhttp3.Call replaceStorageVersionValidateBeforeCall(String name, V1alph } - private ApiResponse replaceStorageVersionWithHttpInfo(String name, V1alpha1StorageVersion body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceStorageVersionWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersion body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceStorageVersionValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceStorageVersionAsync(String name, V1alpha1StorageVersion body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceStorageVersionAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersion body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceStorageVersionValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2361,14 +2463,20 @@ private okhttp3.Call replaceStorageVersionAsync(String name, V1alpha1StorageVers } public class APIreplaceStorageVersionRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1alpha1StorageVersion body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceStorageVersionRequest(String name, V1alpha1StorageVersion body) { + private APIreplaceStorageVersionRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersion body) { this.name = name; this.body = body; } @@ -2378,7 +2486,7 @@ private APIreplaceStorageVersionRequest(String name, V1alpha1StorageVersion body * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceStorageVersionRequest */ - public APIreplaceStorageVersionRequest pretty(String pretty) { + public APIreplaceStorageVersionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2388,7 +2496,7 @@ public APIreplaceStorageVersionRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceStorageVersionRequest */ - public APIreplaceStorageVersionRequest dryRun(String dryRun) { + public APIreplaceStorageVersionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2398,7 +2506,7 @@ public APIreplaceStorageVersionRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceStorageVersionRequest */ - public APIreplaceStorageVersionRequest fieldManager(String fieldManager) { + public APIreplaceStorageVersionRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2408,7 +2516,7 @@ public APIreplaceStorageVersionRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceStorageVersionRequest */ - public APIreplaceStorageVersionRequest fieldValidation(String fieldValidation) { + public APIreplaceStorageVersionRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2419,7 +2527,8 @@ public APIreplaceStorageVersionRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2435,7 +2544,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1StorageVersion * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2452,7 +2562,8 @@ public V1alpha1StorageVersion execute() throws ApiException { * @return ApiResponse<V1alpha1StorageVersion> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2469,7 +2580,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2488,17 +2600,18 @@ public okhttp3.Call executeAsync(final ApiCallback _call * @param body (required) * @return APIreplaceStorageVersionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceStorageVersionRequest replaceStorageVersion(String name, V1alpha1StorageVersion body) { + public APIreplaceStorageVersionRequest replaceStorageVersion(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersion body) { return new APIreplaceStorageVersionRequest(name, body); } - private okhttp3.Call replaceStorageVersionStatusCall(String name, V1alpha1StorageVersion body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceStorageVersionStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersion body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2564,7 +2677,7 @@ private okhttp3.Call replaceStorageVersionStatusCall(String name, V1alpha1Storag } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceStorageVersionStatusValidateBeforeCall(String name, V1alpha1StorageVersion body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceStorageVersionStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersion body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceStorageVersionStatus(Async)"); @@ -2580,13 +2693,13 @@ private okhttp3.Call replaceStorageVersionStatusValidateBeforeCall(String name, } - private ApiResponse replaceStorageVersionStatusWithHttpInfo(String name, V1alpha1StorageVersion body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceStorageVersionStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersion body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceStorageVersionStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceStorageVersionStatusAsync(String name, V1alpha1StorageVersion body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceStorageVersionStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersion body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceStorageVersionStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2595,14 +2708,20 @@ private okhttp3.Call replaceStorageVersionStatusAsync(String name, V1alpha1Stora } public class APIreplaceStorageVersionStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1alpha1StorageVersion body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceStorageVersionStatusRequest(String name, V1alpha1StorageVersion body) { + private APIreplaceStorageVersionStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersion body) { this.name = name; this.body = body; } @@ -2612,7 +2731,7 @@ private APIreplaceStorageVersionStatusRequest(String name, V1alpha1StorageVersio * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceStorageVersionStatusRequest */ - public APIreplaceStorageVersionStatusRequest pretty(String pretty) { + public APIreplaceStorageVersionStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2622,7 +2741,7 @@ public APIreplaceStorageVersionStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceStorageVersionStatusRequest */ - public APIreplaceStorageVersionStatusRequest dryRun(String dryRun) { + public APIreplaceStorageVersionStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2632,7 +2751,7 @@ public APIreplaceStorageVersionStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceStorageVersionStatusRequest */ - public APIreplaceStorageVersionStatusRequest fieldManager(String fieldManager) { + public APIreplaceStorageVersionStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2642,7 +2761,7 @@ public APIreplaceStorageVersionStatusRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceStorageVersionStatusRequest */ - public APIreplaceStorageVersionStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceStorageVersionStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2653,7 +2772,8 @@ public APIreplaceStorageVersionStatusRequest fieldValidation(String fieldValidat * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2669,7 +2789,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1StorageVersion * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2686,7 +2807,8 @@ public V1alpha1StorageVersion execute() throws ApiException { * @return ApiResponse<V1alpha1StorageVersion> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2703,7 +2825,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2722,14 +2845,15 @@ public okhttp3.Call executeAsync(final ApiCallback _call * @param body (required) * @return APIreplaceStorageVersionStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceStorageVersionStatusRequest replaceStorageVersionStatus(String name, V1alpha1StorageVersion body) { + public APIreplaceStorageVersionStatusRequest replaceStorageVersionStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersion body) { return new APIreplaceStorageVersionStatusRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/LogsApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/LogsApi.java index 9b88b10cef..5ecc5e2935 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/LogsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/LogsApi.java @@ -70,7 +70,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call logFileHandlerCall(String logpath, final ApiCallback _callback) throws ApiException { + private okhttp3.Call logFileHandlerCall(@jakarta.annotation.Nonnull String logpath, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -115,7 +115,7 @@ private okhttp3.Call logFileHandlerCall(String logpath, final ApiCallback _callb } @SuppressWarnings("rawtypes") - private okhttp3.Call logFileHandlerValidateBeforeCall(String logpath, final ApiCallback _callback) throws ApiException { + private okhttp3.Call logFileHandlerValidateBeforeCall(@jakarta.annotation.Nonnull String logpath, final ApiCallback _callback) throws ApiException { // verify the required parameter 'logpath' is set if (logpath == null) { throw new ApiException("Missing the required parameter 'logpath' when calling logFileHandler(Async)"); @@ -126,12 +126,12 @@ private okhttp3.Call logFileHandlerValidateBeforeCall(String logpath, final ApiC } - private ApiResponse logFileHandlerWithHttpInfo(String logpath) throws ApiException { + private ApiResponse logFileHandlerWithHttpInfo(@jakarta.annotation.Nonnull String logpath) throws ApiException { okhttp3.Call localVarCall = logFileHandlerValidateBeforeCall(logpath, null); return localVarApiClient.execute(localVarCall); } - private okhttp3.Call logFileHandlerAsync(String logpath, final ApiCallback _callback) throws ApiException { + private okhttp3.Call logFileHandlerAsync(@jakarta.annotation.Nonnull String logpath, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = logFileHandlerValidateBeforeCall(logpath, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -139,9 +139,10 @@ private okhttp3.Call logFileHandlerAsync(String logpath, final ApiCallback } public class APIlogFileHandlerRequest { + @jakarta.annotation.Nonnull private final String logpath; - private APIlogFileHandlerRequest(String logpath) { + private APIlogFileHandlerRequest(@jakarta.annotation.Nonnull String logpath) { this.logpath = logpath; } @@ -151,7 +152,8 @@ private APIlogFileHandlerRequest(String logpath) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
401 Unauthorized -
@@ -164,7 +166,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * Execute logFileHandler request * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
401 Unauthorized -
@@ -178,7 +181,8 @@ public void execute() throws ApiException { * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
401 Unauthorized -
@@ -193,7 +197,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
401 Unauthorized -
@@ -209,12 +214,13 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiEx * @param logpath path to the log (required) * @return APIlogFileHandlerRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
401 Unauthorized -
*/ - public APIlogFileHandlerRequest logFileHandler(String logpath) { + public APIlogFileHandlerRequest logFileHandler(@jakarta.annotation.Nonnull String logpath) { return new APIlogFileHandlerRequest(logpath); } private okhttp3.Call logFileListHandlerCall(final ApiCallback _callback) throws ApiException { @@ -290,7 +296,8 @@ private APIlogFileListHandlerRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
401 Unauthorized -
@@ -303,7 +310,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * Execute logFileListHandler request * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
401 Unauthorized -
@@ -317,7 +325,8 @@ public void execute() throws ApiException { * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
401 Unauthorized -
@@ -332,7 +341,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
401 Unauthorized -
@@ -347,7 +357,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiEx * * @return APIlogFileListHandlerRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
401 Unauthorized -
diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingApi.java index 64be8c7e3a..d66c75e614 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingApi.java @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1Api.java index b9a89c025c..2241ba4671 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1Api.java @@ -28,6 +28,8 @@ import io.kubernetes.client.openapi.models.V1APIResourceList; import io.kubernetes.client.openapi.models.V1DeleteOptions; +import io.kubernetes.client.openapi.models.V1IPAddress; +import io.kubernetes.client.openapi.models.V1IPAddressList; import io.kubernetes.client.openapi.models.V1Ingress; import io.kubernetes.client.openapi.models.V1IngressClass; import io.kubernetes.client.openapi.models.V1IngressClassList; @@ -35,6 +37,8 @@ import io.kubernetes.client.openapi.models.V1NetworkPolicy; import io.kubernetes.client.openapi.models.V1NetworkPolicyList; import io.kubernetes.client.custom.V1Patch; +import io.kubernetes.client.openapi.models.V1ServiceCIDR; +import io.kubernetes.client.openapi.models.V1ServiceCIDRList; import io.kubernetes.client.openapi.models.V1Status; import java.lang.reflect.Type; @@ -80,7 +84,247 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createIngressClassCall(V1IngressClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createIPAddressCall(@jakarta.annotation.Nonnull V1IPAddress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/ipaddresses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createIPAddressValidateBeforeCall(@jakarta.annotation.Nonnull V1IPAddress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createIPAddress(Async)"); + } + + return createIPAddressCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse createIPAddressWithHttpInfo(@jakarta.annotation.Nonnull V1IPAddress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createIPAddressValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createIPAddressAsync(@jakarta.annotation.Nonnull V1IPAddress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createIPAddressValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateIPAddressRequest { + @jakarta.annotation.Nonnull + private final V1IPAddress body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIcreateIPAddressRequest(@jakarta.annotation.Nonnull V1IPAddress body) { + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIcreateIPAddressRequest + */ + public APIcreateIPAddressRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIcreateIPAddressRequest + */ + public APIcreateIPAddressRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIcreateIPAddressRequest + */ + public APIcreateIPAddressRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIcreateIPAddressRequest + */ + public APIcreateIPAddressRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for createIPAddress + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return createIPAddressCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute createIPAddress request + * @return V1IPAddress + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1IPAddress execute() throws ApiException { + ApiResponse localVarResp = createIPAddressWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createIPAddress request with HTTP info returned + * @return ApiResponse<V1IPAddress> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createIPAddressWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute createIPAddress request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createIPAddressAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * create an IPAddress + * @param body (required) + * @return APIcreateIPAddressRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public APIcreateIPAddressRequest createIPAddress(@jakarta.annotation.Nonnull V1IPAddress body) { + return new APIcreateIPAddressRequest(body); + } + private okhttp3.Call createIngressClassCall(@jakarta.annotation.Nonnull V1IngressClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -145,7 +389,7 @@ private okhttp3.Call createIngressClassCall(V1IngressClass body, String pretty, } @SuppressWarnings("rawtypes") - private okhttp3.Call createIngressClassValidateBeforeCall(V1IngressClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createIngressClassValidateBeforeCall(@jakarta.annotation.Nonnull V1IngressClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createIngressClass(Async)"); @@ -156,13 +400,13 @@ private okhttp3.Call createIngressClassValidateBeforeCall(V1IngressClass body, S } - private ApiResponse createIngressClassWithHttpInfo(V1IngressClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createIngressClassWithHttpInfo(@jakarta.annotation.Nonnull V1IngressClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createIngressClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createIngressClassAsync(V1IngressClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createIngressClassAsync(@jakarta.annotation.Nonnull V1IngressClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createIngressClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -171,13 +415,18 @@ private okhttp3.Call createIngressClassAsync(V1IngressClass body, String pretty, } public class APIcreateIngressClassRequest { + @jakarta.annotation.Nonnull private final V1IngressClass body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateIngressClassRequest(V1IngressClass body) { + private APIcreateIngressClassRequest(@jakarta.annotation.Nonnull V1IngressClass body) { this.body = body; } @@ -186,7 +435,7 @@ private APIcreateIngressClassRequest(V1IngressClass body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateIngressClassRequest */ - public APIcreateIngressClassRequest pretty(String pretty) { + public APIcreateIngressClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -196,7 +445,7 @@ public APIcreateIngressClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateIngressClassRequest */ - public APIcreateIngressClassRequest dryRun(String dryRun) { + public APIcreateIngressClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -206,7 +455,7 @@ public APIcreateIngressClassRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateIngressClassRequest */ - public APIcreateIngressClassRequest fieldManager(String fieldManager) { + public APIcreateIngressClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -216,7 +465,7 @@ public APIcreateIngressClassRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateIngressClassRequest */ - public APIcreateIngressClassRequest fieldValidation(String fieldValidation) { + public APIcreateIngressClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -227,7 +476,8 @@ public APIcreateIngressClassRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -244,7 +494,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1IngressClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -262,7 +513,8 @@ public V1IngressClass execute() throws ApiException { * @return ApiResponse<V1IngressClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -280,7 +532,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -299,7 +552,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th * @param body (required) * @return APIcreateIngressClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -307,10 +561,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateIngressClassRequest createIngressClass(V1IngressClass body) { + public APIcreateIngressClassRequest createIngressClass(@jakarta.annotation.Nonnull V1IngressClass body) { return new APIcreateIngressClassRequest(body); } - private okhttp3.Call createNamespacedIngressCall(String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedIngressCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Ingress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -376,7 +630,7 @@ private okhttp3.Call createNamespacedIngressCall(String namespace, V1Ingress bod } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedIngressValidateBeforeCall(String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedIngressValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Ingress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedIngress(Async)"); @@ -392,13 +646,13 @@ private okhttp3.Call createNamespacedIngressValidateBeforeCall(String namespace, } - private ApiResponse createNamespacedIngressWithHttpInfo(String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedIngressWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Ingress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedIngressValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedIngressAsync(String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedIngressAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Ingress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedIngressValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -407,14 +661,20 @@ private okhttp3.Call createNamespacedIngressAsync(String namespace, V1Ingress bo } public class APIcreateNamespacedIngressRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Ingress body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedIngressRequest(String namespace, V1Ingress body) { + private APIcreateNamespacedIngressRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Ingress body) { this.namespace = namespace; this.body = body; } @@ -424,7 +684,7 @@ private APIcreateNamespacedIngressRequest(String namespace, V1Ingress body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedIngressRequest */ - public APIcreateNamespacedIngressRequest pretty(String pretty) { + public APIcreateNamespacedIngressRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -434,7 +694,7 @@ public APIcreateNamespacedIngressRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedIngressRequest */ - public APIcreateNamespacedIngressRequest dryRun(String dryRun) { + public APIcreateNamespacedIngressRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -444,7 +704,7 @@ public APIcreateNamespacedIngressRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedIngressRequest */ - public APIcreateNamespacedIngressRequest fieldManager(String fieldManager) { + public APIcreateNamespacedIngressRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -454,7 +714,7 @@ public APIcreateNamespacedIngressRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedIngressRequest */ - public APIcreateNamespacedIngressRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedIngressRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -465,7 +725,8 @@ public APIcreateNamespacedIngressRequest fieldValidation(String fieldValidation) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -482,7 +743,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -500,7 +762,8 @@ public V1Ingress execute() throws ApiException { * @return ApiResponse<V1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -518,7 +781,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -538,7 +802,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param body (required) * @return APIcreateNamespacedIngressRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -546,10 +811,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedIngressRequest createNamespacedIngress(String namespace, V1Ingress body) { + public APIcreateNamespacedIngressRequest createNamespacedIngress(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Ingress body) { return new APIcreateNamespacedIngressRequest(namespace, body); } - private okhttp3.Call createNamespacedNetworkPolicyCall(String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedNetworkPolicyCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1NetworkPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -615,7 +880,7 @@ private okhttp3.Call createNamespacedNetworkPolicyCall(String namespace, V1Netwo } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedNetworkPolicyValidateBeforeCall(String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedNetworkPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1NetworkPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedNetworkPolicy(Async)"); @@ -631,13 +896,13 @@ private okhttp3.Call createNamespacedNetworkPolicyValidateBeforeCall(String name } - private ApiResponse createNamespacedNetworkPolicyWithHttpInfo(String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedNetworkPolicyWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1NetworkPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedNetworkPolicyValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedNetworkPolicyAsync(String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedNetworkPolicyAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1NetworkPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedNetworkPolicyValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -646,14 +911,20 @@ private okhttp3.Call createNamespacedNetworkPolicyAsync(String namespace, V1Netw } public class APIcreateNamespacedNetworkPolicyRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1NetworkPolicy body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedNetworkPolicyRequest(String namespace, V1NetworkPolicy body) { + private APIcreateNamespacedNetworkPolicyRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1NetworkPolicy body) { this.namespace = namespace; this.body = body; } @@ -663,7 +934,7 @@ private APIcreateNamespacedNetworkPolicyRequest(String namespace, V1NetworkPolic * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedNetworkPolicyRequest */ - public APIcreateNamespacedNetworkPolicyRequest pretty(String pretty) { + public APIcreateNamespacedNetworkPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -673,7 +944,7 @@ public APIcreateNamespacedNetworkPolicyRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedNetworkPolicyRequest */ - public APIcreateNamespacedNetworkPolicyRequest dryRun(String dryRun) { + public APIcreateNamespacedNetworkPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -683,7 +954,7 @@ public APIcreateNamespacedNetworkPolicyRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedNetworkPolicyRequest */ - public APIcreateNamespacedNetworkPolicyRequest fieldManager(String fieldManager) { + public APIcreateNamespacedNetworkPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -693,7 +964,7 @@ public APIcreateNamespacedNetworkPolicyRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedNetworkPolicyRequest */ - public APIcreateNamespacedNetworkPolicyRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedNetworkPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -704,7 +975,8 @@ public APIcreateNamespacedNetworkPolicyRequest fieldValidation(String fieldValid * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -721,7 +993,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1NetworkPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -739,7 +1012,8 @@ public V1NetworkPolicy execute() throws ApiException { * @return ApiResponse<V1NetworkPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -757,7 +1031,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -777,7 +1052,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * @param body (required) * @return APIcreateNamespacedNetworkPolicyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -785,10 +1061,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedNetworkPolicyRequest createNamespacedNetworkPolicy(String namespace, V1NetworkPolicy body) { + public APIcreateNamespacedNetworkPolicyRequest createNamespacedNetworkPolicy(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1NetworkPolicy body) { return new APIcreateNamespacedNetworkPolicyRequest(namespace, body); } - private okhttp3.Call deleteCollectionIngressClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createServiceCIDRCall(@jakarta.annotation.Nonnull V1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -805,7 +1081,7 @@ private okhttp3.Call deleteCollectionIngressClassCall(String pretty, String _con Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses"; + String localVarPath = "/apis/networking.k8s.io/v1/servicecidrs"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -817,56 +1093,16 @@ private okhttp3.Call deleteCollectionIngressClassCall(String pretty, String _con localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { @@ -889,279 +1125,186 @@ private okhttp3.Call deleteCollectionIngressClassCall(String pretty, String _con } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionIngressClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionIngressClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call createServiceCIDRValidateBeforeCall(@jakarta.annotation.Nonnull V1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createServiceCIDR(Async)"); + } + + return createServiceCIDRCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse deleteCollectionIngressClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionIngressClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse createServiceCIDRWithHttpInfo(@jakarta.annotation.Nonnull V1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createServiceCIDRValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionIngressClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createServiceCIDRAsync(@jakarta.annotation.Nonnull V1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionIngressClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createServiceCIDRValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCollectionIngressClassRequest { + public class APIcreateServiceCIDRRequest { + @jakarta.annotation.Nonnull + private final V1ServiceCIDR body; + @jakarta.annotation.Nullable private String pretty; - private String _continue; + @jakarta.annotation.Nullable private String dryRun; - private String fieldSelector; - private Integer gracePeriodSeconds; - private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; - private String labelSelector; - private Integer limit; - private Boolean orphanDependents; - private String propagationPolicy; - private String resourceVersion; - private String resourceVersionMatch; - private Boolean sendInitialEvents; - private Integer timeoutSeconds; - private V1DeleteOptions body; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; - private APIdeleteCollectionIngressClassRequest() { + private APIcreateServiceCIDRRequest(@jakarta.annotation.Nonnull V1ServiceCIDR body) { + this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteCollectionIngressClassRequest + * @return APIcreateServiceCIDRRequest */ - public APIdeleteCollectionIngressClassRequest pretty(String pretty) { + public APIcreateServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } - /** - * Set _continue - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIdeleteCollectionIngressClassRequest - */ - public APIdeleteCollectionIngressClassRequest _continue(String _continue) { - this._continue = _continue; - return this; - } - /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteCollectionIngressClassRequest + * @return APIcreateServiceCIDRRequest */ - public APIdeleteCollectionIngressClassRequest dryRun(String dryRun) { + public APIcreateServiceCIDRRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionIngressClassRequest - */ - public APIdeleteCollectionIngressClassRequest fieldSelector(String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; - } - - /** - * Set gracePeriodSeconds - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteCollectionIngressClassRequest - */ - public APIdeleteCollectionIngressClassRequest gracePeriodSeconds(Integer gracePeriodSeconds) { - this.gracePeriodSeconds = gracePeriodSeconds; - return this; - } - - /** - * Set ignoreStoreReadErrorWithClusterBreakingPotential - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteCollectionIngressClassRequest - */ - public APIdeleteCollectionIngressClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { - this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; - return this; - } - - /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionIngressClassRequest - */ - public APIdeleteCollectionIngressClassRequest labelSelector(String labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - /** - * Set limit - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIdeleteCollectionIngressClassRequest - */ - public APIdeleteCollectionIngressClassRequest limit(Integer limit) { - this.limit = limit; - return this; - } - - /** - * Set orphanDependents - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteCollectionIngressClassRequest - */ - public APIdeleteCollectionIngressClassRequest orphanDependents(Boolean orphanDependents) { - this.orphanDependents = orphanDependents; - return this; - } - - /** - * Set propagationPolicy - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionIngressClassRequest - */ - public APIdeleteCollectionIngressClassRequest propagationPolicy(String propagationPolicy) { - this.propagationPolicy = propagationPolicy; - return this; - } - - /** - * Set resourceVersion - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionIngressClassRequest - */ - public APIdeleteCollectionIngressClassRequest resourceVersion(String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; - } - - /** - * Set resourceVersionMatch - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionIngressClassRequest - */ - public APIdeleteCollectionIngressClassRequest resourceVersionMatch(String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; - return this; - } - - /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIdeleteCollectionIngressClassRequest - */ - public APIdeleteCollectionIngressClassRequest sendInitialEvents(Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionIngressClassRequest + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIcreateServiceCIDRRequest */ - public APIdeleteCollectionIngressClassRequest timeoutSeconds(Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; + public APIcreateServiceCIDRRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; return this; } /** - * Set body - * @param body (optional) - * @return APIdeleteCollectionIngressClassRequest + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIcreateServiceCIDRRequest */ - public APIdeleteCollectionIngressClassRequest body(V1DeleteOptions body) { - this.body = body; + public APIcreateServiceCIDRRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; return this; } /** - * Build call for deleteCollectionIngressClass + * Build call for createServiceCIDR * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionIngressClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return createServiceCIDRCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute deleteCollectionIngressClass request - * @return V1Status + * Execute createServiceCIDR request + * @return V1ServiceCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionIngressClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1ServiceCIDR execute() throws ApiException { + ApiResponse localVarResp = createServiceCIDRWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute deleteCollectionIngressClass request with HTTP info returned - * @return ApiResponse<V1Status> + * Execute createServiceCIDR request with HTTP info returned + * @return ApiResponse<V1ServiceCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionIngressClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public ApiResponse executeWithHttpInfo() throws ApiException { + return createServiceCIDRWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute deleteCollectionIngressClass request (asynchronously) + * Execute createServiceCIDR request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionIngressClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createServiceCIDRAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * delete collection of IngressClass - * @return APIdeleteCollectionIngressClassRequest + * create a ServiceCIDR + * @param body (required) + * @return APIcreateServiceCIDRRequest * @http.response.details - +
+ + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteCollectionIngressClassRequest deleteCollectionIngressClass() { - return new APIdeleteCollectionIngressClassRequest(); + public APIcreateServiceCIDRRequest createServiceCIDR(@jakarta.annotation.Nonnull V1ServiceCIDR body) { + return new APIcreateServiceCIDRRequest(body); } - private okhttp3.Call deleteCollectionNamespacedIngressCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionIPAddressCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1178,8 +1321,7 @@ private okhttp3.Call deleteCollectionNamespacedIngressCall(String namespace, Str Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/ipaddresses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1267,59 +1409,67 @@ private okhttp3.Call deleteCollectionNamespacedIngressCall(String namespace, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedIngressValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedIngress(Async)"); - } - - return deleteCollectionNamespacedIngressCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionIPAddressValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionIPAddressCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedIngressWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedIngressValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionIPAddressWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionIPAddressValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedIngressAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionIPAddressAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedIngressValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionIPAddressValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCollectionNamespacedIngressRequest { - private final String namespace; + public class APIdeleteCollectionIPAddressRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedIngressRequest(String namespace) { - this.namespace = namespace; + private APIdeleteCollectionIPAddressRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteCollectionNamespacedIngressRequest + * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionNamespacedIngressRequest pretty(String pretty) { + public APIdeleteCollectionIPAddressRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1327,9 +1477,9 @@ public APIdeleteCollectionNamespacedIngressRequest pretty(String pretty) { /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIdeleteCollectionNamespacedIngressRequest + * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionNamespacedIngressRequest _continue(String _continue) { + public APIdeleteCollectionIPAddressRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1337,9 +1487,9 @@ public APIdeleteCollectionNamespacedIngressRequest _continue(String _continue) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteCollectionNamespacedIngressRequest + * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionNamespacedIngressRequest dryRun(String dryRun) { + public APIdeleteCollectionIPAddressRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1347,9 +1497,9 @@ public APIdeleteCollectionNamespacedIngressRequest dryRun(String dryRun) { /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionNamespacedIngressRequest + * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionNamespacedIngressRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionIPAddressRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1357,9 +1507,9 @@ public APIdeleteCollectionNamespacedIngressRequest fieldSelector(String fieldSel /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteCollectionNamespacedIngressRequest + * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionNamespacedIngressRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionIPAddressRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1367,9 +1517,9 @@ public APIdeleteCollectionNamespacedIngressRequest gracePeriodSeconds(Integer gr /** * Set ignoreStoreReadErrorWithClusterBreakingPotential * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteCollectionNamespacedIngressRequest + * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionNamespacedIngressRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionIPAddressRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1377,9 +1527,9 @@ public APIdeleteCollectionNamespacedIngressRequest ignoreStoreReadErrorWithClust /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionNamespacedIngressRequest + * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionNamespacedIngressRequest labelSelector(String labelSelector) { + public APIdeleteCollectionIPAddressRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1387,9 +1537,9 @@ public APIdeleteCollectionNamespacedIngressRequest labelSelector(String labelSel /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIdeleteCollectionNamespacedIngressRequest + * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionNamespacedIngressRequest limit(Integer limit) { + public APIdeleteCollectionIPAddressRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1397,9 +1547,9 @@ public APIdeleteCollectionNamespacedIngressRequest limit(Integer limit) { /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteCollectionNamespacedIngressRequest + * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionNamespacedIngressRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionIPAddressRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1407,9 +1557,9 @@ public APIdeleteCollectionNamespacedIngressRequest orphanDependents(Boolean orph /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionNamespacedIngressRequest + * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionNamespacedIngressRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionIPAddressRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1417,9 +1567,9 @@ public APIdeleteCollectionNamespacedIngressRequest propagationPolicy(String prop /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionNamespacedIngressRequest + * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionNamespacedIngressRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionIPAddressRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1427,9 +1577,9 @@ public APIdeleteCollectionNamespacedIngressRequest resourceVersion(String resour /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionNamespacedIngressRequest + * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionNamespacedIngressRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionIPAddressRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1437,9 +1587,9 @@ public APIdeleteCollectionNamespacedIngressRequest resourceVersionMatch(String r /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIdeleteCollectionNamespacedIngressRequest + * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionNamespacedIngressRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionIPAddressRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1447,9 +1597,9 @@ public APIdeleteCollectionNamespacedIngressRequest sendInitialEvents(Boolean sen /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionNamespacedIngressRequest + * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionNamespacedIngressRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionIPAddressRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1457,93 +1607,97 @@ public APIdeleteCollectionNamespacedIngressRequest timeoutSeconds(Integer timeou /** * Set body * @param body (optional) - * @return APIdeleteCollectionNamespacedIngressRequest + * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionNamespacedIngressRequest body(V1DeleteOptions body) { + public APIdeleteCollectionIPAddressRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteCollectionNamespacedIngress + * Build call for deleteCollectionIPAddress * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedIngressCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionIPAddressCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** - * Execute deleteCollectionNamespacedIngress request + * Execute deleteCollectionIPAddress request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedIngressWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionIPAddressWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteCollectionNamespacedIngress request with HTTP info returned + * Execute deleteCollectionIPAddress request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedIngressWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionIPAddressWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** - * Execute deleteCollectionNamespacedIngress request (asynchronously) + * Execute deleteCollectionIPAddress request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedIngressAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionIPAddressAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * - * delete collection of Ingress - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIdeleteCollectionNamespacedIngressRequest + * delete collection of IPAddress + * @return APIdeleteCollectionIPAddressRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedIngressRequest deleteCollectionNamespacedIngress(String namespace) { - return new APIdeleteCollectionNamespacedIngressRequest(namespace); + public APIdeleteCollectionIPAddressRequest deleteCollectionIPAddress() { + return new APIdeleteCollectionIPAddressRequest(); } - private okhttp3.Call deleteCollectionNamespacedNetworkPolicyCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionIngressClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1560,8 +1714,7 @@ private okhttp3.Call deleteCollectionNamespacedNetworkPolicyCall(String namespac Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1649,59 +1802,67 @@ private okhttp3.Call deleteCollectionNamespacedNetworkPolicyCall(String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedNetworkPolicy(Async)"); - } - - return deleteCollectionNamespacedNetworkPolicyCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionIngressClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionIngressClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedNetworkPolicyWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionIngressClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionIngressClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedNetworkPolicyAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionIngressClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionIngressClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCollectionNamespacedNetworkPolicyRequest { - private final String namespace; + public class APIdeleteCollectionIngressClassRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedNetworkPolicyRequest(String namespace) { - this.namespace = namespace; + private APIdeleteCollectionIngressClassRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + * @return APIdeleteCollectionIngressClassRequest */ - public APIdeleteCollectionNamespacedNetworkPolicyRequest pretty(String pretty) { + public APIdeleteCollectionIngressClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1709,9 +1870,9 @@ public APIdeleteCollectionNamespacedNetworkPolicyRequest pretty(String pretty) { /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + * @return APIdeleteCollectionIngressClassRequest */ - public APIdeleteCollectionNamespacedNetworkPolicyRequest _continue(String _continue) { + public APIdeleteCollectionIngressClassRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1719,9 +1880,9 @@ public APIdeleteCollectionNamespacedNetworkPolicyRequest _continue(String _conti /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + * @return APIdeleteCollectionIngressClassRequest */ - public APIdeleteCollectionNamespacedNetworkPolicyRequest dryRun(String dryRun) { + public APIdeleteCollectionIngressClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1729,9 +1890,9 @@ public APIdeleteCollectionNamespacedNetworkPolicyRequest dryRun(String dryRun) { /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + * @return APIdeleteCollectionIngressClassRequest */ - public APIdeleteCollectionNamespacedNetworkPolicyRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionIngressClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1739,9 +1900,9 @@ public APIdeleteCollectionNamespacedNetworkPolicyRequest fieldSelector(String fi /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + * @return APIdeleteCollectionIngressClassRequest */ - public APIdeleteCollectionNamespacedNetworkPolicyRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionIngressClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1749,9 +1910,9 @@ public APIdeleteCollectionNamespacedNetworkPolicyRequest gracePeriodSeconds(Inte /** * Set ignoreStoreReadErrorWithClusterBreakingPotential * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + * @return APIdeleteCollectionIngressClassRequest */ - public APIdeleteCollectionNamespacedNetworkPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionIngressClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1759,9 +1920,9 @@ public APIdeleteCollectionNamespacedNetworkPolicyRequest ignoreStoreReadErrorWit /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + * @return APIdeleteCollectionIngressClassRequest */ - public APIdeleteCollectionNamespacedNetworkPolicyRequest labelSelector(String labelSelector) { + public APIdeleteCollectionIngressClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1769,9 +1930,9 @@ public APIdeleteCollectionNamespacedNetworkPolicyRequest labelSelector(String la /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + * @return APIdeleteCollectionIngressClassRequest */ - public APIdeleteCollectionNamespacedNetworkPolicyRequest limit(Integer limit) { + public APIdeleteCollectionIngressClassRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1779,9 +1940,9 @@ public APIdeleteCollectionNamespacedNetworkPolicyRequest limit(Integer limit) { /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + * @return APIdeleteCollectionIngressClassRequest */ - public APIdeleteCollectionNamespacedNetworkPolicyRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionIngressClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1789,9 +1950,9 @@ public APIdeleteCollectionNamespacedNetworkPolicyRequest orphanDependents(Boolea /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + * @return APIdeleteCollectionIngressClassRequest */ - public APIdeleteCollectionNamespacedNetworkPolicyRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionIngressClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1799,9 +1960,9 @@ public APIdeleteCollectionNamespacedNetworkPolicyRequest propagationPolicy(Strin /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + * @return APIdeleteCollectionIngressClassRequest */ - public APIdeleteCollectionNamespacedNetworkPolicyRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionIngressClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1809,9 +1970,9 @@ public APIdeleteCollectionNamespacedNetworkPolicyRequest resourceVersion(String /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + * @return APIdeleteCollectionIngressClassRequest */ - public APIdeleteCollectionNamespacedNetworkPolicyRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionIngressClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1819,9 +1980,9 @@ public APIdeleteCollectionNamespacedNetworkPolicyRequest resourceVersionMatch(St /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + * @return APIdeleteCollectionIngressClassRequest */ - public APIdeleteCollectionNamespacedNetworkPolicyRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionIngressClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1829,9 +1990,9 @@ public APIdeleteCollectionNamespacedNetworkPolicyRequest sendInitialEvents(Boole /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + * @return APIdeleteCollectionIngressClassRequest */ - public APIdeleteCollectionNamespacedNetworkPolicyRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionIngressClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1839,93 +2000,97 @@ public APIdeleteCollectionNamespacedNetworkPolicyRequest timeoutSeconds(Integer /** * Set body * @param body (optional) - * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + * @return APIdeleteCollectionIngressClassRequest */ - public APIdeleteCollectionNamespacedNetworkPolicyRequest body(V1DeleteOptions body) { + public APIdeleteCollectionIngressClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteCollectionNamespacedNetworkPolicy + * Build call for deleteCollectionIngressClass * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedNetworkPolicyCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionIngressClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** - * Execute deleteCollectionNamespacedNetworkPolicy request + * Execute deleteCollectionIngressClass request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionIngressClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteCollectionNamespacedNetworkPolicy request with HTTP info returned + * Execute deleteCollectionIngressClass request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionIngressClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** - * Execute deleteCollectionNamespacedNetworkPolicy request (asynchronously) + * Execute deleteCollectionIngressClass request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedNetworkPolicyAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionIngressClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * - * delete collection of NetworkPolicy - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + * delete collection of IngressClass + * @return APIdeleteCollectionIngressClassRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedNetworkPolicyRequest deleteCollectionNamespacedNetworkPolicy(String namespace) { - return new APIdeleteCollectionNamespacedNetworkPolicyRequest(namespace); + public APIdeleteCollectionIngressClassRequest deleteCollectionIngressClass() { + return new APIdeleteCollectionIngressClassRequest(); } - private okhttp3.Call deleteIngressClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedIngressCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1942,8 +2107,8 @@ private okhttp3.Call deleteIngressClassCall(String name, String pretty, String d Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1955,10 +2120,18 @@ private okhttp3.Call deleteIngressClassCall(String name, String pretty, String d localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } @@ -1967,6 +2140,14 @@ private okhttp3.Call deleteIngressClassCall(String name, String pretty, String d localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -1975,6 +2156,22 @@ private okhttp3.Call deleteIngressClassCall(String name, String pretty, String d localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", @@ -1999,71 +2196,115 @@ private okhttp3.Call deleteIngressClassCall(String name, String pretty, String d } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteIngressClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteIngressClass(Async)"); + private okhttp3.Call deleteCollectionNamespacedIngressValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedIngress(Async)"); } - return deleteIngressClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteCollectionNamespacedIngressCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteIngressClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteIngressClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + private ApiResponse deleteCollectionNamespacedIngressWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedIngressValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteIngressClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedIngressAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteIngressClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedIngressValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteIngressClassRequest { - private final String name; + public class APIdeleteCollectionNamespacedIngressRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteIngressClassRequest(String name) { - this.name = name; + private APIdeleteCollectionNamespacedIngressRequest(@jakarta.annotation.Nonnull String namespace) { + this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteIngressClassRequest + * @return APIdeleteCollectionNamespacedIngressRequest */ - public APIdeleteIngressClassRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedIngressRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIdeleteCollectionNamespacedIngressRequest + */ + public APIdeleteCollectionNamespacedIngressRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteIngressClassRequest + * @return APIdeleteCollectionNamespacedIngressRequest */ - public APIdeleteIngressClassRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedIngressRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionNamespacedIngressRequest + */ + public APIdeleteCollectionNamespacedIngressRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteIngressClassRequest + * @return APIdeleteCollectionNamespacedIngressRequest */ - public APIdeleteIngressClassRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedIngressRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2071,19 +2312,39 @@ public APIdeleteIngressClassRequest gracePeriodSeconds(Integer gracePeriodSecond /** * Set ignoreStoreReadErrorWithClusterBreakingPotential * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteIngressClassRequest + * @return APIdeleteCollectionNamespacedIngressRequest */ - public APIdeleteIngressClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedIngressRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionNamespacedIngressRequest + */ + public APIdeleteCollectionNamespacedIngressRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIdeleteCollectionNamespacedIngressRequest + */ + public APIdeleteCollectionNamespacedIngressRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteIngressClassRequest + * @return APIdeleteCollectionNamespacedIngressRequest */ - public APIdeleteIngressClassRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedIngressRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2091,108 +2352,148 @@ public APIdeleteIngressClassRequest orphanDependents(Boolean orphanDependents) { /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteIngressClassRequest + * @return APIdeleteCollectionNamespacedIngressRequest */ - public APIdeleteIngressClassRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedIngressRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionNamespacedIngressRequest + */ + public APIdeleteCollectionNamespacedIngressRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionNamespacedIngressRequest + */ + public APIdeleteCollectionNamespacedIngressRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionNamespacedIngressRequest + */ + public APIdeleteCollectionNamespacedIngressRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionNamespacedIngressRequest + */ + public APIdeleteCollectionNamespacedIngressRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + /** * Set body * @param body (optional) - * @return APIdeleteIngressClassRequest + * @return APIdeleteCollectionNamespacedIngressRequest */ - public APIdeleteIngressClassRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedIngressRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteIngressClass + * Build call for deleteCollectionNamespacedIngress * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteIngressClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteCollectionNamespacedIngressCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** - * Execute deleteIngressClass request + * Execute deleteCollectionNamespacedIngress request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteIngressClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteCollectionNamespacedIngressWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteIngressClass request with HTTP info returned + * Execute deleteCollectionNamespacedIngress request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteIngressClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return deleteCollectionNamespacedIngressWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** - * Execute deleteIngressClass request (asynchronously) + * Execute deleteCollectionNamespacedIngress request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteIngressClassAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteCollectionNamespacedIngressAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * - * delete an IngressClass - * @param name name of the IngressClass (required) - * @return APIdeleteIngressClassRequest + * delete collection of Ingress + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteCollectionNamespacedIngressRequest * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteIngressClassRequest deleteIngressClass(String name) { - return new APIdeleteIngressClassRequest(name); + public APIdeleteCollectionNamespacedIngressRequest deleteCollectionNamespacedIngress(@jakarta.annotation.Nonnull String namespace) { + return new APIdeleteCollectionNamespacedIngressRequest(namespace); } - private okhttp3.Call deleteNamespacedIngressCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedNetworkPolicyCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2209,8 +2510,7 @@ private okhttp3.Call deleteNamespacedIngressCall(String name, String namespace, Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); @@ -2223,10 +2523,18 @@ private okhttp3.Call deleteNamespacedIngressCall(String name, String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } @@ -2235,6 +2543,14 @@ private okhttp3.Call deleteNamespacedIngressCall(String name, String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -2243,6 +2559,22 @@ private okhttp3.Call deleteNamespacedIngressCall(String name, String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", @@ -2267,78 +2599,115 @@ private okhttp3.Call deleteNamespacedIngressCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedIngressValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedIngress(Async)"); - } - + private okhttp3.Call deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedIngress(Async)"); + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedNetworkPolicy(Async)"); } - return deleteNamespacedIngressCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteCollectionNamespacedNetworkPolicyCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteNamespacedIngressWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedIngressValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + private ApiResponse deleteCollectionNamespacedNetworkPolicyWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedIngressAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedNetworkPolicyAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedIngressValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteNamespacedIngressRequest { - private final String name; + public class APIdeleteCollectionNamespacedNetworkPolicyRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedIngressRequest(String name, String namespace) { - this.name = name; + private APIdeleteCollectionNamespacedNetworkPolicyRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteNamespacedIngressRequest + * @return APIdeleteCollectionNamespacedNetworkPolicyRequest */ - public APIdeleteNamespacedIngressRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedNetworkPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteNamespacedIngressRequest + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIdeleteCollectionNamespacedNetworkPolicyRequest */ - public APIdeleteNamespacedIngressRequest dryRun(String dryRun) { - this.dryRun = dryRun; + public APIdeleteCollectionNamespacedNetworkPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; return this; } /** - * Set gracePeriodSeconds + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + */ + public APIdeleteCollectionNamespacedNetworkPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + */ + public APIdeleteCollectionNamespacedNetworkPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteNamespacedIngressRequest + * @return APIdeleteCollectionNamespacedNetworkPolicyRequest */ - public APIdeleteNamespacedIngressRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedNetworkPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2346,19 +2715,39 @@ public APIdeleteNamespacedIngressRequest gracePeriodSeconds(Integer gracePeriodS /** * Set ignoreStoreReadErrorWithClusterBreakingPotential * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteNamespacedIngressRequest + * @return APIdeleteCollectionNamespacedNetworkPolicyRequest */ - public APIdeleteNamespacedIngressRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedNetworkPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + */ + public APIdeleteCollectionNamespacedNetworkPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + */ + public APIdeleteCollectionNamespacedNetworkPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteNamespacedIngressRequest + * @return APIdeleteCollectionNamespacedNetworkPolicyRequest */ - public APIdeleteNamespacedIngressRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedNetworkPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2366,109 +2755,148 @@ public APIdeleteNamespacedIngressRequest orphanDependents(Boolean orphanDependen /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteNamespacedIngressRequest + * @return APIdeleteCollectionNamespacedNetworkPolicyRequest */ - public APIdeleteNamespacedIngressRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedNetworkPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + */ + public APIdeleteCollectionNamespacedNetworkPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + */ + public APIdeleteCollectionNamespacedNetworkPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + */ + public APIdeleteCollectionNamespacedNetworkPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + */ + public APIdeleteCollectionNamespacedNetworkPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + /** * Set body * @param body (optional) - * @return APIdeleteNamespacedIngressRequest + * @return APIdeleteCollectionNamespacedNetworkPolicyRequest */ - public APIdeleteNamespacedIngressRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedNetworkPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteNamespacedIngress + * Build call for deleteCollectionNamespacedNetworkPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteNamespacedIngressCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteCollectionNamespacedNetworkPolicyCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** - * Execute deleteNamespacedIngress request + * Execute deleteCollectionNamespacedNetworkPolicy request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteNamespacedIngressWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteCollectionNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteNamespacedIngress request with HTTP info returned + * Execute deleteCollectionNamespacedNetworkPolicy request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteNamespacedIngressWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return deleteCollectionNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** - * Execute deleteNamespacedIngress request (asynchronously) + * Execute deleteCollectionNamespacedNetworkPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteNamespacedIngressAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteCollectionNamespacedNetworkPolicyAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * - * delete an Ingress - * @param name name of the Ingress (required) + * delete collection of NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIdeleteNamespacedIngressRequest + * @return APIdeleteCollectionNamespacedNetworkPolicyRequest * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedIngressRequest deleteNamespacedIngress(String name, String namespace) { - return new APIdeleteNamespacedIngressRequest(name, namespace); + public APIdeleteCollectionNamespacedNetworkPolicyRequest deleteCollectionNamespacedNetworkPolicy(@jakarta.annotation.Nonnull String namespace) { + return new APIdeleteCollectionNamespacedNetworkPolicyRequest(namespace); } - private okhttp3.Call deleteNamespacedNetworkPolicyCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionServiceCIDRCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2485,9 +2913,7 @@ private okhttp3.Call deleteNamespacedNetworkPolicyCall(String name, String names Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/servicecidrs"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2499,10 +2925,18 @@ private okhttp3.Call deleteNamespacedNetworkPolicyCall(String name, String names localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } @@ -2511,6 +2945,14 @@ private okhttp3.Call deleteNamespacedNetworkPolicyCall(String name, String names localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -2519,6 +2961,22 @@ private okhttp3.Call deleteNamespacedNetworkPolicyCall(String name, String names localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", @@ -2543,78 +3001,107 @@ private okhttp3.Call deleteNamespacedNetworkPolicyCall(String name, String names } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedNetworkPolicy(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedNetworkPolicy(Async)"); - } - - return deleteNamespacedNetworkPolicyCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + private okhttp3.Call deleteCollectionServiceCIDRValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionServiceCIDRCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + private ApiResponse deleteCollectionServiceCIDRWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionServiceCIDRValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedNetworkPolicyAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionServiceCIDRAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCollectionServiceCIDRValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteNamespacedNetworkPolicyRequest { - private final String name; - private final String namespace; + public class APIdeleteCollectionServiceCIDRRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedNetworkPolicyRequest(String name, String namespace) { - this.name = name; - this.namespace = namespace; + private APIdeleteCollectionServiceCIDRRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteNamespacedNetworkPolicyRequest + * @return APIdeleteCollectionServiceCIDRRequest */ - public APIdeleteNamespacedNetworkPolicyRequest pretty(String pretty) { + public APIdeleteCollectionServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIdeleteCollectionServiceCIDRRequest + */ + public APIdeleteCollectionServiceCIDRRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteNamespacedNetworkPolicyRequest + * @return APIdeleteCollectionServiceCIDRRequest */ - public APIdeleteNamespacedNetworkPolicyRequest dryRun(String dryRun) { + public APIdeleteCollectionServiceCIDRRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionServiceCIDRRequest + */ + public APIdeleteCollectionServiceCIDRRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteNamespacedNetworkPolicyRequest + * @return APIdeleteCollectionServiceCIDRRequest */ - public APIdeleteNamespacedNetworkPolicyRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionServiceCIDRRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2622,19 +3109,39 @@ public APIdeleteNamespacedNetworkPolicyRequest gracePeriodSeconds(Integer graceP /** * Set ignoreStoreReadErrorWithClusterBreakingPotential * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteNamespacedNetworkPolicyRequest + * @return APIdeleteCollectionServiceCIDRRequest */ - public APIdeleteNamespacedNetworkPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionServiceCIDRRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionServiceCIDRRequest + */ + public APIdeleteCollectionServiceCIDRRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIdeleteCollectionServiceCIDRRequest + */ + public APIdeleteCollectionServiceCIDRRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteNamespacedNetworkPolicyRequest + * @return APIdeleteCollectionServiceCIDRRequest */ - public APIdeleteNamespacedNetworkPolicyRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionServiceCIDRRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2642,109 +3149,147 @@ public APIdeleteNamespacedNetworkPolicyRequest orphanDependents(Boolean orphanDe /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteNamespacedNetworkPolicyRequest + * @return APIdeleteCollectionServiceCIDRRequest */ - public APIdeleteNamespacedNetworkPolicyRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionServiceCIDRRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionServiceCIDRRequest + */ + public APIdeleteCollectionServiceCIDRRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionServiceCIDRRequest + */ + public APIdeleteCollectionServiceCIDRRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionServiceCIDRRequest + */ + public APIdeleteCollectionServiceCIDRRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionServiceCIDRRequest + */ + public APIdeleteCollectionServiceCIDRRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + /** * Set body * @param body (optional) - * @return APIdeleteNamespacedNetworkPolicyRequest + * @return APIdeleteCollectionServiceCIDRRequest */ - public APIdeleteNamespacedNetworkPolicyRequest body(V1DeleteOptions body) { + public APIdeleteCollectionServiceCIDRRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteNamespacedNetworkPolicy + * Build call for deleteCollectionServiceCIDR * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteNamespacedNetworkPolicyCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteCollectionServiceCIDRCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** - * Execute deleteNamespacedNetworkPolicy request + * Execute deleteCollectionServiceCIDR request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteCollectionServiceCIDRWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteNamespacedNetworkPolicy request with HTTP info returned + * Execute deleteCollectionServiceCIDR request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return deleteCollectionServiceCIDRWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** - * Execute deleteNamespacedNetworkPolicy request (asynchronously) + * Execute deleteCollectionServiceCIDR request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteNamespacedNetworkPolicyAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteCollectionServiceCIDRAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * - * delete a NetworkPolicy - * @param name name of the NetworkPolicy (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIdeleteNamespacedNetworkPolicyRequest + * delete collection of ServiceCIDR + * @return APIdeleteCollectionServiceCIDRRequest * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedNetworkPolicyRequest deleteNamespacedNetworkPolicy(String name, String namespace) { - return new APIdeleteNamespacedNetworkPolicyRequest(name, namespace); + public APIdeleteCollectionServiceCIDRRequest deleteCollectionServiceCIDR() { + return new APIdeleteCollectionServiceCIDRRequest(); } - private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteIPAddressCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2758,10 +3303,11 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/"; + String localVarPath = "/apis/networking.k8s.io/v1/ipaddresses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2769,6 +3315,30 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", @@ -2781,6 +3351,7 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -2788,114 +3359,217 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return getAPIResourcesCall(_callback); + private okhttp3.Call deleteIPAddressValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteIPAddress(Async)"); + } + + return deleteIPAddressCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteIPAddressWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteIPAddressValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteIPAddressAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteIPAddressValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIgetAPIResourcesRequest { + public class APIdeleteIPAddressRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; - private APIgetAPIResourcesRequest() { + private APIdeleteIPAddressRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; } /** - * Build call for getAPIResources + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteIPAddressRequest + */ + public APIdeleteIPAddressRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteIPAddressRequest + */ + public APIdeleteIPAddressRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteIPAddressRequest + */ + public APIdeleteIPAddressRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteIPAddressRequest + */ + public APIdeleteIPAddressRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteIPAddressRequest + */ + public APIdeleteIPAddressRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteIPAddressRequest + */ + public APIdeleteIPAddressRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteIPAddressRequest + */ + public APIdeleteIPAddressRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteIPAddress * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getAPIResourcesCall(_callback); + return deleteIPAddressCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute getAPIResources request - * @return V1APIResourceList + * Execute deleteIPAddress request + * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1APIResourceList execute() throws ApiException { - ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteIPAddressWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute getAPIResources request with HTTP info returned - * @return ApiResponse<V1APIResourceList> + * Execute deleteIPAddress request with HTTP info returned + * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getAPIResourcesWithHttpInfo(); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteIPAddressWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute getAPIResources request (asynchronously) + * Execute deleteIPAddress request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getAPIResourcesAsync(_callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteIPAddressAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * get available resources - * @return APIgetAPIResourcesRequest + * delete an IPAddress + * @param name name of the IPAddress (required) + * @return APIdeleteIPAddressRequest * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIgetAPIResourcesRequest getAPIResources() { - return new APIgetAPIResourcesRequest(); + public APIdeleteIPAddressRequest deleteIPAddress(@jakarta.annotation.Nonnull String name) { + return new APIdeleteIPAddressRequest(name); } - private okhttp3.Call listIngressClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteIngressClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2909,10 +3583,11 @@ private okhttp3.Call listIngressClassCall(String pretty, Boolean allowWatchBookm basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses"; + String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2924,54 +3599,31 @@ private okhttp3.Call listIngressClassCall(String pretty, Boolean allowWatchBookm localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); } - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2979,6 +3631,7 @@ private okhttp3.Call listIngressClassCall(String pretty, Boolean allowWatchBookm } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -2986,235 +3639,217 @@ private okhttp3.Call listIngressClassCall(String pretty, Boolean allowWatchBookm } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listIngressClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - return listIngressClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call deleteIngressClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteIngressClass(Async)"); + } + + return deleteIngressClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private ApiResponse listIngressClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listIngressClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteIngressClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteIngressClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listIngressClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteIngressClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listIngressClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteIngressClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistIngressClassRequest { + public class APIdeleteIngressClassRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable private String pretty; - private Boolean allowWatchBookmarks; - private String _continue; - private String fieldSelector; - private String labelSelector; - private Integer limit; - private String resourceVersion; - private String resourceVersionMatch; - private Boolean sendInitialEvents; - private Integer timeoutSeconds; - private Boolean watch; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; - private APIlistIngressClassRequest() { + private APIdeleteIngressClassRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistIngressClassRequest + * @return APIdeleteIngressClassRequest */ - public APIlistIngressClassRequest pretty(String pretty) { + public APIdeleteIngressClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set allowWatchBookmarks - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - * @return APIlistIngressClassRequest + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteIngressClassRequest */ - public APIlistIngressClassRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { - this.allowWatchBookmarks = allowWatchBookmarks; + public APIdeleteIngressClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; return this; } /** - * Set _continue - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIlistIngressClassRequest + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteIngressClassRequest */ - public APIlistIngressClassRequest _continue(String _continue) { - this._continue = _continue; + public APIdeleteIngressClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistIngressClassRequest - */ - public APIlistIngressClassRequest fieldSelector(String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; - } - - /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistIngressClassRequest - */ - public APIlistIngressClassRequest labelSelector(String labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - /** - * Set limit - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIlistIngressClassRequest - */ - public APIlistIngressClassRequest limit(Integer limit) { - this.limit = limit; - return this; - } - - /** - * Set resourceVersion - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistIngressClassRequest - */ - public APIlistIngressClassRequest resourceVersion(String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; - } - - /** - * Set resourceVersionMatch - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistIngressClassRequest + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteIngressClassRequest */ - public APIlistIngressClassRequest resourceVersionMatch(String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; + public APIdeleteIngressClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistIngressClassRequest + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteIngressClassRequest */ - public APIlistIngressClassRequest sendInitialEvents(Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; + public APIdeleteIngressClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; return this; } /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistIngressClassRequest + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteIngressClassRequest */ - public APIlistIngressClassRequest timeoutSeconds(Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; + public APIdeleteIngressClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; return this; } /** - * Set watch - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistIngressClassRequest + * Set body + * @param body (optional) + * @return APIdeleteIngressClassRequest */ - public APIlistIngressClassRequest watch(Boolean watch) { - this.watch = watch; + public APIdeleteIngressClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; return this; } /** - * Build call for listIngressClass + * Build call for deleteIngressClass * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listIngressClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return deleteIngressClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute listIngressClass request - * @return V1IngressClassList + * Execute deleteIngressClass request + * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1IngressClassList execute() throws ApiException { - ApiResponse localVarResp = listIngressClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteIngressClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute listIngressClass request with HTTP info returned - * @return ApiResponse<V1IngressClassList> + * Execute deleteIngressClass request with HTTP info returned + * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listIngressClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteIngressClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute listIngressClass request (asynchronously) + * Execute deleteIngressClass request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listIngressClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteIngressClassAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * list or watch objects of kind IngressClass - * @return APIlistIngressClassRequest + * delete an IngressClass + * @param name name of the IngressClass (required) + * @return APIdeleteIngressClassRequest * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIlistIngressClassRequest listIngressClass() { - return new APIlistIngressClassRequest(); + public APIdeleteIngressClassRequest deleteIngressClass(@jakarta.annotation.Nonnull String name) { + return new APIdeleteIngressClassRequest(name); } - private okhttp3.Call listIngressForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedIngressCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3228,10 +3863,12 @@ private okhttp3.Call listIngressForAllNamespacesCall(Boolean allowWatchBookmarks basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/ingresses"; + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3239,58 +3876,35 @@ private okhttp3.Call listIngressForAllNamespacesCall(Boolean allowWatchBookmarks Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); } - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3298,6 +3912,7 @@ private okhttp3.Call listIngressForAllNamespacesCall(Boolean allowWatchBookmarks } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -3305,235 +3920,226 @@ private okhttp3.Call listIngressForAllNamespacesCall(Boolean allowWatchBookmarks } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listIngressForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - return listIngressForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call deleteNamespacedIngressValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedIngress(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedIngress(Async)"); + } + + return deleteNamespacedIngressCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private ApiResponse listIngressForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listIngressForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteNamespacedIngressWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedIngressValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listIngressForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedIngressAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listIngressForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteNamespacedIngressValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistIngressForAllNamespacesRequest { - private Boolean allowWatchBookmarks; - private String _continue; - private String fieldSelector; - private String labelSelector; - private Integer limit; + public class APIdeleteNamespacedIngressRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private String resourceVersion; - private String resourceVersionMatch; - private Boolean sendInitialEvents; - private Integer timeoutSeconds; - private Boolean watch; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; - private APIlistIngressForAllNamespacesRequest() { + private APIdeleteNamespacedIngressRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; + this.namespace = namespace; } /** - * Set allowWatchBookmarks - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - * @return APIlistIngressForAllNamespacesRequest + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteNamespacedIngressRequest */ - public APIlistIngressForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { - this.allowWatchBookmarks = allowWatchBookmarks; + public APIdeleteNamespacedIngressRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; return this; } /** - * Set _continue - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIlistIngressForAllNamespacesRequest + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteNamespacedIngressRequest */ - public APIlistIngressForAllNamespacesRequest _continue(String _continue) { - this._continue = _continue; + public APIdeleteNamespacedIngressRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; return this; } /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistIngressForAllNamespacesRequest + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteNamespacedIngressRequest */ - public APIlistIngressForAllNamespacesRequest fieldSelector(String fieldSelector) { - this.fieldSelector = fieldSelector; + public APIdeleteNamespacedIngressRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistIngressForAllNamespacesRequest + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteNamespacedIngressRequest */ - public APIlistIngressForAllNamespacesRequest labelSelector(String labelSelector) { - this.labelSelector = labelSelector; + public APIdeleteNamespacedIngressRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } /** - * Set limit - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIlistIngressForAllNamespacesRequest + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteNamespacedIngressRequest */ - public APIlistIngressForAllNamespacesRequest limit(Integer limit) { - this.limit = limit; + public APIdeleteNamespacedIngressRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; return this; } /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistIngressForAllNamespacesRequest + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteNamespacedIngressRequest */ - public APIlistIngressForAllNamespacesRequest pretty(String pretty) { - this.pretty = pretty; + public APIdeleteNamespacedIngressRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; return this; } /** - * Set resourceVersion - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistIngressForAllNamespacesRequest + * Set body + * @param body (optional) + * @return APIdeleteNamespacedIngressRequest */ - public APIlistIngressForAllNamespacesRequest resourceVersion(String resourceVersion) { - this.resourceVersion = resourceVersion; + public APIdeleteNamespacedIngressRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; return this; } /** - * Set resourceVersionMatch - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistIngressForAllNamespacesRequest - */ - public APIlistIngressForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; - return this; - } - - /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistIngressForAllNamespacesRequest - */ - public APIlistIngressForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistIngressForAllNamespacesRequest - */ - public APIlistIngressForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return this; - } - - /** - * Set watch - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistIngressForAllNamespacesRequest - */ - public APIlistIngressForAllNamespacesRequest watch(Boolean watch) { - this.watch = watch; - return this; - } - - /** - * Build call for listIngressForAllNamespaces + * Build call for deleteNamespacedIngress * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listIngressForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return deleteNamespacedIngressCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute listIngressForAllNamespaces request - * @return V1IngressList + * Execute deleteNamespacedIngress request + * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1IngressList execute() throws ApiException { - ApiResponse localVarResp = listIngressForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteNamespacedIngressWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute listIngressForAllNamespaces request with HTTP info returned - * @return ApiResponse<V1IngressList> + * Execute deleteNamespacedIngress request with HTTP info returned + * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listIngressForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteNamespacedIngressWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute listIngressForAllNamespaces request (asynchronously) + * Execute deleteNamespacedIngress request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listIngressForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteNamespacedIngressAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * list or watch objects of kind Ingress - * @return APIlistIngressForAllNamespacesRequest + * delete an Ingress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteNamespacedIngressRequest * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIlistIngressForAllNamespacesRequest listIngressForAllNamespaces() { - return new APIlistIngressForAllNamespacesRequest(); + public APIdeleteNamespacedIngressRequest deleteNamespacedIngress(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIdeleteNamespacedIngressRequest(name, namespace); } - private okhttp3.Call listNamespacedIngressCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedNetworkPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3547,10 +4153,11 @@ private okhttp3.Call listNamespacedIngressCall(String namespace, String pretty, basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses" + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); @@ -3563,54 +4170,31 @@ private okhttp3.Call listNamespacedIngressCall(String namespace, String pretty, localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); } - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3618,6 +4202,7 @@ private okhttp3.Call listNamespacedIngressCall(String namespace, String pretty, } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -3625,243 +4210,226 @@ private okhttp3.Call listNamespacedIngressCall(String namespace, String pretty, } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedIngressValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedNetworkPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedNetworkPolicy(Async)"); + } + // verify the required parameter 'namespace' is set if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedIngress(Async)"); + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedNetworkPolicy(Async)"); } - return listNamespacedIngressCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return deleteNamespacedNetworkPolicyCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private ApiResponse listNamespacedIngressWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedIngressValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteNamespacedNetworkPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedIngressAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedNetworkPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedIngressValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistNamespacedIngressRequest { + public class APIdeleteNamespacedNetworkPolicyRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private Boolean allowWatchBookmarks; - private String _continue; - private String fieldSelector; - private String labelSelector; - private Integer limit; - private String resourceVersion; - private String resourceVersionMatch; - private Boolean sendInitialEvents; - private Integer timeoutSeconds; - private Boolean watch; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; - private APIlistNamespacedIngressRequest(String namespace) { + private APIdeleteNamespacedNetworkPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistNamespacedIngressRequest + * @return APIdeleteNamespacedNetworkPolicyRequest */ - public APIlistNamespacedIngressRequest pretty(String pretty) { + public APIdeleteNamespacedNetworkPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set allowWatchBookmarks - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - * @return APIlistNamespacedIngressRequest - */ - public APIlistNamespacedIngressRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { - this.allowWatchBookmarks = allowWatchBookmarks; - return this; - } - - /** - * Set _continue - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIlistNamespacedIngressRequest - */ - public APIlistNamespacedIngressRequest _continue(String _continue) { - this._continue = _continue; - return this; - } - - /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistNamespacedIngressRequest - */ - public APIlistNamespacedIngressRequest fieldSelector(String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; - } - - /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistNamespacedIngressRequest - */ - public APIlistNamespacedIngressRequest labelSelector(String labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - /** - * Set limit - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIlistNamespacedIngressRequest + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteNamespacedNetworkPolicyRequest */ - public APIlistNamespacedIngressRequest limit(Integer limit) { - this.limit = limit; + public APIdeleteNamespacedNetworkPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; return this; } /** - * Set resourceVersion - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistNamespacedIngressRequest + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteNamespacedNetworkPolicyRequest */ - public APIlistNamespacedIngressRequest resourceVersion(String resourceVersion) { - this.resourceVersion = resourceVersion; + public APIdeleteNamespacedNetworkPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** - * Set resourceVersionMatch - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistNamespacedIngressRequest + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteNamespacedNetworkPolicyRequest */ - public APIlistNamespacedIngressRequest resourceVersionMatch(String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; + public APIdeleteNamespacedNetworkPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistNamespacedIngressRequest + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteNamespacedNetworkPolicyRequest */ - public APIlistNamespacedIngressRequest sendInitialEvents(Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; + public APIdeleteNamespacedNetworkPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; return this; } /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistNamespacedIngressRequest + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteNamespacedNetworkPolicyRequest */ - public APIlistNamespacedIngressRequest timeoutSeconds(Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; + public APIdeleteNamespacedNetworkPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; return this; } /** - * Set watch - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistNamespacedIngressRequest + * Set body + * @param body (optional) + * @return APIdeleteNamespacedNetworkPolicyRequest */ - public APIlistNamespacedIngressRequest watch(Boolean watch) { - this.watch = watch; + public APIdeleteNamespacedNetworkPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; return this; } /** - * Build call for listNamespacedIngress + * Build call for deleteNamespacedNetworkPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedIngressCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return deleteNamespacedNetworkPolicyCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute listNamespacedIngress request - * @return V1IngressList + * Execute deleteNamespacedNetworkPolicy request + * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1IngressList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedIngressWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute listNamespacedIngress request with HTTP info returned - * @return ApiResponse<V1IngressList> + * Execute deleteNamespacedNetworkPolicy request with HTTP info returned + * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedIngressWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute listNamespacedIngress request (asynchronously) + * Execute deleteNamespacedNetworkPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedIngressAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteNamespacedNetworkPolicyAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * list or watch objects of kind Ingress + * delete a NetworkPolicy + * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIlistNamespacedIngressRequest + * @return APIdeleteNamespacedNetworkPolicyRequest * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIlistNamespacedIngressRequest listNamespacedIngress(String namespace) { - return new APIlistNamespacedIngressRequest(namespace); + public APIdeleteNamespacedNetworkPolicyRequest deleteNamespacedNetworkPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIdeleteNamespacedNetworkPolicyRequest(name, namespace); } - private okhttp3.Call listNamespacedNetworkPolicyCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteServiceCIDRCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3875,11 +4443,11 @@ private okhttp3.Call listNamespacedNetworkPolicyCall(String namespace, String pr basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/servicecidrs/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3891,54 +4459,31 @@ private okhttp3.Call listNamespacedNetworkPolicyCall(String namespace, String pr localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); } - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3946,6 +4491,7 @@ private okhttp3.Call listNamespacedNetworkPolicyCall(String namespace, String pr } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -3953,243 +4499,4777 @@ private okhttp3.Call listNamespacedNetworkPolicyCall(String namespace, String pr } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedNetworkPolicyValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedNetworkPolicy(Async)"); + private okhttp3.Call deleteServiceCIDRValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteServiceCIDR(Async)"); } - return listNamespacedNetworkPolicyCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return deleteServiceCIDRCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private ApiResponse listNamespacedNetworkPolicyWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteServiceCIDRWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteServiceCIDRValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedNetworkPolicyAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteServiceCIDRAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteServiceCIDRValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistNamespacedNetworkPolicyRequest { - private final String namespace; + public class APIdeleteServiceCIDRRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable private String pretty; - private Boolean allowWatchBookmarks; - private String _continue; - private String fieldSelector; - private String labelSelector; - private Integer limit; - private String resourceVersion; - private String resourceVersionMatch; - private Boolean sendInitialEvents; - private Integer timeoutSeconds; - private Boolean watch; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; - private APIlistNamespacedNetworkPolicyRequest(String namespace) { - this.namespace = namespace; + private APIdeleteServiceCIDRRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistNamespacedNetworkPolicyRequest + * @return APIdeleteServiceCIDRRequest */ - public APIlistNamespacedNetworkPolicyRequest pretty(String pretty) { + public APIdeleteServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set allowWatchBookmarks - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - * @return APIlistNamespacedNetworkPolicyRequest + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteServiceCIDRRequest */ - public APIlistNamespacedNetworkPolicyRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { - this.allowWatchBookmarks = allowWatchBookmarks; + public APIdeleteServiceCIDRRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; return this; } /** - * Set _continue - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIlistNamespacedNetworkPolicyRequest + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteServiceCIDRRequest */ - public APIlistNamespacedNetworkPolicyRequest _continue(String _continue) { - this._continue = _continue; + public APIdeleteServiceCIDRRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistNamespacedNetworkPolicyRequest + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteServiceCIDRRequest */ - public APIlistNamespacedNetworkPolicyRequest fieldSelector(String fieldSelector) { - this.fieldSelector = fieldSelector; + public APIdeleteServiceCIDRRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistNamespacedNetworkPolicyRequest + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteServiceCIDRRequest */ - public APIlistNamespacedNetworkPolicyRequest labelSelector(String labelSelector) { - this.labelSelector = labelSelector; + public APIdeleteServiceCIDRRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; return this; } /** - * Set limit - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIlistNamespacedNetworkPolicyRequest + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteServiceCIDRRequest */ - public APIlistNamespacedNetworkPolicyRequest limit(Integer limit) { - this.limit = limit; + public APIdeleteServiceCIDRRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; return this; } /** - * Set resourceVersion - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistNamespacedNetworkPolicyRequest + * Set body + * @param body (optional) + * @return APIdeleteServiceCIDRRequest */ - public APIlistNamespacedNetworkPolicyRequest resourceVersion(String resourceVersion) { - this.resourceVersion = resourceVersion; + public APIdeleteServiceCIDRRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; return this; } /** - * Set resourceVersionMatch - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistNamespacedNetworkPolicyRequest + * Build call for deleteServiceCIDR + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIlistNamespacedNetworkPolicyRequest resourceVersionMatch(String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; - return this; + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteServiceCIDRCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistNamespacedNetworkPolicyRequest + * Execute deleteServiceCIDR request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIlistNamespacedNetworkPolicyRequest sendInitialEvents(Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteServiceCIDRWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistNamespacedNetworkPolicyRequest + * Execute deleteServiceCIDR request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIlistNamespacedNetworkPolicyRequest timeoutSeconds(Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return this; + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteServiceCIDRWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Set watch - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistNamespacedNetworkPolicyRequest + * Execute deleteServiceCIDR request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteServiceCIDRAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @return APIdeleteServiceCIDRRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteServiceCIDRRequest deleteServiceCIDR(@jakarta.annotation.Nonnull String name) { + return new APIdeleteServiceCIDRRequest(name); + } + private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return getAPIResourcesCall(_callback); + + } + + + private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetAPIResourcesRequest { + + private APIgetAPIResourcesRequest() { + } + + /** + * Build call for getAPIResources + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getAPIResourcesCall(_callback); + } + + /** + * Execute getAPIResources request + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList execute() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Execute getAPIResources request with HTTP info returned + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getAPIResourcesWithHttpInfo(); + } + + /** + * Execute getAPIResources request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getAPIResourcesAsync(_callback); + } + } + + /** + * + * get available resources + * @return APIgetAPIResourcesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIgetAPIResourcesRequest getAPIResources() { + return new APIgetAPIResourcesRequest(); + } + private okhttp3.Call listIPAddressCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/ipaddresses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listIPAddressValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listIPAddressCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listIPAddressWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listIPAddressValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listIPAddressAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listIPAddressValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistIPAddressRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistIPAddressRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistIPAddressRequest + */ + public APIlistIPAddressRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistIPAddressRequest + */ + public APIlistIPAddressRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistIPAddressRequest + */ + public APIlistIPAddressRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistIPAddressRequest + */ + public APIlistIPAddressRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistIPAddressRequest + */ + public APIlistIPAddressRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistIPAddressRequest + */ + public APIlistIPAddressRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistIPAddressRequest + */ + public APIlistIPAddressRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistIPAddressRequest + */ + public APIlistIPAddressRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistIPAddressRequest + */ + public APIlistIPAddressRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistIPAddressRequest + */ + public APIlistIPAddressRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistIPAddressRequest + */ + public APIlistIPAddressRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listIPAddress + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listIPAddressCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listIPAddress request + * @return V1IPAddressList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1IPAddressList execute() throws ApiException { + ApiResponse localVarResp = listIPAddressWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listIPAddress request with HTTP info returned + * @return ApiResponse<V1IPAddressList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listIPAddressWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + } + + /** + * Execute listIPAddress request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listIPAddressAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind IPAddress + * @return APIlistIPAddressRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistIPAddressRequest listIPAddress() { + return new APIlistIPAddressRequest(); + } + private okhttp3.Call listIngressClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listIngressClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listIngressClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listIngressClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listIngressClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listIngressClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listIngressClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistIngressClassRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistIngressClassRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistIngressClassRequest + */ + public APIlistIngressClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistIngressClassRequest + */ + public APIlistIngressClassRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistIngressClassRequest + */ + public APIlistIngressClassRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistIngressClassRequest + */ + public APIlistIngressClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistIngressClassRequest + */ + public APIlistIngressClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistIngressClassRequest + */ + public APIlistIngressClassRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistIngressClassRequest + */ + public APIlistIngressClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistIngressClassRequest + */ + public APIlistIngressClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistIngressClassRequest + */ + public APIlistIngressClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistIngressClassRequest + */ + public APIlistIngressClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistIngressClassRequest + */ + public APIlistIngressClassRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listIngressClass + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listIngressClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listIngressClass request + * @return V1IngressClassList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1IngressClassList execute() throws ApiException { + ApiResponse localVarResp = listIngressClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listIngressClass request with HTTP info returned + * @return ApiResponse<V1IngressClassList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listIngressClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + } + + /** + * Execute listIngressClass request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listIngressClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind IngressClass + * @return APIlistIngressClassRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistIngressClassRequest listIngressClass() { + return new APIlistIngressClassRequest(); + } + private okhttp3.Call listIngressForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/ingresses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listIngressForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listIngressForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listIngressForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listIngressForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listIngressForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listIngressForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistIngressForAllNamespacesRequest { + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistIngressForAllNamespacesRequest() { + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistIngressForAllNamespacesRequest + */ + public APIlistIngressForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistIngressForAllNamespacesRequest + */ + public APIlistIngressForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistIngressForAllNamespacesRequest + */ + public APIlistIngressForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistIngressForAllNamespacesRequest + */ + public APIlistIngressForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistIngressForAllNamespacesRequest + */ + public APIlistIngressForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistIngressForAllNamespacesRequest + */ + public APIlistIngressForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistIngressForAllNamespacesRequest + */ + public APIlistIngressForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistIngressForAllNamespacesRequest + */ + public APIlistIngressForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistIngressForAllNamespacesRequest + */ + public APIlistIngressForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistIngressForAllNamespacesRequest + */ + public APIlistIngressForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistIngressForAllNamespacesRequest + */ + public APIlistIngressForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listIngressForAllNamespaces + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listIngressForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listIngressForAllNamespaces request + * @return V1IngressList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1IngressList execute() throws ApiException { + ApiResponse localVarResp = listIngressForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listIngressForAllNamespaces request with HTTP info returned + * @return ApiResponse<V1IngressList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listIngressForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + } + + /** + * Execute listIngressForAllNamespaces request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listIngressForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind Ingress + * @return APIlistIngressForAllNamespacesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistIngressForAllNamespacesRequest listIngressForAllNamespaces() { + return new APIlistIngressForAllNamespacesRequest(); + } + private okhttp3.Call listNamespacedIngressCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNamespacedIngressValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedIngress(Async)"); + } + + return listNamespacedIngressCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listNamespacedIngressWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedIngressValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listNamespacedIngressAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedIngressValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistNamespacedIngressRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistNamespacedIngressRequest(@jakarta.annotation.Nonnull String namespace) { + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistNamespacedIngressRequest + */ + public APIlistNamespacedIngressRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistNamespacedIngressRequest + */ + public APIlistNamespacedIngressRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistNamespacedIngressRequest + */ + public APIlistNamespacedIngressRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistNamespacedIngressRequest + */ + public APIlistNamespacedIngressRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistNamespacedIngressRequest + */ + public APIlistNamespacedIngressRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistNamespacedIngressRequest + */ + public APIlistNamespacedIngressRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistNamespacedIngressRequest + */ + public APIlistNamespacedIngressRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistNamespacedIngressRequest + */ + public APIlistNamespacedIngressRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistNamespacedIngressRequest + */ + public APIlistNamespacedIngressRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistNamespacedIngressRequest + */ + public APIlistNamespacedIngressRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistNamespacedIngressRequest + */ + public APIlistNamespacedIngressRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listNamespacedIngress + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listNamespacedIngressCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listNamespacedIngress request + * @return V1IngressList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1IngressList execute() throws ApiException { + ApiResponse localVarResp = listNamespacedIngressWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listNamespacedIngress request with HTTP info returned + * @return ApiResponse<V1IngressList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listNamespacedIngressWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + } + + /** + * Execute listNamespacedIngress request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listNamespacedIngressAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind Ingress + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIlistNamespacedIngressRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistNamespacedIngressRequest listNamespacedIngress(@jakarta.annotation.Nonnull String namespace) { + return new APIlistNamespacedIngressRequest(namespace); + } + private okhttp3.Call listNamespacedNetworkPolicyCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNamespacedNetworkPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedNetworkPolicy(Async)"); + } + + return listNamespacedNetworkPolicyCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listNamespacedNetworkPolicyWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listNamespacedNetworkPolicyAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistNamespacedNetworkPolicyRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistNamespacedNetworkPolicyRequest(@jakarta.annotation.Nonnull String namespace) { + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistNamespacedNetworkPolicyRequest + */ + public APIlistNamespacedNetworkPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistNamespacedNetworkPolicyRequest + */ + public APIlistNamespacedNetworkPolicyRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistNamespacedNetworkPolicyRequest + */ + public APIlistNamespacedNetworkPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistNamespacedNetworkPolicyRequest + */ + public APIlistNamespacedNetworkPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistNamespacedNetworkPolicyRequest + */ + public APIlistNamespacedNetworkPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistNamespacedNetworkPolicyRequest + */ + public APIlistNamespacedNetworkPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistNamespacedNetworkPolicyRequest + */ + public APIlistNamespacedNetworkPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistNamespacedNetworkPolicyRequest + */ + public APIlistNamespacedNetworkPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistNamespacedNetworkPolicyRequest + */ + public APIlistNamespacedNetworkPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistNamespacedNetworkPolicyRequest + */ + public APIlistNamespacedNetworkPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistNamespacedNetworkPolicyRequest + */ + public APIlistNamespacedNetworkPolicyRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listNamespacedNetworkPolicy + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listNamespacedNetworkPolicyCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listNamespacedNetworkPolicy request + * @return V1NetworkPolicyList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1NetworkPolicyList execute() throws ApiException { + ApiResponse localVarResp = listNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listNamespacedNetworkPolicy request with HTTP info returned + * @return ApiResponse<V1NetworkPolicyList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + } + + /** + * Execute listNamespacedNetworkPolicy request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listNamespacedNetworkPolicyAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIlistNamespacedNetworkPolicyRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistNamespacedNetworkPolicyRequest listNamespacedNetworkPolicy(@jakarta.annotation.Nonnull String namespace) { + return new APIlistNamespacedNetworkPolicyRequest(namespace); + } + private okhttp3.Call listNetworkPolicyForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/networkpolicies"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNetworkPolicyForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listNetworkPolicyForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listNetworkPolicyForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNetworkPolicyForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listNetworkPolicyForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNetworkPolicyForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistNetworkPolicyForAllNamespacesRequest { + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistNetworkPolicyForAllNamespacesRequest() { + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistNetworkPolicyForAllNamespacesRequest + */ + public APIlistNetworkPolicyForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistNetworkPolicyForAllNamespacesRequest + */ + public APIlistNetworkPolicyForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistNetworkPolicyForAllNamespacesRequest + */ + public APIlistNetworkPolicyForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistNetworkPolicyForAllNamespacesRequest + */ + public APIlistNetworkPolicyForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistNetworkPolicyForAllNamespacesRequest + */ + public APIlistNetworkPolicyForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistNetworkPolicyForAllNamespacesRequest + */ + public APIlistNetworkPolicyForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistNetworkPolicyForAllNamespacesRequest + */ + public APIlistNetworkPolicyForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistNetworkPolicyForAllNamespacesRequest + */ + public APIlistNetworkPolicyForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistNetworkPolicyForAllNamespacesRequest + */ + public APIlistNetworkPolicyForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistNetworkPolicyForAllNamespacesRequest + */ + public APIlistNetworkPolicyForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistNetworkPolicyForAllNamespacesRequest + */ + public APIlistNetworkPolicyForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listNetworkPolicyForAllNamespaces + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listNetworkPolicyForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listNetworkPolicyForAllNamespaces request + * @return V1NetworkPolicyList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1NetworkPolicyList execute() throws ApiException { + ApiResponse localVarResp = listNetworkPolicyForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listNetworkPolicyForAllNamespaces request with HTTP info returned + * @return ApiResponse<V1NetworkPolicyList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listNetworkPolicyForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + } + + /** + * Execute listNetworkPolicyForAllNamespaces request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listNetworkPolicyForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind NetworkPolicy + * @return APIlistNetworkPolicyForAllNamespacesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistNetworkPolicyForAllNamespacesRequest listNetworkPolicyForAllNamespaces() { + return new APIlistNetworkPolicyForAllNamespacesRequest(); + } + private okhttp3.Call listServiceCIDRCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/servicecidrs"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listServiceCIDRValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listServiceCIDRCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listServiceCIDRWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listServiceCIDRValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listServiceCIDRAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listServiceCIDRValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistServiceCIDRRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistServiceCIDRRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistServiceCIDRRequest + */ + public APIlistServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistServiceCIDRRequest + */ + public APIlistServiceCIDRRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistServiceCIDRRequest + */ + public APIlistServiceCIDRRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistServiceCIDRRequest + */ + public APIlistServiceCIDRRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistServiceCIDRRequest + */ + public APIlistServiceCIDRRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistServiceCIDRRequest + */ + public APIlistServiceCIDRRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistServiceCIDRRequest + */ + public APIlistServiceCIDRRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistServiceCIDRRequest + */ + public APIlistServiceCIDRRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistServiceCIDRRequest + */ + public APIlistServiceCIDRRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistServiceCIDRRequest + */ + public APIlistServiceCIDRRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistServiceCIDRRequest + */ + public APIlistServiceCIDRRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listServiceCIDR + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listServiceCIDRCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listServiceCIDR request + * @return V1ServiceCIDRList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1ServiceCIDRList execute() throws ApiException { + ApiResponse localVarResp = listServiceCIDRWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listServiceCIDR request with HTTP info returned + * @return ApiResponse<V1ServiceCIDRList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listServiceCIDRWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + } + + /** + * Execute listServiceCIDR request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listServiceCIDRAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind ServiceCIDR + * @return APIlistServiceCIDRRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistServiceCIDRRequest listServiceCIDR() { + return new APIlistServiceCIDRRequest(); + } + private okhttp3.Call patchIPAddressCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/ipaddresses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchIPAddressValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchIPAddress(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchIPAddress(Async)"); + } + + return patchIPAddressCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchIPAddressWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchIPAddressValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchIPAddressAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchIPAddressValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchIPAddressRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchIPAddressRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchIPAddressRequest + */ + public APIpatchIPAddressRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchIPAddressRequest + */ + public APIpatchIPAddressRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchIPAddressRequest + */ + public APIpatchIPAddressRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchIPAddressRequest + */ + public APIpatchIPAddressRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchIPAddressRequest + */ + public APIpatchIPAddressRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchIPAddress + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchIPAddressCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchIPAddress request + * @return V1IPAddress + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1IPAddress execute() throws ApiException { + ApiResponse localVarResp = patchIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchIPAddress request with HTTP info returned + * @return ApiResponse<V1IPAddress> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchIPAddress request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchIPAddressAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified IPAddress + * @param name name of the IPAddress (required) + * @param body (required) + * @return APIpatchIPAddressRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchIPAddressRequest patchIPAddress(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchIPAddressRequest(name, body); + } + private okhttp3.Call patchIngressClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchIngressClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchIngressClass(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchIngressClass(Async)"); + } + + return patchIngressClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchIngressClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchIngressClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchIngressClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchIngressClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchIngressClassRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchIngressClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchIngressClassRequest + */ + public APIpatchIngressClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchIngressClassRequest + */ + public APIpatchIngressClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchIngressClassRequest + */ + public APIpatchIngressClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchIngressClassRequest + */ + public APIpatchIngressClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchIngressClassRequest + */ + public APIpatchIngressClassRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchIngressClass + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchIngressClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchIngressClass request + * @return V1IngressClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1IngressClass execute() throws ApiException { + ApiResponse localVarResp = patchIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchIngressClass request with HTTP info returned + * @return ApiResponse<V1IngressClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchIngressClass request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchIngressClassAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified IngressClass + * @param name name of the IngressClass (required) + * @param body (required) + * @return APIpatchIngressClassRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchIngressClassRequest patchIngressClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchIngressClassRequest(name, body); + } + private okhttp3.Call patchNamespacedIngressCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedIngressValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedIngress(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedIngress(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedIngress(Async)"); + } + + return patchNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedIngressWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedIngressAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedIngressRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchNamespacedIngressRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchNamespacedIngressRequest + */ + public APIpatchNamespacedIngressRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchNamespacedIngressRequest + */ + public APIpatchNamespacedIngressRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchNamespacedIngressRequest + */ + public APIpatchNamespacedIngressRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchNamespacedIngressRequest + */ + public APIpatchNamespacedIngressRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchNamespacedIngressRequest + */ + public APIpatchNamespacedIngressRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedIngress + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedIngress request + * @return V1Ingress + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1Ingress execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedIngress request with HTTP info returned + * @return ApiResponse<V1Ingress> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedIngress request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchNamespacedIngressAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified Ingress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedIngressRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedIngressRequest patchNamespacedIngress(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedIngressRequest(name, namespace, body); + } + private okhttp3.Call patchNamespacedIngressStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedIngressStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedIngressStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedIngressStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedIngressStatus(Async)"); + } + + return patchNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedIngressStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedIngressStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedIngressStatusRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchNamespacedIngressStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchNamespacedIngressStatusRequest + */ + public APIpatchNamespacedIngressStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchNamespacedIngressStatusRequest + */ + public APIpatchNamespacedIngressStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchNamespacedIngressStatusRequest + */ + public APIpatchNamespacedIngressStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchNamespacedIngressStatusRequest + */ + public APIpatchNamespacedIngressStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchNamespacedIngressStatusRequest + */ + public APIpatchNamespacedIngressStatusRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedIngressStatus + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedIngressStatus request + * @return V1Ingress + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1Ingress execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedIngressStatus request with HTTP info returned + * @return ApiResponse<V1Ingress> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedIngressStatus request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchNamespacedIngressStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update status of the specified Ingress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedIngressStatusRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedIngressStatusRequest patchNamespacedIngressStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedIngressStatusRequest(name, namespace, body); + } + private okhttp3.Call patchNamespacedNetworkPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedNetworkPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedNetworkPolicy(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedNetworkPolicy(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedNetworkPolicy(Async)"); + } + + return patchNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedNetworkPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedNetworkPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedNetworkPolicyRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchNamespacedNetworkPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchNamespacedNetworkPolicyRequest + */ + public APIpatchNamespacedNetworkPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchNamespacedNetworkPolicyRequest + */ + public APIpatchNamespacedNetworkPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchNamespacedNetworkPolicyRequest + */ + public APIpatchNamespacedNetworkPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchNamespacedNetworkPolicyRequest + */ + public APIpatchNamespacedNetworkPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchNamespacedNetworkPolicyRequest + */ + public APIpatchNamespacedNetworkPolicyRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedNetworkPolicy + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedNetworkPolicy request + * @return V1NetworkPolicy + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1NetworkPolicy execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedNetworkPolicy request with HTTP info returned + * @return ApiResponse<V1NetworkPolicy> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedNetworkPolicy request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchNamespacedNetworkPolicyAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified NetworkPolicy + * @param name name of the NetworkPolicy (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedNetworkPolicyRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedNetworkPolicyRequest patchNamespacedNetworkPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedNetworkPolicyRequest(name, namespace, body); + } + private okhttp3.Call patchServiceCIDRCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/servicecidrs/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchServiceCIDRValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchServiceCIDR(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchServiceCIDR(Async)"); + } + + return patchServiceCIDRCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchServiceCIDRWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchServiceCIDRValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchServiceCIDRAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchServiceCIDRValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchServiceCIDRRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchServiceCIDRRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchServiceCIDRRequest + */ + public APIpatchServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchServiceCIDRRequest + */ + public APIpatchServiceCIDRRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchServiceCIDRRequest + */ + public APIpatchServiceCIDRRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchServiceCIDRRequest + */ + public APIpatchServiceCIDRRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchServiceCIDRRequest + */ + public APIpatchServiceCIDRRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchServiceCIDR + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchServiceCIDRCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchServiceCIDR request + * @return V1ServiceCIDR + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1ServiceCIDR execute() throws ApiException { + ApiResponse localVarResp = patchServiceCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchServiceCIDR request with HTTP info returned + * @return ApiResponse<V1ServiceCIDR> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchServiceCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchServiceCIDR request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchServiceCIDRAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @return APIpatchServiceCIDRRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchServiceCIDRRequest patchServiceCIDR(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchServiceCIDRRequest(name, body); + } + private okhttp3.Call patchServiceCIDRStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/servicecidrs/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchServiceCIDRStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchServiceCIDRStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchServiceCIDRStatus(Async)"); + } + + return patchServiceCIDRStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchServiceCIDRStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchServiceCIDRStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchServiceCIDRStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchServiceCIDRStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchServiceCIDRStatusRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchServiceCIDRStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchServiceCIDRStatusRequest + */ + public APIpatchServiceCIDRStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchServiceCIDRStatusRequest + */ + public APIpatchServiceCIDRStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchServiceCIDRStatusRequest + */ + public APIpatchServiceCIDRStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchServiceCIDRStatusRequest + */ + public APIpatchServiceCIDRStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchServiceCIDRStatusRequest + */ + public APIpatchServiceCIDRStatusRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchServiceCIDRStatus + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchServiceCIDRStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchServiceCIDRStatus request + * @return V1ServiceCIDR + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1ServiceCIDR execute() throws ApiException { + ApiResponse localVarResp = patchServiceCIDRStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchServiceCIDRStatus request with HTTP info returned + * @return ApiResponse<V1ServiceCIDR> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchServiceCIDRStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchServiceCIDRStatus request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchServiceCIDRStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update status of the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @return APIpatchServiceCIDRStatusRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchServiceCIDRStatusRequest patchServiceCIDRStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchServiceCIDRStatusRequest(name, body); + } + private okhttp3.Call readIPAddressCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/ipaddresses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readIPAddressValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readIPAddress(Async)"); + } + + return readIPAddressCall(name, pretty, _callback); + + } + + + private ApiResponse readIPAddressWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readIPAddressValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readIPAddressAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readIPAddressValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadIPAddressRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadIPAddressRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreadIPAddressRequest */ - public APIlistNamespacedNetworkPolicyRequest watch(Boolean watch) { - this.watch = watch; + public APIreadIPAddressRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; return this; } /** - * Build call for listNamespacedNetworkPolicy + * Build call for readIPAddress * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedNetworkPolicyCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return readIPAddressCall(name, pretty, _callback); } /** - * Execute listNamespacedNetworkPolicy request - * @return V1NetworkPolicyList + * Execute readIPAddress request + * @return V1IPAddress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1NetworkPolicyList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1IPAddress execute() throws ApiException { + ApiResponse localVarResp = readIPAddressWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute listNamespacedNetworkPolicy request with HTTP info returned - * @return ApiResponse<V1NetworkPolicyList> + * Execute readIPAddress request with HTTP info returned + * @return ApiResponse<V1IPAddress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readIPAddressWithHttpInfo(name, pretty); } /** - * Execute listNamespacedNetworkPolicy request (asynchronously) + * Execute readIPAddress request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedNetworkPolicyAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readIPAddressAsync(name, pretty, _callback); } } /** * - * list or watch objects of kind NetworkPolicy - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIlistNamespacedNetworkPolicyRequest + * read the specified IPAddress + * @param name name of the IPAddress (required) + * @return APIreadIPAddressRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedNetworkPolicyRequest listNamespacedNetworkPolicy(String namespace) { - return new APIlistNamespacedNetworkPolicyRequest(namespace); + public APIreadIPAddressRequest readIPAddress(@jakarta.annotation.Nonnull String name) { + return new APIreadIPAddressRequest(name); } - private okhttp3.Call listNetworkPolicyForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readIngressClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4206,7 +9286,8 @@ private okhttp3.Call listNetworkPolicyForAllNamespacesCall(Boolean allowWatchBoo Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/networkpolicies"; + String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4214,58 +9295,15 @@ private okhttp3.Call listNetworkPolicyForAllNamespacesCall(Boolean allowWatchBoo Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4284,231 +9322,136 @@ private okhttp3.Call listNetworkPolicyForAllNamespacesCall(Boolean allowWatchBoo } @SuppressWarnings("rawtypes") - private okhttp3.Call listNetworkPolicyForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - return listNetworkPolicyForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call readIngressClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readIngressClass(Async)"); + } + + return readIngressClassCall(name, pretty, _callback); } - private ApiResponse listNetworkPolicyForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNetworkPolicyForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readIngressClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readIngressClassValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNetworkPolicyForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readIngressClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNetworkPolicyForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readIngressClassValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistNetworkPolicyForAllNamespacesRequest { - private Boolean allowWatchBookmarks; - private String _continue; - private String fieldSelector; - private String labelSelector; - private Integer limit; + public class APIreadIngressClassRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable private String pretty; - private String resourceVersion; - private String resourceVersionMatch; - private Boolean sendInitialEvents; - private Integer timeoutSeconds; - private Boolean watch; - - private APIlistNetworkPolicyForAllNamespacesRequest() { - } - - /** - * Set allowWatchBookmarks - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - * @return APIlistNetworkPolicyForAllNamespacesRequest - */ - public APIlistNetworkPolicyForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { - this.allowWatchBookmarks = allowWatchBookmarks; - return this; - } - - /** - * Set _continue - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIlistNetworkPolicyForAllNamespacesRequest - */ - public APIlistNetworkPolicyForAllNamespacesRequest _continue(String _continue) { - this._continue = _continue; - return this; - } - - /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistNetworkPolicyForAllNamespacesRequest - */ - public APIlistNetworkPolicyForAllNamespacesRequest fieldSelector(String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; - } - - /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistNetworkPolicyForAllNamespacesRequest - */ - public APIlistNetworkPolicyForAllNamespacesRequest labelSelector(String labelSelector) { - this.labelSelector = labelSelector; - return this; - } - /** - * Set limit - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIlistNetworkPolicyForAllNamespacesRequest - */ - public APIlistNetworkPolicyForAllNamespacesRequest limit(Integer limit) { - this.limit = limit; - return this; + private APIreadIngressClassRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistNetworkPolicyForAllNamespacesRequest + * @return APIreadIngressClassRequest */ - public APIlistNetworkPolicyForAllNamespacesRequest pretty(String pretty) { + public APIreadIngressClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set resourceVersion - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistNetworkPolicyForAllNamespacesRequest - */ - public APIlistNetworkPolicyForAllNamespacesRequest resourceVersion(String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; - } - - /** - * Set resourceVersionMatch - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistNetworkPolicyForAllNamespacesRequest - */ - public APIlistNetworkPolicyForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; - return this; - } - - /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistNetworkPolicyForAllNamespacesRequest - */ - public APIlistNetworkPolicyForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistNetworkPolicyForAllNamespacesRequest - */ - public APIlistNetworkPolicyForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return this; - } - - /** - * Set watch - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistNetworkPolicyForAllNamespacesRequest - */ - public APIlistNetworkPolicyForAllNamespacesRequest watch(Boolean watch) { - this.watch = watch; - return this; - } - - /** - * Build call for listNetworkPolicyForAllNamespaces + * Build call for readIngressClass * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNetworkPolicyForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return readIngressClassCall(name, pretty, _callback); } /** - * Execute listNetworkPolicyForAllNamespaces request - * @return V1NetworkPolicyList + * Execute readIngressClass request + * @return V1IngressClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1NetworkPolicyList execute() throws ApiException { - ApiResponse localVarResp = listNetworkPolicyForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1IngressClass execute() throws ApiException { + ApiResponse localVarResp = readIngressClassWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute listNetworkPolicyForAllNamespaces request with HTTP info returned - * @return ApiResponse<V1NetworkPolicyList> + * Execute readIngressClass request with HTTP info returned + * @return ApiResponse<V1IngressClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listNetworkPolicyForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readIngressClassWithHttpInfo(name, pretty); } /** - * Execute listNetworkPolicyForAllNamespaces request (asynchronously) + * Execute readIngressClass request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNetworkPolicyForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readIngressClassAsync(name, pretty, _callback); } } /** * - * list or watch objects of kind NetworkPolicy - * @return APIlistNetworkPolicyForAllNamespacesRequest + * read the specified IngressClass + * @param name name of the IngressClass (required) + * @return APIreadIngressClassRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNetworkPolicyForAllNamespacesRequest listNetworkPolicyForAllNamespaces() { - return new APIlistNetworkPolicyForAllNamespacesRequest(); + public APIreadIngressClassRequest readIngressClass(@jakarta.annotation.Nonnull String name) { + return new APIreadIngressClassRequest(name); } - private okhttp3.Call patchIngressClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedIngressCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4522,11 +9465,12 @@ private okhttp3.Call patchIngressClassCall(String name, V1Patch body, String pre basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4538,22 +9482,6 @@ private okhttp3.Call patchIngressClassCall(String name, V1Patch body, String pre localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - final String[] localVarAccepts = { "application/json", "application/yaml", @@ -4566,7 +9494,6 @@ private okhttp3.Call patchIngressClassCall(String name, V1Patch body, String pre } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -4574,190 +9501,149 @@ private okhttp3.Call patchIngressClassCall(String name, V1Patch body, String pre } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call patchIngressClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedIngressValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchIngressClass(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedIngress(Async)"); } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchIngressClass(Async)"); + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedIngress(Async)"); } - return patchIngressClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readNamespacedIngressCall(name, namespace, pretty, _callback); } - private ApiResponse patchIngressClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchIngressClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readNamespacedIngressWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedIngressValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchIngressClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedIngressAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchIngressClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readNamespacedIngressValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchIngressClassRequest { + public class APIreadNamespacedIngressRequest { + @jakarta.annotation.Nonnull private final String name; - private final V1Patch body; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private String dryRun; - private String fieldManager; - private String fieldValidation; - private Boolean force; - private APIpatchIngressClassRequest(String name, V1Patch body) { + private APIreadNamespacedIngressRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; - this.body = body; + this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchIngressClassRequest + * @return APIreadNamespacedIngressRequest */ - public APIpatchIngressClassRequest pretty(String pretty) { + public APIreadNamespacedIngressRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchIngressClassRequest - */ - public APIpatchIngressClassRequest dryRun(String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchIngressClassRequest - */ - public APIpatchIngressClassRequest fieldManager(String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchIngressClassRequest - */ - public APIpatchIngressClassRequest fieldValidation(String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Set force - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return APIpatchIngressClassRequest - */ - public APIpatchIngressClassRequest force(Boolean force) { - this.force = force; - return this; - } - - /** - * Build call for patchIngressClass + * Build call for readNamespacedIngress * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchIngressClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readNamespacedIngressCall(name, namespace, pretty, _callback); } /** - * Execute patchIngressClass request - * @return V1IngressClass + * Execute readNamespacedIngress request + * @return V1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1IngressClass execute() throws ApiException { - ApiResponse localVarResp = patchIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1Ingress execute() throws ApiException { + ApiResponse localVarResp = readNamespacedIngressWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** - * Execute patchIngressClass request with HTTP info returned - * @return ApiResponse<V1IngressClass> + * Execute readNamespacedIngress request with HTTP info returned + * @return ApiResponse<V1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedIngressWithHttpInfo(name, namespace, pretty); } /** - * Execute patchIngressClass request (asynchronously) + * Execute readNamespacedIngress request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchIngressClassAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedIngressAsync(name, namespace, pretty, _callback); } } /** * - * partially update the specified IngressClass - * @param name name of the IngressClass (required) - * @param body (required) - * @return APIpatchIngressClassRequest + * read the specified Ingress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedIngressRequest * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchIngressClassRequest patchIngressClass(String name, V1Patch body) { - return new APIpatchIngressClassRequest(name, body); + public APIreadNamespacedIngressRequest readNamespacedIngress(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedIngressRequest(name, namespace); } - private okhttp3.Call patchNamespacedIngressCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedIngressStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4771,10 +9657,10 @@ private okhttp3.Call patchNamespacedIngressCall(String name, String namespace, V basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}" + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); @@ -4788,22 +9674,6 @@ private okhttp3.Call patchNamespacedIngressCall(String name, String namespace, V localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - final String[] localVarAccepts = { "application/json", "application/yaml", @@ -4816,7 +9686,6 @@ private okhttp3.Call patchNamespacedIngressCall(String name, String namespace, V } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -4824,198 +9693,149 @@ private okhttp3.Call patchNamespacedIngressCall(String name, String namespace, V } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedIngressValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedIngressStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedIngress(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedIngressStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedIngress(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedIngress(Async)"); + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedIngressStatus(Async)"); } - return patchNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readNamespacedIngressStatusCall(name, namespace, pretty, _callback); } - private ApiResponse patchNamespacedIngressWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + private ApiResponse readNamespacedIngressStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedIngressStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedIngressAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedIngressStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + okhttp3.Call localVarCall = readNamespacedIngressStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchNamespacedIngressRequest { + public class APIreadNamespacedIngressStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; - private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; - private String dryRun; - private String fieldManager; - private String fieldValidation; - private Boolean force; - private APIpatchNamespacedIngressRequest(String name, String namespace, V1Patch body) { + private APIreadNamespacedIngressStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; - this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchNamespacedIngressRequest + * @return APIreadNamespacedIngressStatusRequest */ - public APIpatchNamespacedIngressRequest pretty(String pretty) { + public APIreadNamespacedIngressStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchNamespacedIngressRequest - */ - public APIpatchNamespacedIngressRequest dryRun(String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchNamespacedIngressRequest - */ - public APIpatchNamespacedIngressRequest fieldManager(String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchNamespacedIngressRequest - */ - public APIpatchNamespacedIngressRequest fieldValidation(String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Set force - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return APIpatchNamespacedIngressRequest - */ - public APIpatchNamespacedIngressRequest force(Boolean force) { - this.force = force; - return this; - } - - /** - * Build call for patchNamespacedIngress + * Build call for readNamespacedIngressStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readNamespacedIngressStatusCall(name, namespace, pretty, _callback); } /** - * Execute patchNamespacedIngress request + * Execute readNamespacedIngressStatus request * @return V1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Ingress execute() throws ApiException { - ApiResponse localVarResp = patchNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + ApiResponse localVarResp = readNamespacedIngressStatusWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** - * Execute patchNamespacedIngress request with HTTP info returned + * Execute readNamespacedIngressStatus request with HTTP info returned * @return ApiResponse<V1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return patchNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return readNamespacedIngressStatusWithHttpInfo(name, namespace, pretty); } /** - * Execute patchNamespacedIngress request (asynchronously) + * Execute readNamespacedIngressStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchNamespacedIngressAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readNamespacedIngressStatusAsync(name, namespace, pretty, _callback); } } /** * - * partially update the specified Ingress + * read status of the specified Ingress * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @return APIpatchNamespacedIngressRequest + * @return APIreadNamespacedIngressStatusRequest * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedIngressRequest patchNamespacedIngress(String name, String namespace, V1Patch body) { - return new APIpatchNamespacedIngressRequest(name, namespace, body); + public APIreadNamespacedIngressStatusRequest readNamespacedIngressStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedIngressStatusRequest(name, namespace); } - private okhttp3.Call patchNamespacedIngressStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedNetworkPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5029,10 +9849,10 @@ private okhttp3.Call patchNamespacedIngressStatusCall(String name, String namesp basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status" + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); @@ -5046,22 +9866,6 @@ private okhttp3.Call patchNamespacedIngressStatusCall(String name, String namesp localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - final String[] localVarAccepts = { "application/json", "application/yaml", @@ -5074,7 +9878,6 @@ private okhttp3.Call patchNamespacedIngressStatusCall(String name, String namesp } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -5082,198 +9885,149 @@ private okhttp3.Call patchNamespacedIngressStatusCall(String name, String namesp } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedIngressStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedNetworkPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedIngressStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedNetworkPolicy(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedIngressStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedIngressStatus(Async)"); + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedNetworkPolicy(Async)"); } - return patchNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readNamespacedNetworkPolicyCall(name, namespace, pretty, _callback); } - private ApiResponse patchNamespacedIngressStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readNamespacedNetworkPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedIngressStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + private okhttp3.Call readNamespacedNetworkPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchNamespacedIngressStatusRequest { + public class APIreadNamespacedNetworkPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; - private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; - private String dryRun; - private String fieldManager; - private String fieldValidation; - private Boolean force; - private APIpatchNamespacedIngressStatusRequest(String name, String namespace, V1Patch body) { + private APIreadNamespacedNetworkPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; - this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchNamespacedIngressStatusRequest + * @return APIreadNamespacedNetworkPolicyRequest */ - public APIpatchNamespacedIngressStatusRequest pretty(String pretty) { + public APIreadNamespacedNetworkPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchNamespacedIngressStatusRequest - */ - public APIpatchNamespacedIngressStatusRequest dryRun(String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchNamespacedIngressStatusRequest - */ - public APIpatchNamespacedIngressStatusRequest fieldManager(String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchNamespacedIngressStatusRequest - */ - public APIpatchNamespacedIngressStatusRequest fieldValidation(String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Set force - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return APIpatchNamespacedIngressStatusRequest - */ - public APIpatchNamespacedIngressStatusRequest force(Boolean force) { - this.force = force; - return this; - } - - /** - * Build call for patchNamespacedIngressStatus + * Build call for readNamespacedNetworkPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readNamespacedNetworkPolicyCall(name, namespace, pretty, _callback); } /** - * Execute patchNamespacedIngressStatus request - * @return V1Ingress + * Execute readNamespacedNetworkPolicy request + * @return V1NetworkPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1Ingress execute() throws ApiException { - ApiResponse localVarResp = patchNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1NetworkPolicy execute() throws ApiException { + ApiResponse localVarResp = readNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** - * Execute patchNamespacedIngressStatus request with HTTP info returned - * @return ApiResponse<V1Ingress> + * Execute readNamespacedNetworkPolicy request with HTTP info returned + * @return ApiResponse<V1NetworkPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty); } /** - * Execute patchNamespacedIngressStatus request (asynchronously) + * Execute readNamespacedNetworkPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchNamespacedIngressStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedNetworkPolicyAsync(name, namespace, pretty, _callback); } } /** * - * partially update status of the specified Ingress - * @param name name of the Ingress (required) + * read the specified NetworkPolicy + * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @return APIpatchNamespacedIngressStatusRequest + * @return APIreadNamespacedNetworkPolicyRequest * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedIngressStatusRequest patchNamespacedIngressStatus(String name, String namespace, V1Patch body) { - return new APIpatchNamespacedIngressStatusRequest(name, namespace, body); + public APIreadNamespacedNetworkPolicyRequest readNamespacedNetworkPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedNetworkPolicyRequest(name, namespace); } - private okhttp3.Call patchNamespacedNetworkPolicyCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readServiceCIDRCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5287,12 +10041,11 @@ private okhttp3.Call patchNamespacedNetworkPolicyCall(String name, String namesp basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/servicecidrs/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5304,22 +10057,6 @@ private okhttp3.Call patchNamespacedNetworkPolicyCall(String name, String namesp localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - final String[] localVarAccepts = { "application/json", "application/yaml", @@ -5332,7 +10069,6 @@ private okhttp3.Call patchNamespacedNetworkPolicyCall(String name, String namesp } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -5340,198 +10076,140 @@ private okhttp3.Call patchNamespacedNetworkPolicyCall(String name, String namesp } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readServiceCIDRValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedNetworkPolicy(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedNetworkPolicy(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readServiceCIDR(Async)"); } - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedNetworkPolicy(Async)"); - } - - return patchNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readServiceCIDRCall(name, pretty, _callback); } - private ApiResponse patchNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readServiceCIDRWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readServiceCIDRValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedNetworkPolicyAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readServiceCIDRAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readServiceCIDRValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchNamespacedNetworkPolicyRequest { + public class APIreadServiceCIDRRequest { + @jakarta.annotation.Nonnull private final String name; - private final String namespace; - private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; - private String dryRun; - private String fieldManager; - private String fieldValidation; - private Boolean force; - private APIpatchNamespacedNetworkPolicyRequest(String name, String namespace, V1Patch body) { + private APIreadServiceCIDRRequest(@jakarta.annotation.Nonnull String name) { this.name = name; - this.namespace = namespace; - this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchNamespacedNetworkPolicyRequest + * @return APIreadServiceCIDRRequest */ - public APIpatchNamespacedNetworkPolicyRequest pretty(String pretty) { + public APIreadServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchNamespacedNetworkPolicyRequest - */ - public APIpatchNamespacedNetworkPolicyRequest dryRun(String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchNamespacedNetworkPolicyRequest - */ - public APIpatchNamespacedNetworkPolicyRequest fieldManager(String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchNamespacedNetworkPolicyRequest - */ - public APIpatchNamespacedNetworkPolicyRequest fieldValidation(String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Set force - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return APIpatchNamespacedNetworkPolicyRequest - */ - public APIpatchNamespacedNetworkPolicyRequest force(Boolean force) { - this.force = force; - return this; - } - - /** - * Build call for patchNamespacedNetworkPolicy + * Build call for readServiceCIDR * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readServiceCIDRCall(name, pretty, _callback); } /** - * Execute patchNamespacedNetworkPolicy request - * @return V1NetworkPolicy + * Execute readServiceCIDR request + * @return V1ServiceCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1NetworkPolicy execute() throws ApiException { - ApiResponse localVarResp = patchNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1ServiceCIDR execute() throws ApiException { + ApiResponse localVarResp = readServiceCIDRWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute patchNamespacedNetworkPolicy request with HTTP info returned - * @return ApiResponse<V1NetworkPolicy> + * Execute readServiceCIDR request with HTTP info returned + * @return ApiResponse<V1ServiceCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readServiceCIDRWithHttpInfo(name, pretty); } /** - * Execute patchNamespacedNetworkPolicy request (asynchronously) + * Execute readServiceCIDR request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchNamespacedNetworkPolicyAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readServiceCIDRAsync(name, pretty, _callback); } } /** * - * partially update the specified NetworkPolicy - * @param name name of the NetworkPolicy (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @return APIpatchNamespacedNetworkPolicyRequest + * read the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @return APIreadServiceCIDRRequest * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedNetworkPolicyRequest patchNamespacedNetworkPolicy(String name, String namespace, V1Patch body) { - return new APIpatchNamespacedNetworkPolicyRequest(name, namespace, body); + public APIreadServiceCIDRRequest readServiceCIDR(@jakarta.annotation.Nonnull String name) { + return new APIreadServiceCIDRRequest(name); } - private okhttp3.Call readIngressClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readServiceCIDRStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5548,7 +10226,7 @@ private okhttp3.Call readIngressClassCall(String name, String pretty, final ApiC Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}" + String localVarPath = "/apis/networking.k8s.io/v1/servicecidrs/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -5584,129 +10262,136 @@ private okhttp3.Call readIngressClassCall(String name, String pretty, final ApiC } @SuppressWarnings("rawtypes") - private okhttp3.Call readIngressClassValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readServiceCIDRStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readIngressClass(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readServiceCIDRStatus(Async)"); } - return readIngressClassCall(name, pretty, _callback); + return readServiceCIDRStatusCall(name, pretty, _callback); } - private ApiResponse readIngressClassWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readIngressClassValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readServiceCIDRStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readServiceCIDRStatusValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readIngressClassAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readServiceCIDRStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readIngressClassValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readServiceCIDRStatusValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadIngressClassRequest { + public class APIreadServiceCIDRStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadIngressClassRequest(String name) { + private APIreadServiceCIDRStatusRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadIngressClassRequest + * @return APIreadServiceCIDRStatusRequest */ - public APIreadIngressClassRequest pretty(String pretty) { + public APIreadServiceCIDRStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readIngressClass + * Build call for readServiceCIDRStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readIngressClassCall(name, pretty, _callback); + return readServiceCIDRStatusCall(name, pretty, _callback); } /** - * Execute readIngressClass request - * @return V1IngressClass + * Execute readServiceCIDRStatus request + * @return V1ServiceCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1IngressClass execute() throws ApiException { - ApiResponse localVarResp = readIngressClassWithHttpInfo(name, pretty); + public V1ServiceCIDR execute() throws ApiException { + ApiResponse localVarResp = readServiceCIDRStatusWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute readIngressClass request with HTTP info returned - * @return ApiResponse<V1IngressClass> + * Execute readServiceCIDRStatus request with HTTP info returned + * @return ApiResponse<V1ServiceCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readIngressClassWithHttpInfo(name, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readServiceCIDRStatusWithHttpInfo(name, pretty); } /** - * Execute readIngressClass request (asynchronously) + * Execute readServiceCIDRStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readIngressClassAsync(name, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readServiceCIDRStatusAsync(name, pretty, _callback); } } /** * - * read the specified IngressClass - * @param name name of the IngressClass (required) - * @return APIreadIngressClassRequest + * read status of the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @return APIreadServiceCIDRStatusRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadIngressClassRequest readIngressClass(String name) { - return new APIreadIngressClassRequest(name); + public APIreadServiceCIDRStatusRequest readServiceCIDRStatus(@jakarta.annotation.Nonnull String name) { + return new APIreadServiceCIDRStatusRequest(name); } - private okhttp3.Call readNamespacedIngressCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceIPAddressCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1IPAddress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5720,12 +10405,11 @@ private okhttp3.Call readNamespacedIngressCall(String name, String namespace, St basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/ipaddresses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5737,6 +10421,18 @@ private okhttp3.Call readNamespacedIngressCall(String name, String namespace, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", @@ -5749,6 +10445,7 @@ private okhttp3.Call readNamespacedIngressCall(String name, String namespace, St } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -5756,141 +10453,190 @@ private okhttp3.Call readNamespacedIngressCall(String name, String namespace, St } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedIngressValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceIPAddressValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1IPAddress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readNamespacedIngress(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceIPAddress(Async)"); } - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedIngress(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceIPAddress(Async)"); } - return readNamespacedIngressCall(name, namespace, pretty, _callback); + return replaceIPAddressCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse readNamespacedIngressWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - okhttp3.Call localVarCall = readNamespacedIngressValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse replaceIPAddressWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1IPAddress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceIPAddressValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedIngressAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceIPAddressAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1IPAddress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readNamespacedIngressValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceIPAddressValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadNamespacedIngressRequest { + public class APIreplaceIPAddressRequest { + @jakarta.annotation.Nonnull private final String name; - private final String namespace; + @jakarta.annotation.Nonnull + private final V1IPAddress body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; - private APIreadNamespacedIngressRequest(String name, String namespace) { + private APIreplaceIPAddressRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1IPAddress body) { this.name = name; - this.namespace = namespace; + this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadNamespacedIngressRequest + * @return APIreplaceIPAddressRequest */ - public APIreadNamespacedIngressRequest pretty(String pretty) { + public APIreplaceIPAddressRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readNamespacedIngress + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceIPAddressRequest + */ + public APIreplaceIPAddressRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceIPAddressRequest + */ + public APIreplaceIPAddressRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceIPAddressRequest + */ + public APIreplaceIPAddressRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceIPAddress * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readNamespacedIngressCall(name, namespace, pretty, _callback); + return replaceIPAddressCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute readNamespacedIngress request - * @return V1Ingress + * Execute replaceIPAddress request + * @return V1IPAddress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1Ingress execute() throws ApiException { - ApiResponse localVarResp = readNamespacedIngressWithHttpInfo(name, namespace, pretty); + public V1IPAddress execute() throws ApiException { + ApiResponse localVarResp = replaceIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute readNamespacedIngress request with HTTP info returned - * @return ApiResponse<V1Ingress> + * Execute replaceIPAddress request with HTTP info returned + * @return ApiResponse<V1IPAddress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readNamespacedIngressWithHttpInfo(name, namespace, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute readNamespacedIngress request (asynchronously) + * Execute replaceIPAddress request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readNamespacedIngressAsync(name, namespace, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceIPAddressAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * read the specified Ingress - * @param name name of the Ingress (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIreadNamespacedIngressRequest + * replace the specified IPAddress + * @param name name of the IPAddress (required) + * @param body (required) + * @return APIreplaceIPAddressRequest * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreadNamespacedIngressRequest readNamespacedIngress(String name, String namespace) { - return new APIreadNamespacedIngressRequest(name, namespace); + public APIreplaceIPAddressRequest replaceIPAddress(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1IPAddress body) { + return new APIreplaceIPAddressRequest(name, body); } - private okhttp3.Call readNamespacedIngressStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceIngressClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1IngressClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5904,12 +10650,11 @@ private okhttp3.Call readNamespacedIngressStatusCall(String name, String namespa basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5921,6 +10666,18 @@ private okhttp3.Call readNamespacedIngressStatusCall(String name, String namespa localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", @@ -5933,6 +10690,7 @@ private okhttp3.Call readNamespacedIngressStatusCall(String name, String namespa } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -5940,141 +10698,190 @@ private okhttp3.Call readNamespacedIngressStatusCall(String name, String namespa } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedIngressStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceIngressClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1IngressClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readNamespacedIngressStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceIngressClass(Async)"); } - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedIngressStatus(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceIngressClass(Async)"); } - return readNamespacedIngressStatusCall(name, namespace, pretty, _callback); + return replaceIngressClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse readNamespacedIngressStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - okhttp3.Call localVarCall = readNamespacedIngressStatusValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse replaceIngressClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1IngressClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceIngressClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedIngressStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceIngressClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1IngressClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readNamespacedIngressStatusValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceIngressClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadNamespacedIngressStatusRequest { + public class APIreplaceIngressClassRequest { + @jakarta.annotation.Nonnull private final String name; - private final String namespace; + @jakarta.annotation.Nonnull + private final V1IngressClass body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; - private APIreadNamespacedIngressStatusRequest(String name, String namespace) { + private APIreplaceIngressClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1IngressClass body) { this.name = name; - this.namespace = namespace; + this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadNamespacedIngressStatusRequest + * @return APIreplaceIngressClassRequest */ - public APIreadNamespacedIngressStatusRequest pretty(String pretty) { + public APIreplaceIngressClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readNamespacedIngressStatus + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceIngressClassRequest + */ + public APIreplaceIngressClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceIngressClassRequest + */ + public APIreplaceIngressClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceIngressClassRequest + */ + public APIreplaceIngressClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceIngressClass * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readNamespacedIngressStatusCall(name, namespace, pretty, _callback); + return replaceIngressClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute readNamespacedIngressStatus request - * @return V1Ingress + * Execute replaceIngressClass request + * @return V1IngressClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1Ingress execute() throws ApiException { - ApiResponse localVarResp = readNamespacedIngressStatusWithHttpInfo(name, namespace, pretty); + public V1IngressClass execute() throws ApiException { + ApiResponse localVarResp = replaceIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute readNamespacedIngressStatus request with HTTP info returned - * @return ApiResponse<V1Ingress> + * Execute replaceIngressClass request with HTTP info returned + * @return ApiResponse<V1IngressClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readNamespacedIngressStatusWithHttpInfo(name, namespace, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute readNamespacedIngressStatus request (asynchronously) + * Execute replaceIngressClass request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readNamespacedIngressStatusAsync(name, namespace, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceIngressClassAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * read status of the specified Ingress - * @param name name of the Ingress (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIreadNamespacedIngressStatusRequest + * replace the specified IngressClass + * @param name name of the IngressClass (required) + * @param body (required) + * @return APIreplaceIngressClassRequest * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreadNamespacedIngressStatusRequest readNamespacedIngressStatus(String name, String namespace) { - return new APIreadNamespacedIngressStatusRequest(name, namespace); + public APIreplaceIngressClassRequest replaceIngressClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1IngressClass body) { + return new APIreplaceIngressClassRequest(name, body); } - private okhttp3.Call readNamespacedNetworkPolicyCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedIngressCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Ingress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6088,10 +10895,10 @@ private okhttp3.Call readNamespacedNetworkPolicyCall(String name, String namespa basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); @@ -6105,6 +10912,18 @@ private okhttp3.Call readNamespacedNetworkPolicyCall(String name, String namespa localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", @@ -6117,6 +10936,7 @@ private okhttp3.Call readNamespacedNetworkPolicyCall(String name, String namespa } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -6124,141 +10944,199 @@ private okhttp3.Call readNamespacedNetworkPolicyCall(String name, String namespa } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedIngressValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Ingress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readNamespacedNetworkPolicy(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedIngress(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedNetworkPolicy(Async)"); + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedIngress(Async)"); } - return readNamespacedNetworkPolicyCall(name, namespace, pretty, _callback); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedIngress(Async)"); + } + + return replaceNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse readNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - okhttp3.Call localVarCall = readNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse replaceNamespacedIngressWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Ingress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedNetworkPolicyAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedIngressAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Ingress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadNamespacedNetworkPolicyRequest { + public class APIreplaceNamespacedIngressRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull + private final V1Ingress body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; - private APIreadNamespacedNetworkPolicyRequest(String name, String namespace) { + private APIreplaceNamespacedIngressRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Ingress body) { this.name = name; this.namespace = namespace; + this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadNamespacedNetworkPolicyRequest + * @return APIreplaceNamespacedIngressRequest */ - public APIreadNamespacedNetworkPolicyRequest pretty(String pretty) { + public APIreplaceNamespacedIngressRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readNamespacedNetworkPolicy + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceNamespacedIngressRequest + */ + public APIreplaceNamespacedIngressRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceNamespacedIngressRequest + */ + public APIreplaceNamespacedIngressRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceNamespacedIngressRequest + */ + public APIreplaceNamespacedIngressRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceNamespacedIngress * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readNamespacedNetworkPolicyCall(name, namespace, pretty, _callback); + return replaceNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute readNamespacedNetworkPolicy request - * @return V1NetworkPolicy + * Execute replaceNamespacedIngress request + * @return V1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1NetworkPolicy execute() throws ApiException { - ApiResponse localVarResp = readNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty); + public V1Ingress execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute readNamespacedNetworkPolicy request with HTTP info returned - * @return ApiResponse<V1NetworkPolicy> + * Execute replaceNamespacedIngress request with HTTP info returned + * @return ApiResponse<V1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute readNamespacedNetworkPolicy request (asynchronously) + * Execute replaceNamespacedIngress request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readNamespacedNetworkPolicyAsync(name, namespace, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceNamespacedIngressAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * read the specified NetworkPolicy - * @param name name of the NetworkPolicy (required) + * replace the specified Ingress + * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIreadNamespacedNetworkPolicyRequest + * @param body (required) + * @return APIreplaceNamespacedIngressRequest * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreadNamespacedNetworkPolicyRequest readNamespacedNetworkPolicy(String name, String namespace) { - return new APIreadNamespacedNetworkPolicyRequest(name, namespace); + public APIreplaceNamespacedIngressRequest replaceNamespacedIngress(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Ingress body) { + return new APIreplaceNamespacedIngressRequest(name, namespace, body); } - private okhttp3.Call replaceIngressClassCall(String name, V1IngressClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedIngressStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Ingress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6275,8 +11153,9 @@ private okhttp3.Call replaceIngressClassCall(String name, V1IngressClass body, S Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6324,55 +11203,69 @@ private okhttp3.Call replaceIngressClassCall(String name, V1IngressClass body, S } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceIngressClassValidateBeforeCall(String name, V1IngressClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedIngressStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Ingress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceIngressClass(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedIngressStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedIngressStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceIngressClass(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedIngressStatus(Async)"); } - return replaceIngressClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse replaceIngressClassWithHttpInfo(String name, V1IngressClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceIngressClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse replaceNamespacedIngressStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Ingress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceIngressClassAsync(String name, V1IngressClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedIngressStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Ingress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceIngressClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreplaceIngressClassRequest { + public class APIreplaceNamespacedIngressStatusRequest { + @jakarta.annotation.Nonnull private final String name; - private final V1IngressClass body; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1Ingress body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceIngressClassRequest(String name, V1IngressClass body) { + private APIreplaceNamespacedIngressStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Ingress body) { this.name = name; + this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreplaceIngressClassRequest + * @return APIreplaceNamespacedIngressStatusRequest */ - public APIreplaceIngressClassRequest pretty(String pretty) { + public APIreplaceNamespacedIngressStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6380,9 +11273,9 @@ public APIreplaceIngressClassRequest pretty(String pretty) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIreplaceIngressClassRequest + * @return APIreplaceNamespacedIngressStatusRequest */ - public APIreplaceIngressClassRequest dryRun(String dryRun) { + public APIreplaceNamespacedIngressStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6390,9 +11283,9 @@ public APIreplaceIngressClassRequest dryRun(String dryRun) { /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIreplaceIngressClassRequest + * @return APIreplaceNamespacedIngressStatusRequest */ - public APIreplaceIngressClassRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedIngressStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6400,20 +11293,21 @@ public APIreplaceIngressClassRequest fieldManager(String fieldManager) { /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIreplaceIngressClassRequest + * @return APIreplaceNamespacedIngressStatusRequest */ - public APIreplaceIngressClassRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedIngressStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for replaceIngressClass + * Build call for replaceNamespacedIngressStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6421,78 +11315,83 @@ public APIreplaceIngressClassRequest fieldValidation(String fieldValidation) {
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceIngressClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute replaceIngressClass request - * @return V1IngressClass + * Execute replaceNamespacedIngressStatus request + * @return V1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1IngressClass execute() throws ApiException { - ApiResponse localVarResp = replaceIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1Ingress execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute replaceIngressClass request with HTTP info returned - * @return ApiResponse<V1IngressClass> + * Execute replaceNamespacedIngressStatus request with HTTP info returned + * @return ApiResponse<V1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute replaceIngressClass request (asynchronously) + * Execute replaceNamespacedIngressStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceIngressClassAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceNamespacedIngressStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * replace the specified IngressClass - * @param name name of the IngressClass (required) + * replace status of the specified Ingress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @return APIreplaceIngressClassRequest + * @return APIreplaceNamespacedIngressStatusRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceIngressClassRequest replaceIngressClass(String name, V1IngressClass body) { - return new APIreplaceIngressClassRequest(name, body); + public APIreplaceNamespacedIngressStatusRequest replaceNamespacedIngressStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Ingress body) { + return new APIreplaceNamespacedIngressStatusRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedIngressCall(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedNetworkPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1NetworkPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6509,7 +11408,7 @@ private okhttp3.Call replaceNamespacedIngressCall(String name, String namespace, Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}" + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); @@ -6559,51 +11458,58 @@ private okhttp3.Call replaceNamespacedIngressCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedIngressValidateBeforeCall(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedNetworkPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1NetworkPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedIngress(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedNetworkPolicy(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedIngress(Async)"); + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedNetworkPolicy(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedIngress(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedNetworkPolicy(Async)"); } - return replaceNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse replaceNamespacedIngressWithHttpInfo(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse replaceNamespacedNetworkPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1NetworkPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedIngressAsync(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedNetworkPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1NetworkPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreplaceNamespacedIngressRequest { + public class APIreplaceNamespacedNetworkPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; - private final V1Ingress body; + @jakarta.annotation.Nonnull + private final V1NetworkPolicy body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedIngressRequest(String name, String namespace, V1Ingress body) { + private APIreplaceNamespacedNetworkPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1NetworkPolicy body) { this.name = name; this.namespace = namespace; this.body = body; @@ -6612,9 +11518,9 @@ private APIreplaceNamespacedIngressRequest(String name, String namespace, V1Ingr /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreplaceNamespacedIngressRequest + * @return APIreplaceNamespacedNetworkPolicyRequest */ - public APIreplaceNamespacedIngressRequest pretty(String pretty) { + public APIreplaceNamespacedNetworkPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6622,9 +11528,9 @@ public APIreplaceNamespacedIngressRequest pretty(String pretty) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIreplaceNamespacedIngressRequest + * @return APIreplaceNamespacedNetworkPolicyRequest */ - public APIreplaceNamespacedIngressRequest dryRun(String dryRun) { + public APIreplaceNamespacedNetworkPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6632,9 +11538,9 @@ public APIreplaceNamespacedIngressRequest dryRun(String dryRun) { /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIreplaceNamespacedIngressRequest + * @return APIreplaceNamespacedNetworkPolicyRequest */ - public APIreplaceNamespacedIngressRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedNetworkPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6642,20 +11548,21 @@ public APIreplaceNamespacedIngressRequest fieldManager(String fieldManager) { /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIreplaceNamespacedIngressRequest + * @return APIreplaceNamespacedNetworkPolicyRequest */ - public APIreplaceNamespacedIngressRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedNetworkPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for replaceNamespacedIngress + * Build call for replaceNamespacedNetworkPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6663,79 +11570,83 @@ public APIreplaceNamespacedIngressRequest fieldValidation(String fieldValidation
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute replaceNamespacedIngress request - * @return V1Ingress + * Execute replaceNamespacedNetworkPolicy request + * @return V1NetworkPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1Ingress execute() throws ApiException { - ApiResponse localVarResp = replaceNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public V1NetworkPolicy execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute replaceNamespacedIngress request with HTTP info returned - * @return ApiResponse<V1Ingress> + * Execute replaceNamespacedNetworkPolicy request with HTTP info returned + * @return ApiResponse<V1NetworkPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute replaceNamespacedIngress request (asynchronously) + * Execute replaceNamespacedNetworkPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceNamespacedIngressAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceNamespacedNetworkPolicyAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * replace the specified Ingress - * @param name name of the Ingress (required) + * replace the specified NetworkPolicy + * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @return APIreplaceNamespacedIngressRequest + * @return APIreplaceNamespacedNetworkPolicyRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedIngressRequest replaceNamespacedIngress(String name, String namespace, V1Ingress body) { - return new APIreplaceNamespacedIngressRequest(name, namespace, body); + public APIreplaceNamespacedNetworkPolicyRequest replaceNamespacedNetworkPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1NetworkPolicy body) { + return new APIreplaceNamespacedNetworkPolicyRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedIngressStatusCall(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceServiceCIDRCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6752,9 +11663,8 @@ private okhttp3.Call replaceNamespacedIngressStatusCall(String name, String name Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/servicecidrs/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6802,62 +11712,61 @@ private okhttp3.Call replaceNamespacedIngressStatusCall(String name, String name } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedIngressStatusValidateBeforeCall(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceServiceCIDRValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedIngressStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedIngressStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceServiceCIDR(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedIngressStatus(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceServiceCIDR(Async)"); } - return replaceNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceServiceCIDRCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse replaceNamespacedIngressStatusWithHttpInfo(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse replaceServiceCIDRWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceServiceCIDRValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedIngressStatusAsync(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceServiceCIDRAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceServiceCIDRValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreplaceNamespacedIngressStatusRequest { + public class APIreplaceServiceCIDRRequest { + @jakarta.annotation.Nonnull private final String name; - private final String namespace; - private final V1Ingress body; + @jakarta.annotation.Nonnull + private final V1ServiceCIDR body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedIngressStatusRequest(String name, String namespace, V1Ingress body) { + private APIreplaceServiceCIDRRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ServiceCIDR body) { this.name = name; - this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreplaceNamespacedIngressStatusRequest + * @return APIreplaceServiceCIDRRequest */ - public APIreplaceNamespacedIngressStatusRequest pretty(String pretty) { + public APIreplaceServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6865,9 +11774,9 @@ public APIreplaceNamespacedIngressStatusRequest pretty(String pretty) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIreplaceNamespacedIngressStatusRequest + * @return APIreplaceServiceCIDRRequest */ - public APIreplaceNamespacedIngressStatusRequest dryRun(String dryRun) { + public APIreplaceServiceCIDRRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6875,9 +11784,9 @@ public APIreplaceNamespacedIngressStatusRequest dryRun(String dryRun) { /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIreplaceNamespacedIngressStatusRequest + * @return APIreplaceServiceCIDRRequest */ - public APIreplaceNamespacedIngressStatusRequest fieldManager(String fieldManager) { + public APIreplaceServiceCIDRRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6885,20 +11794,21 @@ public APIreplaceNamespacedIngressStatusRequest fieldManager(String fieldManager /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIreplaceNamespacedIngressStatusRequest + * @return APIreplaceServiceCIDRRequest */ - public APIreplaceNamespacedIngressStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceServiceCIDRRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for replaceNamespacedIngressStatus + * Build call for replaceServiceCIDR * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6906,79 +11816,82 @@ public APIreplaceNamespacedIngressStatusRequest fieldValidation(String fieldVali
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceServiceCIDRCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute replaceNamespacedIngressStatus request - * @return V1Ingress + * Execute replaceServiceCIDR request + * @return V1ServiceCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1Ingress execute() throws ApiException { - ApiResponse localVarResp = replaceNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public V1ServiceCIDR execute() throws ApiException { + ApiResponse localVarResp = replaceServiceCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute replaceNamespacedIngressStatus request with HTTP info returned - * @return ApiResponse<V1Ingress> + * Execute replaceServiceCIDR request with HTTP info returned + * @return ApiResponse<V1ServiceCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceServiceCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute replaceNamespacedIngressStatus request (asynchronously) + * Execute replaceServiceCIDR request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceNamespacedIngressStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceServiceCIDRAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * replace status of the specified Ingress - * @param name name of the Ingress (required) - * @param namespace object name and auth scope, such as for teams and projects (required) + * replace the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) * @param body (required) - * @return APIreplaceNamespacedIngressStatusRequest + * @return APIreplaceServiceCIDRRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedIngressStatusRequest replaceNamespacedIngressStatus(String name, String namespace, V1Ingress body) { - return new APIreplaceNamespacedIngressStatusRequest(name, namespace, body); + public APIreplaceServiceCIDRRequest replaceServiceCIDR(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ServiceCIDR body) { + return new APIreplaceServiceCIDRRequest(name, body); } - private okhttp3.Call replaceNamespacedNetworkPolicyCall(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceServiceCIDRStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6995,9 +11908,8 @@ private okhttp3.Call replaceNamespacedNetworkPolicyCall(String name, String name Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/servicecidrs/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -7045,62 +11957,61 @@ private okhttp3.Call replaceNamespacedNetworkPolicyCall(String name, String name } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceServiceCIDRStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedNetworkPolicy(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedNetworkPolicy(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceServiceCIDRStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedNetworkPolicy(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceServiceCIDRStatus(Async)"); } - return replaceNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceServiceCIDRStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse replaceNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse replaceServiceCIDRStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceServiceCIDRStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedNetworkPolicyAsync(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceServiceCIDRStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceServiceCIDRStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreplaceNamespacedNetworkPolicyRequest { + public class APIreplaceServiceCIDRStatusRequest { + @jakarta.annotation.Nonnull private final String name; - private final String namespace; - private final V1NetworkPolicy body; + @jakarta.annotation.Nonnull + private final V1ServiceCIDR body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedNetworkPolicyRequest(String name, String namespace, V1NetworkPolicy body) { + private APIreplaceServiceCIDRStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ServiceCIDR body) { this.name = name; - this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreplaceNamespacedNetworkPolicyRequest + * @return APIreplaceServiceCIDRStatusRequest */ - public APIreplaceNamespacedNetworkPolicyRequest pretty(String pretty) { + public APIreplaceServiceCIDRStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7108,9 +12019,9 @@ public APIreplaceNamespacedNetworkPolicyRequest pretty(String pretty) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIreplaceNamespacedNetworkPolicyRequest + * @return APIreplaceServiceCIDRStatusRequest */ - public APIreplaceNamespacedNetworkPolicyRequest dryRun(String dryRun) { + public APIreplaceServiceCIDRStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -7118,9 +12029,9 @@ public APIreplaceNamespacedNetworkPolicyRequest dryRun(String dryRun) { /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIreplaceNamespacedNetworkPolicyRequest + * @return APIreplaceServiceCIDRStatusRequest */ - public APIreplaceNamespacedNetworkPolicyRequest fieldManager(String fieldManager) { + public APIreplaceServiceCIDRStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -7128,20 +12039,21 @@ public APIreplaceNamespacedNetworkPolicyRequest fieldManager(String fieldManager /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIreplaceNamespacedNetworkPolicyRequest + * @return APIreplaceServiceCIDRStatusRequest */ - public APIreplaceNamespacedNetworkPolicyRequest fieldValidation(String fieldValidation) { + public APIreplaceServiceCIDRStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for replaceNamespacedNetworkPolicy + * Build call for replaceServiceCIDRStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7149,76 +12061,79 @@ public APIreplaceNamespacedNetworkPolicyRequest fieldValidation(String fieldVali
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceServiceCIDRStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute replaceNamespacedNetworkPolicy request - * @return V1NetworkPolicy + * Execute replaceServiceCIDRStatus request + * @return V1ServiceCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1NetworkPolicy execute() throws ApiException { - ApiResponse localVarResp = replaceNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public V1ServiceCIDR execute() throws ApiException { + ApiResponse localVarResp = replaceServiceCIDRStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute replaceNamespacedNetworkPolicy request with HTTP info returned - * @return ApiResponse<V1NetworkPolicy> + * Execute replaceServiceCIDRStatus request with HTTP info returned + * @return ApiResponse<V1ServiceCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceServiceCIDRStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute replaceNamespacedNetworkPolicy request (asynchronously) + * Execute replaceServiceCIDRStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceNamespacedNetworkPolicyAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceServiceCIDRStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * replace the specified NetworkPolicy - * @param name name of the NetworkPolicy (required) - * @param namespace object name and auth scope, such as for teams and projects (required) + * replace status of the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) * @param body (required) - * @return APIreplaceNamespacedNetworkPolicyRequest + * @return APIreplaceServiceCIDRStatusRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedNetworkPolicyRequest replaceNamespacedNetworkPolicy(String name, String namespace, V1NetworkPolicy body) { - return new APIreplaceNamespacedNetworkPolicyRequest(name, namespace, body); + public APIreplaceServiceCIDRStatusRequest replaceServiceCIDRStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ServiceCIDR body) { + return new APIreplaceServiceCIDRStatusRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java index ebec46927f..96a8ec057d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java @@ -78,7 +78,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createIPAddressCall(V1beta1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createIPAddressCall(@jakarta.annotation.Nonnull V1beta1IPAddress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -143,7 +143,7 @@ private okhttp3.Call createIPAddressCall(V1beta1IPAddress body, String pretty, S } @SuppressWarnings("rawtypes") - private okhttp3.Call createIPAddressValidateBeforeCall(V1beta1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createIPAddressValidateBeforeCall(@jakarta.annotation.Nonnull V1beta1IPAddress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createIPAddress(Async)"); @@ -154,13 +154,13 @@ private okhttp3.Call createIPAddressValidateBeforeCall(V1beta1IPAddress body, St } - private ApiResponse createIPAddressWithHttpInfo(V1beta1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createIPAddressWithHttpInfo(@jakarta.annotation.Nonnull V1beta1IPAddress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createIPAddressValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createIPAddressAsync(V1beta1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createIPAddressAsync(@jakarta.annotation.Nonnull V1beta1IPAddress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createIPAddressValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -169,13 +169,18 @@ private okhttp3.Call createIPAddressAsync(V1beta1IPAddress body, String pretty, } public class APIcreateIPAddressRequest { + @jakarta.annotation.Nonnull private final V1beta1IPAddress body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateIPAddressRequest(V1beta1IPAddress body) { + private APIcreateIPAddressRequest(@jakarta.annotation.Nonnull V1beta1IPAddress body) { this.body = body; } @@ -184,7 +189,7 @@ private APIcreateIPAddressRequest(V1beta1IPAddress body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateIPAddressRequest */ - public APIcreateIPAddressRequest pretty(String pretty) { + public APIcreateIPAddressRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -194,7 +199,7 @@ public APIcreateIPAddressRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateIPAddressRequest */ - public APIcreateIPAddressRequest dryRun(String dryRun) { + public APIcreateIPAddressRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -204,7 +209,7 @@ public APIcreateIPAddressRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateIPAddressRequest */ - public APIcreateIPAddressRequest fieldManager(String fieldManager) { + public APIcreateIPAddressRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -214,7 +219,7 @@ public APIcreateIPAddressRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateIPAddressRequest */ - public APIcreateIPAddressRequest fieldValidation(String fieldValidation) { + public APIcreateIPAddressRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -225,7 +230,8 @@ public APIcreateIPAddressRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -242,7 +248,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1IPAddress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -260,7 +267,8 @@ public V1beta1IPAddress execute() throws ApiException { * @return ApiResponse<V1beta1IPAddress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -278,7 +286,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -297,7 +306,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * @param body (required) * @return APIcreateIPAddressRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -305,10 +315,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback)
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateIPAddressRequest createIPAddress(V1beta1IPAddress body) { + public APIcreateIPAddressRequest createIPAddress(@jakarta.annotation.Nonnull V1beta1IPAddress body) { return new APIcreateIPAddressRequest(body); } - private okhttp3.Call createServiceCIDRCall(V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createServiceCIDRCall(@jakarta.annotation.Nonnull V1beta1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -373,7 +383,7 @@ private okhttp3.Call createServiceCIDRCall(V1beta1ServiceCIDR body, String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call createServiceCIDRValidateBeforeCall(V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createServiceCIDRValidateBeforeCall(@jakarta.annotation.Nonnull V1beta1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createServiceCIDR(Async)"); @@ -384,13 +394,13 @@ private okhttp3.Call createServiceCIDRValidateBeforeCall(V1beta1ServiceCIDR body } - private ApiResponse createServiceCIDRWithHttpInfo(V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createServiceCIDRWithHttpInfo(@jakarta.annotation.Nonnull V1beta1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createServiceCIDRValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createServiceCIDRAsync(V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createServiceCIDRAsync(@jakarta.annotation.Nonnull V1beta1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createServiceCIDRValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -399,13 +409,18 @@ private okhttp3.Call createServiceCIDRAsync(V1beta1ServiceCIDR body, String pret } public class APIcreateServiceCIDRRequest { + @jakarta.annotation.Nonnull private final V1beta1ServiceCIDR body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateServiceCIDRRequest(V1beta1ServiceCIDR body) { + private APIcreateServiceCIDRRequest(@jakarta.annotation.Nonnull V1beta1ServiceCIDR body) { this.body = body; } @@ -414,7 +429,7 @@ private APIcreateServiceCIDRRequest(V1beta1ServiceCIDR body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateServiceCIDRRequest */ - public APIcreateServiceCIDRRequest pretty(String pretty) { + public APIcreateServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -424,7 +439,7 @@ public APIcreateServiceCIDRRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateServiceCIDRRequest */ - public APIcreateServiceCIDRRequest dryRun(String dryRun) { + public APIcreateServiceCIDRRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -434,7 +449,7 @@ public APIcreateServiceCIDRRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateServiceCIDRRequest */ - public APIcreateServiceCIDRRequest fieldManager(String fieldManager) { + public APIcreateServiceCIDRRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -444,7 +459,7 @@ public APIcreateServiceCIDRRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateServiceCIDRRequest */ - public APIcreateServiceCIDRRequest fieldValidation(String fieldValidation) { + public APIcreateServiceCIDRRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -455,7 +470,8 @@ public APIcreateServiceCIDRRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -472,7 +488,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ServiceCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -490,7 +507,8 @@ public V1beta1ServiceCIDR execute() throws ApiException { * @return ApiResponse<V1beta1ServiceCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -508,7 +526,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -527,7 +546,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param body (required) * @return APIcreateServiceCIDRRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -535,10 +555,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateServiceCIDRRequest createServiceCIDR(V1beta1ServiceCIDR body) { + public APIcreateServiceCIDRRequest createServiceCIDR(@jakarta.annotation.Nonnull V1beta1ServiceCIDR body) { return new APIcreateServiceCIDRRequest(body); } - private okhttp3.Call deleteCollectionIPAddressCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionIPAddressCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -643,19 +663,19 @@ private okhttp3.Call deleteCollectionIPAddressCall(String pretty, String _contin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionIPAddressValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionIPAddressValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionIPAddressCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionIPAddressWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionIPAddressWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionIPAddressValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionIPAddressAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionIPAddressAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionIPAddressValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -664,20 +684,35 @@ private okhttp3.Call deleteCollectionIPAddressAsync(String pretty, String _conti } public class APIdeleteCollectionIPAddressRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionIPAddressRequest() { @@ -688,7 +723,7 @@ private APIdeleteCollectionIPAddressRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionIPAddressRequest pretty(String pretty) { + public APIdeleteCollectionIPAddressRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -698,7 +733,7 @@ public APIdeleteCollectionIPAddressRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionIPAddressRequest _continue(String _continue) { + public APIdeleteCollectionIPAddressRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -708,7 +743,7 @@ public APIdeleteCollectionIPAddressRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionIPAddressRequest dryRun(String dryRun) { + public APIdeleteCollectionIPAddressRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -718,7 +753,7 @@ public APIdeleteCollectionIPAddressRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionIPAddressRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionIPAddressRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -728,7 +763,7 @@ public APIdeleteCollectionIPAddressRequest fieldSelector(String fieldSelector) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionIPAddressRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionIPAddressRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -738,7 +773,7 @@ public APIdeleteCollectionIPAddressRequest gracePeriodSeconds(Integer gracePerio * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionIPAddressRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionIPAddressRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -748,7 +783,7 @@ public APIdeleteCollectionIPAddressRequest ignoreStoreReadErrorWithClusterBreaki * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionIPAddressRequest labelSelector(String labelSelector) { + public APIdeleteCollectionIPAddressRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -758,7 +793,7 @@ public APIdeleteCollectionIPAddressRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionIPAddressRequest limit(Integer limit) { + public APIdeleteCollectionIPAddressRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -768,7 +803,7 @@ public APIdeleteCollectionIPAddressRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionIPAddressRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionIPAddressRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -778,7 +813,7 @@ public APIdeleteCollectionIPAddressRequest orphanDependents(Boolean orphanDepend * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionIPAddressRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionIPAddressRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -788,7 +823,7 @@ public APIdeleteCollectionIPAddressRequest propagationPolicy(String propagationP * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionIPAddressRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionIPAddressRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -798,7 +833,7 @@ public APIdeleteCollectionIPAddressRequest resourceVersion(String resourceVersio * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionIPAddressRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionIPAddressRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -808,7 +843,7 @@ public APIdeleteCollectionIPAddressRequest resourceVersionMatch(String resourceV * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionIPAddressRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionIPAddressRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -818,7 +853,7 @@ public APIdeleteCollectionIPAddressRequest sendInitialEvents(Boolean sendInitial * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionIPAddressRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionIPAddressRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -828,7 +863,7 @@ public APIdeleteCollectionIPAddressRequest timeoutSeconds(Integer timeoutSeconds * @param body (optional) * @return APIdeleteCollectionIPAddressRequest */ - public APIdeleteCollectionIPAddressRequest body(V1DeleteOptions body) { + public APIdeleteCollectionIPAddressRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -839,7 +874,8 @@ public APIdeleteCollectionIPAddressRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -854,7 +890,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -870,7 +907,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -886,7 +924,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -902,7 +941,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of IPAddress * @return APIdeleteCollectionIPAddressRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -911,7 +951,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionIPAddressRequest deleteCollectionIPAddress() { return new APIdeleteCollectionIPAddressRequest(); } - private okhttp3.Call deleteCollectionServiceCIDRCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionServiceCIDRCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1016,19 +1056,19 @@ private okhttp3.Call deleteCollectionServiceCIDRCall(String pretty, String _cont } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionServiceCIDRValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionServiceCIDRValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionServiceCIDRCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionServiceCIDRWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionServiceCIDRWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionServiceCIDRValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionServiceCIDRAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionServiceCIDRAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionServiceCIDRValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1037,20 +1077,35 @@ private okhttp3.Call deleteCollectionServiceCIDRAsync(String pretty, String _con } public class APIdeleteCollectionServiceCIDRRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionServiceCIDRRequest() { @@ -1061,7 +1116,7 @@ private APIdeleteCollectionServiceCIDRRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionServiceCIDRRequest */ - public APIdeleteCollectionServiceCIDRRequest pretty(String pretty) { + public APIdeleteCollectionServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1071,7 +1126,7 @@ public APIdeleteCollectionServiceCIDRRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionServiceCIDRRequest */ - public APIdeleteCollectionServiceCIDRRequest _continue(String _continue) { + public APIdeleteCollectionServiceCIDRRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1081,7 +1136,7 @@ public APIdeleteCollectionServiceCIDRRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionServiceCIDRRequest */ - public APIdeleteCollectionServiceCIDRRequest dryRun(String dryRun) { + public APIdeleteCollectionServiceCIDRRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1091,7 +1146,7 @@ public APIdeleteCollectionServiceCIDRRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionServiceCIDRRequest */ - public APIdeleteCollectionServiceCIDRRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionServiceCIDRRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1101,7 +1156,7 @@ public APIdeleteCollectionServiceCIDRRequest fieldSelector(String fieldSelector) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionServiceCIDRRequest */ - public APIdeleteCollectionServiceCIDRRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionServiceCIDRRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1111,7 +1166,7 @@ public APIdeleteCollectionServiceCIDRRequest gracePeriodSeconds(Integer gracePer * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionServiceCIDRRequest */ - public APIdeleteCollectionServiceCIDRRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionServiceCIDRRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1121,7 +1176,7 @@ public APIdeleteCollectionServiceCIDRRequest ignoreStoreReadErrorWithClusterBrea * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionServiceCIDRRequest */ - public APIdeleteCollectionServiceCIDRRequest labelSelector(String labelSelector) { + public APIdeleteCollectionServiceCIDRRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1131,7 +1186,7 @@ public APIdeleteCollectionServiceCIDRRequest labelSelector(String labelSelector) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionServiceCIDRRequest */ - public APIdeleteCollectionServiceCIDRRequest limit(Integer limit) { + public APIdeleteCollectionServiceCIDRRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1141,7 +1196,7 @@ public APIdeleteCollectionServiceCIDRRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionServiceCIDRRequest */ - public APIdeleteCollectionServiceCIDRRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionServiceCIDRRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1151,7 +1206,7 @@ public APIdeleteCollectionServiceCIDRRequest orphanDependents(Boolean orphanDepe * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionServiceCIDRRequest */ - public APIdeleteCollectionServiceCIDRRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionServiceCIDRRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1161,7 +1216,7 @@ public APIdeleteCollectionServiceCIDRRequest propagationPolicy(String propagatio * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionServiceCIDRRequest */ - public APIdeleteCollectionServiceCIDRRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionServiceCIDRRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1171,7 +1226,7 @@ public APIdeleteCollectionServiceCIDRRequest resourceVersion(String resourceVers * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionServiceCIDRRequest */ - public APIdeleteCollectionServiceCIDRRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionServiceCIDRRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1181,7 +1236,7 @@ public APIdeleteCollectionServiceCIDRRequest resourceVersionMatch(String resourc * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionServiceCIDRRequest */ - public APIdeleteCollectionServiceCIDRRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionServiceCIDRRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1191,7 +1246,7 @@ public APIdeleteCollectionServiceCIDRRequest sendInitialEvents(Boolean sendIniti * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionServiceCIDRRequest */ - public APIdeleteCollectionServiceCIDRRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionServiceCIDRRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1201,7 +1256,7 @@ public APIdeleteCollectionServiceCIDRRequest timeoutSeconds(Integer timeoutSecon * @param body (optional) * @return APIdeleteCollectionServiceCIDRRequest */ - public APIdeleteCollectionServiceCIDRRequest body(V1DeleteOptions body) { + public APIdeleteCollectionServiceCIDRRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1212,7 +1267,8 @@ public APIdeleteCollectionServiceCIDRRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1227,7 +1283,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1243,7 +1300,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1259,7 +1317,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1275,7 +1334,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of ServiceCIDR * @return APIdeleteCollectionServiceCIDRRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1284,7 +1344,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionServiceCIDRRequest deleteCollectionServiceCIDR() { return new APIdeleteCollectionServiceCIDRRequest(); } - private okhttp3.Call deleteIPAddressCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteIPAddressCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1358,7 +1418,7 @@ private okhttp3.Call deleteIPAddressCall(String name, String pretty, String dryR } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteIPAddressValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteIPAddressValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteIPAddress(Async)"); @@ -1369,13 +1429,13 @@ private okhttp3.Call deleteIPAddressValidateBeforeCall(String name, String prett } - private ApiResponse deleteIPAddressWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteIPAddressWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteIPAddressValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteIPAddressAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteIPAddressAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteIPAddressValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1384,16 +1444,24 @@ private okhttp3.Call deleteIPAddressAsync(String name, String pretty, String dry } public class APIdeleteIPAddressRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteIPAddressRequest(String name) { + private APIdeleteIPAddressRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -1402,7 +1470,7 @@ private APIdeleteIPAddressRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteIPAddressRequest */ - public APIdeleteIPAddressRequest pretty(String pretty) { + public APIdeleteIPAddressRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1412,7 +1480,7 @@ public APIdeleteIPAddressRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteIPAddressRequest */ - public APIdeleteIPAddressRequest dryRun(String dryRun) { + public APIdeleteIPAddressRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1422,7 +1490,7 @@ public APIdeleteIPAddressRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteIPAddressRequest */ - public APIdeleteIPAddressRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteIPAddressRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1432,7 +1500,7 @@ public APIdeleteIPAddressRequest gracePeriodSeconds(Integer gracePeriodSeconds) * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteIPAddressRequest */ - public APIdeleteIPAddressRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteIPAddressRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1442,7 +1510,7 @@ public APIdeleteIPAddressRequest ignoreStoreReadErrorWithClusterBreakingPotentia * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteIPAddressRequest */ - public APIdeleteIPAddressRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteIPAddressRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1452,7 +1520,7 @@ public APIdeleteIPAddressRequest orphanDependents(Boolean orphanDependents) { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteIPAddressRequest */ - public APIdeleteIPAddressRequest propagationPolicy(String propagationPolicy) { + public APIdeleteIPAddressRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1462,7 +1530,7 @@ public APIdeleteIPAddressRequest propagationPolicy(String propagationPolicy) { * @param body (optional) * @return APIdeleteIPAddressRequest */ - public APIdeleteIPAddressRequest body(V1DeleteOptions body) { + public APIdeleteIPAddressRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1473,7 +1541,8 @@ public APIdeleteIPAddressRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1489,7 +1558,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1506,7 +1576,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1523,7 +1594,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1541,17 +1613,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the IPAddress (required) * @return APIdeleteIPAddressRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteIPAddressRequest deleteIPAddress(String name) { + public APIdeleteIPAddressRequest deleteIPAddress(@jakarta.annotation.Nonnull String name) { return new APIdeleteIPAddressRequest(name); } - private okhttp3.Call deleteServiceCIDRCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteServiceCIDRCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1625,7 +1698,7 @@ private okhttp3.Call deleteServiceCIDRCall(String name, String pretty, String dr } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteServiceCIDRValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteServiceCIDRValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteServiceCIDR(Async)"); @@ -1636,13 +1709,13 @@ private okhttp3.Call deleteServiceCIDRValidateBeforeCall(String name, String pre } - private ApiResponse deleteServiceCIDRWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteServiceCIDRWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteServiceCIDRValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteServiceCIDRAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteServiceCIDRAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteServiceCIDRValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1651,16 +1724,24 @@ private okhttp3.Call deleteServiceCIDRAsync(String name, String pretty, String d } public class APIdeleteServiceCIDRRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteServiceCIDRRequest(String name) { + private APIdeleteServiceCIDRRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -1669,7 +1750,7 @@ private APIdeleteServiceCIDRRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteServiceCIDRRequest */ - public APIdeleteServiceCIDRRequest pretty(String pretty) { + public APIdeleteServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1679,7 +1760,7 @@ public APIdeleteServiceCIDRRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteServiceCIDRRequest */ - public APIdeleteServiceCIDRRequest dryRun(String dryRun) { + public APIdeleteServiceCIDRRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1689,7 +1770,7 @@ public APIdeleteServiceCIDRRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteServiceCIDRRequest */ - public APIdeleteServiceCIDRRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteServiceCIDRRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1699,7 +1780,7 @@ public APIdeleteServiceCIDRRequest gracePeriodSeconds(Integer gracePeriodSeconds * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteServiceCIDRRequest */ - public APIdeleteServiceCIDRRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteServiceCIDRRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1709,7 +1790,7 @@ public APIdeleteServiceCIDRRequest ignoreStoreReadErrorWithClusterBreakingPotent * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteServiceCIDRRequest */ - public APIdeleteServiceCIDRRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteServiceCIDRRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1719,7 +1800,7 @@ public APIdeleteServiceCIDRRequest orphanDependents(Boolean orphanDependents) { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteServiceCIDRRequest */ - public APIdeleteServiceCIDRRequest propagationPolicy(String propagationPolicy) { + public APIdeleteServiceCIDRRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1729,7 +1810,7 @@ public APIdeleteServiceCIDRRequest propagationPolicy(String propagationPolicy) { * @param body (optional) * @return APIdeleteServiceCIDRRequest */ - public APIdeleteServiceCIDRRequest body(V1DeleteOptions body) { + public APIdeleteServiceCIDRRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1740,7 +1821,8 @@ public APIdeleteServiceCIDRRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1756,7 +1838,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1773,7 +1856,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1790,7 +1874,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1808,14 +1893,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the ServiceCIDR (required) * @return APIdeleteServiceCIDRRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteServiceCIDRRequest deleteServiceCIDR(String name) { + public APIdeleteServiceCIDRRequest deleteServiceCIDR(@jakarta.annotation.Nonnull String name) { return new APIdeleteServiceCIDRRequest(name); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -1897,7 +1983,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1912,7 +1999,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1928,7 +2016,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1944,7 +2033,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1960,7 +2050,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1969,7 +2060,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listIPAddressCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listIPAddressCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2064,19 +2155,19 @@ private okhttp3.Call listIPAddressCall(String pretty, Boolean allowWatchBookmark } @SuppressWarnings("rawtypes") - private okhttp3.Call listIPAddressValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listIPAddressValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listIPAddressCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listIPAddressWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listIPAddressWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listIPAddressValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listIPAddressAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listIPAddressAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listIPAddressValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2085,16 +2176,27 @@ private okhttp3.Call listIPAddressAsync(String pretty, Boolean allowWatchBookmar } public class APIlistIPAddressRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistIPAddressRequest() { @@ -2105,7 +2207,7 @@ private APIlistIPAddressRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistIPAddressRequest */ - public APIlistIPAddressRequest pretty(String pretty) { + public APIlistIPAddressRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2115,7 +2217,7 @@ public APIlistIPAddressRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistIPAddressRequest */ - public APIlistIPAddressRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistIPAddressRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -2125,7 +2227,7 @@ public APIlistIPAddressRequest allowWatchBookmarks(Boolean allowWatchBookmarks) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistIPAddressRequest */ - public APIlistIPAddressRequest _continue(String _continue) { + public APIlistIPAddressRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2135,7 +2237,7 @@ public APIlistIPAddressRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistIPAddressRequest */ - public APIlistIPAddressRequest fieldSelector(String fieldSelector) { + public APIlistIPAddressRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2145,7 +2247,7 @@ public APIlistIPAddressRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistIPAddressRequest */ - public APIlistIPAddressRequest labelSelector(String labelSelector) { + public APIlistIPAddressRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2155,7 +2257,7 @@ public APIlistIPAddressRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistIPAddressRequest */ - public APIlistIPAddressRequest limit(Integer limit) { + public APIlistIPAddressRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2165,7 +2267,7 @@ public APIlistIPAddressRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistIPAddressRequest */ - public APIlistIPAddressRequest resourceVersion(String resourceVersion) { + public APIlistIPAddressRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2175,7 +2277,7 @@ public APIlistIPAddressRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistIPAddressRequest */ - public APIlistIPAddressRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistIPAddressRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2185,7 +2287,7 @@ public APIlistIPAddressRequest resourceVersionMatch(String resourceVersionMatch) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistIPAddressRequest */ - public APIlistIPAddressRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistIPAddressRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2195,7 +2297,7 @@ public APIlistIPAddressRequest sendInitialEvents(Boolean sendInitialEvents) { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistIPAddressRequest */ - public APIlistIPAddressRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistIPAddressRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2205,7 +2307,7 @@ public APIlistIPAddressRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistIPAddressRequest */ - public APIlistIPAddressRequest watch(Boolean watch) { + public APIlistIPAddressRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -2216,7 +2318,8 @@ public APIlistIPAddressRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2231,7 +2334,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1IPAddressList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2247,7 +2351,8 @@ public V1beta1IPAddressList execute() throws ApiException { * @return ApiResponse<V1beta1IPAddressList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2263,7 +2368,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2279,7 +2385,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * list or watch objects of kind IPAddress * @return APIlistIPAddressRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2288,7 +2395,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba public APIlistIPAddressRequest listIPAddress() { return new APIlistIPAddressRequest(); } - private okhttp3.Call listServiceCIDRCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listServiceCIDRCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2383,19 +2490,19 @@ private okhttp3.Call listServiceCIDRCall(String pretty, Boolean allowWatchBookma } @SuppressWarnings("rawtypes") - private okhttp3.Call listServiceCIDRValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listServiceCIDRValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listServiceCIDRCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listServiceCIDRWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listServiceCIDRWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listServiceCIDRValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listServiceCIDRAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listServiceCIDRAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listServiceCIDRValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2404,16 +2511,27 @@ private okhttp3.Call listServiceCIDRAsync(String pretty, Boolean allowWatchBookm } public class APIlistServiceCIDRRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistServiceCIDRRequest() { @@ -2424,7 +2542,7 @@ private APIlistServiceCIDRRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistServiceCIDRRequest */ - public APIlistServiceCIDRRequest pretty(String pretty) { + public APIlistServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2434,7 +2552,7 @@ public APIlistServiceCIDRRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistServiceCIDRRequest */ - public APIlistServiceCIDRRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistServiceCIDRRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -2444,7 +2562,7 @@ public APIlistServiceCIDRRequest allowWatchBookmarks(Boolean allowWatchBookmarks * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistServiceCIDRRequest */ - public APIlistServiceCIDRRequest _continue(String _continue) { + public APIlistServiceCIDRRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2454,7 +2572,7 @@ public APIlistServiceCIDRRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistServiceCIDRRequest */ - public APIlistServiceCIDRRequest fieldSelector(String fieldSelector) { + public APIlistServiceCIDRRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2464,7 +2582,7 @@ public APIlistServiceCIDRRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistServiceCIDRRequest */ - public APIlistServiceCIDRRequest labelSelector(String labelSelector) { + public APIlistServiceCIDRRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2474,7 +2592,7 @@ public APIlistServiceCIDRRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistServiceCIDRRequest */ - public APIlistServiceCIDRRequest limit(Integer limit) { + public APIlistServiceCIDRRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2484,7 +2602,7 @@ public APIlistServiceCIDRRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistServiceCIDRRequest */ - public APIlistServiceCIDRRequest resourceVersion(String resourceVersion) { + public APIlistServiceCIDRRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2494,7 +2612,7 @@ public APIlistServiceCIDRRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistServiceCIDRRequest */ - public APIlistServiceCIDRRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistServiceCIDRRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2504,7 +2622,7 @@ public APIlistServiceCIDRRequest resourceVersionMatch(String resourceVersionMatc * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistServiceCIDRRequest */ - public APIlistServiceCIDRRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistServiceCIDRRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2514,7 +2632,7 @@ public APIlistServiceCIDRRequest sendInitialEvents(Boolean sendInitialEvents) { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistServiceCIDRRequest */ - public APIlistServiceCIDRRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistServiceCIDRRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2524,7 +2642,7 @@ public APIlistServiceCIDRRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistServiceCIDRRequest */ - public APIlistServiceCIDRRequest watch(Boolean watch) { + public APIlistServiceCIDRRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -2535,7 +2653,8 @@ public APIlistServiceCIDRRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2550,7 +2669,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ServiceCIDRList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2566,7 +2686,8 @@ public V1beta1ServiceCIDRList execute() throws ApiException { * @return ApiResponse<V1beta1ServiceCIDRList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2582,7 +2703,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2598,7 +2720,8 @@ public okhttp3.Call executeAsync(final ApiCallback _call * list or watch objects of kind ServiceCIDR * @return APIlistServiceCIDRRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2607,7 +2730,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call public APIlistServiceCIDRRequest listServiceCIDR() { return new APIlistServiceCIDRRequest(); } - private okhttp3.Call patchIPAddressCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchIPAddressCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2677,7 +2800,7 @@ private okhttp3.Call patchIPAddressCall(String name, V1Patch body, String pretty } @SuppressWarnings("rawtypes") - private okhttp3.Call patchIPAddressValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchIPAddressValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchIPAddress(Async)"); @@ -2693,13 +2816,13 @@ private okhttp3.Call patchIPAddressValidateBeforeCall(String name, V1Patch body, } - private ApiResponse patchIPAddressWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchIPAddressWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchIPAddressValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchIPAddressAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchIPAddressAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchIPAddressValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2708,15 +2831,22 @@ private okhttp3.Call patchIPAddressAsync(String name, V1Patch body, String prett } public class APIpatchIPAddressRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchIPAddressRequest(String name, V1Patch body) { + private APIpatchIPAddressRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -2726,7 +2856,7 @@ private APIpatchIPAddressRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchIPAddressRequest */ - public APIpatchIPAddressRequest pretty(String pretty) { + public APIpatchIPAddressRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2736,7 +2866,7 @@ public APIpatchIPAddressRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchIPAddressRequest */ - public APIpatchIPAddressRequest dryRun(String dryRun) { + public APIpatchIPAddressRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2746,7 +2876,7 @@ public APIpatchIPAddressRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchIPAddressRequest */ - public APIpatchIPAddressRequest fieldManager(String fieldManager) { + public APIpatchIPAddressRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2756,7 +2886,7 @@ public APIpatchIPAddressRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchIPAddressRequest */ - public APIpatchIPAddressRequest fieldValidation(String fieldValidation) { + public APIpatchIPAddressRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2766,7 +2896,7 @@ public APIpatchIPAddressRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchIPAddressRequest */ - public APIpatchIPAddressRequest force(Boolean force) { + public APIpatchIPAddressRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -2777,7 +2907,8 @@ public APIpatchIPAddressRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2793,7 +2924,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1IPAddress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2810,7 +2942,8 @@ public V1beta1IPAddress execute() throws ApiException { * @return ApiResponse<V1beta1IPAddress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2827,7 +2960,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2846,17 +2980,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * @param body (required) * @return APIpatchIPAddressRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchIPAddressRequest patchIPAddress(String name, V1Patch body) { + public APIpatchIPAddressRequest patchIPAddress(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchIPAddressRequest(name, body); } - private okhttp3.Call patchServiceCIDRCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchServiceCIDRCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2926,7 +3061,7 @@ private okhttp3.Call patchServiceCIDRCall(String name, V1Patch body, String pret } @SuppressWarnings("rawtypes") - private okhttp3.Call patchServiceCIDRValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchServiceCIDRValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchServiceCIDR(Async)"); @@ -2942,13 +3077,13 @@ private okhttp3.Call patchServiceCIDRValidateBeforeCall(String name, V1Patch bod } - private ApiResponse patchServiceCIDRWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchServiceCIDRWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchServiceCIDRValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchServiceCIDRAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchServiceCIDRAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchServiceCIDRValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2957,15 +3092,22 @@ private okhttp3.Call patchServiceCIDRAsync(String name, V1Patch body, String pre } public class APIpatchServiceCIDRRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchServiceCIDRRequest(String name, V1Patch body) { + private APIpatchServiceCIDRRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -2975,7 +3117,7 @@ private APIpatchServiceCIDRRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchServiceCIDRRequest */ - public APIpatchServiceCIDRRequest pretty(String pretty) { + public APIpatchServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2985,7 +3127,7 @@ public APIpatchServiceCIDRRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchServiceCIDRRequest */ - public APIpatchServiceCIDRRequest dryRun(String dryRun) { + public APIpatchServiceCIDRRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2995,7 +3137,7 @@ public APIpatchServiceCIDRRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchServiceCIDRRequest */ - public APIpatchServiceCIDRRequest fieldManager(String fieldManager) { + public APIpatchServiceCIDRRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -3005,7 +3147,7 @@ public APIpatchServiceCIDRRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchServiceCIDRRequest */ - public APIpatchServiceCIDRRequest fieldValidation(String fieldValidation) { + public APIpatchServiceCIDRRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -3015,7 +3157,7 @@ public APIpatchServiceCIDRRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchServiceCIDRRequest */ - public APIpatchServiceCIDRRequest force(Boolean force) { + public APIpatchServiceCIDRRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -3026,7 +3168,8 @@ public APIpatchServiceCIDRRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3042,7 +3185,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ServiceCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3059,7 +3203,8 @@ public V1beta1ServiceCIDR execute() throws ApiException { * @return ApiResponse<V1beta1ServiceCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3076,7 +3221,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3095,17 +3241,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param body (required) * @return APIpatchServiceCIDRRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchServiceCIDRRequest patchServiceCIDR(String name, V1Patch body) { + public APIpatchServiceCIDRRequest patchServiceCIDR(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchServiceCIDRRequest(name, body); } - private okhttp3.Call patchServiceCIDRStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchServiceCIDRStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3175,7 +3322,7 @@ private okhttp3.Call patchServiceCIDRStatusCall(String name, V1Patch body, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call patchServiceCIDRStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchServiceCIDRStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchServiceCIDRStatus(Async)"); @@ -3191,13 +3338,13 @@ private okhttp3.Call patchServiceCIDRStatusValidateBeforeCall(String name, V1Pat } - private ApiResponse patchServiceCIDRStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchServiceCIDRStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchServiceCIDRStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchServiceCIDRStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchServiceCIDRStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchServiceCIDRStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3206,15 +3353,22 @@ private okhttp3.Call patchServiceCIDRStatusAsync(String name, V1Patch body, Stri } public class APIpatchServiceCIDRStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchServiceCIDRStatusRequest(String name, V1Patch body) { + private APIpatchServiceCIDRStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -3224,7 +3378,7 @@ private APIpatchServiceCIDRStatusRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchServiceCIDRStatusRequest */ - public APIpatchServiceCIDRStatusRequest pretty(String pretty) { + public APIpatchServiceCIDRStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3234,7 +3388,7 @@ public APIpatchServiceCIDRStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchServiceCIDRStatusRequest */ - public APIpatchServiceCIDRStatusRequest dryRun(String dryRun) { + public APIpatchServiceCIDRStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3244,7 +3398,7 @@ public APIpatchServiceCIDRStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchServiceCIDRStatusRequest */ - public APIpatchServiceCIDRStatusRequest fieldManager(String fieldManager) { + public APIpatchServiceCIDRStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -3254,7 +3408,7 @@ public APIpatchServiceCIDRStatusRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchServiceCIDRStatusRequest */ - public APIpatchServiceCIDRStatusRequest fieldValidation(String fieldValidation) { + public APIpatchServiceCIDRStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -3264,7 +3418,7 @@ public APIpatchServiceCIDRStatusRequest fieldValidation(String fieldValidation) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchServiceCIDRStatusRequest */ - public APIpatchServiceCIDRStatusRequest force(Boolean force) { + public APIpatchServiceCIDRStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -3275,7 +3429,8 @@ public APIpatchServiceCIDRStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3291,7 +3446,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ServiceCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3308,7 +3464,8 @@ public V1beta1ServiceCIDR execute() throws ApiException { * @return ApiResponse<V1beta1ServiceCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3325,7 +3482,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3344,17 +3502,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param body (required) * @return APIpatchServiceCIDRStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchServiceCIDRStatusRequest patchServiceCIDRStatus(String name, V1Patch body) { + public APIpatchServiceCIDRStatusRequest patchServiceCIDRStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchServiceCIDRStatusRequest(name, body); } - private okhttp3.Call readIPAddressCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readIPAddressCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3407,7 +3566,7 @@ private okhttp3.Call readIPAddressCall(String name, String pretty, final ApiCall } @SuppressWarnings("rawtypes") - private okhttp3.Call readIPAddressValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readIPAddressValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readIPAddress(Async)"); @@ -3418,13 +3577,13 @@ private okhttp3.Call readIPAddressValidateBeforeCall(String name, String pretty, } - private ApiResponse readIPAddressWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readIPAddressWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readIPAddressValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readIPAddressAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readIPAddressAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readIPAddressValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3433,10 +3592,12 @@ private okhttp3.Call readIPAddressAsync(String name, String pretty, final ApiCal } public class APIreadIPAddressRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadIPAddressRequest(String name) { + private APIreadIPAddressRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -3445,7 +3606,7 @@ private APIreadIPAddressRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadIPAddressRequest */ - public APIreadIPAddressRequest pretty(String pretty) { + public APIreadIPAddressRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3456,7 +3617,8 @@ public APIreadIPAddressRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3471,7 +3633,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1IPAddress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3487,7 +3650,8 @@ public V1beta1IPAddress execute() throws ApiException { * @return ApiResponse<V1beta1IPAddress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3503,7 +3667,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3520,16 +3685,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * @param name name of the IPAddress (required) * @return APIreadIPAddressRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadIPAddressRequest readIPAddress(String name) { + public APIreadIPAddressRequest readIPAddress(@jakarta.annotation.Nonnull String name) { return new APIreadIPAddressRequest(name); } - private okhttp3.Call readServiceCIDRCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readServiceCIDRCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3582,7 +3748,7 @@ private okhttp3.Call readServiceCIDRCall(String name, String pretty, final ApiCa } @SuppressWarnings("rawtypes") - private okhttp3.Call readServiceCIDRValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readServiceCIDRValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readServiceCIDR(Async)"); @@ -3593,13 +3759,13 @@ private okhttp3.Call readServiceCIDRValidateBeforeCall(String name, String prett } - private ApiResponse readServiceCIDRWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readServiceCIDRWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readServiceCIDRValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readServiceCIDRAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readServiceCIDRAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readServiceCIDRValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3608,10 +3774,12 @@ private okhttp3.Call readServiceCIDRAsync(String name, String pretty, final ApiC } public class APIreadServiceCIDRRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadServiceCIDRRequest(String name) { + private APIreadServiceCIDRRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -3620,7 +3788,7 @@ private APIreadServiceCIDRRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadServiceCIDRRequest */ - public APIreadServiceCIDRRequest pretty(String pretty) { + public APIreadServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3631,7 +3799,8 @@ public APIreadServiceCIDRRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3646,7 +3815,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ServiceCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3662,7 +3832,8 @@ public V1beta1ServiceCIDR execute() throws ApiException { * @return ApiResponse<V1beta1ServiceCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3678,7 +3849,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3695,16 +3867,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param name name of the ServiceCIDR (required) * @return APIreadServiceCIDRRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadServiceCIDRRequest readServiceCIDR(String name) { + public APIreadServiceCIDRRequest readServiceCIDR(@jakarta.annotation.Nonnull String name) { return new APIreadServiceCIDRRequest(name); } - private okhttp3.Call readServiceCIDRStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readServiceCIDRStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3757,7 +3930,7 @@ private okhttp3.Call readServiceCIDRStatusCall(String name, String pretty, final } @SuppressWarnings("rawtypes") - private okhttp3.Call readServiceCIDRStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readServiceCIDRStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readServiceCIDRStatus(Async)"); @@ -3768,13 +3941,13 @@ private okhttp3.Call readServiceCIDRStatusValidateBeforeCall(String name, String } - private ApiResponse readServiceCIDRStatusWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readServiceCIDRStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readServiceCIDRStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readServiceCIDRStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readServiceCIDRStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readServiceCIDRStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3783,10 +3956,12 @@ private okhttp3.Call readServiceCIDRStatusAsync(String name, String pretty, fina } public class APIreadServiceCIDRStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadServiceCIDRStatusRequest(String name) { + private APIreadServiceCIDRStatusRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -3795,7 +3970,7 @@ private APIreadServiceCIDRStatusRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadServiceCIDRStatusRequest */ - public APIreadServiceCIDRStatusRequest pretty(String pretty) { + public APIreadServiceCIDRStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3806,7 +3981,8 @@ public APIreadServiceCIDRStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3821,7 +3997,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ServiceCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3837,7 +4014,8 @@ public V1beta1ServiceCIDR execute() throws ApiException { * @return ApiResponse<V1beta1ServiceCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3853,7 +4031,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3870,16 +4049,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param name name of the ServiceCIDR (required) * @return APIreadServiceCIDRStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadServiceCIDRStatusRequest readServiceCIDRStatus(String name) { + public APIreadServiceCIDRStatusRequest readServiceCIDRStatus(@jakarta.annotation.Nonnull String name) { return new APIreadServiceCIDRStatusRequest(name); } - private okhttp3.Call replaceIPAddressCall(String name, V1beta1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceIPAddressCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1IPAddress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3945,7 +4125,7 @@ private okhttp3.Call replaceIPAddressCall(String name, V1beta1IPAddress body, St } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceIPAddressValidateBeforeCall(String name, V1beta1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceIPAddressValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1IPAddress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceIPAddress(Async)"); @@ -3961,13 +4141,13 @@ private okhttp3.Call replaceIPAddressValidateBeforeCall(String name, V1beta1IPAd } - private ApiResponse replaceIPAddressWithHttpInfo(String name, V1beta1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceIPAddressWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1IPAddress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceIPAddressValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceIPAddressAsync(String name, V1beta1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceIPAddressAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1IPAddress body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceIPAddressValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3976,14 +4156,20 @@ private okhttp3.Call replaceIPAddressAsync(String name, V1beta1IPAddress body, S } public class APIreplaceIPAddressRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1beta1IPAddress body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceIPAddressRequest(String name, V1beta1IPAddress body) { + private APIreplaceIPAddressRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1IPAddress body) { this.name = name; this.body = body; } @@ -3993,7 +4179,7 @@ private APIreplaceIPAddressRequest(String name, V1beta1IPAddress body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceIPAddressRequest */ - public APIreplaceIPAddressRequest pretty(String pretty) { + public APIreplaceIPAddressRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4003,7 +4189,7 @@ public APIreplaceIPAddressRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceIPAddressRequest */ - public APIreplaceIPAddressRequest dryRun(String dryRun) { + public APIreplaceIPAddressRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4013,7 +4199,7 @@ public APIreplaceIPAddressRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceIPAddressRequest */ - public APIreplaceIPAddressRequest fieldManager(String fieldManager) { + public APIreplaceIPAddressRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -4023,7 +4209,7 @@ public APIreplaceIPAddressRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceIPAddressRequest */ - public APIreplaceIPAddressRequest fieldValidation(String fieldValidation) { + public APIreplaceIPAddressRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -4034,7 +4220,8 @@ public APIreplaceIPAddressRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4050,7 +4237,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1IPAddress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4067,7 +4255,8 @@ public V1beta1IPAddress execute() throws ApiException { * @return ApiResponse<V1beta1IPAddress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4084,7 +4273,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4103,17 +4293,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * @param body (required) * @return APIreplaceIPAddressRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceIPAddressRequest replaceIPAddress(String name, V1beta1IPAddress body) { + public APIreplaceIPAddressRequest replaceIPAddress(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1IPAddress body) { return new APIreplaceIPAddressRequest(name, body); } - private okhttp3.Call replaceServiceCIDRCall(String name, V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceServiceCIDRCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4179,7 +4370,7 @@ private okhttp3.Call replaceServiceCIDRCall(String name, V1beta1ServiceCIDR body } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceServiceCIDRValidateBeforeCall(String name, V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceServiceCIDRValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceServiceCIDR(Async)"); @@ -4195,13 +4386,13 @@ private okhttp3.Call replaceServiceCIDRValidateBeforeCall(String name, V1beta1Se } - private ApiResponse replaceServiceCIDRWithHttpInfo(String name, V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceServiceCIDRWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceServiceCIDRValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceServiceCIDRAsync(String name, V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceServiceCIDRAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceServiceCIDRValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4210,14 +4401,20 @@ private okhttp3.Call replaceServiceCIDRAsync(String name, V1beta1ServiceCIDR bod } public class APIreplaceServiceCIDRRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1beta1ServiceCIDR body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceServiceCIDRRequest(String name, V1beta1ServiceCIDR body) { + private APIreplaceServiceCIDRRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ServiceCIDR body) { this.name = name; this.body = body; } @@ -4227,7 +4424,7 @@ private APIreplaceServiceCIDRRequest(String name, V1beta1ServiceCIDR body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceServiceCIDRRequest */ - public APIreplaceServiceCIDRRequest pretty(String pretty) { + public APIreplaceServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4237,7 +4434,7 @@ public APIreplaceServiceCIDRRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceServiceCIDRRequest */ - public APIreplaceServiceCIDRRequest dryRun(String dryRun) { + public APIreplaceServiceCIDRRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4247,7 +4444,7 @@ public APIreplaceServiceCIDRRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceServiceCIDRRequest */ - public APIreplaceServiceCIDRRequest fieldManager(String fieldManager) { + public APIreplaceServiceCIDRRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -4257,7 +4454,7 @@ public APIreplaceServiceCIDRRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceServiceCIDRRequest */ - public APIreplaceServiceCIDRRequest fieldValidation(String fieldValidation) { + public APIreplaceServiceCIDRRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -4268,7 +4465,8 @@ public APIreplaceServiceCIDRRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4284,7 +4482,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ServiceCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4301,7 +4500,8 @@ public V1beta1ServiceCIDR execute() throws ApiException { * @return ApiResponse<V1beta1ServiceCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4318,7 +4518,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4337,17 +4538,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param body (required) * @return APIreplaceServiceCIDRRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceServiceCIDRRequest replaceServiceCIDR(String name, V1beta1ServiceCIDR body) { + public APIreplaceServiceCIDRRequest replaceServiceCIDR(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ServiceCIDR body) { return new APIreplaceServiceCIDRRequest(name, body); } - private okhttp3.Call replaceServiceCIDRStatusCall(String name, V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceServiceCIDRStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4413,7 +4615,7 @@ private okhttp3.Call replaceServiceCIDRStatusCall(String name, V1beta1ServiceCID } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceServiceCIDRStatusValidateBeforeCall(String name, V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceServiceCIDRStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceServiceCIDRStatus(Async)"); @@ -4429,13 +4631,13 @@ private okhttp3.Call replaceServiceCIDRStatusValidateBeforeCall(String name, V1b } - private ApiResponse replaceServiceCIDRStatusWithHttpInfo(String name, V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceServiceCIDRStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceServiceCIDRStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceServiceCIDRStatusAsync(String name, V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceServiceCIDRStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ServiceCIDR body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceServiceCIDRStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4444,14 +4646,20 @@ private okhttp3.Call replaceServiceCIDRStatusAsync(String name, V1beta1ServiceCI } public class APIreplaceServiceCIDRStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1beta1ServiceCIDR body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceServiceCIDRStatusRequest(String name, V1beta1ServiceCIDR body) { + private APIreplaceServiceCIDRStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ServiceCIDR body) { this.name = name; this.body = body; } @@ -4461,7 +4669,7 @@ private APIreplaceServiceCIDRStatusRequest(String name, V1beta1ServiceCIDR body) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceServiceCIDRStatusRequest */ - public APIreplaceServiceCIDRStatusRequest pretty(String pretty) { + public APIreplaceServiceCIDRStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4471,7 +4679,7 @@ public APIreplaceServiceCIDRStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceServiceCIDRStatusRequest */ - public APIreplaceServiceCIDRStatusRequest dryRun(String dryRun) { + public APIreplaceServiceCIDRStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4481,7 +4689,7 @@ public APIreplaceServiceCIDRStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceServiceCIDRStatusRequest */ - public APIreplaceServiceCIDRStatusRequest fieldManager(String fieldManager) { + public APIreplaceServiceCIDRStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -4491,7 +4699,7 @@ public APIreplaceServiceCIDRStatusRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceServiceCIDRStatusRequest */ - public APIreplaceServiceCIDRStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceServiceCIDRStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -4502,7 +4710,8 @@ public APIreplaceServiceCIDRStatusRequest fieldValidation(String fieldValidation * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4518,7 +4727,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ServiceCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4535,7 +4745,8 @@ public V1beta1ServiceCIDR execute() throws ApiException { * @return ApiResponse<V1beta1ServiceCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4552,7 +4763,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -4571,14 +4783,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param body (required) * @return APIreplaceServiceCIDRStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceServiceCIDRStatusRequest replaceServiceCIDRStatus(String name, V1beta1ServiceCIDR body) { + public APIreplaceServiceCIDRStatusRequest replaceServiceCIDRStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ServiceCIDR body) { return new APIreplaceServiceCIDRStatusRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeApi.java index 56da74f3ec..67f3ba627b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeApi.java @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1Api.java index a037f88425..e0004e527a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1Api.java @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createRuntimeClassCall(V1RuntimeClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createRuntimeClassCall(@jakarta.annotation.Nonnull V1RuntimeClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -141,7 +141,7 @@ private okhttp3.Call createRuntimeClassCall(V1RuntimeClass body, String pretty, } @SuppressWarnings("rawtypes") - private okhttp3.Call createRuntimeClassValidateBeforeCall(V1RuntimeClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createRuntimeClassValidateBeforeCall(@jakarta.annotation.Nonnull V1RuntimeClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createRuntimeClass(Async)"); @@ -152,13 +152,13 @@ private okhttp3.Call createRuntimeClassValidateBeforeCall(V1RuntimeClass body, S } - private ApiResponse createRuntimeClassWithHttpInfo(V1RuntimeClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createRuntimeClassWithHttpInfo(@jakarta.annotation.Nonnull V1RuntimeClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createRuntimeClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createRuntimeClassAsync(V1RuntimeClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createRuntimeClassAsync(@jakarta.annotation.Nonnull V1RuntimeClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createRuntimeClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -167,13 +167,18 @@ private okhttp3.Call createRuntimeClassAsync(V1RuntimeClass body, String pretty, } public class APIcreateRuntimeClassRequest { + @jakarta.annotation.Nonnull private final V1RuntimeClass body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateRuntimeClassRequest(V1RuntimeClass body) { + private APIcreateRuntimeClassRequest(@jakarta.annotation.Nonnull V1RuntimeClass body) { this.body = body; } @@ -182,7 +187,7 @@ private APIcreateRuntimeClassRequest(V1RuntimeClass body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateRuntimeClassRequest */ - public APIcreateRuntimeClassRequest pretty(String pretty) { + public APIcreateRuntimeClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -192,7 +197,7 @@ public APIcreateRuntimeClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateRuntimeClassRequest */ - public APIcreateRuntimeClassRequest dryRun(String dryRun) { + public APIcreateRuntimeClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -202,7 +207,7 @@ public APIcreateRuntimeClassRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateRuntimeClassRequest */ - public APIcreateRuntimeClassRequest fieldManager(String fieldManager) { + public APIcreateRuntimeClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -212,7 +217,7 @@ public APIcreateRuntimeClassRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateRuntimeClassRequest */ - public APIcreateRuntimeClassRequest fieldValidation(String fieldValidation) { + public APIcreateRuntimeClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -223,7 +228,8 @@ public APIcreateRuntimeClassRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -240,7 +246,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1RuntimeClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -258,7 +265,8 @@ public V1RuntimeClass execute() throws ApiException { * @return ApiResponse<V1RuntimeClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -276,7 +284,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -295,7 +304,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th * @param body (required) * @return APIcreateRuntimeClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -303,10 +313,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateRuntimeClassRequest createRuntimeClass(V1RuntimeClass body) { + public APIcreateRuntimeClassRequest createRuntimeClass(@jakarta.annotation.Nonnull V1RuntimeClass body) { return new APIcreateRuntimeClassRequest(body); } - private okhttp3.Call deleteCollectionRuntimeClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionRuntimeClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -411,19 +421,19 @@ private okhttp3.Call deleteCollectionRuntimeClassCall(String pretty, String _con } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionRuntimeClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionRuntimeClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionRuntimeClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionRuntimeClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionRuntimeClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionRuntimeClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionRuntimeClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionRuntimeClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionRuntimeClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -432,20 +442,35 @@ private okhttp3.Call deleteCollectionRuntimeClassAsync(String pretty, String _co } public class APIdeleteCollectionRuntimeClassRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionRuntimeClassRequest() { @@ -456,7 +481,7 @@ private APIdeleteCollectionRuntimeClassRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionRuntimeClassRequest */ - public APIdeleteCollectionRuntimeClassRequest pretty(String pretty) { + public APIdeleteCollectionRuntimeClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -466,7 +491,7 @@ public APIdeleteCollectionRuntimeClassRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionRuntimeClassRequest */ - public APIdeleteCollectionRuntimeClassRequest _continue(String _continue) { + public APIdeleteCollectionRuntimeClassRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -476,7 +501,7 @@ public APIdeleteCollectionRuntimeClassRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionRuntimeClassRequest */ - public APIdeleteCollectionRuntimeClassRequest dryRun(String dryRun) { + public APIdeleteCollectionRuntimeClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -486,7 +511,7 @@ public APIdeleteCollectionRuntimeClassRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionRuntimeClassRequest */ - public APIdeleteCollectionRuntimeClassRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionRuntimeClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -496,7 +521,7 @@ public APIdeleteCollectionRuntimeClassRequest fieldSelector(String fieldSelector * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionRuntimeClassRequest */ - public APIdeleteCollectionRuntimeClassRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionRuntimeClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -506,7 +531,7 @@ public APIdeleteCollectionRuntimeClassRequest gracePeriodSeconds(Integer gracePe * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionRuntimeClassRequest */ - public APIdeleteCollectionRuntimeClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionRuntimeClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -516,7 +541,7 @@ public APIdeleteCollectionRuntimeClassRequest ignoreStoreReadErrorWithClusterBre * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionRuntimeClassRequest */ - public APIdeleteCollectionRuntimeClassRequest labelSelector(String labelSelector) { + public APIdeleteCollectionRuntimeClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -526,7 +551,7 @@ public APIdeleteCollectionRuntimeClassRequest labelSelector(String labelSelector * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionRuntimeClassRequest */ - public APIdeleteCollectionRuntimeClassRequest limit(Integer limit) { + public APIdeleteCollectionRuntimeClassRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -536,7 +561,7 @@ public APIdeleteCollectionRuntimeClassRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionRuntimeClassRequest */ - public APIdeleteCollectionRuntimeClassRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionRuntimeClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -546,7 +571,7 @@ public APIdeleteCollectionRuntimeClassRequest orphanDependents(Boolean orphanDep * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionRuntimeClassRequest */ - public APIdeleteCollectionRuntimeClassRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionRuntimeClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -556,7 +581,7 @@ public APIdeleteCollectionRuntimeClassRequest propagationPolicy(String propagati * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionRuntimeClassRequest */ - public APIdeleteCollectionRuntimeClassRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionRuntimeClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -566,7 +591,7 @@ public APIdeleteCollectionRuntimeClassRequest resourceVersion(String resourceVer * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionRuntimeClassRequest */ - public APIdeleteCollectionRuntimeClassRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionRuntimeClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -576,7 +601,7 @@ public APIdeleteCollectionRuntimeClassRequest resourceVersionMatch(String resour * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionRuntimeClassRequest */ - public APIdeleteCollectionRuntimeClassRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionRuntimeClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -586,7 +611,7 @@ public APIdeleteCollectionRuntimeClassRequest sendInitialEvents(Boolean sendInit * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionRuntimeClassRequest */ - public APIdeleteCollectionRuntimeClassRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionRuntimeClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -596,7 +621,7 @@ public APIdeleteCollectionRuntimeClassRequest timeoutSeconds(Integer timeoutSeco * @param body (optional) * @return APIdeleteCollectionRuntimeClassRequest */ - public APIdeleteCollectionRuntimeClassRequest body(V1DeleteOptions body) { + public APIdeleteCollectionRuntimeClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -607,7 +632,8 @@ public APIdeleteCollectionRuntimeClassRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -622,7 +648,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -638,7 +665,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -654,7 +682,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -670,7 +699,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of RuntimeClass * @return APIdeleteCollectionRuntimeClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -679,7 +709,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionRuntimeClassRequest deleteCollectionRuntimeClass() { return new APIdeleteCollectionRuntimeClassRequest(); } - private okhttp3.Call deleteRuntimeClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteRuntimeClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -753,7 +783,7 @@ private okhttp3.Call deleteRuntimeClassCall(String name, String pretty, String d } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteRuntimeClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteRuntimeClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteRuntimeClass(Async)"); @@ -764,13 +794,13 @@ private okhttp3.Call deleteRuntimeClassValidateBeforeCall(String name, String pr } - private ApiResponse deleteRuntimeClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteRuntimeClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteRuntimeClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteRuntimeClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteRuntimeClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteRuntimeClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -779,16 +809,24 @@ private okhttp3.Call deleteRuntimeClassAsync(String name, String pretty, String } public class APIdeleteRuntimeClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteRuntimeClassRequest(String name) { + private APIdeleteRuntimeClassRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -797,7 +835,7 @@ private APIdeleteRuntimeClassRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteRuntimeClassRequest */ - public APIdeleteRuntimeClassRequest pretty(String pretty) { + public APIdeleteRuntimeClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -807,7 +845,7 @@ public APIdeleteRuntimeClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteRuntimeClassRequest */ - public APIdeleteRuntimeClassRequest dryRun(String dryRun) { + public APIdeleteRuntimeClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -817,7 +855,7 @@ public APIdeleteRuntimeClassRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteRuntimeClassRequest */ - public APIdeleteRuntimeClassRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteRuntimeClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -827,7 +865,7 @@ public APIdeleteRuntimeClassRequest gracePeriodSeconds(Integer gracePeriodSecond * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteRuntimeClassRequest */ - public APIdeleteRuntimeClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteRuntimeClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -837,7 +875,7 @@ public APIdeleteRuntimeClassRequest ignoreStoreReadErrorWithClusterBreakingPoten * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteRuntimeClassRequest */ - public APIdeleteRuntimeClassRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteRuntimeClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -847,7 +885,7 @@ public APIdeleteRuntimeClassRequest orphanDependents(Boolean orphanDependents) { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteRuntimeClassRequest */ - public APIdeleteRuntimeClassRequest propagationPolicy(String propagationPolicy) { + public APIdeleteRuntimeClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -857,7 +895,7 @@ public APIdeleteRuntimeClassRequest propagationPolicy(String propagationPolicy) * @param body (optional) * @return APIdeleteRuntimeClassRequest */ - public APIdeleteRuntimeClassRequest body(V1DeleteOptions body) { + public APIdeleteRuntimeClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -868,7 +906,8 @@ public APIdeleteRuntimeClassRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -884,7 +923,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -901,7 +941,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -918,7 +959,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -936,14 +978,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the RuntimeClass (required) * @return APIdeleteRuntimeClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteRuntimeClassRequest deleteRuntimeClass(String name) { + public APIdeleteRuntimeClassRequest deleteRuntimeClass(@jakarta.annotation.Nonnull String name) { return new APIdeleteRuntimeClassRequest(name); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -1025,7 +1068,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1040,7 +1084,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1056,7 +1101,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1072,7 +1118,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1088,7 +1135,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1097,7 +1145,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listRuntimeClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listRuntimeClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1192,19 +1240,19 @@ private okhttp3.Call listRuntimeClassCall(String pretty, Boolean allowWatchBookm } @SuppressWarnings("rawtypes") - private okhttp3.Call listRuntimeClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listRuntimeClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listRuntimeClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listRuntimeClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listRuntimeClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listRuntimeClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listRuntimeClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listRuntimeClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listRuntimeClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1213,16 +1261,27 @@ private okhttp3.Call listRuntimeClassAsync(String pretty, Boolean allowWatchBook } public class APIlistRuntimeClassRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistRuntimeClassRequest() { @@ -1233,7 +1292,7 @@ private APIlistRuntimeClassRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistRuntimeClassRequest */ - public APIlistRuntimeClassRequest pretty(String pretty) { + public APIlistRuntimeClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1243,7 +1302,7 @@ public APIlistRuntimeClassRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistRuntimeClassRequest */ - public APIlistRuntimeClassRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistRuntimeClassRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1253,7 +1312,7 @@ public APIlistRuntimeClassRequest allowWatchBookmarks(Boolean allowWatchBookmark * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistRuntimeClassRequest */ - public APIlistRuntimeClassRequest _continue(String _continue) { + public APIlistRuntimeClassRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1263,7 +1322,7 @@ public APIlistRuntimeClassRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistRuntimeClassRequest */ - public APIlistRuntimeClassRequest fieldSelector(String fieldSelector) { + public APIlistRuntimeClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1273,7 +1332,7 @@ public APIlistRuntimeClassRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistRuntimeClassRequest */ - public APIlistRuntimeClassRequest labelSelector(String labelSelector) { + public APIlistRuntimeClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1283,7 +1342,7 @@ public APIlistRuntimeClassRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistRuntimeClassRequest */ - public APIlistRuntimeClassRequest limit(Integer limit) { + public APIlistRuntimeClassRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1293,7 +1352,7 @@ public APIlistRuntimeClassRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistRuntimeClassRequest */ - public APIlistRuntimeClassRequest resourceVersion(String resourceVersion) { + public APIlistRuntimeClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1303,7 +1362,7 @@ public APIlistRuntimeClassRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistRuntimeClassRequest */ - public APIlistRuntimeClassRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistRuntimeClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1313,7 +1372,7 @@ public APIlistRuntimeClassRequest resourceVersionMatch(String resourceVersionMat * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistRuntimeClassRequest */ - public APIlistRuntimeClassRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistRuntimeClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1323,7 +1382,7 @@ public APIlistRuntimeClassRequest sendInitialEvents(Boolean sendInitialEvents) { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistRuntimeClassRequest */ - public APIlistRuntimeClassRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistRuntimeClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1333,7 +1392,7 @@ public APIlistRuntimeClassRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistRuntimeClassRequest */ - public APIlistRuntimeClassRequest watch(Boolean watch) { + public APIlistRuntimeClassRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1344,7 +1403,8 @@ public APIlistRuntimeClassRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1359,7 +1419,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1RuntimeClassList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1375,7 +1436,8 @@ public V1RuntimeClassList execute() throws ApiException { * @return ApiResponse<V1RuntimeClassList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1391,7 +1453,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1407,7 +1470,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * list or watch objects of kind RuntimeClass * @return APIlistRuntimeClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1416,7 +1480,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback public APIlistRuntimeClassRequest listRuntimeClass() { return new APIlistRuntimeClassRequest(); } - private okhttp3.Call patchRuntimeClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchRuntimeClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1486,7 +1550,7 @@ private okhttp3.Call patchRuntimeClassCall(String name, V1Patch body, String pre } @SuppressWarnings("rawtypes") - private okhttp3.Call patchRuntimeClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchRuntimeClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchRuntimeClass(Async)"); @@ -1502,13 +1566,13 @@ private okhttp3.Call patchRuntimeClassValidateBeforeCall(String name, V1Patch bo } - private ApiResponse patchRuntimeClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchRuntimeClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchRuntimeClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchRuntimeClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchRuntimeClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchRuntimeClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1517,15 +1581,22 @@ private okhttp3.Call patchRuntimeClassAsync(String name, V1Patch body, String pr } public class APIpatchRuntimeClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchRuntimeClassRequest(String name, V1Patch body) { + private APIpatchRuntimeClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -1535,7 +1606,7 @@ private APIpatchRuntimeClassRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchRuntimeClassRequest */ - public APIpatchRuntimeClassRequest pretty(String pretty) { + public APIpatchRuntimeClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1545,7 +1616,7 @@ public APIpatchRuntimeClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchRuntimeClassRequest */ - public APIpatchRuntimeClassRequest dryRun(String dryRun) { + public APIpatchRuntimeClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1555,7 +1626,7 @@ public APIpatchRuntimeClassRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchRuntimeClassRequest */ - public APIpatchRuntimeClassRequest fieldManager(String fieldManager) { + public APIpatchRuntimeClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1565,7 +1636,7 @@ public APIpatchRuntimeClassRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchRuntimeClassRequest */ - public APIpatchRuntimeClassRequest fieldValidation(String fieldValidation) { + public APIpatchRuntimeClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1575,7 +1646,7 @@ public APIpatchRuntimeClassRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchRuntimeClassRequest */ - public APIpatchRuntimeClassRequest force(Boolean force) { + public APIpatchRuntimeClassRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1586,7 +1657,8 @@ public APIpatchRuntimeClassRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1602,7 +1674,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1RuntimeClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1619,7 +1692,8 @@ public V1RuntimeClass execute() throws ApiException { * @return ApiResponse<V1RuntimeClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1636,7 +1710,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1655,17 +1730,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th * @param body (required) * @return APIpatchRuntimeClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchRuntimeClassRequest patchRuntimeClass(String name, V1Patch body) { + public APIpatchRuntimeClassRequest patchRuntimeClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchRuntimeClassRequest(name, body); } - private okhttp3.Call readRuntimeClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readRuntimeClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1718,7 +1794,7 @@ private okhttp3.Call readRuntimeClassCall(String name, String pretty, final ApiC } @SuppressWarnings("rawtypes") - private okhttp3.Call readRuntimeClassValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readRuntimeClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readRuntimeClass(Async)"); @@ -1729,13 +1805,13 @@ private okhttp3.Call readRuntimeClassValidateBeforeCall(String name, String pret } - private ApiResponse readRuntimeClassWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readRuntimeClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readRuntimeClassValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readRuntimeClassAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readRuntimeClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readRuntimeClassValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1744,10 +1820,12 @@ private okhttp3.Call readRuntimeClassAsync(String name, String pretty, final Api } public class APIreadRuntimeClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadRuntimeClassRequest(String name) { + private APIreadRuntimeClassRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -1756,7 +1834,7 @@ private APIreadRuntimeClassRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadRuntimeClassRequest */ - public APIreadRuntimeClassRequest pretty(String pretty) { + public APIreadRuntimeClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1767,7 +1845,8 @@ public APIreadRuntimeClassRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1782,7 +1861,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1RuntimeClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1798,7 +1878,8 @@ public V1RuntimeClass execute() throws ApiException { * @return ApiResponse<V1RuntimeClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1814,7 +1895,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1831,16 +1913,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th * @param name name of the RuntimeClass (required) * @return APIreadRuntimeClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadRuntimeClassRequest readRuntimeClass(String name) { + public APIreadRuntimeClassRequest readRuntimeClass(@jakarta.annotation.Nonnull String name) { return new APIreadRuntimeClassRequest(name); } - private okhttp3.Call replaceRuntimeClassCall(String name, V1RuntimeClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceRuntimeClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1RuntimeClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1906,7 +1989,7 @@ private okhttp3.Call replaceRuntimeClassCall(String name, V1RuntimeClass body, S } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceRuntimeClassValidateBeforeCall(String name, V1RuntimeClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceRuntimeClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1RuntimeClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceRuntimeClass(Async)"); @@ -1922,13 +2005,13 @@ private okhttp3.Call replaceRuntimeClassValidateBeforeCall(String name, V1Runtim } - private ApiResponse replaceRuntimeClassWithHttpInfo(String name, V1RuntimeClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceRuntimeClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1RuntimeClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceRuntimeClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceRuntimeClassAsync(String name, V1RuntimeClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceRuntimeClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1RuntimeClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceRuntimeClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1937,14 +2020,20 @@ private okhttp3.Call replaceRuntimeClassAsync(String name, V1RuntimeClass body, } public class APIreplaceRuntimeClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1RuntimeClass body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceRuntimeClassRequest(String name, V1RuntimeClass body) { + private APIreplaceRuntimeClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1RuntimeClass body) { this.name = name; this.body = body; } @@ -1954,7 +2043,7 @@ private APIreplaceRuntimeClassRequest(String name, V1RuntimeClass body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceRuntimeClassRequest */ - public APIreplaceRuntimeClassRequest pretty(String pretty) { + public APIreplaceRuntimeClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1964,7 +2053,7 @@ public APIreplaceRuntimeClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceRuntimeClassRequest */ - public APIreplaceRuntimeClassRequest dryRun(String dryRun) { + public APIreplaceRuntimeClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1974,7 +2063,7 @@ public APIreplaceRuntimeClassRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceRuntimeClassRequest */ - public APIreplaceRuntimeClassRequest fieldManager(String fieldManager) { + public APIreplaceRuntimeClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1984,7 +2073,7 @@ public APIreplaceRuntimeClassRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceRuntimeClassRequest */ - public APIreplaceRuntimeClassRequest fieldValidation(String fieldValidation) { + public APIreplaceRuntimeClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1995,7 +2084,8 @@ public APIreplaceRuntimeClassRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2011,7 +2101,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1RuntimeClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2028,7 +2119,8 @@ public V1RuntimeClass execute() throws ApiException { * @return ApiResponse<V1RuntimeClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2045,7 +2137,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2064,14 +2157,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th * @param body (required) * @return APIreplaceRuntimeClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceRuntimeClassRequest replaceRuntimeClass(String name, V1RuntimeClass body) { + public APIreplaceRuntimeClassRequest replaceRuntimeClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1RuntimeClass body) { return new APIreplaceRuntimeClassRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/OpenidApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/OpenidApi.java index b98bc5eb70..43ecc8627b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/OpenidApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/OpenidApi.java @@ -146,7 +146,8 @@ private APIgetServiceAccountIssuerOpenIDKeysetRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -161,7 +162,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -177,7 +179,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -193,7 +196,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -209,7 +213,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * get service account issuer OpenID JSON Web Key Set (contains public token verification keys) * @return APIgetServiceAccountIssuerOpenIDKeysetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyApi.java index 1419a54bc7..d137974bad 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyApi.java @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyV1Api.java index bc661d44dd..1d15879fd4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyV1Api.java @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createNamespacedPodDisruptionBudgetCall(String namespace, V1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPodDisruptionBudgetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodDisruptionBudget body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -142,7 +142,7 @@ private okhttp3.Call createNamespacedPodDisruptionBudgetCall(String namespace, V } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedPodDisruptionBudgetValidateBeforeCall(String namespace, V1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPodDisruptionBudgetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodDisruptionBudget body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedPodDisruptionBudget(Async)"); @@ -158,13 +158,13 @@ private okhttp3.Call createNamespacedPodDisruptionBudgetValidateBeforeCall(Strin } - private ApiResponse createNamespacedPodDisruptionBudgetWithHttpInfo(String namespace, V1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedPodDisruptionBudgetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodDisruptionBudget body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedPodDisruptionBudgetAsync(String namespace, V1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPodDisruptionBudgetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodDisruptionBudget body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -173,14 +173,20 @@ private okhttp3.Call createNamespacedPodDisruptionBudgetAsync(String namespace, } public class APIcreateNamespacedPodDisruptionBudgetRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1PodDisruptionBudget body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedPodDisruptionBudgetRequest(String namespace, V1PodDisruptionBudget body) { + private APIcreateNamespacedPodDisruptionBudgetRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodDisruptionBudget body) { this.namespace = namespace; this.body = body; } @@ -190,7 +196,7 @@ private APIcreateNamespacedPodDisruptionBudgetRequest(String namespace, V1PodDis * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedPodDisruptionBudgetRequest */ - public APIcreateNamespacedPodDisruptionBudgetRequest pretty(String pretty) { + public APIcreateNamespacedPodDisruptionBudgetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -200,7 +206,7 @@ public APIcreateNamespacedPodDisruptionBudgetRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedPodDisruptionBudgetRequest */ - public APIcreateNamespacedPodDisruptionBudgetRequest dryRun(String dryRun) { + public APIcreateNamespacedPodDisruptionBudgetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -210,7 +216,7 @@ public APIcreateNamespacedPodDisruptionBudgetRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedPodDisruptionBudgetRequest */ - public APIcreateNamespacedPodDisruptionBudgetRequest fieldManager(String fieldManager) { + public APIcreateNamespacedPodDisruptionBudgetRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -220,7 +226,7 @@ public APIcreateNamespacedPodDisruptionBudgetRequest fieldManager(String fieldMa * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedPodDisruptionBudgetRequest */ - public APIcreateNamespacedPodDisruptionBudgetRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedPodDisruptionBudgetRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -231,7 +237,8 @@ public APIcreateNamespacedPodDisruptionBudgetRequest fieldValidation(String fiel * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -248,7 +255,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PodDisruptionBudget * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -266,7 +274,8 @@ public V1PodDisruptionBudget execute() throws ApiException { * @return ApiResponse<V1PodDisruptionBudget> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -284,7 +293,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -304,7 +314,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callb * @param body (required) * @return APIcreateNamespacedPodDisruptionBudgetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -312,10 +323,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callb
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedPodDisruptionBudgetRequest createNamespacedPodDisruptionBudget(String namespace, V1PodDisruptionBudget body) { + public APIcreateNamespacedPodDisruptionBudgetRequest createNamespacedPodDisruptionBudget(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodDisruptionBudget body) { return new APIcreateNamespacedPodDisruptionBudgetRequest(namespace, body); } - private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -421,7 +432,7 @@ private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetCall(String na } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPodDisruptionBudget(Async)"); @@ -432,13 +443,13 @@ private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetValidateBefore } - private ApiResponse deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -447,24 +458,40 @@ private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetAsync(String n } public class APIdeleteCollectionNamespacedPodDisruptionBudgetRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedPodDisruptionBudgetRequest(String namespace) { + private APIdeleteCollectionNamespacedPodDisruptionBudgetRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -473,7 +500,7 @@ private APIdeleteCollectionNamespacedPodDisruptionBudgetRequest(String namespace * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedPodDisruptionBudgetRequest */ - public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -483,7 +510,7 @@ public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest pretty(String pre * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedPodDisruptionBudgetRequest */ - public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -493,7 +520,7 @@ public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest _continue(String * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedPodDisruptionBudgetRequest */ - public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -503,7 +530,7 @@ public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest dryRun(String dry * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedPodDisruptionBudgetRequest */ - public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -513,7 +540,7 @@ public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest fieldSelector(Str * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedPodDisruptionBudgetRequest */ - public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -523,7 +550,7 @@ public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest gracePeriodSecond * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedPodDisruptionBudgetRequest */ - public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -533,7 +560,7 @@ public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest ignoreStoreReadEr * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedPodDisruptionBudgetRequest */ - public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -543,7 +570,7 @@ public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest labelSelector(Str * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedPodDisruptionBudgetRequest */ - public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -553,7 +580,7 @@ public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest limit(Integer lim * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedPodDisruptionBudgetRequest */ - public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -563,7 +590,7 @@ public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest orphanDependents( * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedPodDisruptionBudgetRequest */ - public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -573,7 +600,7 @@ public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest propagationPolicy * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedPodDisruptionBudgetRequest */ - public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -583,7 +610,7 @@ public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest resourceVersion(S * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedPodDisruptionBudgetRequest */ - public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -593,7 +620,7 @@ public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest resourceVersionMa * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedPodDisruptionBudgetRequest */ - public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -603,7 +630,7 @@ public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest sendInitialEvents * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedPodDisruptionBudgetRequest */ - public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -613,7 +640,7 @@ public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest timeoutSeconds(In * @param body (optional) * @return APIdeleteCollectionNamespacedPodDisruptionBudgetRequest */ - public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -624,7 +651,8 @@ public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest body(V1DeleteOpti * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -639,7 +667,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -655,7 +684,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -671,7 +701,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -688,16 +719,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedPodDisruptionBudgetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest deleteCollectionNamespacedPodDisruptionBudget(String namespace) { + public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest deleteCollectionNamespacedPodDisruptionBudget(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedPodDisruptionBudgetRequest(namespace); } - private okhttp3.Call deleteNamespacedPodDisruptionBudgetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedPodDisruptionBudgetCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -772,7 +804,7 @@ private okhttp3.Call deleteNamespacedPodDisruptionBudgetCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedPodDisruptionBudgetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedPodDisruptionBudgetValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedPodDisruptionBudget(Async)"); @@ -788,13 +820,13 @@ private okhttp3.Call deleteNamespacedPodDisruptionBudgetValidateBeforeCall(Strin } - private ApiResponse deleteNamespacedPodDisruptionBudgetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedPodDisruptionBudgetWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedPodDisruptionBudgetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedPodDisruptionBudgetAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -803,17 +835,26 @@ private okhttp3.Call deleteNamespacedPodDisruptionBudgetAsync(String name, Strin } public class APIdeleteNamespacedPodDisruptionBudgetRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedPodDisruptionBudgetRequest(String name, String namespace) { + private APIdeleteNamespacedPodDisruptionBudgetRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -823,7 +864,7 @@ private APIdeleteNamespacedPodDisruptionBudgetRequest(String name, String namesp * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedPodDisruptionBudgetRequest */ - public APIdeleteNamespacedPodDisruptionBudgetRequest pretty(String pretty) { + public APIdeleteNamespacedPodDisruptionBudgetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -833,7 +874,7 @@ public APIdeleteNamespacedPodDisruptionBudgetRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedPodDisruptionBudgetRequest */ - public APIdeleteNamespacedPodDisruptionBudgetRequest dryRun(String dryRun) { + public APIdeleteNamespacedPodDisruptionBudgetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -843,7 +884,7 @@ public APIdeleteNamespacedPodDisruptionBudgetRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedPodDisruptionBudgetRequest */ - public APIdeleteNamespacedPodDisruptionBudgetRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedPodDisruptionBudgetRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -853,7 +894,7 @@ public APIdeleteNamespacedPodDisruptionBudgetRequest gracePeriodSeconds(Integer * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedPodDisruptionBudgetRequest */ - public APIdeleteNamespacedPodDisruptionBudgetRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedPodDisruptionBudgetRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -863,7 +904,7 @@ public APIdeleteNamespacedPodDisruptionBudgetRequest ignoreStoreReadErrorWithClu * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedPodDisruptionBudgetRequest */ - public APIdeleteNamespacedPodDisruptionBudgetRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedPodDisruptionBudgetRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -873,7 +914,7 @@ public APIdeleteNamespacedPodDisruptionBudgetRequest orphanDependents(Boolean or * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedPodDisruptionBudgetRequest */ - public APIdeleteNamespacedPodDisruptionBudgetRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedPodDisruptionBudgetRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -883,7 +924,7 @@ public APIdeleteNamespacedPodDisruptionBudgetRequest propagationPolicy(String pr * @param body (optional) * @return APIdeleteNamespacedPodDisruptionBudgetRequest */ - public APIdeleteNamespacedPodDisruptionBudgetRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedPodDisruptionBudgetRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -894,7 +935,8 @@ public APIdeleteNamespacedPodDisruptionBudgetRequest body(V1DeleteOptions body) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -910,7 +952,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -927,7 +970,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -944,7 +988,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -963,14 +1008,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedPodDisruptionBudgetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedPodDisruptionBudgetRequest deleteNamespacedPodDisruptionBudget(String name, String namespace) { + public APIdeleteNamespacedPodDisruptionBudgetRequest deleteNamespacedPodDisruptionBudget(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedPodDisruptionBudgetRequest(name, namespace); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -1052,7 +1098,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1067,7 +1114,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1083,7 +1131,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1099,7 +1148,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1115,7 +1165,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1124,7 +1175,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listNamespacedPodDisruptionBudgetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPodDisruptionBudgetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1220,7 +1271,7 @@ private okhttp3.Call listNamespacedPodDisruptionBudgetCall(String namespace, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedPodDisruptionBudgetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPodDisruptionBudgetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPodDisruptionBudget(Async)"); @@ -1231,13 +1282,13 @@ private okhttp3.Call listNamespacedPodDisruptionBudgetValidateBeforeCall(String } - private ApiResponse listNamespacedPodDisruptionBudgetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedPodDisruptionBudgetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedPodDisruptionBudgetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPodDisruptionBudgetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1246,20 +1297,32 @@ private okhttp3.Call listNamespacedPodDisruptionBudgetAsync(String namespace, St } public class APIlistNamespacedPodDisruptionBudgetRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedPodDisruptionBudgetRequest(String namespace) { + private APIlistNamespacedPodDisruptionBudgetRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -1268,7 +1331,7 @@ private APIlistNamespacedPodDisruptionBudgetRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedPodDisruptionBudgetRequest */ - public APIlistNamespacedPodDisruptionBudgetRequest pretty(String pretty) { + public APIlistNamespacedPodDisruptionBudgetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1278,7 +1341,7 @@ public APIlistNamespacedPodDisruptionBudgetRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedPodDisruptionBudgetRequest */ - public APIlistNamespacedPodDisruptionBudgetRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedPodDisruptionBudgetRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1288,7 +1351,7 @@ public APIlistNamespacedPodDisruptionBudgetRequest allowWatchBookmarks(Boolean a * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedPodDisruptionBudgetRequest */ - public APIlistNamespacedPodDisruptionBudgetRequest _continue(String _continue) { + public APIlistNamespacedPodDisruptionBudgetRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1298,7 +1361,7 @@ public APIlistNamespacedPodDisruptionBudgetRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedPodDisruptionBudgetRequest */ - public APIlistNamespacedPodDisruptionBudgetRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedPodDisruptionBudgetRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1308,7 +1371,7 @@ public APIlistNamespacedPodDisruptionBudgetRequest fieldSelector(String fieldSel * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedPodDisruptionBudgetRequest */ - public APIlistNamespacedPodDisruptionBudgetRequest labelSelector(String labelSelector) { + public APIlistNamespacedPodDisruptionBudgetRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1318,7 +1381,7 @@ public APIlistNamespacedPodDisruptionBudgetRequest labelSelector(String labelSel * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedPodDisruptionBudgetRequest */ - public APIlistNamespacedPodDisruptionBudgetRequest limit(Integer limit) { + public APIlistNamespacedPodDisruptionBudgetRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1328,7 +1391,7 @@ public APIlistNamespacedPodDisruptionBudgetRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedPodDisruptionBudgetRequest */ - public APIlistNamespacedPodDisruptionBudgetRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedPodDisruptionBudgetRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1338,7 +1401,7 @@ public APIlistNamespacedPodDisruptionBudgetRequest resourceVersion(String resour * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedPodDisruptionBudgetRequest */ - public APIlistNamespacedPodDisruptionBudgetRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedPodDisruptionBudgetRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1348,7 +1411,7 @@ public APIlistNamespacedPodDisruptionBudgetRequest resourceVersionMatch(String r * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedPodDisruptionBudgetRequest */ - public APIlistNamespacedPodDisruptionBudgetRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedPodDisruptionBudgetRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1358,7 +1421,7 @@ public APIlistNamespacedPodDisruptionBudgetRequest sendInitialEvents(Boolean sen * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedPodDisruptionBudgetRequest */ - public APIlistNamespacedPodDisruptionBudgetRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedPodDisruptionBudgetRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1368,7 +1431,7 @@ public APIlistNamespacedPodDisruptionBudgetRequest timeoutSeconds(Integer timeou * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedPodDisruptionBudgetRequest */ - public APIlistNamespacedPodDisruptionBudgetRequest watch(Boolean watch) { + public APIlistNamespacedPodDisruptionBudgetRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1379,7 +1442,8 @@ public APIlistNamespacedPodDisruptionBudgetRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1394,7 +1458,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PodDisruptionBudgetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1410,7 +1475,8 @@ public V1PodDisruptionBudgetList execute() throws ApiException { * @return ApiResponse<V1PodDisruptionBudgetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1426,7 +1492,8 @@ public ApiResponse executeWithHttpInfo() throws ApiEx * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1443,16 +1510,17 @@ public okhttp3.Call executeAsync(final ApiCallback _c * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedPodDisruptionBudgetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedPodDisruptionBudgetRequest listNamespacedPodDisruptionBudget(String namespace) { + public APIlistNamespacedPodDisruptionBudgetRequest listNamespacedPodDisruptionBudget(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedPodDisruptionBudgetRequest(namespace); } - private okhttp3.Call listPodDisruptionBudgetForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPodDisruptionBudgetForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1547,19 +1615,19 @@ private okhttp3.Call listPodDisruptionBudgetForAllNamespacesCall(Boolean allowWa } @SuppressWarnings("rawtypes") - private okhttp3.Call listPodDisruptionBudgetForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPodDisruptionBudgetForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listPodDisruptionBudgetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listPodDisruptionBudgetForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listPodDisruptionBudgetForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listPodDisruptionBudgetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listPodDisruptionBudgetForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPodDisruptionBudgetForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listPodDisruptionBudgetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1568,16 +1636,27 @@ private okhttp3.Call listPodDisruptionBudgetForAllNamespacesAsync(Boolean allowW } public class APIlistPodDisruptionBudgetForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistPodDisruptionBudgetForAllNamespacesRequest() { @@ -1588,7 +1667,7 @@ private APIlistPodDisruptionBudgetForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistPodDisruptionBudgetForAllNamespacesRequest */ - public APIlistPodDisruptionBudgetForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistPodDisruptionBudgetForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1598,7 +1677,7 @@ public APIlistPodDisruptionBudgetForAllNamespacesRequest allowWatchBookmarks(Boo * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistPodDisruptionBudgetForAllNamespacesRequest */ - public APIlistPodDisruptionBudgetForAllNamespacesRequest _continue(String _continue) { + public APIlistPodDisruptionBudgetForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1608,7 +1687,7 @@ public APIlistPodDisruptionBudgetForAllNamespacesRequest _continue(String _conti * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistPodDisruptionBudgetForAllNamespacesRequest */ - public APIlistPodDisruptionBudgetForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistPodDisruptionBudgetForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1618,7 +1697,7 @@ public APIlistPodDisruptionBudgetForAllNamespacesRequest fieldSelector(String fi * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistPodDisruptionBudgetForAllNamespacesRequest */ - public APIlistPodDisruptionBudgetForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistPodDisruptionBudgetForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1628,7 +1707,7 @@ public APIlistPodDisruptionBudgetForAllNamespacesRequest labelSelector(String la * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistPodDisruptionBudgetForAllNamespacesRequest */ - public APIlistPodDisruptionBudgetForAllNamespacesRequest limit(Integer limit) { + public APIlistPodDisruptionBudgetForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1638,7 +1717,7 @@ public APIlistPodDisruptionBudgetForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistPodDisruptionBudgetForAllNamespacesRequest */ - public APIlistPodDisruptionBudgetForAllNamespacesRequest pretty(String pretty) { + public APIlistPodDisruptionBudgetForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1648,7 +1727,7 @@ public APIlistPodDisruptionBudgetForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistPodDisruptionBudgetForAllNamespacesRequest */ - public APIlistPodDisruptionBudgetForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistPodDisruptionBudgetForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1658,7 +1737,7 @@ public APIlistPodDisruptionBudgetForAllNamespacesRequest resourceVersion(String * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistPodDisruptionBudgetForAllNamespacesRequest */ - public APIlistPodDisruptionBudgetForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistPodDisruptionBudgetForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1668,7 +1747,7 @@ public APIlistPodDisruptionBudgetForAllNamespacesRequest resourceVersionMatch(St * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistPodDisruptionBudgetForAllNamespacesRequest */ - public APIlistPodDisruptionBudgetForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistPodDisruptionBudgetForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1678,7 +1757,7 @@ public APIlistPodDisruptionBudgetForAllNamespacesRequest sendInitialEvents(Boole * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistPodDisruptionBudgetForAllNamespacesRequest */ - public APIlistPodDisruptionBudgetForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistPodDisruptionBudgetForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1688,7 +1767,7 @@ public APIlistPodDisruptionBudgetForAllNamespacesRequest timeoutSeconds(Integer * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistPodDisruptionBudgetForAllNamespacesRequest */ - public APIlistPodDisruptionBudgetForAllNamespacesRequest watch(Boolean watch) { + public APIlistPodDisruptionBudgetForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1699,7 +1778,8 @@ public APIlistPodDisruptionBudgetForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1714,7 +1794,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PodDisruptionBudgetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1730,7 +1811,8 @@ public V1PodDisruptionBudgetList execute() throws ApiException { * @return ApiResponse<V1PodDisruptionBudgetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1746,7 +1828,8 @@ public ApiResponse executeWithHttpInfo() throws ApiEx * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1762,7 +1845,8 @@ public okhttp3.Call executeAsync(final ApiCallback _c * list or watch objects of kind PodDisruptionBudget * @return APIlistPodDisruptionBudgetForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1771,7 +1855,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c public APIlistPodDisruptionBudgetForAllNamespacesRequest listPodDisruptionBudgetForAllNamespaces() { return new APIlistPodDisruptionBudgetForAllNamespacesRequest(); } - private okhttp3.Call patchNamespacedPodDisruptionBudgetCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPodDisruptionBudgetCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1842,7 +1926,7 @@ private okhttp3.Call patchNamespacedPodDisruptionBudgetCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedPodDisruptionBudgetValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPodDisruptionBudgetValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPodDisruptionBudget(Async)"); @@ -1863,13 +1947,13 @@ private okhttp3.Call patchNamespacedPodDisruptionBudgetValidateBeforeCall(String } - private ApiResponse patchNamespacedPodDisruptionBudgetWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedPodDisruptionBudgetWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedPodDisruptionBudgetAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPodDisruptionBudgetAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1878,16 +1962,24 @@ private okhttp3.Call patchNamespacedPodDisruptionBudgetAsync(String name, String } public class APIpatchNamespacedPodDisruptionBudgetRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedPodDisruptionBudgetRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedPodDisruptionBudgetRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -1898,7 +1990,7 @@ private APIpatchNamespacedPodDisruptionBudgetRequest(String name, String namespa * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedPodDisruptionBudgetRequest */ - public APIpatchNamespacedPodDisruptionBudgetRequest pretty(String pretty) { + public APIpatchNamespacedPodDisruptionBudgetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1908,7 +2000,7 @@ public APIpatchNamespacedPodDisruptionBudgetRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedPodDisruptionBudgetRequest */ - public APIpatchNamespacedPodDisruptionBudgetRequest dryRun(String dryRun) { + public APIpatchNamespacedPodDisruptionBudgetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1918,7 +2010,7 @@ public APIpatchNamespacedPodDisruptionBudgetRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedPodDisruptionBudgetRequest */ - public APIpatchNamespacedPodDisruptionBudgetRequest fieldManager(String fieldManager) { + public APIpatchNamespacedPodDisruptionBudgetRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1928,7 +2020,7 @@ public APIpatchNamespacedPodDisruptionBudgetRequest fieldManager(String fieldMan * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedPodDisruptionBudgetRequest */ - public APIpatchNamespacedPodDisruptionBudgetRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedPodDisruptionBudgetRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1938,7 +2030,7 @@ public APIpatchNamespacedPodDisruptionBudgetRequest fieldValidation(String field * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedPodDisruptionBudgetRequest */ - public APIpatchNamespacedPodDisruptionBudgetRequest force(Boolean force) { + public APIpatchNamespacedPodDisruptionBudgetRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1949,7 +2041,8 @@ public APIpatchNamespacedPodDisruptionBudgetRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1965,7 +2058,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PodDisruptionBudget * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1982,7 +2076,8 @@ public V1PodDisruptionBudget execute() throws ApiException { * @return ApiResponse<V1PodDisruptionBudget> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1999,7 +2094,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2019,17 +2115,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callb * @param body (required) * @return APIpatchNamespacedPodDisruptionBudgetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedPodDisruptionBudgetRequest patchNamespacedPodDisruptionBudget(String name, String namespace, V1Patch body) { + public APIpatchNamespacedPodDisruptionBudgetRequest patchNamespacedPodDisruptionBudget(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedPodDisruptionBudgetRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedPodDisruptionBudgetStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPodDisruptionBudgetStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2100,7 +2197,7 @@ private okhttp3.Call patchNamespacedPodDisruptionBudgetStatusCall(String name, S } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedPodDisruptionBudgetStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPodDisruptionBudgetStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPodDisruptionBudgetStatus(Async)"); @@ -2121,13 +2218,13 @@ private okhttp3.Call patchNamespacedPodDisruptionBudgetStatusValidateBeforeCall( } - private ApiResponse patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPodDisruptionBudgetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedPodDisruptionBudgetStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedPodDisruptionBudgetStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPodDisruptionBudgetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2136,16 +2233,24 @@ private okhttp3.Call patchNamespacedPodDisruptionBudgetStatusAsync(String name, } public class APIpatchNamespacedPodDisruptionBudgetStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedPodDisruptionBudgetStatusRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedPodDisruptionBudgetStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -2156,7 +2261,7 @@ private APIpatchNamespacedPodDisruptionBudgetStatusRequest(String name, String n * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedPodDisruptionBudgetStatusRequest */ - public APIpatchNamespacedPodDisruptionBudgetStatusRequest pretty(String pretty) { + public APIpatchNamespacedPodDisruptionBudgetStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2166,7 +2271,7 @@ public APIpatchNamespacedPodDisruptionBudgetStatusRequest pretty(String pretty) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedPodDisruptionBudgetStatusRequest */ - public APIpatchNamespacedPodDisruptionBudgetStatusRequest dryRun(String dryRun) { + public APIpatchNamespacedPodDisruptionBudgetStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2176,7 +2281,7 @@ public APIpatchNamespacedPodDisruptionBudgetStatusRequest dryRun(String dryRun) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedPodDisruptionBudgetStatusRequest */ - public APIpatchNamespacedPodDisruptionBudgetStatusRequest fieldManager(String fieldManager) { + public APIpatchNamespacedPodDisruptionBudgetStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2186,7 +2291,7 @@ public APIpatchNamespacedPodDisruptionBudgetStatusRequest fieldManager(String fi * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedPodDisruptionBudgetStatusRequest */ - public APIpatchNamespacedPodDisruptionBudgetStatusRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedPodDisruptionBudgetStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2196,7 +2301,7 @@ public APIpatchNamespacedPodDisruptionBudgetStatusRequest fieldValidation(String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedPodDisruptionBudgetStatusRequest */ - public APIpatchNamespacedPodDisruptionBudgetStatusRequest force(Boolean force) { + public APIpatchNamespacedPodDisruptionBudgetStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -2207,7 +2312,8 @@ public APIpatchNamespacedPodDisruptionBudgetStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2223,7 +2329,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PodDisruptionBudget * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2240,7 +2347,8 @@ public V1PodDisruptionBudget execute() throws ApiException { * @return ApiResponse<V1PodDisruptionBudget> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2257,7 +2365,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2277,17 +2386,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callb * @param body (required) * @return APIpatchNamespacedPodDisruptionBudgetStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedPodDisruptionBudgetStatusRequest patchNamespacedPodDisruptionBudgetStatus(String name, String namespace, V1Patch body) { + public APIpatchNamespacedPodDisruptionBudgetStatusRequest patchNamespacedPodDisruptionBudgetStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedPodDisruptionBudgetStatusRequest(name, namespace, body); } - private okhttp3.Call readNamespacedPodDisruptionBudgetCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodDisruptionBudgetCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2341,7 +2451,7 @@ private okhttp3.Call readNamespacedPodDisruptionBudgetCall(String name, String n } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedPodDisruptionBudgetValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodDisruptionBudgetValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPodDisruptionBudget(Async)"); @@ -2357,13 +2467,13 @@ private okhttp3.Call readNamespacedPodDisruptionBudgetValidateBeforeCall(String } - private ApiResponse readNamespacedPodDisruptionBudgetWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedPodDisruptionBudgetWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedPodDisruptionBudgetAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodDisruptionBudgetAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2372,11 +2482,14 @@ private okhttp3.Call readNamespacedPodDisruptionBudgetAsync(String name, String } public class APIreadNamespacedPodDisruptionBudgetRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedPodDisruptionBudgetRequest(String name, String namespace) { + private APIreadNamespacedPodDisruptionBudgetRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -2386,7 +2499,7 @@ private APIreadNamespacedPodDisruptionBudgetRequest(String name, String namespac * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedPodDisruptionBudgetRequest */ - public APIreadNamespacedPodDisruptionBudgetRequest pretty(String pretty) { + public APIreadNamespacedPodDisruptionBudgetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2397,7 +2510,8 @@ public APIreadNamespacedPodDisruptionBudgetRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2412,7 +2526,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PodDisruptionBudget * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2428,7 +2543,8 @@ public V1PodDisruptionBudget execute() throws ApiException { * @return ApiResponse<V1PodDisruptionBudget> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2444,7 +2560,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2462,16 +2579,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callb * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedPodDisruptionBudgetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedPodDisruptionBudgetRequest readNamespacedPodDisruptionBudget(String name, String namespace) { + public APIreadNamespacedPodDisruptionBudgetRequest readNamespacedPodDisruptionBudget(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedPodDisruptionBudgetRequest(name, namespace); } - private okhttp3.Call readNamespacedPodDisruptionBudgetStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodDisruptionBudgetStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2525,7 +2643,7 @@ private okhttp3.Call readNamespacedPodDisruptionBudgetStatusCall(String name, St } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedPodDisruptionBudgetStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodDisruptionBudgetStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPodDisruptionBudgetStatus(Async)"); @@ -2541,13 +2659,13 @@ private okhttp3.Call readNamespacedPodDisruptionBudgetStatusValidateBeforeCall(S } - private ApiResponse readNamespacedPodDisruptionBudgetStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedPodDisruptionBudgetStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodDisruptionBudgetStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedPodDisruptionBudgetStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodDisruptionBudgetStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodDisruptionBudgetStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2556,11 +2674,14 @@ private okhttp3.Call readNamespacedPodDisruptionBudgetStatusAsync(String name, S } public class APIreadNamespacedPodDisruptionBudgetStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedPodDisruptionBudgetStatusRequest(String name, String namespace) { + private APIreadNamespacedPodDisruptionBudgetStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -2570,7 +2691,7 @@ private APIreadNamespacedPodDisruptionBudgetStatusRequest(String name, String na * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedPodDisruptionBudgetStatusRequest */ - public APIreadNamespacedPodDisruptionBudgetStatusRequest pretty(String pretty) { + public APIreadNamespacedPodDisruptionBudgetStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2581,7 +2702,8 @@ public APIreadNamespacedPodDisruptionBudgetStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2596,7 +2718,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PodDisruptionBudget * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2612,7 +2735,8 @@ public V1PodDisruptionBudget execute() throws ApiException { * @return ApiResponse<V1PodDisruptionBudget> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2628,7 +2752,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2646,16 +2771,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callb * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedPodDisruptionBudgetStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedPodDisruptionBudgetStatusRequest readNamespacedPodDisruptionBudgetStatus(String name, String namespace) { + public APIreadNamespacedPodDisruptionBudgetStatusRequest readNamespacedPodDisruptionBudgetStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedPodDisruptionBudgetStatusRequest(name, namespace); } - private okhttp3.Call replaceNamespacedPodDisruptionBudgetCall(String name, String namespace, V1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodDisruptionBudgetCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodDisruptionBudget body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2722,7 +2848,7 @@ private okhttp3.Call replaceNamespacedPodDisruptionBudgetCall(String name, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedPodDisruptionBudgetValidateBeforeCall(String name, String namespace, V1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodDisruptionBudgetValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodDisruptionBudget body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPodDisruptionBudget(Async)"); @@ -2743,13 +2869,13 @@ private okhttp3.Call replaceNamespacedPodDisruptionBudgetValidateBeforeCall(Stri } - private ApiResponse replaceNamespacedPodDisruptionBudgetWithHttpInfo(String name, String namespace, V1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedPodDisruptionBudgetWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodDisruptionBudget body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedPodDisruptionBudgetAsync(String name, String namespace, V1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodDisruptionBudgetAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodDisruptionBudget body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2758,15 +2884,22 @@ private okhttp3.Call replaceNamespacedPodDisruptionBudgetAsync(String name, Stri } public class APIreplaceNamespacedPodDisruptionBudgetRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1PodDisruptionBudget body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedPodDisruptionBudgetRequest(String name, String namespace, V1PodDisruptionBudget body) { + private APIreplaceNamespacedPodDisruptionBudgetRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodDisruptionBudget body) { this.name = name; this.namespace = namespace; this.body = body; @@ -2777,7 +2910,7 @@ private APIreplaceNamespacedPodDisruptionBudgetRequest(String name, String names * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedPodDisruptionBudgetRequest */ - public APIreplaceNamespacedPodDisruptionBudgetRequest pretty(String pretty) { + public APIreplaceNamespacedPodDisruptionBudgetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2787,7 +2920,7 @@ public APIreplaceNamespacedPodDisruptionBudgetRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedPodDisruptionBudgetRequest */ - public APIreplaceNamespacedPodDisruptionBudgetRequest dryRun(String dryRun) { + public APIreplaceNamespacedPodDisruptionBudgetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2797,7 +2930,7 @@ public APIreplaceNamespacedPodDisruptionBudgetRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedPodDisruptionBudgetRequest */ - public APIreplaceNamespacedPodDisruptionBudgetRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedPodDisruptionBudgetRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2807,7 +2940,7 @@ public APIreplaceNamespacedPodDisruptionBudgetRequest fieldManager(String fieldM * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedPodDisruptionBudgetRequest */ - public APIreplaceNamespacedPodDisruptionBudgetRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedPodDisruptionBudgetRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2818,7 +2951,8 @@ public APIreplaceNamespacedPodDisruptionBudgetRequest fieldValidation(String fie * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2834,7 +2968,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PodDisruptionBudget * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2851,7 +2986,8 @@ public V1PodDisruptionBudget execute() throws ApiException { * @return ApiResponse<V1PodDisruptionBudget> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2868,7 +3004,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2888,17 +3025,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callb * @param body (required) * @return APIreplaceNamespacedPodDisruptionBudgetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedPodDisruptionBudgetRequest replaceNamespacedPodDisruptionBudget(String name, String namespace, V1PodDisruptionBudget body) { + public APIreplaceNamespacedPodDisruptionBudgetRequest replaceNamespacedPodDisruptionBudget(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodDisruptionBudget body) { return new APIreplaceNamespacedPodDisruptionBudgetRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedPodDisruptionBudgetStatusCall(String name, String namespace, V1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodDisruptionBudgetStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodDisruptionBudget body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2965,7 +3103,7 @@ private okhttp3.Call replaceNamespacedPodDisruptionBudgetStatusCall(String name, } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedPodDisruptionBudgetStatusValidateBeforeCall(String name, String namespace, V1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodDisruptionBudgetStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodDisruptionBudget body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPodDisruptionBudgetStatus(Async)"); @@ -2986,13 +3124,13 @@ private okhttp3.Call replaceNamespacedPodDisruptionBudgetStatusValidateBeforeCal } - private ApiResponse replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(String name, String namespace, V1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodDisruptionBudget body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPodDisruptionBudgetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedPodDisruptionBudgetStatusAsync(String name, String namespace, V1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodDisruptionBudgetStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodDisruptionBudget body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPodDisruptionBudgetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3001,15 +3139,22 @@ private okhttp3.Call replaceNamespacedPodDisruptionBudgetStatusAsync(String name } public class APIreplaceNamespacedPodDisruptionBudgetStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1PodDisruptionBudget body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedPodDisruptionBudgetStatusRequest(String name, String namespace, V1PodDisruptionBudget body) { + private APIreplaceNamespacedPodDisruptionBudgetStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodDisruptionBudget body) { this.name = name; this.namespace = namespace; this.body = body; @@ -3020,7 +3165,7 @@ private APIreplaceNamespacedPodDisruptionBudgetStatusRequest(String name, String * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedPodDisruptionBudgetStatusRequest */ - public APIreplaceNamespacedPodDisruptionBudgetStatusRequest pretty(String pretty) { + public APIreplaceNamespacedPodDisruptionBudgetStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3030,7 +3175,7 @@ public APIreplaceNamespacedPodDisruptionBudgetStatusRequest pretty(String pretty * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedPodDisruptionBudgetStatusRequest */ - public APIreplaceNamespacedPodDisruptionBudgetStatusRequest dryRun(String dryRun) { + public APIreplaceNamespacedPodDisruptionBudgetStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3040,7 +3185,7 @@ public APIreplaceNamespacedPodDisruptionBudgetStatusRequest dryRun(String dryRun * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedPodDisruptionBudgetStatusRequest */ - public APIreplaceNamespacedPodDisruptionBudgetStatusRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedPodDisruptionBudgetStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -3050,7 +3195,7 @@ public APIreplaceNamespacedPodDisruptionBudgetStatusRequest fieldManager(String * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedPodDisruptionBudgetStatusRequest */ - public APIreplaceNamespacedPodDisruptionBudgetStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedPodDisruptionBudgetStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -3061,7 +3206,8 @@ public APIreplaceNamespacedPodDisruptionBudgetStatusRequest fieldValidation(Stri * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3077,7 +3223,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PodDisruptionBudget * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3094,7 +3241,8 @@ public V1PodDisruptionBudget execute() throws ApiException { * @return ApiResponse<V1PodDisruptionBudget> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3111,7 +3259,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -3131,14 +3280,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callb * @param body (required) * @return APIreplaceNamespacedPodDisruptionBudgetStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedPodDisruptionBudgetStatusRequest replaceNamespacedPodDisruptionBudgetStatus(String name, String namespace, V1PodDisruptionBudget body) { + public APIreplaceNamespacedPodDisruptionBudgetStatusRequest replaceNamespacedPodDisruptionBudgetStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodDisruptionBudget body) { return new APIreplaceNamespacedPodDisruptionBudgetStatusRequest(name, namespace, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationApi.java index e8382a5304..3cf3dd6471 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationApi.java @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1Api.java index b108ecec54..465763c0ab 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1Api.java @@ -82,7 +82,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createClusterRoleCall(V1ClusterRole body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createClusterRoleCall(@jakarta.annotation.Nonnull V1ClusterRole body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -147,7 +147,7 @@ private okhttp3.Call createClusterRoleCall(V1ClusterRole body, String pretty, St } @SuppressWarnings("rawtypes") - private okhttp3.Call createClusterRoleValidateBeforeCall(V1ClusterRole body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createClusterRoleValidateBeforeCall(@jakarta.annotation.Nonnull V1ClusterRole body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createClusterRole(Async)"); @@ -158,13 +158,13 @@ private okhttp3.Call createClusterRoleValidateBeforeCall(V1ClusterRole body, Str } - private ApiResponse createClusterRoleWithHttpInfo(V1ClusterRole body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createClusterRoleWithHttpInfo(@jakarta.annotation.Nonnull V1ClusterRole body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createClusterRoleValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createClusterRoleAsync(V1ClusterRole body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createClusterRoleAsync(@jakarta.annotation.Nonnull V1ClusterRole body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createClusterRoleValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -173,13 +173,18 @@ private okhttp3.Call createClusterRoleAsync(V1ClusterRole body, String pretty, S } public class APIcreateClusterRoleRequest { + @jakarta.annotation.Nonnull private final V1ClusterRole body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateClusterRoleRequest(V1ClusterRole body) { + private APIcreateClusterRoleRequest(@jakarta.annotation.Nonnull V1ClusterRole body) { this.body = body; } @@ -188,7 +193,7 @@ private APIcreateClusterRoleRequest(V1ClusterRole body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateClusterRoleRequest */ - public APIcreateClusterRoleRequest pretty(String pretty) { + public APIcreateClusterRoleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -198,7 +203,7 @@ public APIcreateClusterRoleRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateClusterRoleRequest */ - public APIcreateClusterRoleRequest dryRun(String dryRun) { + public APIcreateClusterRoleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -208,7 +213,7 @@ public APIcreateClusterRoleRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateClusterRoleRequest */ - public APIcreateClusterRoleRequest fieldManager(String fieldManager) { + public APIcreateClusterRoleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -218,7 +223,7 @@ public APIcreateClusterRoleRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateClusterRoleRequest */ - public APIcreateClusterRoleRequest fieldValidation(String fieldValidation) { + public APIcreateClusterRoleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -229,7 +234,8 @@ public APIcreateClusterRoleRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -246,7 +252,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ClusterRole * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -264,7 +271,8 @@ public V1ClusterRole execute() throws ApiException { * @return ApiResponse<V1ClusterRole> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -282,7 +290,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -301,7 +310,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param body (required) * @return APIcreateClusterRoleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -309,10 +319,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateClusterRoleRequest createClusterRole(V1ClusterRole body) { + public APIcreateClusterRoleRequest createClusterRole(@jakarta.annotation.Nonnull V1ClusterRole body) { return new APIcreateClusterRoleRequest(body); } - private okhttp3.Call createClusterRoleBindingCall(V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createClusterRoleBindingCall(@jakarta.annotation.Nonnull V1ClusterRoleBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -377,7 +387,7 @@ private okhttp3.Call createClusterRoleBindingCall(V1ClusterRoleBinding body, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call createClusterRoleBindingValidateBeforeCall(V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createClusterRoleBindingValidateBeforeCall(@jakarta.annotation.Nonnull V1ClusterRoleBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createClusterRoleBinding(Async)"); @@ -388,13 +398,13 @@ private okhttp3.Call createClusterRoleBindingValidateBeforeCall(V1ClusterRoleBin } - private ApiResponse createClusterRoleBindingWithHttpInfo(V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createClusterRoleBindingWithHttpInfo(@jakarta.annotation.Nonnull V1ClusterRoleBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createClusterRoleBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createClusterRoleBindingAsync(V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createClusterRoleBindingAsync(@jakarta.annotation.Nonnull V1ClusterRoleBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createClusterRoleBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -403,13 +413,18 @@ private okhttp3.Call createClusterRoleBindingAsync(V1ClusterRoleBinding body, St } public class APIcreateClusterRoleBindingRequest { + @jakarta.annotation.Nonnull private final V1ClusterRoleBinding body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateClusterRoleBindingRequest(V1ClusterRoleBinding body) { + private APIcreateClusterRoleBindingRequest(@jakarta.annotation.Nonnull V1ClusterRoleBinding body) { this.body = body; } @@ -418,7 +433,7 @@ private APIcreateClusterRoleBindingRequest(V1ClusterRoleBinding body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateClusterRoleBindingRequest */ - public APIcreateClusterRoleBindingRequest pretty(String pretty) { + public APIcreateClusterRoleBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -428,7 +443,7 @@ public APIcreateClusterRoleBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateClusterRoleBindingRequest */ - public APIcreateClusterRoleBindingRequest dryRun(String dryRun) { + public APIcreateClusterRoleBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -438,7 +453,7 @@ public APIcreateClusterRoleBindingRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateClusterRoleBindingRequest */ - public APIcreateClusterRoleBindingRequest fieldManager(String fieldManager) { + public APIcreateClusterRoleBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -448,7 +463,7 @@ public APIcreateClusterRoleBindingRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateClusterRoleBindingRequest */ - public APIcreateClusterRoleBindingRequest fieldValidation(String fieldValidation) { + public APIcreateClusterRoleBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -459,7 +474,8 @@ public APIcreateClusterRoleBindingRequest fieldValidation(String fieldValidation * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -476,7 +492,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ClusterRoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -494,7 +511,8 @@ public V1ClusterRoleBinding execute() throws ApiException { * @return ApiResponse<V1ClusterRoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -512,7 +530,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -531,7 +550,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param body (required) * @return APIcreateClusterRoleBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -539,10 +559,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callba
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateClusterRoleBindingRequest createClusterRoleBinding(V1ClusterRoleBinding body) { + public APIcreateClusterRoleBindingRequest createClusterRoleBinding(@jakarta.annotation.Nonnull V1ClusterRoleBinding body) { return new APIcreateClusterRoleBindingRequest(body); } - private okhttp3.Call createNamespacedRoleCall(String namespace, V1Role body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedRoleCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Role body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -608,7 +628,7 @@ private okhttp3.Call createNamespacedRoleCall(String namespace, V1Role body, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedRoleValidateBeforeCall(String namespace, V1Role body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedRoleValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Role body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedRole(Async)"); @@ -624,13 +644,13 @@ private okhttp3.Call createNamespacedRoleValidateBeforeCall(String namespace, V1 } - private ApiResponse createNamespacedRoleWithHttpInfo(String namespace, V1Role body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedRoleWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Role body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedRoleValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedRoleAsync(String namespace, V1Role body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedRoleAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Role body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedRoleValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -639,14 +659,20 @@ private okhttp3.Call createNamespacedRoleAsync(String namespace, V1Role body, St } public class APIcreateNamespacedRoleRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Role body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedRoleRequest(String namespace, V1Role body) { + private APIcreateNamespacedRoleRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Role body) { this.namespace = namespace; this.body = body; } @@ -656,7 +682,7 @@ private APIcreateNamespacedRoleRequest(String namespace, V1Role body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedRoleRequest */ - public APIcreateNamespacedRoleRequest pretty(String pretty) { + public APIcreateNamespacedRoleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -666,7 +692,7 @@ public APIcreateNamespacedRoleRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedRoleRequest */ - public APIcreateNamespacedRoleRequest dryRun(String dryRun) { + public APIcreateNamespacedRoleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -676,7 +702,7 @@ public APIcreateNamespacedRoleRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedRoleRequest */ - public APIcreateNamespacedRoleRequest fieldManager(String fieldManager) { + public APIcreateNamespacedRoleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -686,7 +712,7 @@ public APIcreateNamespacedRoleRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedRoleRequest */ - public APIcreateNamespacedRoleRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedRoleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -697,7 +723,8 @@ public APIcreateNamespacedRoleRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -714,7 +741,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Role * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -732,7 +760,8 @@ public V1Role execute() throws ApiException { * @return ApiResponse<V1Role> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -750,7 +779,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -770,7 +800,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param body (required) * @return APIcreateNamespacedRoleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -778,10 +809,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedRoleRequest createNamespacedRole(String namespace, V1Role body) { + public APIcreateNamespacedRoleRequest createNamespacedRole(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Role body) { return new APIcreateNamespacedRoleRequest(namespace, body); } - private okhttp3.Call createNamespacedRoleBindingCall(String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedRoleBindingCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1RoleBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -847,7 +878,7 @@ private okhttp3.Call createNamespacedRoleBindingCall(String namespace, V1RoleBin } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedRoleBindingValidateBeforeCall(String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedRoleBindingValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1RoleBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedRoleBinding(Async)"); @@ -863,13 +894,13 @@ private okhttp3.Call createNamespacedRoleBindingValidateBeforeCall(String namesp } - private ApiResponse createNamespacedRoleBindingWithHttpInfo(String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedRoleBindingWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1RoleBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedRoleBindingValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedRoleBindingAsync(String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedRoleBindingAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1RoleBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedRoleBindingValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -878,14 +909,20 @@ private okhttp3.Call createNamespacedRoleBindingAsync(String namespace, V1RoleBi } public class APIcreateNamespacedRoleBindingRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1RoleBinding body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedRoleBindingRequest(String namespace, V1RoleBinding body) { + private APIcreateNamespacedRoleBindingRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1RoleBinding body) { this.namespace = namespace; this.body = body; } @@ -895,7 +932,7 @@ private APIcreateNamespacedRoleBindingRequest(String namespace, V1RoleBinding bo * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedRoleBindingRequest */ - public APIcreateNamespacedRoleBindingRequest pretty(String pretty) { + public APIcreateNamespacedRoleBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -905,7 +942,7 @@ public APIcreateNamespacedRoleBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedRoleBindingRequest */ - public APIcreateNamespacedRoleBindingRequest dryRun(String dryRun) { + public APIcreateNamespacedRoleBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -915,7 +952,7 @@ public APIcreateNamespacedRoleBindingRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedRoleBindingRequest */ - public APIcreateNamespacedRoleBindingRequest fieldManager(String fieldManager) { + public APIcreateNamespacedRoleBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -925,7 +962,7 @@ public APIcreateNamespacedRoleBindingRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedRoleBindingRequest */ - public APIcreateNamespacedRoleBindingRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedRoleBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -936,7 +973,8 @@ public APIcreateNamespacedRoleBindingRequest fieldValidation(String fieldValidat * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -953,7 +991,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1RoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -971,7 +1010,8 @@ public V1RoleBinding execute() throws ApiException { * @return ApiResponse<V1RoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -989,7 +1029,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1009,7 +1050,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param body (required) * @return APIcreateNamespacedRoleBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1017,10 +1059,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedRoleBindingRequest createNamespacedRoleBinding(String namespace, V1RoleBinding body) { + public APIcreateNamespacedRoleBindingRequest createNamespacedRoleBinding(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1RoleBinding body) { return new APIcreateNamespacedRoleBindingRequest(namespace, body); } - private okhttp3.Call deleteClusterRoleCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteClusterRoleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1094,7 +1136,7 @@ private okhttp3.Call deleteClusterRoleCall(String name, String pretty, String dr } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteClusterRoleValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteClusterRoleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteClusterRole(Async)"); @@ -1105,13 +1147,13 @@ private okhttp3.Call deleteClusterRoleValidateBeforeCall(String name, String pre } - private ApiResponse deleteClusterRoleWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteClusterRoleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteClusterRoleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteClusterRoleAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteClusterRoleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteClusterRoleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1120,16 +1162,24 @@ private okhttp3.Call deleteClusterRoleAsync(String name, String pretty, String d } public class APIdeleteClusterRoleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteClusterRoleRequest(String name) { + private APIdeleteClusterRoleRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -1138,7 +1188,7 @@ private APIdeleteClusterRoleRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteClusterRoleRequest */ - public APIdeleteClusterRoleRequest pretty(String pretty) { + public APIdeleteClusterRoleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1148,7 +1198,7 @@ public APIdeleteClusterRoleRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteClusterRoleRequest */ - public APIdeleteClusterRoleRequest dryRun(String dryRun) { + public APIdeleteClusterRoleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1158,7 +1208,7 @@ public APIdeleteClusterRoleRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteClusterRoleRequest */ - public APIdeleteClusterRoleRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteClusterRoleRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1168,7 +1218,7 @@ public APIdeleteClusterRoleRequest gracePeriodSeconds(Integer gracePeriodSeconds * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteClusterRoleRequest */ - public APIdeleteClusterRoleRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteClusterRoleRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1178,7 +1228,7 @@ public APIdeleteClusterRoleRequest ignoreStoreReadErrorWithClusterBreakingPotent * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteClusterRoleRequest */ - public APIdeleteClusterRoleRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteClusterRoleRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1188,7 +1238,7 @@ public APIdeleteClusterRoleRequest orphanDependents(Boolean orphanDependents) { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteClusterRoleRequest */ - public APIdeleteClusterRoleRequest propagationPolicy(String propagationPolicy) { + public APIdeleteClusterRoleRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1198,7 +1248,7 @@ public APIdeleteClusterRoleRequest propagationPolicy(String propagationPolicy) { * @param body (optional) * @return APIdeleteClusterRoleRequest */ - public APIdeleteClusterRoleRequest body(V1DeleteOptions body) { + public APIdeleteClusterRoleRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1209,7 +1259,8 @@ public APIdeleteClusterRoleRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1225,7 +1276,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1242,7 +1294,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1259,7 +1312,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1277,17 +1331,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the ClusterRole (required) * @return APIdeleteClusterRoleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteClusterRoleRequest deleteClusterRole(String name) { + public APIdeleteClusterRoleRequest deleteClusterRole(@jakarta.annotation.Nonnull String name) { return new APIdeleteClusterRoleRequest(name); } - private okhttp3.Call deleteClusterRoleBindingCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteClusterRoleBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1361,7 +1416,7 @@ private okhttp3.Call deleteClusterRoleBindingCall(String name, String pretty, St } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteClusterRoleBindingValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteClusterRoleBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteClusterRoleBinding(Async)"); @@ -1372,13 +1427,13 @@ private okhttp3.Call deleteClusterRoleBindingValidateBeforeCall(String name, Str } - private ApiResponse deleteClusterRoleBindingWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteClusterRoleBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteClusterRoleBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteClusterRoleBindingAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteClusterRoleBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteClusterRoleBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1387,16 +1442,24 @@ private okhttp3.Call deleteClusterRoleBindingAsync(String name, String pretty, S } public class APIdeleteClusterRoleBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteClusterRoleBindingRequest(String name) { + private APIdeleteClusterRoleBindingRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -1405,7 +1468,7 @@ private APIdeleteClusterRoleBindingRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteClusterRoleBindingRequest */ - public APIdeleteClusterRoleBindingRequest pretty(String pretty) { + public APIdeleteClusterRoleBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1415,7 +1478,7 @@ public APIdeleteClusterRoleBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteClusterRoleBindingRequest */ - public APIdeleteClusterRoleBindingRequest dryRun(String dryRun) { + public APIdeleteClusterRoleBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1425,7 +1488,7 @@ public APIdeleteClusterRoleBindingRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteClusterRoleBindingRequest */ - public APIdeleteClusterRoleBindingRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteClusterRoleBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1435,7 +1498,7 @@ public APIdeleteClusterRoleBindingRequest gracePeriodSeconds(Integer gracePeriod * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteClusterRoleBindingRequest */ - public APIdeleteClusterRoleBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteClusterRoleBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1445,7 +1508,7 @@ public APIdeleteClusterRoleBindingRequest ignoreStoreReadErrorWithClusterBreakin * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteClusterRoleBindingRequest */ - public APIdeleteClusterRoleBindingRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteClusterRoleBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1455,7 +1518,7 @@ public APIdeleteClusterRoleBindingRequest orphanDependents(Boolean orphanDepende * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteClusterRoleBindingRequest */ - public APIdeleteClusterRoleBindingRequest propagationPolicy(String propagationPolicy) { + public APIdeleteClusterRoleBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1465,7 +1528,7 @@ public APIdeleteClusterRoleBindingRequest propagationPolicy(String propagationPo * @param body (optional) * @return APIdeleteClusterRoleBindingRequest */ - public APIdeleteClusterRoleBindingRequest body(V1DeleteOptions body) { + public APIdeleteClusterRoleBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1476,7 +1539,8 @@ public APIdeleteClusterRoleBindingRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1492,7 +1556,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1509,7 +1574,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1526,7 +1592,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1544,17 +1611,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the ClusterRoleBinding (required) * @return APIdeleteClusterRoleBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteClusterRoleBindingRequest deleteClusterRoleBinding(String name) { + public APIdeleteClusterRoleBindingRequest deleteClusterRoleBinding(@jakarta.annotation.Nonnull String name) { return new APIdeleteClusterRoleBindingRequest(name); } - private okhttp3.Call deleteCollectionClusterRoleCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterRoleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1659,19 +1727,19 @@ private okhttp3.Call deleteCollectionClusterRoleCall(String pretty, String _cont } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionClusterRoleValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterRoleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionClusterRoleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionClusterRoleWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionClusterRoleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionClusterRoleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionClusterRoleAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterRoleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionClusterRoleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1680,20 +1748,35 @@ private okhttp3.Call deleteCollectionClusterRoleAsync(String pretty, String _con } public class APIdeleteCollectionClusterRoleRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionClusterRoleRequest() { @@ -1704,7 +1787,7 @@ private APIdeleteCollectionClusterRoleRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionClusterRoleRequest */ - public APIdeleteCollectionClusterRoleRequest pretty(String pretty) { + public APIdeleteCollectionClusterRoleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1714,7 +1797,7 @@ public APIdeleteCollectionClusterRoleRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionClusterRoleRequest */ - public APIdeleteCollectionClusterRoleRequest _continue(String _continue) { + public APIdeleteCollectionClusterRoleRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1724,7 +1807,7 @@ public APIdeleteCollectionClusterRoleRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionClusterRoleRequest */ - public APIdeleteCollectionClusterRoleRequest dryRun(String dryRun) { + public APIdeleteCollectionClusterRoleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1734,7 +1817,7 @@ public APIdeleteCollectionClusterRoleRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionClusterRoleRequest */ - public APIdeleteCollectionClusterRoleRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionClusterRoleRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1744,7 +1827,7 @@ public APIdeleteCollectionClusterRoleRequest fieldSelector(String fieldSelector) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionClusterRoleRequest */ - public APIdeleteCollectionClusterRoleRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionClusterRoleRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1754,7 +1837,7 @@ public APIdeleteCollectionClusterRoleRequest gracePeriodSeconds(Integer gracePer * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionClusterRoleRequest */ - public APIdeleteCollectionClusterRoleRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionClusterRoleRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1764,7 +1847,7 @@ public APIdeleteCollectionClusterRoleRequest ignoreStoreReadErrorWithClusterBrea * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionClusterRoleRequest */ - public APIdeleteCollectionClusterRoleRequest labelSelector(String labelSelector) { + public APIdeleteCollectionClusterRoleRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1774,7 +1857,7 @@ public APIdeleteCollectionClusterRoleRequest labelSelector(String labelSelector) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionClusterRoleRequest */ - public APIdeleteCollectionClusterRoleRequest limit(Integer limit) { + public APIdeleteCollectionClusterRoleRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1784,7 +1867,7 @@ public APIdeleteCollectionClusterRoleRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionClusterRoleRequest */ - public APIdeleteCollectionClusterRoleRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionClusterRoleRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1794,7 +1877,7 @@ public APIdeleteCollectionClusterRoleRequest orphanDependents(Boolean orphanDepe * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionClusterRoleRequest */ - public APIdeleteCollectionClusterRoleRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionClusterRoleRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1804,7 +1887,7 @@ public APIdeleteCollectionClusterRoleRequest propagationPolicy(String propagatio * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionClusterRoleRequest */ - public APIdeleteCollectionClusterRoleRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionClusterRoleRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1814,7 +1897,7 @@ public APIdeleteCollectionClusterRoleRequest resourceVersion(String resourceVers * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionClusterRoleRequest */ - public APIdeleteCollectionClusterRoleRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionClusterRoleRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1824,7 +1907,7 @@ public APIdeleteCollectionClusterRoleRequest resourceVersionMatch(String resourc * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionClusterRoleRequest */ - public APIdeleteCollectionClusterRoleRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionClusterRoleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1834,7 +1917,7 @@ public APIdeleteCollectionClusterRoleRequest sendInitialEvents(Boolean sendIniti * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionClusterRoleRequest */ - public APIdeleteCollectionClusterRoleRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionClusterRoleRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1844,7 +1927,7 @@ public APIdeleteCollectionClusterRoleRequest timeoutSeconds(Integer timeoutSecon * @param body (optional) * @return APIdeleteCollectionClusterRoleRequest */ - public APIdeleteCollectionClusterRoleRequest body(V1DeleteOptions body) { + public APIdeleteCollectionClusterRoleRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1855,7 +1938,8 @@ public APIdeleteCollectionClusterRoleRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1870,7 +1954,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1886,7 +1971,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1902,7 +1988,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1918,7 +2005,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of ClusterRole * @return APIdeleteCollectionClusterRoleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1927,7 +2015,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionClusterRoleRequest deleteCollectionClusterRole() { return new APIdeleteCollectionClusterRoleRequest(); } - private okhttp3.Call deleteCollectionClusterRoleBindingCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterRoleBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2032,19 +2120,19 @@ private okhttp3.Call deleteCollectionClusterRoleBindingCall(String pretty, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionClusterRoleBindingValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterRoleBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionClusterRoleBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionClusterRoleBindingWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionClusterRoleBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionClusterRoleBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionClusterRoleBindingAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterRoleBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionClusterRoleBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2053,20 +2141,35 @@ private okhttp3.Call deleteCollectionClusterRoleBindingAsync(String pretty, Stri } public class APIdeleteCollectionClusterRoleBindingRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionClusterRoleBindingRequest() { @@ -2077,7 +2180,7 @@ private APIdeleteCollectionClusterRoleBindingRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionClusterRoleBindingRequest */ - public APIdeleteCollectionClusterRoleBindingRequest pretty(String pretty) { + public APIdeleteCollectionClusterRoleBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2087,7 +2190,7 @@ public APIdeleteCollectionClusterRoleBindingRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionClusterRoleBindingRequest */ - public APIdeleteCollectionClusterRoleBindingRequest _continue(String _continue) { + public APIdeleteCollectionClusterRoleBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2097,7 +2200,7 @@ public APIdeleteCollectionClusterRoleBindingRequest _continue(String _continue) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionClusterRoleBindingRequest */ - public APIdeleteCollectionClusterRoleBindingRequest dryRun(String dryRun) { + public APIdeleteCollectionClusterRoleBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2107,7 +2210,7 @@ public APIdeleteCollectionClusterRoleBindingRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionClusterRoleBindingRequest */ - public APIdeleteCollectionClusterRoleBindingRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionClusterRoleBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2117,7 +2220,7 @@ public APIdeleteCollectionClusterRoleBindingRequest fieldSelector(String fieldSe * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionClusterRoleBindingRequest */ - public APIdeleteCollectionClusterRoleBindingRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionClusterRoleBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2127,7 +2230,7 @@ public APIdeleteCollectionClusterRoleBindingRequest gracePeriodSeconds(Integer g * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionClusterRoleBindingRequest */ - public APIdeleteCollectionClusterRoleBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionClusterRoleBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -2137,7 +2240,7 @@ public APIdeleteCollectionClusterRoleBindingRequest ignoreStoreReadErrorWithClus * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionClusterRoleBindingRequest */ - public APIdeleteCollectionClusterRoleBindingRequest labelSelector(String labelSelector) { + public APIdeleteCollectionClusterRoleBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2147,7 +2250,7 @@ public APIdeleteCollectionClusterRoleBindingRequest labelSelector(String labelSe * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionClusterRoleBindingRequest */ - public APIdeleteCollectionClusterRoleBindingRequest limit(Integer limit) { + public APIdeleteCollectionClusterRoleBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2157,7 +2260,7 @@ public APIdeleteCollectionClusterRoleBindingRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionClusterRoleBindingRequest */ - public APIdeleteCollectionClusterRoleBindingRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionClusterRoleBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2167,7 +2270,7 @@ public APIdeleteCollectionClusterRoleBindingRequest orphanDependents(Boolean orp * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionClusterRoleBindingRequest */ - public APIdeleteCollectionClusterRoleBindingRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionClusterRoleBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2177,7 +2280,7 @@ public APIdeleteCollectionClusterRoleBindingRequest propagationPolicy(String pro * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionClusterRoleBindingRequest */ - public APIdeleteCollectionClusterRoleBindingRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionClusterRoleBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2187,7 +2290,7 @@ public APIdeleteCollectionClusterRoleBindingRequest resourceVersion(String resou * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionClusterRoleBindingRequest */ - public APIdeleteCollectionClusterRoleBindingRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionClusterRoleBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2197,7 +2300,7 @@ public APIdeleteCollectionClusterRoleBindingRequest resourceVersionMatch(String * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionClusterRoleBindingRequest */ - public APIdeleteCollectionClusterRoleBindingRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionClusterRoleBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2207,7 +2310,7 @@ public APIdeleteCollectionClusterRoleBindingRequest sendInitialEvents(Boolean se * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionClusterRoleBindingRequest */ - public APIdeleteCollectionClusterRoleBindingRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionClusterRoleBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2217,7 +2320,7 @@ public APIdeleteCollectionClusterRoleBindingRequest timeoutSeconds(Integer timeo * @param body (optional) * @return APIdeleteCollectionClusterRoleBindingRequest */ - public APIdeleteCollectionClusterRoleBindingRequest body(V1DeleteOptions body) { + public APIdeleteCollectionClusterRoleBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -2228,7 +2331,8 @@ public APIdeleteCollectionClusterRoleBindingRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2243,7 +2347,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2259,7 +2364,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2275,7 +2381,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2291,7 +2398,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of ClusterRoleBinding * @return APIdeleteCollectionClusterRoleBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2300,7 +2408,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionClusterRoleBindingRequest deleteCollectionClusterRoleBinding() { return new APIdeleteCollectionClusterRoleBindingRequest(); } - private okhttp3.Call deleteCollectionNamespacedRoleCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedRoleCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2406,7 +2514,7 @@ private okhttp3.Call deleteCollectionNamespacedRoleCall(String namespace, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedRoleValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedRoleValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedRole(Async)"); @@ -2417,13 +2525,13 @@ private okhttp3.Call deleteCollectionNamespacedRoleValidateBeforeCall(String nam } - private ApiResponse deleteCollectionNamespacedRoleWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedRoleWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedRoleValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedRoleAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedRoleAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedRoleValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2432,24 +2540,40 @@ private okhttp3.Call deleteCollectionNamespacedRoleAsync(String namespace, Strin } public class APIdeleteCollectionNamespacedRoleRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedRoleRequest(String namespace) { + private APIdeleteCollectionNamespacedRoleRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -2458,7 +2582,7 @@ private APIdeleteCollectionNamespacedRoleRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedRoleRequest */ - public APIdeleteCollectionNamespacedRoleRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedRoleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2468,7 +2592,7 @@ public APIdeleteCollectionNamespacedRoleRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedRoleRequest */ - public APIdeleteCollectionNamespacedRoleRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedRoleRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2478,7 +2602,7 @@ public APIdeleteCollectionNamespacedRoleRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedRoleRequest */ - public APIdeleteCollectionNamespacedRoleRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedRoleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2488,7 +2612,7 @@ public APIdeleteCollectionNamespacedRoleRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedRoleRequest */ - public APIdeleteCollectionNamespacedRoleRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedRoleRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2498,7 +2622,7 @@ public APIdeleteCollectionNamespacedRoleRequest fieldSelector(String fieldSelect * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedRoleRequest */ - public APIdeleteCollectionNamespacedRoleRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedRoleRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2508,7 +2632,7 @@ public APIdeleteCollectionNamespacedRoleRequest gracePeriodSeconds(Integer grace * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedRoleRequest */ - public APIdeleteCollectionNamespacedRoleRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedRoleRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -2518,7 +2642,7 @@ public APIdeleteCollectionNamespacedRoleRequest ignoreStoreReadErrorWithClusterB * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedRoleRequest */ - public APIdeleteCollectionNamespacedRoleRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedRoleRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2528,7 +2652,7 @@ public APIdeleteCollectionNamespacedRoleRequest labelSelector(String labelSelect * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedRoleRequest */ - public APIdeleteCollectionNamespacedRoleRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedRoleRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2538,7 +2662,7 @@ public APIdeleteCollectionNamespacedRoleRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedRoleRequest */ - public APIdeleteCollectionNamespacedRoleRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedRoleRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2548,7 +2672,7 @@ public APIdeleteCollectionNamespacedRoleRequest orphanDependents(Boolean orphanD * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedRoleRequest */ - public APIdeleteCollectionNamespacedRoleRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedRoleRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2558,7 +2682,7 @@ public APIdeleteCollectionNamespacedRoleRequest propagationPolicy(String propaga * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedRoleRequest */ - public APIdeleteCollectionNamespacedRoleRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedRoleRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2568,7 +2692,7 @@ public APIdeleteCollectionNamespacedRoleRequest resourceVersion(String resourceV * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedRoleRequest */ - public APIdeleteCollectionNamespacedRoleRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedRoleRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2578,7 +2702,7 @@ public APIdeleteCollectionNamespacedRoleRequest resourceVersionMatch(String reso * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedRoleRequest */ - public APIdeleteCollectionNamespacedRoleRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedRoleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2588,7 +2712,7 @@ public APIdeleteCollectionNamespacedRoleRequest sendInitialEvents(Boolean sendIn * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedRoleRequest */ - public APIdeleteCollectionNamespacedRoleRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedRoleRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2598,7 +2722,7 @@ public APIdeleteCollectionNamespacedRoleRequest timeoutSeconds(Integer timeoutSe * @param body (optional) * @return APIdeleteCollectionNamespacedRoleRequest */ - public APIdeleteCollectionNamespacedRoleRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedRoleRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -2609,7 +2733,8 @@ public APIdeleteCollectionNamespacedRoleRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2624,7 +2749,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2640,7 +2766,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2656,7 +2783,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2673,16 +2801,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedRoleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedRoleRequest deleteCollectionNamespacedRole(String namespace) { + public APIdeleteCollectionNamespacedRoleRequest deleteCollectionNamespacedRole(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedRoleRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedRoleBindingCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedRoleBindingCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2788,7 +2917,7 @@ private okhttp3.Call deleteCollectionNamespacedRoleBindingCall(String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedRoleBindingValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedRoleBindingValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedRoleBinding(Async)"); @@ -2799,13 +2928,13 @@ private okhttp3.Call deleteCollectionNamespacedRoleBindingValidateBeforeCall(Str } - private ApiResponse deleteCollectionNamespacedRoleBindingWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedRoleBindingWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedRoleBindingValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedRoleBindingAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedRoleBindingAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedRoleBindingValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2814,24 +2943,40 @@ private okhttp3.Call deleteCollectionNamespacedRoleBindingAsync(String namespace } public class APIdeleteCollectionNamespacedRoleBindingRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedRoleBindingRequest(String namespace) { + private APIdeleteCollectionNamespacedRoleBindingRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -2840,7 +2985,7 @@ private APIdeleteCollectionNamespacedRoleBindingRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedRoleBindingRequest */ - public APIdeleteCollectionNamespacedRoleBindingRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedRoleBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2850,7 +2995,7 @@ public APIdeleteCollectionNamespacedRoleBindingRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedRoleBindingRequest */ - public APIdeleteCollectionNamespacedRoleBindingRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedRoleBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2860,7 +3005,7 @@ public APIdeleteCollectionNamespacedRoleBindingRequest _continue(String _continu * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedRoleBindingRequest */ - public APIdeleteCollectionNamespacedRoleBindingRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedRoleBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2870,7 +3015,7 @@ public APIdeleteCollectionNamespacedRoleBindingRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedRoleBindingRequest */ - public APIdeleteCollectionNamespacedRoleBindingRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedRoleBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2880,7 +3025,7 @@ public APIdeleteCollectionNamespacedRoleBindingRequest fieldSelector(String fiel * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedRoleBindingRequest */ - public APIdeleteCollectionNamespacedRoleBindingRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedRoleBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2890,7 +3035,7 @@ public APIdeleteCollectionNamespacedRoleBindingRequest gracePeriodSeconds(Intege * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedRoleBindingRequest */ - public APIdeleteCollectionNamespacedRoleBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedRoleBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -2900,7 +3045,7 @@ public APIdeleteCollectionNamespacedRoleBindingRequest ignoreStoreReadErrorWithC * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedRoleBindingRequest */ - public APIdeleteCollectionNamespacedRoleBindingRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedRoleBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2910,7 +3055,7 @@ public APIdeleteCollectionNamespacedRoleBindingRequest labelSelector(String labe * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedRoleBindingRequest */ - public APIdeleteCollectionNamespacedRoleBindingRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedRoleBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2920,7 +3065,7 @@ public APIdeleteCollectionNamespacedRoleBindingRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedRoleBindingRequest */ - public APIdeleteCollectionNamespacedRoleBindingRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedRoleBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2930,7 +3075,7 @@ public APIdeleteCollectionNamespacedRoleBindingRequest orphanDependents(Boolean * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedRoleBindingRequest */ - public APIdeleteCollectionNamespacedRoleBindingRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedRoleBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2940,7 +3085,7 @@ public APIdeleteCollectionNamespacedRoleBindingRequest propagationPolicy(String * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedRoleBindingRequest */ - public APIdeleteCollectionNamespacedRoleBindingRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedRoleBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2950,7 +3095,7 @@ public APIdeleteCollectionNamespacedRoleBindingRequest resourceVersion(String re * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedRoleBindingRequest */ - public APIdeleteCollectionNamespacedRoleBindingRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedRoleBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2960,7 +3105,7 @@ public APIdeleteCollectionNamespacedRoleBindingRequest resourceVersionMatch(Stri * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedRoleBindingRequest */ - public APIdeleteCollectionNamespacedRoleBindingRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedRoleBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2970,7 +3115,7 @@ public APIdeleteCollectionNamespacedRoleBindingRequest sendInitialEvents(Boolean * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedRoleBindingRequest */ - public APIdeleteCollectionNamespacedRoleBindingRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedRoleBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2980,7 +3125,7 @@ public APIdeleteCollectionNamespacedRoleBindingRequest timeoutSeconds(Integer ti * @param body (optional) * @return APIdeleteCollectionNamespacedRoleBindingRequest */ - public APIdeleteCollectionNamespacedRoleBindingRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedRoleBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -2991,7 +3136,8 @@ public APIdeleteCollectionNamespacedRoleBindingRequest body(V1DeleteOptions body * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3006,7 +3152,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3022,7 +3169,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3038,7 +3186,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3055,16 +3204,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedRoleBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedRoleBindingRequest deleteCollectionNamespacedRoleBinding(String namespace) { + public APIdeleteCollectionNamespacedRoleBindingRequest deleteCollectionNamespacedRoleBinding(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedRoleBindingRequest(namespace); } - private okhttp3.Call deleteNamespacedRoleCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedRoleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3139,7 +3289,7 @@ private okhttp3.Call deleteNamespacedRoleCall(String name, String namespace, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedRoleValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedRoleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedRole(Async)"); @@ -3155,13 +3305,13 @@ private okhttp3.Call deleteNamespacedRoleValidateBeforeCall(String name, String } - private ApiResponse deleteNamespacedRoleWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedRoleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedRoleValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedRoleAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedRoleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedRoleValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3170,17 +3320,26 @@ private okhttp3.Call deleteNamespacedRoleAsync(String name, String namespace, St } public class APIdeleteNamespacedRoleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedRoleRequest(String name, String namespace) { + private APIdeleteNamespacedRoleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -3190,7 +3349,7 @@ private APIdeleteNamespacedRoleRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedRoleRequest */ - public APIdeleteNamespacedRoleRequest pretty(String pretty) { + public APIdeleteNamespacedRoleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3200,7 +3359,7 @@ public APIdeleteNamespacedRoleRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedRoleRequest */ - public APIdeleteNamespacedRoleRequest dryRun(String dryRun) { + public APIdeleteNamespacedRoleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3210,7 +3369,7 @@ public APIdeleteNamespacedRoleRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedRoleRequest */ - public APIdeleteNamespacedRoleRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedRoleRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -3220,7 +3379,7 @@ public APIdeleteNamespacedRoleRequest gracePeriodSeconds(Integer gracePeriodSeco * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedRoleRequest */ - public APIdeleteNamespacedRoleRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedRoleRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -3230,7 +3389,7 @@ public APIdeleteNamespacedRoleRequest ignoreStoreReadErrorWithClusterBreakingPot * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedRoleRequest */ - public APIdeleteNamespacedRoleRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedRoleRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3240,7 +3399,7 @@ public APIdeleteNamespacedRoleRequest orphanDependents(Boolean orphanDependents) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedRoleRequest */ - public APIdeleteNamespacedRoleRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedRoleRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3250,7 +3409,7 @@ public APIdeleteNamespacedRoleRequest propagationPolicy(String propagationPolicy * @param body (optional) * @return APIdeleteNamespacedRoleRequest */ - public APIdeleteNamespacedRoleRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedRoleRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -3261,7 +3420,8 @@ public APIdeleteNamespacedRoleRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3277,7 +3437,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3294,7 +3455,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3311,7 +3473,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3330,17 +3493,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedRoleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedRoleRequest deleteNamespacedRole(String name, String namespace) { + public APIdeleteNamespacedRoleRequest deleteNamespacedRole(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedRoleRequest(name, namespace); } - private okhttp3.Call deleteNamespacedRoleBindingCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedRoleBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3415,7 +3579,7 @@ private okhttp3.Call deleteNamespacedRoleBindingCall(String name, String namespa } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedRoleBindingValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedRoleBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedRoleBinding(Async)"); @@ -3431,13 +3595,13 @@ private okhttp3.Call deleteNamespacedRoleBindingValidateBeforeCall(String name, } - private ApiResponse deleteNamespacedRoleBindingWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedRoleBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedRoleBindingAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedRoleBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3446,17 +3610,26 @@ private okhttp3.Call deleteNamespacedRoleBindingAsync(String name, String namesp } public class APIdeleteNamespacedRoleBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedRoleBindingRequest(String name, String namespace) { + private APIdeleteNamespacedRoleBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -3466,7 +3639,7 @@ private APIdeleteNamespacedRoleBindingRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedRoleBindingRequest */ - public APIdeleteNamespacedRoleBindingRequest pretty(String pretty) { + public APIdeleteNamespacedRoleBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3476,7 +3649,7 @@ public APIdeleteNamespacedRoleBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedRoleBindingRequest */ - public APIdeleteNamespacedRoleBindingRequest dryRun(String dryRun) { + public APIdeleteNamespacedRoleBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3486,7 +3659,7 @@ public APIdeleteNamespacedRoleBindingRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedRoleBindingRequest */ - public APIdeleteNamespacedRoleBindingRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedRoleBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -3496,7 +3669,7 @@ public APIdeleteNamespacedRoleBindingRequest gracePeriodSeconds(Integer gracePer * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedRoleBindingRequest */ - public APIdeleteNamespacedRoleBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedRoleBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -3506,7 +3679,7 @@ public APIdeleteNamespacedRoleBindingRequest ignoreStoreReadErrorWithClusterBrea * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedRoleBindingRequest */ - public APIdeleteNamespacedRoleBindingRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedRoleBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3516,7 +3689,7 @@ public APIdeleteNamespacedRoleBindingRequest orphanDependents(Boolean orphanDepe * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedRoleBindingRequest */ - public APIdeleteNamespacedRoleBindingRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedRoleBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3526,7 +3699,7 @@ public APIdeleteNamespacedRoleBindingRequest propagationPolicy(String propagatio * @param body (optional) * @return APIdeleteNamespacedRoleBindingRequest */ - public APIdeleteNamespacedRoleBindingRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedRoleBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -3537,7 +3710,8 @@ public APIdeleteNamespacedRoleBindingRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3553,7 +3727,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3570,7 +3745,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3587,7 +3763,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3606,14 +3783,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedRoleBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedRoleBindingRequest deleteNamespacedRoleBinding(String name, String namespace) { + public APIdeleteNamespacedRoleBindingRequest deleteNamespacedRoleBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedRoleBindingRequest(name, namespace); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -3695,7 +3873,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3710,7 +3889,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3726,7 +3906,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3742,7 +3923,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3758,7 +3940,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3767,7 +3950,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listClusterRoleCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listClusterRoleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3862,19 +4045,19 @@ private okhttp3.Call listClusterRoleCall(String pretty, Boolean allowWatchBookma } @SuppressWarnings("rawtypes") - private okhttp3.Call listClusterRoleValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listClusterRoleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listClusterRoleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listClusterRoleWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listClusterRoleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listClusterRoleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listClusterRoleAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listClusterRoleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listClusterRoleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3883,16 +4066,27 @@ private okhttp3.Call listClusterRoleAsync(String pretty, Boolean allowWatchBookm } public class APIlistClusterRoleRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistClusterRoleRequest() { @@ -3903,7 +4097,7 @@ private APIlistClusterRoleRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistClusterRoleRequest */ - public APIlistClusterRoleRequest pretty(String pretty) { + public APIlistClusterRoleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3913,7 +4107,7 @@ public APIlistClusterRoleRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistClusterRoleRequest */ - public APIlistClusterRoleRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistClusterRoleRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -3923,7 +4117,7 @@ public APIlistClusterRoleRequest allowWatchBookmarks(Boolean allowWatchBookmarks * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistClusterRoleRequest */ - public APIlistClusterRoleRequest _continue(String _continue) { + public APIlistClusterRoleRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -3933,7 +4127,7 @@ public APIlistClusterRoleRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistClusterRoleRequest */ - public APIlistClusterRoleRequest fieldSelector(String fieldSelector) { + public APIlistClusterRoleRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -3943,7 +4137,7 @@ public APIlistClusterRoleRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistClusterRoleRequest */ - public APIlistClusterRoleRequest labelSelector(String labelSelector) { + public APIlistClusterRoleRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -3953,7 +4147,7 @@ public APIlistClusterRoleRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistClusterRoleRequest */ - public APIlistClusterRoleRequest limit(Integer limit) { + public APIlistClusterRoleRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -3963,7 +4157,7 @@ public APIlistClusterRoleRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistClusterRoleRequest */ - public APIlistClusterRoleRequest resourceVersion(String resourceVersion) { + public APIlistClusterRoleRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -3973,7 +4167,7 @@ public APIlistClusterRoleRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistClusterRoleRequest */ - public APIlistClusterRoleRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistClusterRoleRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -3983,7 +4177,7 @@ public APIlistClusterRoleRequest resourceVersionMatch(String resourceVersionMatc * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistClusterRoleRequest */ - public APIlistClusterRoleRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistClusterRoleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -3993,7 +4187,7 @@ public APIlistClusterRoleRequest sendInitialEvents(Boolean sendInitialEvents) { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistClusterRoleRequest */ - public APIlistClusterRoleRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistClusterRoleRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4003,7 +4197,7 @@ public APIlistClusterRoleRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistClusterRoleRequest */ - public APIlistClusterRoleRequest watch(Boolean watch) { + public APIlistClusterRoleRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -4014,7 +4208,8 @@ public APIlistClusterRoleRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4029,7 +4224,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ClusterRoleList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4045,7 +4241,8 @@ public V1ClusterRoleList execute() throws ApiException { * @return ApiResponse<V1ClusterRoleList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4061,7 +4258,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4077,7 +4275,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * list or watch objects of kind ClusterRole * @return APIlistClusterRoleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4086,7 +4285,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistClusterRoleRequest listClusterRole() { return new APIlistClusterRoleRequest(); } - private okhttp3.Call listClusterRoleBindingCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listClusterRoleBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4181,19 +4380,19 @@ private okhttp3.Call listClusterRoleBindingCall(String pretty, Boolean allowWatc } @SuppressWarnings("rawtypes") - private okhttp3.Call listClusterRoleBindingValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listClusterRoleBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listClusterRoleBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listClusterRoleBindingWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listClusterRoleBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listClusterRoleBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listClusterRoleBindingAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listClusterRoleBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listClusterRoleBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4202,16 +4401,27 @@ private okhttp3.Call listClusterRoleBindingAsync(String pretty, Boolean allowWat } public class APIlistClusterRoleBindingRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistClusterRoleBindingRequest() { @@ -4222,7 +4432,7 @@ private APIlistClusterRoleBindingRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistClusterRoleBindingRequest */ - public APIlistClusterRoleBindingRequest pretty(String pretty) { + public APIlistClusterRoleBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4232,7 +4442,7 @@ public APIlistClusterRoleBindingRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistClusterRoleBindingRequest */ - public APIlistClusterRoleBindingRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistClusterRoleBindingRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -4242,7 +4452,7 @@ public APIlistClusterRoleBindingRequest allowWatchBookmarks(Boolean allowWatchBo * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistClusterRoleBindingRequest */ - public APIlistClusterRoleBindingRequest _continue(String _continue) { + public APIlistClusterRoleBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -4252,7 +4462,7 @@ public APIlistClusterRoleBindingRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistClusterRoleBindingRequest */ - public APIlistClusterRoleBindingRequest fieldSelector(String fieldSelector) { + public APIlistClusterRoleBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -4262,7 +4472,7 @@ public APIlistClusterRoleBindingRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistClusterRoleBindingRequest */ - public APIlistClusterRoleBindingRequest labelSelector(String labelSelector) { + public APIlistClusterRoleBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -4272,7 +4482,7 @@ public APIlistClusterRoleBindingRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistClusterRoleBindingRequest */ - public APIlistClusterRoleBindingRequest limit(Integer limit) { + public APIlistClusterRoleBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -4282,7 +4492,7 @@ public APIlistClusterRoleBindingRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistClusterRoleBindingRequest */ - public APIlistClusterRoleBindingRequest resourceVersion(String resourceVersion) { + public APIlistClusterRoleBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -4292,7 +4502,7 @@ public APIlistClusterRoleBindingRequest resourceVersion(String resourceVersion) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistClusterRoleBindingRequest */ - public APIlistClusterRoleBindingRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistClusterRoleBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -4302,7 +4512,7 @@ public APIlistClusterRoleBindingRequest resourceVersionMatch(String resourceVers * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistClusterRoleBindingRequest */ - public APIlistClusterRoleBindingRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistClusterRoleBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -4312,7 +4522,7 @@ public APIlistClusterRoleBindingRequest sendInitialEvents(Boolean sendInitialEve * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistClusterRoleBindingRequest */ - public APIlistClusterRoleBindingRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistClusterRoleBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4322,7 +4532,7 @@ public APIlistClusterRoleBindingRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistClusterRoleBindingRequest */ - public APIlistClusterRoleBindingRequest watch(Boolean watch) { + public APIlistClusterRoleBindingRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -4333,7 +4543,8 @@ public APIlistClusterRoleBindingRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4348,7 +4559,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ClusterRoleBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4364,7 +4576,8 @@ public V1ClusterRoleBindingList execute() throws ApiException { * @return ApiResponse<V1ClusterRoleBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4380,7 +4593,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExc * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4396,7 +4610,8 @@ public okhttp3.Call executeAsync(final ApiCallback _ca * list or watch objects of kind ClusterRoleBinding * @return APIlistClusterRoleBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4405,7 +4620,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca public APIlistClusterRoleBindingRequest listClusterRoleBinding() { return new APIlistClusterRoleBindingRequest(); } - private okhttp3.Call listNamespacedRoleCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedRoleCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4501,7 +4716,7 @@ private okhttp3.Call listNamespacedRoleCall(String namespace, String pretty, Boo } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedRoleValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedRoleValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedRole(Async)"); @@ -4512,13 +4727,13 @@ private okhttp3.Call listNamespacedRoleValidateBeforeCall(String namespace, Stri } - private ApiResponse listNamespacedRoleWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedRoleWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedRoleValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedRoleAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedRoleAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedRoleValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4527,20 +4742,32 @@ private okhttp3.Call listNamespacedRoleAsync(String namespace, String pretty, Bo } public class APIlistNamespacedRoleRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedRoleRequest(String namespace) { + private APIlistNamespacedRoleRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -4549,7 +4776,7 @@ private APIlistNamespacedRoleRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedRoleRequest */ - public APIlistNamespacedRoleRequest pretty(String pretty) { + public APIlistNamespacedRoleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4559,7 +4786,7 @@ public APIlistNamespacedRoleRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedRoleRequest */ - public APIlistNamespacedRoleRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedRoleRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -4569,7 +4796,7 @@ public APIlistNamespacedRoleRequest allowWatchBookmarks(Boolean allowWatchBookma * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedRoleRequest */ - public APIlistNamespacedRoleRequest _continue(String _continue) { + public APIlistNamespacedRoleRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -4579,7 +4806,7 @@ public APIlistNamespacedRoleRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedRoleRequest */ - public APIlistNamespacedRoleRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedRoleRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -4589,7 +4816,7 @@ public APIlistNamespacedRoleRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedRoleRequest */ - public APIlistNamespacedRoleRequest labelSelector(String labelSelector) { + public APIlistNamespacedRoleRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -4599,7 +4826,7 @@ public APIlistNamespacedRoleRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedRoleRequest */ - public APIlistNamespacedRoleRequest limit(Integer limit) { + public APIlistNamespacedRoleRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -4609,7 +4836,7 @@ public APIlistNamespacedRoleRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedRoleRequest */ - public APIlistNamespacedRoleRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedRoleRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -4619,7 +4846,7 @@ public APIlistNamespacedRoleRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedRoleRequest */ - public APIlistNamespacedRoleRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedRoleRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -4629,7 +4856,7 @@ public APIlistNamespacedRoleRequest resourceVersionMatch(String resourceVersionM * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedRoleRequest */ - public APIlistNamespacedRoleRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedRoleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -4639,7 +4866,7 @@ public APIlistNamespacedRoleRequest sendInitialEvents(Boolean sendInitialEvents) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedRoleRequest */ - public APIlistNamespacedRoleRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedRoleRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4649,7 +4876,7 @@ public APIlistNamespacedRoleRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedRoleRequest */ - public APIlistNamespacedRoleRequest watch(Boolean watch) { + public APIlistNamespacedRoleRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -4660,7 +4887,8 @@ public APIlistNamespacedRoleRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4675,7 +4903,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1RoleList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4691,7 +4920,8 @@ public V1RoleList execute() throws ApiException { * @return ApiResponse<V1RoleList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4707,7 +4937,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4724,16 +4955,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedRoleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedRoleRequest listNamespacedRole(String namespace) { + public APIlistNamespacedRoleRequest listNamespacedRole(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedRoleRequest(namespace); } - private okhttp3.Call listNamespacedRoleBindingCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedRoleBindingCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4829,7 +5061,7 @@ private okhttp3.Call listNamespacedRoleBindingCall(String namespace, String pret } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedRoleBindingValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedRoleBindingValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedRoleBinding(Async)"); @@ -4840,13 +5072,13 @@ private okhttp3.Call listNamespacedRoleBindingValidateBeforeCall(String namespac } - private ApiResponse listNamespacedRoleBindingWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedRoleBindingWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedRoleBindingValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedRoleBindingAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedRoleBindingAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedRoleBindingValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4855,20 +5087,32 @@ private okhttp3.Call listNamespacedRoleBindingAsync(String namespace, String pre } public class APIlistNamespacedRoleBindingRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedRoleBindingRequest(String namespace) { + private APIlistNamespacedRoleBindingRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -4877,7 +5121,7 @@ private APIlistNamespacedRoleBindingRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedRoleBindingRequest */ - public APIlistNamespacedRoleBindingRequest pretty(String pretty) { + public APIlistNamespacedRoleBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4887,7 +5131,7 @@ public APIlistNamespacedRoleBindingRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedRoleBindingRequest */ - public APIlistNamespacedRoleBindingRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedRoleBindingRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -4897,7 +5141,7 @@ public APIlistNamespacedRoleBindingRequest allowWatchBookmarks(Boolean allowWatc * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedRoleBindingRequest */ - public APIlistNamespacedRoleBindingRequest _continue(String _continue) { + public APIlistNamespacedRoleBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -4907,7 +5151,7 @@ public APIlistNamespacedRoleBindingRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedRoleBindingRequest */ - public APIlistNamespacedRoleBindingRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedRoleBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -4917,7 +5161,7 @@ public APIlistNamespacedRoleBindingRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedRoleBindingRequest */ - public APIlistNamespacedRoleBindingRequest labelSelector(String labelSelector) { + public APIlistNamespacedRoleBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -4927,7 +5171,7 @@ public APIlistNamespacedRoleBindingRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedRoleBindingRequest */ - public APIlistNamespacedRoleBindingRequest limit(Integer limit) { + public APIlistNamespacedRoleBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -4937,7 +5181,7 @@ public APIlistNamespacedRoleBindingRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedRoleBindingRequest */ - public APIlistNamespacedRoleBindingRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedRoleBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -4947,7 +5191,7 @@ public APIlistNamespacedRoleBindingRequest resourceVersion(String resourceVersio * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedRoleBindingRequest */ - public APIlistNamespacedRoleBindingRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedRoleBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -4957,7 +5201,7 @@ public APIlistNamespacedRoleBindingRequest resourceVersionMatch(String resourceV * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedRoleBindingRequest */ - public APIlistNamespacedRoleBindingRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedRoleBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -4967,7 +5211,7 @@ public APIlistNamespacedRoleBindingRequest sendInitialEvents(Boolean sendInitial * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedRoleBindingRequest */ - public APIlistNamespacedRoleBindingRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedRoleBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4977,7 +5221,7 @@ public APIlistNamespacedRoleBindingRequest timeoutSeconds(Integer timeoutSeconds * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedRoleBindingRequest */ - public APIlistNamespacedRoleBindingRequest watch(Boolean watch) { + public APIlistNamespacedRoleBindingRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -4988,7 +5232,8 @@ public APIlistNamespacedRoleBindingRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5003,7 +5248,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1RoleBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5019,7 +5265,8 @@ public V1RoleBindingList execute() throws ApiException { * @return ApiResponse<V1RoleBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5035,7 +5282,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5052,16 +5300,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedRoleBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedRoleBindingRequest listNamespacedRoleBinding(String namespace) { + public APIlistNamespacedRoleBindingRequest listNamespacedRoleBinding(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedRoleBindingRequest(namespace); } - private okhttp3.Call listRoleBindingForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listRoleBindingForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5156,19 +5405,19 @@ private okhttp3.Call listRoleBindingForAllNamespacesCall(Boolean allowWatchBookm } @SuppressWarnings("rawtypes") - private okhttp3.Call listRoleBindingForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listRoleBindingForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listRoleBindingForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listRoleBindingForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listRoleBindingForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listRoleBindingForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listRoleBindingForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listRoleBindingForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listRoleBindingForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5177,16 +5426,27 @@ private okhttp3.Call listRoleBindingForAllNamespacesAsync(Boolean allowWatchBook } public class APIlistRoleBindingForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistRoleBindingForAllNamespacesRequest() { @@ -5197,7 +5457,7 @@ private APIlistRoleBindingForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistRoleBindingForAllNamespacesRequest */ - public APIlistRoleBindingForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistRoleBindingForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5207,7 +5467,7 @@ public APIlistRoleBindingForAllNamespacesRequest allowWatchBookmarks(Boolean all * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistRoleBindingForAllNamespacesRequest */ - public APIlistRoleBindingForAllNamespacesRequest _continue(String _continue) { + public APIlistRoleBindingForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5217,7 +5477,7 @@ public APIlistRoleBindingForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistRoleBindingForAllNamespacesRequest */ - public APIlistRoleBindingForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistRoleBindingForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5227,7 +5487,7 @@ public APIlistRoleBindingForAllNamespacesRequest fieldSelector(String fieldSelec * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistRoleBindingForAllNamespacesRequest */ - public APIlistRoleBindingForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistRoleBindingForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5237,7 +5497,7 @@ public APIlistRoleBindingForAllNamespacesRequest labelSelector(String labelSelec * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistRoleBindingForAllNamespacesRequest */ - public APIlistRoleBindingForAllNamespacesRequest limit(Integer limit) { + public APIlistRoleBindingForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -5247,7 +5507,7 @@ public APIlistRoleBindingForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistRoleBindingForAllNamespacesRequest */ - public APIlistRoleBindingForAllNamespacesRequest pretty(String pretty) { + public APIlistRoleBindingForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5257,7 +5517,7 @@ public APIlistRoleBindingForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistRoleBindingForAllNamespacesRequest */ - public APIlistRoleBindingForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistRoleBindingForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -5267,7 +5527,7 @@ public APIlistRoleBindingForAllNamespacesRequest resourceVersion(String resource * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistRoleBindingForAllNamespacesRequest */ - public APIlistRoleBindingForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistRoleBindingForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -5277,7 +5537,7 @@ public APIlistRoleBindingForAllNamespacesRequest resourceVersionMatch(String res * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistRoleBindingForAllNamespacesRequest */ - public APIlistRoleBindingForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistRoleBindingForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -5287,7 +5547,7 @@ public APIlistRoleBindingForAllNamespacesRequest sendInitialEvents(Boolean sendI * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistRoleBindingForAllNamespacesRequest */ - public APIlistRoleBindingForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistRoleBindingForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -5297,7 +5557,7 @@ public APIlistRoleBindingForAllNamespacesRequest timeoutSeconds(Integer timeoutS * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistRoleBindingForAllNamespacesRequest */ - public APIlistRoleBindingForAllNamespacesRequest watch(Boolean watch) { + public APIlistRoleBindingForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -5308,7 +5568,8 @@ public APIlistRoleBindingForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5323,7 +5584,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1RoleBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5339,7 +5601,8 @@ public V1RoleBindingList execute() throws ApiException { * @return ApiResponse<V1RoleBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5355,7 +5618,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5371,7 +5635,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * list or watch objects of kind RoleBinding * @return APIlistRoleBindingForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5380,7 +5645,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistRoleBindingForAllNamespacesRequest listRoleBindingForAllNamespaces() { return new APIlistRoleBindingForAllNamespacesRequest(); } - private okhttp3.Call listRoleForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listRoleForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5475,19 +5740,19 @@ private okhttp3.Call listRoleForAllNamespacesCall(Boolean allowWatchBookmarks, S } @SuppressWarnings("rawtypes") - private okhttp3.Call listRoleForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listRoleForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listRoleForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listRoleForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listRoleForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listRoleForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listRoleForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listRoleForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listRoleForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5496,16 +5761,27 @@ private okhttp3.Call listRoleForAllNamespacesAsync(Boolean allowWatchBookmarks, } public class APIlistRoleForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistRoleForAllNamespacesRequest() { @@ -5516,7 +5792,7 @@ private APIlistRoleForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistRoleForAllNamespacesRequest */ - public APIlistRoleForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistRoleForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5526,7 +5802,7 @@ public APIlistRoleForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatch * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistRoleForAllNamespacesRequest */ - public APIlistRoleForAllNamespacesRequest _continue(String _continue) { + public APIlistRoleForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5536,7 +5812,7 @@ public APIlistRoleForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistRoleForAllNamespacesRequest */ - public APIlistRoleForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistRoleForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5546,7 +5822,7 @@ public APIlistRoleForAllNamespacesRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistRoleForAllNamespacesRequest */ - public APIlistRoleForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistRoleForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5556,7 +5832,7 @@ public APIlistRoleForAllNamespacesRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistRoleForAllNamespacesRequest */ - public APIlistRoleForAllNamespacesRequest limit(Integer limit) { + public APIlistRoleForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -5566,7 +5842,7 @@ public APIlistRoleForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistRoleForAllNamespacesRequest */ - public APIlistRoleForAllNamespacesRequest pretty(String pretty) { + public APIlistRoleForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5576,7 +5852,7 @@ public APIlistRoleForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistRoleForAllNamespacesRequest */ - public APIlistRoleForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistRoleForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -5586,7 +5862,7 @@ public APIlistRoleForAllNamespacesRequest resourceVersion(String resourceVersion * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistRoleForAllNamespacesRequest */ - public APIlistRoleForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistRoleForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -5596,7 +5872,7 @@ public APIlistRoleForAllNamespacesRequest resourceVersionMatch(String resourceVe * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistRoleForAllNamespacesRequest */ - public APIlistRoleForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistRoleForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -5606,7 +5882,7 @@ public APIlistRoleForAllNamespacesRequest sendInitialEvents(Boolean sendInitialE * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistRoleForAllNamespacesRequest */ - public APIlistRoleForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistRoleForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -5616,7 +5892,7 @@ public APIlistRoleForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistRoleForAllNamespacesRequest */ - public APIlistRoleForAllNamespacesRequest watch(Boolean watch) { + public APIlistRoleForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -5627,7 +5903,8 @@ public APIlistRoleForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5642,7 +5919,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1RoleList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5658,7 +5936,8 @@ public V1RoleList execute() throws ApiException { * @return ApiResponse<V1RoleList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5674,7 +5953,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5690,7 +5970,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * list or watch objects of kind Role * @return APIlistRoleForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5699,7 +5980,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws public APIlistRoleForAllNamespacesRequest listRoleForAllNamespaces() { return new APIlistRoleForAllNamespacesRequest(); } - private okhttp3.Call patchClusterRoleCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchClusterRoleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5769,7 +6050,7 @@ private okhttp3.Call patchClusterRoleCall(String name, V1Patch body, String pret } @SuppressWarnings("rawtypes") - private okhttp3.Call patchClusterRoleValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchClusterRoleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchClusterRole(Async)"); @@ -5785,13 +6066,13 @@ private okhttp3.Call patchClusterRoleValidateBeforeCall(String name, V1Patch bod } - private ApiResponse patchClusterRoleWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchClusterRoleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchClusterRoleAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchClusterRoleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5800,15 +6081,22 @@ private okhttp3.Call patchClusterRoleAsync(String name, V1Patch body, String pre } public class APIpatchClusterRoleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchClusterRoleRequest(String name, V1Patch body) { + private APIpatchClusterRoleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -5818,7 +6106,7 @@ private APIpatchClusterRoleRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchClusterRoleRequest */ - public APIpatchClusterRoleRequest pretty(String pretty) { + public APIpatchClusterRoleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5828,7 +6116,7 @@ public APIpatchClusterRoleRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchClusterRoleRequest */ - public APIpatchClusterRoleRequest dryRun(String dryRun) { + public APIpatchClusterRoleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -5838,7 +6126,7 @@ public APIpatchClusterRoleRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchClusterRoleRequest */ - public APIpatchClusterRoleRequest fieldManager(String fieldManager) { + public APIpatchClusterRoleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -5848,7 +6136,7 @@ public APIpatchClusterRoleRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchClusterRoleRequest */ - public APIpatchClusterRoleRequest fieldValidation(String fieldValidation) { + public APIpatchClusterRoleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -5858,7 +6146,7 @@ public APIpatchClusterRoleRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchClusterRoleRequest */ - public APIpatchClusterRoleRequest force(Boolean force) { + public APIpatchClusterRoleRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -5869,7 +6157,8 @@ public APIpatchClusterRoleRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5885,7 +6174,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ClusterRole * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5902,7 +6192,8 @@ public V1ClusterRole execute() throws ApiException { * @return ApiResponse<V1ClusterRole> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5919,7 +6210,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5938,17 +6230,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param body (required) * @return APIpatchClusterRoleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchClusterRoleRequest patchClusterRole(String name, V1Patch body) { + public APIpatchClusterRoleRequest patchClusterRole(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchClusterRoleRequest(name, body); } - private okhttp3.Call patchClusterRoleBindingCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchClusterRoleBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6018,7 +6311,7 @@ private okhttp3.Call patchClusterRoleBindingCall(String name, V1Patch body, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call patchClusterRoleBindingValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchClusterRoleBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchClusterRoleBinding(Async)"); @@ -6034,13 +6327,13 @@ private okhttp3.Call patchClusterRoleBindingValidateBeforeCall(String name, V1Pa } - private ApiResponse patchClusterRoleBindingWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchClusterRoleBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchClusterRoleBindingAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchClusterRoleBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6049,15 +6342,22 @@ private okhttp3.Call patchClusterRoleBindingAsync(String name, V1Patch body, Str } public class APIpatchClusterRoleBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchClusterRoleBindingRequest(String name, V1Patch body) { + private APIpatchClusterRoleBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -6067,7 +6367,7 @@ private APIpatchClusterRoleBindingRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchClusterRoleBindingRequest */ - public APIpatchClusterRoleBindingRequest pretty(String pretty) { + public APIpatchClusterRoleBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6077,7 +6377,7 @@ public APIpatchClusterRoleBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchClusterRoleBindingRequest */ - public APIpatchClusterRoleBindingRequest dryRun(String dryRun) { + public APIpatchClusterRoleBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6087,7 +6387,7 @@ public APIpatchClusterRoleBindingRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchClusterRoleBindingRequest */ - public APIpatchClusterRoleBindingRequest fieldManager(String fieldManager) { + public APIpatchClusterRoleBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6097,7 +6397,7 @@ public APIpatchClusterRoleBindingRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchClusterRoleBindingRequest */ - public APIpatchClusterRoleBindingRequest fieldValidation(String fieldValidation) { + public APIpatchClusterRoleBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -6107,7 +6407,7 @@ public APIpatchClusterRoleBindingRequest fieldValidation(String fieldValidation) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchClusterRoleBindingRequest */ - public APIpatchClusterRoleBindingRequest force(Boolean force) { + public APIpatchClusterRoleBindingRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -6118,7 +6418,8 @@ public APIpatchClusterRoleBindingRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6134,7 +6435,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ClusterRoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6151,7 +6453,8 @@ public V1ClusterRoleBinding execute() throws ApiException { * @return ApiResponse<V1ClusterRoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6168,7 +6471,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6187,17 +6491,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param body (required) * @return APIpatchClusterRoleBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchClusterRoleBindingRequest patchClusterRoleBinding(String name, V1Patch body) { + public APIpatchClusterRoleBindingRequest patchClusterRoleBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchClusterRoleBindingRequest(name, body); } - private okhttp3.Call patchNamespacedRoleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedRoleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6268,7 +6573,7 @@ private okhttp3.Call patchNamespacedRoleCall(String name, String namespace, V1Pa } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedRoleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedRoleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedRole(Async)"); @@ -6289,13 +6594,13 @@ private okhttp3.Call patchNamespacedRoleValidateBeforeCall(String name, String n } - private ApiResponse patchNamespacedRoleWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedRoleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedRoleAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedRoleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6304,16 +6609,24 @@ private okhttp3.Call patchNamespacedRoleAsync(String name, String namespace, V1P } public class APIpatchNamespacedRoleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedRoleRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedRoleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -6324,7 +6637,7 @@ private APIpatchNamespacedRoleRequest(String name, String namespace, V1Patch bod * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedRoleRequest */ - public APIpatchNamespacedRoleRequest pretty(String pretty) { + public APIpatchNamespacedRoleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6334,7 +6647,7 @@ public APIpatchNamespacedRoleRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedRoleRequest */ - public APIpatchNamespacedRoleRequest dryRun(String dryRun) { + public APIpatchNamespacedRoleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6344,7 +6657,7 @@ public APIpatchNamespacedRoleRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedRoleRequest */ - public APIpatchNamespacedRoleRequest fieldManager(String fieldManager) { + public APIpatchNamespacedRoleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6354,7 +6667,7 @@ public APIpatchNamespacedRoleRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedRoleRequest */ - public APIpatchNamespacedRoleRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedRoleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -6364,7 +6677,7 @@ public APIpatchNamespacedRoleRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedRoleRequest */ - public APIpatchNamespacedRoleRequest force(Boolean force) { + public APIpatchNamespacedRoleRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -6375,7 +6688,8 @@ public APIpatchNamespacedRoleRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6391,7 +6705,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Role * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6408,7 +6723,8 @@ public V1Role execute() throws ApiException { * @return ApiResponse<V1Role> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6425,7 +6741,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6445,17 +6762,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param body (required) * @return APIpatchNamespacedRoleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedRoleRequest patchNamespacedRole(String name, String namespace, V1Patch body) { + public APIpatchNamespacedRoleRequest patchNamespacedRole(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedRoleRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedRoleBindingCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedRoleBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6526,7 +6844,7 @@ private okhttp3.Call patchNamespacedRoleBindingCall(String name, String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedRoleBindingValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedRoleBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedRoleBinding(Async)"); @@ -6547,13 +6865,13 @@ private okhttp3.Call patchNamespacedRoleBindingValidateBeforeCall(String name, S } - private ApiResponse patchNamespacedRoleBindingWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedRoleBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedRoleBindingAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedRoleBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6562,16 +6880,24 @@ private okhttp3.Call patchNamespacedRoleBindingAsync(String name, String namespa } public class APIpatchNamespacedRoleBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedRoleBindingRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedRoleBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -6582,7 +6908,7 @@ private APIpatchNamespacedRoleBindingRequest(String name, String namespace, V1Pa * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedRoleBindingRequest */ - public APIpatchNamespacedRoleBindingRequest pretty(String pretty) { + public APIpatchNamespacedRoleBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6592,7 +6918,7 @@ public APIpatchNamespacedRoleBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedRoleBindingRequest */ - public APIpatchNamespacedRoleBindingRequest dryRun(String dryRun) { + public APIpatchNamespacedRoleBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6602,7 +6928,7 @@ public APIpatchNamespacedRoleBindingRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedRoleBindingRequest */ - public APIpatchNamespacedRoleBindingRequest fieldManager(String fieldManager) { + public APIpatchNamespacedRoleBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6612,7 +6938,7 @@ public APIpatchNamespacedRoleBindingRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedRoleBindingRequest */ - public APIpatchNamespacedRoleBindingRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedRoleBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -6622,7 +6948,7 @@ public APIpatchNamespacedRoleBindingRequest fieldValidation(String fieldValidati * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedRoleBindingRequest */ - public APIpatchNamespacedRoleBindingRequest force(Boolean force) { + public APIpatchNamespacedRoleBindingRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -6633,7 +6959,8 @@ public APIpatchNamespacedRoleBindingRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6649,7 +6976,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1RoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6666,7 +6994,8 @@ public V1RoleBinding execute() throws ApiException { * @return ApiResponse<V1RoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6683,7 +7012,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6703,17 +7033,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param body (required) * @return APIpatchNamespacedRoleBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedRoleBindingRequest patchNamespacedRoleBinding(String name, String namespace, V1Patch body) { + public APIpatchNamespacedRoleBindingRequest patchNamespacedRoleBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedRoleBindingRequest(name, namespace, body); } - private okhttp3.Call readClusterRoleCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readClusterRoleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6766,7 +7097,7 @@ private okhttp3.Call readClusterRoleCall(String name, String pretty, final ApiCa } @SuppressWarnings("rawtypes") - private okhttp3.Call readClusterRoleValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readClusterRoleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readClusterRole(Async)"); @@ -6777,13 +7108,13 @@ private okhttp3.Call readClusterRoleValidateBeforeCall(String name, String prett } - private ApiResponse readClusterRoleWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readClusterRoleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readClusterRoleValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readClusterRoleAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readClusterRoleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readClusterRoleValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6792,10 +7123,12 @@ private okhttp3.Call readClusterRoleAsync(String name, String pretty, final ApiC } public class APIreadClusterRoleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadClusterRoleRequest(String name) { + private APIreadClusterRoleRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -6804,7 +7137,7 @@ private APIreadClusterRoleRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadClusterRoleRequest */ - public APIreadClusterRoleRequest pretty(String pretty) { + public APIreadClusterRoleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6815,7 +7148,8 @@ public APIreadClusterRoleRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6830,7 +7164,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ClusterRole * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6846,7 +7181,8 @@ public V1ClusterRole execute() throws ApiException { * @return ApiResponse<V1ClusterRole> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6862,7 +7198,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6879,16 +7216,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param name name of the ClusterRole (required) * @return APIreadClusterRoleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadClusterRoleRequest readClusterRole(String name) { + public APIreadClusterRoleRequest readClusterRole(@jakarta.annotation.Nonnull String name) { return new APIreadClusterRoleRequest(name); } - private okhttp3.Call readClusterRoleBindingCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readClusterRoleBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6941,7 +7279,7 @@ private okhttp3.Call readClusterRoleBindingCall(String name, String pretty, fina } @SuppressWarnings("rawtypes") - private okhttp3.Call readClusterRoleBindingValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readClusterRoleBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readClusterRoleBinding(Async)"); @@ -6952,13 +7290,13 @@ private okhttp3.Call readClusterRoleBindingValidateBeforeCall(String name, Strin } - private ApiResponse readClusterRoleBindingWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readClusterRoleBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readClusterRoleBindingValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readClusterRoleBindingAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readClusterRoleBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readClusterRoleBindingValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6967,10 +7305,12 @@ private okhttp3.Call readClusterRoleBindingAsync(String name, String pretty, fin } public class APIreadClusterRoleBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadClusterRoleBindingRequest(String name) { + private APIreadClusterRoleBindingRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -6979,7 +7319,7 @@ private APIreadClusterRoleBindingRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadClusterRoleBindingRequest */ - public APIreadClusterRoleBindingRequest pretty(String pretty) { + public APIreadClusterRoleBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6990,7 +7330,8 @@ public APIreadClusterRoleBindingRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7005,7 +7346,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ClusterRoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7021,7 +7363,8 @@ public V1ClusterRoleBinding execute() throws ApiException { * @return ApiResponse<V1ClusterRoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7037,7 +7380,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7054,16 +7398,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param name name of the ClusterRoleBinding (required) * @return APIreadClusterRoleBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadClusterRoleBindingRequest readClusterRoleBinding(String name) { + public APIreadClusterRoleBindingRequest readClusterRoleBinding(@jakarta.annotation.Nonnull String name) { return new APIreadClusterRoleBindingRequest(name); } - private okhttp3.Call readNamespacedRoleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedRoleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7117,7 +7462,7 @@ private okhttp3.Call readNamespacedRoleCall(String name, String namespace, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedRoleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedRoleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedRole(Async)"); @@ -7133,13 +7478,13 @@ private okhttp3.Call readNamespacedRoleValidateBeforeCall(String name, String na } - private ApiResponse readNamespacedRoleWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedRoleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedRoleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedRoleAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedRoleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedRoleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7148,11 +7493,14 @@ private okhttp3.Call readNamespacedRoleAsync(String name, String namespace, Stri } public class APIreadNamespacedRoleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedRoleRequest(String name, String namespace) { + private APIreadNamespacedRoleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -7162,7 +7510,7 @@ private APIreadNamespacedRoleRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedRoleRequest */ - public APIreadNamespacedRoleRequest pretty(String pretty) { + public APIreadNamespacedRoleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7173,7 +7521,8 @@ public APIreadNamespacedRoleRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7188,7 +7537,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Role * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7204,7 +7554,8 @@ public V1Role execute() throws ApiException { * @return ApiResponse<V1Role> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7220,7 +7571,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7238,16 +7590,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedRoleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedRoleRequest readNamespacedRole(String name, String namespace) { + public APIreadNamespacedRoleRequest readNamespacedRole(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedRoleRequest(name, namespace); } - private okhttp3.Call readNamespacedRoleBindingCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedRoleBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7301,7 +7654,7 @@ private okhttp3.Call readNamespacedRoleBindingCall(String name, String namespace } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedRoleBindingValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedRoleBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedRoleBinding(Async)"); @@ -7317,13 +7670,13 @@ private okhttp3.Call readNamespacedRoleBindingValidateBeforeCall(String name, St } - private ApiResponse readNamespacedRoleBindingWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedRoleBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedRoleBindingAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedRoleBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7332,11 +7685,14 @@ private okhttp3.Call readNamespacedRoleBindingAsync(String name, String namespac } public class APIreadNamespacedRoleBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedRoleBindingRequest(String name, String namespace) { + private APIreadNamespacedRoleBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -7346,7 +7702,7 @@ private APIreadNamespacedRoleBindingRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedRoleBindingRequest */ - public APIreadNamespacedRoleBindingRequest pretty(String pretty) { + public APIreadNamespacedRoleBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7357,7 +7713,8 @@ public APIreadNamespacedRoleBindingRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7372,7 +7729,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1RoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7388,7 +7746,8 @@ public V1RoleBinding execute() throws ApiException { * @return ApiResponse<V1RoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7404,7 +7763,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7422,16 +7782,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedRoleBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedRoleBindingRequest readNamespacedRoleBinding(String name, String namespace) { + public APIreadNamespacedRoleBindingRequest readNamespacedRoleBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedRoleBindingRequest(name, namespace); } - private okhttp3.Call replaceClusterRoleCall(String name, V1ClusterRole body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceClusterRoleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ClusterRole body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7497,7 +7858,7 @@ private okhttp3.Call replaceClusterRoleCall(String name, V1ClusterRole body, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceClusterRoleValidateBeforeCall(String name, V1ClusterRole body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceClusterRoleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ClusterRole body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceClusterRole(Async)"); @@ -7513,13 +7874,13 @@ private okhttp3.Call replaceClusterRoleValidateBeforeCall(String name, V1Cluster } - private ApiResponse replaceClusterRoleWithHttpInfo(String name, V1ClusterRole body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceClusterRoleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ClusterRole body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceClusterRoleAsync(String name, V1ClusterRole body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceClusterRoleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ClusterRole body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7528,14 +7889,20 @@ private okhttp3.Call replaceClusterRoleAsync(String name, V1ClusterRole body, St } public class APIreplaceClusterRoleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1ClusterRole body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceClusterRoleRequest(String name, V1ClusterRole body) { + private APIreplaceClusterRoleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ClusterRole body) { this.name = name; this.body = body; } @@ -7545,7 +7912,7 @@ private APIreplaceClusterRoleRequest(String name, V1ClusterRole body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceClusterRoleRequest */ - public APIreplaceClusterRoleRequest pretty(String pretty) { + public APIreplaceClusterRoleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7555,7 +7922,7 @@ public APIreplaceClusterRoleRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceClusterRoleRequest */ - public APIreplaceClusterRoleRequest dryRun(String dryRun) { + public APIreplaceClusterRoleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -7565,7 +7932,7 @@ public APIreplaceClusterRoleRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceClusterRoleRequest */ - public APIreplaceClusterRoleRequest fieldManager(String fieldManager) { + public APIreplaceClusterRoleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -7575,7 +7942,7 @@ public APIreplaceClusterRoleRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceClusterRoleRequest */ - public APIreplaceClusterRoleRequest fieldValidation(String fieldValidation) { + public APIreplaceClusterRoleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -7586,7 +7953,8 @@ public APIreplaceClusterRoleRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7602,7 +7970,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ClusterRole * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7619,7 +7988,8 @@ public V1ClusterRole execute() throws ApiException { * @return ApiResponse<V1ClusterRole> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7636,7 +8006,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7655,17 +8026,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param body (required) * @return APIreplaceClusterRoleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceClusterRoleRequest replaceClusterRole(String name, V1ClusterRole body) { + public APIreplaceClusterRoleRequest replaceClusterRole(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ClusterRole body) { return new APIreplaceClusterRoleRequest(name, body); } - private okhttp3.Call replaceClusterRoleBindingCall(String name, V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceClusterRoleBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ClusterRoleBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7731,7 +8103,7 @@ private okhttp3.Call replaceClusterRoleBindingCall(String name, V1ClusterRoleBin } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceClusterRoleBindingValidateBeforeCall(String name, V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceClusterRoleBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ClusterRoleBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceClusterRoleBinding(Async)"); @@ -7747,13 +8119,13 @@ private okhttp3.Call replaceClusterRoleBindingValidateBeforeCall(String name, V1 } - private ApiResponse replaceClusterRoleBindingWithHttpInfo(String name, V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceClusterRoleBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ClusterRoleBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceClusterRoleBindingAsync(String name, V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceClusterRoleBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ClusterRoleBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7762,14 +8134,20 @@ private okhttp3.Call replaceClusterRoleBindingAsync(String name, V1ClusterRoleBi } public class APIreplaceClusterRoleBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1ClusterRoleBinding body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceClusterRoleBindingRequest(String name, V1ClusterRoleBinding body) { + private APIreplaceClusterRoleBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ClusterRoleBinding body) { this.name = name; this.body = body; } @@ -7779,7 +8157,7 @@ private APIreplaceClusterRoleBindingRequest(String name, V1ClusterRoleBinding bo * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceClusterRoleBindingRequest */ - public APIreplaceClusterRoleBindingRequest pretty(String pretty) { + public APIreplaceClusterRoleBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7789,7 +8167,7 @@ public APIreplaceClusterRoleBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceClusterRoleBindingRequest */ - public APIreplaceClusterRoleBindingRequest dryRun(String dryRun) { + public APIreplaceClusterRoleBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -7799,7 +8177,7 @@ public APIreplaceClusterRoleBindingRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceClusterRoleBindingRequest */ - public APIreplaceClusterRoleBindingRequest fieldManager(String fieldManager) { + public APIreplaceClusterRoleBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -7809,7 +8187,7 @@ public APIreplaceClusterRoleBindingRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceClusterRoleBindingRequest */ - public APIreplaceClusterRoleBindingRequest fieldValidation(String fieldValidation) { + public APIreplaceClusterRoleBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -7820,7 +8198,8 @@ public APIreplaceClusterRoleBindingRequest fieldValidation(String fieldValidatio * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7836,7 +8215,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ClusterRoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7853,7 +8233,8 @@ public V1ClusterRoleBinding execute() throws ApiException { * @return ApiResponse<V1ClusterRoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7870,7 +8251,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7889,17 +8271,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param body (required) * @return APIreplaceClusterRoleBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceClusterRoleBindingRequest replaceClusterRoleBinding(String name, V1ClusterRoleBinding body) { + public APIreplaceClusterRoleBindingRequest replaceClusterRoleBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ClusterRoleBinding body) { return new APIreplaceClusterRoleBindingRequest(name, body); } - private okhttp3.Call replaceNamespacedRoleCall(String name, String namespace, V1Role body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedRoleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Role body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7966,7 +8349,7 @@ private okhttp3.Call replaceNamespacedRoleCall(String name, String namespace, V1 } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedRoleValidateBeforeCall(String name, String namespace, V1Role body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedRoleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Role body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedRole(Async)"); @@ -7987,13 +8370,13 @@ private okhttp3.Call replaceNamespacedRoleValidateBeforeCall(String name, String } - private ApiResponse replaceNamespacedRoleWithHttpInfo(String name, String namespace, V1Role body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedRoleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Role body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedRoleAsync(String name, String namespace, V1Role body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedRoleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Role body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8002,15 +8385,22 @@ private okhttp3.Call replaceNamespacedRoleAsync(String name, String namespace, V } public class APIreplaceNamespacedRoleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Role body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedRoleRequest(String name, String namespace, V1Role body) { + private APIreplaceNamespacedRoleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Role body) { this.name = name; this.namespace = namespace; this.body = body; @@ -8021,7 +8411,7 @@ private APIreplaceNamespacedRoleRequest(String name, String namespace, V1Role bo * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedRoleRequest */ - public APIreplaceNamespacedRoleRequest pretty(String pretty) { + public APIreplaceNamespacedRoleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8031,7 +8421,7 @@ public APIreplaceNamespacedRoleRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedRoleRequest */ - public APIreplaceNamespacedRoleRequest dryRun(String dryRun) { + public APIreplaceNamespacedRoleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -8041,7 +8431,7 @@ public APIreplaceNamespacedRoleRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedRoleRequest */ - public APIreplaceNamespacedRoleRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedRoleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -8051,7 +8441,7 @@ public APIreplaceNamespacedRoleRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedRoleRequest */ - public APIreplaceNamespacedRoleRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedRoleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -8062,7 +8452,8 @@ public APIreplaceNamespacedRoleRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8078,7 +8469,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Role * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8095,7 +8487,8 @@ public V1Role execute() throws ApiException { * @return ApiResponse<V1Role> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8112,7 +8505,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8132,17 +8526,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * @param body (required) * @return APIreplaceNamespacedRoleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedRoleRequest replaceNamespacedRole(String name, String namespace, V1Role body) { + public APIreplaceNamespacedRoleRequest replaceNamespacedRole(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Role body) { return new APIreplaceNamespacedRoleRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedRoleBindingCall(String name, String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedRoleBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1RoleBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8209,7 +8604,7 @@ private okhttp3.Call replaceNamespacedRoleBindingCall(String name, String namesp } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedRoleBindingValidateBeforeCall(String name, String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedRoleBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1RoleBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedRoleBinding(Async)"); @@ -8230,13 +8625,13 @@ private okhttp3.Call replaceNamespacedRoleBindingValidateBeforeCall(String name, } - private ApiResponse replaceNamespacedRoleBindingWithHttpInfo(String name, String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedRoleBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1RoleBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedRoleBindingAsync(String name, String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedRoleBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1RoleBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8245,15 +8640,22 @@ private okhttp3.Call replaceNamespacedRoleBindingAsync(String name, String names } public class APIreplaceNamespacedRoleBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1RoleBinding body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedRoleBindingRequest(String name, String namespace, V1RoleBinding body) { + private APIreplaceNamespacedRoleBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1RoleBinding body) { this.name = name; this.namespace = namespace; this.body = body; @@ -8264,7 +8666,7 @@ private APIreplaceNamespacedRoleBindingRequest(String name, String namespace, V1 * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedRoleBindingRequest */ - public APIreplaceNamespacedRoleBindingRequest pretty(String pretty) { + public APIreplaceNamespacedRoleBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8274,7 +8676,7 @@ public APIreplaceNamespacedRoleBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedRoleBindingRequest */ - public APIreplaceNamespacedRoleBindingRequest dryRun(String dryRun) { + public APIreplaceNamespacedRoleBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -8284,7 +8686,7 @@ public APIreplaceNamespacedRoleBindingRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedRoleBindingRequest */ - public APIreplaceNamespacedRoleBindingRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedRoleBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -8294,7 +8696,7 @@ public APIreplaceNamespacedRoleBindingRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedRoleBindingRequest */ - public APIreplaceNamespacedRoleBindingRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedRoleBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -8305,7 +8707,8 @@ public APIreplaceNamespacedRoleBindingRequest fieldValidation(String fieldValida * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8321,7 +8724,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1RoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8338,7 +8742,8 @@ public V1RoleBinding execute() throws ApiException { * @return ApiResponse<V1RoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8355,7 +8760,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8375,14 +8781,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param body (required) * @return APIreplaceNamespacedRoleBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedRoleBindingRequest replaceNamespacedRoleBinding(String name, String namespace, V1RoleBinding body) { + public APIreplaceNamespacedRoleBindingRequest replaceNamespacedRoleBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1RoleBinding body) { return new APIreplaceNamespacedRoleBindingRequest(name, namespace, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceApi.java index 6e85c5d6b0..4147e9439c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceApi.java @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java index 572dc3e749..823eabab3f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java @@ -32,6 +32,8 @@ import io.kubernetes.client.openapi.models.V1Status; import io.kubernetes.client.openapi.models.V1alpha3DeviceClass; import io.kubernetes.client.openapi.models.V1alpha3DeviceClassList; +import io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRule; +import io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRuleList; import io.kubernetes.client.openapi.models.V1alpha3ResourceClaim; import io.kubernetes.client.openapi.models.V1alpha3ResourceClaimList; import io.kubernetes.client.openapi.models.V1alpha3ResourceClaimTemplate; @@ -82,7 +84,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createDeviceClassCall(V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createDeviceClassCall(@jakarta.annotation.Nonnull V1alpha3DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -147,7 +149,7 @@ private okhttp3.Call createDeviceClassCall(V1alpha3DeviceClass body, String pret } @SuppressWarnings("rawtypes") - private okhttp3.Call createDeviceClassValidateBeforeCall(V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull V1alpha3DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createDeviceClass(Async)"); @@ -158,13 +160,13 @@ private okhttp3.Call createDeviceClassValidateBeforeCall(V1alpha3DeviceClass bod } - private ApiResponse createDeviceClassWithHttpInfo(V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull V1alpha3DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createDeviceClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createDeviceClassAsync(V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createDeviceClassAsync(@jakarta.annotation.Nonnull V1alpha3DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createDeviceClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -173,13 +175,18 @@ private okhttp3.Call createDeviceClassAsync(V1alpha3DeviceClass body, String pre } public class APIcreateDeviceClassRequest { + @jakarta.annotation.Nonnull private final V1alpha3DeviceClass body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateDeviceClassRequest(V1alpha3DeviceClass body) { + private APIcreateDeviceClassRequest(@jakarta.annotation.Nonnull V1alpha3DeviceClass body) { this.body = body; } @@ -188,7 +195,7 @@ private APIcreateDeviceClassRequest(V1alpha3DeviceClass body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateDeviceClassRequest */ - public APIcreateDeviceClassRequest pretty(String pretty) { + public APIcreateDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -198,7 +205,7 @@ public APIcreateDeviceClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateDeviceClassRequest */ - public APIcreateDeviceClassRequest dryRun(String dryRun) { + public APIcreateDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -208,7 +215,7 @@ public APIcreateDeviceClassRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateDeviceClassRequest */ - public APIcreateDeviceClassRequest fieldManager(String fieldManager) { + public APIcreateDeviceClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -218,7 +225,7 @@ public APIcreateDeviceClassRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateDeviceClassRequest */ - public APIcreateDeviceClassRequest fieldValidation(String fieldValidation) { + public APIcreateDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -229,7 +236,8 @@ public APIcreateDeviceClassRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -246,7 +254,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha3DeviceClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -264,7 +273,8 @@ public V1alpha3DeviceClass execute() throws ApiException { * @return ApiResponse<V1alpha3DeviceClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -282,7 +292,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -301,7 +312,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac * @param body (required) * @return APIcreateDeviceClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -309,10 +321,250 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateDeviceClassRequest createDeviceClass(V1alpha3DeviceClass body) { + public APIcreateDeviceClassRequest createDeviceClass(@jakarta.annotation.Nonnull V1alpha3DeviceClass body) { return new APIcreateDeviceClassRequest(body); } - private okhttp3.Call createNamespacedResourceClaimCall(String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createDeviceTaintRuleCall(@jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createDeviceTaintRule(Async)"); + } + + return createDeviceTaintRuleCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse createDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createDeviceTaintRuleValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createDeviceTaintRuleAsync(@jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createDeviceTaintRuleValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateDeviceTaintRuleRequest { + @jakarta.annotation.Nonnull + private final V1alpha3DeviceTaintRule body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIcreateDeviceTaintRuleRequest(@jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body) { + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIcreateDeviceTaintRuleRequest + */ + public APIcreateDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIcreateDeviceTaintRuleRequest + */ + public APIcreateDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIcreateDeviceTaintRuleRequest + */ + public APIcreateDeviceTaintRuleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIcreateDeviceTaintRuleRequest + */ + public APIcreateDeviceTaintRuleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for createDeviceTaintRule + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return createDeviceTaintRuleCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute createDeviceTaintRule request + * @return V1alpha3DeviceTaintRule + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha3DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = createDeviceTaintRuleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1alpha3DeviceTaintRule> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createDeviceTaintRuleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute createDeviceTaintRule request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createDeviceTaintRuleAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * create a DeviceTaintRule + * @param body (required) + * @return APIcreateDeviceTaintRuleRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public APIcreateDeviceTaintRuleRequest createDeviceTaintRule(@jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body) { + return new APIcreateDeviceTaintRuleRequest(body); + } + private okhttp3.Call createNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -378,7 +630,7 @@ private okhttp3.Call createNamespacedResourceClaimCall(String namespace, V1alpha } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedResourceClaimValidateBeforeCall(String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceClaim(Async)"); @@ -394,13 +646,13 @@ private okhttp3.Call createNamespacedResourceClaimValidateBeforeCall(String name } - private ApiResponse createNamespacedResourceClaimWithHttpInfo(String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedResourceClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedResourceClaimAsync(String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedResourceClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -409,14 +661,20 @@ private okhttp3.Call createNamespacedResourceClaimAsync(String namespace, V1alph } public class APIcreateNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1alpha3ResourceClaim body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedResourceClaimRequest(String namespace, V1alpha3ResourceClaim body) { + private APIcreateNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body) { this.namespace = namespace; this.body = body; } @@ -426,7 +684,7 @@ private APIcreateNamespacedResourceClaimRequest(String namespace, V1alpha3Resour * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedResourceClaimRequest */ - public APIcreateNamespacedResourceClaimRequest pretty(String pretty) { + public APIcreateNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -436,7 +694,7 @@ public APIcreateNamespacedResourceClaimRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedResourceClaimRequest */ - public APIcreateNamespacedResourceClaimRequest dryRun(String dryRun) { + public APIcreateNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -446,7 +704,7 @@ public APIcreateNamespacedResourceClaimRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedResourceClaimRequest */ - public APIcreateNamespacedResourceClaimRequest fieldManager(String fieldManager) { + public APIcreateNamespacedResourceClaimRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -456,7 +714,7 @@ public APIcreateNamespacedResourceClaimRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedResourceClaimRequest */ - public APIcreateNamespacedResourceClaimRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedResourceClaimRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -467,7 +725,8 @@ public APIcreateNamespacedResourceClaimRequest fieldValidation(String fieldValid * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -484,7 +743,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha3ResourceClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -502,7 +762,8 @@ public V1alpha3ResourceClaim execute() throws ApiException { * @return ApiResponse<V1alpha3ResourceClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -520,7 +781,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -540,7 +802,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callb * @param body (required) * @return APIcreateNamespacedResourceClaimRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -548,10 +811,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callb
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedResourceClaimRequest createNamespacedResourceClaim(String namespace, V1alpha3ResourceClaim body) { + public APIcreateNamespacedResourceClaimRequest createNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body) { return new APIcreateNamespacedResourceClaimRequest(namespace, body); } - private okhttp3.Call createNamespacedResourceClaimTemplateCall(String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -617,7 +880,7 @@ private okhttp3.Call createNamespacedResourceClaimTemplateCall(String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceClaimTemplate(Async)"); @@ -633,13 +896,13 @@ private okhttp3.Call createNamespacedResourceClaimTemplateValidateBeforeCall(Str } - private ApiResponse createNamespacedResourceClaimTemplateWithHttpInfo(String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedResourceClaimTemplateAsync(String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -648,14 +911,20 @@ private okhttp3.Call createNamespacedResourceClaimTemplateAsync(String namespace } public class APIcreateNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1alpha3ResourceClaimTemplate body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedResourceClaimTemplateRequest(String namespace, V1alpha3ResourceClaimTemplate body) { + private APIcreateNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body) { this.namespace = namespace; this.body = body; } @@ -665,7 +934,7 @@ private APIcreateNamespacedResourceClaimTemplateRequest(String namespace, V1alph * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedResourceClaimTemplateRequest */ - public APIcreateNamespacedResourceClaimTemplateRequest pretty(String pretty) { + public APIcreateNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -675,7 +944,7 @@ public APIcreateNamespacedResourceClaimTemplateRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedResourceClaimTemplateRequest */ - public APIcreateNamespacedResourceClaimTemplateRequest dryRun(String dryRun) { + public APIcreateNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -685,7 +954,7 @@ public APIcreateNamespacedResourceClaimTemplateRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedResourceClaimTemplateRequest */ - public APIcreateNamespacedResourceClaimTemplateRequest fieldManager(String fieldManager) { + public APIcreateNamespacedResourceClaimTemplateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -695,7 +964,7 @@ public APIcreateNamespacedResourceClaimTemplateRequest fieldManager(String field * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedResourceClaimTemplateRequest */ - public APIcreateNamespacedResourceClaimTemplateRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedResourceClaimTemplateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -706,7 +975,8 @@ public APIcreateNamespacedResourceClaimTemplateRequest fieldValidation(String fi * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -723,7 +993,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha3ResourceClaimTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -741,7 +1012,8 @@ public V1alpha3ResourceClaimTemplate execute() throws ApiException { * @return ApiResponse<V1alpha3ResourceClaimTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -759,7 +1031,8 @@ public ApiResponse executeWithHttpInfo() throws A * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -779,7 +1052,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+ @@ -787,10 +1061,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedResourceClaimTemplateRequest createNamespacedResourceClaimTemplate(String namespace, V1alpha3ResourceClaimTemplate body) { + public APIcreateNamespacedResourceClaimTemplateRequest createNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body) { return new APIcreateNamespacedResourceClaimTemplateRequest(namespace, body); } - private okhttp3.Call createResourceSliceCall(V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createResourceSliceCall(@jakarta.annotation.Nonnull V1alpha3ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -855,7 +1129,7 @@ private okhttp3.Call createResourceSliceCall(V1alpha3ResourceSlice body, String } @SuppressWarnings("rawtypes") - private okhttp3.Call createResourceSliceValidateBeforeCall(V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull V1alpha3ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createResourceSlice(Async)"); @@ -866,13 +1140,13 @@ private okhttp3.Call createResourceSliceValidateBeforeCall(V1alpha3ResourceSlice } - private ApiResponse createResourceSliceWithHttpInfo(V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull V1alpha3ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createResourceSliceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createResourceSliceAsync(V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createResourceSliceAsync(@jakarta.annotation.Nonnull V1alpha3ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createResourceSliceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -881,13 +1155,18 @@ private okhttp3.Call createResourceSliceAsync(V1alpha3ResourceSlice body, String } public class APIcreateResourceSliceRequest { + @jakarta.annotation.Nonnull private final V1alpha3ResourceSlice body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateResourceSliceRequest(V1alpha3ResourceSlice body) { + private APIcreateResourceSliceRequest(@jakarta.annotation.Nonnull V1alpha3ResourceSlice body) { this.body = body; } @@ -896,7 +1175,7 @@ private APIcreateResourceSliceRequest(V1alpha3ResourceSlice body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateResourceSliceRequest */ - public APIcreateResourceSliceRequest pretty(String pretty) { + public APIcreateResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -906,7 +1185,7 @@ public APIcreateResourceSliceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateResourceSliceRequest */ - public APIcreateResourceSliceRequest dryRun(String dryRun) { + public APIcreateResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -916,7 +1195,7 @@ public APIcreateResourceSliceRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateResourceSliceRequest */ - public APIcreateResourceSliceRequest fieldManager(String fieldManager) { + public APIcreateResourceSliceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -926,7 +1205,7 @@ public APIcreateResourceSliceRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateResourceSliceRequest */ - public APIcreateResourceSliceRequest fieldValidation(String fieldValidation) { + public APIcreateResourceSliceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -937,7 +1216,8 @@ public APIcreateResourceSliceRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -954,7 +1234,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha3ResourceSlice * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -972,7 +1253,8 @@ public V1alpha3ResourceSlice execute() throws ApiException { * @return ApiResponse<V1alpha3ResourceSlice> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -990,7 +1272,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1009,7 +1292,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callb * @param body (required) * @return APIcreateResourceSliceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1017,10 +1301,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callb
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateResourceSliceRequest createResourceSlice(V1alpha3ResourceSlice body) { + public APIcreateResourceSliceRequest createResourceSlice(@jakarta.annotation.Nonnull V1alpha3ResourceSlice body) { return new APIcreateResourceSliceRequest(body); } - private okhttp3.Call deleteCollectionDeviceClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1125,19 +1409,19 @@ private okhttp3.Call deleteCollectionDeviceClassCall(String pretty, String _cont } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionDeviceClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionDeviceClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionDeviceClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionDeviceClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionDeviceClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionDeviceClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1146,20 +1430,35 @@ private okhttp3.Call deleteCollectionDeviceClassAsync(String pretty, String _con } public class APIdeleteCollectionDeviceClassRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionDeviceClassRequest() { @@ -1170,7 +1469,7 @@ private APIdeleteCollectionDeviceClassRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest pretty(String pretty) { + public APIdeleteCollectionDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1180,7 +1479,7 @@ public APIdeleteCollectionDeviceClassRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest _continue(String _continue) { + public APIdeleteCollectionDeviceClassRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1190,7 +1489,7 @@ public APIdeleteCollectionDeviceClassRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest dryRun(String dryRun) { + public APIdeleteCollectionDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1200,7 +1499,7 @@ public APIdeleteCollectionDeviceClassRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionDeviceClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1210,7 +1509,7 @@ public APIdeleteCollectionDeviceClassRequest fieldSelector(String fieldSelector) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionDeviceClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1220,7 +1519,7 @@ public APIdeleteCollectionDeviceClassRequest gracePeriodSeconds(Integer gracePer * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionDeviceClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1230,7 +1529,7 @@ public APIdeleteCollectionDeviceClassRequest ignoreStoreReadErrorWithClusterBrea * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest labelSelector(String labelSelector) { + public APIdeleteCollectionDeviceClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1240,7 +1539,7 @@ public APIdeleteCollectionDeviceClassRequest labelSelector(String labelSelector) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest limit(Integer limit) { + public APIdeleteCollectionDeviceClassRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1250,7 +1549,7 @@ public APIdeleteCollectionDeviceClassRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionDeviceClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1260,7 +1559,7 @@ public APIdeleteCollectionDeviceClassRequest orphanDependents(Boolean orphanDepe * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionDeviceClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1270,7 +1569,7 @@ public APIdeleteCollectionDeviceClassRequest propagationPolicy(String propagatio * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionDeviceClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1280,7 +1579,7 @@ public APIdeleteCollectionDeviceClassRequest resourceVersion(String resourceVers * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionDeviceClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1290,7 +1589,7 @@ public APIdeleteCollectionDeviceClassRequest resourceVersionMatch(String resourc * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionDeviceClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1300,7 +1599,7 @@ public APIdeleteCollectionDeviceClassRequest sendInitialEvents(Boolean sendIniti * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionDeviceClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1310,7 +1609,7 @@ public APIdeleteCollectionDeviceClassRequest timeoutSeconds(Integer timeoutSecon * @param body (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest body(V1DeleteOptions body) { + public APIdeleteCollectionDeviceClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1321,7 +1620,8 @@ public APIdeleteCollectionDeviceClassRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1336,7 +1636,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1352,7 +1653,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1368,7 +1670,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1384,7 +1687,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of DeviceClass * @return APIdeleteCollectionDeviceClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1393,7 +1697,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionDeviceClassRequest deleteCollectionDeviceClass() { return new APIdeleteCollectionDeviceClassRequest(); } - private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionDeviceTaintRuleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1410,8 +1714,7 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(String namespac Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1499,59 +1802,67 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedResourceClaimValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaim(Async)"); - } - - return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionDeviceTaintRuleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedResourceClaimWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionDeviceTaintRuleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedResourceClaimAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionDeviceTaintRuleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionDeviceTaintRuleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCollectionNamespacedResourceClaimRequest { - private final String namespace; + public class APIdeleteCollectionDeviceTaintRuleRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedResourceClaimRequest(String namespace) { - this.namespace = namespace; + private APIdeleteCollectionDeviceTaintRuleRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest pretty(String pretty) { + public APIdeleteCollectionDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1559,9 +1870,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest pretty(String pretty) { /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest _continue(String _continue) { + public APIdeleteCollectionDeviceTaintRuleRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1569,9 +1880,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest _continue(String _conti /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest dryRun(String dryRun) { + public APIdeleteCollectionDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1579,9 +1890,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest dryRun(String dryRun) { /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionDeviceTaintRuleRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1589,9 +1900,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest fieldSelector(String fi /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionDeviceTaintRuleRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1599,9 +1910,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest gracePeriodSeconds(Inte /** * Set ignoreStoreReadErrorWithClusterBreakingPotential * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionDeviceTaintRuleRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1609,9 +1920,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest ignoreStoreReadErrorWit /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest labelSelector(String labelSelector) { + public APIdeleteCollectionDeviceTaintRuleRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1619,9 +1930,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest labelSelector(String la /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest limit(Integer limit) { + public APIdeleteCollectionDeviceTaintRuleRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1629,9 +1940,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest limit(Integer limit) { /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionDeviceTaintRuleRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1639,9 +1950,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest orphanDependents(Boolea /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionDeviceTaintRuleRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1649,9 +1960,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest propagationPolicy(Strin /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionDeviceTaintRuleRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1659,9 +1970,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersion(String /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionDeviceTaintRuleRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1669,9 +1980,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersionMatch(St /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionDeviceTaintRuleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1679,9 +1990,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest sendInitialEvents(Boole /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionDeviceTaintRuleRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1689,93 +2000,97 @@ public APIdeleteCollectionNamespacedResourceClaimRequest timeoutSeconds(Integer /** * Set body * @param body (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest body(V1DeleteOptions body) { + public APIdeleteCollectionDeviceTaintRuleRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteCollectionNamespacedResourceClaim + * Build call for deleteCollectionDeviceTaintRule * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionDeviceTaintRuleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** - * Execute deleteCollectionNamespacedResourceClaim request + * Execute deleteCollectionDeviceTaintRule request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionDeviceTaintRuleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteCollectionNamespacedResourceClaim request with HTTP info returned + * Execute deleteCollectionDeviceTaintRule request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionDeviceTaintRuleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** - * Execute deleteCollectionNamespacedResourceClaim request (asynchronously) + * Execute deleteCollectionDeviceTaintRule request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedResourceClaimAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionDeviceTaintRuleAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * - * delete collection of ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * delete collection of DeviceTaintRule + * @return APIdeleteCollectionDeviceTaintRuleRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedResourceClaimRequest deleteCollectionNamespacedResourceClaim(String namespace) { - return new APIdeleteCollectionNamespacedResourceClaimRequest(namespace); + public APIdeleteCollectionDeviceTaintRuleRequest deleteCollectionDeviceTaintRule() { + return new APIdeleteCollectionDeviceTaintRuleRequest(); } - private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1792,7 +2107,7 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(String Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates" + String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); @@ -1881,59 +2196,75 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaimTemplate(Async)"); + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaim(Async)"); } - return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCollectionNamespacedResourceClaimTemplateRequest { + public class APIdeleteCollectionNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedResourceClaimTemplateRequest(String namespace) { + private APIdeleteCollectionNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1941,9 +2272,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest pretty(String p /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedResourceClaimRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1951,9 +2282,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest _continue(Strin /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1961,9 +2292,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest dryRun(String d /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedResourceClaimRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1971,9 +2302,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest fieldSelector(S /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedResourceClaimRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1981,9 +2312,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest gracePeriodSeco /** * Set ignoreStoreReadErrorWithClusterBreakingPotential * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1991,9 +2322,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest ignoreStoreRead /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedResourceClaimRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2001,9 +2332,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest labelSelector(S /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedResourceClaimRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2011,9 +2342,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest limit(Integer l /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedResourceClaimRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2021,9 +2352,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest orphanDependent /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedResourceClaimRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2031,9 +2362,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest propagationPoli /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2041,9 +2372,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersion /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2051,9 +2382,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersion /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedResourceClaimRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2061,9 +2392,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest sendInitialEven /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedResourceClaimRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2071,93 +2402,98 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest timeoutSeconds( /** * Set body * @param body (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedResourceClaimRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteCollectionNamespacedResourceClaimTemplate + * Build call for deleteCollectionNamespacedResourceClaim * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** - * Execute deleteCollectionNamespacedResourceClaimTemplate request + * Execute deleteCollectionNamespacedResourceClaim request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteCollectionNamespacedResourceClaimTemplate request with HTTP info returned + * Execute deleteCollectionNamespacedResourceClaim request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** - * Execute deleteCollectionNamespacedResourceClaimTemplate request (asynchronously) + * Execute deleteCollectionNamespacedResourceClaim request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedResourceClaimTemplateAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * - * delete collection of ResourceClaimTemplate + * delete collection of ResourceClaim * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest deleteCollectionNamespacedResourceClaimTemplate(String namespace) { - return new APIdeleteCollectionNamespacedResourceClaimTemplateRequest(namespace); + public APIdeleteCollectionNamespacedResourceClaimRequest deleteCollectionNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace) { + return new APIdeleteCollectionNamespacedResourceClaimRequest(namespace); } - private okhttp3.Call deleteCollectionResourceSliceCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2174,7 +2510,8 @@ private okhttp3.Call deleteCollectionResourceSliceCall(String pretty, String _co Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices"; + String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2262,52 +2599,75 @@ private okhttp3.Call deleteCollectionResourceSliceCall(String pretty, String _co } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionResourceSliceValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaimTemplate(Async)"); + } + + return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionResourceSliceWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionResourceSliceAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCollectionResourceSliceRequest { + public class APIdeleteCollectionNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionResourceSliceRequest() { + private APIdeleteCollectionNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String namespace) { + this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2315,9 +2675,9 @@ public APIdeleteCollectionResourceSliceRequest pretty(String pretty) { /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2325,9 +2685,9 @@ public APIdeleteCollectionResourceSliceRequest _continue(String _continue) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2335,9 +2695,9 @@ public APIdeleteCollectionResourceSliceRequest dryRun(String dryRun) { /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2345,9 +2705,9 @@ public APIdeleteCollectionResourceSliceRequest fieldSelector(String fieldSelecto /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2355,9 +2715,9 @@ public APIdeleteCollectionResourceSliceRequest gracePeriodSeconds(Integer graceP /** * Set ignoreStoreReadErrorWithClusterBreakingPotential * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -2365,9 +2725,9 @@ public APIdeleteCollectionResourceSliceRequest ignoreStoreReadErrorWithClusterBr /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2375,9 +2735,9 @@ public APIdeleteCollectionResourceSliceRequest labelSelector(String labelSelecto /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2385,9 +2745,9 @@ public APIdeleteCollectionResourceSliceRequest limit(Integer limit) { /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2395,9 +2755,9 @@ public APIdeleteCollectionResourceSliceRequest orphanDependents(Boolean orphanDe /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2405,9 +2765,9 @@ public APIdeleteCollectionResourceSliceRequest propagationPolicy(String propagat /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2415,9 +2775,9 @@ public APIdeleteCollectionResourceSliceRequest resourceVersion(String resourceVe /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2425,9 +2785,9 @@ public APIdeleteCollectionResourceSliceRequest resourceVersionMatch(String resou /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2435,9 +2795,9 @@ public APIdeleteCollectionResourceSliceRequest sendInitialEvents(Boolean sendIni /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2445,92 +2805,98 @@ public APIdeleteCollectionResourceSliceRequest timeoutSeconds(Integer timeoutSec /** * Set body * @param body (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteCollectionResourceSlice + * Build call for deleteCollectionNamespacedResourceClaimTemplate * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** - * Execute deleteCollectionResourceSlice request + * Execute deleteCollectionNamespacedResourceClaimTemplate request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteCollectionResourceSlice request with HTTP info returned + * Execute deleteCollectionNamespacedResourceClaimTemplate request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** - * Execute deleteCollectionResourceSlice request (asynchronously) + * Execute deleteCollectionNamespacedResourceClaimTemplate request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionResourceSliceAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimTemplateAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * - * delete collection of ResourceSlice - * @return APIdeleteCollectionResourceSliceRequest + * delete collection of ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionResourceSliceRequest deleteCollectionResourceSlice() { - return new APIdeleteCollectionResourceSliceRequest(); + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest deleteCollectionNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace) { + return new APIdeleteCollectionNamespacedResourceClaimTemplateRequest(namespace); } - private okhttp3.Call deleteDeviceClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionResourceSliceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2547,8 +2913,7 @@ private okhttp3.Call deleteDeviceClassCall(String name, String pretty, String dr Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2560,10 +2925,18 @@ private okhttp3.Call deleteDeviceClassCall(String name, String pretty, String dr localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } @@ -2572,6 +2945,14 @@ private okhttp3.Call deleteDeviceClassCall(String name, String pretty, String dr localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -2580,6 +2961,22 @@ private okhttp3.Call deleteDeviceClassCall(String name, String pretty, String dr localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", @@ -2604,71 +3001,107 @@ private okhttp3.Call deleteDeviceClassCall(String name, String pretty, String dr } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDeviceClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteDeviceClass(Async)"); - } - - return deleteDeviceClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + private okhttp3.Call deleteCollectionResourceSliceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteDeviceClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteCollectionResourceSliceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteDeviceClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionResourceSliceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteDeviceClassRequest { - private final String name; + public class APIdeleteCollectionResourceSliceRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteDeviceClassRequest(String name) { - this.name = name; + private APIdeleteCollectionResourceSliceRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteDeviceClassRequest + * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteDeviceClassRequest pretty(String pretty) { + public APIdeleteCollectionResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteDeviceClassRequest + * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteDeviceClassRequest dryRun(String dryRun) { + public APIdeleteCollectionResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteDeviceClassRequest + * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteDeviceClassRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionResourceSliceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2676,19 +3109,39 @@ public APIdeleteDeviceClassRequest gracePeriodSeconds(Integer gracePeriodSeconds /** * Set ignoreStoreReadErrorWithClusterBreakingPotential * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteDeviceClassRequest + * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteDeviceClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionResourceSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteDeviceClassRequest + * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteDeviceClassRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionResourceSliceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2696,108 +3149,147 @@ public APIdeleteDeviceClassRequest orphanDependents(Boolean orphanDependents) { /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteDeviceClassRequest + * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteDeviceClassRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionResourceSliceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** - * Set body - * @param body (optional) - * @return APIdeleteDeviceClassRequest + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteDeviceClassRequest body(V1DeleteOptions body) { - this.body = body; + public APIdeleteCollectionResourceSliceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; return this; } /** - * Build call for deleteDeviceClass - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionResourceSliceRequest */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteDeviceClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + public APIdeleteCollectionResourceSliceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; } /** - * Execute deleteDeviceClass request - * @return V1alpha3DeviceClass - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionResourceSliceRequest */ - public V1alpha3DeviceClass execute() throws ApiException { - ApiResponse localVarResp = deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public APIdeleteCollectionResourceSliceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionResourceSlice + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionResourceSlice request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteDeviceClass request with HTTP info returned - * @return ApiResponse<V1alpha3DeviceClass> + * Execute deleteCollectionResourceSlice request with HTTP info returned + * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** - * Execute deleteDeviceClass request (asynchronously) + * Execute deleteCollectionResourceSlice request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteDeviceClassAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCollectionResourceSliceAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * - * delete a DeviceClass - * @param name name of the DeviceClass (required) - * @return APIdeleteDeviceClassRequest + * delete collection of ResourceSlice + * @return APIdeleteCollectionResourceSliceRequest * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteDeviceClassRequest deleteDeviceClass(String name) { - return new APIdeleteDeviceClassRequest(name); + public APIdeleteCollectionResourceSliceRequest deleteCollectionResourceSlice() { + return new APIdeleteCollectionResourceSliceRequest(); } - private okhttp3.Call deleteNamespacedResourceClaimCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2814,9 +3306,8 @@ private okhttp3.Call deleteNamespacedResourceClaimCall(String name, String names Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2872,58 +3363,59 @@ private okhttp3.Call deleteNamespacedResourceClaimCall(String name, String names } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedResourceClaimValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaim(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaim(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteDeviceClass(Async)"); } - return deleteNamespacedResourceClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteDeviceClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private ApiResponse deleteNamespacedResourceClaimWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedResourceClaimAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteNamespacedResourceClaimRequest { + public class APIdeleteDeviceClassRequest { + @jakarta.annotation.Nonnull private final String name; - private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedResourceClaimRequest(String name, String namespace) { + private APIdeleteDeviceClassRequest(@jakarta.annotation.Nonnull String name) { this.name = name; - this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteNamespacedResourceClaimRequest + * @return APIdeleteDeviceClassRequest */ - public APIdeleteNamespacedResourceClaimRequest pretty(String pretty) { + public APIdeleteDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2931,9 +3423,9 @@ public APIdeleteNamespacedResourceClaimRequest pretty(String pretty) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteNamespacedResourceClaimRequest + * @return APIdeleteDeviceClassRequest */ - public APIdeleteNamespacedResourceClaimRequest dryRun(String dryRun) { + public APIdeleteDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2941,9 +3433,9 @@ public APIdeleteNamespacedResourceClaimRequest dryRun(String dryRun) { /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteNamespacedResourceClaimRequest + * @return APIdeleteDeviceClassRequest */ - public APIdeleteNamespacedResourceClaimRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteDeviceClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2951,9 +3443,9 @@ public APIdeleteNamespacedResourceClaimRequest gracePeriodSeconds(Integer graceP /** * Set ignoreStoreReadErrorWithClusterBreakingPotential * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteNamespacedResourceClaimRequest + * @return APIdeleteDeviceClassRequest */ - public APIdeleteNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteDeviceClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -2961,9 +3453,9 @@ public APIdeleteNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBr /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteNamespacedResourceClaimRequest + * @return APIdeleteDeviceClassRequest */ - public APIdeleteNamespacedResourceClaimRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteDeviceClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2971,9 +3463,9 @@ public APIdeleteNamespacedResourceClaimRequest orphanDependents(Boolean orphanDe /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteNamespacedResourceClaimRequest + * @return APIdeleteDeviceClassRequest */ - public APIdeleteNamespacedResourceClaimRequest propagationPolicy(String propagationPolicy) { + public APIdeleteDeviceClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2981,20 +3473,21 @@ public APIdeleteNamespacedResourceClaimRequest propagationPolicy(String propagat /** * Set body * @param body (optional) - * @return APIdeleteNamespacedResourceClaimRequest + * @return APIdeleteDeviceClassRequest */ - public APIdeleteNamespacedResourceClaimRequest body(V1DeleteOptions body) { + public APIdeleteDeviceClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteNamespacedResourceClaim + * Build call for deleteDeviceClass * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3002,78 +3495,81 @@ public APIdeleteNamespacedResourceClaimRequest body(V1DeleteOptions body) {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteNamespacedResourceClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteDeviceClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute deleteNamespacedResourceClaim request - * @return V1alpha3ResourceClaim + * Execute deleteDeviceClass request + * @return V1alpha3DeviceClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1alpha3ResourceClaim execute() throws ApiException { - ApiResponse localVarResp = deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1alpha3DeviceClass execute() throws ApiException { + ApiResponse localVarResp = deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute deleteNamespacedResourceClaim request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceClaim> + * Execute deleteDeviceClass request with HTTP info returned + * @return ApiResponse<V1alpha3DeviceClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute deleteNamespacedResourceClaim request (asynchronously) + * Execute deleteDeviceClass request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteNamespacedResourceClaimAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteDeviceClassAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * delete a ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIdeleteNamespacedResourceClaimRequest + * delete a DeviceClass + * @param name name of the DeviceClass (required) + * @return APIdeleteDeviceClassRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedResourceClaimRequest deleteNamespacedResourceClaim(String name, String namespace) { - return new APIdeleteNamespacedResourceClaimRequest(name, namespace); + public APIdeleteDeviceClassRequest deleteDeviceClass(@jakarta.annotation.Nonnull String name) { + return new APIdeleteDeviceClassRequest(name); } - private okhttp3.Call deleteNamespacedResourceClaimTemplateCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteDeviceTaintRuleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3090,9 +3586,8 @@ private okhttp3.Call deleteNamespacedResourceClaimTemplateCall(String name, Stri Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3148,58 +3643,59 @@ private okhttp3.Call deleteNamespacedResourceClaimTemplateCall(String name, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaimTemplate(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaimTemplate(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteDeviceTaintRule(Async)"); } - return deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteDeviceTaintRuleCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private ApiResponse deleteNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteDeviceTaintRuleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedResourceClaimTemplateAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteDeviceTaintRuleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteDeviceTaintRuleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteNamespacedResourceClaimTemplateRequest { + public class APIdeleteDeviceTaintRuleRequest { + @jakarta.annotation.Nonnull private final String name; - private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedResourceClaimTemplateRequest(String name, String namespace) { + private APIdeleteDeviceTaintRuleRequest(@jakarta.annotation.Nonnull String name) { this.name = name; - this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteNamespacedResourceClaimTemplateRequest + * @return APIdeleteDeviceTaintRuleRequest */ - public APIdeleteNamespacedResourceClaimTemplateRequest pretty(String pretty) { + public APIdeleteDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3207,9 +3703,9 @@ public APIdeleteNamespacedResourceClaimTemplateRequest pretty(String pretty) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteNamespacedResourceClaimTemplateRequest + * @return APIdeleteDeviceTaintRuleRequest */ - public APIdeleteNamespacedResourceClaimTemplateRequest dryRun(String dryRun) { + public APIdeleteDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3217,9 +3713,9 @@ public APIdeleteNamespacedResourceClaimTemplateRequest dryRun(String dryRun) { /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteNamespacedResourceClaimTemplateRequest + * @return APIdeleteDeviceTaintRuleRequest */ - public APIdeleteNamespacedResourceClaimTemplateRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteDeviceTaintRuleRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -3227,9 +3723,9 @@ public APIdeleteNamespacedResourceClaimTemplateRequest gracePeriodSeconds(Intege /** * Set ignoreStoreReadErrorWithClusterBreakingPotential * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteNamespacedResourceClaimTemplateRequest + * @return APIdeleteDeviceTaintRuleRequest */ - public APIdeleteNamespacedResourceClaimTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteDeviceTaintRuleRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -3237,9 +3733,9 @@ public APIdeleteNamespacedResourceClaimTemplateRequest ignoreStoreReadErrorWithC /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteNamespacedResourceClaimTemplateRequest + * @return APIdeleteDeviceTaintRuleRequest */ - public APIdeleteNamespacedResourceClaimTemplateRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteDeviceTaintRuleRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3247,9 +3743,9 @@ public APIdeleteNamespacedResourceClaimTemplateRequest orphanDependents(Boolean /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteNamespacedResourceClaimTemplateRequest + * @return APIdeleteDeviceTaintRuleRequest */ - public APIdeleteNamespacedResourceClaimTemplateRequest propagationPolicy(String propagationPolicy) { + public APIdeleteDeviceTaintRuleRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3257,20 +3753,21 @@ public APIdeleteNamespacedResourceClaimTemplateRequest propagationPolicy(String /** * Set body * @param body (optional) - * @return APIdeleteNamespacedResourceClaimTemplateRequest + * @return APIdeleteDeviceTaintRuleRequest */ - public APIdeleteNamespacedResourceClaimTemplateRequest body(V1DeleteOptions body) { + public APIdeleteDeviceTaintRuleRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteNamespacedResourceClaimTemplate + * Build call for deleteDeviceTaintRule * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3278,78 +3775,81 @@ public APIdeleteNamespacedResourceClaimTemplateRequest body(V1DeleteOptions body
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteDeviceTaintRuleCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute deleteNamespacedResourceClaimTemplate request - * @return V1alpha3ResourceClaimTemplate + * Execute deleteDeviceTaintRule request + * @return V1alpha3DeviceTaintRule * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1alpha3ResourceClaimTemplate execute() throws ApiException { - ApiResponse localVarResp = deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1alpha3DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = deleteDeviceTaintRuleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute deleteNamespacedResourceClaimTemplate request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceClaimTemplate> + * Execute deleteDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1alpha3DeviceTaintRule> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteDeviceTaintRuleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute deleteNamespacedResourceClaimTemplate request (asynchronously) + * Execute deleteDeviceTaintRule request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteNamespacedResourceClaimTemplateAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteDeviceTaintRuleAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * delete a ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIdeleteNamespacedResourceClaimTemplateRequest + * delete a DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @return APIdeleteDeviceTaintRuleRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedResourceClaimTemplateRequest deleteNamespacedResourceClaimTemplate(String name, String namespace) { - return new APIdeleteNamespacedResourceClaimTemplateRequest(name, namespace); + public APIdeleteDeviceTaintRuleRequest deleteDeviceTaintRule(@jakarta.annotation.Nonnull String name) { + return new APIdeleteDeviceTaintRuleRequest(name); } - private okhttp3.Call deleteResourceSliceCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3366,8 +3866,9 @@ private okhttp3.Call deleteResourceSliceCall(String name, String pretty, String Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3423,51 +3924,67 @@ private okhttp3.Call deleteResourceSliceCall(String name, String pretty, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteResourceSliceValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteResourceSlice(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaim(Async)"); } - return deleteResourceSliceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaim(Async)"); + } + + return deleteNamespacedResourceClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private ApiResponse deleteResourceSliceWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteResourceSliceAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteResourceSliceRequest { + public class APIdeleteNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteResourceSliceRequest(String name) { + private APIdeleteNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; + this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteResourceSliceRequest + * @return APIdeleteNamespacedResourceClaimRequest */ - public APIdeleteResourceSliceRequest pretty(String pretty) { + public APIdeleteNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3475,9 +3992,9 @@ public APIdeleteResourceSliceRequest pretty(String pretty) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteResourceSliceRequest + * @return APIdeleteNamespacedResourceClaimRequest */ - public APIdeleteResourceSliceRequest dryRun(String dryRun) { + public APIdeleteNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3485,9 +4002,9 @@ public APIdeleteResourceSliceRequest dryRun(String dryRun) { /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteResourceSliceRequest + * @return APIdeleteNamespacedResourceClaimRequest */ - public APIdeleteResourceSliceRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedResourceClaimRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -3495,9 +4012,9 @@ public APIdeleteResourceSliceRequest gracePeriodSeconds(Integer gracePeriodSecon /** * Set ignoreStoreReadErrorWithClusterBreakingPotential * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteResourceSliceRequest + * @return APIdeleteNamespacedResourceClaimRequest */ - public APIdeleteResourceSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -3505,9 +4022,9 @@ public APIdeleteResourceSliceRequest ignoreStoreReadErrorWithClusterBreakingPote /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteResourceSliceRequest + * @return APIdeleteNamespacedResourceClaimRequest */ - public APIdeleteResourceSliceRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedResourceClaimRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3515,9 +4032,9 @@ public APIdeleteResourceSliceRequest orphanDependents(Boolean orphanDependents) /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteResourceSliceRequest + * @return APIdeleteNamespacedResourceClaimRequest */ - public APIdeleteResourceSliceRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedResourceClaimRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3525,20 +4042,21 @@ public APIdeleteResourceSliceRequest propagationPolicy(String propagationPolicy) /** * Set body * @param body (optional) - * @return APIdeleteResourceSliceRequest + * @return APIdeleteNamespacedResourceClaimRequest */ - public APIdeleteResourceSliceRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedResourceClaimRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteResourceSlice + * Build call for deleteNamespacedResourceClaim * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3546,77 +4064,808 @@ public APIdeleteResourceSliceRequest body(V1DeleteOptions body) {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteResourceSliceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedResourceClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute deleteResourceSlice request - * @return V1alpha3ResourceSlice + * Execute deleteNamespacedResourceClaim request + * @return V1alpha3ResourceClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1alpha3ResourceSlice execute() throws ApiException { - ApiResponse localVarResp = deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1alpha3ResourceClaim execute() throws ApiException { + ApiResponse localVarResp = deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute deleteResourceSlice request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceSlice> + * Execute deleteNamespacedResourceClaim request with HTTP info returned + * @return ApiResponse<V1alpha3ResourceClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute deleteResourceSlice request (asynchronously) + * Execute deleteNamespacedResourceClaim request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteNamespacedResourceClaimAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteNamespacedResourceClaimRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteNamespacedResourceClaimRequest deleteNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIdeleteNamespacedResourceClaimRequest(name, namespace); + } + private okhttp3.Call deleteNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaimTemplate(Async)"); + } + + return deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteNamespacedResourceClaimTemplate + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteNamespacedResourceClaimTemplate request + * @return V1alpha3ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha3ResourceClaimTemplate execute() throws ApiException { + ApiResponse localVarResp = deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteNamespacedResourceClaimTemplate request with HTTP info returned + * @return ApiResponse<V1alpha3ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteNamespacedResourceClaimTemplate request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteNamespacedResourceClaimTemplateAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteNamespacedResourceClaimTemplateRequest deleteNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIdeleteNamespacedResourceClaimTemplateRequest(name, namespace); + } + private okhttp3.Call deleteResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteResourceSlice(Async)"); + } + + return deleteResourceSliceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteResourceSliceRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteResourceSliceRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteResourceSliceRequest + */ + public APIdeleteResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteResourceSliceRequest + */ + public APIdeleteResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteResourceSliceRequest + */ + public APIdeleteResourceSliceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteResourceSliceRequest + */ + public APIdeleteResourceSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteResourceSliceRequest + */ + public APIdeleteResourceSliceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteResourceSliceRequest + */ + public APIdeleteResourceSliceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteResourceSliceRequest + */ + public APIdeleteResourceSliceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteResourceSlice + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteResourceSliceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteResourceSlice request + * @return V1alpha3ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha3ResourceSlice execute() throws ApiException { + ApiResponse localVarResp = deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteResourceSlice request with HTTP info returned + * @return ApiResponse<V1alpha3ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteResourceSlice request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteResourceSliceAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * delete a ResourceSlice - * @param name name of the ResourceSlice (required) - * @return APIdeleteResourceSliceRequest + * delete a ResourceSlice + * @param name name of the ResourceSlice (required) + * @return APIdeleteResourceSliceRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteResourceSliceRequest deleteResourceSlice(@jakarta.annotation.Nonnull String name) { + return new APIdeleteResourceSliceRequest(name); + } + private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return getAPIResourcesCall(_callback); + + } + + + private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetAPIResourcesRequest { + + private APIgetAPIResourcesRequest() { + } + + /** + * Build call for getAPIResources + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getAPIResourcesCall(_callback); + } + + /** + * Execute getAPIResources request + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList execute() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Execute getAPIResources request with HTTP info returned + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getAPIResourcesWithHttpInfo(); + } + + /** + * Execute getAPIResources request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getAPIResourcesAsync(_callback); + } + } + + /** + * + * get available resources + * @return APIgetAPIResourcesRequest * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteResourceSliceRequest deleteResourceSlice(String name) { - return new APIdeleteResourceSliceRequest(name); + public APIgetAPIResourcesRequest getAPIResources() { + return new APIgetAPIResourcesRequest(); } - private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDeviceClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3633,7 +4882,7 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/"; + String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3641,11 +4890,58 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor" + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3664,110 +4960,247 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api } @SuppressWarnings("rawtypes") - private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return getAPIResourcesCall(_callback); + private okhttp3.Call listDeviceClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse listDeviceClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDeviceClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIgetAPIResourcesRequest { + public class APIlistDeviceClassRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; - private APIgetAPIResourcesRequest() { + private APIlistDeviceClassRequest() { } /** - * Build call for getAPIResources + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listDeviceClass * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getAPIResourcesCall(_callback); + return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** - * Execute getAPIResources request - * @return V1APIResourceList + * Execute listDeviceClass request + * @return V1alpha3DeviceClassList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1APIResourceList execute() throws ApiException { - ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + public V1alpha3DeviceClassList execute() throws ApiException { + ApiResponse localVarResp = listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute getAPIResources request with HTTP info returned - * @return ApiResponse<V1APIResourceList> + * Execute listDeviceClass request with HTTP info returned + * @return ApiResponse<V1alpha3DeviceClassList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getAPIResourcesWithHttpInfo(); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** - * Execute getAPIResources request (asynchronously) + * Execute listDeviceClass request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getAPIResourcesAsync(_callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listDeviceClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * - * get available resources - * @return APIgetAPIResourcesRequest + * list or watch objects of kind DeviceClass + * @return APIlistDeviceClassRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIgetAPIResourcesRequest getAPIResources() { - return new APIgetAPIResourcesRequest(); + public APIlistDeviceClassRequest listDeviceClass() { + return new APIlistDeviceClassRequest(); } - private okhttp3.Call listDeviceClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDeviceTaintRuleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3784,7 +5217,7 @@ private okhttp3.Call listDeviceClassCall(String pretty, Boolean allowWatchBookma Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses"; + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3862,48 +5295,59 @@ private okhttp3.Call listDeviceClassCall(String pretty, Boolean allowWatchBookma } @SuppressWarnings("rawtypes") - private okhttp3.Call listDeviceClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listDeviceTaintRuleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listDeviceClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse listDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDeviceTaintRuleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listDeviceClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDeviceTaintRuleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listDeviceTaintRuleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistDeviceClassRequest { + public class APIlistDeviceTaintRuleRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistDeviceClassRequest() { + private APIlistDeviceTaintRuleRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistDeviceClassRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistDeviceClassRequest pretty(String pretty) { + public APIlistDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3911,9 +5355,9 @@ public APIlistDeviceClassRequest pretty(String pretty) { /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - * @return APIlistDeviceClassRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistDeviceClassRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistDeviceTaintRuleRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -3921,9 +5365,9 @@ public APIlistDeviceClassRequest allowWatchBookmarks(Boolean allowWatchBookmarks /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIlistDeviceClassRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistDeviceClassRequest _continue(String _continue) { + public APIlistDeviceTaintRuleRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -3931,9 +5375,9 @@ public APIlistDeviceClassRequest _continue(String _continue) { /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistDeviceClassRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistDeviceClassRequest fieldSelector(String fieldSelector) { + public APIlistDeviceTaintRuleRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -3941,9 +5385,9 @@ public APIlistDeviceClassRequest fieldSelector(String fieldSelector) { /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistDeviceClassRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistDeviceClassRequest labelSelector(String labelSelector) { + public APIlistDeviceTaintRuleRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -3951,9 +5395,9 @@ public APIlistDeviceClassRequest labelSelector(String labelSelector) { /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIlistDeviceClassRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistDeviceClassRequest limit(Integer limit) { + public APIlistDeviceTaintRuleRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -3961,9 +5405,9 @@ public APIlistDeviceClassRequest limit(Integer limit) { /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistDeviceClassRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistDeviceClassRequest resourceVersion(String resourceVersion) { + public APIlistDeviceTaintRuleRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -3971,9 +5415,9 @@ public APIlistDeviceClassRequest resourceVersion(String resourceVersion) { /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistDeviceClassRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistDeviceClassRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistDeviceTaintRuleRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -3981,9 +5425,9 @@ public APIlistDeviceClassRequest resourceVersionMatch(String resourceVersionMatc /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistDeviceClassRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistDeviceClassRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistDeviceTaintRuleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -3991,9 +5435,9 @@ public APIlistDeviceClassRequest sendInitialEvents(Boolean sendInitialEvents) { /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistDeviceClassRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistDeviceClassRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistDeviceTaintRuleRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4001,92 +5445,97 @@ public APIlistDeviceClassRequest timeoutSeconds(Integer timeoutSeconds) { /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistDeviceClassRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistDeviceClassRequest watch(Boolean watch) { + public APIlistDeviceTaintRuleRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } /** - * Build call for listDeviceClass + * Build call for listDeviceTaintRule * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listDeviceTaintRuleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** - * Execute listDeviceClass request - * @return V1alpha3DeviceClassList + * Execute listDeviceTaintRule request + * @return V1alpha3DeviceTaintRuleList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha3DeviceClassList execute() throws ApiException { - ApiResponse localVarResp = listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1alpha3DeviceTaintRuleList execute() throws ApiException { + ApiResponse localVarResp = listDeviceTaintRuleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute listDeviceClass request with HTTP info returned - * @return ApiResponse<V1alpha3DeviceClassList> + * Execute listDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1alpha3DeviceTaintRuleList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listDeviceTaintRuleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** - * Execute listDeviceClass request (asynchronously) + * Execute listDeviceTaintRule request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listDeviceClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listDeviceTaintRuleAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * - * list or watch objects of kind DeviceClass - * @return APIlistDeviceClassRequest + * list or watch objects of kind DeviceTaintRule + * @return APIlistDeviceTaintRuleRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistDeviceClassRequest listDeviceClass() { - return new APIlistDeviceClassRequest(); + public APIlistDeviceTaintRuleRequest listDeviceTaintRule() { + return new APIlistDeviceTaintRuleRequest(); } - private okhttp3.Call listNamespacedResourceClaimCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4182,7 +5631,7 @@ private okhttp3.Call listNamespacedResourceClaimCall(String namespace, String pr } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedResourceClaimValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaim(Async)"); @@ -4193,13 +5642,13 @@ private okhttp3.Call listNamespacedResourceClaimValidateBeforeCall(String namesp } - private ApiResponse listNamespacedResourceClaimWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedResourceClaimAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4208,20 +5657,32 @@ private okhttp3.Call listNamespacedResourceClaimAsync(String namespace, String p } public class APIlistNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedResourceClaimRequest(String namespace) { + private APIlistNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -4230,7 +5691,7 @@ private APIlistNamespacedResourceClaimRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedResourceClaimRequest */ - public APIlistNamespacedResourceClaimRequest pretty(String pretty) { + public APIlistNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4240,7 +5701,7 @@ public APIlistNamespacedResourceClaimRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedResourceClaimRequest */ - public APIlistNamespacedResourceClaimRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedResourceClaimRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -4250,7 +5711,7 @@ public APIlistNamespacedResourceClaimRequest allowWatchBookmarks(Boolean allowWa * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedResourceClaimRequest */ - public APIlistNamespacedResourceClaimRequest _continue(String _continue) { + public APIlistNamespacedResourceClaimRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -4260,7 +5721,7 @@ public APIlistNamespacedResourceClaimRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedResourceClaimRequest */ - public APIlistNamespacedResourceClaimRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedResourceClaimRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -4270,7 +5731,7 @@ public APIlistNamespacedResourceClaimRequest fieldSelector(String fieldSelector) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedResourceClaimRequest */ - public APIlistNamespacedResourceClaimRequest labelSelector(String labelSelector) { + public APIlistNamespacedResourceClaimRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -4280,7 +5741,7 @@ public APIlistNamespacedResourceClaimRequest labelSelector(String labelSelector) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedResourceClaimRequest */ - public APIlistNamespacedResourceClaimRequest limit(Integer limit) { + public APIlistNamespacedResourceClaimRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -4290,7 +5751,7 @@ public APIlistNamespacedResourceClaimRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedResourceClaimRequest */ - public APIlistNamespacedResourceClaimRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedResourceClaimRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -4300,7 +5761,7 @@ public APIlistNamespacedResourceClaimRequest resourceVersion(String resourceVers * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedResourceClaimRequest */ - public APIlistNamespacedResourceClaimRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedResourceClaimRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -4310,7 +5771,7 @@ public APIlistNamespacedResourceClaimRequest resourceVersionMatch(String resourc * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedResourceClaimRequest */ - public APIlistNamespacedResourceClaimRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedResourceClaimRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -4320,7 +5781,7 @@ public APIlistNamespacedResourceClaimRequest sendInitialEvents(Boolean sendIniti * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedResourceClaimRequest */ - public APIlistNamespacedResourceClaimRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedResourceClaimRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4330,7 +5791,7 @@ public APIlistNamespacedResourceClaimRequest timeoutSeconds(Integer timeoutSecon * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedResourceClaimRequest */ - public APIlistNamespacedResourceClaimRequest watch(Boolean watch) { + public APIlistNamespacedResourceClaimRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -4341,7 +5802,8 @@ public APIlistNamespacedResourceClaimRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4356,7 +5818,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha3ResourceClaimList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4372,7 +5835,8 @@ public V1alpha3ResourceClaimList execute() throws ApiException { * @return ApiResponse<V1alpha3ResourceClaimList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4388,7 +5852,8 @@ public ApiResponse executeWithHttpInfo() throws ApiEx * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4405,16 +5870,17 @@ public okhttp3.Call executeAsync(final ApiCallback _c * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedResourceClaimRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedResourceClaimRequest listNamespacedResourceClaim(String namespace) { + public APIlistNamespacedResourceClaimRequest listNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedResourceClaimRequest(namespace); } - private okhttp3.Call listNamespacedResourceClaimTemplateCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4510,7 +5976,7 @@ private okhttp3.Call listNamespacedResourceClaimTemplateCall(String namespace, S } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaimTemplate(Async)"); @@ -4521,13 +5987,13 @@ private okhttp3.Call listNamespacedResourceClaimTemplateValidateBeforeCall(Strin } - private ApiResponse listNamespacedResourceClaimTemplateWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedResourceClaimTemplateAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4536,20 +6002,32 @@ private okhttp3.Call listNamespacedResourceClaimTemplateAsync(String namespace, } public class APIlistNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedResourceClaimTemplateRequest(String namespace) { + private APIlistNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -4558,7 +6036,7 @@ private APIlistNamespacedResourceClaimTemplateRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistNamespacedResourceClaimTemplateRequest pretty(String pretty) { + public APIlistNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4568,7 +6046,7 @@ public APIlistNamespacedResourceClaimTemplateRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistNamespacedResourceClaimTemplateRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedResourceClaimTemplateRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -4578,7 +6056,7 @@ public APIlistNamespacedResourceClaimTemplateRequest allowWatchBookmarks(Boolean * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistNamespacedResourceClaimTemplateRequest _continue(String _continue) { + public APIlistNamespacedResourceClaimTemplateRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -4588,7 +6066,7 @@ public APIlistNamespacedResourceClaimTemplateRequest _continue(String _continue) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistNamespacedResourceClaimTemplateRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedResourceClaimTemplateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -4598,7 +6076,7 @@ public APIlistNamespacedResourceClaimTemplateRequest fieldSelector(String fieldS * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistNamespacedResourceClaimTemplateRequest labelSelector(String labelSelector) { + public APIlistNamespacedResourceClaimTemplateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -4608,7 +6086,7 @@ public APIlistNamespacedResourceClaimTemplateRequest labelSelector(String labelS * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistNamespacedResourceClaimTemplateRequest limit(Integer limit) { + public APIlistNamespacedResourceClaimTemplateRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -4618,7 +6096,7 @@ public APIlistNamespacedResourceClaimTemplateRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistNamespacedResourceClaimTemplateRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedResourceClaimTemplateRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -4628,7 +6106,7 @@ public APIlistNamespacedResourceClaimTemplateRequest resourceVersion(String reso * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistNamespacedResourceClaimTemplateRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedResourceClaimTemplateRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -4638,7 +6116,7 @@ public APIlistNamespacedResourceClaimTemplateRequest resourceVersionMatch(String * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistNamespacedResourceClaimTemplateRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedResourceClaimTemplateRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -4648,7 +6126,7 @@ public APIlistNamespacedResourceClaimTemplateRequest sendInitialEvents(Boolean s * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistNamespacedResourceClaimTemplateRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedResourceClaimTemplateRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4658,7 +6136,7 @@ public APIlistNamespacedResourceClaimTemplateRequest timeoutSeconds(Integer time * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistNamespacedResourceClaimTemplateRequest watch(Boolean watch) { + public APIlistNamespacedResourceClaimTemplateRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -4669,7 +6147,8 @@ public APIlistNamespacedResourceClaimTemplateRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4684,7 +6163,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha3ResourceClaimTemplateList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4700,7 +6180,8 @@ public V1alpha3ResourceClaimTemplateList execute() throws ApiException { * @return ApiResponse<V1alpha3ResourceClaimTemplateList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4716,7 +6197,8 @@ public ApiResponse executeWithHttpInfo() thro * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4733,16 +6215,17 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedResourceClaimTemplateRequest listNamespacedResourceClaimTemplate(String namespace) { + public APIlistNamespacedResourceClaimTemplateRequest listNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedResourceClaimTemplateRequest(namespace); } - private okhttp3.Call listResourceClaimForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceClaimForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4837,19 +6320,19 @@ private okhttp3.Call listResourceClaimForAllNamespacesCall(Boolean allowWatchBoo } @SuppressWarnings("rawtypes") - private okhttp3.Call listResourceClaimForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceClaimForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listResourceClaimForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listResourceClaimForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listResourceClaimForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceClaimForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4858,16 +6341,27 @@ private okhttp3.Call listResourceClaimForAllNamespacesAsync(Boolean allowWatchBo } public class APIlistResourceClaimForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistResourceClaimForAllNamespacesRequest() { @@ -4878,7 +6372,7 @@ private APIlistResourceClaimForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceClaimForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistResourceClaimForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -4888,7 +6382,7 @@ public APIlistResourceClaimForAllNamespacesRequest allowWatchBookmarks(Boolean a * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceClaimForAllNamespacesRequest _continue(String _continue) { + public APIlistResourceClaimForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -4898,7 +6392,7 @@ public APIlistResourceClaimForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceClaimForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistResourceClaimForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -4908,7 +6402,7 @@ public APIlistResourceClaimForAllNamespacesRequest fieldSelector(String fieldSel * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceClaimForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistResourceClaimForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -4918,7 +6412,7 @@ public APIlistResourceClaimForAllNamespacesRequest labelSelector(String labelSel * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceClaimForAllNamespacesRequest limit(Integer limit) { + public APIlistResourceClaimForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -4928,7 +6422,7 @@ public APIlistResourceClaimForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceClaimForAllNamespacesRequest pretty(String pretty) { + public APIlistResourceClaimForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4938,7 +6432,7 @@ public APIlistResourceClaimForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceClaimForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistResourceClaimForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -4948,7 +6442,7 @@ public APIlistResourceClaimForAllNamespacesRequest resourceVersion(String resour * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceClaimForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistResourceClaimForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -4958,7 +6452,7 @@ public APIlistResourceClaimForAllNamespacesRequest resourceVersionMatch(String r * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceClaimForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistResourceClaimForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -4968,7 +6462,7 @@ public APIlistResourceClaimForAllNamespacesRequest sendInitialEvents(Boolean sen * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceClaimForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistResourceClaimForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4978,7 +6472,7 @@ public APIlistResourceClaimForAllNamespacesRequest timeoutSeconds(Integer timeou * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceClaimForAllNamespacesRequest watch(Boolean watch) { + public APIlistResourceClaimForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -4989,7 +6483,8 @@ public APIlistResourceClaimForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5004,7 +6499,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha3ResourceClaimList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5020,7 +6516,8 @@ public V1alpha3ResourceClaimList execute() throws ApiException { * @return ApiResponse<V1alpha3ResourceClaimList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5036,7 +6533,8 @@ public ApiResponse executeWithHttpInfo() throws ApiEx * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5052,7 +6550,8 @@ public okhttp3.Call executeAsync(final ApiCallback _c * list or watch objects of kind ResourceClaim * @return APIlistResourceClaimForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5061,7 +6560,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c public APIlistResourceClaimForAllNamespacesRequest listResourceClaimForAllNamespaces() { return new APIlistResourceClaimForAllNamespacesRequest(); } - private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5156,19 +6655,19 @@ private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(Boolean allow } @SuppressWarnings("rawtypes") - private okhttp3.Call listResourceClaimTemplateForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceClaimTemplateForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listResourceClaimTemplateForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listResourceClaimTemplateForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listResourceClaimTemplateForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceClaimTemplateForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5177,16 +6676,27 @@ private okhttp3.Call listResourceClaimTemplateForAllNamespacesAsync(Boolean allo } public class APIlistResourceClaimTemplateForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistResourceClaimTemplateForAllNamespacesRequest() { @@ -5197,7 +6707,7 @@ private APIlistResourceClaimTemplateForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistResourceClaimTemplateForAllNamespacesRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistResourceClaimTemplateForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5207,7 +6717,7 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest allowWatchBookmarks(B * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistResourceClaimTemplateForAllNamespacesRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest _continue(String _continue) { + public APIlistResourceClaimTemplateForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5217,7 +6727,7 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest _continue(String _con * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistResourceClaimTemplateForAllNamespacesRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistResourceClaimTemplateForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5227,7 +6737,7 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest fieldSelector(String * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistResourceClaimTemplateForAllNamespacesRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistResourceClaimTemplateForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5237,7 +6747,7 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest labelSelector(String * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistResourceClaimTemplateForAllNamespacesRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest limit(Integer limit) { + public APIlistResourceClaimTemplateForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -5247,7 +6757,7 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest limit(Integer limit) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistResourceClaimTemplateForAllNamespacesRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest pretty(String pretty) { + public APIlistResourceClaimTemplateForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5257,7 +6767,7 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest pretty(String pretty) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistResourceClaimTemplateForAllNamespacesRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -5267,7 +6777,7 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersion(Strin * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistResourceClaimTemplateForAllNamespacesRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -5277,7 +6787,7 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersionMatch( * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistResourceClaimTemplateForAllNamespacesRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistResourceClaimTemplateForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -5287,7 +6797,7 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest sendInitialEvents(Boo * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistResourceClaimTemplateForAllNamespacesRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistResourceClaimTemplateForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -5297,7 +6807,7 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest timeoutSeconds(Intege * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistResourceClaimTemplateForAllNamespacesRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest watch(Boolean watch) { + public APIlistResourceClaimTemplateForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -5308,7 +6818,8 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest watch(Boolean watch) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5323,7 +6834,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha3ResourceClaimTemplateList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5339,7 +6851,8 @@ public V1alpha3ResourceClaimTemplateList execute() throws ApiException { * @return ApiResponse<V1alpha3ResourceClaimTemplateList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5355,7 +6868,8 @@ public ApiResponse executeWithHttpInfo() thro * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5371,7 +6885,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -5380,7 +6895,7 @@ public okhttp3.Call executeAsync(final ApiCallback listResourceSliceWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listResourceSliceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listResourceSliceAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceSliceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5496,16 +7011,27 @@ private okhttp3.Call listResourceSliceAsync(String pretty, Boolean allowWatchBoo } public class APIlistResourceSliceRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistResourceSliceRequest() { @@ -5516,7 +7042,7 @@ private APIlistResourceSliceRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistResourceSliceRequest */ - public APIlistResourceSliceRequest pretty(String pretty) { + public APIlistResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5526,7 +7052,7 @@ public APIlistResourceSliceRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistResourceSliceRequest */ - public APIlistResourceSliceRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistResourceSliceRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5536,7 +7062,7 @@ public APIlistResourceSliceRequest allowWatchBookmarks(Boolean allowWatchBookmar * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistResourceSliceRequest */ - public APIlistResourceSliceRequest _continue(String _continue) { + public APIlistResourceSliceRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5546,7 +7072,7 @@ public APIlistResourceSliceRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistResourceSliceRequest */ - public APIlistResourceSliceRequest fieldSelector(String fieldSelector) { + public APIlistResourceSliceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5556,7 +7082,7 @@ public APIlistResourceSliceRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistResourceSliceRequest */ - public APIlistResourceSliceRequest labelSelector(String labelSelector) { + public APIlistResourceSliceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5566,7 +7092,7 @@ public APIlistResourceSliceRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistResourceSliceRequest */ - public APIlistResourceSliceRequest limit(Integer limit) { + public APIlistResourceSliceRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -5576,7 +7102,7 @@ public APIlistResourceSliceRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistResourceSliceRequest */ - public APIlistResourceSliceRequest resourceVersion(String resourceVersion) { + public APIlistResourceSliceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -5586,7 +7112,7 @@ public APIlistResourceSliceRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistResourceSliceRequest */ - public APIlistResourceSliceRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistResourceSliceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -5596,110 +7122,376 @@ public APIlistResourceSliceRequest resourceVersionMatch(String resourceVersionMa * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistResourceSliceRequest */ - public APIlistResourceSliceRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistResourceSliceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistResourceSliceRequest + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listResourceSlice + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listResourceSlice request + * @return V1alpha3ResourceSliceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha3ResourceSliceList execute() throws ApiException { + ApiResponse localVarResp = listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listResourceSlice request with HTTP info returned + * @return ApiResponse<V1alpha3ResourceSliceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + } + + /** + * Execute listResourceSlice request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listResourceSliceAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind ResourceSlice + * @return APIlistResourceSliceRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistResourceSliceRequest listResourceSlice() { + return new APIlistResourceSliceRequest(); + } + private okhttp3.Call patchDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchDeviceClass(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchDeviceClass(Async)"); + } + + return patchDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchDeviceClassRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchDeviceClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchDeviceClassRequest + */ + public APIpatchDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchDeviceClassRequest + */ + public APIpatchDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchDeviceClassRequest + */ + public APIpatchDeviceClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchDeviceClassRequest */ - public APIlistResourceSliceRequest timeoutSeconds(Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; + public APIpatchDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; return this; } /** - * Set watch - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistResourceSliceRequest + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchDeviceClassRequest */ - public APIlistResourceSliceRequest watch(Boolean watch) { - this.watch = watch; + public APIpatchDeviceClassRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; return this; } /** - * Build call for listResourceSlice + * Build call for patchDeviceClass * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return patchDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute listResourceSlice request - * @return V1alpha3ResourceSliceList + * Execute patchDeviceClass request + * @return V1alpha3DeviceClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1alpha3ResourceSliceList execute() throws ApiException { - ApiResponse localVarResp = listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1alpha3DeviceClass execute() throws ApiException { + ApiResponse localVarResp = patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute listResourceSlice request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceSliceList> + * Execute patchDeviceClass request with HTTP info returned + * @return ApiResponse<V1alpha3DeviceClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute listResourceSlice request (asynchronously) + * Execute patchDeviceClass request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listResourceSliceAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchDeviceClassAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * list or watch objects of kind ResourceSlice - * @return APIlistResourceSliceRequest + * partially update the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @return APIpatchDeviceClassRequest * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIlistResourceSliceRequest listResourceSlice() { - return new APIlistResourceSliceRequest(); + public APIpatchDeviceClassRequest patchDeviceClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchDeviceClassRequest(name, body); } - private okhttp3.Call patchDeviceClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchDeviceTaintRuleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5716,7 +7508,7 @@ private okhttp3.Call patchDeviceClassCall(String name, V1Patch body, String pret Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}" + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -5769,46 +7561,53 @@ private okhttp3.Call patchDeviceClassCall(String name, V1Patch body, String pret } @SuppressWarnings("rawtypes") - private okhttp3.Call patchDeviceClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchDeviceClass(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling patchDeviceTaintRule(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchDeviceClass(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling patchDeviceTaintRule(Async)"); } - return patchDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - private ApiResponse patchDeviceClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse patchDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchDeviceClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchDeviceTaintRuleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = patchDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchDeviceClassRequest { + public class APIpatchDeviceTaintRuleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchDeviceClassRequest(String name, V1Patch body) { + private APIpatchDeviceTaintRuleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -5816,9 +7615,9 @@ private APIpatchDeviceClassRequest(String name, V1Patch body) { /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchDeviceClassRequest + * @return APIpatchDeviceTaintRuleRequest */ - public APIpatchDeviceClassRequest pretty(String pretty) { + public APIpatchDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5826,9 +7625,9 @@ public APIpatchDeviceClassRequest pretty(String pretty) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchDeviceClassRequest + * @return APIpatchDeviceTaintRuleRequest */ - public APIpatchDeviceClassRequest dryRun(String dryRun) { + public APIpatchDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -5836,9 +7635,9 @@ public APIpatchDeviceClassRequest dryRun(String dryRun) { /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchDeviceClassRequest + * @return APIpatchDeviceTaintRuleRequest */ - public APIpatchDeviceClassRequest fieldManager(String fieldManager) { + public APIpatchDeviceTaintRuleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -5846,9 +7645,9 @@ public APIpatchDeviceClassRequest fieldManager(String fieldManager) { /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchDeviceClassRequest + * @return APIpatchDeviceTaintRuleRequest */ - public APIpatchDeviceClassRequest fieldValidation(String fieldValidation) { + public APIpatchDeviceTaintRuleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -5856,20 +7655,21 @@ public APIpatchDeviceClassRequest fieldValidation(String fieldValidation) { /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return APIpatchDeviceClassRequest + * @return APIpatchDeviceTaintRuleRequest */ - public APIpatchDeviceClassRequest force(Boolean force) { + public APIpatchDeviceTaintRuleRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } /** - * Build call for patchDeviceClass + * Build call for patchDeviceTaintRule * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5877,78 +7677,82 @@ public APIpatchDeviceClassRequest force(Boolean force) {
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute patchDeviceClass request - * @return V1alpha3DeviceClass + * Execute patchDeviceTaintRule request + * @return V1alpha3DeviceTaintRule * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1alpha3DeviceClass execute() throws ApiException { - ApiResponse localVarResp = patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1alpha3DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = patchDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute patchDeviceClass request with HTTP info returned - * @return ApiResponse<V1alpha3DeviceClass> + * Execute patchDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1alpha3DeviceTaintRule> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute patchDeviceClass request (asynchronously) + * Execute patchDeviceTaintRule request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchDeviceClassAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchDeviceTaintRuleAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * partially update the specified DeviceClass - * @param name name of the DeviceClass (required) + * partially update the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) * @param body (required) - * @return APIpatchDeviceClassRequest + * @return APIpatchDeviceTaintRuleRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchDeviceClassRequest patchDeviceClass(String name, V1Patch body) { - return new APIpatchDeviceClassRequest(name, body); + public APIpatchDeviceTaintRuleRequest patchDeviceTaintRule(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchDeviceTaintRuleRequest(name, body); } - private okhttp3.Call patchNamespacedResourceClaimCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6019,7 +7823,7 @@ private okhttp3.Call patchNamespacedResourceClaimCall(String name, String namesp } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedResourceClaimValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaim(Async)"); @@ -6040,13 +7844,13 @@ private okhttp3.Call patchNamespacedResourceClaimValidateBeforeCall(String name, } - private ApiResponse patchNamespacedResourceClaimWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedResourceClaimAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6055,16 +7859,24 @@ private okhttp3.Call patchNamespacedResourceClaimAsync(String name, String names } public class APIpatchNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedResourceClaimRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -6075,7 +7887,7 @@ private APIpatchNamespacedResourceClaimRequest(String name, String namespace, V1 * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedResourceClaimRequest */ - public APIpatchNamespacedResourceClaimRequest pretty(String pretty) { + public APIpatchNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6085,7 +7897,7 @@ public APIpatchNamespacedResourceClaimRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedResourceClaimRequest */ - public APIpatchNamespacedResourceClaimRequest dryRun(String dryRun) { + public APIpatchNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6095,7 +7907,7 @@ public APIpatchNamespacedResourceClaimRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedResourceClaimRequest */ - public APIpatchNamespacedResourceClaimRequest fieldManager(String fieldManager) { + public APIpatchNamespacedResourceClaimRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6105,7 +7917,7 @@ public APIpatchNamespacedResourceClaimRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedResourceClaimRequest */ - public APIpatchNamespacedResourceClaimRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedResourceClaimRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -6115,7 +7927,7 @@ public APIpatchNamespacedResourceClaimRequest fieldValidation(String fieldValida * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedResourceClaimRequest */ - public APIpatchNamespacedResourceClaimRequest force(Boolean force) { + public APIpatchNamespacedResourceClaimRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -6126,7 +7938,8 @@ public APIpatchNamespacedResourceClaimRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6142,7 +7955,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha3ResourceClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6159,7 +7973,8 @@ public V1alpha3ResourceClaim execute() throws ApiException { * @return ApiResponse<V1alpha3ResourceClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6176,7 +7991,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6196,17 +8012,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callb * @param body (required) * @return APIpatchNamespacedResourceClaimRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedResourceClaimRequest patchNamespacedResourceClaim(String name, String namespace, V1Patch body) { + public APIpatchNamespacedResourceClaimRequest patchNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedResourceClaimRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedResourceClaimStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceClaimStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6277,7 +8094,7 @@ private okhttp3.Call patchNamespacedResourceClaimStatusCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceClaimStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaimStatus(Async)"); @@ -6298,13 +8115,13 @@ private okhttp3.Call patchNamespacedResourceClaimStatusValidateBeforeCall(String } - private ApiResponse patchNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedResourceClaimStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedResourceClaimStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceClaimStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6313,16 +8130,24 @@ private okhttp3.Call patchNamespacedResourceClaimStatusAsync(String name, String } public class APIpatchNamespacedResourceClaimStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedResourceClaimStatusRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedResourceClaimStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -6333,7 +8158,7 @@ private APIpatchNamespacedResourceClaimStatusRequest(String name, String namespa * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedResourceClaimStatusRequest */ - public APIpatchNamespacedResourceClaimStatusRequest pretty(String pretty) { + public APIpatchNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6343,7 +8168,7 @@ public APIpatchNamespacedResourceClaimStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedResourceClaimStatusRequest */ - public APIpatchNamespacedResourceClaimStatusRequest dryRun(String dryRun) { + public APIpatchNamespacedResourceClaimStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6353,7 +8178,7 @@ public APIpatchNamespacedResourceClaimStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedResourceClaimStatusRequest */ - public APIpatchNamespacedResourceClaimStatusRequest fieldManager(String fieldManager) { + public APIpatchNamespacedResourceClaimStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6363,7 +8188,7 @@ public APIpatchNamespacedResourceClaimStatusRequest fieldManager(String fieldMan * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedResourceClaimStatusRequest */ - public APIpatchNamespacedResourceClaimStatusRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedResourceClaimStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -6373,7 +8198,7 @@ public APIpatchNamespacedResourceClaimStatusRequest fieldValidation(String field * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedResourceClaimStatusRequest */ - public APIpatchNamespacedResourceClaimStatusRequest force(Boolean force) { + public APIpatchNamespacedResourceClaimStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -6384,7 +8209,8 @@ public APIpatchNamespacedResourceClaimStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6400,7 +8226,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha3ResourceClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6417,7 +8244,8 @@ public V1alpha3ResourceClaim execute() throws ApiException { * @return ApiResponse<V1alpha3ResourceClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6434,7 +8262,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6454,17 +8283,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callb * @param body (required) * @return APIpatchNamespacedResourceClaimStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedResourceClaimStatusRequest patchNamespacedResourceClaimStatus(String name, String namespace, V1Patch body) { + public APIpatchNamespacedResourceClaimStatusRequest patchNamespacedResourceClaimStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedResourceClaimStatusRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedResourceClaimTemplateCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6535,7 +8365,7 @@ private okhttp3.Call patchNamespacedResourceClaimTemplateCall(String name, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaimTemplate(Async)"); @@ -6556,13 +8386,13 @@ private okhttp3.Call patchNamespacedResourceClaimTemplateValidateBeforeCall(Stri } - private ApiResponse patchNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedResourceClaimTemplateAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6571,16 +8401,24 @@ private okhttp3.Call patchNamespacedResourceClaimTemplateAsync(String name, Stri } public class APIpatchNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedResourceClaimTemplateRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -6591,7 +8429,7 @@ private APIpatchNamespacedResourceClaimTemplateRequest(String name, String names * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedResourceClaimTemplateRequest */ - public APIpatchNamespacedResourceClaimTemplateRequest pretty(String pretty) { + public APIpatchNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6601,7 +8439,7 @@ public APIpatchNamespacedResourceClaimTemplateRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedResourceClaimTemplateRequest */ - public APIpatchNamespacedResourceClaimTemplateRequest dryRun(String dryRun) { + public APIpatchNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6611,7 +8449,7 @@ public APIpatchNamespacedResourceClaimTemplateRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedResourceClaimTemplateRequest */ - public APIpatchNamespacedResourceClaimTemplateRequest fieldManager(String fieldManager) { + public APIpatchNamespacedResourceClaimTemplateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6621,7 +8459,7 @@ public APIpatchNamespacedResourceClaimTemplateRequest fieldManager(String fieldM * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedResourceClaimTemplateRequest */ - public APIpatchNamespacedResourceClaimTemplateRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedResourceClaimTemplateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -6631,7 +8469,7 @@ public APIpatchNamespacedResourceClaimTemplateRequest fieldValidation(String fie * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedResourceClaimTemplateRequest */ - public APIpatchNamespacedResourceClaimTemplateRequest force(Boolean force) { + public APIpatchNamespacedResourceClaimTemplateRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -6642,7 +8480,8 @@ public APIpatchNamespacedResourceClaimTemplateRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6658,7 +8497,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha3ResourceClaimTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6675,7 +8515,8 @@ public V1alpha3ResourceClaimTemplate execute() throws ApiException { * @return ApiResponse<V1alpha3ResourceClaimTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6692,7 +8533,8 @@ public ApiResponse executeWithHttpInfo() throws A * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6712,17 +8554,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedResourceClaimTemplateRequest patchNamespacedResourceClaimTemplate(String name, String namespace, V1Patch body) { + public APIpatchNamespacedResourceClaimTemplateRequest patchNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedResourceClaimTemplateRequest(name, namespace, body); } - private okhttp3.Call patchResourceSliceCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6792,7 +8635,7 @@ private okhttp3.Call patchResourceSliceCall(String name, V1Patch body, String pr } @SuppressWarnings("rawtypes") - private okhttp3.Call patchResourceSliceValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchResourceSlice(Async)"); @@ -6808,13 +8651,13 @@ private okhttp3.Call patchResourceSliceValidateBeforeCall(String name, V1Patch b } - private ApiResponse patchResourceSliceWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchResourceSliceAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6823,15 +8666,22 @@ private okhttp3.Call patchResourceSliceAsync(String name, V1Patch body, String p } public class APIpatchResourceSliceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchResourceSliceRequest(String name, V1Patch body) { + private APIpatchResourceSliceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -6841,7 +8691,7 @@ private APIpatchResourceSliceRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchResourceSliceRequest */ - public APIpatchResourceSliceRequest pretty(String pretty) { + public APIpatchResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6851,7 +8701,7 @@ public APIpatchResourceSliceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchResourceSliceRequest */ - public APIpatchResourceSliceRequest dryRun(String dryRun) { + public APIpatchResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6861,7 +8711,7 @@ public APIpatchResourceSliceRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchResourceSliceRequest */ - public APIpatchResourceSliceRequest fieldManager(String fieldManager) { + public APIpatchResourceSliceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6871,7 +8721,7 @@ public APIpatchResourceSliceRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchResourceSliceRequest */ - public APIpatchResourceSliceRequest fieldValidation(String fieldValidation) { + public APIpatchResourceSliceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -6881,97 +8731,284 @@ public APIpatchResourceSliceRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchResourceSliceRequest */ - public APIpatchResourceSliceRequest force(Boolean force) { - this.force = force; + public APIpatchResourceSliceRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchResourceSlice + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchResourceSlice request + * @return V1alpha3ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha3ResourceSlice execute() throws ApiException { + ApiResponse localVarResp = patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchResourceSlice request with HTTP info returned + * @return ApiResponse<V1alpha3ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchResourceSlice request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchResourceSliceAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @return APIpatchResourceSliceRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchResourceSliceRequest patchResourceSlice(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchResourceSliceRequest(name, body); + } + private okhttp3.Call readDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readDeviceClass(Async)"); + } + + return readDeviceClassCall(name, pretty, _callback); + + } + + + private ApiResponse readDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadDeviceClassRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadDeviceClassRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreadDeviceClassRequest + */ + public APIreadDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; return this; } /** - * Build call for patchResourceSlice + * Build call for readDeviceClass * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readDeviceClassCall(name, pretty, _callback); } /** - * Execute patchResourceSlice request - * @return V1alpha3ResourceSlice + * Execute readDeviceClass request + * @return V1alpha3DeviceClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1alpha3ResourceSlice execute() throws ApiException { - ApiResponse localVarResp = patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1alpha3DeviceClass execute() throws ApiException { + ApiResponse localVarResp = readDeviceClassWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute patchResourceSlice request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceSlice> + * Execute readDeviceClass request with HTTP info returned + * @return ApiResponse<V1alpha3DeviceClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readDeviceClassWithHttpInfo(name, pretty); } /** - * Execute patchResourceSlice request (asynchronously) + * Execute readDeviceClass request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchResourceSliceAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readDeviceClassAsync(name, pretty, _callback); } } /** * - * partially update the specified ResourceSlice - * @param name name of the ResourceSlice (required) - * @param body (required) - * @return APIpatchResourceSliceRequest + * read the specified DeviceClass + * @param name name of the DeviceClass (required) + * @return APIreadDeviceClassRequest * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchResourceSliceRequest patchResourceSlice(String name, V1Patch body) { - return new APIpatchResourceSliceRequest(name, body); + public APIreadDeviceClassRequest readDeviceClass(@jakarta.annotation.Nonnull String name) { + return new APIreadDeviceClassRequest(name); } - private okhttp3.Call readDeviceClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readDeviceTaintRuleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6988,7 +9025,7 @@ private okhttp3.Call readDeviceClassCall(String name, String pretty, final ApiCa Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}" + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -7024,129 +9061,136 @@ private okhttp3.Call readDeviceClassCall(String name, String pretty, final ApiCa } @SuppressWarnings("rawtypes") - private okhttp3.Call readDeviceClassValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readDeviceClass(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readDeviceTaintRule(Async)"); } - return readDeviceClassCall(name, pretty, _callback); + return readDeviceTaintRuleCall(name, pretty, _callback); } - private ApiResponse readDeviceClassWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readDeviceTaintRuleValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readDeviceClassAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readDeviceTaintRuleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readDeviceTaintRuleValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadDeviceClassRequest { + public class APIreadDeviceTaintRuleRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadDeviceClassRequest(String name) { + private APIreadDeviceTaintRuleRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadDeviceClassRequest + * @return APIreadDeviceTaintRuleRequest */ - public APIreadDeviceClassRequest pretty(String pretty) { + public APIreadDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readDeviceClass + * Build call for readDeviceTaintRule * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readDeviceClassCall(name, pretty, _callback); + return readDeviceTaintRuleCall(name, pretty, _callback); } /** - * Execute readDeviceClass request - * @return V1alpha3DeviceClass + * Execute readDeviceTaintRule request + * @return V1alpha3DeviceTaintRule * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha3DeviceClass execute() throws ApiException { - ApiResponse localVarResp = readDeviceClassWithHttpInfo(name, pretty); + public V1alpha3DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = readDeviceTaintRuleWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute readDeviceClass request with HTTP info returned - * @return ApiResponse<V1alpha3DeviceClass> + * Execute readDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1alpha3DeviceTaintRule> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readDeviceClassWithHttpInfo(name, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readDeviceTaintRuleWithHttpInfo(name, pretty); } /** - * Execute readDeviceClass request (asynchronously) + * Execute readDeviceTaintRule request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readDeviceClassAsync(name, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readDeviceTaintRuleAsync(name, pretty, _callback); } } /** * - * read the specified DeviceClass - * @param name name of the DeviceClass (required) - * @return APIreadDeviceClassRequest + * read the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @return APIreadDeviceTaintRuleRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadDeviceClassRequest readDeviceClass(String name) { - return new APIreadDeviceClassRequest(name); + public APIreadDeviceTaintRuleRequest readDeviceTaintRule(@jakarta.annotation.Nonnull String name) { + return new APIreadDeviceTaintRuleRequest(name); } - private okhttp3.Call readNamespacedResourceClaimCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7200,7 +9244,7 @@ private okhttp3.Call readNamespacedResourceClaimCall(String name, String namespa } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedResourceClaimValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaim(Async)"); @@ -7216,13 +9260,13 @@ private okhttp3.Call readNamespacedResourceClaimValidateBeforeCall(String name, } - private ApiResponse readNamespacedResourceClaimWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedResourceClaimAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7231,11 +9275,14 @@ private okhttp3.Call readNamespacedResourceClaimAsync(String name, String namesp } public class APIreadNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedResourceClaimRequest(String name, String namespace) { + private APIreadNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -7245,7 +9292,7 @@ private APIreadNamespacedResourceClaimRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedResourceClaimRequest */ - public APIreadNamespacedResourceClaimRequest pretty(String pretty) { + public APIreadNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7256,7 +9303,8 @@ public APIreadNamespacedResourceClaimRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7271,7 +9319,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha3ResourceClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7287,7 +9336,8 @@ public V1alpha3ResourceClaim execute() throws ApiException { * @return ApiResponse<V1alpha3ResourceClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7303,7 +9353,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7321,16 +9372,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callb * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedResourceClaimRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedResourceClaimRequest readNamespacedResourceClaim(String name, String namespace) { + public APIreadNamespacedResourceClaimRequest readNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedResourceClaimRequest(name, namespace); } - private okhttp3.Call readNamespacedResourceClaimStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7384,7 +9436,7 @@ private okhttp3.Call readNamespacedResourceClaimStatusCall(String name, String n } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimStatus(Async)"); @@ -7400,13 +9452,13 @@ private okhttp3.Call readNamespacedResourceClaimStatusValidateBeforeCall(String } - private ApiResponse readNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedResourceClaimStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedResourceClaimStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7415,11 +9467,14 @@ private okhttp3.Call readNamespacedResourceClaimStatusAsync(String name, String } public class APIreadNamespacedResourceClaimStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedResourceClaimStatusRequest(String name, String namespace) { + private APIreadNamespacedResourceClaimStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -7429,7 +9484,7 @@ private APIreadNamespacedResourceClaimStatusRequest(String name, String namespac * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedResourceClaimStatusRequest */ - public APIreadNamespacedResourceClaimStatusRequest pretty(String pretty) { + public APIreadNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7440,7 +9495,8 @@ public APIreadNamespacedResourceClaimStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7455,7 +9511,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha3ResourceClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7471,7 +9528,8 @@ public V1alpha3ResourceClaim execute() throws ApiException { * @return ApiResponse<V1alpha3ResourceClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7487,7 +9545,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7505,16 +9564,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callb * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedResourceClaimStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedResourceClaimStatusRequest readNamespacedResourceClaimStatus(String name, String namespace) { + public APIreadNamespacedResourceClaimStatusRequest readNamespacedResourceClaimStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedResourceClaimStatusRequest(name, namespace); } - private okhttp3.Call readNamespacedResourceClaimTemplateCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7568,7 +9628,7 @@ private okhttp3.Call readNamespacedResourceClaimTemplateCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimTemplate(Async)"); @@ -7584,13 +9644,13 @@ private okhttp3.Call readNamespacedResourceClaimTemplateValidateBeforeCall(Strin } - private ApiResponse readNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedResourceClaimTemplateAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7599,11 +9659,14 @@ private okhttp3.Call readNamespacedResourceClaimTemplateAsync(String name, Strin } public class APIreadNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedResourceClaimTemplateRequest(String name, String namespace) { + private APIreadNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -7613,7 +9676,7 @@ private APIreadNamespacedResourceClaimTemplateRequest(String name, String namesp * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedResourceClaimTemplateRequest */ - public APIreadNamespacedResourceClaimTemplateRequest pretty(String pretty) { + public APIreadNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7624,7 +9687,8 @@ public APIreadNamespacedResourceClaimTemplateRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7639,7 +9703,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha3ResourceClaimTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7655,7 +9720,8 @@ public V1alpha3ResourceClaimTemplate execute() throws ApiException { * @return ApiResponse<V1alpha3ResourceClaimTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7671,7 +9737,8 @@ public ApiResponse executeWithHttpInfo() throws A * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7689,16 +9756,17 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedResourceClaimTemplateRequest readNamespacedResourceClaimTemplate(String name, String namespace) { + public APIreadNamespacedResourceClaimTemplateRequest readNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedResourceClaimTemplateRequest(name, namespace); } - private okhttp3.Call readResourceSliceCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7751,7 +9819,7 @@ private okhttp3.Call readResourceSliceCall(String name, String pretty, final Api } @SuppressWarnings("rawtypes") - private okhttp3.Call readResourceSliceValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readResourceSlice(Async)"); @@ -7762,13 +9830,13 @@ private okhttp3.Call readResourceSliceValidateBeforeCall(String name, String pre } - private ApiResponse readResourceSliceWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readResourceSliceAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7777,10 +9845,12 @@ private okhttp3.Call readResourceSliceAsync(String name, String pretty, final Ap } public class APIreadResourceSliceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadResourceSliceRequest(String name) { + private APIreadResourceSliceRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -7789,7 +9859,7 @@ private APIreadResourceSliceRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadResourceSliceRequest */ - public APIreadResourceSliceRequest pretty(String pretty) { + public APIreadResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7800,7 +9870,8 @@ public APIreadResourceSliceRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7815,7 +9886,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha3ResourceSlice * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7831,7 +9903,8 @@ public V1alpha3ResourceSlice execute() throws ApiException { * @return ApiResponse<V1alpha3ResourceSlice> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7847,7 +9920,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7864,16 +9938,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callb * @param name name of the ResourceSlice (required) * @return APIreadResourceSliceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadResourceSliceRequest readResourceSlice(String name) { + public APIreadResourceSliceRequest readResourceSlice(@jakarta.annotation.Nonnull String name) { return new APIreadResourceSliceRequest(name); } - private okhttp3.Call replaceDeviceClassCall(String name, V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7939,7 +10014,7 @@ private okhttp3.Call replaceDeviceClassCall(String name, V1alpha3DeviceClass bod } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceDeviceClassValidateBeforeCall(String name, V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceDeviceClass(Async)"); @@ -7955,13 +10030,13 @@ private okhttp3.Call replaceDeviceClassValidateBeforeCall(String name, V1alpha3D } - private ApiResponse replaceDeviceClassWithHttpInfo(String name, V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceDeviceClassAsync(String name, V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7970,14 +10045,20 @@ private okhttp3.Call replaceDeviceClassAsync(String name, V1alpha3DeviceClass bo } public class APIreplaceDeviceClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1alpha3DeviceClass body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceDeviceClassRequest(String name, V1alpha3DeviceClass body) { + private APIreplaceDeviceClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceClass body) { this.name = name; this.body = body; } @@ -7987,7 +10068,7 @@ private APIreplaceDeviceClassRequest(String name, V1alpha3DeviceClass body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceDeviceClassRequest */ - public APIreplaceDeviceClassRequest pretty(String pretty) { + public APIreplaceDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7997,7 +10078,7 @@ public APIreplaceDeviceClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceDeviceClassRequest */ - public APIreplaceDeviceClassRequest dryRun(String dryRun) { + public APIreplaceDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -8007,7 +10088,7 @@ public APIreplaceDeviceClassRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceDeviceClassRequest */ - public APIreplaceDeviceClassRequest fieldManager(String fieldManager) { + public APIreplaceDeviceClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -8017,7 +10098,7 @@ public APIreplaceDeviceClassRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceDeviceClassRequest */ - public APIreplaceDeviceClassRequest fieldValidation(String fieldValidation) { + public APIreplaceDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -8028,7 +10109,8 @@ public APIreplaceDeviceClassRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8044,7 +10126,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha3DeviceClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8061,7 +10144,8 @@ public V1alpha3DeviceClass execute() throws ApiException { * @return ApiResponse<V1alpha3DeviceClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8078,7 +10162,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8097,17 +10182,263 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac * @param body (required) * @return APIreplaceDeviceClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceDeviceClassRequest replaceDeviceClass(String name, V1alpha3DeviceClass body) { + public APIreplaceDeviceClassRequest replaceDeviceClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceClass body) { return new APIreplaceDeviceClassRequest(name, body); } - private okhttp3.Call replaceNamespacedResourceClaimCall(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceDeviceTaintRule(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceDeviceTaintRule(Async)"); + } + + return replaceDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse replaceDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call replaceDeviceTaintRuleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreplaceDeviceTaintRuleRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1alpha3DeviceTaintRule body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIreplaceDeviceTaintRuleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreplaceDeviceTaintRuleRequest + */ + public APIreplaceDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceDeviceTaintRuleRequest + */ + public APIreplaceDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceDeviceTaintRuleRequest + */ + public APIreplaceDeviceTaintRuleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceDeviceTaintRuleRequest + */ + public APIreplaceDeviceTaintRuleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceDeviceTaintRule + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return replaceDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute replaceDeviceTaintRule request + * @return V1alpha3DeviceTaintRule + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha3DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = replaceDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute replaceDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1alpha3DeviceTaintRule> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute replaceDeviceTaintRule request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceDeviceTaintRuleAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * replace the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param body (required) + * @return APIreplaceDeviceTaintRuleRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIreplaceDeviceTaintRuleRequest replaceDeviceTaintRule(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body) { + return new APIreplaceDeviceTaintRuleRequest(name, body); + } + private okhttp3.Call replaceNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8174,7 +10505,7 @@ private okhttp3.Call replaceNamespacedResourceClaimCall(String name, String name } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedResourceClaimValidateBeforeCall(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaim(Async)"); @@ -8195,13 +10526,13 @@ private okhttp3.Call replaceNamespacedResourceClaimValidateBeforeCall(String nam } - private ApiResponse replaceNamespacedResourceClaimWithHttpInfo(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedResourceClaimAsync(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8210,15 +10541,22 @@ private okhttp3.Call replaceNamespacedResourceClaimAsync(String name, String nam } public class APIreplaceNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1alpha3ResourceClaim body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedResourceClaimRequest(String name, String namespace, V1alpha3ResourceClaim body) { + private APIreplaceNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body) { this.name = name; this.namespace = namespace; this.body = body; @@ -8229,7 +10567,7 @@ private APIreplaceNamespacedResourceClaimRequest(String name, String namespace, * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedResourceClaimRequest */ - public APIreplaceNamespacedResourceClaimRequest pretty(String pretty) { + public APIreplaceNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8239,7 +10577,7 @@ public APIreplaceNamespacedResourceClaimRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedResourceClaimRequest */ - public APIreplaceNamespacedResourceClaimRequest dryRun(String dryRun) { + public APIreplaceNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -8249,7 +10587,7 @@ public APIreplaceNamespacedResourceClaimRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedResourceClaimRequest */ - public APIreplaceNamespacedResourceClaimRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedResourceClaimRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -8259,7 +10597,7 @@ public APIreplaceNamespacedResourceClaimRequest fieldManager(String fieldManager * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedResourceClaimRequest */ - public APIreplaceNamespacedResourceClaimRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedResourceClaimRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -8270,7 +10608,8 @@ public APIreplaceNamespacedResourceClaimRequest fieldValidation(String fieldVali * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8286,7 +10625,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha3ResourceClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8303,7 +10643,8 @@ public V1alpha3ResourceClaim execute() throws ApiException { * @return ApiResponse<V1alpha3ResourceClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8320,7 +10661,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8340,17 +10682,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callb * @param body (required) * @return APIreplaceNamespacedResourceClaimRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedResourceClaimRequest replaceNamespacedResourceClaim(String name, String namespace, V1alpha3ResourceClaim body) { + public APIreplaceNamespacedResourceClaimRequest replaceNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body) { return new APIreplaceNamespacedResourceClaimRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedResourceClaimStatusCall(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceClaimStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8417,7 +10760,7 @@ private okhttp3.Call replaceNamespacedResourceClaimStatusCall(String name, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceClaimStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaimStatus(Async)"); @@ -8438,13 +10781,13 @@ private okhttp3.Call replaceNamespacedResourceClaimStatusValidateBeforeCall(Stri } - private ApiResponse replaceNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedResourceClaimStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedResourceClaimStatusAsync(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceClaimStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8453,15 +10796,22 @@ private okhttp3.Call replaceNamespacedResourceClaimStatusAsync(String name, Stri } public class APIreplaceNamespacedResourceClaimStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1alpha3ResourceClaim body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedResourceClaimStatusRequest(String name, String namespace, V1alpha3ResourceClaim body) { + private APIreplaceNamespacedResourceClaimStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body) { this.name = name; this.namespace = namespace; this.body = body; @@ -8472,7 +10822,7 @@ private APIreplaceNamespacedResourceClaimStatusRequest(String name, String names * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedResourceClaimStatusRequest */ - public APIreplaceNamespacedResourceClaimStatusRequest pretty(String pretty) { + public APIreplaceNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8482,7 +10832,7 @@ public APIreplaceNamespacedResourceClaimStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedResourceClaimStatusRequest */ - public APIreplaceNamespacedResourceClaimStatusRequest dryRun(String dryRun) { + public APIreplaceNamespacedResourceClaimStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -8492,7 +10842,7 @@ public APIreplaceNamespacedResourceClaimStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedResourceClaimStatusRequest */ - public APIreplaceNamespacedResourceClaimStatusRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedResourceClaimStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -8502,7 +10852,7 @@ public APIreplaceNamespacedResourceClaimStatusRequest fieldManager(String fieldM * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedResourceClaimStatusRequest */ - public APIreplaceNamespacedResourceClaimStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedResourceClaimStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -8513,7 +10863,8 @@ public APIreplaceNamespacedResourceClaimStatusRequest fieldValidation(String fie * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8529,7 +10880,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha3ResourceClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8546,7 +10898,8 @@ public V1alpha3ResourceClaim execute() throws ApiException { * @return ApiResponse<V1alpha3ResourceClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8563,7 +10916,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8583,17 +10937,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callb * @param body (required) * @return APIreplaceNamespacedResourceClaimStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedResourceClaimStatusRequest replaceNamespacedResourceClaimStatus(String name, String namespace, V1alpha3ResourceClaim body) { + public APIreplaceNamespacedResourceClaimStatusRequest replaceNamespacedResourceClaimStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body) { return new APIreplaceNamespacedResourceClaimStatusRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedResourceClaimTemplateCall(String name, String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8660,7 +11015,7 @@ private okhttp3.Call replaceNamespacedResourceClaimTemplateCall(String name, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaimTemplate(Async)"); @@ -8681,13 +11036,13 @@ private okhttp3.Call replaceNamespacedResourceClaimTemplateValidateBeforeCall(St } - private ApiResponse replaceNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedResourceClaimTemplateAsync(String name, String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8696,15 +11051,22 @@ private okhttp3.Call replaceNamespacedResourceClaimTemplateAsync(String name, St } public class APIreplaceNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1alpha3ResourceClaimTemplate body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedResourceClaimTemplateRequest(String name, String namespace, V1alpha3ResourceClaimTemplate body) { + private APIreplaceNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body) { this.name = name; this.namespace = namespace; this.body = body; @@ -8715,7 +11077,7 @@ private APIreplaceNamespacedResourceClaimTemplateRequest(String name, String nam * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedResourceClaimTemplateRequest */ - public APIreplaceNamespacedResourceClaimTemplateRequest pretty(String pretty) { + public APIreplaceNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8725,7 +11087,7 @@ public APIreplaceNamespacedResourceClaimTemplateRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedResourceClaimTemplateRequest */ - public APIreplaceNamespacedResourceClaimTemplateRequest dryRun(String dryRun) { + public APIreplaceNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -8735,7 +11097,7 @@ public APIreplaceNamespacedResourceClaimTemplateRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedResourceClaimTemplateRequest */ - public APIreplaceNamespacedResourceClaimTemplateRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedResourceClaimTemplateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -8745,7 +11107,7 @@ public APIreplaceNamespacedResourceClaimTemplateRequest fieldManager(String fiel * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedResourceClaimTemplateRequest */ - public APIreplaceNamespacedResourceClaimTemplateRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedResourceClaimTemplateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -8756,7 +11118,8 @@ public APIreplaceNamespacedResourceClaimTemplateRequest fieldValidation(String f * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8772,7 +11135,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha3ResourceClaimTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8789,7 +11153,8 @@ public V1alpha3ResourceClaimTemplate execute() throws ApiException { * @return ApiResponse<V1alpha3ResourceClaimTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8806,7 +11171,8 @@ public ApiResponse executeWithHttpInfo() throws A * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8826,17 +11192,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedResourceClaimTemplateRequest replaceNamespacedResourceClaimTemplate(String name, String namespace, V1alpha3ResourceClaimTemplate body) { + public APIreplaceNamespacedResourceClaimTemplateRequest replaceNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body) { return new APIreplaceNamespacedResourceClaimTemplateRequest(name, namespace, body); } - private okhttp3.Call replaceResourceSliceCall(String name, V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8902,7 +11269,7 @@ private okhttp3.Call replaceResourceSliceCall(String name, V1alpha3ResourceSlice } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceResourceSliceValidateBeforeCall(String name, V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceResourceSlice(Async)"); @@ -8918,13 +11285,13 @@ private okhttp3.Call replaceResourceSliceValidateBeforeCall(String name, V1alpha } - private ApiResponse replaceResourceSliceWithHttpInfo(String name, V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceResourceSliceAsync(String name, V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8933,14 +11300,20 @@ private okhttp3.Call replaceResourceSliceAsync(String name, V1alpha3ResourceSlic } public class APIreplaceResourceSliceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1alpha3ResourceSlice body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceResourceSliceRequest(String name, V1alpha3ResourceSlice body) { + private APIreplaceResourceSliceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourceSlice body) { this.name = name; this.body = body; } @@ -8950,7 +11323,7 @@ private APIreplaceResourceSliceRequest(String name, V1alpha3ResourceSlice body) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceResourceSliceRequest */ - public APIreplaceResourceSliceRequest pretty(String pretty) { + public APIreplaceResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8960,7 +11333,7 @@ public APIreplaceResourceSliceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceResourceSliceRequest */ - public APIreplaceResourceSliceRequest dryRun(String dryRun) { + public APIreplaceResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -8970,7 +11343,7 @@ public APIreplaceResourceSliceRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceResourceSliceRequest */ - public APIreplaceResourceSliceRequest fieldManager(String fieldManager) { + public APIreplaceResourceSliceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -8980,7 +11353,7 @@ public APIreplaceResourceSliceRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceResourceSliceRequest */ - public APIreplaceResourceSliceRequest fieldValidation(String fieldValidation) { + public APIreplaceResourceSliceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -8991,7 +11364,8 @@ public APIreplaceResourceSliceRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -9007,7 +11381,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha3ResourceSlice * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9024,7 +11399,8 @@ public V1alpha3ResourceSlice execute() throws ApiException { * @return ApiResponse<V1alpha3ResourceSlice> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9041,7 +11417,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9060,14 +11437,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callb * @param body (required) * @return APIreplaceResourceSliceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceResourceSliceRequest replaceResourceSlice(String name, V1alpha3ResourceSlice body) { + public APIreplaceResourceSliceRequest replaceResourceSlice(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourceSlice body) { return new APIreplaceResourceSliceRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java index 9c28424260..b1d03602cb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java @@ -82,7 +82,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createDeviceClassCall(V1beta1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createDeviceClassCall(@jakarta.annotation.Nonnull V1beta1DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -147,7 +147,7 @@ private okhttp3.Call createDeviceClassCall(V1beta1DeviceClass body, String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call createDeviceClassValidateBeforeCall(V1beta1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull V1beta1DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createDeviceClass(Async)"); @@ -158,13 +158,13 @@ private okhttp3.Call createDeviceClassValidateBeforeCall(V1beta1DeviceClass body } - private ApiResponse createDeviceClassWithHttpInfo(V1beta1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull V1beta1DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createDeviceClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createDeviceClassAsync(V1beta1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createDeviceClassAsync(@jakarta.annotation.Nonnull V1beta1DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createDeviceClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -173,13 +173,18 @@ private okhttp3.Call createDeviceClassAsync(V1beta1DeviceClass body, String pret } public class APIcreateDeviceClassRequest { + @jakarta.annotation.Nonnull private final V1beta1DeviceClass body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateDeviceClassRequest(V1beta1DeviceClass body) { + private APIcreateDeviceClassRequest(@jakarta.annotation.Nonnull V1beta1DeviceClass body) { this.body = body; } @@ -188,7 +193,7 @@ private APIcreateDeviceClassRequest(V1beta1DeviceClass body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateDeviceClassRequest */ - public APIcreateDeviceClassRequest pretty(String pretty) { + public APIcreateDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -198,7 +203,7 @@ public APIcreateDeviceClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateDeviceClassRequest */ - public APIcreateDeviceClassRequest dryRun(String dryRun) { + public APIcreateDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -208,7 +213,7 @@ public APIcreateDeviceClassRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateDeviceClassRequest */ - public APIcreateDeviceClassRequest fieldManager(String fieldManager) { + public APIcreateDeviceClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -218,7 +223,7 @@ public APIcreateDeviceClassRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateDeviceClassRequest */ - public APIcreateDeviceClassRequest fieldValidation(String fieldValidation) { + public APIcreateDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -229,7 +234,8 @@ public APIcreateDeviceClassRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -246,7 +252,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1DeviceClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -264,7 +271,8 @@ public V1beta1DeviceClass execute() throws ApiException { * @return ApiResponse<V1beta1DeviceClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -282,7 +290,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -301,7 +310,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param body (required) * @return APIcreateDeviceClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -309,10 +319,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateDeviceClassRequest createDeviceClass(V1beta1DeviceClass body) { + public APIcreateDeviceClassRequest createDeviceClass(@jakarta.annotation.Nonnull V1beta1DeviceClass body) { return new APIcreateDeviceClassRequest(body); } - private okhttp3.Call createNamespacedResourceClaimCall(String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -378,7 +388,7 @@ private okhttp3.Call createNamespacedResourceClaimCall(String namespace, V1beta1 } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedResourceClaimValidateBeforeCall(String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceClaim(Async)"); @@ -394,13 +404,13 @@ private okhttp3.Call createNamespacedResourceClaimValidateBeforeCall(String name } - private ApiResponse createNamespacedResourceClaimWithHttpInfo(String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedResourceClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedResourceClaimAsync(String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedResourceClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -409,14 +419,20 @@ private okhttp3.Call createNamespacedResourceClaimAsync(String namespace, V1beta } public class APIcreateNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1beta1ResourceClaim body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedResourceClaimRequest(String namespace, V1beta1ResourceClaim body) { + private APIcreateNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaim body) { this.namespace = namespace; this.body = body; } @@ -426,7 +442,7 @@ private APIcreateNamespacedResourceClaimRequest(String namespace, V1beta1Resourc * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedResourceClaimRequest */ - public APIcreateNamespacedResourceClaimRequest pretty(String pretty) { + public APIcreateNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -436,7 +452,7 @@ public APIcreateNamespacedResourceClaimRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedResourceClaimRequest */ - public APIcreateNamespacedResourceClaimRequest dryRun(String dryRun) { + public APIcreateNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -446,7 +462,7 @@ public APIcreateNamespacedResourceClaimRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedResourceClaimRequest */ - public APIcreateNamespacedResourceClaimRequest fieldManager(String fieldManager) { + public APIcreateNamespacedResourceClaimRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -456,7 +472,7 @@ public APIcreateNamespacedResourceClaimRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedResourceClaimRequest */ - public APIcreateNamespacedResourceClaimRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedResourceClaimRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -467,7 +483,8 @@ public APIcreateNamespacedResourceClaimRequest fieldValidation(String fieldValid * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -484,7 +501,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -502,7 +520,8 @@ public V1beta1ResourceClaim execute() throws ApiException { * @return ApiResponse<V1beta1ResourceClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -520,7 +539,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -540,7 +560,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param body (required) * @return APIcreateNamespacedResourceClaimRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -548,10 +569,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callba
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedResourceClaimRequest createNamespacedResourceClaim(String namespace, V1beta1ResourceClaim body) { + public APIcreateNamespacedResourceClaimRequest createNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaim body) { return new APIcreateNamespacedResourceClaimRequest(namespace, body); } - private okhttp3.Call createNamespacedResourceClaimTemplateCall(String namespace, V1beta1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -617,7 +638,7 @@ private okhttp3.Call createNamespacedResourceClaimTemplateCall(String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, V1beta1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceClaimTemplate(Async)"); @@ -633,13 +654,13 @@ private okhttp3.Call createNamespacedResourceClaimTemplateValidateBeforeCall(Str } - private ApiResponse createNamespacedResourceClaimTemplateWithHttpInfo(String namespace, V1beta1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedResourceClaimTemplateAsync(String namespace, V1beta1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -648,14 +669,20 @@ private okhttp3.Call createNamespacedResourceClaimTemplateAsync(String namespace } public class APIcreateNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1beta1ResourceClaimTemplate body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedResourceClaimTemplateRequest(String namespace, V1beta1ResourceClaimTemplate body) { + private APIcreateNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaimTemplate body) { this.namespace = namespace; this.body = body; } @@ -665,7 +692,7 @@ private APIcreateNamespacedResourceClaimTemplateRequest(String namespace, V1beta * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedResourceClaimTemplateRequest */ - public APIcreateNamespacedResourceClaimTemplateRequest pretty(String pretty) { + public APIcreateNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -675,7 +702,7 @@ public APIcreateNamespacedResourceClaimTemplateRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedResourceClaimTemplateRequest */ - public APIcreateNamespacedResourceClaimTemplateRequest dryRun(String dryRun) { + public APIcreateNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -685,7 +712,7 @@ public APIcreateNamespacedResourceClaimTemplateRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedResourceClaimTemplateRequest */ - public APIcreateNamespacedResourceClaimTemplateRequest fieldManager(String fieldManager) { + public APIcreateNamespacedResourceClaimTemplateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -695,7 +722,7 @@ public APIcreateNamespacedResourceClaimTemplateRequest fieldManager(String field * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedResourceClaimTemplateRequest */ - public APIcreateNamespacedResourceClaimTemplateRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedResourceClaimTemplateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -706,7 +733,8 @@ public APIcreateNamespacedResourceClaimTemplateRequest fieldValidation(String fi * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -723,7 +751,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceClaimTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -741,7 +770,8 @@ public V1beta1ResourceClaimTemplate execute() throws ApiException { * @return ApiResponse<V1beta1ResourceClaimTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -759,7 +789,8 @@ public ApiResponse executeWithHttpInfo() throws Ap * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -779,7 +810,8 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIcreateNamespacedResourceClaimTemplateRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -787,10 +819,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedResourceClaimTemplateRequest createNamespacedResourceClaimTemplate(String namespace, V1beta1ResourceClaimTemplate body) { + public APIcreateNamespacedResourceClaimTemplateRequest createNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaimTemplate body) { return new APIcreateNamespacedResourceClaimTemplateRequest(namespace, body); } - private okhttp3.Call createResourceSliceCall(V1beta1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createResourceSliceCall(@jakarta.annotation.Nonnull V1beta1ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -855,7 +887,7 @@ private okhttp3.Call createResourceSliceCall(V1beta1ResourceSlice body, String p } @SuppressWarnings("rawtypes") - private okhttp3.Call createResourceSliceValidateBeforeCall(V1beta1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull V1beta1ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createResourceSlice(Async)"); @@ -866,13 +898,13 @@ private okhttp3.Call createResourceSliceValidateBeforeCall(V1beta1ResourceSlice } - private ApiResponse createResourceSliceWithHttpInfo(V1beta1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull V1beta1ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createResourceSliceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createResourceSliceAsync(V1beta1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createResourceSliceAsync(@jakarta.annotation.Nonnull V1beta1ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createResourceSliceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -881,13 +913,18 @@ private okhttp3.Call createResourceSliceAsync(V1beta1ResourceSlice body, String } public class APIcreateResourceSliceRequest { + @jakarta.annotation.Nonnull private final V1beta1ResourceSlice body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateResourceSliceRequest(V1beta1ResourceSlice body) { + private APIcreateResourceSliceRequest(@jakarta.annotation.Nonnull V1beta1ResourceSlice body) { this.body = body; } @@ -896,7 +933,7 @@ private APIcreateResourceSliceRequest(V1beta1ResourceSlice body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateResourceSliceRequest */ - public APIcreateResourceSliceRequest pretty(String pretty) { + public APIcreateResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -906,7 +943,7 @@ public APIcreateResourceSliceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateResourceSliceRequest */ - public APIcreateResourceSliceRequest dryRun(String dryRun) { + public APIcreateResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -916,7 +953,7 @@ public APIcreateResourceSliceRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateResourceSliceRequest */ - public APIcreateResourceSliceRequest fieldManager(String fieldManager) { + public APIcreateResourceSliceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -926,7 +963,7 @@ public APIcreateResourceSliceRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateResourceSliceRequest */ - public APIcreateResourceSliceRequest fieldValidation(String fieldValidation) { + public APIcreateResourceSliceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -937,7 +974,8 @@ public APIcreateResourceSliceRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -954,7 +992,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceSlice * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -972,7 +1011,8 @@ public V1beta1ResourceSlice execute() throws ApiException { * @return ApiResponse<V1beta1ResourceSlice> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -990,7 +1030,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1009,7 +1050,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param body (required) * @return APIcreateResourceSliceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1017,10 +1059,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callba
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateResourceSliceRequest createResourceSlice(V1beta1ResourceSlice body) { + public APIcreateResourceSliceRequest createResourceSlice(@jakarta.annotation.Nonnull V1beta1ResourceSlice body) { return new APIcreateResourceSliceRequest(body); } - private okhttp3.Call deleteCollectionDeviceClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1125,19 +1167,19 @@ private okhttp3.Call deleteCollectionDeviceClassCall(String pretty, String _cont } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionDeviceClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionDeviceClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionDeviceClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionDeviceClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionDeviceClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionDeviceClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1146,20 +1188,35 @@ private okhttp3.Call deleteCollectionDeviceClassAsync(String pretty, String _con } public class APIdeleteCollectionDeviceClassRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionDeviceClassRequest() { @@ -1170,7 +1227,7 @@ private APIdeleteCollectionDeviceClassRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest pretty(String pretty) { + public APIdeleteCollectionDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1180,7 +1237,7 @@ public APIdeleteCollectionDeviceClassRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest _continue(String _continue) { + public APIdeleteCollectionDeviceClassRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1190,7 +1247,7 @@ public APIdeleteCollectionDeviceClassRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest dryRun(String dryRun) { + public APIdeleteCollectionDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1200,7 +1257,7 @@ public APIdeleteCollectionDeviceClassRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionDeviceClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1210,7 +1267,7 @@ public APIdeleteCollectionDeviceClassRequest fieldSelector(String fieldSelector) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionDeviceClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1220,7 +1277,7 @@ public APIdeleteCollectionDeviceClassRequest gracePeriodSeconds(Integer gracePer * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionDeviceClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1230,7 +1287,7 @@ public APIdeleteCollectionDeviceClassRequest ignoreStoreReadErrorWithClusterBrea * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest labelSelector(String labelSelector) { + public APIdeleteCollectionDeviceClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1240,7 +1297,7 @@ public APIdeleteCollectionDeviceClassRequest labelSelector(String labelSelector) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest limit(Integer limit) { + public APIdeleteCollectionDeviceClassRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1250,7 +1307,7 @@ public APIdeleteCollectionDeviceClassRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionDeviceClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1260,7 +1317,7 @@ public APIdeleteCollectionDeviceClassRequest orphanDependents(Boolean orphanDepe * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionDeviceClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1270,7 +1327,7 @@ public APIdeleteCollectionDeviceClassRequest propagationPolicy(String propagatio * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionDeviceClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1280,7 +1337,7 @@ public APIdeleteCollectionDeviceClassRequest resourceVersion(String resourceVers * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionDeviceClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1290,7 +1347,7 @@ public APIdeleteCollectionDeviceClassRequest resourceVersionMatch(String resourc * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionDeviceClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1300,7 +1357,7 @@ public APIdeleteCollectionDeviceClassRequest sendInitialEvents(Boolean sendIniti * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionDeviceClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1310,7 +1367,7 @@ public APIdeleteCollectionDeviceClassRequest timeoutSeconds(Integer timeoutSecon * @param body (optional) * @return APIdeleteCollectionDeviceClassRequest */ - public APIdeleteCollectionDeviceClassRequest body(V1DeleteOptions body) { + public APIdeleteCollectionDeviceClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1321,7 +1378,8 @@ public APIdeleteCollectionDeviceClassRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1336,7 +1394,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1352,7 +1411,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1368,7 +1428,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1384,7 +1445,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of DeviceClass * @return APIdeleteCollectionDeviceClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1393,7 +1455,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionDeviceClassRequest deleteCollectionDeviceClass() { return new APIdeleteCollectionDeviceClassRequest(); } - private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1499,7 +1561,7 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedResourceClaimValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaim(Async)"); @@ -1510,13 +1572,13 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimValidateBeforeCall(S } - private ApiResponse deleteCollectionNamespacedResourceClaimWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedResourceClaimAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1525,24 +1587,40 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimAsync(String namespa } public class APIdeleteCollectionNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedResourceClaimRequest(String namespace) { + private APIdeleteCollectionNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -1551,7 +1629,7 @@ private APIdeleteCollectionNamespacedResourceClaimRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1561,7 +1639,7 @@ public APIdeleteCollectionNamespacedResourceClaimRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedResourceClaimRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1571,7 +1649,7 @@ public APIdeleteCollectionNamespacedResourceClaimRequest _continue(String _conti * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1581,7 +1659,7 @@ public APIdeleteCollectionNamespacedResourceClaimRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedResourceClaimRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1591,7 +1669,7 @@ public APIdeleteCollectionNamespacedResourceClaimRequest fieldSelector(String fi * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedResourceClaimRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1601,7 +1679,7 @@ public APIdeleteCollectionNamespacedResourceClaimRequest gracePeriodSeconds(Inte * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1611,7 +1689,7 @@ public APIdeleteCollectionNamespacedResourceClaimRequest ignoreStoreReadErrorWit * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedResourceClaimRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1621,7 +1699,7 @@ public APIdeleteCollectionNamespacedResourceClaimRequest labelSelector(String la * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedResourceClaimRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1631,7 +1709,7 @@ public APIdeleteCollectionNamespacedResourceClaimRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedResourceClaimRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1641,7 +1719,7 @@ public APIdeleteCollectionNamespacedResourceClaimRequest orphanDependents(Boolea * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedResourceClaimRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1651,7 +1729,7 @@ public APIdeleteCollectionNamespacedResourceClaimRequest propagationPolicy(Strin * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1661,7 +1739,7 @@ public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersion(String * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1671,7 +1749,7 @@ public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersionMatch(St * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedResourceClaimRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1681,7 +1759,7 @@ public APIdeleteCollectionNamespacedResourceClaimRequest sendInitialEvents(Boole * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedResourceClaimRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1691,7 +1769,7 @@ public APIdeleteCollectionNamespacedResourceClaimRequest timeoutSeconds(Integer * @param body (optional) * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedResourceClaimRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1702,7 +1780,8 @@ public APIdeleteCollectionNamespacedResourceClaimRequest body(V1DeleteOptions bo * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1717,7 +1796,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1733,7 +1813,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1749,7 +1830,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1766,16 +1848,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedResourceClaimRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedResourceClaimRequest deleteCollectionNamespacedResourceClaim(String namespace) { + public APIdeleteCollectionNamespacedResourceClaimRequest deleteCollectionNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedResourceClaimRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1881,7 +1964,7 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaimTemplate(Async)"); @@ -1892,13 +1975,13 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateValidateBefo } - private ApiResponse deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1907,24 +1990,40 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateAsync(String } public class APIdeleteCollectionNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedResourceClaimTemplateRequest(String namespace) { + private APIdeleteCollectionNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -1933,7 +2032,7 @@ private APIdeleteCollectionNamespacedResourceClaimTemplateRequest(String namespa * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1943,7 +2042,7 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest pretty(String p * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1953,7 +2052,7 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest _continue(Strin * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1963,7 +2062,7 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest dryRun(String d * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1973,7 +2072,7 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest fieldSelector(S * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1983,7 +2082,7 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest gracePeriodSeco * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1993,7 +2092,7 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest ignoreStoreRead * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2003,7 +2102,7 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest labelSelector(S * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2013,7 +2112,7 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest limit(Integer l * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2023,7 +2122,7 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest orphanDependent * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2033,7 +2132,7 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest propagationPoli * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2043,7 +2142,7 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersion * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2053,7 +2152,7 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersion * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2063,7 +2162,7 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest sendInitialEven * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2073,7 +2172,7 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest timeoutSeconds( * @param body (optional) * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -2084,7 +2183,8 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest body(V1DeleteOp * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2099,7 +2199,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2115,7 +2216,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2131,7 +2233,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2148,16 +2251,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest deleteCollectionNamespacedResourceClaimTemplate(String namespace) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest deleteCollectionNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedResourceClaimTemplateRequest(namespace); } - private okhttp3.Call deleteCollectionResourceSliceCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionResourceSliceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2262,19 +2366,19 @@ private okhttp3.Call deleteCollectionResourceSliceCall(String pretty, String _co } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionResourceSliceValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionResourceSliceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionResourceSliceWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionResourceSliceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionResourceSliceAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionResourceSliceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2283,20 +2387,35 @@ private okhttp3.Call deleteCollectionResourceSliceAsync(String pretty, String _c } public class APIdeleteCollectionResourceSliceRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionResourceSliceRequest() { @@ -2307,7 +2426,7 @@ private APIdeleteCollectionResourceSliceRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteCollectionResourceSliceRequest pretty(String pretty) { + public APIdeleteCollectionResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2317,7 +2436,7 @@ public APIdeleteCollectionResourceSliceRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteCollectionResourceSliceRequest _continue(String _continue) { + public APIdeleteCollectionResourceSliceRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2327,7 +2446,7 @@ public APIdeleteCollectionResourceSliceRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteCollectionResourceSliceRequest dryRun(String dryRun) { + public APIdeleteCollectionResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2337,7 +2456,7 @@ public APIdeleteCollectionResourceSliceRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteCollectionResourceSliceRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionResourceSliceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2347,7 +2466,7 @@ public APIdeleteCollectionResourceSliceRequest fieldSelector(String fieldSelecto * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteCollectionResourceSliceRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionResourceSliceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2357,7 +2476,7 @@ public APIdeleteCollectionResourceSliceRequest gracePeriodSeconds(Integer graceP * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteCollectionResourceSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionResourceSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -2367,7 +2486,7 @@ public APIdeleteCollectionResourceSliceRequest ignoreStoreReadErrorWithClusterBr * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteCollectionResourceSliceRequest labelSelector(String labelSelector) { + public APIdeleteCollectionResourceSliceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2377,7 +2496,7 @@ public APIdeleteCollectionResourceSliceRequest labelSelector(String labelSelecto * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteCollectionResourceSliceRequest limit(Integer limit) { + public APIdeleteCollectionResourceSliceRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2387,7 +2506,7 @@ public APIdeleteCollectionResourceSliceRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteCollectionResourceSliceRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionResourceSliceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2397,7 +2516,7 @@ public APIdeleteCollectionResourceSliceRequest orphanDependents(Boolean orphanDe * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteCollectionResourceSliceRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionResourceSliceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2407,7 +2526,7 @@ public APIdeleteCollectionResourceSliceRequest propagationPolicy(String propagat * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteCollectionResourceSliceRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionResourceSliceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2417,7 +2536,7 @@ public APIdeleteCollectionResourceSliceRequest resourceVersion(String resourceVe * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteCollectionResourceSliceRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionResourceSliceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2427,7 +2546,7 @@ public APIdeleteCollectionResourceSliceRequest resourceVersionMatch(String resou * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteCollectionResourceSliceRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionResourceSliceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2437,7 +2556,7 @@ public APIdeleteCollectionResourceSliceRequest sendInitialEvents(Boolean sendIni * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteCollectionResourceSliceRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionResourceSliceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2447,7 +2566,7 @@ public APIdeleteCollectionResourceSliceRequest timeoutSeconds(Integer timeoutSec * @param body (optional) * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteCollectionResourceSliceRequest body(V1DeleteOptions body) { + public APIdeleteCollectionResourceSliceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -2458,7 +2577,8 @@ public APIdeleteCollectionResourceSliceRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2473,7 +2593,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2489,7 +2610,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2505,7 +2627,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2521,7 +2644,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of ResourceSlice * @return APIdeleteCollectionResourceSliceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2530,7 +2654,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionResourceSliceRequest deleteCollectionResourceSlice() { return new APIdeleteCollectionResourceSliceRequest(); } - private okhttp3.Call deleteDeviceClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2604,7 +2728,7 @@ private okhttp3.Call deleteDeviceClassCall(String name, String pretty, String dr } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDeviceClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteDeviceClass(Async)"); @@ -2615,13 +2739,13 @@ private okhttp3.Call deleteDeviceClassValidateBeforeCall(String name, String pre } - private ApiResponse deleteDeviceClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteDeviceClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2630,16 +2754,24 @@ private okhttp3.Call deleteDeviceClassAsync(String name, String pretty, String d } public class APIdeleteDeviceClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteDeviceClassRequest(String name) { + private APIdeleteDeviceClassRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -2648,7 +2780,7 @@ private APIdeleteDeviceClassRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteDeviceClassRequest */ - public APIdeleteDeviceClassRequest pretty(String pretty) { + public APIdeleteDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2658,7 +2790,7 @@ public APIdeleteDeviceClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteDeviceClassRequest */ - public APIdeleteDeviceClassRequest dryRun(String dryRun) { + public APIdeleteDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2668,7 +2800,7 @@ public APIdeleteDeviceClassRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteDeviceClassRequest */ - public APIdeleteDeviceClassRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteDeviceClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2678,7 +2810,7 @@ public APIdeleteDeviceClassRequest gracePeriodSeconds(Integer gracePeriodSeconds * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteDeviceClassRequest */ - public APIdeleteDeviceClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteDeviceClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -2688,7 +2820,7 @@ public APIdeleteDeviceClassRequest ignoreStoreReadErrorWithClusterBreakingPotent * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteDeviceClassRequest */ - public APIdeleteDeviceClassRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteDeviceClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2698,7 +2830,7 @@ public APIdeleteDeviceClassRequest orphanDependents(Boolean orphanDependents) { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteDeviceClassRequest */ - public APIdeleteDeviceClassRequest propagationPolicy(String propagationPolicy) { + public APIdeleteDeviceClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2708,7 +2840,7 @@ public APIdeleteDeviceClassRequest propagationPolicy(String propagationPolicy) { * @param body (optional) * @return APIdeleteDeviceClassRequest */ - public APIdeleteDeviceClassRequest body(V1DeleteOptions body) { + public APIdeleteDeviceClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -2719,7 +2851,8 @@ public APIdeleteDeviceClassRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2735,7 +2868,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1DeviceClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -2752,7 +2886,8 @@ public V1beta1DeviceClass execute() throws ApiException { * @return ApiResponse<V1beta1DeviceClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -2769,7 +2904,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -2787,17 +2923,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param name name of the DeviceClass (required) * @return APIdeleteDeviceClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteDeviceClassRequest deleteDeviceClass(String name) { + public APIdeleteDeviceClassRequest deleteDeviceClass(@jakarta.annotation.Nonnull String name) { return new APIdeleteDeviceClassRequest(name); } - private okhttp3.Call deleteNamespacedResourceClaimCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2872,7 +3009,7 @@ private okhttp3.Call deleteNamespacedResourceClaimCall(String name, String names } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedResourceClaimValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaim(Async)"); @@ -2888,13 +3025,13 @@ private okhttp3.Call deleteNamespacedResourceClaimValidateBeforeCall(String name } - private ApiResponse deleteNamespacedResourceClaimWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedResourceClaimAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2903,17 +3040,26 @@ private okhttp3.Call deleteNamespacedResourceClaimAsync(String name, String name } public class APIdeleteNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedResourceClaimRequest(String name, String namespace) { + private APIdeleteNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -2923,7 +3069,7 @@ private APIdeleteNamespacedResourceClaimRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedResourceClaimRequest */ - public APIdeleteNamespacedResourceClaimRequest pretty(String pretty) { + public APIdeleteNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2933,7 +3079,7 @@ public APIdeleteNamespacedResourceClaimRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedResourceClaimRequest */ - public APIdeleteNamespacedResourceClaimRequest dryRun(String dryRun) { + public APIdeleteNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2943,7 +3089,7 @@ public APIdeleteNamespacedResourceClaimRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedResourceClaimRequest */ - public APIdeleteNamespacedResourceClaimRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedResourceClaimRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2953,7 +3099,7 @@ public APIdeleteNamespacedResourceClaimRequest gracePeriodSeconds(Integer graceP * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedResourceClaimRequest */ - public APIdeleteNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -2963,7 +3109,7 @@ public APIdeleteNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBr * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedResourceClaimRequest */ - public APIdeleteNamespacedResourceClaimRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedResourceClaimRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2973,7 +3119,7 @@ public APIdeleteNamespacedResourceClaimRequest orphanDependents(Boolean orphanDe * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedResourceClaimRequest */ - public APIdeleteNamespacedResourceClaimRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedResourceClaimRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2983,7 +3129,7 @@ public APIdeleteNamespacedResourceClaimRequest propagationPolicy(String propagat * @param body (optional) * @return APIdeleteNamespacedResourceClaimRequest */ - public APIdeleteNamespacedResourceClaimRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedResourceClaimRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -2994,7 +3140,8 @@ public APIdeleteNamespacedResourceClaimRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3010,7 +3157,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3027,7 +3175,8 @@ public V1beta1ResourceClaim execute() throws ApiException { * @return ApiResponse<V1beta1ResourceClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3044,7 +3193,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3063,17 +3213,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedResourceClaimRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedResourceClaimRequest deleteNamespacedResourceClaim(String name, String namespace) { + public APIdeleteNamespacedResourceClaimRequest deleteNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedResourceClaimRequest(name, namespace); } - private okhttp3.Call deleteNamespacedResourceClaimTemplateCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3148,7 +3299,7 @@ private okhttp3.Call deleteNamespacedResourceClaimTemplateCall(String name, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaimTemplate(Async)"); @@ -3164,13 +3315,13 @@ private okhttp3.Call deleteNamespacedResourceClaimTemplateValidateBeforeCall(Str } - private ApiResponse deleteNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedResourceClaimTemplateAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3179,17 +3330,26 @@ private okhttp3.Call deleteNamespacedResourceClaimTemplateAsync(String name, Str } public class APIdeleteNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedResourceClaimTemplateRequest(String name, String namespace) { + private APIdeleteNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -3199,7 +3359,7 @@ private APIdeleteNamespacedResourceClaimTemplateRequest(String name, String name * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedResourceClaimTemplateRequest */ - public APIdeleteNamespacedResourceClaimTemplateRequest pretty(String pretty) { + public APIdeleteNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3209,7 +3369,7 @@ public APIdeleteNamespacedResourceClaimTemplateRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedResourceClaimTemplateRequest */ - public APIdeleteNamespacedResourceClaimTemplateRequest dryRun(String dryRun) { + public APIdeleteNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3219,7 +3379,7 @@ public APIdeleteNamespacedResourceClaimTemplateRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedResourceClaimTemplateRequest */ - public APIdeleteNamespacedResourceClaimTemplateRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedResourceClaimTemplateRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -3229,7 +3389,7 @@ public APIdeleteNamespacedResourceClaimTemplateRequest gracePeriodSeconds(Intege * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedResourceClaimTemplateRequest */ - public APIdeleteNamespacedResourceClaimTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedResourceClaimTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -3239,7 +3399,7 @@ public APIdeleteNamespacedResourceClaimTemplateRequest ignoreStoreReadErrorWithC * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedResourceClaimTemplateRequest */ - public APIdeleteNamespacedResourceClaimTemplateRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedResourceClaimTemplateRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3249,7 +3409,7 @@ public APIdeleteNamespacedResourceClaimTemplateRequest orphanDependents(Boolean * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedResourceClaimTemplateRequest */ - public APIdeleteNamespacedResourceClaimTemplateRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedResourceClaimTemplateRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3259,7 +3419,7 @@ public APIdeleteNamespacedResourceClaimTemplateRequest propagationPolicy(String * @param body (optional) * @return APIdeleteNamespacedResourceClaimTemplateRequest */ - public APIdeleteNamespacedResourceClaimTemplateRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedResourceClaimTemplateRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -3270,7 +3430,8 @@ public APIdeleteNamespacedResourceClaimTemplateRequest body(V1DeleteOptions body * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3286,7 +3447,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceClaimTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3303,7 +3465,8 @@ public V1beta1ResourceClaimTemplate execute() throws ApiException { * @return ApiResponse<V1beta1ResourceClaimTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3320,7 +3483,8 @@ public ApiResponse executeWithHttpInfo() throws Ap * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3339,17 +3503,18 @@ public okhttp3.Call executeAsync(final ApiCallback * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedResourceClaimTemplateRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedResourceClaimTemplateRequest deleteNamespacedResourceClaimTemplate(String name, String namespace) { + public APIdeleteNamespacedResourceClaimTemplateRequest deleteNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedResourceClaimTemplateRequest(name, namespace); } - private okhttp3.Call deleteResourceSliceCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3423,7 +3588,7 @@ private okhttp3.Call deleteResourceSliceCall(String name, String pretty, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteResourceSliceValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteResourceSlice(Async)"); @@ -3434,13 +3599,13 @@ private okhttp3.Call deleteResourceSliceValidateBeforeCall(String name, String p } - private ApiResponse deleteResourceSliceWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteResourceSliceAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3449,16 +3614,24 @@ private okhttp3.Call deleteResourceSliceAsync(String name, String pretty, String } public class APIdeleteResourceSliceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteResourceSliceRequest(String name) { + private APIdeleteResourceSliceRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -3467,7 +3640,7 @@ private APIdeleteResourceSliceRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteResourceSliceRequest */ - public APIdeleteResourceSliceRequest pretty(String pretty) { + public APIdeleteResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3477,7 +3650,7 @@ public APIdeleteResourceSliceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteResourceSliceRequest */ - public APIdeleteResourceSliceRequest dryRun(String dryRun) { + public APIdeleteResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3487,7 +3660,7 @@ public APIdeleteResourceSliceRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteResourceSliceRequest */ - public APIdeleteResourceSliceRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteResourceSliceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -3497,7 +3670,7 @@ public APIdeleteResourceSliceRequest gracePeriodSeconds(Integer gracePeriodSecon * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteResourceSliceRequest */ - public APIdeleteResourceSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteResourceSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -3507,7 +3680,7 @@ public APIdeleteResourceSliceRequest ignoreStoreReadErrorWithClusterBreakingPote * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteResourceSliceRequest */ - public APIdeleteResourceSliceRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteResourceSliceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3517,7 +3690,7 @@ public APIdeleteResourceSliceRequest orphanDependents(Boolean orphanDependents) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteResourceSliceRequest */ - public APIdeleteResourceSliceRequest propagationPolicy(String propagationPolicy) { + public APIdeleteResourceSliceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3527,7 +3700,7 @@ public APIdeleteResourceSliceRequest propagationPolicy(String propagationPolicy) * @param body (optional) * @return APIdeleteResourceSliceRequest */ - public APIdeleteResourceSliceRequest body(V1DeleteOptions body) { + public APIdeleteResourceSliceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -3538,7 +3711,8 @@ public APIdeleteResourceSliceRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3554,7 +3728,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceSlice * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3571,7 +3746,8 @@ public V1beta1ResourceSlice execute() throws ApiException { * @return ApiResponse<V1beta1ResourceSlice> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3588,7 +3764,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3606,14 +3783,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param name name of the ResourceSlice (required) * @return APIdeleteResourceSliceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteResourceSliceRequest deleteResourceSlice(String name) { + public APIdeleteResourceSliceRequest deleteResourceSlice(@jakarta.annotation.Nonnull String name) { return new APIdeleteResourceSliceRequest(name); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -3695,7 +3873,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3710,7 +3889,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3726,7 +3906,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3742,7 +3923,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3758,7 +3940,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3767,7 +3950,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listDeviceClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDeviceClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3862,19 +4045,19 @@ private okhttp3.Call listDeviceClassCall(String pretty, Boolean allowWatchBookma } @SuppressWarnings("rawtypes") - private okhttp3.Call listDeviceClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDeviceClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listDeviceClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listDeviceClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listDeviceClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDeviceClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3883,16 +4066,27 @@ private okhttp3.Call listDeviceClassAsync(String pretty, Boolean allowWatchBookm } public class APIlistDeviceClassRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistDeviceClassRequest() { @@ -3903,7 +4097,7 @@ private APIlistDeviceClassRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistDeviceClassRequest */ - public APIlistDeviceClassRequest pretty(String pretty) { + public APIlistDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3913,7 +4107,7 @@ public APIlistDeviceClassRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistDeviceClassRequest */ - public APIlistDeviceClassRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistDeviceClassRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -3923,7 +4117,7 @@ public APIlistDeviceClassRequest allowWatchBookmarks(Boolean allowWatchBookmarks * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistDeviceClassRequest */ - public APIlistDeviceClassRequest _continue(String _continue) { + public APIlistDeviceClassRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -3933,7 +4127,7 @@ public APIlistDeviceClassRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistDeviceClassRequest */ - public APIlistDeviceClassRequest fieldSelector(String fieldSelector) { + public APIlistDeviceClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -3943,7 +4137,7 @@ public APIlistDeviceClassRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistDeviceClassRequest */ - public APIlistDeviceClassRequest labelSelector(String labelSelector) { + public APIlistDeviceClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -3953,7 +4147,7 @@ public APIlistDeviceClassRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistDeviceClassRequest */ - public APIlistDeviceClassRequest limit(Integer limit) { + public APIlistDeviceClassRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -3963,7 +4157,7 @@ public APIlistDeviceClassRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistDeviceClassRequest */ - public APIlistDeviceClassRequest resourceVersion(String resourceVersion) { + public APIlistDeviceClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -3973,7 +4167,7 @@ public APIlistDeviceClassRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistDeviceClassRequest */ - public APIlistDeviceClassRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistDeviceClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -3983,7 +4177,7 @@ public APIlistDeviceClassRequest resourceVersionMatch(String resourceVersionMatc * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistDeviceClassRequest */ - public APIlistDeviceClassRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistDeviceClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -3993,7 +4187,7 @@ public APIlistDeviceClassRequest sendInitialEvents(Boolean sendInitialEvents) { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistDeviceClassRequest */ - public APIlistDeviceClassRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistDeviceClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4003,7 +4197,7 @@ public APIlistDeviceClassRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistDeviceClassRequest */ - public APIlistDeviceClassRequest watch(Boolean watch) { + public APIlistDeviceClassRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -4014,7 +4208,8 @@ public APIlistDeviceClassRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4029,7 +4224,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1DeviceClassList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4045,7 +4241,8 @@ public V1beta1DeviceClassList execute() throws ApiException { * @return ApiResponse<V1beta1DeviceClassList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4061,7 +4258,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4077,7 +4275,8 @@ public okhttp3.Call executeAsync(final ApiCallback _call * list or watch objects of kind DeviceClass * @return APIlistDeviceClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4086,7 +4285,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call public APIlistDeviceClassRequest listDeviceClass() { return new APIlistDeviceClassRequest(); } - private okhttp3.Call listNamespacedResourceClaimCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4182,7 +4381,7 @@ private okhttp3.Call listNamespacedResourceClaimCall(String namespace, String pr } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedResourceClaimValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaim(Async)"); @@ -4193,13 +4392,13 @@ private okhttp3.Call listNamespacedResourceClaimValidateBeforeCall(String namesp } - private ApiResponse listNamespacedResourceClaimWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedResourceClaimAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4208,20 +4407,32 @@ private okhttp3.Call listNamespacedResourceClaimAsync(String namespace, String p } public class APIlistNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedResourceClaimRequest(String namespace) { + private APIlistNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -4230,7 +4441,7 @@ private APIlistNamespacedResourceClaimRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedResourceClaimRequest */ - public APIlistNamespacedResourceClaimRequest pretty(String pretty) { + public APIlistNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4240,7 +4451,7 @@ public APIlistNamespacedResourceClaimRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedResourceClaimRequest */ - public APIlistNamespacedResourceClaimRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedResourceClaimRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -4250,7 +4461,7 @@ public APIlistNamespacedResourceClaimRequest allowWatchBookmarks(Boolean allowWa * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedResourceClaimRequest */ - public APIlistNamespacedResourceClaimRequest _continue(String _continue) { + public APIlistNamespacedResourceClaimRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -4260,7 +4471,7 @@ public APIlistNamespacedResourceClaimRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedResourceClaimRequest */ - public APIlistNamespacedResourceClaimRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedResourceClaimRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -4270,7 +4481,7 @@ public APIlistNamespacedResourceClaimRequest fieldSelector(String fieldSelector) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedResourceClaimRequest */ - public APIlistNamespacedResourceClaimRequest labelSelector(String labelSelector) { + public APIlistNamespacedResourceClaimRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -4280,7 +4491,7 @@ public APIlistNamespacedResourceClaimRequest labelSelector(String labelSelector) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedResourceClaimRequest */ - public APIlistNamespacedResourceClaimRequest limit(Integer limit) { + public APIlistNamespacedResourceClaimRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -4290,7 +4501,7 @@ public APIlistNamespacedResourceClaimRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedResourceClaimRequest */ - public APIlistNamespacedResourceClaimRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedResourceClaimRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -4300,7 +4511,7 @@ public APIlistNamespacedResourceClaimRequest resourceVersion(String resourceVers * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedResourceClaimRequest */ - public APIlistNamespacedResourceClaimRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedResourceClaimRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -4310,7 +4521,7 @@ public APIlistNamespacedResourceClaimRequest resourceVersionMatch(String resourc * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedResourceClaimRequest */ - public APIlistNamespacedResourceClaimRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedResourceClaimRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -4320,7 +4531,7 @@ public APIlistNamespacedResourceClaimRequest sendInitialEvents(Boolean sendIniti * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedResourceClaimRequest */ - public APIlistNamespacedResourceClaimRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedResourceClaimRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4330,7 +4541,7 @@ public APIlistNamespacedResourceClaimRequest timeoutSeconds(Integer timeoutSecon * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedResourceClaimRequest */ - public APIlistNamespacedResourceClaimRequest watch(Boolean watch) { + public APIlistNamespacedResourceClaimRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -4341,7 +4552,8 @@ public APIlistNamespacedResourceClaimRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4356,7 +4568,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceClaimList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4372,7 +4585,8 @@ public V1beta1ResourceClaimList execute() throws ApiException { * @return ApiResponse<V1beta1ResourceClaimList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4388,7 +4602,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExc * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4405,16 +4620,17 @@ public okhttp3.Call executeAsync(final ApiCallback _ca * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedResourceClaimRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedResourceClaimRequest listNamespacedResourceClaim(String namespace) { + public APIlistNamespacedResourceClaimRequest listNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedResourceClaimRequest(namespace); } - private okhttp3.Call listNamespacedResourceClaimTemplateCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4510,7 +4726,7 @@ private okhttp3.Call listNamespacedResourceClaimTemplateCall(String namespace, S } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaimTemplate(Async)"); @@ -4521,13 +4737,13 @@ private okhttp3.Call listNamespacedResourceClaimTemplateValidateBeforeCall(Strin } - private ApiResponse listNamespacedResourceClaimTemplateWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedResourceClaimTemplateAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4536,20 +4752,32 @@ private okhttp3.Call listNamespacedResourceClaimTemplateAsync(String namespace, } public class APIlistNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedResourceClaimTemplateRequest(String namespace) { + private APIlistNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -4558,7 +4786,7 @@ private APIlistNamespacedResourceClaimTemplateRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistNamespacedResourceClaimTemplateRequest pretty(String pretty) { + public APIlistNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4568,7 +4796,7 @@ public APIlistNamespacedResourceClaimTemplateRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistNamespacedResourceClaimTemplateRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedResourceClaimTemplateRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -4578,7 +4806,7 @@ public APIlistNamespacedResourceClaimTemplateRequest allowWatchBookmarks(Boolean * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistNamespacedResourceClaimTemplateRequest _continue(String _continue) { + public APIlistNamespacedResourceClaimTemplateRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -4588,7 +4816,7 @@ public APIlistNamespacedResourceClaimTemplateRequest _continue(String _continue) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistNamespacedResourceClaimTemplateRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedResourceClaimTemplateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -4598,7 +4826,7 @@ public APIlistNamespacedResourceClaimTemplateRequest fieldSelector(String fieldS * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistNamespacedResourceClaimTemplateRequest labelSelector(String labelSelector) { + public APIlistNamespacedResourceClaimTemplateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -4608,7 +4836,7 @@ public APIlistNamespacedResourceClaimTemplateRequest labelSelector(String labelS * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistNamespacedResourceClaimTemplateRequest limit(Integer limit) { + public APIlistNamespacedResourceClaimTemplateRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -4618,7 +4846,7 @@ public APIlistNamespacedResourceClaimTemplateRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistNamespacedResourceClaimTemplateRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedResourceClaimTemplateRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -4628,7 +4856,7 @@ public APIlistNamespacedResourceClaimTemplateRequest resourceVersion(String reso * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistNamespacedResourceClaimTemplateRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedResourceClaimTemplateRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -4638,7 +4866,7 @@ public APIlistNamespacedResourceClaimTemplateRequest resourceVersionMatch(String * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistNamespacedResourceClaimTemplateRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedResourceClaimTemplateRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -4648,7 +4876,7 @@ public APIlistNamespacedResourceClaimTemplateRequest sendInitialEvents(Boolean s * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistNamespacedResourceClaimTemplateRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedResourceClaimTemplateRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4658,7 +4886,7 @@ public APIlistNamespacedResourceClaimTemplateRequest timeoutSeconds(Integer time * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistNamespacedResourceClaimTemplateRequest watch(Boolean watch) { + public APIlistNamespacedResourceClaimTemplateRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -4669,7 +4897,8 @@ public APIlistNamespacedResourceClaimTemplateRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4684,7 +4913,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceClaimTemplateList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4700,7 +4930,8 @@ public V1beta1ResourceClaimTemplateList execute() throws ApiException { * @return ApiResponse<V1beta1ResourceClaimTemplateList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4716,7 +4947,8 @@ public ApiResponse executeWithHttpInfo() throw * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4733,16 +4965,17 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedResourceClaimTemplateRequest listNamespacedResourceClaimTemplate(String namespace) { + public APIlistNamespacedResourceClaimTemplateRequest listNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedResourceClaimTemplateRequest(namespace); } - private okhttp3.Call listResourceClaimForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceClaimForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4837,19 +5070,19 @@ private okhttp3.Call listResourceClaimForAllNamespacesCall(Boolean allowWatchBoo } @SuppressWarnings("rawtypes") - private okhttp3.Call listResourceClaimForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceClaimForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listResourceClaimForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listResourceClaimForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listResourceClaimForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceClaimForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4858,16 +5091,27 @@ private okhttp3.Call listResourceClaimForAllNamespacesAsync(Boolean allowWatchBo } public class APIlistResourceClaimForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistResourceClaimForAllNamespacesRequest() { @@ -4878,7 +5122,7 @@ private APIlistResourceClaimForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceClaimForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistResourceClaimForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -4888,7 +5132,7 @@ public APIlistResourceClaimForAllNamespacesRequest allowWatchBookmarks(Boolean a * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceClaimForAllNamespacesRequest _continue(String _continue) { + public APIlistResourceClaimForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -4898,7 +5142,7 @@ public APIlistResourceClaimForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceClaimForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistResourceClaimForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -4908,7 +5152,7 @@ public APIlistResourceClaimForAllNamespacesRequest fieldSelector(String fieldSel * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceClaimForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistResourceClaimForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -4918,7 +5162,7 @@ public APIlistResourceClaimForAllNamespacesRequest labelSelector(String labelSel * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceClaimForAllNamespacesRequest limit(Integer limit) { + public APIlistResourceClaimForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -4928,7 +5172,7 @@ public APIlistResourceClaimForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceClaimForAllNamespacesRequest pretty(String pretty) { + public APIlistResourceClaimForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4938,7 +5182,7 @@ public APIlistResourceClaimForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceClaimForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistResourceClaimForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -4948,7 +5192,7 @@ public APIlistResourceClaimForAllNamespacesRequest resourceVersion(String resour * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceClaimForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistResourceClaimForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -4958,7 +5202,7 @@ public APIlistResourceClaimForAllNamespacesRequest resourceVersionMatch(String r * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceClaimForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistResourceClaimForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -4968,7 +5212,7 @@ public APIlistResourceClaimForAllNamespacesRequest sendInitialEvents(Boolean sen * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceClaimForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistResourceClaimForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4978,7 +5222,7 @@ public APIlistResourceClaimForAllNamespacesRequest timeoutSeconds(Integer timeou * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceClaimForAllNamespacesRequest watch(Boolean watch) { + public APIlistResourceClaimForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -4989,7 +5233,8 @@ public APIlistResourceClaimForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5004,7 +5249,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceClaimList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5020,7 +5266,8 @@ public V1beta1ResourceClaimList execute() throws ApiException { * @return ApiResponse<V1beta1ResourceClaimList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5036,7 +5283,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExc * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5052,7 +5300,8 @@ public okhttp3.Call executeAsync(final ApiCallback _ca * list or watch objects of kind ResourceClaim * @return APIlistResourceClaimForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5061,7 +5310,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca public APIlistResourceClaimForAllNamespacesRequest listResourceClaimForAllNamespaces() { return new APIlistResourceClaimForAllNamespacesRequest(); } - private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5156,19 +5405,19 @@ private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(Boolean allow } @SuppressWarnings("rawtypes") - private okhttp3.Call listResourceClaimTemplateForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceClaimTemplateForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listResourceClaimTemplateForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listResourceClaimTemplateForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listResourceClaimTemplateForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceClaimTemplateForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5177,16 +5426,27 @@ private okhttp3.Call listResourceClaimTemplateForAllNamespacesAsync(Boolean allo } public class APIlistResourceClaimTemplateForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistResourceClaimTemplateForAllNamespacesRequest() { @@ -5197,7 +5457,7 @@ private APIlistResourceClaimTemplateForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistResourceClaimTemplateForAllNamespacesRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistResourceClaimTemplateForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5207,7 +5467,7 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest allowWatchBookmarks(B * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistResourceClaimTemplateForAllNamespacesRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest _continue(String _continue) { + public APIlistResourceClaimTemplateForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5217,7 +5477,7 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest _continue(String _con * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistResourceClaimTemplateForAllNamespacesRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistResourceClaimTemplateForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5227,7 +5487,7 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest fieldSelector(String * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistResourceClaimTemplateForAllNamespacesRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistResourceClaimTemplateForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5237,7 +5497,7 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest labelSelector(String * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistResourceClaimTemplateForAllNamespacesRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest limit(Integer limit) { + public APIlistResourceClaimTemplateForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -5247,7 +5507,7 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest limit(Integer limit) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistResourceClaimTemplateForAllNamespacesRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest pretty(String pretty) { + public APIlistResourceClaimTemplateForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5257,7 +5517,7 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest pretty(String pretty) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistResourceClaimTemplateForAllNamespacesRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -5267,7 +5527,7 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersion(Strin * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistResourceClaimTemplateForAllNamespacesRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -5277,7 +5537,7 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersionMatch( * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistResourceClaimTemplateForAllNamespacesRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistResourceClaimTemplateForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -5287,7 +5547,7 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest sendInitialEvents(Boo * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistResourceClaimTemplateForAllNamespacesRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistResourceClaimTemplateForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -5297,7 +5557,7 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest timeoutSeconds(Intege * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistResourceClaimTemplateForAllNamespacesRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest watch(Boolean watch) { + public APIlistResourceClaimTemplateForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -5308,7 +5568,8 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest watch(Boolean watch) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5323,7 +5584,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceClaimTemplateList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5339,7 +5601,8 @@ public V1beta1ResourceClaimTemplateList execute() throws ApiException { * @return ApiResponse<V1beta1ResourceClaimTemplateList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5355,7 +5618,8 @@ public ApiResponse executeWithHttpInfo() throw * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5371,7 +5635,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -5380,7 +5645,7 @@ public okhttp3.Call executeAsync(final ApiCallback listResourceSliceWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listResourceSliceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listResourceSliceAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceSliceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5496,16 +5761,27 @@ private okhttp3.Call listResourceSliceAsync(String pretty, Boolean allowWatchBoo } public class APIlistResourceSliceRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistResourceSliceRequest() { @@ -5516,7 +5792,7 @@ private APIlistResourceSliceRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistResourceSliceRequest */ - public APIlistResourceSliceRequest pretty(String pretty) { + public APIlistResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5526,7 +5802,7 @@ public APIlistResourceSliceRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistResourceSliceRequest */ - public APIlistResourceSliceRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistResourceSliceRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5536,7 +5812,7 @@ public APIlistResourceSliceRequest allowWatchBookmarks(Boolean allowWatchBookmar * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistResourceSliceRequest */ - public APIlistResourceSliceRequest _continue(String _continue) { + public APIlistResourceSliceRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5546,7 +5822,7 @@ public APIlistResourceSliceRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistResourceSliceRequest */ - public APIlistResourceSliceRequest fieldSelector(String fieldSelector) { + public APIlistResourceSliceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5556,7 +5832,7 @@ public APIlistResourceSliceRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistResourceSliceRequest */ - public APIlistResourceSliceRequest labelSelector(String labelSelector) { + public APIlistResourceSliceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5566,7 +5842,7 @@ public APIlistResourceSliceRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistResourceSliceRequest */ - public APIlistResourceSliceRequest limit(Integer limit) { + public APIlistResourceSliceRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -5576,7 +5852,7 @@ public APIlistResourceSliceRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistResourceSliceRequest */ - public APIlistResourceSliceRequest resourceVersion(String resourceVersion) { + public APIlistResourceSliceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -5586,7 +5862,7 @@ public APIlistResourceSliceRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistResourceSliceRequest */ - public APIlistResourceSliceRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistResourceSliceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -5596,7 +5872,7 @@ public APIlistResourceSliceRequest resourceVersionMatch(String resourceVersionMa * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistResourceSliceRequest */ - public APIlistResourceSliceRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistResourceSliceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -5606,7 +5882,7 @@ public APIlistResourceSliceRequest sendInitialEvents(Boolean sendInitialEvents) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistResourceSliceRequest */ - public APIlistResourceSliceRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistResourceSliceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -5616,7 +5892,7 @@ public APIlistResourceSliceRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistResourceSliceRequest */ - public APIlistResourceSliceRequest watch(Boolean watch) { + public APIlistResourceSliceRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -5627,7 +5903,8 @@ public APIlistResourceSliceRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5642,7 +5919,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceSliceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5658,7 +5936,8 @@ public V1beta1ResourceSliceList execute() throws ApiException { * @return ApiResponse<V1beta1ResourceSliceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5674,7 +5953,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExc * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5690,7 +5970,8 @@ public okhttp3.Call executeAsync(final ApiCallback _ca * list or watch objects of kind ResourceSlice * @return APIlistResourceSliceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5699,7 +5980,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca public APIlistResourceSliceRequest listResourceSlice() { return new APIlistResourceSliceRequest(); } - private okhttp3.Call patchDeviceClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5769,7 +6050,7 @@ private okhttp3.Call patchDeviceClassCall(String name, V1Patch body, String pret } @SuppressWarnings("rawtypes") - private okhttp3.Call patchDeviceClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchDeviceClass(Async)"); @@ -5785,13 +6066,13 @@ private okhttp3.Call patchDeviceClassValidateBeforeCall(String name, V1Patch bod } - private ApiResponse patchDeviceClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchDeviceClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5800,15 +6081,22 @@ private okhttp3.Call patchDeviceClassAsync(String name, V1Patch body, String pre } public class APIpatchDeviceClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchDeviceClassRequest(String name, V1Patch body) { + private APIpatchDeviceClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -5818,7 +6106,7 @@ private APIpatchDeviceClassRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchDeviceClassRequest */ - public APIpatchDeviceClassRequest pretty(String pretty) { + public APIpatchDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5828,7 +6116,7 @@ public APIpatchDeviceClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchDeviceClassRequest */ - public APIpatchDeviceClassRequest dryRun(String dryRun) { + public APIpatchDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -5838,7 +6126,7 @@ public APIpatchDeviceClassRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchDeviceClassRequest */ - public APIpatchDeviceClassRequest fieldManager(String fieldManager) { + public APIpatchDeviceClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -5848,7 +6136,7 @@ public APIpatchDeviceClassRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchDeviceClassRequest */ - public APIpatchDeviceClassRequest fieldValidation(String fieldValidation) { + public APIpatchDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -5858,7 +6146,7 @@ public APIpatchDeviceClassRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchDeviceClassRequest */ - public APIpatchDeviceClassRequest force(Boolean force) { + public APIpatchDeviceClassRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -5869,7 +6157,8 @@ public APIpatchDeviceClassRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5885,7 +6174,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1DeviceClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5902,7 +6192,8 @@ public V1beta1DeviceClass execute() throws ApiException { * @return ApiResponse<V1beta1DeviceClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5919,7 +6210,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5938,17 +6230,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param body (required) * @return APIpatchDeviceClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchDeviceClassRequest patchDeviceClass(String name, V1Patch body) { + public APIpatchDeviceClassRequest patchDeviceClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchDeviceClassRequest(name, body); } - private okhttp3.Call patchNamespacedResourceClaimCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6019,7 +6312,7 @@ private okhttp3.Call patchNamespacedResourceClaimCall(String name, String namesp } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedResourceClaimValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaim(Async)"); @@ -6040,13 +6333,13 @@ private okhttp3.Call patchNamespacedResourceClaimValidateBeforeCall(String name, } - private ApiResponse patchNamespacedResourceClaimWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedResourceClaimAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6055,16 +6348,24 @@ private okhttp3.Call patchNamespacedResourceClaimAsync(String name, String names } public class APIpatchNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedResourceClaimRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -6075,7 +6376,7 @@ private APIpatchNamespacedResourceClaimRequest(String name, String namespace, V1 * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedResourceClaimRequest */ - public APIpatchNamespacedResourceClaimRequest pretty(String pretty) { + public APIpatchNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6085,7 +6386,7 @@ public APIpatchNamespacedResourceClaimRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedResourceClaimRequest */ - public APIpatchNamespacedResourceClaimRequest dryRun(String dryRun) { + public APIpatchNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6095,7 +6396,7 @@ public APIpatchNamespacedResourceClaimRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedResourceClaimRequest */ - public APIpatchNamespacedResourceClaimRequest fieldManager(String fieldManager) { + public APIpatchNamespacedResourceClaimRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6105,7 +6406,7 @@ public APIpatchNamespacedResourceClaimRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedResourceClaimRequest */ - public APIpatchNamespacedResourceClaimRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedResourceClaimRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -6115,7 +6416,7 @@ public APIpatchNamespacedResourceClaimRequest fieldValidation(String fieldValida * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedResourceClaimRequest */ - public APIpatchNamespacedResourceClaimRequest force(Boolean force) { + public APIpatchNamespacedResourceClaimRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -6126,7 +6427,8 @@ public APIpatchNamespacedResourceClaimRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6142,7 +6444,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6159,7 +6462,8 @@ public V1beta1ResourceClaim execute() throws ApiException { * @return ApiResponse<V1beta1ResourceClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6176,7 +6480,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6196,17 +6501,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param body (required) * @return APIpatchNamespacedResourceClaimRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedResourceClaimRequest patchNamespacedResourceClaim(String name, String namespace, V1Patch body) { + public APIpatchNamespacedResourceClaimRequest patchNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedResourceClaimRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedResourceClaimStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceClaimStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6277,7 +6583,7 @@ private okhttp3.Call patchNamespacedResourceClaimStatusCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceClaimStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaimStatus(Async)"); @@ -6298,13 +6604,13 @@ private okhttp3.Call patchNamespacedResourceClaimStatusValidateBeforeCall(String } - private ApiResponse patchNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedResourceClaimStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedResourceClaimStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceClaimStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6313,16 +6619,24 @@ private okhttp3.Call patchNamespacedResourceClaimStatusAsync(String name, String } public class APIpatchNamespacedResourceClaimStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedResourceClaimStatusRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedResourceClaimStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -6333,7 +6647,7 @@ private APIpatchNamespacedResourceClaimStatusRequest(String name, String namespa * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedResourceClaimStatusRequest */ - public APIpatchNamespacedResourceClaimStatusRequest pretty(String pretty) { + public APIpatchNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6343,7 +6657,7 @@ public APIpatchNamespacedResourceClaimStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedResourceClaimStatusRequest */ - public APIpatchNamespacedResourceClaimStatusRequest dryRun(String dryRun) { + public APIpatchNamespacedResourceClaimStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6353,7 +6667,7 @@ public APIpatchNamespacedResourceClaimStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedResourceClaimStatusRequest */ - public APIpatchNamespacedResourceClaimStatusRequest fieldManager(String fieldManager) { + public APIpatchNamespacedResourceClaimStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6363,7 +6677,7 @@ public APIpatchNamespacedResourceClaimStatusRequest fieldManager(String fieldMan * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedResourceClaimStatusRequest */ - public APIpatchNamespacedResourceClaimStatusRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedResourceClaimStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -6373,7 +6687,7 @@ public APIpatchNamespacedResourceClaimStatusRequest fieldValidation(String field * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedResourceClaimStatusRequest */ - public APIpatchNamespacedResourceClaimStatusRequest force(Boolean force) { + public APIpatchNamespacedResourceClaimStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -6384,7 +6698,8 @@ public APIpatchNamespacedResourceClaimStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6400,7 +6715,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6417,7 +6733,8 @@ public V1beta1ResourceClaim execute() throws ApiException { * @return ApiResponse<V1beta1ResourceClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6434,7 +6751,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6454,17 +6772,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param body (required) * @return APIpatchNamespacedResourceClaimStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedResourceClaimStatusRequest patchNamespacedResourceClaimStatus(String name, String namespace, V1Patch body) { + public APIpatchNamespacedResourceClaimStatusRequest patchNamespacedResourceClaimStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedResourceClaimStatusRequest(name, namespace, body); } - private okhttp3.Call patchNamespacedResourceClaimTemplateCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6535,7 +6854,7 @@ private okhttp3.Call patchNamespacedResourceClaimTemplateCall(String name, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaimTemplate(Async)"); @@ -6556,13 +6875,13 @@ private okhttp3.Call patchNamespacedResourceClaimTemplateValidateBeforeCall(Stri } - private ApiResponse patchNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedResourceClaimTemplateAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6571,16 +6890,24 @@ private okhttp3.Call patchNamespacedResourceClaimTemplateAsync(String name, Stri } public class APIpatchNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedResourceClaimTemplateRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -6591,7 +6918,7 @@ private APIpatchNamespacedResourceClaimTemplateRequest(String name, String names * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedResourceClaimTemplateRequest */ - public APIpatchNamespacedResourceClaimTemplateRequest pretty(String pretty) { + public APIpatchNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6601,7 +6928,7 @@ public APIpatchNamespacedResourceClaimTemplateRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedResourceClaimTemplateRequest */ - public APIpatchNamespacedResourceClaimTemplateRequest dryRun(String dryRun) { + public APIpatchNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6611,7 +6938,7 @@ public APIpatchNamespacedResourceClaimTemplateRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedResourceClaimTemplateRequest */ - public APIpatchNamespacedResourceClaimTemplateRequest fieldManager(String fieldManager) { + public APIpatchNamespacedResourceClaimTemplateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6621,7 +6948,7 @@ public APIpatchNamespacedResourceClaimTemplateRequest fieldManager(String fieldM * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedResourceClaimTemplateRequest */ - public APIpatchNamespacedResourceClaimTemplateRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedResourceClaimTemplateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -6631,7 +6958,7 @@ public APIpatchNamespacedResourceClaimTemplateRequest fieldValidation(String fie * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedResourceClaimTemplateRequest */ - public APIpatchNamespacedResourceClaimTemplateRequest force(Boolean force) { + public APIpatchNamespacedResourceClaimTemplateRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -6642,7 +6969,8 @@ public APIpatchNamespacedResourceClaimTemplateRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6658,7 +6986,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceClaimTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6675,7 +7004,8 @@ public V1beta1ResourceClaimTemplate execute() throws ApiException { * @return ApiResponse<V1beta1ResourceClaimTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6692,7 +7022,8 @@ public ApiResponse executeWithHttpInfo() throws Ap * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6712,17 +7043,18 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIpatchNamespacedResourceClaimTemplateRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedResourceClaimTemplateRequest patchNamespacedResourceClaimTemplate(String name, String namespace, V1Patch body) { + public APIpatchNamespacedResourceClaimTemplateRequest patchNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedResourceClaimTemplateRequest(name, namespace, body); } - private okhttp3.Call patchResourceSliceCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6792,7 +7124,7 @@ private okhttp3.Call patchResourceSliceCall(String name, V1Patch body, String pr } @SuppressWarnings("rawtypes") - private okhttp3.Call patchResourceSliceValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchResourceSlice(Async)"); @@ -6808,13 +7140,13 @@ private okhttp3.Call patchResourceSliceValidateBeforeCall(String name, V1Patch b } - private ApiResponse patchResourceSliceWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchResourceSliceAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6823,15 +7155,22 @@ private okhttp3.Call patchResourceSliceAsync(String name, V1Patch body, String p } public class APIpatchResourceSliceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchResourceSliceRequest(String name, V1Patch body) { + private APIpatchResourceSliceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -6841,7 +7180,7 @@ private APIpatchResourceSliceRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchResourceSliceRequest */ - public APIpatchResourceSliceRequest pretty(String pretty) { + public APIpatchResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6851,7 +7190,7 @@ public APIpatchResourceSliceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchResourceSliceRequest */ - public APIpatchResourceSliceRequest dryRun(String dryRun) { + public APIpatchResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6861,7 +7200,7 @@ public APIpatchResourceSliceRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchResourceSliceRequest */ - public APIpatchResourceSliceRequest fieldManager(String fieldManager) { + public APIpatchResourceSliceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6871,7 +7210,7 @@ public APIpatchResourceSliceRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchResourceSliceRequest */ - public APIpatchResourceSliceRequest fieldValidation(String fieldValidation) { + public APIpatchResourceSliceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -6881,7 +7220,7 @@ public APIpatchResourceSliceRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchResourceSliceRequest */ - public APIpatchResourceSliceRequest force(Boolean force) { + public APIpatchResourceSliceRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -6892,7 +7231,8 @@ public APIpatchResourceSliceRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6908,7 +7248,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceSlice * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6925,7 +7266,8 @@ public V1beta1ResourceSlice execute() throws ApiException { * @return ApiResponse<V1beta1ResourceSlice> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6942,7 +7284,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6961,17 +7304,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param body (required) * @return APIpatchResourceSliceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchResourceSliceRequest patchResourceSlice(String name, V1Patch body) { + public APIpatchResourceSliceRequest patchResourceSlice(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchResourceSliceRequest(name, body); } - private okhttp3.Call readDeviceClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7024,7 +7368,7 @@ private okhttp3.Call readDeviceClassCall(String name, String pretty, final ApiCa } @SuppressWarnings("rawtypes") - private okhttp3.Call readDeviceClassValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readDeviceClass(Async)"); @@ -7035,13 +7379,13 @@ private okhttp3.Call readDeviceClassValidateBeforeCall(String name, String prett } - private ApiResponse readDeviceClassWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readDeviceClassAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7050,10 +7394,12 @@ private okhttp3.Call readDeviceClassAsync(String name, String pretty, final ApiC } public class APIreadDeviceClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadDeviceClassRequest(String name) { + private APIreadDeviceClassRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -7062,7 +7408,7 @@ private APIreadDeviceClassRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadDeviceClassRequest */ - public APIreadDeviceClassRequest pretty(String pretty) { + public APIreadDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7073,7 +7419,8 @@ public APIreadDeviceClassRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7088,7 +7435,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1DeviceClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7104,7 +7452,8 @@ public V1beta1DeviceClass execute() throws ApiException { * @return ApiResponse<V1beta1DeviceClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7120,7 +7469,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7137,16 +7487,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param name name of the DeviceClass (required) * @return APIreadDeviceClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadDeviceClassRequest readDeviceClass(String name) { + public APIreadDeviceClassRequest readDeviceClass(@jakarta.annotation.Nonnull String name) { return new APIreadDeviceClassRequest(name); } - private okhttp3.Call readNamespacedResourceClaimCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7200,7 +7551,7 @@ private okhttp3.Call readNamespacedResourceClaimCall(String name, String namespa } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedResourceClaimValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaim(Async)"); @@ -7216,13 +7567,13 @@ private okhttp3.Call readNamespacedResourceClaimValidateBeforeCall(String name, } - private ApiResponse readNamespacedResourceClaimWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedResourceClaimAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7231,11 +7582,14 @@ private okhttp3.Call readNamespacedResourceClaimAsync(String name, String namesp } public class APIreadNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedResourceClaimRequest(String name, String namespace) { + private APIreadNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -7245,7 +7599,7 @@ private APIreadNamespacedResourceClaimRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedResourceClaimRequest */ - public APIreadNamespacedResourceClaimRequest pretty(String pretty) { + public APIreadNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7256,7 +7610,8 @@ public APIreadNamespacedResourceClaimRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7271,7 +7626,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7287,7 +7643,8 @@ public V1beta1ResourceClaim execute() throws ApiException { * @return ApiResponse<V1beta1ResourceClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7303,7 +7660,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7321,16 +7679,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedResourceClaimRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedResourceClaimRequest readNamespacedResourceClaim(String name, String namespace) { + public APIreadNamespacedResourceClaimRequest readNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedResourceClaimRequest(name, namespace); } - private okhttp3.Call readNamespacedResourceClaimStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7384,7 +7743,7 @@ private okhttp3.Call readNamespacedResourceClaimStatusCall(String name, String n } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimStatus(Async)"); @@ -7400,13 +7759,13 @@ private okhttp3.Call readNamespacedResourceClaimStatusValidateBeforeCall(String } - private ApiResponse readNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedResourceClaimStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedResourceClaimStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7415,11 +7774,14 @@ private okhttp3.Call readNamespacedResourceClaimStatusAsync(String name, String } public class APIreadNamespacedResourceClaimStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedResourceClaimStatusRequest(String name, String namespace) { + private APIreadNamespacedResourceClaimStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -7429,7 +7791,7 @@ private APIreadNamespacedResourceClaimStatusRequest(String name, String namespac * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedResourceClaimStatusRequest */ - public APIreadNamespacedResourceClaimStatusRequest pretty(String pretty) { + public APIreadNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7440,7 +7802,8 @@ public APIreadNamespacedResourceClaimStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7455,7 +7818,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7471,7 +7835,8 @@ public V1beta1ResourceClaim execute() throws ApiException { * @return ApiResponse<V1beta1ResourceClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7487,7 +7852,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7505,16 +7871,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedResourceClaimStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedResourceClaimStatusRequest readNamespacedResourceClaimStatus(String name, String namespace) { + public APIreadNamespacedResourceClaimStatusRequest readNamespacedResourceClaimStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedResourceClaimStatusRequest(name, namespace); } - private okhttp3.Call readNamespacedResourceClaimTemplateCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7568,7 +7935,7 @@ private okhttp3.Call readNamespacedResourceClaimTemplateCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimTemplate(Async)"); @@ -7584,13 +7951,13 @@ private okhttp3.Call readNamespacedResourceClaimTemplateValidateBeforeCall(Strin } - private ApiResponse readNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedResourceClaimTemplateAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7599,11 +7966,14 @@ private okhttp3.Call readNamespacedResourceClaimTemplateAsync(String name, Strin } public class APIreadNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedResourceClaimTemplateRequest(String name, String namespace) { + private APIreadNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -7613,7 +7983,7 @@ private APIreadNamespacedResourceClaimTemplateRequest(String name, String namesp * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedResourceClaimTemplateRequest */ - public APIreadNamespacedResourceClaimTemplateRequest pretty(String pretty) { + public APIreadNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7624,7 +7994,8 @@ public APIreadNamespacedResourceClaimTemplateRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7639,7 +8010,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceClaimTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7655,7 +8027,8 @@ public V1beta1ResourceClaimTemplate execute() throws ApiException { * @return ApiResponse<V1beta1ResourceClaimTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7671,7 +8044,8 @@ public ApiResponse executeWithHttpInfo() throws Ap * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7689,16 +8063,17 @@ public okhttp3.Call executeAsync(final ApiCallback * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedResourceClaimTemplateRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedResourceClaimTemplateRequest readNamespacedResourceClaimTemplate(String name, String namespace) { + public APIreadNamespacedResourceClaimTemplateRequest readNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedResourceClaimTemplateRequest(name, namespace); } - private okhttp3.Call readResourceSliceCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7751,7 +8126,7 @@ private okhttp3.Call readResourceSliceCall(String name, String pretty, final Api } @SuppressWarnings("rawtypes") - private okhttp3.Call readResourceSliceValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readResourceSlice(Async)"); @@ -7762,13 +8137,13 @@ private okhttp3.Call readResourceSliceValidateBeforeCall(String name, String pre } - private ApiResponse readResourceSliceWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readResourceSliceAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7777,10 +8152,12 @@ private okhttp3.Call readResourceSliceAsync(String name, String pretty, final Ap } public class APIreadResourceSliceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadResourceSliceRequest(String name) { + private APIreadResourceSliceRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -7789,7 +8166,7 @@ private APIreadResourceSliceRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadResourceSliceRequest */ - public APIreadResourceSliceRequest pretty(String pretty) { + public APIreadResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7800,7 +8177,8 @@ public APIreadResourceSliceRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7815,7 +8193,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceSlice * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7831,7 +8210,8 @@ public V1beta1ResourceSlice execute() throws ApiException { * @return ApiResponse<V1beta1ResourceSlice> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7847,7 +8227,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -7864,16 +8245,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param name name of the ResourceSlice (required) * @return APIreadResourceSliceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadResourceSliceRequest readResourceSlice(String name) { + public APIreadResourceSliceRequest readResourceSlice(@jakarta.annotation.Nonnull String name) { return new APIreadResourceSliceRequest(name); } - private okhttp3.Call replaceDeviceClassCall(String name, V1beta1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7939,7 +8321,7 @@ private okhttp3.Call replaceDeviceClassCall(String name, V1beta1DeviceClass body } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceDeviceClassValidateBeforeCall(String name, V1beta1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceDeviceClass(Async)"); @@ -7955,13 +8337,13 @@ private okhttp3.Call replaceDeviceClassValidateBeforeCall(String name, V1beta1De } - private ApiResponse replaceDeviceClassWithHttpInfo(String name, V1beta1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceDeviceClassAsync(String name, V1beta1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7970,14 +8352,20 @@ private okhttp3.Call replaceDeviceClassAsync(String name, V1beta1DeviceClass bod } public class APIreplaceDeviceClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1beta1DeviceClass body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceDeviceClassRequest(String name, V1beta1DeviceClass body) { + private APIreplaceDeviceClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1DeviceClass body) { this.name = name; this.body = body; } @@ -7987,7 +8375,7 @@ private APIreplaceDeviceClassRequest(String name, V1beta1DeviceClass body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceDeviceClassRequest */ - public APIreplaceDeviceClassRequest pretty(String pretty) { + public APIreplaceDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7997,7 +8385,7 @@ public APIreplaceDeviceClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceDeviceClassRequest */ - public APIreplaceDeviceClassRequest dryRun(String dryRun) { + public APIreplaceDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -8007,7 +8395,7 @@ public APIreplaceDeviceClassRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceDeviceClassRequest */ - public APIreplaceDeviceClassRequest fieldManager(String fieldManager) { + public APIreplaceDeviceClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -8017,7 +8405,7 @@ public APIreplaceDeviceClassRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceDeviceClassRequest */ - public APIreplaceDeviceClassRequest fieldValidation(String fieldValidation) { + public APIreplaceDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -8028,7 +8416,8 @@ public APIreplaceDeviceClassRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8044,7 +8433,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1DeviceClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8061,7 +8451,8 @@ public V1beta1DeviceClass execute() throws ApiException { * @return ApiResponse<V1beta1DeviceClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8078,7 +8469,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8097,17 +8489,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param body (required) * @return APIreplaceDeviceClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceDeviceClassRequest replaceDeviceClass(String name, V1beta1DeviceClass body) { + public APIreplaceDeviceClassRequest replaceDeviceClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1DeviceClass body) { return new APIreplaceDeviceClassRequest(name, body); } - private okhttp3.Call replaceNamespacedResourceClaimCall(String name, String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8174,7 +8567,7 @@ private okhttp3.Call replaceNamespacedResourceClaimCall(String name, String name } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedResourceClaimValidateBeforeCall(String name, String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaim(Async)"); @@ -8195,13 +8588,13 @@ private okhttp3.Call replaceNamespacedResourceClaimValidateBeforeCall(String nam } - private ApiResponse replaceNamespacedResourceClaimWithHttpInfo(String name, String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedResourceClaimAsync(String name, String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8210,15 +8603,22 @@ private okhttp3.Call replaceNamespacedResourceClaimAsync(String name, String nam } public class APIreplaceNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1beta1ResourceClaim body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedResourceClaimRequest(String name, String namespace, V1beta1ResourceClaim body) { + private APIreplaceNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaim body) { this.name = name; this.namespace = namespace; this.body = body; @@ -8229,7 +8629,7 @@ private APIreplaceNamespacedResourceClaimRequest(String name, String namespace, * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedResourceClaimRequest */ - public APIreplaceNamespacedResourceClaimRequest pretty(String pretty) { + public APIreplaceNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8239,7 +8639,7 @@ public APIreplaceNamespacedResourceClaimRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedResourceClaimRequest */ - public APIreplaceNamespacedResourceClaimRequest dryRun(String dryRun) { + public APIreplaceNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -8249,7 +8649,7 @@ public APIreplaceNamespacedResourceClaimRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedResourceClaimRequest */ - public APIreplaceNamespacedResourceClaimRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedResourceClaimRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -8259,7 +8659,7 @@ public APIreplaceNamespacedResourceClaimRequest fieldManager(String fieldManager * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedResourceClaimRequest */ - public APIreplaceNamespacedResourceClaimRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedResourceClaimRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -8270,7 +8670,8 @@ public APIreplaceNamespacedResourceClaimRequest fieldValidation(String fieldVali * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8286,7 +8687,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8303,7 +8705,8 @@ public V1beta1ResourceClaim execute() throws ApiException { * @return ApiResponse<V1beta1ResourceClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8320,7 +8723,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8340,17 +8744,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param body (required) * @return APIreplaceNamespacedResourceClaimRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedResourceClaimRequest replaceNamespacedResourceClaim(String name, String namespace, V1beta1ResourceClaim body) { + public APIreplaceNamespacedResourceClaimRequest replaceNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaim body) { return new APIreplaceNamespacedResourceClaimRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedResourceClaimStatusCall(String name, String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceClaimStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8417,7 +8822,7 @@ private okhttp3.Call replaceNamespacedResourceClaimStatusCall(String name, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceClaimStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaimStatus(Async)"); @@ -8438,13 +8843,13 @@ private okhttp3.Call replaceNamespacedResourceClaimStatusValidateBeforeCall(Stri } - private ApiResponse replaceNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedResourceClaimStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedResourceClaimStatusAsync(String name, String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceClaimStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8453,15 +8858,22 @@ private okhttp3.Call replaceNamespacedResourceClaimStatusAsync(String name, Stri } public class APIreplaceNamespacedResourceClaimStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1beta1ResourceClaim body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedResourceClaimStatusRequest(String name, String namespace, V1beta1ResourceClaim body) { + private APIreplaceNamespacedResourceClaimStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaim body) { this.name = name; this.namespace = namespace; this.body = body; @@ -8472,7 +8884,7 @@ private APIreplaceNamespacedResourceClaimStatusRequest(String name, String names * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedResourceClaimStatusRequest */ - public APIreplaceNamespacedResourceClaimStatusRequest pretty(String pretty) { + public APIreplaceNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8482,7 +8894,7 @@ public APIreplaceNamespacedResourceClaimStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedResourceClaimStatusRequest */ - public APIreplaceNamespacedResourceClaimStatusRequest dryRun(String dryRun) { + public APIreplaceNamespacedResourceClaimStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -8492,7 +8904,7 @@ public APIreplaceNamespacedResourceClaimStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedResourceClaimStatusRequest */ - public APIreplaceNamespacedResourceClaimStatusRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedResourceClaimStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -8502,7 +8914,7 @@ public APIreplaceNamespacedResourceClaimStatusRequest fieldManager(String fieldM * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedResourceClaimStatusRequest */ - public APIreplaceNamespacedResourceClaimStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedResourceClaimStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -8513,7 +8925,8 @@ public APIreplaceNamespacedResourceClaimStatusRequest fieldValidation(String fie * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8529,7 +8942,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8546,7 +8960,8 @@ public V1beta1ResourceClaim execute() throws ApiException { * @return ApiResponse<V1beta1ResourceClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8563,7 +8978,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8583,17 +8999,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param body (required) * @return APIreplaceNamespacedResourceClaimStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedResourceClaimStatusRequest replaceNamespacedResourceClaimStatus(String name, String namespace, V1beta1ResourceClaim body) { + public APIreplaceNamespacedResourceClaimStatusRequest replaceNamespacedResourceClaimStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaim body) { return new APIreplaceNamespacedResourceClaimStatusRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedResourceClaimTemplateCall(String name, String namespace, V1beta1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8660,7 +9077,7 @@ private okhttp3.Call replaceNamespacedResourceClaimTemplateCall(String name, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, V1beta1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaimTemplate(Async)"); @@ -8681,13 +9098,13 @@ private okhttp3.Call replaceNamespacedResourceClaimTemplateValidateBeforeCall(St } - private ApiResponse replaceNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, V1beta1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedResourceClaimTemplateAsync(String name, String namespace, V1beta1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8696,15 +9113,22 @@ private okhttp3.Call replaceNamespacedResourceClaimTemplateAsync(String name, St } public class APIreplaceNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1beta1ResourceClaimTemplate body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedResourceClaimTemplateRequest(String name, String namespace, V1beta1ResourceClaimTemplate body) { + private APIreplaceNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaimTemplate body) { this.name = name; this.namespace = namespace; this.body = body; @@ -8715,7 +9139,7 @@ private APIreplaceNamespacedResourceClaimTemplateRequest(String name, String nam * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedResourceClaimTemplateRequest */ - public APIreplaceNamespacedResourceClaimTemplateRequest pretty(String pretty) { + public APIreplaceNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8725,7 +9149,7 @@ public APIreplaceNamespacedResourceClaimTemplateRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedResourceClaimTemplateRequest */ - public APIreplaceNamespacedResourceClaimTemplateRequest dryRun(String dryRun) { + public APIreplaceNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -8735,7 +9159,7 @@ public APIreplaceNamespacedResourceClaimTemplateRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedResourceClaimTemplateRequest */ - public APIreplaceNamespacedResourceClaimTemplateRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedResourceClaimTemplateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -8745,7 +9169,7 @@ public APIreplaceNamespacedResourceClaimTemplateRequest fieldManager(String fiel * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedResourceClaimTemplateRequest */ - public APIreplaceNamespacedResourceClaimTemplateRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedResourceClaimTemplateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -8756,7 +9180,8 @@ public APIreplaceNamespacedResourceClaimTemplateRequest fieldValidation(String f * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8772,7 +9197,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceClaimTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8789,7 +9215,8 @@ public V1beta1ResourceClaimTemplate execute() throws ApiException { * @return ApiResponse<V1beta1ResourceClaimTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8806,7 +9233,8 @@ public ApiResponse executeWithHttpInfo() throws Ap * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8826,17 +9254,18 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIreplaceNamespacedResourceClaimTemplateRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedResourceClaimTemplateRequest replaceNamespacedResourceClaimTemplate(String name, String namespace, V1beta1ResourceClaimTemplate body) { + public APIreplaceNamespacedResourceClaimTemplateRequest replaceNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1ResourceClaimTemplate body) { return new APIreplaceNamespacedResourceClaimTemplateRequest(name, namespace, body); } - private okhttp3.Call replaceResourceSliceCall(String name, V1beta1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8902,7 +9331,7 @@ private okhttp3.Call replaceResourceSliceCall(String name, V1beta1ResourceSlice } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceResourceSliceValidateBeforeCall(String name, V1beta1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceResourceSlice(Async)"); @@ -8918,13 +9347,13 @@ private okhttp3.Call replaceResourceSliceValidateBeforeCall(String name, V1beta1 } - private ApiResponse replaceResourceSliceWithHttpInfo(String name, V1beta1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceResourceSliceAsync(String name, V1beta1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8933,14 +9362,20 @@ private okhttp3.Call replaceResourceSliceAsync(String name, V1beta1ResourceSlice } public class APIreplaceResourceSliceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1beta1ResourceSlice body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceResourceSliceRequest(String name, V1beta1ResourceSlice body) { + private APIreplaceResourceSliceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ResourceSlice body) { this.name = name; this.body = body; } @@ -8950,7 +9385,7 @@ private APIreplaceResourceSliceRequest(String name, V1beta1ResourceSlice body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceResourceSliceRequest */ - public APIreplaceResourceSliceRequest pretty(String pretty) { + public APIreplaceResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8960,7 +9395,7 @@ public APIreplaceResourceSliceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceResourceSliceRequest */ - public APIreplaceResourceSliceRequest dryRun(String dryRun) { + public APIreplaceResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -8970,7 +9405,7 @@ public APIreplaceResourceSliceRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceResourceSliceRequest */ - public APIreplaceResourceSliceRequest fieldManager(String fieldManager) { + public APIreplaceResourceSliceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -8980,7 +9415,7 @@ public APIreplaceResourceSliceRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceResourceSliceRequest */ - public APIreplaceResourceSliceRequest fieldValidation(String fieldValidation) { + public APIreplaceResourceSliceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -8991,7 +9426,8 @@ public APIreplaceResourceSliceRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -9007,7 +9443,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1ResourceSlice * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9024,7 +9461,8 @@ public V1beta1ResourceSlice execute() throws ApiException { * @return ApiResponse<V1beta1ResourceSlice> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9041,7 +9479,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9060,14 +9499,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param body (required) * @return APIreplaceResourceSliceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceResourceSliceRequest replaceResourceSlice(String name, V1beta1ResourceSlice body) { + public APIreplaceResourceSliceRequest replaceResourceSlice(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ResourceSlice body) { return new APIreplaceResourceSliceRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta2Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta2Api.java new file mode 100644 index 0000000000..eb8440204b --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta2Api.java @@ -0,0 +1,9513 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.apis; + +import io.kubernetes.client.openapi.ApiCallback; +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.ApiResponse; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.Pair; +import io.kubernetes.client.openapi.ProgressRequestBody; +import io.kubernetes.client.openapi.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.kubernetes.client.openapi.models.V1APIResourceList; +import io.kubernetes.client.openapi.models.V1DeleteOptions; +import io.kubernetes.client.custom.V1Patch; +import io.kubernetes.client.openapi.models.V1Status; +import io.kubernetes.client.openapi.models.V1beta2DeviceClass; +import io.kubernetes.client.openapi.models.V1beta2DeviceClassList; +import io.kubernetes.client.openapi.models.V1beta2ResourceClaim; +import io.kubernetes.client.openapi.models.V1beta2ResourceClaimList; +import io.kubernetes.client.openapi.models.V1beta2ResourceClaimTemplate; +import io.kubernetes.client.openapi.models.V1beta2ResourceClaimTemplateList; +import io.kubernetes.client.openapi.models.V1beta2ResourceSlice; +import io.kubernetes.client.openapi.models.V1beta2ResourceSliceList; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ResourceV1beta2Api { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public ResourceV1beta2Api() { + this(Configuration.getDefaultApiClient()); + } + + public ResourceV1beta2Api(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + private okhttp3.Call createDeviceClassCall(@jakarta.annotation.Nonnull V1beta2DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull V1beta2DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createDeviceClass(Async)"); + } + + return createDeviceClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse createDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull V1beta2DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createDeviceClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createDeviceClassAsync(@jakarta.annotation.Nonnull V1beta2DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createDeviceClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateDeviceClassRequest { + @jakarta.annotation.Nonnull + private final V1beta2DeviceClass body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIcreateDeviceClassRequest(@jakarta.annotation.Nonnull V1beta2DeviceClass body) { + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIcreateDeviceClassRequest + */ + public APIcreateDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIcreateDeviceClassRequest + */ + public APIcreateDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIcreateDeviceClassRequest + */ + public APIcreateDeviceClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIcreateDeviceClassRequest + */ + public APIcreateDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for createDeviceClass + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return createDeviceClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute createDeviceClass request + * @return V1beta2DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta2DeviceClass execute() throws ApiException { + ApiResponse localVarResp = createDeviceClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createDeviceClass request with HTTP info returned + * @return ApiResponse<V1beta2DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createDeviceClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute createDeviceClass request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createDeviceClassAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * create a DeviceClass + * @param body (required) + * @return APIcreateDeviceClassRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public APIcreateDeviceClassRequest createDeviceClass(@jakarta.annotation.Nonnull V1beta2DeviceClass body) { + return new APIcreateDeviceClassRequest(body); + } + private okhttp3.Call createNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createNamespacedResourceClaim(Async)"); + } + + return createNamespacedResourceClaimCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse createNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createNamespacedResourceClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedResourceClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1beta2ResourceClaim body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIcreateNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaim body) { + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIcreateNamespacedResourceClaimRequest + */ + public APIcreateNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIcreateNamespacedResourceClaimRequest + */ + public APIcreateNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIcreateNamespacedResourceClaimRequest + */ + public APIcreateNamespacedResourceClaimRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIcreateNamespacedResourceClaimRequest + */ + public APIcreateNamespacedResourceClaimRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for createNamespacedResourceClaim + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return createNamespacedResourceClaimCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute createNamespacedResourceClaim request + * @return V1beta2ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta2ResourceClaim execute() throws ApiException { + ApiResponse localVarResp = createNamespacedResourceClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createNamespacedResourceClaim request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createNamespacedResourceClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute createNamespacedResourceClaim request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createNamespacedResourceClaimAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * create a ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIcreateNamespacedResourceClaimRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public APIcreateNamespacedResourceClaimRequest createNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaim body) { + return new APIcreateNamespacedResourceClaimRequest(namespace, body); + } + private okhttp3.Call createNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createNamespacedResourceClaimTemplate(Async)"); + } + + return createNamespacedResourceClaimTemplateCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse createNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1beta2ResourceClaimTemplate body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIcreateNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaimTemplate body) { + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIcreateNamespacedResourceClaimTemplateRequest + */ + public APIcreateNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIcreateNamespacedResourceClaimTemplateRequest + */ + public APIcreateNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIcreateNamespacedResourceClaimTemplateRequest + */ + public APIcreateNamespacedResourceClaimTemplateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIcreateNamespacedResourceClaimTemplateRequest + */ + public APIcreateNamespacedResourceClaimTemplateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for createNamespacedResourceClaimTemplate + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return createNamespacedResourceClaimTemplateCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute createNamespacedResourceClaimTemplate request + * @return V1beta2ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta2ResourceClaimTemplate execute() throws ApiException { + ApiResponse localVarResp = createNamespacedResourceClaimTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createNamespacedResourceClaimTemplate request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createNamespacedResourceClaimTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute createNamespacedResourceClaimTemplate request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createNamespacedResourceClaimTemplateAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * create a ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIcreateNamespacedResourceClaimTemplateRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public APIcreateNamespacedResourceClaimTemplateRequest createNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaimTemplate body) { + return new APIcreateNamespacedResourceClaimTemplateRequest(namespace, body); + } + private okhttp3.Call createResourceSliceCall(@jakarta.annotation.Nonnull V1beta2ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull V1beta2ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createResourceSlice(Async)"); + } + + return createResourceSliceCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse createResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull V1beta2ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createResourceSliceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createResourceSliceAsync(@jakarta.annotation.Nonnull V1beta2ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createResourceSliceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateResourceSliceRequest { + @jakarta.annotation.Nonnull + private final V1beta2ResourceSlice body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIcreateResourceSliceRequest(@jakarta.annotation.Nonnull V1beta2ResourceSlice body) { + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIcreateResourceSliceRequest + */ + public APIcreateResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIcreateResourceSliceRequest + */ + public APIcreateResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIcreateResourceSliceRequest + */ + public APIcreateResourceSliceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIcreateResourceSliceRequest + */ + public APIcreateResourceSliceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for createResourceSlice + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return createResourceSliceCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute createResourceSlice request + * @return V1beta2ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta2ResourceSlice execute() throws ApiException { + ApiResponse localVarResp = createResourceSliceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createResourceSlice request with HTTP info returned + * @return ApiResponse<V1beta2ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createResourceSliceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute createResourceSlice request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createResourceSliceAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * create a ResourceSlice + * @param body (required) + * @return APIcreateResourceSliceRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public APIcreateResourceSliceRequest createResourceSlice(@jakarta.annotation.Nonnull V1beta2ResourceSlice body) { + return new APIcreateResourceSliceRequest(body); + } + private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionDeviceClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + + } + + + private ApiResponse deleteCollectionDeviceClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteCollectionDeviceClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteCollectionDeviceClassRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionDeviceClassRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionDeviceClass + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionDeviceClass request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionDeviceClass request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionDeviceClass request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCollectionDeviceClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of DeviceClass + * @return APIdeleteCollectionDeviceClassRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionDeviceClassRequest deleteCollectionDeviceClass() { + return new APIdeleteCollectionDeviceClassRequest(); + } + private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaim(Async)"); + } + + return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + + } + + + private ApiResponse deleteCollectionNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteCollectionNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteCollectionNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String namespace) { + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionNamespacedResourceClaim + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionNamespacedResourceClaim request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionNamespacedResourceClaim request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionNamespacedResourceClaim request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCollectionNamespacedResourceClaimAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionNamespacedResourceClaimRequest deleteCollectionNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace) { + return new APIdeleteCollectionNamespacedResourceClaimRequest(namespace); + } + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaimTemplate(Async)"); + } + + return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + + } + + + private ApiResponse deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteCollectionNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String namespace) { + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionNamespacedResourceClaimTemplate + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionNamespacedResourceClaimTemplate request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionNamespacedResourceClaimTemplate request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionNamespacedResourceClaimTemplate request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCollectionNamespacedResourceClaimTemplateAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest deleteCollectionNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace) { + return new APIdeleteCollectionNamespacedResourceClaimTemplateRequest(namespace); + } + private okhttp3.Call deleteCollectionResourceSliceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionResourceSliceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + + } + + + private ApiResponse deleteCollectionResourceSliceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteCollectionResourceSliceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteCollectionResourceSliceRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionResourceSliceRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionResourceSlice + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionResourceSlice request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionResourceSlice request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionResourceSlice request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCollectionResourceSliceAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of ResourceSlice + * @return APIdeleteCollectionResourceSliceRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionResourceSliceRequest deleteCollectionResourceSlice() { + return new APIdeleteCollectionResourceSliceRequest(); + } + private okhttp3.Call deleteDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteDeviceClass(Async)"); + } + + return deleteDeviceClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteDeviceClassRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteDeviceClassRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteDeviceClassRequest + */ + public APIdeleteDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteDeviceClassRequest + */ + public APIdeleteDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteDeviceClassRequest + */ + public APIdeleteDeviceClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteDeviceClassRequest + */ + public APIdeleteDeviceClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteDeviceClassRequest + */ + public APIdeleteDeviceClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteDeviceClassRequest + */ + public APIdeleteDeviceClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteDeviceClassRequest + */ + public APIdeleteDeviceClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteDeviceClass + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteDeviceClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteDeviceClass request + * @return V1beta2DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta2DeviceClass execute() throws ApiException { + ApiResponse localVarResp = deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteDeviceClass request with HTTP info returned + * @return ApiResponse<V1beta2DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteDeviceClass request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteDeviceClassAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a DeviceClass + * @param name name of the DeviceClass (required) + * @return APIdeleteDeviceClassRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteDeviceClassRequest deleteDeviceClass(@jakarta.annotation.Nonnull String name) { + return new APIdeleteDeviceClassRequest(name); + } + private okhttp3.Call deleteNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaim(Async)"); + } + + return deleteNamespacedResourceClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteNamespacedResourceClaimRequest + */ + public APIdeleteNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteNamespacedResourceClaimRequest + */ + public APIdeleteNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteNamespacedResourceClaimRequest + */ + public APIdeleteNamespacedResourceClaimRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteNamespacedResourceClaimRequest + */ + public APIdeleteNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteNamespacedResourceClaimRequest + */ + public APIdeleteNamespacedResourceClaimRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteNamespacedResourceClaimRequest + */ + public APIdeleteNamespacedResourceClaimRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteNamespacedResourceClaimRequest + */ + public APIdeleteNamespacedResourceClaimRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteNamespacedResourceClaim + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteNamespacedResourceClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteNamespacedResourceClaim request + * @return V1beta2ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta2ResourceClaim execute() throws ApiException { + ApiResponse localVarResp = deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteNamespacedResourceClaim request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteNamespacedResourceClaim request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteNamespacedResourceClaimAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteNamespacedResourceClaimRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteNamespacedResourceClaimRequest deleteNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIdeleteNamespacedResourceClaimRequest(name, namespace); + } + private okhttp3.Call deleteNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaimTemplate(Async)"); + } + + return deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteNamespacedResourceClaimTemplate + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteNamespacedResourceClaimTemplate request + * @return V1beta2ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta2ResourceClaimTemplate execute() throws ApiException { + ApiResponse localVarResp = deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteNamespacedResourceClaimTemplate request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteNamespacedResourceClaimTemplate request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteNamespacedResourceClaimTemplateAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteNamespacedResourceClaimTemplateRequest deleteNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIdeleteNamespacedResourceClaimTemplateRequest(name, namespace); + } + private okhttp3.Call deleteResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteResourceSlice(Async)"); + } + + return deleteResourceSliceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteResourceSliceRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteResourceSliceRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteResourceSliceRequest + */ + public APIdeleteResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteResourceSliceRequest + */ + public APIdeleteResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteResourceSliceRequest + */ + public APIdeleteResourceSliceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteResourceSliceRequest + */ + public APIdeleteResourceSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteResourceSliceRequest + */ + public APIdeleteResourceSliceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteResourceSliceRequest + */ + public APIdeleteResourceSliceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteResourceSliceRequest + */ + public APIdeleteResourceSliceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteResourceSlice + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteResourceSliceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteResourceSlice request + * @return V1beta2ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta2ResourceSlice execute() throws ApiException { + ApiResponse localVarResp = deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteResourceSlice request with HTTP info returned + * @return ApiResponse<V1beta2ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteResourceSlice request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteResourceSliceAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a ResourceSlice + * @param name name of the ResourceSlice (required) + * @return APIdeleteResourceSliceRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteResourceSliceRequest deleteResourceSlice(@jakarta.annotation.Nonnull String name) { + return new APIdeleteResourceSliceRequest(name); + } + private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return getAPIResourcesCall(_callback); + + } + + + private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetAPIResourcesRequest { + + private APIgetAPIResourcesRequest() { + } + + /** + * Build call for getAPIResources + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getAPIResourcesCall(_callback); + } + + /** + * Execute getAPIResources request + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList execute() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Execute getAPIResources request with HTTP info returned + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getAPIResourcesWithHttpInfo(); + } + + /** + * Execute getAPIResources request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getAPIResourcesAsync(_callback); + } + } + + /** + * + * get available resources + * @return APIgetAPIResourcesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIgetAPIResourcesRequest getAPIResources() { + return new APIgetAPIResourcesRequest(); + } + private okhttp3.Call listDeviceClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listDeviceClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listDeviceClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listDeviceClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistDeviceClassRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistDeviceClassRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listDeviceClass + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listDeviceClass request + * @return V1beta2DeviceClassList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2DeviceClassList execute() throws ApiException { + ApiResponse localVarResp = listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listDeviceClass request with HTTP info returned + * @return ApiResponse<V1beta2DeviceClassList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + } + + /** + * Execute listDeviceClass request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listDeviceClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind DeviceClass + * @return APIlistDeviceClassRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistDeviceClassRequest listDeviceClass() { + return new APIlistDeviceClassRequest(); + } + private okhttp3.Call listNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaim(Async)"); + } + + return listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String namespace) { + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listNamespacedResourceClaim + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listNamespacedResourceClaim request + * @return V1beta2ResourceClaimList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2ResourceClaimList execute() throws ApiException { + ApiResponse localVarResp = listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listNamespacedResourceClaim request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaimList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + } + + /** + * Execute listNamespacedResourceClaim request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listNamespacedResourceClaimAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIlistNamespacedResourceClaimRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistNamespacedResourceClaimRequest listNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace) { + return new APIlistNamespacedResourceClaimRequest(namespace); + } + private okhttp3.Call listNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaimTemplate(Async)"); + } + + return listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String namespace) { + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listNamespacedResourceClaimTemplate + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listNamespacedResourceClaimTemplate request + * @return V1beta2ResourceClaimTemplateList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2ResourceClaimTemplateList execute() throws ApiException { + ApiResponse localVarResp = listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listNamespacedResourceClaimTemplate request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaimTemplateList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + } + + /** + * Execute listNamespacedResourceClaimTemplate request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listNamespacedResourceClaimTemplateAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIlistNamespacedResourceClaimTemplateRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistNamespacedResourceClaimTemplateRequest listNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace) { + return new APIlistNamespacedResourceClaimTemplateRequest(namespace); + } + private okhttp3.Call listResourceClaimForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceclaims"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listResourceClaimForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listResourceClaimForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listResourceClaimForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistResourceClaimForAllNamespacesRequest { + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistResourceClaimForAllNamespacesRequest() { + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listResourceClaimForAllNamespaces + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listResourceClaimForAllNamespaces request + * @return V1beta2ResourceClaimList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2ResourceClaimList execute() throws ApiException { + ApiResponse localVarResp = listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listResourceClaimForAllNamespaces request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaimList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + } + + /** + * Execute listResourceClaimForAllNamespaces request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listResourceClaimForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind ResourceClaim + * @return APIlistResourceClaimForAllNamespacesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistResourceClaimForAllNamespacesRequest listResourceClaimForAllNamespaces() { + return new APIlistResourceClaimForAllNamespacesRequest(); + } + private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceclaimtemplates"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listResourceClaimTemplateForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listResourceClaimTemplateForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listResourceClaimTemplateForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistResourceClaimTemplateForAllNamespacesRequest { + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistResourceClaimTemplateForAllNamespacesRequest() { + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listResourceClaimTemplateForAllNamespaces + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listResourceClaimTemplateForAllNamespaces request + * @return V1beta2ResourceClaimTemplateList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2ResourceClaimTemplateList execute() throws ApiException { + ApiResponse localVarResp = listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listResourceClaimTemplateForAllNamespaces request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaimTemplateList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + } + + /** + * Execute listResourceClaimTemplateForAllNamespaces request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listResourceClaimTemplateForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind ResourceClaimTemplate + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistResourceClaimTemplateForAllNamespacesRequest listResourceClaimTemplateForAllNamespaces() { + return new APIlistResourceClaimTemplateForAllNamespacesRequest(); + } + private okhttp3.Call listResourceSliceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listResourceSliceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listResourceSliceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listResourceSliceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistResourceSliceRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistResourceSliceRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listResourceSlice + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listResourceSlice request + * @return V1beta2ResourceSliceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2ResourceSliceList execute() throws ApiException { + ApiResponse localVarResp = listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listResourceSlice request with HTTP info returned + * @return ApiResponse<V1beta2ResourceSliceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + } + + /** + * Execute listResourceSlice request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listResourceSliceAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind ResourceSlice + * @return APIlistResourceSliceRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistResourceSliceRequest listResourceSlice() { + return new APIlistResourceSliceRequest(); + } + private okhttp3.Call patchDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchDeviceClass(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchDeviceClass(Async)"); + } + + return patchDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchDeviceClassRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchDeviceClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchDeviceClassRequest + */ + public APIpatchDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchDeviceClassRequest + */ + public APIpatchDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchDeviceClassRequest + */ + public APIpatchDeviceClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchDeviceClassRequest + */ + public APIpatchDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchDeviceClassRequest + */ + public APIpatchDeviceClassRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchDeviceClass + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchDeviceClass request + * @return V1beta2DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2DeviceClass execute() throws ApiException { + ApiResponse localVarResp = patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchDeviceClass request with HTTP info returned + * @return ApiResponse<V1beta2DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchDeviceClass request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchDeviceClassAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @return APIpatchDeviceClassRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchDeviceClassRequest patchDeviceClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchDeviceClassRequest(name, body); + } + private okhttp3.Call patchNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaim(Async)"); + } + + return patchNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchNamespacedResourceClaimRequest + */ + public APIpatchNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchNamespacedResourceClaimRequest + */ + public APIpatchNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchNamespacedResourceClaimRequest + */ + public APIpatchNamespacedResourceClaimRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchNamespacedResourceClaimRequest + */ + public APIpatchNamespacedResourceClaimRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchNamespacedResourceClaimRequest + */ + public APIpatchNamespacedResourceClaimRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedResourceClaim + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedResourceClaim request + * @return V1beta2ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2ResourceClaim execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedResourceClaim request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedResourceClaim request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchNamespacedResourceClaimAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedResourceClaimRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedResourceClaimRequest patchNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedResourceClaimRequest(name, namespace, body); + } + private okhttp3.Call patchNamespacedResourceClaimStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedResourceClaimStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaimStatus(Async)"); + } + + return patchNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedResourceClaimStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedResourceClaimStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedResourceClaimStatusRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchNamespacedResourceClaimStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchNamespacedResourceClaimStatusRequest + */ + public APIpatchNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchNamespacedResourceClaimStatusRequest + */ + public APIpatchNamespacedResourceClaimStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchNamespacedResourceClaimStatusRequest + */ + public APIpatchNamespacedResourceClaimStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchNamespacedResourceClaimStatusRequest + */ + public APIpatchNamespacedResourceClaimStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchNamespacedResourceClaimStatusRequest + */ + public APIpatchNamespacedResourceClaimStatusRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedResourceClaimStatus + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedResourceClaimStatus request + * @return V1beta2ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2ResourceClaim execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedResourceClaimStatus request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedResourceClaimStatus request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchNamespacedResourceClaimStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedResourceClaimStatusRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedResourceClaimStatusRequest patchNamespacedResourceClaimStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedResourceClaimStatusRequest(name, namespace, body); + } + private okhttp3.Call patchNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaimTemplate(Async)"); + } + + return patchNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchNamespacedResourceClaimTemplateRequest + */ + public APIpatchNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchNamespacedResourceClaimTemplateRequest + */ + public APIpatchNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchNamespacedResourceClaimTemplateRequest + */ + public APIpatchNamespacedResourceClaimTemplateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchNamespacedResourceClaimTemplateRequest + */ + public APIpatchNamespacedResourceClaimTemplateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchNamespacedResourceClaimTemplateRequest + */ + public APIpatchNamespacedResourceClaimTemplateRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedResourceClaimTemplate + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedResourceClaimTemplate request + * @return V1beta2ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2ResourceClaimTemplate execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedResourceClaimTemplate request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedResourceClaimTemplate request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchNamespacedResourceClaimTemplateAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedResourceClaimTemplateRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedResourceClaimTemplateRequest patchNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedResourceClaimTemplateRequest(name, namespace, body); + } + private okhttp3.Call patchResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchResourceSlice(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchResourceSlice(Async)"); + } + + return patchResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchResourceSliceRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchResourceSliceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchResourceSliceRequest + */ + public APIpatchResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchResourceSliceRequest + */ + public APIpatchResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchResourceSliceRequest + */ + public APIpatchResourceSliceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchResourceSliceRequest + */ + public APIpatchResourceSliceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchResourceSliceRequest + */ + public APIpatchResourceSliceRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchResourceSlice + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchResourceSlice request + * @return V1beta2ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2ResourceSlice execute() throws ApiException { + ApiResponse localVarResp = patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchResourceSlice request with HTTP info returned + * @return ApiResponse<V1beta2ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchResourceSlice request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchResourceSliceAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @return APIpatchResourceSliceRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchResourceSliceRequest patchResourceSlice(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchResourceSliceRequest(name, body); + } + private okhttp3.Call readDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readDeviceClass(Async)"); + } + + return readDeviceClassCall(name, pretty, _callback); + + } + + + private ApiResponse readDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadDeviceClassRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadDeviceClassRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreadDeviceClassRequest + */ + public APIreadDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readDeviceClass + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return readDeviceClassCall(name, pretty, _callback); + } + + /** + * Execute readDeviceClass request + * @return V1beta2DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2DeviceClass execute() throws ApiException { + ApiResponse localVarResp = readDeviceClassWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * Execute readDeviceClass request with HTTP info returned + * @return ApiResponse<V1beta2DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return readDeviceClassWithHttpInfo(name, pretty); + } + + /** + * Execute readDeviceClass request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readDeviceClassAsync(name, pretty, _callback); + } + } + + /** + * + * read the specified DeviceClass + * @param name name of the DeviceClass (required) + * @return APIreadDeviceClassRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadDeviceClassRequest readDeviceClass(@jakarta.annotation.Nonnull String name) { + return new APIreadDeviceClassRequest(name); + } + private okhttp3.Call readNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaim(Async)"); + } + + return readNamespacedResourceClaimCall(name, namespace, pretty, _callback); + + } + + + private ApiResponse readNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreadNamespacedResourceClaimRequest + */ + public APIreadNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readNamespacedResourceClaim + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return readNamespacedResourceClaimCall(name, namespace, pretty, _callback); + } + + /** + * Execute readNamespacedResourceClaim request + * @return V1beta2ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2ResourceClaim execute() throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * Execute readNamespacedResourceClaim request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty); + } + + /** + * Execute readNamespacedResourceClaim request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedResourceClaimAsync(name, namespace, pretty, _callback); + } + } + + /** + * + * read the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedResourceClaimRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadNamespacedResourceClaimRequest readNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedResourceClaimRequest(name, namespace); + } + private okhttp3.Call readNamespacedResourceClaimStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedResourceClaimStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimStatus(Async)"); + } + + return readNamespacedResourceClaimStatusCall(name, namespace, pretty, _callback); + + } + + + private ApiResponse readNamespacedResourceClaimStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readNamespacedResourceClaimStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadNamespacedResourceClaimStatusRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadNamespacedResourceClaimStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreadNamespacedResourceClaimStatusRequest + */ + public APIreadNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readNamespacedResourceClaimStatus + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return readNamespacedResourceClaimStatusCall(name, namespace, pretty, _callback); + } + + /** + * Execute readNamespacedResourceClaimStatus request + * @return V1beta2ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2ResourceClaim execute() throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * Execute readNamespacedResourceClaimStatus request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty); + } + + /** + * Execute readNamespacedResourceClaimStatus request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedResourceClaimStatusAsync(name, namespace, pretty, _callback); + } + } + + /** + * + * read status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedResourceClaimStatusRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadNamespacedResourceClaimStatusRequest readNamespacedResourceClaimStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedResourceClaimStatusRequest(name, namespace); + } + private okhttp3.Call readNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimTemplate(Async)"); + } + + return readNamespacedResourceClaimTemplateCall(name, namespace, pretty, _callback); + + } + + + private ApiResponse readNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreadNamespacedResourceClaimTemplateRequest + */ + public APIreadNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readNamespacedResourceClaimTemplate + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return readNamespacedResourceClaimTemplateCall(name, namespace, pretty, _callback); + } + + /** + * Execute readNamespacedResourceClaimTemplate request + * @return V1beta2ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2ResourceClaimTemplate execute() throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * Execute readNamespacedResourceClaimTemplate request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty); + } + + /** + * Execute readNamespacedResourceClaimTemplate request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedResourceClaimTemplateAsync(name, namespace, pretty, _callback); + } + } + + /** + * + * read the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedResourceClaimTemplateRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadNamespacedResourceClaimTemplateRequest readNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedResourceClaimTemplateRequest(name, namespace); + } + private okhttp3.Call readResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readResourceSlice(Async)"); + } + + return readResourceSliceCall(name, pretty, _callback); + + } + + + private ApiResponse readResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadResourceSliceRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadResourceSliceRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreadResourceSliceRequest + */ + public APIreadResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readResourceSlice + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return readResourceSliceCall(name, pretty, _callback); + } + + /** + * Execute readResourceSlice request + * @return V1beta2ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2ResourceSlice execute() throws ApiException { + ApiResponse localVarResp = readResourceSliceWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * Execute readResourceSlice request with HTTP info returned + * @return ApiResponse<V1beta2ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return readResourceSliceWithHttpInfo(name, pretty); + } + + /** + * Execute readResourceSlice request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readResourceSliceAsync(name, pretty, _callback); + } + } + + /** + * + * read the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @return APIreadResourceSliceRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadResourceSliceRequest readResourceSlice(@jakarta.annotation.Nonnull String name) { + return new APIreadResourceSliceRequest(name); + } + private okhttp3.Call replaceDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceDeviceClass(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceDeviceClass(Async)"); + } + + return replaceDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse replaceDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call replaceDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreplaceDeviceClassRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1beta2DeviceClass body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIreplaceDeviceClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceClass body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreplaceDeviceClassRequest + */ + public APIreplaceDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceDeviceClassRequest + */ + public APIreplaceDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceDeviceClassRequest + */ + public APIreplaceDeviceClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceDeviceClassRequest + */ + public APIreplaceDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceDeviceClass + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return replaceDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute replaceDeviceClass request + * @return V1beta2DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2DeviceClass execute() throws ApiException { + ApiResponse localVarResp = replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute replaceDeviceClass request with HTTP info returned + * @return ApiResponse<V1beta2DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute replaceDeviceClass request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceDeviceClassAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * replace the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @return APIreplaceDeviceClassRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIreplaceDeviceClassRequest replaceDeviceClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceClass body) { + return new APIreplaceDeviceClassRequest(name, body); + } + private okhttp3.Call replaceNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaim(Async)"); + } + + return replaceNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse replaceNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call replaceNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreplaceNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1beta2ResourceClaim body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIreplaceNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaim body) { + this.name = name; + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreplaceNamespacedResourceClaimRequest + */ + public APIreplaceNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceNamespacedResourceClaimRequest + */ + public APIreplaceNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceNamespacedResourceClaimRequest + */ + public APIreplaceNamespacedResourceClaimRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceNamespacedResourceClaimRequest + */ + public APIreplaceNamespacedResourceClaimRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceNamespacedResourceClaim + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return replaceNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute replaceNamespacedResourceClaim request + * @return V1beta2ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2ResourceClaim execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute replaceNamespacedResourceClaim request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute replaceNamespacedResourceClaim request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceNamespacedResourceClaimAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * replace the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIreplaceNamespacedResourceClaimRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIreplaceNamespacedResourceClaimRequest replaceNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaim body) { + return new APIreplaceNamespacedResourceClaimRequest(name, namespace, body); + } + private okhttp3.Call replaceNamespacedResourceClaimStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedResourceClaimStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaimStatus(Async)"); + } + + return replaceNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse replaceNamespacedResourceClaimStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call replaceNamespacedResourceClaimStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreplaceNamespacedResourceClaimStatusRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1beta2ResourceClaim body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIreplaceNamespacedResourceClaimStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaim body) { + this.name = name; + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreplaceNamespacedResourceClaimStatusRequest + */ + public APIreplaceNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceNamespacedResourceClaimStatusRequest + */ + public APIreplaceNamespacedResourceClaimStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceNamespacedResourceClaimStatusRequest + */ + public APIreplaceNamespacedResourceClaimStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceNamespacedResourceClaimStatusRequest + */ + public APIreplaceNamespacedResourceClaimStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceNamespacedResourceClaimStatus + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return replaceNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute replaceNamespacedResourceClaimStatus request + * @return V1beta2ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2ResourceClaim execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute replaceNamespacedResourceClaimStatus request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute replaceNamespacedResourceClaimStatus request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceNamespacedResourceClaimStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * replace status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIreplaceNamespacedResourceClaimStatusRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIreplaceNamespacedResourceClaimStatusRequest replaceNamespacedResourceClaimStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaim body) { + return new APIreplaceNamespacedResourceClaimStatusRequest(name, namespace, body); + } + private okhttp3.Call replaceNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaimTemplate(Async)"); + } + + return replaceNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse replaceNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call replaceNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreplaceNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1beta2ResourceClaimTemplate body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIreplaceNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaimTemplate body) { + this.name = name; + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreplaceNamespacedResourceClaimTemplateRequest + */ + public APIreplaceNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceNamespacedResourceClaimTemplateRequest + */ + public APIreplaceNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceNamespacedResourceClaimTemplateRequest + */ + public APIreplaceNamespacedResourceClaimTemplateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceNamespacedResourceClaimTemplateRequest + */ + public APIreplaceNamespacedResourceClaimTemplateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceNamespacedResourceClaimTemplate + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return replaceNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute replaceNamespacedResourceClaimTemplate request + * @return V1beta2ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2ResourceClaimTemplate execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute replaceNamespacedResourceClaimTemplate request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute replaceNamespacedResourceClaimTemplate request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceNamespacedResourceClaimTemplateAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * replace the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIreplaceNamespacedResourceClaimTemplateRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIreplaceNamespacedResourceClaimTemplateRequest replaceNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaimTemplate body) { + return new APIreplaceNamespacedResourceClaimTemplateRequest(name, namespace, body); + } + private okhttp3.Call replaceResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceResourceSlice(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceResourceSlice(Async)"); + } + + return replaceResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse replaceResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call replaceResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreplaceResourceSliceRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1beta2ResourceSlice body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIreplaceResourceSliceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2ResourceSlice body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreplaceResourceSliceRequest + */ + public APIreplaceResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceResourceSliceRequest + */ + public APIreplaceResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceResourceSliceRequest + */ + public APIreplaceResourceSliceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceResourceSliceRequest + */ + public APIreplaceResourceSliceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceResourceSlice + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return replaceResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute replaceResourceSlice request + * @return V1beta2ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2ResourceSlice execute() throws ApiException { + ApiResponse localVarResp = replaceResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute replaceResourceSlice request with HTTP info returned + * @return ApiResponse<V1beta2ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute replaceResourceSlice request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceResourceSliceAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * replace the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @return APIreplaceResourceSliceRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIreplaceResourceSliceRequest replaceResourceSlice(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2ResourceSlice body) { + return new APIreplaceResourceSliceRequest(name, body); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingApi.java index bb9b324a12..b4447b7907 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingApi.java @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1Api.java index d720f19d91..8c86558182 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1Api.java @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createPriorityClassCall(V1PriorityClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createPriorityClassCall(@jakarta.annotation.Nonnull V1PriorityClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -141,7 +141,7 @@ private okhttp3.Call createPriorityClassCall(V1PriorityClass body, String pretty } @SuppressWarnings("rawtypes") - private okhttp3.Call createPriorityClassValidateBeforeCall(V1PriorityClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createPriorityClassValidateBeforeCall(@jakarta.annotation.Nonnull V1PriorityClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createPriorityClass(Async)"); @@ -152,13 +152,13 @@ private okhttp3.Call createPriorityClassValidateBeforeCall(V1PriorityClass body, } - private ApiResponse createPriorityClassWithHttpInfo(V1PriorityClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createPriorityClassWithHttpInfo(@jakarta.annotation.Nonnull V1PriorityClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createPriorityClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createPriorityClassAsync(V1PriorityClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createPriorityClassAsync(@jakarta.annotation.Nonnull V1PriorityClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createPriorityClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -167,13 +167,18 @@ private okhttp3.Call createPriorityClassAsync(V1PriorityClass body, String prett } public class APIcreatePriorityClassRequest { + @jakarta.annotation.Nonnull private final V1PriorityClass body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreatePriorityClassRequest(V1PriorityClass body) { + private APIcreatePriorityClassRequest(@jakarta.annotation.Nonnull V1PriorityClass body) { this.body = body; } @@ -182,7 +187,7 @@ private APIcreatePriorityClassRequest(V1PriorityClass body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreatePriorityClassRequest */ - public APIcreatePriorityClassRequest pretty(String pretty) { + public APIcreatePriorityClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -192,7 +197,7 @@ public APIcreatePriorityClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreatePriorityClassRequest */ - public APIcreatePriorityClassRequest dryRun(String dryRun) { + public APIcreatePriorityClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -202,7 +207,7 @@ public APIcreatePriorityClassRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreatePriorityClassRequest */ - public APIcreatePriorityClassRequest fieldManager(String fieldManager) { + public APIcreatePriorityClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -212,7 +217,7 @@ public APIcreatePriorityClassRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreatePriorityClassRequest */ - public APIcreatePriorityClassRequest fieldValidation(String fieldValidation) { + public APIcreatePriorityClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -223,7 +228,8 @@ public APIcreatePriorityClassRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -240,7 +246,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PriorityClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -258,7 +265,8 @@ public V1PriorityClass execute() throws ApiException { * @return ApiResponse<V1PriorityClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -276,7 +284,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -295,7 +304,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * @param body (required) * @return APIcreatePriorityClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -303,10 +313,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreatePriorityClassRequest createPriorityClass(V1PriorityClass body) { + public APIcreatePriorityClassRequest createPriorityClass(@jakarta.annotation.Nonnull V1PriorityClass body) { return new APIcreatePriorityClassRequest(body); } - private okhttp3.Call deleteCollectionPriorityClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionPriorityClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -411,19 +421,19 @@ private okhttp3.Call deleteCollectionPriorityClassCall(String pretty, String _co } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionPriorityClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionPriorityClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionPriorityClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionPriorityClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionPriorityClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionPriorityClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionPriorityClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionPriorityClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionPriorityClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -432,20 +442,35 @@ private okhttp3.Call deleteCollectionPriorityClassAsync(String pretty, String _c } public class APIdeleteCollectionPriorityClassRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionPriorityClassRequest() { @@ -456,7 +481,7 @@ private APIdeleteCollectionPriorityClassRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionPriorityClassRequest */ - public APIdeleteCollectionPriorityClassRequest pretty(String pretty) { + public APIdeleteCollectionPriorityClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -466,7 +491,7 @@ public APIdeleteCollectionPriorityClassRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionPriorityClassRequest */ - public APIdeleteCollectionPriorityClassRequest _continue(String _continue) { + public APIdeleteCollectionPriorityClassRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -476,7 +501,7 @@ public APIdeleteCollectionPriorityClassRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionPriorityClassRequest */ - public APIdeleteCollectionPriorityClassRequest dryRun(String dryRun) { + public APIdeleteCollectionPriorityClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -486,7 +511,7 @@ public APIdeleteCollectionPriorityClassRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionPriorityClassRequest */ - public APIdeleteCollectionPriorityClassRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionPriorityClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -496,7 +521,7 @@ public APIdeleteCollectionPriorityClassRequest fieldSelector(String fieldSelecto * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionPriorityClassRequest */ - public APIdeleteCollectionPriorityClassRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionPriorityClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -506,7 +531,7 @@ public APIdeleteCollectionPriorityClassRequest gracePeriodSeconds(Integer graceP * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionPriorityClassRequest */ - public APIdeleteCollectionPriorityClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionPriorityClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -516,7 +541,7 @@ public APIdeleteCollectionPriorityClassRequest ignoreStoreReadErrorWithClusterBr * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionPriorityClassRequest */ - public APIdeleteCollectionPriorityClassRequest labelSelector(String labelSelector) { + public APIdeleteCollectionPriorityClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -526,7 +551,7 @@ public APIdeleteCollectionPriorityClassRequest labelSelector(String labelSelecto * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionPriorityClassRequest */ - public APIdeleteCollectionPriorityClassRequest limit(Integer limit) { + public APIdeleteCollectionPriorityClassRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -536,7 +561,7 @@ public APIdeleteCollectionPriorityClassRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionPriorityClassRequest */ - public APIdeleteCollectionPriorityClassRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionPriorityClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -546,7 +571,7 @@ public APIdeleteCollectionPriorityClassRequest orphanDependents(Boolean orphanDe * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionPriorityClassRequest */ - public APIdeleteCollectionPriorityClassRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionPriorityClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -556,7 +581,7 @@ public APIdeleteCollectionPriorityClassRequest propagationPolicy(String propagat * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionPriorityClassRequest */ - public APIdeleteCollectionPriorityClassRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionPriorityClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -566,7 +591,7 @@ public APIdeleteCollectionPriorityClassRequest resourceVersion(String resourceVe * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionPriorityClassRequest */ - public APIdeleteCollectionPriorityClassRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionPriorityClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -576,7 +601,7 @@ public APIdeleteCollectionPriorityClassRequest resourceVersionMatch(String resou * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionPriorityClassRequest */ - public APIdeleteCollectionPriorityClassRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionPriorityClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -586,7 +611,7 @@ public APIdeleteCollectionPriorityClassRequest sendInitialEvents(Boolean sendIni * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionPriorityClassRequest */ - public APIdeleteCollectionPriorityClassRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionPriorityClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -596,7 +621,7 @@ public APIdeleteCollectionPriorityClassRequest timeoutSeconds(Integer timeoutSec * @param body (optional) * @return APIdeleteCollectionPriorityClassRequest */ - public APIdeleteCollectionPriorityClassRequest body(V1DeleteOptions body) { + public APIdeleteCollectionPriorityClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -607,7 +632,8 @@ public APIdeleteCollectionPriorityClassRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -622,7 +648,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -638,7 +665,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -654,7 +682,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -670,7 +699,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of PriorityClass * @return APIdeleteCollectionPriorityClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -679,7 +709,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionPriorityClassRequest deleteCollectionPriorityClass() { return new APIdeleteCollectionPriorityClassRequest(); } - private okhttp3.Call deletePriorityClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePriorityClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -753,7 +783,7 @@ private okhttp3.Call deletePriorityClassCall(String name, String pretty, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deletePriorityClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePriorityClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deletePriorityClass(Async)"); @@ -764,13 +794,13 @@ private okhttp3.Call deletePriorityClassValidateBeforeCall(String name, String p } - private ApiResponse deletePriorityClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deletePriorityClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deletePriorityClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deletePriorityClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePriorityClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deletePriorityClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -779,16 +809,24 @@ private okhttp3.Call deletePriorityClassAsync(String name, String pretty, String } public class APIdeletePriorityClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeletePriorityClassRequest(String name) { + private APIdeletePriorityClassRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -797,7 +835,7 @@ private APIdeletePriorityClassRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeletePriorityClassRequest */ - public APIdeletePriorityClassRequest pretty(String pretty) { + public APIdeletePriorityClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -807,7 +845,7 @@ public APIdeletePriorityClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeletePriorityClassRequest */ - public APIdeletePriorityClassRequest dryRun(String dryRun) { + public APIdeletePriorityClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -817,7 +855,7 @@ public APIdeletePriorityClassRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeletePriorityClassRequest */ - public APIdeletePriorityClassRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeletePriorityClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -827,7 +865,7 @@ public APIdeletePriorityClassRequest gracePeriodSeconds(Integer gracePeriodSecon * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeletePriorityClassRequest */ - public APIdeletePriorityClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeletePriorityClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -837,7 +875,7 @@ public APIdeletePriorityClassRequest ignoreStoreReadErrorWithClusterBreakingPote * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeletePriorityClassRequest */ - public APIdeletePriorityClassRequest orphanDependents(Boolean orphanDependents) { + public APIdeletePriorityClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -847,7 +885,7 @@ public APIdeletePriorityClassRequest orphanDependents(Boolean orphanDependents) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeletePriorityClassRequest */ - public APIdeletePriorityClassRequest propagationPolicy(String propagationPolicy) { + public APIdeletePriorityClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -857,7 +895,7 @@ public APIdeletePriorityClassRequest propagationPolicy(String propagationPolicy) * @param body (optional) * @return APIdeletePriorityClassRequest */ - public APIdeletePriorityClassRequest body(V1DeleteOptions body) { + public APIdeletePriorityClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -868,7 +906,8 @@ public APIdeletePriorityClassRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -884,7 +923,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -901,7 +941,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -918,7 +959,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -936,14 +978,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the PriorityClass (required) * @return APIdeletePriorityClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeletePriorityClassRequest deletePriorityClass(String name) { + public APIdeletePriorityClassRequest deletePriorityClass(@jakarta.annotation.Nonnull String name) { return new APIdeletePriorityClassRequest(name); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -1025,7 +1068,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1040,7 +1084,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1056,7 +1101,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1072,7 +1118,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1088,7 +1135,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1097,7 +1145,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listPriorityClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPriorityClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1192,19 +1240,19 @@ private okhttp3.Call listPriorityClassCall(String pretty, Boolean allowWatchBook } @SuppressWarnings("rawtypes") - private okhttp3.Call listPriorityClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPriorityClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listPriorityClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listPriorityClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listPriorityClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listPriorityClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listPriorityClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPriorityClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listPriorityClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1213,16 +1261,27 @@ private okhttp3.Call listPriorityClassAsync(String pretty, Boolean allowWatchBoo } public class APIlistPriorityClassRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistPriorityClassRequest() { @@ -1233,7 +1292,7 @@ private APIlistPriorityClassRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistPriorityClassRequest */ - public APIlistPriorityClassRequest pretty(String pretty) { + public APIlistPriorityClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1243,7 +1302,7 @@ public APIlistPriorityClassRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistPriorityClassRequest */ - public APIlistPriorityClassRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistPriorityClassRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1253,7 +1312,7 @@ public APIlistPriorityClassRequest allowWatchBookmarks(Boolean allowWatchBookmar * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistPriorityClassRequest */ - public APIlistPriorityClassRequest _continue(String _continue) { + public APIlistPriorityClassRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1263,7 +1322,7 @@ public APIlistPriorityClassRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistPriorityClassRequest */ - public APIlistPriorityClassRequest fieldSelector(String fieldSelector) { + public APIlistPriorityClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1273,7 +1332,7 @@ public APIlistPriorityClassRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistPriorityClassRequest */ - public APIlistPriorityClassRequest labelSelector(String labelSelector) { + public APIlistPriorityClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1283,7 +1342,7 @@ public APIlistPriorityClassRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistPriorityClassRequest */ - public APIlistPriorityClassRequest limit(Integer limit) { + public APIlistPriorityClassRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1293,7 +1352,7 @@ public APIlistPriorityClassRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistPriorityClassRequest */ - public APIlistPriorityClassRequest resourceVersion(String resourceVersion) { + public APIlistPriorityClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1303,7 +1362,7 @@ public APIlistPriorityClassRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistPriorityClassRequest */ - public APIlistPriorityClassRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistPriorityClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1313,7 +1372,7 @@ public APIlistPriorityClassRequest resourceVersionMatch(String resourceVersionMa * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistPriorityClassRequest */ - public APIlistPriorityClassRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistPriorityClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1323,7 +1382,7 @@ public APIlistPriorityClassRequest sendInitialEvents(Boolean sendInitialEvents) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistPriorityClassRequest */ - public APIlistPriorityClassRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistPriorityClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1333,7 +1392,7 @@ public APIlistPriorityClassRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistPriorityClassRequest */ - public APIlistPriorityClassRequest watch(Boolean watch) { + public APIlistPriorityClassRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1344,7 +1403,8 @@ public APIlistPriorityClassRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1359,7 +1419,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PriorityClassList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1375,7 +1436,8 @@ public V1PriorityClassList execute() throws ApiException { * @return ApiResponse<V1PriorityClassList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1391,7 +1453,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1407,7 +1470,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac * list or watch objects of kind PriorityClass * @return APIlistPriorityClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1416,7 +1480,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac public APIlistPriorityClassRequest listPriorityClass() { return new APIlistPriorityClassRequest(); } - private okhttp3.Call patchPriorityClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchPriorityClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1486,7 +1550,7 @@ private okhttp3.Call patchPriorityClassCall(String name, V1Patch body, String pr } @SuppressWarnings("rawtypes") - private okhttp3.Call patchPriorityClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchPriorityClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchPriorityClass(Async)"); @@ -1502,13 +1566,13 @@ private okhttp3.Call patchPriorityClassValidateBeforeCall(String name, V1Patch b } - private ApiResponse patchPriorityClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchPriorityClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchPriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchPriorityClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchPriorityClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchPriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1517,15 +1581,22 @@ private okhttp3.Call patchPriorityClassAsync(String name, V1Patch body, String p } public class APIpatchPriorityClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchPriorityClassRequest(String name, V1Patch body) { + private APIpatchPriorityClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -1535,7 +1606,7 @@ private APIpatchPriorityClassRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchPriorityClassRequest */ - public APIpatchPriorityClassRequest pretty(String pretty) { + public APIpatchPriorityClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1545,7 +1616,7 @@ public APIpatchPriorityClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchPriorityClassRequest */ - public APIpatchPriorityClassRequest dryRun(String dryRun) { + public APIpatchPriorityClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1555,7 +1626,7 @@ public APIpatchPriorityClassRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchPriorityClassRequest */ - public APIpatchPriorityClassRequest fieldManager(String fieldManager) { + public APIpatchPriorityClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1565,7 +1636,7 @@ public APIpatchPriorityClassRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchPriorityClassRequest */ - public APIpatchPriorityClassRequest fieldValidation(String fieldValidation) { + public APIpatchPriorityClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1575,7 +1646,7 @@ public APIpatchPriorityClassRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchPriorityClassRequest */ - public APIpatchPriorityClassRequest force(Boolean force) { + public APIpatchPriorityClassRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1586,7 +1657,8 @@ public APIpatchPriorityClassRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1602,7 +1674,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PriorityClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1619,7 +1692,8 @@ public V1PriorityClass execute() throws ApiException { * @return ApiResponse<V1PriorityClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1636,7 +1710,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1655,17 +1730,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * @param body (required) * @return APIpatchPriorityClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchPriorityClassRequest patchPriorityClass(String name, V1Patch body) { + public APIpatchPriorityClassRequest patchPriorityClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchPriorityClassRequest(name, body); } - private okhttp3.Call readPriorityClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readPriorityClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1718,7 +1794,7 @@ private okhttp3.Call readPriorityClassCall(String name, String pretty, final Api } @SuppressWarnings("rawtypes") - private okhttp3.Call readPriorityClassValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readPriorityClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readPriorityClass(Async)"); @@ -1729,13 +1805,13 @@ private okhttp3.Call readPriorityClassValidateBeforeCall(String name, String pre } - private ApiResponse readPriorityClassWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readPriorityClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readPriorityClassValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readPriorityClassAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readPriorityClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readPriorityClassValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1744,10 +1820,12 @@ private okhttp3.Call readPriorityClassAsync(String name, String pretty, final Ap } public class APIreadPriorityClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadPriorityClassRequest(String name) { + private APIreadPriorityClassRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -1756,7 +1834,7 @@ private APIreadPriorityClassRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadPriorityClassRequest */ - public APIreadPriorityClassRequest pretty(String pretty) { + public APIreadPriorityClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1767,7 +1845,8 @@ public APIreadPriorityClassRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1782,7 +1861,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PriorityClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1798,7 +1878,8 @@ public V1PriorityClass execute() throws ApiException { * @return ApiResponse<V1PriorityClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1814,7 +1895,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1831,16 +1913,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * @param name name of the PriorityClass (required) * @return APIreadPriorityClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadPriorityClassRequest readPriorityClass(String name) { + public APIreadPriorityClassRequest readPriorityClass(@jakarta.annotation.Nonnull String name) { return new APIreadPriorityClassRequest(name); } - private okhttp3.Call replacePriorityClassCall(String name, V1PriorityClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replacePriorityClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PriorityClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1906,7 +1989,7 @@ private okhttp3.Call replacePriorityClassCall(String name, V1PriorityClass body, } @SuppressWarnings("rawtypes") - private okhttp3.Call replacePriorityClassValidateBeforeCall(String name, V1PriorityClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replacePriorityClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PriorityClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replacePriorityClass(Async)"); @@ -1922,13 +2005,13 @@ private okhttp3.Call replacePriorityClassValidateBeforeCall(String name, V1Prior } - private ApiResponse replacePriorityClassWithHttpInfo(String name, V1PriorityClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replacePriorityClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PriorityClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replacePriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replacePriorityClassAsync(String name, V1PriorityClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replacePriorityClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PriorityClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replacePriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1937,14 +2020,20 @@ private okhttp3.Call replacePriorityClassAsync(String name, V1PriorityClass body } public class APIreplacePriorityClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1PriorityClass body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplacePriorityClassRequest(String name, V1PriorityClass body) { + private APIreplacePriorityClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PriorityClass body) { this.name = name; this.body = body; } @@ -1954,7 +2043,7 @@ private APIreplacePriorityClassRequest(String name, V1PriorityClass body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplacePriorityClassRequest */ - public APIreplacePriorityClassRequest pretty(String pretty) { + public APIreplacePriorityClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1964,7 +2053,7 @@ public APIreplacePriorityClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplacePriorityClassRequest */ - public APIreplacePriorityClassRequest dryRun(String dryRun) { + public APIreplacePriorityClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1974,7 +2063,7 @@ public APIreplacePriorityClassRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplacePriorityClassRequest */ - public APIreplacePriorityClassRequest fieldManager(String fieldManager) { + public APIreplacePriorityClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1984,7 +2073,7 @@ public APIreplacePriorityClassRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplacePriorityClassRequest */ - public APIreplacePriorityClassRequest fieldValidation(String fieldValidation) { + public APIreplacePriorityClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1995,7 +2084,8 @@ public APIreplacePriorityClassRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2011,7 +2101,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1PriorityClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2028,7 +2119,8 @@ public V1PriorityClass execute() throws ApiException { * @return ApiResponse<V1PriorityClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2045,7 +2137,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2064,14 +2157,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * @param body (required) * @return APIreplacePriorityClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplacePriorityClassRequest replacePriorityClass(String name, V1PriorityClass body) { + public APIreplacePriorityClassRequest replacePriorityClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1PriorityClass body) { return new APIreplacePriorityClassRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageApi.java index 6e3f91c73c..5dfb2a2197 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageApi.java @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1Api.java index 8ec1382f01..329fa4f1c3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1Api.java @@ -84,7 +84,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createCSIDriverCall(V1CSIDriver body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCSIDriverCall(@jakarta.annotation.Nonnull V1CSIDriver body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -149,7 +149,7 @@ private okhttp3.Call createCSIDriverCall(V1CSIDriver body, String pretty, String } @SuppressWarnings("rawtypes") - private okhttp3.Call createCSIDriverValidateBeforeCall(V1CSIDriver body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCSIDriverValidateBeforeCall(@jakarta.annotation.Nonnull V1CSIDriver body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createCSIDriver(Async)"); @@ -160,13 +160,13 @@ private okhttp3.Call createCSIDriverValidateBeforeCall(V1CSIDriver body, String } - private ApiResponse createCSIDriverWithHttpInfo(V1CSIDriver body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createCSIDriverWithHttpInfo(@jakarta.annotation.Nonnull V1CSIDriver body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createCSIDriverValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createCSIDriverAsync(V1CSIDriver body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCSIDriverAsync(@jakarta.annotation.Nonnull V1CSIDriver body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCSIDriverValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -175,13 +175,18 @@ private okhttp3.Call createCSIDriverAsync(V1CSIDriver body, String pretty, Strin } public class APIcreateCSIDriverRequest { + @jakarta.annotation.Nonnull private final V1CSIDriver body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateCSIDriverRequest(V1CSIDriver body) { + private APIcreateCSIDriverRequest(@jakarta.annotation.Nonnull V1CSIDriver body) { this.body = body; } @@ -190,7 +195,7 @@ private APIcreateCSIDriverRequest(V1CSIDriver body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateCSIDriverRequest */ - public APIcreateCSIDriverRequest pretty(String pretty) { + public APIcreateCSIDriverRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -200,7 +205,7 @@ public APIcreateCSIDriverRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateCSIDriverRequest */ - public APIcreateCSIDriverRequest dryRun(String dryRun) { + public APIcreateCSIDriverRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -210,7 +215,7 @@ public APIcreateCSIDriverRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateCSIDriverRequest */ - public APIcreateCSIDriverRequest fieldManager(String fieldManager) { + public APIcreateCSIDriverRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -220,7 +225,7 @@ public APIcreateCSIDriverRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateCSIDriverRequest */ - public APIcreateCSIDriverRequest fieldValidation(String fieldValidation) { + public APIcreateCSIDriverRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -231,7 +236,8 @@ public APIcreateCSIDriverRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -248,7 +254,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CSIDriver * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -266,7 +273,8 @@ public V1CSIDriver execute() throws ApiException { * @return ApiResponse<V1CSIDriver> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -284,7 +292,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -303,7 +312,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIcreateCSIDriverRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -311,10 +321,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateCSIDriverRequest createCSIDriver(V1CSIDriver body) { + public APIcreateCSIDriverRequest createCSIDriver(@jakarta.annotation.Nonnull V1CSIDriver body) { return new APIcreateCSIDriverRequest(body); } - private okhttp3.Call createCSINodeCall(V1CSINode body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCSINodeCall(@jakarta.annotation.Nonnull V1CSINode body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -379,7 +389,7 @@ private okhttp3.Call createCSINodeCall(V1CSINode body, String pretty, String dry } @SuppressWarnings("rawtypes") - private okhttp3.Call createCSINodeValidateBeforeCall(V1CSINode body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCSINodeValidateBeforeCall(@jakarta.annotation.Nonnull V1CSINode body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createCSINode(Async)"); @@ -390,13 +400,13 @@ private okhttp3.Call createCSINodeValidateBeforeCall(V1CSINode body, String pret } - private ApiResponse createCSINodeWithHttpInfo(V1CSINode body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createCSINodeWithHttpInfo(@jakarta.annotation.Nonnull V1CSINode body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createCSINodeValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createCSINodeAsync(V1CSINode body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCSINodeAsync(@jakarta.annotation.Nonnull V1CSINode body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCSINodeValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -405,13 +415,18 @@ private okhttp3.Call createCSINodeAsync(V1CSINode body, String pretty, String dr } public class APIcreateCSINodeRequest { + @jakarta.annotation.Nonnull private final V1CSINode body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateCSINodeRequest(V1CSINode body) { + private APIcreateCSINodeRequest(@jakarta.annotation.Nonnull V1CSINode body) { this.body = body; } @@ -420,7 +435,7 @@ private APIcreateCSINodeRequest(V1CSINode body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateCSINodeRequest */ - public APIcreateCSINodeRequest pretty(String pretty) { + public APIcreateCSINodeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -430,7 +445,7 @@ public APIcreateCSINodeRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateCSINodeRequest */ - public APIcreateCSINodeRequest dryRun(String dryRun) { + public APIcreateCSINodeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -440,7 +455,7 @@ public APIcreateCSINodeRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateCSINodeRequest */ - public APIcreateCSINodeRequest fieldManager(String fieldManager) { + public APIcreateCSINodeRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -450,7 +465,7 @@ public APIcreateCSINodeRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateCSINodeRequest */ - public APIcreateCSINodeRequest fieldValidation(String fieldValidation) { + public APIcreateCSINodeRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -461,7 +476,8 @@ public APIcreateCSINodeRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -478,7 +494,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CSINode * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -496,7 +513,8 @@ public V1CSINode execute() throws ApiException { * @return ApiResponse<V1CSINode> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -514,7 +532,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -533,7 +552,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param body (required) * @return APIcreateCSINodeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -541,10 +561,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateCSINodeRequest createCSINode(V1CSINode body) { + public APIcreateCSINodeRequest createCSINode(@jakarta.annotation.Nonnull V1CSINode body) { return new APIcreateCSINodeRequest(body); } - private okhttp3.Call createNamespacedCSIStorageCapacityCall(String namespace, V1CSIStorageCapacity body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedCSIStorageCapacityCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CSIStorageCapacity body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -610,7 +630,7 @@ private okhttp3.Call createNamespacedCSIStorageCapacityCall(String namespace, V1 } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedCSIStorageCapacityValidateBeforeCall(String namespace, V1CSIStorageCapacity body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedCSIStorageCapacityValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CSIStorageCapacity body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedCSIStorageCapacity(Async)"); @@ -626,13 +646,13 @@ private okhttp3.Call createNamespacedCSIStorageCapacityValidateBeforeCall(String } - private ApiResponse createNamespacedCSIStorageCapacityWithHttpInfo(String namespace, V1CSIStorageCapacity body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedCSIStorageCapacityWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CSIStorageCapacity body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedCSIStorageCapacityValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedCSIStorageCapacityAsync(String namespace, V1CSIStorageCapacity body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedCSIStorageCapacityAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CSIStorageCapacity body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedCSIStorageCapacityValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -641,14 +661,20 @@ private okhttp3.Call createNamespacedCSIStorageCapacityAsync(String namespace, V } public class APIcreateNamespacedCSIStorageCapacityRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1CSIStorageCapacity body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedCSIStorageCapacityRequest(String namespace, V1CSIStorageCapacity body) { + private APIcreateNamespacedCSIStorageCapacityRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CSIStorageCapacity body) { this.namespace = namespace; this.body = body; } @@ -658,7 +684,7 @@ private APIcreateNamespacedCSIStorageCapacityRequest(String namespace, V1CSIStor * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedCSIStorageCapacityRequest */ - public APIcreateNamespacedCSIStorageCapacityRequest pretty(String pretty) { + public APIcreateNamespacedCSIStorageCapacityRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -668,7 +694,7 @@ public APIcreateNamespacedCSIStorageCapacityRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedCSIStorageCapacityRequest */ - public APIcreateNamespacedCSIStorageCapacityRequest dryRun(String dryRun) { + public APIcreateNamespacedCSIStorageCapacityRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -678,7 +704,7 @@ public APIcreateNamespacedCSIStorageCapacityRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedCSIStorageCapacityRequest */ - public APIcreateNamespacedCSIStorageCapacityRequest fieldManager(String fieldManager) { + public APIcreateNamespacedCSIStorageCapacityRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -688,7 +714,7 @@ public APIcreateNamespacedCSIStorageCapacityRequest fieldManager(String fieldMan * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedCSIStorageCapacityRequest */ - public APIcreateNamespacedCSIStorageCapacityRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedCSIStorageCapacityRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -699,7 +725,8 @@ public APIcreateNamespacedCSIStorageCapacityRequest fieldValidation(String field * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -716,7 +743,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CSIStorageCapacity * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -734,7 +762,8 @@ public V1CSIStorageCapacity execute() throws ApiException { * @return ApiResponse<V1CSIStorageCapacity> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -752,7 +781,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -772,7 +802,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param body (required) * @return APIcreateNamespacedCSIStorageCapacityRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -780,10 +811,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callba
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedCSIStorageCapacityRequest createNamespacedCSIStorageCapacity(String namespace, V1CSIStorageCapacity body) { + public APIcreateNamespacedCSIStorageCapacityRequest createNamespacedCSIStorageCapacity(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CSIStorageCapacity body) { return new APIcreateNamespacedCSIStorageCapacityRequest(namespace, body); } - private okhttp3.Call createStorageClassCall(V1StorageClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createStorageClassCall(@jakarta.annotation.Nonnull V1StorageClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -848,7 +879,7 @@ private okhttp3.Call createStorageClassCall(V1StorageClass body, String pretty, } @SuppressWarnings("rawtypes") - private okhttp3.Call createStorageClassValidateBeforeCall(V1StorageClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createStorageClassValidateBeforeCall(@jakarta.annotation.Nonnull V1StorageClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createStorageClass(Async)"); @@ -859,13 +890,13 @@ private okhttp3.Call createStorageClassValidateBeforeCall(V1StorageClass body, S } - private ApiResponse createStorageClassWithHttpInfo(V1StorageClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createStorageClassWithHttpInfo(@jakarta.annotation.Nonnull V1StorageClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createStorageClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createStorageClassAsync(V1StorageClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createStorageClassAsync(@jakarta.annotation.Nonnull V1StorageClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createStorageClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -874,13 +905,18 @@ private okhttp3.Call createStorageClassAsync(V1StorageClass body, String pretty, } public class APIcreateStorageClassRequest { + @jakarta.annotation.Nonnull private final V1StorageClass body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateStorageClassRequest(V1StorageClass body) { + private APIcreateStorageClassRequest(@jakarta.annotation.Nonnull V1StorageClass body) { this.body = body; } @@ -889,7 +925,7 @@ private APIcreateStorageClassRequest(V1StorageClass body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateStorageClassRequest */ - public APIcreateStorageClassRequest pretty(String pretty) { + public APIcreateStorageClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -899,7 +935,7 @@ public APIcreateStorageClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateStorageClassRequest */ - public APIcreateStorageClassRequest dryRun(String dryRun) { + public APIcreateStorageClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -909,7 +945,7 @@ public APIcreateStorageClassRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateStorageClassRequest */ - public APIcreateStorageClassRequest fieldManager(String fieldManager) { + public APIcreateStorageClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -919,7 +955,7 @@ public APIcreateStorageClassRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateStorageClassRequest */ - public APIcreateStorageClassRequest fieldValidation(String fieldValidation) { + public APIcreateStorageClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -930,7 +966,8 @@ public APIcreateStorageClassRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -947,7 +984,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1StorageClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -965,7 +1003,8 @@ public V1StorageClass execute() throws ApiException { * @return ApiResponse<V1StorageClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -983,7 +1022,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1002,7 +1042,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th * @param body (required) * @return APIcreateStorageClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1010,10 +1051,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateStorageClassRequest createStorageClass(V1StorageClass body) { + public APIcreateStorageClassRequest createStorageClass(@jakarta.annotation.Nonnull V1StorageClass body) { return new APIcreateStorageClassRequest(body); } - private okhttp3.Call createVolumeAttachmentCall(V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createVolumeAttachmentCall(@jakarta.annotation.Nonnull V1VolumeAttachment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1078,7 +1119,7 @@ private okhttp3.Call createVolumeAttachmentCall(V1VolumeAttachment body, String } @SuppressWarnings("rawtypes") - private okhttp3.Call createVolumeAttachmentValidateBeforeCall(V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createVolumeAttachmentValidateBeforeCall(@jakarta.annotation.Nonnull V1VolumeAttachment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createVolumeAttachment(Async)"); @@ -1089,13 +1130,13 @@ private okhttp3.Call createVolumeAttachmentValidateBeforeCall(V1VolumeAttachment } - private ApiResponse createVolumeAttachmentWithHttpInfo(V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createVolumeAttachmentWithHttpInfo(@jakarta.annotation.Nonnull V1VolumeAttachment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createVolumeAttachmentValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createVolumeAttachmentAsync(V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createVolumeAttachmentAsync(@jakarta.annotation.Nonnull V1VolumeAttachment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createVolumeAttachmentValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1104,13 +1145,18 @@ private okhttp3.Call createVolumeAttachmentAsync(V1VolumeAttachment body, String } public class APIcreateVolumeAttachmentRequest { + @jakarta.annotation.Nonnull private final V1VolumeAttachment body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateVolumeAttachmentRequest(V1VolumeAttachment body) { + private APIcreateVolumeAttachmentRequest(@jakarta.annotation.Nonnull V1VolumeAttachment body) { this.body = body; } @@ -1119,7 +1165,7 @@ private APIcreateVolumeAttachmentRequest(V1VolumeAttachment body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateVolumeAttachmentRequest */ - public APIcreateVolumeAttachmentRequest pretty(String pretty) { + public APIcreateVolumeAttachmentRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1129,7 +1175,7 @@ public APIcreateVolumeAttachmentRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateVolumeAttachmentRequest */ - public APIcreateVolumeAttachmentRequest dryRun(String dryRun) { + public APIcreateVolumeAttachmentRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1139,7 +1185,7 @@ public APIcreateVolumeAttachmentRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateVolumeAttachmentRequest */ - public APIcreateVolumeAttachmentRequest fieldManager(String fieldManager) { + public APIcreateVolumeAttachmentRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1149,7 +1195,7 @@ public APIcreateVolumeAttachmentRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateVolumeAttachmentRequest */ - public APIcreateVolumeAttachmentRequest fieldValidation(String fieldValidation) { + public APIcreateVolumeAttachmentRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1160,7 +1206,8 @@ public APIcreateVolumeAttachmentRequest fieldValidation(String fieldValidation) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1177,7 +1224,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1195,7 +1243,8 @@ public V1VolumeAttachment execute() throws ApiException { * @return ApiResponse<V1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1213,7 +1262,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1232,7 +1282,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param body (required) * @return APIcreateVolumeAttachmentRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1240,10 +1291,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateVolumeAttachmentRequest createVolumeAttachment(V1VolumeAttachment body) { + public APIcreateVolumeAttachmentRequest createVolumeAttachment(@jakarta.annotation.Nonnull V1VolumeAttachment body) { return new APIcreateVolumeAttachmentRequest(body); } - private okhttp3.Call deleteCSIDriverCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCSIDriverCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1317,7 +1368,7 @@ private okhttp3.Call deleteCSIDriverCall(String name, String pretty, String dryR } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCSIDriverValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCSIDriverValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteCSIDriver(Async)"); @@ -1328,13 +1379,13 @@ private okhttp3.Call deleteCSIDriverValidateBeforeCall(String name, String prett } - private ApiResponse deleteCSIDriverWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCSIDriverWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCSIDriverValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCSIDriverAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCSIDriverAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCSIDriverValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1343,16 +1394,24 @@ private okhttp3.Call deleteCSIDriverAsync(String name, String pretty, String dry } public class APIdeleteCSIDriverRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCSIDriverRequest(String name) { + private APIdeleteCSIDriverRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -1361,7 +1420,7 @@ private APIdeleteCSIDriverRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCSIDriverRequest */ - public APIdeleteCSIDriverRequest pretty(String pretty) { + public APIdeleteCSIDriverRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1371,7 +1430,7 @@ public APIdeleteCSIDriverRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCSIDriverRequest */ - public APIdeleteCSIDriverRequest dryRun(String dryRun) { + public APIdeleteCSIDriverRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1381,7 +1440,7 @@ public APIdeleteCSIDriverRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCSIDriverRequest */ - public APIdeleteCSIDriverRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCSIDriverRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1391,7 +1450,7 @@ public APIdeleteCSIDriverRequest gracePeriodSeconds(Integer gracePeriodSeconds) * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCSIDriverRequest */ - public APIdeleteCSIDriverRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCSIDriverRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1401,7 +1460,7 @@ public APIdeleteCSIDriverRequest ignoreStoreReadErrorWithClusterBreakingPotentia * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCSIDriverRequest */ - public APIdeleteCSIDriverRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCSIDriverRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1411,7 +1470,7 @@ public APIdeleteCSIDriverRequest orphanDependents(Boolean orphanDependents) { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCSIDriverRequest */ - public APIdeleteCSIDriverRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCSIDriverRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1421,7 +1480,7 @@ public APIdeleteCSIDriverRequest propagationPolicy(String propagationPolicy) { * @param body (optional) * @return APIdeleteCSIDriverRequest */ - public APIdeleteCSIDriverRequest body(V1DeleteOptions body) { + public APIdeleteCSIDriverRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1432,7 +1491,8 @@ public APIdeleteCSIDriverRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1448,7 +1508,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CSIDriver * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1465,7 +1526,8 @@ public V1CSIDriver execute() throws ApiException { * @return ApiResponse<V1CSIDriver> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1482,7 +1544,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1500,17 +1563,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param name name of the CSIDriver (required) * @return APIdeleteCSIDriverRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteCSIDriverRequest deleteCSIDriver(String name) { + public APIdeleteCSIDriverRequest deleteCSIDriver(@jakarta.annotation.Nonnull String name) { return new APIdeleteCSIDriverRequest(name); } - private okhttp3.Call deleteCSINodeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCSINodeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1584,7 +1648,7 @@ private okhttp3.Call deleteCSINodeCall(String name, String pretty, String dryRun } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCSINodeValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCSINodeValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteCSINode(Async)"); @@ -1595,13 +1659,13 @@ private okhttp3.Call deleteCSINodeValidateBeforeCall(String name, String pretty, } - private ApiResponse deleteCSINodeWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCSINodeWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCSINodeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCSINodeAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCSINodeAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCSINodeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1610,16 +1674,24 @@ private okhttp3.Call deleteCSINodeAsync(String name, String pretty, String dryRu } public class APIdeleteCSINodeRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCSINodeRequest(String name) { + private APIdeleteCSINodeRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -1628,7 +1700,7 @@ private APIdeleteCSINodeRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCSINodeRequest */ - public APIdeleteCSINodeRequest pretty(String pretty) { + public APIdeleteCSINodeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1638,7 +1710,7 @@ public APIdeleteCSINodeRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCSINodeRequest */ - public APIdeleteCSINodeRequest dryRun(String dryRun) { + public APIdeleteCSINodeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1648,7 +1720,7 @@ public APIdeleteCSINodeRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCSINodeRequest */ - public APIdeleteCSINodeRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCSINodeRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1658,7 +1730,7 @@ public APIdeleteCSINodeRequest gracePeriodSeconds(Integer gracePeriodSeconds) { * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCSINodeRequest */ - public APIdeleteCSINodeRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCSINodeRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1668,7 +1740,7 @@ public APIdeleteCSINodeRequest ignoreStoreReadErrorWithClusterBreakingPotential( * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCSINodeRequest */ - public APIdeleteCSINodeRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCSINodeRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1678,7 +1750,7 @@ public APIdeleteCSINodeRequest orphanDependents(Boolean orphanDependents) { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCSINodeRequest */ - public APIdeleteCSINodeRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCSINodeRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1688,7 +1760,7 @@ public APIdeleteCSINodeRequest propagationPolicy(String propagationPolicy) { * @param body (optional) * @return APIdeleteCSINodeRequest */ - public APIdeleteCSINodeRequest body(V1DeleteOptions body) { + public APIdeleteCSINodeRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1699,7 +1771,8 @@ public APIdeleteCSINodeRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1715,7 +1788,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CSINode * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1732,7 +1806,8 @@ public V1CSINode execute() throws ApiException { * @return ApiResponse<V1CSINode> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1749,7 +1824,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -1767,17 +1843,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param name name of the CSINode (required) * @return APIdeleteCSINodeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteCSINodeRequest deleteCSINode(String name) { + public APIdeleteCSINodeRequest deleteCSINode(@jakarta.annotation.Nonnull String name) { return new APIdeleteCSINodeRequest(name); } - private okhttp3.Call deleteCollectionCSIDriverCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCSIDriverCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1882,19 +1959,19 @@ private okhttp3.Call deleteCollectionCSIDriverCall(String pretty, String _contin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionCSIDriverValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCSIDriverValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionCSIDriverCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionCSIDriverWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionCSIDriverWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionCSIDriverValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionCSIDriverAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCSIDriverAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionCSIDriverValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1903,20 +1980,35 @@ private okhttp3.Call deleteCollectionCSIDriverAsync(String pretty, String _conti } public class APIdeleteCollectionCSIDriverRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionCSIDriverRequest() { @@ -1927,7 +2019,7 @@ private APIdeleteCollectionCSIDriverRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionCSIDriverRequest */ - public APIdeleteCollectionCSIDriverRequest pretty(String pretty) { + public APIdeleteCollectionCSIDriverRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1937,7 +2029,7 @@ public APIdeleteCollectionCSIDriverRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionCSIDriverRequest */ - public APIdeleteCollectionCSIDriverRequest _continue(String _continue) { + public APIdeleteCollectionCSIDriverRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1947,7 +2039,7 @@ public APIdeleteCollectionCSIDriverRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionCSIDriverRequest */ - public APIdeleteCollectionCSIDriverRequest dryRun(String dryRun) { + public APIdeleteCollectionCSIDriverRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1957,7 +2049,7 @@ public APIdeleteCollectionCSIDriverRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionCSIDriverRequest */ - public APIdeleteCollectionCSIDriverRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionCSIDriverRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1967,7 +2059,7 @@ public APIdeleteCollectionCSIDriverRequest fieldSelector(String fieldSelector) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionCSIDriverRequest */ - public APIdeleteCollectionCSIDriverRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionCSIDriverRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1977,7 +2069,7 @@ public APIdeleteCollectionCSIDriverRequest gracePeriodSeconds(Integer gracePerio * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionCSIDriverRequest */ - public APIdeleteCollectionCSIDriverRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionCSIDriverRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1987,7 +2079,7 @@ public APIdeleteCollectionCSIDriverRequest ignoreStoreReadErrorWithClusterBreaki * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionCSIDriverRequest */ - public APIdeleteCollectionCSIDriverRequest labelSelector(String labelSelector) { + public APIdeleteCollectionCSIDriverRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1997,7 +2089,7 @@ public APIdeleteCollectionCSIDriverRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionCSIDriverRequest */ - public APIdeleteCollectionCSIDriverRequest limit(Integer limit) { + public APIdeleteCollectionCSIDriverRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2007,7 +2099,7 @@ public APIdeleteCollectionCSIDriverRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionCSIDriverRequest */ - public APIdeleteCollectionCSIDriverRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionCSIDriverRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2017,7 +2109,7 @@ public APIdeleteCollectionCSIDriverRequest orphanDependents(Boolean orphanDepend * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionCSIDriverRequest */ - public APIdeleteCollectionCSIDriverRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionCSIDriverRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2027,7 +2119,7 @@ public APIdeleteCollectionCSIDriverRequest propagationPolicy(String propagationP * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionCSIDriverRequest */ - public APIdeleteCollectionCSIDriverRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionCSIDriverRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2037,7 +2129,7 @@ public APIdeleteCollectionCSIDriverRequest resourceVersion(String resourceVersio * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionCSIDriverRequest */ - public APIdeleteCollectionCSIDriverRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionCSIDriverRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2047,7 +2139,7 @@ public APIdeleteCollectionCSIDriverRequest resourceVersionMatch(String resourceV * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionCSIDriverRequest */ - public APIdeleteCollectionCSIDriverRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionCSIDriverRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2057,7 +2149,7 @@ public APIdeleteCollectionCSIDriverRequest sendInitialEvents(Boolean sendInitial * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionCSIDriverRequest */ - public APIdeleteCollectionCSIDriverRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionCSIDriverRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2067,7 +2159,7 @@ public APIdeleteCollectionCSIDriverRequest timeoutSeconds(Integer timeoutSeconds * @param body (optional) * @return APIdeleteCollectionCSIDriverRequest */ - public APIdeleteCollectionCSIDriverRequest body(V1DeleteOptions body) { + public APIdeleteCollectionCSIDriverRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -2078,7 +2170,8 @@ public APIdeleteCollectionCSIDriverRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2093,7 +2186,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2109,7 +2203,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2125,7 +2220,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2141,7 +2237,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of CSIDriver * @return APIdeleteCollectionCSIDriverRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2150,7 +2247,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionCSIDriverRequest deleteCollectionCSIDriver() { return new APIdeleteCollectionCSIDriverRequest(); } - private okhttp3.Call deleteCollectionCSINodeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCSINodeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2255,19 +2352,19 @@ private okhttp3.Call deleteCollectionCSINodeCall(String pretty, String _continue } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionCSINodeValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCSINodeValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionCSINodeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionCSINodeWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionCSINodeWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionCSINodeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionCSINodeAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCSINodeAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionCSINodeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2276,20 +2373,35 @@ private okhttp3.Call deleteCollectionCSINodeAsync(String pretty, String _continu } public class APIdeleteCollectionCSINodeRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionCSINodeRequest() { @@ -2300,7 +2412,7 @@ private APIdeleteCollectionCSINodeRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionCSINodeRequest */ - public APIdeleteCollectionCSINodeRequest pretty(String pretty) { + public APIdeleteCollectionCSINodeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2310,7 +2422,7 @@ public APIdeleteCollectionCSINodeRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionCSINodeRequest */ - public APIdeleteCollectionCSINodeRequest _continue(String _continue) { + public APIdeleteCollectionCSINodeRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2320,7 +2432,7 @@ public APIdeleteCollectionCSINodeRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionCSINodeRequest */ - public APIdeleteCollectionCSINodeRequest dryRun(String dryRun) { + public APIdeleteCollectionCSINodeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2330,7 +2442,7 @@ public APIdeleteCollectionCSINodeRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionCSINodeRequest */ - public APIdeleteCollectionCSINodeRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionCSINodeRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2340,7 +2452,7 @@ public APIdeleteCollectionCSINodeRequest fieldSelector(String fieldSelector) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionCSINodeRequest */ - public APIdeleteCollectionCSINodeRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionCSINodeRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2350,7 +2462,7 @@ public APIdeleteCollectionCSINodeRequest gracePeriodSeconds(Integer gracePeriodS * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionCSINodeRequest */ - public APIdeleteCollectionCSINodeRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionCSINodeRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -2360,7 +2472,7 @@ public APIdeleteCollectionCSINodeRequest ignoreStoreReadErrorWithClusterBreaking * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionCSINodeRequest */ - public APIdeleteCollectionCSINodeRequest labelSelector(String labelSelector) { + public APIdeleteCollectionCSINodeRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2370,7 +2482,7 @@ public APIdeleteCollectionCSINodeRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionCSINodeRequest */ - public APIdeleteCollectionCSINodeRequest limit(Integer limit) { + public APIdeleteCollectionCSINodeRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2380,7 +2492,7 @@ public APIdeleteCollectionCSINodeRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionCSINodeRequest */ - public APIdeleteCollectionCSINodeRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionCSINodeRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2390,7 +2502,7 @@ public APIdeleteCollectionCSINodeRequest orphanDependents(Boolean orphanDependen * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionCSINodeRequest */ - public APIdeleteCollectionCSINodeRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionCSINodeRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2400,7 +2512,7 @@ public APIdeleteCollectionCSINodeRequest propagationPolicy(String propagationPol * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionCSINodeRequest */ - public APIdeleteCollectionCSINodeRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionCSINodeRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2410,7 +2522,7 @@ public APIdeleteCollectionCSINodeRequest resourceVersion(String resourceVersion) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionCSINodeRequest */ - public APIdeleteCollectionCSINodeRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionCSINodeRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2420,7 +2532,7 @@ public APIdeleteCollectionCSINodeRequest resourceVersionMatch(String resourceVer * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionCSINodeRequest */ - public APIdeleteCollectionCSINodeRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionCSINodeRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2430,7 +2542,7 @@ public APIdeleteCollectionCSINodeRequest sendInitialEvents(Boolean sendInitialEv * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionCSINodeRequest */ - public APIdeleteCollectionCSINodeRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionCSINodeRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2440,7 +2552,7 @@ public APIdeleteCollectionCSINodeRequest timeoutSeconds(Integer timeoutSeconds) * @param body (optional) * @return APIdeleteCollectionCSINodeRequest */ - public APIdeleteCollectionCSINodeRequest body(V1DeleteOptions body) { + public APIdeleteCollectionCSINodeRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -2451,7 +2563,8 @@ public APIdeleteCollectionCSINodeRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2466,7 +2579,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2482,7 +2596,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2498,7 +2613,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2514,7 +2630,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of CSINode * @return APIdeleteCollectionCSINodeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2523,7 +2640,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionCSINodeRequest deleteCollectionCSINode() { return new APIdeleteCollectionCSINodeRequest(); } - private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2629,7 +2746,7 @@ private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityCall(String nam } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedCSIStorageCapacity(Async)"); @@ -2640,13 +2757,13 @@ private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityValidateBeforeC } - private ApiResponse deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedCSIStorageCapacityValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedCSIStorageCapacityValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2655,24 +2772,40 @@ private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityAsync(String na } public class APIdeleteCollectionNamespacedCSIStorageCapacityRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedCSIStorageCapacityRequest(String namespace) { + private APIdeleteCollectionNamespacedCSIStorageCapacityRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -2681,7 +2814,7 @@ private APIdeleteCollectionNamespacedCSIStorageCapacityRequest(String namespace) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedCSIStorageCapacityRequest */ - public APIdeleteCollectionNamespacedCSIStorageCapacityRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedCSIStorageCapacityRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2691,7 +2824,7 @@ public APIdeleteCollectionNamespacedCSIStorageCapacityRequest pretty(String pret * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedCSIStorageCapacityRequest */ - public APIdeleteCollectionNamespacedCSIStorageCapacityRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedCSIStorageCapacityRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2701,7 +2834,7 @@ public APIdeleteCollectionNamespacedCSIStorageCapacityRequest _continue(String _ * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedCSIStorageCapacityRequest */ - public APIdeleteCollectionNamespacedCSIStorageCapacityRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedCSIStorageCapacityRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2711,7 +2844,7 @@ public APIdeleteCollectionNamespacedCSIStorageCapacityRequest dryRun(String dryR * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedCSIStorageCapacityRequest */ - public APIdeleteCollectionNamespacedCSIStorageCapacityRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedCSIStorageCapacityRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2721,7 +2854,7 @@ public APIdeleteCollectionNamespacedCSIStorageCapacityRequest fieldSelector(Stri * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedCSIStorageCapacityRequest */ - public APIdeleteCollectionNamespacedCSIStorageCapacityRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedCSIStorageCapacityRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2731,7 +2864,7 @@ public APIdeleteCollectionNamespacedCSIStorageCapacityRequest gracePeriodSeconds * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionNamespacedCSIStorageCapacityRequest */ - public APIdeleteCollectionNamespacedCSIStorageCapacityRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedCSIStorageCapacityRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -2741,7 +2874,7 @@ public APIdeleteCollectionNamespacedCSIStorageCapacityRequest ignoreStoreReadErr * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedCSIStorageCapacityRequest */ - public APIdeleteCollectionNamespacedCSIStorageCapacityRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedCSIStorageCapacityRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2751,7 +2884,7 @@ public APIdeleteCollectionNamespacedCSIStorageCapacityRequest labelSelector(Stri * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedCSIStorageCapacityRequest */ - public APIdeleteCollectionNamespacedCSIStorageCapacityRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedCSIStorageCapacityRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2761,7 +2894,7 @@ public APIdeleteCollectionNamespacedCSIStorageCapacityRequest limit(Integer limi * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedCSIStorageCapacityRequest */ - public APIdeleteCollectionNamespacedCSIStorageCapacityRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedCSIStorageCapacityRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2771,7 +2904,7 @@ public APIdeleteCollectionNamespacedCSIStorageCapacityRequest orphanDependents(B * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedCSIStorageCapacityRequest */ - public APIdeleteCollectionNamespacedCSIStorageCapacityRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedCSIStorageCapacityRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2781,7 +2914,7 @@ public APIdeleteCollectionNamespacedCSIStorageCapacityRequest propagationPolicy( * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedCSIStorageCapacityRequest */ - public APIdeleteCollectionNamespacedCSIStorageCapacityRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedCSIStorageCapacityRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2791,7 +2924,7 @@ public APIdeleteCollectionNamespacedCSIStorageCapacityRequest resourceVersion(St * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedCSIStorageCapacityRequest */ - public APIdeleteCollectionNamespacedCSIStorageCapacityRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedCSIStorageCapacityRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2801,7 +2934,7 @@ public APIdeleteCollectionNamespacedCSIStorageCapacityRequest resourceVersionMat * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedCSIStorageCapacityRequest */ - public APIdeleteCollectionNamespacedCSIStorageCapacityRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedCSIStorageCapacityRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2811,7 +2944,7 @@ public APIdeleteCollectionNamespacedCSIStorageCapacityRequest sendInitialEvents( * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedCSIStorageCapacityRequest */ - public APIdeleteCollectionNamespacedCSIStorageCapacityRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedCSIStorageCapacityRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2821,7 +2954,7 @@ public APIdeleteCollectionNamespacedCSIStorageCapacityRequest timeoutSeconds(Int * @param body (optional) * @return APIdeleteCollectionNamespacedCSIStorageCapacityRequest */ - public APIdeleteCollectionNamespacedCSIStorageCapacityRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedCSIStorageCapacityRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -2832,7 +2965,8 @@ public APIdeleteCollectionNamespacedCSIStorageCapacityRequest body(V1DeleteOptio * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2847,7 +2981,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2863,7 +2998,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2879,7 +3015,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2896,16 +3033,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedCSIStorageCapacityRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedCSIStorageCapacityRequest deleteCollectionNamespacedCSIStorageCapacity(String namespace) { + public APIdeleteCollectionNamespacedCSIStorageCapacityRequest deleteCollectionNamespacedCSIStorageCapacity(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedCSIStorageCapacityRequest(namespace); } - private okhttp3.Call deleteCollectionStorageClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionStorageClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3010,19 +3148,19 @@ private okhttp3.Call deleteCollectionStorageClassCall(String pretty, String _con } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionStorageClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionStorageClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionStorageClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionStorageClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionStorageClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionStorageClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionStorageClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionStorageClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionStorageClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3031,20 +3169,35 @@ private okhttp3.Call deleteCollectionStorageClassAsync(String pretty, String _co } public class APIdeleteCollectionStorageClassRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionStorageClassRequest() { @@ -3055,7 +3208,7 @@ private APIdeleteCollectionStorageClassRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionStorageClassRequest */ - public APIdeleteCollectionStorageClassRequest pretty(String pretty) { + public APIdeleteCollectionStorageClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3065,7 +3218,7 @@ public APIdeleteCollectionStorageClassRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionStorageClassRequest */ - public APIdeleteCollectionStorageClassRequest _continue(String _continue) { + public APIdeleteCollectionStorageClassRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -3075,7 +3228,7 @@ public APIdeleteCollectionStorageClassRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionStorageClassRequest */ - public APIdeleteCollectionStorageClassRequest dryRun(String dryRun) { + public APIdeleteCollectionStorageClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3085,7 +3238,7 @@ public APIdeleteCollectionStorageClassRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionStorageClassRequest */ - public APIdeleteCollectionStorageClassRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionStorageClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -3095,7 +3248,7 @@ public APIdeleteCollectionStorageClassRequest fieldSelector(String fieldSelector * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionStorageClassRequest */ - public APIdeleteCollectionStorageClassRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionStorageClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -3105,7 +3258,7 @@ public APIdeleteCollectionStorageClassRequest gracePeriodSeconds(Integer gracePe * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionStorageClassRequest */ - public APIdeleteCollectionStorageClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionStorageClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -3115,7 +3268,7 @@ public APIdeleteCollectionStorageClassRequest ignoreStoreReadErrorWithClusterBre * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionStorageClassRequest */ - public APIdeleteCollectionStorageClassRequest labelSelector(String labelSelector) { + public APIdeleteCollectionStorageClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -3125,7 +3278,7 @@ public APIdeleteCollectionStorageClassRequest labelSelector(String labelSelector * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionStorageClassRequest */ - public APIdeleteCollectionStorageClassRequest limit(Integer limit) { + public APIdeleteCollectionStorageClassRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -3135,7 +3288,7 @@ public APIdeleteCollectionStorageClassRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionStorageClassRequest */ - public APIdeleteCollectionStorageClassRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionStorageClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3145,7 +3298,7 @@ public APIdeleteCollectionStorageClassRequest orphanDependents(Boolean orphanDep * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionStorageClassRequest */ - public APIdeleteCollectionStorageClassRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionStorageClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3155,7 +3308,7 @@ public APIdeleteCollectionStorageClassRequest propagationPolicy(String propagati * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionStorageClassRequest */ - public APIdeleteCollectionStorageClassRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionStorageClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -3165,7 +3318,7 @@ public APIdeleteCollectionStorageClassRequest resourceVersion(String resourceVer * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionStorageClassRequest */ - public APIdeleteCollectionStorageClassRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionStorageClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -3175,7 +3328,7 @@ public APIdeleteCollectionStorageClassRequest resourceVersionMatch(String resour * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionStorageClassRequest */ - public APIdeleteCollectionStorageClassRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionStorageClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -3185,7 +3338,7 @@ public APIdeleteCollectionStorageClassRequest sendInitialEvents(Boolean sendInit * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionStorageClassRequest */ - public APIdeleteCollectionStorageClassRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionStorageClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -3195,7 +3348,7 @@ public APIdeleteCollectionStorageClassRequest timeoutSeconds(Integer timeoutSeco * @param body (optional) * @return APIdeleteCollectionStorageClassRequest */ - public APIdeleteCollectionStorageClassRequest body(V1DeleteOptions body) { + public APIdeleteCollectionStorageClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -3206,7 +3359,8 @@ public APIdeleteCollectionStorageClassRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3221,7 +3375,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3237,7 +3392,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3253,7 +3409,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3269,7 +3426,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of StorageClass * @return APIdeleteCollectionStorageClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3278,7 +3436,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionStorageClassRequest deleteCollectionStorageClass() { return new APIdeleteCollectionStorageClassRequest(); } - private okhttp3.Call deleteCollectionVolumeAttachmentCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionVolumeAttachmentCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3383,19 +3541,19 @@ private okhttp3.Call deleteCollectionVolumeAttachmentCall(String pretty, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionVolumeAttachmentValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionVolumeAttachmentValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionVolumeAttachmentCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionVolumeAttachmentWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionVolumeAttachmentWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionVolumeAttachmentValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionVolumeAttachmentAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionVolumeAttachmentAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionVolumeAttachmentValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3404,20 +3562,35 @@ private okhttp3.Call deleteCollectionVolumeAttachmentAsync(String pretty, String } public class APIdeleteCollectionVolumeAttachmentRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionVolumeAttachmentRequest() { @@ -3428,7 +3601,7 @@ private APIdeleteCollectionVolumeAttachmentRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionVolumeAttachmentRequest */ - public APIdeleteCollectionVolumeAttachmentRequest pretty(String pretty) { + public APIdeleteCollectionVolumeAttachmentRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3438,7 +3611,7 @@ public APIdeleteCollectionVolumeAttachmentRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionVolumeAttachmentRequest */ - public APIdeleteCollectionVolumeAttachmentRequest _continue(String _continue) { + public APIdeleteCollectionVolumeAttachmentRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -3448,7 +3621,7 @@ public APIdeleteCollectionVolumeAttachmentRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionVolumeAttachmentRequest */ - public APIdeleteCollectionVolumeAttachmentRequest dryRun(String dryRun) { + public APIdeleteCollectionVolumeAttachmentRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3458,7 +3631,7 @@ public APIdeleteCollectionVolumeAttachmentRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionVolumeAttachmentRequest */ - public APIdeleteCollectionVolumeAttachmentRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionVolumeAttachmentRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -3468,7 +3641,7 @@ public APIdeleteCollectionVolumeAttachmentRequest fieldSelector(String fieldSele * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionVolumeAttachmentRequest */ - public APIdeleteCollectionVolumeAttachmentRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionVolumeAttachmentRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -3478,7 +3651,7 @@ public APIdeleteCollectionVolumeAttachmentRequest gracePeriodSeconds(Integer gra * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionVolumeAttachmentRequest */ - public APIdeleteCollectionVolumeAttachmentRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionVolumeAttachmentRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -3488,7 +3661,7 @@ public APIdeleteCollectionVolumeAttachmentRequest ignoreStoreReadErrorWithCluste * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionVolumeAttachmentRequest */ - public APIdeleteCollectionVolumeAttachmentRequest labelSelector(String labelSelector) { + public APIdeleteCollectionVolumeAttachmentRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -3498,7 +3671,7 @@ public APIdeleteCollectionVolumeAttachmentRequest labelSelector(String labelSele * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionVolumeAttachmentRequest */ - public APIdeleteCollectionVolumeAttachmentRequest limit(Integer limit) { + public APIdeleteCollectionVolumeAttachmentRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -3508,7 +3681,7 @@ public APIdeleteCollectionVolumeAttachmentRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionVolumeAttachmentRequest */ - public APIdeleteCollectionVolumeAttachmentRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionVolumeAttachmentRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3518,7 +3691,7 @@ public APIdeleteCollectionVolumeAttachmentRequest orphanDependents(Boolean orpha * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionVolumeAttachmentRequest */ - public APIdeleteCollectionVolumeAttachmentRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionVolumeAttachmentRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3528,7 +3701,7 @@ public APIdeleteCollectionVolumeAttachmentRequest propagationPolicy(String propa * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionVolumeAttachmentRequest */ - public APIdeleteCollectionVolumeAttachmentRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionVolumeAttachmentRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -3538,7 +3711,7 @@ public APIdeleteCollectionVolumeAttachmentRequest resourceVersion(String resourc * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionVolumeAttachmentRequest */ - public APIdeleteCollectionVolumeAttachmentRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionVolumeAttachmentRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -3548,7 +3721,7 @@ public APIdeleteCollectionVolumeAttachmentRequest resourceVersionMatch(String re * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionVolumeAttachmentRequest */ - public APIdeleteCollectionVolumeAttachmentRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionVolumeAttachmentRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -3558,7 +3731,7 @@ public APIdeleteCollectionVolumeAttachmentRequest sendInitialEvents(Boolean send * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionVolumeAttachmentRequest */ - public APIdeleteCollectionVolumeAttachmentRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionVolumeAttachmentRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -3568,7 +3741,7 @@ public APIdeleteCollectionVolumeAttachmentRequest timeoutSeconds(Integer timeout * @param body (optional) * @return APIdeleteCollectionVolumeAttachmentRequest */ - public APIdeleteCollectionVolumeAttachmentRequest body(V1DeleteOptions body) { + public APIdeleteCollectionVolumeAttachmentRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -3579,7 +3752,8 @@ public APIdeleteCollectionVolumeAttachmentRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3594,7 +3768,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3610,7 +3785,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3626,7 +3802,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3642,7 +3819,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of VolumeAttachment * @return APIdeleteCollectionVolumeAttachmentRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3651,7 +3829,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionVolumeAttachmentRequest deleteCollectionVolumeAttachment() { return new APIdeleteCollectionVolumeAttachmentRequest(); } - private okhttp3.Call deleteNamespacedCSIStorageCapacityCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedCSIStorageCapacityCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3726,7 +3904,7 @@ private okhttp3.Call deleteNamespacedCSIStorageCapacityCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedCSIStorageCapacityValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedCSIStorageCapacityValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedCSIStorageCapacity(Async)"); @@ -3742,13 +3920,13 @@ private okhttp3.Call deleteNamespacedCSIStorageCapacityValidateBeforeCall(String } - private ApiResponse deleteNamespacedCSIStorageCapacityWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteNamespacedCSIStorageCapacityWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedCSIStorageCapacityValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedCSIStorageCapacityAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedCSIStorageCapacityAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedCSIStorageCapacityValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3757,17 +3935,26 @@ private okhttp3.Call deleteNamespacedCSIStorageCapacityAsync(String name, String } public class APIdeleteNamespacedCSIStorageCapacityRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedCSIStorageCapacityRequest(String name, String namespace) { + private APIdeleteNamespacedCSIStorageCapacityRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -3777,7 +3964,7 @@ private APIdeleteNamespacedCSIStorageCapacityRequest(String name, String namespa * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedCSIStorageCapacityRequest */ - public APIdeleteNamespacedCSIStorageCapacityRequest pretty(String pretty) { + public APIdeleteNamespacedCSIStorageCapacityRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3787,7 +3974,7 @@ public APIdeleteNamespacedCSIStorageCapacityRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedCSIStorageCapacityRequest */ - public APIdeleteNamespacedCSIStorageCapacityRequest dryRun(String dryRun) { + public APIdeleteNamespacedCSIStorageCapacityRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3797,7 +3984,7 @@ public APIdeleteNamespacedCSIStorageCapacityRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedCSIStorageCapacityRequest */ - public APIdeleteNamespacedCSIStorageCapacityRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedCSIStorageCapacityRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -3807,7 +3994,7 @@ public APIdeleteNamespacedCSIStorageCapacityRequest gracePeriodSeconds(Integer g * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteNamespacedCSIStorageCapacityRequest */ - public APIdeleteNamespacedCSIStorageCapacityRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedCSIStorageCapacityRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -3817,7 +4004,7 @@ public APIdeleteNamespacedCSIStorageCapacityRequest ignoreStoreReadErrorWithClus * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedCSIStorageCapacityRequest */ - public APIdeleteNamespacedCSIStorageCapacityRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedCSIStorageCapacityRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3827,7 +4014,7 @@ public APIdeleteNamespacedCSIStorageCapacityRequest orphanDependents(Boolean orp * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedCSIStorageCapacityRequest */ - public APIdeleteNamespacedCSIStorageCapacityRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedCSIStorageCapacityRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3837,7 +4024,7 @@ public APIdeleteNamespacedCSIStorageCapacityRequest propagationPolicy(String pro * @param body (optional) * @return APIdeleteNamespacedCSIStorageCapacityRequest */ - public APIdeleteNamespacedCSIStorageCapacityRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedCSIStorageCapacityRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -3848,7 +4035,8 @@ public APIdeleteNamespacedCSIStorageCapacityRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3864,7 +4052,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3881,7 +4070,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3898,7 +4088,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -3917,17 +4108,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedCSIStorageCapacityRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedCSIStorageCapacityRequest deleteNamespacedCSIStorageCapacity(String name, String namespace) { + public APIdeleteNamespacedCSIStorageCapacityRequest deleteNamespacedCSIStorageCapacity(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedCSIStorageCapacityRequest(name, namespace); } - private okhttp3.Call deleteStorageClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteStorageClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4001,7 +4193,7 @@ private okhttp3.Call deleteStorageClassCall(String name, String pretty, String d } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteStorageClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteStorageClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteStorageClass(Async)"); @@ -4012,13 +4204,13 @@ private okhttp3.Call deleteStorageClassValidateBeforeCall(String name, String pr } - private ApiResponse deleteStorageClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteStorageClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteStorageClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteStorageClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteStorageClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteStorageClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4027,16 +4219,24 @@ private okhttp3.Call deleteStorageClassAsync(String name, String pretty, String } public class APIdeleteStorageClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteStorageClassRequest(String name) { + private APIdeleteStorageClassRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -4045,7 +4245,7 @@ private APIdeleteStorageClassRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteStorageClassRequest */ - public APIdeleteStorageClassRequest pretty(String pretty) { + public APIdeleteStorageClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4055,7 +4255,7 @@ public APIdeleteStorageClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteStorageClassRequest */ - public APIdeleteStorageClassRequest dryRun(String dryRun) { + public APIdeleteStorageClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4065,7 +4265,7 @@ public APIdeleteStorageClassRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteStorageClassRequest */ - public APIdeleteStorageClassRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteStorageClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -4075,7 +4275,7 @@ public APIdeleteStorageClassRequest gracePeriodSeconds(Integer gracePeriodSecond * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteStorageClassRequest */ - public APIdeleteStorageClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteStorageClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -4085,7 +4285,7 @@ public APIdeleteStorageClassRequest ignoreStoreReadErrorWithClusterBreakingPoten * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteStorageClassRequest */ - public APIdeleteStorageClassRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteStorageClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -4095,7 +4295,7 @@ public APIdeleteStorageClassRequest orphanDependents(Boolean orphanDependents) { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteStorageClassRequest */ - public APIdeleteStorageClassRequest propagationPolicy(String propagationPolicy) { + public APIdeleteStorageClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -4105,7 +4305,7 @@ public APIdeleteStorageClassRequest propagationPolicy(String propagationPolicy) * @param body (optional) * @return APIdeleteStorageClassRequest */ - public APIdeleteStorageClassRequest body(V1DeleteOptions body) { + public APIdeleteStorageClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -4116,7 +4316,8 @@ public APIdeleteStorageClassRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4132,7 +4333,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1StorageClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -4149,7 +4351,8 @@ public V1StorageClass execute() throws ApiException { * @return ApiResponse<V1StorageClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -4166,7 +4369,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -4184,17 +4388,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th * @param name name of the StorageClass (required) * @return APIdeleteStorageClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteStorageClassRequest deleteStorageClass(String name) { + public APIdeleteStorageClassRequest deleteStorageClass(@jakarta.annotation.Nonnull String name) { return new APIdeleteStorageClassRequest(name); } - private okhttp3.Call deleteVolumeAttachmentCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteVolumeAttachmentCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4268,7 +4473,7 @@ private okhttp3.Call deleteVolumeAttachmentCall(String name, String pretty, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteVolumeAttachmentValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteVolumeAttachmentValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteVolumeAttachment(Async)"); @@ -4279,13 +4484,13 @@ private okhttp3.Call deleteVolumeAttachmentValidateBeforeCall(String name, Strin } - private ApiResponse deleteVolumeAttachmentWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteVolumeAttachmentWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteVolumeAttachmentValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteVolumeAttachmentAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteVolumeAttachmentAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteVolumeAttachmentValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4294,16 +4499,24 @@ private okhttp3.Call deleteVolumeAttachmentAsync(String name, String pretty, Str } public class APIdeleteVolumeAttachmentRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteVolumeAttachmentRequest(String name) { + private APIdeleteVolumeAttachmentRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -4312,7 +4525,7 @@ private APIdeleteVolumeAttachmentRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteVolumeAttachmentRequest */ - public APIdeleteVolumeAttachmentRequest pretty(String pretty) { + public APIdeleteVolumeAttachmentRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4322,7 +4535,7 @@ public APIdeleteVolumeAttachmentRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteVolumeAttachmentRequest */ - public APIdeleteVolumeAttachmentRequest dryRun(String dryRun) { + public APIdeleteVolumeAttachmentRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4332,7 +4545,7 @@ public APIdeleteVolumeAttachmentRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteVolumeAttachmentRequest */ - public APIdeleteVolumeAttachmentRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteVolumeAttachmentRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -4342,7 +4555,7 @@ public APIdeleteVolumeAttachmentRequest gracePeriodSeconds(Integer gracePeriodSe * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteVolumeAttachmentRequest */ - public APIdeleteVolumeAttachmentRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteVolumeAttachmentRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -4352,7 +4565,7 @@ public APIdeleteVolumeAttachmentRequest ignoreStoreReadErrorWithClusterBreakingP * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteVolumeAttachmentRequest */ - public APIdeleteVolumeAttachmentRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteVolumeAttachmentRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -4362,7 +4575,7 @@ public APIdeleteVolumeAttachmentRequest orphanDependents(Boolean orphanDependent * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteVolumeAttachmentRequest */ - public APIdeleteVolumeAttachmentRequest propagationPolicy(String propagationPolicy) { + public APIdeleteVolumeAttachmentRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -4372,7 +4585,7 @@ public APIdeleteVolumeAttachmentRequest propagationPolicy(String propagationPoli * @param body (optional) * @return APIdeleteVolumeAttachmentRequest */ - public APIdeleteVolumeAttachmentRequest body(V1DeleteOptions body) { + public APIdeleteVolumeAttachmentRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -4383,7 +4596,8 @@ public APIdeleteVolumeAttachmentRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4399,7 +4613,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -4416,7 +4631,8 @@ public V1VolumeAttachment execute() throws ApiException { * @return ApiResponse<V1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -4433,7 +4649,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -4451,14 +4668,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param name name of the VolumeAttachment (required) * @return APIdeleteVolumeAttachmentRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteVolumeAttachmentRequest deleteVolumeAttachment(String name) { + public APIdeleteVolumeAttachmentRequest deleteVolumeAttachment(@jakarta.annotation.Nonnull String name) { return new APIdeleteVolumeAttachmentRequest(name); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -4540,7 +4758,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4555,7 +4774,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4571,7 +4791,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4587,7 +4808,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4603,7 +4825,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4612,7 +4835,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listCSIDriverCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCSIDriverCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4707,19 +4930,19 @@ private okhttp3.Call listCSIDriverCall(String pretty, Boolean allowWatchBookmark } @SuppressWarnings("rawtypes") - private okhttp3.Call listCSIDriverValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCSIDriverValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listCSIDriverCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listCSIDriverWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listCSIDriverWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listCSIDriverValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listCSIDriverAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCSIDriverAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCSIDriverValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4728,16 +4951,27 @@ private okhttp3.Call listCSIDriverAsync(String pretty, Boolean allowWatchBookmar } public class APIlistCSIDriverRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistCSIDriverRequest() { @@ -4748,7 +4982,7 @@ private APIlistCSIDriverRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistCSIDriverRequest */ - public APIlistCSIDriverRequest pretty(String pretty) { + public APIlistCSIDriverRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4758,7 +4992,7 @@ public APIlistCSIDriverRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistCSIDriverRequest */ - public APIlistCSIDriverRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistCSIDriverRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -4768,7 +5002,7 @@ public APIlistCSIDriverRequest allowWatchBookmarks(Boolean allowWatchBookmarks) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistCSIDriverRequest */ - public APIlistCSIDriverRequest _continue(String _continue) { + public APIlistCSIDriverRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -4778,7 +5012,7 @@ public APIlistCSIDriverRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistCSIDriverRequest */ - public APIlistCSIDriverRequest fieldSelector(String fieldSelector) { + public APIlistCSIDriverRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -4788,7 +5022,7 @@ public APIlistCSIDriverRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistCSIDriverRequest */ - public APIlistCSIDriverRequest labelSelector(String labelSelector) { + public APIlistCSIDriverRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -4798,7 +5032,7 @@ public APIlistCSIDriverRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistCSIDriverRequest */ - public APIlistCSIDriverRequest limit(Integer limit) { + public APIlistCSIDriverRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -4808,7 +5042,7 @@ public APIlistCSIDriverRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistCSIDriverRequest */ - public APIlistCSIDriverRequest resourceVersion(String resourceVersion) { + public APIlistCSIDriverRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -4818,7 +5052,7 @@ public APIlistCSIDriverRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistCSIDriverRequest */ - public APIlistCSIDriverRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistCSIDriverRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -4828,7 +5062,7 @@ public APIlistCSIDriverRequest resourceVersionMatch(String resourceVersionMatch) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistCSIDriverRequest */ - public APIlistCSIDriverRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistCSIDriverRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -4838,7 +5072,7 @@ public APIlistCSIDriverRequest sendInitialEvents(Boolean sendInitialEvents) { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistCSIDriverRequest */ - public APIlistCSIDriverRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistCSIDriverRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4848,7 +5082,7 @@ public APIlistCSIDriverRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistCSIDriverRequest */ - public APIlistCSIDriverRequest watch(Boolean watch) { + public APIlistCSIDriverRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -4859,7 +5093,8 @@ public APIlistCSIDriverRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4874,7 +5109,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CSIDriverList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4890,7 +5126,8 @@ public V1CSIDriverList execute() throws ApiException { * @return ApiResponse<V1CSIDriverList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4906,7 +5143,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4922,7 +5160,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * list or watch objects of kind CSIDriver * @return APIlistCSIDriverRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4931,7 +5170,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t public APIlistCSIDriverRequest listCSIDriver() { return new APIlistCSIDriverRequest(); } - private okhttp3.Call listCSINodeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCSINodeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5026,19 +5265,19 @@ private okhttp3.Call listCSINodeCall(String pretty, Boolean allowWatchBookmarks, } @SuppressWarnings("rawtypes") - private okhttp3.Call listCSINodeValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCSINodeValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listCSINodeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listCSINodeWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listCSINodeWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listCSINodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listCSINodeAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCSINodeAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCSINodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5047,16 +5286,27 @@ private okhttp3.Call listCSINodeAsync(String pretty, Boolean allowWatchBookmarks } public class APIlistCSINodeRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistCSINodeRequest() { @@ -5067,7 +5317,7 @@ private APIlistCSINodeRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistCSINodeRequest */ - public APIlistCSINodeRequest pretty(String pretty) { + public APIlistCSINodeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5077,7 +5327,7 @@ public APIlistCSINodeRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistCSINodeRequest */ - public APIlistCSINodeRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistCSINodeRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5087,7 +5337,7 @@ public APIlistCSINodeRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistCSINodeRequest */ - public APIlistCSINodeRequest _continue(String _continue) { + public APIlistCSINodeRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5097,7 +5347,7 @@ public APIlistCSINodeRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistCSINodeRequest */ - public APIlistCSINodeRequest fieldSelector(String fieldSelector) { + public APIlistCSINodeRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5107,7 +5357,7 @@ public APIlistCSINodeRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistCSINodeRequest */ - public APIlistCSINodeRequest labelSelector(String labelSelector) { + public APIlistCSINodeRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5117,7 +5367,7 @@ public APIlistCSINodeRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistCSINodeRequest */ - public APIlistCSINodeRequest limit(Integer limit) { + public APIlistCSINodeRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -5127,7 +5377,7 @@ public APIlistCSINodeRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistCSINodeRequest */ - public APIlistCSINodeRequest resourceVersion(String resourceVersion) { + public APIlistCSINodeRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -5137,7 +5387,7 @@ public APIlistCSINodeRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistCSINodeRequest */ - public APIlistCSINodeRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistCSINodeRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -5147,7 +5397,7 @@ public APIlistCSINodeRequest resourceVersionMatch(String resourceVersionMatch) { * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistCSINodeRequest */ - public APIlistCSINodeRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistCSINodeRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -5157,7 +5407,7 @@ public APIlistCSINodeRequest sendInitialEvents(Boolean sendInitialEvents) { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistCSINodeRequest */ - public APIlistCSINodeRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistCSINodeRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -5167,7 +5417,7 @@ public APIlistCSINodeRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistCSINodeRequest */ - public APIlistCSINodeRequest watch(Boolean watch) { + public APIlistCSINodeRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -5178,7 +5428,8 @@ public APIlistCSINodeRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5193,7 +5444,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CSINodeList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5209,7 +5461,8 @@ public V1CSINodeList execute() throws ApiException { * @return ApiResponse<V1CSINodeList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5225,7 +5478,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5241,7 +5495,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * list or watch objects of kind CSINode * @return APIlistCSINodeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5250,7 +5505,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr public APIlistCSINodeRequest listCSINode() { return new APIlistCSINodeRequest(); } - private okhttp3.Call listCSIStorageCapacityForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCSIStorageCapacityForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5345,19 +5600,19 @@ private okhttp3.Call listCSIStorageCapacityForAllNamespacesCall(Boolean allowWat } @SuppressWarnings("rawtypes") - private okhttp3.Call listCSIStorageCapacityForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCSIStorageCapacityForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listCSIStorageCapacityForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listCSIStorageCapacityForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listCSIStorageCapacityForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listCSIStorageCapacityForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listCSIStorageCapacityForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCSIStorageCapacityForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCSIStorageCapacityForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5366,16 +5621,27 @@ private okhttp3.Call listCSIStorageCapacityForAllNamespacesAsync(Boolean allowWa } public class APIlistCSIStorageCapacityForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistCSIStorageCapacityForAllNamespacesRequest() { @@ -5386,7 +5652,7 @@ private APIlistCSIStorageCapacityForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistCSIStorageCapacityForAllNamespacesRequest */ - public APIlistCSIStorageCapacityForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistCSIStorageCapacityForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5396,7 +5662,7 @@ public APIlistCSIStorageCapacityForAllNamespacesRequest allowWatchBookmarks(Bool * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistCSIStorageCapacityForAllNamespacesRequest */ - public APIlistCSIStorageCapacityForAllNamespacesRequest _continue(String _continue) { + public APIlistCSIStorageCapacityForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5406,7 +5672,7 @@ public APIlistCSIStorageCapacityForAllNamespacesRequest _continue(String _contin * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistCSIStorageCapacityForAllNamespacesRequest */ - public APIlistCSIStorageCapacityForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistCSIStorageCapacityForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5416,7 +5682,7 @@ public APIlistCSIStorageCapacityForAllNamespacesRequest fieldSelector(String fie * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistCSIStorageCapacityForAllNamespacesRequest */ - public APIlistCSIStorageCapacityForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistCSIStorageCapacityForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5426,7 +5692,7 @@ public APIlistCSIStorageCapacityForAllNamespacesRequest labelSelector(String lab * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistCSIStorageCapacityForAllNamespacesRequest */ - public APIlistCSIStorageCapacityForAllNamespacesRequest limit(Integer limit) { + public APIlistCSIStorageCapacityForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -5436,7 +5702,7 @@ public APIlistCSIStorageCapacityForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistCSIStorageCapacityForAllNamespacesRequest */ - public APIlistCSIStorageCapacityForAllNamespacesRequest pretty(String pretty) { + public APIlistCSIStorageCapacityForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5446,7 +5712,7 @@ public APIlistCSIStorageCapacityForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistCSIStorageCapacityForAllNamespacesRequest */ - public APIlistCSIStorageCapacityForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistCSIStorageCapacityForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -5456,7 +5722,7 @@ public APIlistCSIStorageCapacityForAllNamespacesRequest resourceVersion(String r * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistCSIStorageCapacityForAllNamespacesRequest */ - public APIlistCSIStorageCapacityForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistCSIStorageCapacityForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -5466,7 +5732,7 @@ public APIlistCSIStorageCapacityForAllNamespacesRequest resourceVersionMatch(Str * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistCSIStorageCapacityForAllNamespacesRequest */ - public APIlistCSIStorageCapacityForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistCSIStorageCapacityForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -5476,7 +5742,7 @@ public APIlistCSIStorageCapacityForAllNamespacesRequest sendInitialEvents(Boolea * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistCSIStorageCapacityForAllNamespacesRequest */ - public APIlistCSIStorageCapacityForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistCSIStorageCapacityForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -5486,7 +5752,7 @@ public APIlistCSIStorageCapacityForAllNamespacesRequest timeoutSeconds(Integer t * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistCSIStorageCapacityForAllNamespacesRequest */ - public APIlistCSIStorageCapacityForAllNamespacesRequest watch(Boolean watch) { + public APIlistCSIStorageCapacityForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -5497,7 +5763,8 @@ public APIlistCSIStorageCapacityForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5512,7 +5779,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CSIStorageCapacityList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5528,7 +5796,8 @@ public V1CSIStorageCapacityList execute() throws ApiException { * @return ApiResponse<V1CSIStorageCapacityList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5544,7 +5813,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExc * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5560,7 +5830,8 @@ public okhttp3.Call executeAsync(final ApiCallback _ca * list or watch objects of kind CSIStorageCapacity * @return APIlistCSIStorageCapacityForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5569,7 +5840,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca public APIlistCSIStorageCapacityForAllNamespacesRequest listCSIStorageCapacityForAllNamespaces() { return new APIlistCSIStorageCapacityForAllNamespacesRequest(); } - private okhttp3.Call listNamespacedCSIStorageCapacityCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedCSIStorageCapacityCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5665,7 +5936,7 @@ private okhttp3.Call listNamespacedCSIStorageCapacityCall(String namespace, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedCSIStorageCapacityValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedCSIStorageCapacityValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedCSIStorageCapacity(Async)"); @@ -5676,13 +5947,13 @@ private okhttp3.Call listNamespacedCSIStorageCapacityValidateBeforeCall(String n } - private ApiResponse listNamespacedCSIStorageCapacityWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listNamespacedCSIStorageCapacityWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedCSIStorageCapacityValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedCSIStorageCapacityAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedCSIStorageCapacityAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedCSIStorageCapacityValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5691,20 +5962,32 @@ private okhttp3.Call listNamespacedCSIStorageCapacityAsync(String namespace, Str } public class APIlistNamespacedCSIStorageCapacityRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedCSIStorageCapacityRequest(String namespace) { + private APIlistNamespacedCSIStorageCapacityRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -5713,7 +5996,7 @@ private APIlistNamespacedCSIStorageCapacityRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedCSIStorageCapacityRequest */ - public APIlistNamespacedCSIStorageCapacityRequest pretty(String pretty) { + public APIlistNamespacedCSIStorageCapacityRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5723,7 +6006,7 @@ public APIlistNamespacedCSIStorageCapacityRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedCSIStorageCapacityRequest */ - public APIlistNamespacedCSIStorageCapacityRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedCSIStorageCapacityRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5733,7 +6016,7 @@ public APIlistNamespacedCSIStorageCapacityRequest allowWatchBookmarks(Boolean al * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedCSIStorageCapacityRequest */ - public APIlistNamespacedCSIStorageCapacityRequest _continue(String _continue) { + public APIlistNamespacedCSIStorageCapacityRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5743,7 +6026,7 @@ public APIlistNamespacedCSIStorageCapacityRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedCSIStorageCapacityRequest */ - public APIlistNamespacedCSIStorageCapacityRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedCSIStorageCapacityRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5753,7 +6036,7 @@ public APIlistNamespacedCSIStorageCapacityRequest fieldSelector(String fieldSele * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedCSIStorageCapacityRequest */ - public APIlistNamespacedCSIStorageCapacityRequest labelSelector(String labelSelector) { + public APIlistNamespacedCSIStorageCapacityRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5763,7 +6046,7 @@ public APIlistNamespacedCSIStorageCapacityRequest labelSelector(String labelSele * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedCSIStorageCapacityRequest */ - public APIlistNamespacedCSIStorageCapacityRequest limit(Integer limit) { + public APIlistNamespacedCSIStorageCapacityRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -5773,7 +6056,7 @@ public APIlistNamespacedCSIStorageCapacityRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedCSIStorageCapacityRequest */ - public APIlistNamespacedCSIStorageCapacityRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedCSIStorageCapacityRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -5783,7 +6066,7 @@ public APIlistNamespacedCSIStorageCapacityRequest resourceVersion(String resourc * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedCSIStorageCapacityRequest */ - public APIlistNamespacedCSIStorageCapacityRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedCSIStorageCapacityRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -5793,7 +6076,7 @@ public APIlistNamespacedCSIStorageCapacityRequest resourceVersionMatch(String re * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedCSIStorageCapacityRequest */ - public APIlistNamespacedCSIStorageCapacityRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedCSIStorageCapacityRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -5803,7 +6086,7 @@ public APIlistNamespacedCSIStorageCapacityRequest sendInitialEvents(Boolean send * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedCSIStorageCapacityRequest */ - public APIlistNamespacedCSIStorageCapacityRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedCSIStorageCapacityRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -5813,7 +6096,7 @@ public APIlistNamespacedCSIStorageCapacityRequest timeoutSeconds(Integer timeout * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedCSIStorageCapacityRequest */ - public APIlistNamespacedCSIStorageCapacityRequest watch(Boolean watch) { + public APIlistNamespacedCSIStorageCapacityRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -5824,7 +6107,8 @@ public APIlistNamespacedCSIStorageCapacityRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5839,7 +6123,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CSIStorageCapacityList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5855,7 +6140,8 @@ public V1CSIStorageCapacityList execute() throws ApiException { * @return ApiResponse<V1CSIStorageCapacityList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5871,7 +6157,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExc * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5888,16 +6175,17 @@ public okhttp3.Call executeAsync(final ApiCallback _ca * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedCSIStorageCapacityRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedCSIStorageCapacityRequest listNamespacedCSIStorageCapacity(String namespace) { + public APIlistNamespacedCSIStorageCapacityRequest listNamespacedCSIStorageCapacity(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedCSIStorageCapacityRequest(namespace); } - private okhttp3.Call listStorageClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStorageClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5992,19 +6280,19 @@ private okhttp3.Call listStorageClassCall(String pretty, Boolean allowWatchBookm } @SuppressWarnings("rawtypes") - private okhttp3.Call listStorageClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStorageClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listStorageClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listStorageClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listStorageClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listStorageClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listStorageClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStorageClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listStorageClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6013,16 +6301,27 @@ private okhttp3.Call listStorageClassAsync(String pretty, Boolean allowWatchBook } public class APIlistStorageClassRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistStorageClassRequest() { @@ -6033,7 +6332,7 @@ private APIlistStorageClassRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistStorageClassRequest */ - public APIlistStorageClassRequest pretty(String pretty) { + public APIlistStorageClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6043,7 +6342,7 @@ public APIlistStorageClassRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistStorageClassRequest */ - public APIlistStorageClassRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistStorageClassRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -6053,7 +6352,7 @@ public APIlistStorageClassRequest allowWatchBookmarks(Boolean allowWatchBookmark * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistStorageClassRequest */ - public APIlistStorageClassRequest _continue(String _continue) { + public APIlistStorageClassRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -6063,7 +6362,7 @@ public APIlistStorageClassRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistStorageClassRequest */ - public APIlistStorageClassRequest fieldSelector(String fieldSelector) { + public APIlistStorageClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -6073,7 +6372,7 @@ public APIlistStorageClassRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistStorageClassRequest */ - public APIlistStorageClassRequest labelSelector(String labelSelector) { + public APIlistStorageClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -6083,7 +6382,7 @@ public APIlistStorageClassRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistStorageClassRequest */ - public APIlistStorageClassRequest limit(Integer limit) { + public APIlistStorageClassRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -6093,7 +6392,7 @@ public APIlistStorageClassRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistStorageClassRequest */ - public APIlistStorageClassRequest resourceVersion(String resourceVersion) { + public APIlistStorageClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -6103,7 +6402,7 @@ public APIlistStorageClassRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistStorageClassRequest */ - public APIlistStorageClassRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistStorageClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -6113,7 +6412,7 @@ public APIlistStorageClassRequest resourceVersionMatch(String resourceVersionMat * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistStorageClassRequest */ - public APIlistStorageClassRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistStorageClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -6123,7 +6422,7 @@ public APIlistStorageClassRequest sendInitialEvents(Boolean sendInitialEvents) { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistStorageClassRequest */ - public APIlistStorageClassRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistStorageClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -6133,7 +6432,7 @@ public APIlistStorageClassRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistStorageClassRequest */ - public APIlistStorageClassRequest watch(Boolean watch) { + public APIlistStorageClassRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -6144,7 +6443,8 @@ public APIlistStorageClassRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6159,7 +6459,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1StorageClassList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6175,7 +6476,8 @@ public V1StorageClassList execute() throws ApiException { * @return ApiResponse<V1StorageClassList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6191,7 +6493,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6207,7 +6510,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * list or watch objects of kind StorageClass * @return APIlistStorageClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6216,7 +6520,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback public APIlistStorageClassRequest listStorageClass() { return new APIlistStorageClassRequest(); } - private okhttp3.Call listVolumeAttachmentCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listVolumeAttachmentCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6311,19 +6615,19 @@ private okhttp3.Call listVolumeAttachmentCall(String pretty, Boolean allowWatchB } @SuppressWarnings("rawtypes") - private okhttp3.Call listVolumeAttachmentValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listVolumeAttachmentValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listVolumeAttachmentCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listVolumeAttachmentWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listVolumeAttachmentWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listVolumeAttachmentAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listVolumeAttachmentAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6332,16 +6636,27 @@ private okhttp3.Call listVolumeAttachmentAsync(String pretty, Boolean allowWatch } public class APIlistVolumeAttachmentRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistVolumeAttachmentRequest() { @@ -6352,7 +6667,7 @@ private APIlistVolumeAttachmentRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistVolumeAttachmentRequest */ - public APIlistVolumeAttachmentRequest pretty(String pretty) { + public APIlistVolumeAttachmentRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6362,7 +6677,7 @@ public APIlistVolumeAttachmentRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistVolumeAttachmentRequest */ - public APIlistVolumeAttachmentRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistVolumeAttachmentRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -6372,7 +6687,7 @@ public APIlistVolumeAttachmentRequest allowWatchBookmarks(Boolean allowWatchBook * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistVolumeAttachmentRequest */ - public APIlistVolumeAttachmentRequest _continue(String _continue) { + public APIlistVolumeAttachmentRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -6382,7 +6697,7 @@ public APIlistVolumeAttachmentRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistVolumeAttachmentRequest */ - public APIlistVolumeAttachmentRequest fieldSelector(String fieldSelector) { + public APIlistVolumeAttachmentRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -6392,7 +6707,7 @@ public APIlistVolumeAttachmentRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistVolumeAttachmentRequest */ - public APIlistVolumeAttachmentRequest labelSelector(String labelSelector) { + public APIlistVolumeAttachmentRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -6402,7 +6717,7 @@ public APIlistVolumeAttachmentRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistVolumeAttachmentRequest */ - public APIlistVolumeAttachmentRequest limit(Integer limit) { + public APIlistVolumeAttachmentRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -6412,7 +6727,7 @@ public APIlistVolumeAttachmentRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistVolumeAttachmentRequest */ - public APIlistVolumeAttachmentRequest resourceVersion(String resourceVersion) { + public APIlistVolumeAttachmentRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -6422,7 +6737,7 @@ public APIlistVolumeAttachmentRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistVolumeAttachmentRequest */ - public APIlistVolumeAttachmentRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistVolumeAttachmentRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -6432,7 +6747,7 @@ public APIlistVolumeAttachmentRequest resourceVersionMatch(String resourceVersio * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistVolumeAttachmentRequest */ - public APIlistVolumeAttachmentRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistVolumeAttachmentRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -6442,7 +6757,7 @@ public APIlistVolumeAttachmentRequest sendInitialEvents(Boolean sendInitialEvent * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistVolumeAttachmentRequest */ - public APIlistVolumeAttachmentRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistVolumeAttachmentRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -6452,7 +6767,7 @@ public APIlistVolumeAttachmentRequest timeoutSeconds(Integer timeoutSeconds) { * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistVolumeAttachmentRequest */ - public APIlistVolumeAttachmentRequest watch(Boolean watch) { + public APIlistVolumeAttachmentRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -6463,7 +6778,8 @@ public APIlistVolumeAttachmentRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6478,7 +6794,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1VolumeAttachmentList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6494,7 +6811,8 @@ public V1VolumeAttachmentList execute() throws ApiException { * @return ApiResponse<V1VolumeAttachmentList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6510,7 +6828,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6526,7 +6845,8 @@ public okhttp3.Call executeAsync(final ApiCallback _call * list or watch objects of kind VolumeAttachment * @return APIlistVolumeAttachmentRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6535,7 +6855,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call public APIlistVolumeAttachmentRequest listVolumeAttachment() { return new APIlistVolumeAttachmentRequest(); } - private okhttp3.Call patchCSIDriverCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCSIDriverCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6605,7 +6925,7 @@ private okhttp3.Call patchCSIDriverCall(String name, V1Patch body, String pretty } @SuppressWarnings("rawtypes") - private okhttp3.Call patchCSIDriverValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCSIDriverValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchCSIDriver(Async)"); @@ -6621,13 +6941,13 @@ private okhttp3.Call patchCSIDriverValidateBeforeCall(String name, V1Patch body, } - private ApiResponse patchCSIDriverWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchCSIDriverWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchCSIDriverValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchCSIDriverAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCSIDriverAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchCSIDriverValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6636,15 +6956,22 @@ private okhttp3.Call patchCSIDriverAsync(String name, V1Patch body, String prett } public class APIpatchCSIDriverRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchCSIDriverRequest(String name, V1Patch body) { + private APIpatchCSIDriverRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -6654,7 +6981,7 @@ private APIpatchCSIDriverRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchCSIDriverRequest */ - public APIpatchCSIDriverRequest pretty(String pretty) { + public APIpatchCSIDriverRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6664,7 +6991,7 @@ public APIpatchCSIDriverRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchCSIDriverRequest */ - public APIpatchCSIDriverRequest dryRun(String dryRun) { + public APIpatchCSIDriverRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6674,7 +7001,7 @@ public APIpatchCSIDriverRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchCSIDriverRequest */ - public APIpatchCSIDriverRequest fieldManager(String fieldManager) { + public APIpatchCSIDriverRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6684,7 +7011,7 @@ public APIpatchCSIDriverRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchCSIDriverRequest */ - public APIpatchCSIDriverRequest fieldValidation(String fieldValidation) { + public APIpatchCSIDriverRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -6694,7 +7021,7 @@ public APIpatchCSIDriverRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchCSIDriverRequest */ - public APIpatchCSIDriverRequest force(Boolean force) { + public APIpatchCSIDriverRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -6705,7 +7032,8 @@ public APIpatchCSIDriverRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6721,7 +7049,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CSIDriver * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6738,7 +7067,8 @@ public V1CSIDriver execute() throws ApiException { * @return ApiResponse<V1CSIDriver> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6755,7 +7085,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6774,17 +7105,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIpatchCSIDriverRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchCSIDriverRequest patchCSIDriver(String name, V1Patch body) { + public APIpatchCSIDriverRequest patchCSIDriver(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchCSIDriverRequest(name, body); } - private okhttp3.Call patchCSINodeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCSINodeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6854,7 +7186,7 @@ private okhttp3.Call patchCSINodeCall(String name, V1Patch body, String pretty, } @SuppressWarnings("rawtypes") - private okhttp3.Call patchCSINodeValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCSINodeValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchCSINode(Async)"); @@ -6870,13 +7202,13 @@ private okhttp3.Call patchCSINodeValidateBeforeCall(String name, V1Patch body, S } - private ApiResponse patchCSINodeWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchCSINodeWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchCSINodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchCSINodeAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCSINodeAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchCSINodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6885,15 +7217,22 @@ private okhttp3.Call patchCSINodeAsync(String name, V1Patch body, String pretty, } public class APIpatchCSINodeRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchCSINodeRequest(String name, V1Patch body) { + private APIpatchCSINodeRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -6903,7 +7242,7 @@ private APIpatchCSINodeRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchCSINodeRequest */ - public APIpatchCSINodeRequest pretty(String pretty) { + public APIpatchCSINodeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6913,7 +7252,7 @@ public APIpatchCSINodeRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchCSINodeRequest */ - public APIpatchCSINodeRequest dryRun(String dryRun) { + public APIpatchCSINodeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6923,7 +7262,7 @@ public APIpatchCSINodeRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchCSINodeRequest */ - public APIpatchCSINodeRequest fieldManager(String fieldManager) { + public APIpatchCSINodeRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6933,7 +7272,7 @@ public APIpatchCSINodeRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchCSINodeRequest */ - public APIpatchCSINodeRequest fieldValidation(String fieldValidation) { + public APIpatchCSINodeRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -6943,7 +7282,7 @@ public APIpatchCSINodeRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchCSINodeRequest */ - public APIpatchCSINodeRequest force(Boolean force) { + public APIpatchCSINodeRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -6954,7 +7293,8 @@ public APIpatchCSINodeRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6970,7 +7310,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CSINode * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6987,7 +7328,8 @@ public V1CSINode execute() throws ApiException { * @return ApiResponse<V1CSINode> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7004,7 +7346,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7023,17 +7366,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param body (required) * @return APIpatchCSINodeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchCSINodeRequest patchCSINode(String name, V1Patch body) { + public APIpatchCSINodeRequest patchCSINode(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchCSINodeRequest(name, body); } - private okhttp3.Call patchNamespacedCSIStorageCapacityCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCSIStorageCapacityCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7104,7 +7448,7 @@ private okhttp3.Call patchNamespacedCSIStorageCapacityCall(String name, String n } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedCSIStorageCapacityValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCSIStorageCapacityValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedCSIStorageCapacity(Async)"); @@ -7125,13 +7469,13 @@ private okhttp3.Call patchNamespacedCSIStorageCapacityValidateBeforeCall(String } - private ApiResponse patchNamespacedCSIStorageCapacityWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchNamespacedCSIStorageCapacityWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedCSIStorageCapacityValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedCSIStorageCapacityAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCSIStorageCapacityAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedCSIStorageCapacityValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7140,16 +7484,24 @@ private okhttp3.Call patchNamespacedCSIStorageCapacityAsync(String name, String } public class APIpatchNamespacedCSIStorageCapacityRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedCSIStorageCapacityRequest(String name, String namespace, V1Patch body) { + private APIpatchNamespacedCSIStorageCapacityRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; @@ -7160,7 +7512,7 @@ private APIpatchNamespacedCSIStorageCapacityRequest(String name, String namespac * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedCSIStorageCapacityRequest */ - public APIpatchNamespacedCSIStorageCapacityRequest pretty(String pretty) { + public APIpatchNamespacedCSIStorageCapacityRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7170,7 +7522,7 @@ public APIpatchNamespacedCSIStorageCapacityRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedCSIStorageCapacityRequest */ - public APIpatchNamespacedCSIStorageCapacityRequest dryRun(String dryRun) { + public APIpatchNamespacedCSIStorageCapacityRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -7180,7 +7532,7 @@ public APIpatchNamespacedCSIStorageCapacityRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedCSIStorageCapacityRequest */ - public APIpatchNamespacedCSIStorageCapacityRequest fieldManager(String fieldManager) { + public APIpatchNamespacedCSIStorageCapacityRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -7190,7 +7542,7 @@ public APIpatchNamespacedCSIStorageCapacityRequest fieldManager(String fieldMana * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedCSIStorageCapacityRequest */ - public APIpatchNamespacedCSIStorageCapacityRequest fieldValidation(String fieldValidation) { + public APIpatchNamespacedCSIStorageCapacityRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -7200,7 +7552,7 @@ public APIpatchNamespacedCSIStorageCapacityRequest fieldValidation(String fieldV * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedCSIStorageCapacityRequest */ - public APIpatchNamespacedCSIStorageCapacityRequest force(Boolean force) { + public APIpatchNamespacedCSIStorageCapacityRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -7211,7 +7563,8 @@ public APIpatchNamespacedCSIStorageCapacityRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7227,7 +7580,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CSIStorageCapacity * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7244,7 +7598,8 @@ public V1CSIStorageCapacity execute() throws ApiException { * @return ApiResponse<V1CSIStorageCapacity> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7261,7 +7616,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7281,17 +7637,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param body (required) * @return APIpatchNamespacedCSIStorageCapacityRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedCSIStorageCapacityRequest patchNamespacedCSIStorageCapacity(String name, String namespace, V1Patch body) { + public APIpatchNamespacedCSIStorageCapacityRequest patchNamespacedCSIStorageCapacity(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchNamespacedCSIStorageCapacityRequest(name, namespace, body); } - private okhttp3.Call patchStorageClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchStorageClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7361,7 +7718,7 @@ private okhttp3.Call patchStorageClassCall(String name, V1Patch body, String pre } @SuppressWarnings("rawtypes") - private okhttp3.Call patchStorageClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchStorageClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchStorageClass(Async)"); @@ -7377,13 +7734,13 @@ private okhttp3.Call patchStorageClassValidateBeforeCall(String name, V1Patch bo } - private ApiResponse patchStorageClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchStorageClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchStorageClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchStorageClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7392,15 +7749,22 @@ private okhttp3.Call patchStorageClassAsync(String name, V1Patch body, String pr } public class APIpatchStorageClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchStorageClassRequest(String name, V1Patch body) { + private APIpatchStorageClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -7410,7 +7774,7 @@ private APIpatchStorageClassRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchStorageClassRequest */ - public APIpatchStorageClassRequest pretty(String pretty) { + public APIpatchStorageClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7420,7 +7784,7 @@ public APIpatchStorageClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchStorageClassRequest */ - public APIpatchStorageClassRequest dryRun(String dryRun) { + public APIpatchStorageClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -7430,7 +7794,7 @@ public APIpatchStorageClassRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchStorageClassRequest */ - public APIpatchStorageClassRequest fieldManager(String fieldManager) { + public APIpatchStorageClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -7440,7 +7804,7 @@ public APIpatchStorageClassRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchStorageClassRequest */ - public APIpatchStorageClassRequest fieldValidation(String fieldValidation) { + public APIpatchStorageClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -7450,7 +7814,7 @@ public APIpatchStorageClassRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchStorageClassRequest */ - public APIpatchStorageClassRequest force(Boolean force) { + public APIpatchStorageClassRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -7461,7 +7825,8 @@ public APIpatchStorageClassRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7477,7 +7842,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1StorageClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7494,7 +7860,8 @@ public V1StorageClass execute() throws ApiException { * @return ApiResponse<V1StorageClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7511,7 +7878,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7530,17 +7898,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th * @param body (required) * @return APIpatchStorageClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchStorageClassRequest patchStorageClass(String name, V1Patch body) { + public APIpatchStorageClassRequest patchStorageClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchStorageClassRequest(name, body); } - private okhttp3.Call patchVolumeAttachmentCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchVolumeAttachmentCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7610,7 +7979,7 @@ private okhttp3.Call patchVolumeAttachmentCall(String name, V1Patch body, String } @SuppressWarnings("rawtypes") - private okhttp3.Call patchVolumeAttachmentValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchVolumeAttachmentValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchVolumeAttachment(Async)"); @@ -7626,13 +7995,13 @@ private okhttp3.Call patchVolumeAttachmentValidateBeforeCall(String name, V1Patc } - private ApiResponse patchVolumeAttachmentWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchVolumeAttachmentWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchVolumeAttachmentAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchVolumeAttachmentAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7641,15 +8010,22 @@ private okhttp3.Call patchVolumeAttachmentAsync(String name, V1Patch body, Strin } public class APIpatchVolumeAttachmentRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchVolumeAttachmentRequest(String name, V1Patch body) { + private APIpatchVolumeAttachmentRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -7659,7 +8035,7 @@ private APIpatchVolumeAttachmentRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchVolumeAttachmentRequest */ - public APIpatchVolumeAttachmentRequest pretty(String pretty) { + public APIpatchVolumeAttachmentRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7669,7 +8045,7 @@ public APIpatchVolumeAttachmentRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchVolumeAttachmentRequest */ - public APIpatchVolumeAttachmentRequest dryRun(String dryRun) { + public APIpatchVolumeAttachmentRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -7679,7 +8055,7 @@ public APIpatchVolumeAttachmentRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchVolumeAttachmentRequest */ - public APIpatchVolumeAttachmentRequest fieldManager(String fieldManager) { + public APIpatchVolumeAttachmentRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -7689,7 +8065,7 @@ public APIpatchVolumeAttachmentRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchVolumeAttachmentRequest */ - public APIpatchVolumeAttachmentRequest fieldValidation(String fieldValidation) { + public APIpatchVolumeAttachmentRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -7699,7 +8075,7 @@ public APIpatchVolumeAttachmentRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchVolumeAttachmentRequest */ - public APIpatchVolumeAttachmentRequest force(Boolean force) { + public APIpatchVolumeAttachmentRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -7710,7 +8086,8 @@ public APIpatchVolumeAttachmentRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7726,7 +8103,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7743,7 +8121,8 @@ public V1VolumeAttachment execute() throws ApiException { * @return ApiResponse<V1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7760,7 +8139,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7779,17 +8159,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param body (required) * @return APIpatchVolumeAttachmentRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchVolumeAttachmentRequest patchVolumeAttachment(String name, V1Patch body) { + public APIpatchVolumeAttachmentRequest patchVolumeAttachment(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchVolumeAttachmentRequest(name, body); } - private okhttp3.Call patchVolumeAttachmentStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchVolumeAttachmentStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7859,7 +8240,7 @@ private okhttp3.Call patchVolumeAttachmentStatusCall(String name, V1Patch body, } @SuppressWarnings("rawtypes") - private okhttp3.Call patchVolumeAttachmentStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchVolumeAttachmentStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchVolumeAttachmentStatus(Async)"); @@ -7875,13 +8256,13 @@ private okhttp3.Call patchVolumeAttachmentStatusValidateBeforeCall(String name, } - private ApiResponse patchVolumeAttachmentStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchVolumeAttachmentStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchVolumeAttachmentStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchVolumeAttachmentStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchVolumeAttachmentStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchVolumeAttachmentStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7890,15 +8271,22 @@ private okhttp3.Call patchVolumeAttachmentStatusAsync(String name, V1Patch body, } public class APIpatchVolumeAttachmentStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchVolumeAttachmentStatusRequest(String name, V1Patch body) { + private APIpatchVolumeAttachmentStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -7908,7 +8296,7 @@ private APIpatchVolumeAttachmentStatusRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchVolumeAttachmentStatusRequest */ - public APIpatchVolumeAttachmentStatusRequest pretty(String pretty) { + public APIpatchVolumeAttachmentStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7918,7 +8306,7 @@ public APIpatchVolumeAttachmentStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchVolumeAttachmentStatusRequest */ - public APIpatchVolumeAttachmentStatusRequest dryRun(String dryRun) { + public APIpatchVolumeAttachmentStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -7928,7 +8316,7 @@ public APIpatchVolumeAttachmentStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchVolumeAttachmentStatusRequest */ - public APIpatchVolumeAttachmentStatusRequest fieldManager(String fieldManager) { + public APIpatchVolumeAttachmentStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -7938,7 +8326,7 @@ public APIpatchVolumeAttachmentStatusRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchVolumeAttachmentStatusRequest */ - public APIpatchVolumeAttachmentStatusRequest fieldValidation(String fieldValidation) { + public APIpatchVolumeAttachmentStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -7948,7 +8336,7 @@ public APIpatchVolumeAttachmentStatusRequest fieldValidation(String fieldValidat * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchVolumeAttachmentStatusRequest */ - public APIpatchVolumeAttachmentStatusRequest force(Boolean force) { + public APIpatchVolumeAttachmentStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -7959,7 +8347,8 @@ public APIpatchVolumeAttachmentStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7975,7 +8364,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7992,7 +8382,8 @@ public V1VolumeAttachment execute() throws ApiException { * @return ApiResponse<V1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8009,7 +8400,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8028,17 +8420,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param body (required) * @return APIpatchVolumeAttachmentStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchVolumeAttachmentStatusRequest patchVolumeAttachmentStatus(String name, V1Patch body) { + public APIpatchVolumeAttachmentStatusRequest patchVolumeAttachmentStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchVolumeAttachmentStatusRequest(name, body); } - private okhttp3.Call readCSIDriverCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCSIDriverCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8091,7 +8484,7 @@ private okhttp3.Call readCSIDriverCall(String name, String pretty, final ApiCall } @SuppressWarnings("rawtypes") - private okhttp3.Call readCSIDriverValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCSIDriverValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readCSIDriver(Async)"); @@ -8102,13 +8495,13 @@ private okhttp3.Call readCSIDriverValidateBeforeCall(String name, String pretty, } - private ApiResponse readCSIDriverWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readCSIDriverWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readCSIDriverValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readCSIDriverAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCSIDriverAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readCSIDriverValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8117,10 +8510,12 @@ private okhttp3.Call readCSIDriverAsync(String name, String pretty, final ApiCal } public class APIreadCSIDriverRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadCSIDriverRequest(String name) { + private APIreadCSIDriverRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -8129,7 +8524,7 @@ private APIreadCSIDriverRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadCSIDriverRequest */ - public APIreadCSIDriverRequest pretty(String pretty) { + public APIreadCSIDriverRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8140,7 +8535,8 @@ public APIreadCSIDriverRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8155,7 +8551,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CSIDriver * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8171,7 +8568,8 @@ public V1CSIDriver execute() throws ApiException { * @return ApiResponse<V1CSIDriver> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8187,7 +8585,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8204,16 +8603,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param name name of the CSIDriver (required) * @return APIreadCSIDriverRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadCSIDriverRequest readCSIDriver(String name) { + public APIreadCSIDriverRequest readCSIDriver(@jakarta.annotation.Nonnull String name) { return new APIreadCSIDriverRequest(name); } - private okhttp3.Call readCSINodeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCSINodeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8266,7 +8666,7 @@ private okhttp3.Call readCSINodeCall(String name, String pretty, final ApiCallba } @SuppressWarnings("rawtypes") - private okhttp3.Call readCSINodeValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCSINodeValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readCSINode(Async)"); @@ -8277,13 +8677,13 @@ private okhttp3.Call readCSINodeValidateBeforeCall(String name, String pretty, f } - private ApiResponse readCSINodeWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readCSINodeWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readCSINodeValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readCSINodeAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCSINodeAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readCSINodeValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8292,10 +8692,12 @@ private okhttp3.Call readCSINodeAsync(String name, String pretty, final ApiCallb } public class APIreadCSINodeRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadCSINodeRequest(String name) { + private APIreadCSINodeRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -8304,7 +8706,7 @@ private APIreadCSINodeRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadCSINodeRequest */ - public APIreadCSINodeRequest pretty(String pretty) { + public APIreadCSINodeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8315,7 +8717,8 @@ public APIreadCSINodeRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8330,7 +8733,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CSINode * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8346,7 +8750,8 @@ public V1CSINode execute() throws ApiException { * @return ApiResponse<V1CSINode> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8362,7 +8767,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8379,16 +8785,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param name name of the CSINode (required) * @return APIreadCSINodeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadCSINodeRequest readCSINode(String name) { + public APIreadCSINodeRequest readCSINode(@jakarta.annotation.Nonnull String name) { return new APIreadCSINodeRequest(name); } - private okhttp3.Call readNamespacedCSIStorageCapacityCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedCSIStorageCapacityCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8442,7 +8849,7 @@ private okhttp3.Call readNamespacedCSIStorageCapacityCall(String name, String na } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedCSIStorageCapacityValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedCSIStorageCapacityValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedCSIStorageCapacity(Async)"); @@ -8458,13 +8865,13 @@ private okhttp3.Call readNamespacedCSIStorageCapacityValidateBeforeCall(String n } - private ApiResponse readNamespacedCSIStorageCapacityWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + private ApiResponse readNamespacedCSIStorageCapacityWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedCSIStorageCapacityValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedCSIStorageCapacityAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedCSIStorageCapacityAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedCSIStorageCapacityValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8473,11 +8880,14 @@ private okhttp3.Call readNamespacedCSIStorageCapacityAsync(String name, String n } public class APIreadNamespacedCSIStorageCapacityRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedCSIStorageCapacityRequest(String name, String namespace) { + private APIreadNamespacedCSIStorageCapacityRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -8487,7 +8897,7 @@ private APIreadNamespacedCSIStorageCapacityRequest(String name, String namespace * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedCSIStorageCapacityRequest */ - public APIreadNamespacedCSIStorageCapacityRequest pretty(String pretty) { + public APIreadNamespacedCSIStorageCapacityRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8498,7 +8908,8 @@ public APIreadNamespacedCSIStorageCapacityRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8513,7 +8924,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CSIStorageCapacity * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8529,7 +8941,8 @@ public V1CSIStorageCapacity execute() throws ApiException { * @return ApiResponse<V1CSIStorageCapacity> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8545,7 +8958,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8563,16 +8977,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedCSIStorageCapacityRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadNamespacedCSIStorageCapacityRequest readNamespacedCSIStorageCapacity(String name, String namespace) { + public APIreadNamespacedCSIStorageCapacityRequest readNamespacedCSIStorageCapacity(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedCSIStorageCapacityRequest(name, namespace); } - private okhttp3.Call readStorageClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readStorageClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8625,7 +9040,7 @@ private okhttp3.Call readStorageClassCall(String name, String pretty, final ApiC } @SuppressWarnings("rawtypes") - private okhttp3.Call readStorageClassValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readStorageClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readStorageClass(Async)"); @@ -8636,13 +9051,13 @@ private okhttp3.Call readStorageClassValidateBeforeCall(String name, String pret } - private ApiResponse readStorageClassWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readStorageClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readStorageClassValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readStorageClassAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readStorageClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readStorageClassValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8651,10 +9066,12 @@ private okhttp3.Call readStorageClassAsync(String name, String pretty, final Api } public class APIreadStorageClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadStorageClassRequest(String name) { + private APIreadStorageClassRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -8663,7 +9080,7 @@ private APIreadStorageClassRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadStorageClassRequest */ - public APIreadStorageClassRequest pretty(String pretty) { + public APIreadStorageClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8674,7 +9091,8 @@ public APIreadStorageClassRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8689,7 +9107,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1StorageClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8705,7 +9124,8 @@ public V1StorageClass execute() throws ApiException { * @return ApiResponse<V1StorageClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8721,7 +9141,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8738,16 +9159,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th * @param name name of the StorageClass (required) * @return APIreadStorageClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadStorageClassRequest readStorageClass(String name) { + public APIreadStorageClassRequest readStorageClass(@jakarta.annotation.Nonnull String name) { return new APIreadStorageClassRequest(name); } - private okhttp3.Call readVolumeAttachmentCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readVolumeAttachmentCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8800,7 +9222,7 @@ private okhttp3.Call readVolumeAttachmentCall(String name, String pretty, final } @SuppressWarnings("rawtypes") - private okhttp3.Call readVolumeAttachmentValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readVolumeAttachmentValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readVolumeAttachment(Async)"); @@ -8811,13 +9233,13 @@ private okhttp3.Call readVolumeAttachmentValidateBeforeCall(String name, String } - private ApiResponse readVolumeAttachmentWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readVolumeAttachmentWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readVolumeAttachmentValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readVolumeAttachmentAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readVolumeAttachmentAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readVolumeAttachmentValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8826,10 +9248,12 @@ private okhttp3.Call readVolumeAttachmentAsync(String name, String pretty, final } public class APIreadVolumeAttachmentRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadVolumeAttachmentRequest(String name) { + private APIreadVolumeAttachmentRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -8838,7 +9262,7 @@ private APIreadVolumeAttachmentRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadVolumeAttachmentRequest */ - public APIreadVolumeAttachmentRequest pretty(String pretty) { + public APIreadVolumeAttachmentRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8849,7 +9273,8 @@ public APIreadVolumeAttachmentRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8864,7 +9289,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8880,7 +9306,8 @@ public V1VolumeAttachment execute() throws ApiException { * @return ApiResponse<V1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8896,7 +9323,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -8913,16 +9341,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param name name of the VolumeAttachment (required) * @return APIreadVolumeAttachmentRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadVolumeAttachmentRequest readVolumeAttachment(String name) { + public APIreadVolumeAttachmentRequest readVolumeAttachment(@jakarta.annotation.Nonnull String name) { return new APIreadVolumeAttachmentRequest(name); } - private okhttp3.Call readVolumeAttachmentStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readVolumeAttachmentStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8975,7 +9404,7 @@ private okhttp3.Call readVolumeAttachmentStatusCall(String name, String pretty, } @SuppressWarnings("rawtypes") - private okhttp3.Call readVolumeAttachmentStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readVolumeAttachmentStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readVolumeAttachmentStatus(Async)"); @@ -8986,13 +9415,13 @@ private okhttp3.Call readVolumeAttachmentStatusValidateBeforeCall(String name, S } - private ApiResponse readVolumeAttachmentStatusWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readVolumeAttachmentStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readVolumeAttachmentStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readVolumeAttachmentStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readVolumeAttachmentStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readVolumeAttachmentStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -9001,10 +9430,12 @@ private okhttp3.Call readVolumeAttachmentStatusAsync(String name, String pretty, } public class APIreadVolumeAttachmentStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadVolumeAttachmentStatusRequest(String name) { + private APIreadVolumeAttachmentStatusRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -9013,7 +9444,7 @@ private APIreadVolumeAttachmentStatusRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadVolumeAttachmentStatusRequest */ - public APIreadVolumeAttachmentStatusRequest pretty(String pretty) { + public APIreadVolumeAttachmentStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -9024,7 +9455,8 @@ public APIreadVolumeAttachmentStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -9039,7 +9471,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -9055,7 +9488,8 @@ public V1VolumeAttachment execute() throws ApiException { * @return ApiResponse<V1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -9071,7 +9505,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -9088,16 +9523,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param name name of the VolumeAttachment (required) * @return APIreadVolumeAttachmentStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadVolumeAttachmentStatusRequest readVolumeAttachmentStatus(String name) { + public APIreadVolumeAttachmentStatusRequest readVolumeAttachmentStatus(@jakarta.annotation.Nonnull String name) { return new APIreadVolumeAttachmentStatusRequest(name); } - private okhttp3.Call replaceCSIDriverCall(String name, V1CSIDriver body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCSIDriverCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CSIDriver body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -9163,7 +9599,7 @@ private okhttp3.Call replaceCSIDriverCall(String name, V1CSIDriver body, String } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceCSIDriverValidateBeforeCall(String name, V1CSIDriver body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCSIDriverValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CSIDriver body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceCSIDriver(Async)"); @@ -9179,13 +9615,13 @@ private okhttp3.Call replaceCSIDriverValidateBeforeCall(String name, V1CSIDriver } - private ApiResponse replaceCSIDriverWithHttpInfo(String name, V1CSIDriver body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceCSIDriverWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CSIDriver body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceCSIDriverValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceCSIDriverAsync(String name, V1CSIDriver body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCSIDriverAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CSIDriver body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceCSIDriverValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -9194,14 +9630,20 @@ private okhttp3.Call replaceCSIDriverAsync(String name, V1CSIDriver body, String } public class APIreplaceCSIDriverRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1CSIDriver body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceCSIDriverRequest(String name, V1CSIDriver body) { + private APIreplaceCSIDriverRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CSIDriver body) { this.name = name; this.body = body; } @@ -9211,7 +9653,7 @@ private APIreplaceCSIDriverRequest(String name, V1CSIDriver body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceCSIDriverRequest */ - public APIreplaceCSIDriverRequest pretty(String pretty) { + public APIreplaceCSIDriverRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -9221,7 +9663,7 @@ public APIreplaceCSIDriverRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceCSIDriverRequest */ - public APIreplaceCSIDriverRequest dryRun(String dryRun) { + public APIreplaceCSIDriverRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -9231,7 +9673,7 @@ public APIreplaceCSIDriverRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceCSIDriverRequest */ - public APIreplaceCSIDriverRequest fieldManager(String fieldManager) { + public APIreplaceCSIDriverRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -9241,7 +9683,7 @@ public APIreplaceCSIDriverRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceCSIDriverRequest */ - public APIreplaceCSIDriverRequest fieldValidation(String fieldValidation) { + public APIreplaceCSIDriverRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -9252,7 +9694,8 @@ public APIreplaceCSIDriverRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -9268,7 +9711,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CSIDriver * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9285,7 +9729,8 @@ public V1CSIDriver execute() throws ApiException { * @return ApiResponse<V1CSIDriver> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9302,7 +9747,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9321,17 +9767,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIreplaceCSIDriverRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceCSIDriverRequest replaceCSIDriver(String name, V1CSIDriver body) { + public APIreplaceCSIDriverRequest replaceCSIDriver(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CSIDriver body) { return new APIreplaceCSIDriverRequest(name, body); } - private okhttp3.Call replaceCSINodeCall(String name, V1CSINode body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCSINodeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CSINode body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -9397,7 +9844,7 @@ private okhttp3.Call replaceCSINodeCall(String name, V1CSINode body, String pret } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceCSINodeValidateBeforeCall(String name, V1CSINode body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCSINodeValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CSINode body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceCSINode(Async)"); @@ -9413,13 +9860,13 @@ private okhttp3.Call replaceCSINodeValidateBeforeCall(String name, V1CSINode bod } - private ApiResponse replaceCSINodeWithHttpInfo(String name, V1CSINode body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceCSINodeWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CSINode body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceCSINodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceCSINodeAsync(String name, V1CSINode body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCSINodeAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CSINode body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceCSINodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -9428,14 +9875,20 @@ private okhttp3.Call replaceCSINodeAsync(String name, V1CSINode body, String pre } public class APIreplaceCSINodeRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1CSINode body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceCSINodeRequest(String name, V1CSINode body) { + private APIreplaceCSINodeRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CSINode body) { this.name = name; this.body = body; } @@ -9445,7 +9898,7 @@ private APIreplaceCSINodeRequest(String name, V1CSINode body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceCSINodeRequest */ - public APIreplaceCSINodeRequest pretty(String pretty) { + public APIreplaceCSINodeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -9455,7 +9908,7 @@ public APIreplaceCSINodeRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceCSINodeRequest */ - public APIreplaceCSINodeRequest dryRun(String dryRun) { + public APIreplaceCSINodeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -9465,7 +9918,7 @@ public APIreplaceCSINodeRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceCSINodeRequest */ - public APIreplaceCSINodeRequest fieldManager(String fieldManager) { + public APIreplaceCSINodeRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -9475,7 +9928,7 @@ public APIreplaceCSINodeRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceCSINodeRequest */ - public APIreplaceCSINodeRequest fieldValidation(String fieldValidation) { + public APIreplaceCSINodeRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -9486,7 +9939,8 @@ public APIreplaceCSINodeRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -9502,7 +9956,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CSINode * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9519,7 +9974,8 @@ public V1CSINode execute() throws ApiException { * @return ApiResponse<V1CSINode> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9536,7 +9992,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9555,17 +10012,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * @param body (required) * @return APIreplaceCSINodeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceCSINodeRequest replaceCSINode(String name, V1CSINode body) { + public APIreplaceCSINodeRequest replaceCSINode(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CSINode body) { return new APIreplaceCSINodeRequest(name, body); } - private okhttp3.Call replaceNamespacedCSIStorageCapacityCall(String name, String namespace, V1CSIStorageCapacity body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedCSIStorageCapacityCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CSIStorageCapacity body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -9632,7 +10090,7 @@ private okhttp3.Call replaceNamespacedCSIStorageCapacityCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedCSIStorageCapacityValidateBeforeCall(String name, String namespace, V1CSIStorageCapacity body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedCSIStorageCapacityValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CSIStorageCapacity body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedCSIStorageCapacity(Async)"); @@ -9653,13 +10111,13 @@ private okhttp3.Call replaceNamespacedCSIStorageCapacityValidateBeforeCall(Strin } - private ApiResponse replaceNamespacedCSIStorageCapacityWithHttpInfo(String name, String namespace, V1CSIStorageCapacity body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedCSIStorageCapacityWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CSIStorageCapacity body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedCSIStorageCapacityValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedCSIStorageCapacityAsync(String name, String namespace, V1CSIStorageCapacity body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedCSIStorageCapacityAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CSIStorageCapacity body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedCSIStorageCapacityValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -9668,15 +10126,22 @@ private okhttp3.Call replaceNamespacedCSIStorageCapacityAsync(String name, Strin } public class APIreplaceNamespacedCSIStorageCapacityRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1CSIStorageCapacity body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedCSIStorageCapacityRequest(String name, String namespace, V1CSIStorageCapacity body) { + private APIreplaceNamespacedCSIStorageCapacityRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CSIStorageCapacity body) { this.name = name; this.namespace = namespace; this.body = body; @@ -9687,7 +10152,7 @@ private APIreplaceNamespacedCSIStorageCapacityRequest(String name, String namesp * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedCSIStorageCapacityRequest */ - public APIreplaceNamespacedCSIStorageCapacityRequest pretty(String pretty) { + public APIreplaceNamespacedCSIStorageCapacityRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -9697,7 +10162,7 @@ public APIreplaceNamespacedCSIStorageCapacityRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedCSIStorageCapacityRequest */ - public APIreplaceNamespacedCSIStorageCapacityRequest dryRun(String dryRun) { + public APIreplaceNamespacedCSIStorageCapacityRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -9707,7 +10172,7 @@ public APIreplaceNamespacedCSIStorageCapacityRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedCSIStorageCapacityRequest */ - public APIreplaceNamespacedCSIStorageCapacityRequest fieldManager(String fieldManager) { + public APIreplaceNamespacedCSIStorageCapacityRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -9717,7 +10182,7 @@ public APIreplaceNamespacedCSIStorageCapacityRequest fieldManager(String fieldMa * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedCSIStorageCapacityRequest */ - public APIreplaceNamespacedCSIStorageCapacityRequest fieldValidation(String fieldValidation) { + public APIreplaceNamespacedCSIStorageCapacityRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -9728,7 +10193,8 @@ public APIreplaceNamespacedCSIStorageCapacityRequest fieldValidation(String fiel * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -9744,7 +10210,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CSIStorageCapacity * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9761,7 +10228,8 @@ public V1CSIStorageCapacity execute() throws ApiException { * @return ApiResponse<V1CSIStorageCapacity> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9778,7 +10246,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9798,17 +10267,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param body (required) * @return APIreplaceNamespacedCSIStorageCapacityRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedCSIStorageCapacityRequest replaceNamespacedCSIStorageCapacity(String name, String namespace, V1CSIStorageCapacity body) { + public APIreplaceNamespacedCSIStorageCapacityRequest replaceNamespacedCSIStorageCapacity(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1CSIStorageCapacity body) { return new APIreplaceNamespacedCSIStorageCapacityRequest(name, namespace, body); } - private okhttp3.Call replaceStorageClassCall(String name, V1StorageClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceStorageClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1StorageClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -9874,7 +10344,7 @@ private okhttp3.Call replaceStorageClassCall(String name, V1StorageClass body, S } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceStorageClassValidateBeforeCall(String name, V1StorageClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceStorageClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1StorageClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceStorageClass(Async)"); @@ -9890,13 +10360,13 @@ private okhttp3.Call replaceStorageClassValidateBeforeCall(String name, V1Storag } - private ApiResponse replaceStorageClassWithHttpInfo(String name, V1StorageClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceStorageClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1StorageClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceStorageClassAsync(String name, V1StorageClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceStorageClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1StorageClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -9905,14 +10375,20 @@ private okhttp3.Call replaceStorageClassAsync(String name, V1StorageClass body, } public class APIreplaceStorageClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1StorageClass body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceStorageClassRequest(String name, V1StorageClass body) { + private APIreplaceStorageClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1StorageClass body) { this.name = name; this.body = body; } @@ -9922,7 +10398,7 @@ private APIreplaceStorageClassRequest(String name, V1StorageClass body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceStorageClassRequest */ - public APIreplaceStorageClassRequest pretty(String pretty) { + public APIreplaceStorageClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -9932,7 +10408,7 @@ public APIreplaceStorageClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceStorageClassRequest */ - public APIreplaceStorageClassRequest dryRun(String dryRun) { + public APIreplaceStorageClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -9942,7 +10418,7 @@ public APIreplaceStorageClassRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceStorageClassRequest */ - public APIreplaceStorageClassRequest fieldManager(String fieldManager) { + public APIreplaceStorageClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -9952,7 +10428,7 @@ public APIreplaceStorageClassRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceStorageClassRequest */ - public APIreplaceStorageClassRequest fieldValidation(String fieldValidation) { + public APIreplaceStorageClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -9963,7 +10439,8 @@ public APIreplaceStorageClassRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -9979,7 +10456,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1StorageClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -9996,7 +10474,8 @@ public V1StorageClass execute() throws ApiException { * @return ApiResponse<V1StorageClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10013,7 +10492,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10032,17 +10512,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th * @param body (required) * @return APIreplaceStorageClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceStorageClassRequest replaceStorageClass(String name, V1StorageClass body) { + public APIreplaceStorageClassRequest replaceStorageClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1StorageClass body) { return new APIreplaceStorageClassRequest(name, body); } - private okhttp3.Call replaceVolumeAttachmentCall(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceVolumeAttachmentCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1VolumeAttachment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -10108,7 +10589,7 @@ private okhttp3.Call replaceVolumeAttachmentCall(String name, V1VolumeAttachment } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceVolumeAttachmentValidateBeforeCall(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceVolumeAttachmentValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1VolumeAttachment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceVolumeAttachment(Async)"); @@ -10124,13 +10605,13 @@ private okhttp3.Call replaceVolumeAttachmentValidateBeforeCall(String name, V1Vo } - private ApiResponse replaceVolumeAttachmentWithHttpInfo(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceVolumeAttachmentWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1VolumeAttachment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceVolumeAttachmentAsync(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceVolumeAttachmentAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1VolumeAttachment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -10139,14 +10620,20 @@ private okhttp3.Call replaceVolumeAttachmentAsync(String name, V1VolumeAttachmen } public class APIreplaceVolumeAttachmentRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1VolumeAttachment body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceVolumeAttachmentRequest(String name, V1VolumeAttachment body) { + private APIreplaceVolumeAttachmentRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1VolumeAttachment body) { this.name = name; this.body = body; } @@ -10156,7 +10643,7 @@ private APIreplaceVolumeAttachmentRequest(String name, V1VolumeAttachment body) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceVolumeAttachmentRequest */ - public APIreplaceVolumeAttachmentRequest pretty(String pretty) { + public APIreplaceVolumeAttachmentRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -10166,7 +10653,7 @@ public APIreplaceVolumeAttachmentRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceVolumeAttachmentRequest */ - public APIreplaceVolumeAttachmentRequest dryRun(String dryRun) { + public APIreplaceVolumeAttachmentRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -10176,7 +10663,7 @@ public APIreplaceVolumeAttachmentRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceVolumeAttachmentRequest */ - public APIreplaceVolumeAttachmentRequest fieldManager(String fieldManager) { + public APIreplaceVolumeAttachmentRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -10186,7 +10673,7 @@ public APIreplaceVolumeAttachmentRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceVolumeAttachmentRequest */ - public APIreplaceVolumeAttachmentRequest fieldValidation(String fieldValidation) { + public APIreplaceVolumeAttachmentRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -10197,7 +10684,8 @@ public APIreplaceVolumeAttachmentRequest fieldValidation(String fieldValidation) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -10213,7 +10701,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10230,7 +10719,8 @@ public V1VolumeAttachment execute() throws ApiException { * @return ApiResponse<V1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10247,7 +10737,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10266,17 +10757,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param body (required) * @return APIreplaceVolumeAttachmentRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceVolumeAttachmentRequest replaceVolumeAttachment(String name, V1VolumeAttachment body) { + public APIreplaceVolumeAttachmentRequest replaceVolumeAttachment(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1VolumeAttachment body) { return new APIreplaceVolumeAttachmentRequest(name, body); } - private okhttp3.Call replaceVolumeAttachmentStatusCall(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceVolumeAttachmentStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1VolumeAttachment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -10342,7 +10834,7 @@ private okhttp3.Call replaceVolumeAttachmentStatusCall(String name, V1VolumeAtta } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceVolumeAttachmentStatusValidateBeforeCall(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceVolumeAttachmentStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1VolumeAttachment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceVolumeAttachmentStatus(Async)"); @@ -10358,13 +10850,13 @@ private okhttp3.Call replaceVolumeAttachmentStatusValidateBeforeCall(String name } - private ApiResponse replaceVolumeAttachmentStatusWithHttpInfo(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceVolumeAttachmentStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1VolumeAttachment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceVolumeAttachmentStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceVolumeAttachmentStatusAsync(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceVolumeAttachmentStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1VolumeAttachment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceVolumeAttachmentStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -10373,14 +10865,20 @@ private okhttp3.Call replaceVolumeAttachmentStatusAsync(String name, V1VolumeAtt } public class APIreplaceVolumeAttachmentStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1VolumeAttachment body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceVolumeAttachmentStatusRequest(String name, V1VolumeAttachment body) { + private APIreplaceVolumeAttachmentStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1VolumeAttachment body) { this.name = name; this.body = body; } @@ -10390,7 +10888,7 @@ private APIreplaceVolumeAttachmentStatusRequest(String name, V1VolumeAttachment * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceVolumeAttachmentStatusRequest */ - public APIreplaceVolumeAttachmentStatusRequest pretty(String pretty) { + public APIreplaceVolumeAttachmentStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -10400,7 +10898,7 @@ public APIreplaceVolumeAttachmentStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceVolumeAttachmentStatusRequest */ - public APIreplaceVolumeAttachmentStatusRequest dryRun(String dryRun) { + public APIreplaceVolumeAttachmentStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -10410,7 +10908,7 @@ public APIreplaceVolumeAttachmentStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceVolumeAttachmentStatusRequest */ - public APIreplaceVolumeAttachmentStatusRequest fieldManager(String fieldManager) { + public APIreplaceVolumeAttachmentStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -10420,7 +10918,7 @@ public APIreplaceVolumeAttachmentStatusRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceVolumeAttachmentStatusRequest */ - public APIreplaceVolumeAttachmentStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceVolumeAttachmentStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -10431,7 +10929,8 @@ public APIreplaceVolumeAttachmentStatusRequest fieldValidation(String fieldValid * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -10447,7 +10946,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10464,7 +10964,8 @@ public V1VolumeAttachment execute() throws ApiException { * @return ApiResponse<V1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10481,7 +10982,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -10500,14 +11002,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback * @param body (required) * @return APIreplaceVolumeAttachmentStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceVolumeAttachmentStatusRequest replaceVolumeAttachmentStatus(String name, V1VolumeAttachment body) { + public APIreplaceVolumeAttachmentStatusRequest replaceVolumeAttachmentStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1VolumeAttachment body) { return new APIreplaceVolumeAttachmentStatusRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1alpha1Api.java index 050d9d73fc..0fdc27ef4d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1alpha1Api.java @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createVolumeAttributesClassCall(V1alpha1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createVolumeAttributesClassCall(@jakarta.annotation.Nonnull V1alpha1VolumeAttributesClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -141,7 +141,7 @@ private okhttp3.Call createVolumeAttributesClassCall(V1alpha1VolumeAttributesCla } @SuppressWarnings("rawtypes") - private okhttp3.Call createVolumeAttributesClassValidateBeforeCall(V1alpha1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nonnull V1alpha1VolumeAttributesClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createVolumeAttributesClass(Async)"); @@ -152,13 +152,13 @@ private okhttp3.Call createVolumeAttributesClassValidateBeforeCall(V1alpha1Volum } - private ApiResponse createVolumeAttributesClassWithHttpInfo(V1alpha1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nonnull V1alpha1VolumeAttributesClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createVolumeAttributesClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createVolumeAttributesClassAsync(V1alpha1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createVolumeAttributesClassAsync(@jakarta.annotation.Nonnull V1alpha1VolumeAttributesClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createVolumeAttributesClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -167,13 +167,18 @@ private okhttp3.Call createVolumeAttributesClassAsync(V1alpha1VolumeAttributesCl } public class APIcreateVolumeAttributesClassRequest { + @jakarta.annotation.Nonnull private final V1alpha1VolumeAttributesClass body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateVolumeAttributesClassRequest(V1alpha1VolumeAttributesClass body) { + private APIcreateVolumeAttributesClassRequest(@jakarta.annotation.Nonnull V1alpha1VolumeAttributesClass body) { this.body = body; } @@ -182,7 +187,7 @@ private APIcreateVolumeAttributesClassRequest(V1alpha1VolumeAttributesClass body * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateVolumeAttributesClassRequest */ - public APIcreateVolumeAttributesClassRequest pretty(String pretty) { + public APIcreateVolumeAttributesClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -192,7 +197,7 @@ public APIcreateVolumeAttributesClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateVolumeAttributesClassRequest */ - public APIcreateVolumeAttributesClassRequest dryRun(String dryRun) { + public APIcreateVolumeAttributesClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -202,7 +207,7 @@ public APIcreateVolumeAttributesClassRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateVolumeAttributesClassRequest */ - public APIcreateVolumeAttributesClassRequest fieldManager(String fieldManager) { + public APIcreateVolumeAttributesClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -212,7 +217,7 @@ public APIcreateVolumeAttributesClassRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateVolumeAttributesClassRequest */ - public APIcreateVolumeAttributesClassRequest fieldValidation(String fieldValidation) { + public APIcreateVolumeAttributesClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -223,7 +228,8 @@ public APIcreateVolumeAttributesClassRequest fieldValidation(String fieldValidat * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -240,7 +246,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1VolumeAttributesClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -258,7 +265,8 @@ public V1alpha1VolumeAttributesClass execute() throws ApiException { * @return ApiResponse<V1alpha1VolumeAttributesClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -276,7 +284,8 @@ public ApiResponse executeWithHttpInfo() throws A * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -295,7 +304,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+ @@ -303,10 +313,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateVolumeAttributesClassRequest createVolumeAttributesClass(V1alpha1VolumeAttributesClass body) { + public APIcreateVolumeAttributesClassRequest createVolumeAttributesClass(@jakarta.annotation.Nonnull V1alpha1VolumeAttributesClass body) { return new APIcreateVolumeAttributesClassRequest(body); } - private okhttp3.Call deleteCollectionVolumeAttributesClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionVolumeAttributesClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -411,19 +421,19 @@ private okhttp3.Call deleteCollectionVolumeAttributesClassCall(String pretty, St } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionVolumeAttributesClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionVolumeAttributesClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionVolumeAttributesClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionVolumeAttributesClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionVolumeAttributesClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionVolumeAttributesClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionVolumeAttributesClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -432,20 +442,35 @@ private okhttp3.Call deleteCollectionVolumeAttributesClassAsync(String pretty, S } public class APIdeleteCollectionVolumeAttributesClassRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionVolumeAttributesClassRequest() { @@ -456,7 +481,7 @@ private APIdeleteCollectionVolumeAttributesClassRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest pretty(String pretty) { + public APIdeleteCollectionVolumeAttributesClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -466,7 +491,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest _continue(String _continue) { + public APIdeleteCollectionVolumeAttributesClassRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -476,7 +501,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest _continue(String _continu * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest dryRun(String dryRun) { + public APIdeleteCollectionVolumeAttributesClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -486,7 +511,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionVolumeAttributesClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -496,7 +521,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest fieldSelector(String fiel * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionVolumeAttributesClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -506,7 +531,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest gracePeriodSeconds(Intege * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionVolumeAttributesClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -516,7 +541,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest ignoreStoreReadErrorWithC * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest labelSelector(String labelSelector) { + public APIdeleteCollectionVolumeAttributesClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -526,7 +551,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest labelSelector(String labe * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest limit(Integer limit) { + public APIdeleteCollectionVolumeAttributesClassRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -536,7 +561,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionVolumeAttributesClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -546,7 +571,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest orphanDependents(Boolean * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionVolumeAttributesClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -556,7 +581,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest propagationPolicy(String * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionVolumeAttributesClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -566,7 +591,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest resourceVersion(String re * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionVolumeAttributesClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -576,7 +601,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest resourceVersionMatch(Stri * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionVolumeAttributesClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -586,7 +611,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest sendInitialEvents(Boolean * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionVolumeAttributesClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -596,7 +621,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest timeoutSeconds(Integer ti * @param body (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest body(V1DeleteOptions body) { + public APIdeleteCollectionVolumeAttributesClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -607,7 +632,8 @@ public APIdeleteCollectionVolumeAttributesClassRequest body(V1DeleteOptions body * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -622,7 +648,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -638,7 +665,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -654,7 +682,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -670,7 +699,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of VolumeAttributesClass * @return APIdeleteCollectionVolumeAttributesClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -679,7 +709,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionVolumeAttributesClassRequest deleteCollectionVolumeAttributesClass() { return new APIdeleteCollectionVolumeAttributesClassRequest(); } - private okhttp3.Call deleteVolumeAttributesClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteVolumeAttributesClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -753,7 +783,7 @@ private okhttp3.Call deleteVolumeAttributesClassCall(String name, String pretty, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteVolumeAttributesClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteVolumeAttributesClass(Async)"); @@ -764,13 +794,13 @@ private okhttp3.Call deleteVolumeAttributesClassValidateBeforeCall(String name, } - private ApiResponse deleteVolumeAttributesClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteVolumeAttributesClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteVolumeAttributesClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteVolumeAttributesClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteVolumeAttributesClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -779,16 +809,24 @@ private okhttp3.Call deleteVolumeAttributesClassAsync(String name, String pretty } public class APIdeleteVolumeAttributesClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteVolumeAttributesClassRequest(String name) { + private APIdeleteVolumeAttributesClassRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -797,7 +835,7 @@ private APIdeleteVolumeAttributesClassRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteVolumeAttributesClassRequest */ - public APIdeleteVolumeAttributesClassRequest pretty(String pretty) { + public APIdeleteVolumeAttributesClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -807,7 +845,7 @@ public APIdeleteVolumeAttributesClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteVolumeAttributesClassRequest */ - public APIdeleteVolumeAttributesClassRequest dryRun(String dryRun) { + public APIdeleteVolumeAttributesClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -817,7 +855,7 @@ public APIdeleteVolumeAttributesClassRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteVolumeAttributesClassRequest */ - public APIdeleteVolumeAttributesClassRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteVolumeAttributesClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -827,7 +865,7 @@ public APIdeleteVolumeAttributesClassRequest gracePeriodSeconds(Integer gracePer * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteVolumeAttributesClassRequest */ - public APIdeleteVolumeAttributesClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteVolumeAttributesClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -837,7 +875,7 @@ public APIdeleteVolumeAttributesClassRequest ignoreStoreReadErrorWithClusterBrea * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteVolumeAttributesClassRequest */ - public APIdeleteVolumeAttributesClassRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteVolumeAttributesClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -847,7 +885,7 @@ public APIdeleteVolumeAttributesClassRequest orphanDependents(Boolean orphanDepe * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteVolumeAttributesClassRequest */ - public APIdeleteVolumeAttributesClassRequest propagationPolicy(String propagationPolicy) { + public APIdeleteVolumeAttributesClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -857,7 +895,7 @@ public APIdeleteVolumeAttributesClassRequest propagationPolicy(String propagatio * @param body (optional) * @return APIdeleteVolumeAttributesClassRequest */ - public APIdeleteVolumeAttributesClassRequest body(V1DeleteOptions body) { + public APIdeleteVolumeAttributesClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -868,7 +906,8 @@ public APIdeleteVolumeAttributesClassRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -884,7 +923,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1VolumeAttributesClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -901,7 +941,8 @@ public V1alpha1VolumeAttributesClass execute() throws ApiException { * @return ApiResponse<V1alpha1VolumeAttributesClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -918,7 +959,8 @@ public ApiResponse executeWithHttpInfo() throws A * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -936,14 +978,15 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteVolumeAttributesClassRequest deleteVolumeAttributesClass(String name) { + public APIdeleteVolumeAttributesClassRequest deleteVolumeAttributesClass(@jakarta.annotation.Nonnull String name) { return new APIdeleteVolumeAttributesClassRequest(name); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -1025,7 +1068,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1040,7 +1084,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1056,7 +1101,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1072,7 +1118,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1088,7 +1135,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1097,7 +1145,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listVolumeAttributesClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listVolumeAttributesClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1192,19 +1240,19 @@ private okhttp3.Call listVolumeAttributesClassCall(String pretty, Boolean allowW } @SuppressWarnings("rawtypes") - private okhttp3.Call listVolumeAttributesClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listVolumeAttributesClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listVolumeAttributesClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listVolumeAttributesClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listVolumeAttributesClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listVolumeAttributesClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listVolumeAttributesClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1213,16 +1261,27 @@ private okhttp3.Call listVolumeAttributesClassAsync(String pretty, Boolean allow } public class APIlistVolumeAttributesClassRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistVolumeAttributesClassRequest() { @@ -1233,7 +1292,7 @@ private APIlistVolumeAttributesClassRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistVolumeAttributesClassRequest */ - public APIlistVolumeAttributesClassRequest pretty(String pretty) { + public APIlistVolumeAttributesClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1243,7 +1302,7 @@ public APIlistVolumeAttributesClassRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistVolumeAttributesClassRequest */ - public APIlistVolumeAttributesClassRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistVolumeAttributesClassRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1253,7 +1312,7 @@ public APIlistVolumeAttributesClassRequest allowWatchBookmarks(Boolean allowWatc * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistVolumeAttributesClassRequest */ - public APIlistVolumeAttributesClassRequest _continue(String _continue) { + public APIlistVolumeAttributesClassRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1263,7 +1322,7 @@ public APIlistVolumeAttributesClassRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistVolumeAttributesClassRequest */ - public APIlistVolumeAttributesClassRequest fieldSelector(String fieldSelector) { + public APIlistVolumeAttributesClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1273,7 +1332,7 @@ public APIlistVolumeAttributesClassRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistVolumeAttributesClassRequest */ - public APIlistVolumeAttributesClassRequest labelSelector(String labelSelector) { + public APIlistVolumeAttributesClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1283,7 +1342,7 @@ public APIlistVolumeAttributesClassRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistVolumeAttributesClassRequest */ - public APIlistVolumeAttributesClassRequest limit(Integer limit) { + public APIlistVolumeAttributesClassRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1293,7 +1352,7 @@ public APIlistVolumeAttributesClassRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistVolumeAttributesClassRequest */ - public APIlistVolumeAttributesClassRequest resourceVersion(String resourceVersion) { + public APIlistVolumeAttributesClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1303,7 +1362,7 @@ public APIlistVolumeAttributesClassRequest resourceVersion(String resourceVersio * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistVolumeAttributesClassRequest */ - public APIlistVolumeAttributesClassRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistVolumeAttributesClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1313,7 +1372,7 @@ public APIlistVolumeAttributesClassRequest resourceVersionMatch(String resourceV * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistVolumeAttributesClassRequest */ - public APIlistVolumeAttributesClassRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistVolumeAttributesClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1323,7 +1382,7 @@ public APIlistVolumeAttributesClassRequest sendInitialEvents(Boolean sendInitial * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistVolumeAttributesClassRequest */ - public APIlistVolumeAttributesClassRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistVolumeAttributesClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1333,7 +1392,7 @@ public APIlistVolumeAttributesClassRequest timeoutSeconds(Integer timeoutSeconds * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistVolumeAttributesClassRequest */ - public APIlistVolumeAttributesClassRequest watch(Boolean watch) { + public APIlistVolumeAttributesClassRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1344,7 +1403,8 @@ public APIlistVolumeAttributesClassRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1359,7 +1419,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1VolumeAttributesClassList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1375,7 +1436,8 @@ public V1alpha1VolumeAttributesClassList execute() throws ApiException { * @return ApiResponse<V1alpha1VolumeAttributesClassList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1391,7 +1453,8 @@ public ApiResponse executeWithHttpInfo() thro * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1407,7 +1470,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -1416,7 +1480,7 @@ public okhttp3.Call executeAsync(final ApiCallback patchVolumeAttributesClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchVolumeAttributesClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchVolumeAttributesClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchVolumeAttributesClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchVolumeAttributesClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1517,15 +1581,22 @@ private okhttp3.Call patchVolumeAttributesClassAsync(String name, V1Patch body, } public class APIpatchVolumeAttributesClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchVolumeAttributesClassRequest(String name, V1Patch body) { + private APIpatchVolumeAttributesClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -1535,7 +1606,7 @@ private APIpatchVolumeAttributesClassRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchVolumeAttributesClassRequest */ - public APIpatchVolumeAttributesClassRequest pretty(String pretty) { + public APIpatchVolumeAttributesClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1545,7 +1616,7 @@ public APIpatchVolumeAttributesClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchVolumeAttributesClassRequest */ - public APIpatchVolumeAttributesClassRequest dryRun(String dryRun) { + public APIpatchVolumeAttributesClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1555,7 +1626,7 @@ public APIpatchVolumeAttributesClassRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchVolumeAttributesClassRequest */ - public APIpatchVolumeAttributesClassRequest fieldManager(String fieldManager) { + public APIpatchVolumeAttributesClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1565,7 +1636,7 @@ public APIpatchVolumeAttributesClassRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchVolumeAttributesClassRequest */ - public APIpatchVolumeAttributesClassRequest fieldValidation(String fieldValidation) { + public APIpatchVolumeAttributesClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1575,7 +1646,7 @@ public APIpatchVolumeAttributesClassRequest fieldValidation(String fieldValidati * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchVolumeAttributesClassRequest */ - public APIpatchVolumeAttributesClassRequest force(Boolean force) { + public APIpatchVolumeAttributesClassRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1586,7 +1657,8 @@ public APIpatchVolumeAttributesClassRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1602,7 +1674,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1VolumeAttributesClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1619,7 +1692,8 @@ public V1alpha1VolumeAttributesClass execute() throws ApiException { * @return ApiResponse<V1alpha1VolumeAttributesClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1636,7 +1710,8 @@ public ApiResponse executeWithHttpInfo() throws A * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1655,17 +1730,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchVolumeAttributesClassRequest patchVolumeAttributesClass(String name, V1Patch body) { + public APIpatchVolumeAttributesClassRequest patchVolumeAttributesClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchVolumeAttributesClassRequest(name, body); } - private okhttp3.Call readVolumeAttributesClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readVolumeAttributesClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1718,7 +1794,7 @@ private okhttp3.Call readVolumeAttributesClassCall(String name, String pretty, f } @SuppressWarnings("rawtypes") - private okhttp3.Call readVolumeAttributesClassValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readVolumeAttributesClass(Async)"); @@ -1729,13 +1805,13 @@ private okhttp3.Call readVolumeAttributesClassValidateBeforeCall(String name, St } - private ApiResponse readVolumeAttributesClassWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readVolumeAttributesClassValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readVolumeAttributesClassAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readVolumeAttributesClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readVolumeAttributesClassValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1744,10 +1820,12 @@ private okhttp3.Call readVolumeAttributesClassAsync(String name, String pretty, } public class APIreadVolumeAttributesClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadVolumeAttributesClassRequest(String name) { + private APIreadVolumeAttributesClassRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -1756,7 +1834,7 @@ private APIreadVolumeAttributesClassRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadVolumeAttributesClassRequest */ - public APIreadVolumeAttributesClassRequest pretty(String pretty) { + public APIreadVolumeAttributesClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1767,7 +1845,8 @@ public APIreadVolumeAttributesClassRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1782,7 +1861,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1VolumeAttributesClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1798,7 +1878,8 @@ public V1alpha1VolumeAttributesClass execute() throws ApiException { * @return ApiResponse<V1alpha1VolumeAttributesClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1814,7 +1895,8 @@ public ApiResponse executeWithHttpInfo() throws A * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1831,16 +1913,17 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadVolumeAttributesClassRequest readVolumeAttributesClass(String name) { + public APIreadVolumeAttributesClassRequest readVolumeAttributesClass(@jakarta.annotation.Nonnull String name) { return new APIreadVolumeAttributesClassRequest(name); } - private okhttp3.Call replaceVolumeAttributesClassCall(String name, V1alpha1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceVolumeAttributesClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1VolumeAttributesClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1906,7 +1989,7 @@ private okhttp3.Call replaceVolumeAttributesClassCall(String name, V1alpha1Volum } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceVolumeAttributesClassValidateBeforeCall(String name, V1alpha1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1VolumeAttributesClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceVolumeAttributesClass(Async)"); @@ -1922,13 +2005,13 @@ private okhttp3.Call replaceVolumeAttributesClassValidateBeforeCall(String name, } - private ApiResponse replaceVolumeAttributesClassWithHttpInfo(String name, V1alpha1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1VolumeAttributesClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceVolumeAttributesClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceVolumeAttributesClassAsync(String name, V1alpha1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceVolumeAttributesClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1VolumeAttributesClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceVolumeAttributesClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1937,14 +2020,20 @@ private okhttp3.Call replaceVolumeAttributesClassAsync(String name, V1alpha1Volu } public class APIreplaceVolumeAttributesClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1alpha1VolumeAttributesClass body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceVolumeAttributesClassRequest(String name, V1alpha1VolumeAttributesClass body) { + private APIreplaceVolumeAttributesClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1VolumeAttributesClass body) { this.name = name; this.body = body; } @@ -1954,7 +2043,7 @@ private APIreplaceVolumeAttributesClassRequest(String name, V1alpha1VolumeAttrib * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceVolumeAttributesClassRequest */ - public APIreplaceVolumeAttributesClassRequest pretty(String pretty) { + public APIreplaceVolumeAttributesClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1964,7 +2053,7 @@ public APIreplaceVolumeAttributesClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceVolumeAttributesClassRequest */ - public APIreplaceVolumeAttributesClassRequest dryRun(String dryRun) { + public APIreplaceVolumeAttributesClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1974,7 +2063,7 @@ public APIreplaceVolumeAttributesClassRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceVolumeAttributesClassRequest */ - public APIreplaceVolumeAttributesClassRequest fieldManager(String fieldManager) { + public APIreplaceVolumeAttributesClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1984,7 +2073,7 @@ public APIreplaceVolumeAttributesClassRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceVolumeAttributesClassRequest */ - public APIreplaceVolumeAttributesClassRequest fieldValidation(String fieldValidation) { + public APIreplaceVolumeAttributesClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1995,7 +2084,8 @@ public APIreplaceVolumeAttributesClassRequest fieldValidation(String fieldValida * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2011,7 +2101,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1VolumeAttributesClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2028,7 +2119,8 @@ public V1alpha1VolumeAttributesClass execute() throws ApiException { * @return ApiResponse<V1alpha1VolumeAttributesClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2045,7 +2137,8 @@ public ApiResponse executeWithHttpInfo() throws A * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2064,14 +2157,15 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceVolumeAttributesClassRequest replaceVolumeAttributesClass(String name, V1alpha1VolumeAttributesClass body) { + public APIreplaceVolumeAttributesClassRequest replaceVolumeAttributesClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1VolumeAttributesClass body) { return new APIreplaceVolumeAttributesClassRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1beta1Api.java index aef34080f0..d269f4dfea 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1beta1Api.java @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createVolumeAttributesClassCall(V1beta1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createVolumeAttributesClassCall(@jakarta.annotation.Nonnull V1beta1VolumeAttributesClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -141,7 +141,7 @@ private okhttp3.Call createVolumeAttributesClassCall(V1beta1VolumeAttributesClas } @SuppressWarnings("rawtypes") - private okhttp3.Call createVolumeAttributesClassValidateBeforeCall(V1beta1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nonnull V1beta1VolumeAttributesClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createVolumeAttributesClass(Async)"); @@ -152,13 +152,13 @@ private okhttp3.Call createVolumeAttributesClassValidateBeforeCall(V1beta1Volume } - private ApiResponse createVolumeAttributesClassWithHttpInfo(V1beta1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nonnull V1beta1VolumeAttributesClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createVolumeAttributesClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createVolumeAttributesClassAsync(V1beta1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createVolumeAttributesClassAsync(@jakarta.annotation.Nonnull V1beta1VolumeAttributesClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createVolumeAttributesClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -167,13 +167,18 @@ private okhttp3.Call createVolumeAttributesClassAsync(V1beta1VolumeAttributesCla } public class APIcreateVolumeAttributesClassRequest { + @jakarta.annotation.Nonnull private final V1beta1VolumeAttributesClass body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateVolumeAttributesClassRequest(V1beta1VolumeAttributesClass body) { + private APIcreateVolumeAttributesClassRequest(@jakarta.annotation.Nonnull V1beta1VolumeAttributesClass body) { this.body = body; } @@ -182,7 +187,7 @@ private APIcreateVolumeAttributesClassRequest(V1beta1VolumeAttributesClass body) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateVolumeAttributesClassRequest */ - public APIcreateVolumeAttributesClassRequest pretty(String pretty) { + public APIcreateVolumeAttributesClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -192,7 +197,7 @@ public APIcreateVolumeAttributesClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateVolumeAttributesClassRequest */ - public APIcreateVolumeAttributesClassRequest dryRun(String dryRun) { + public APIcreateVolumeAttributesClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -202,7 +207,7 @@ public APIcreateVolumeAttributesClassRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateVolumeAttributesClassRequest */ - public APIcreateVolumeAttributesClassRequest fieldManager(String fieldManager) { + public APIcreateVolumeAttributesClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -212,7 +217,7 @@ public APIcreateVolumeAttributesClassRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateVolumeAttributesClassRequest */ - public APIcreateVolumeAttributesClassRequest fieldValidation(String fieldValidation) { + public APIcreateVolumeAttributesClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -223,7 +228,8 @@ public APIcreateVolumeAttributesClassRequest fieldValidation(String fieldValidat * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -240,7 +246,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1VolumeAttributesClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -258,7 +265,8 @@ public V1beta1VolumeAttributesClass execute() throws ApiException { * @return ApiResponse<V1beta1VolumeAttributesClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -276,7 +284,8 @@ public ApiResponse executeWithHttpInfo() throws Ap * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -295,7 +304,8 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIcreateVolumeAttributesClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -303,10 +313,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateVolumeAttributesClassRequest createVolumeAttributesClass(V1beta1VolumeAttributesClass body) { + public APIcreateVolumeAttributesClassRequest createVolumeAttributesClass(@jakarta.annotation.Nonnull V1beta1VolumeAttributesClass body) { return new APIcreateVolumeAttributesClassRequest(body); } - private okhttp3.Call deleteCollectionVolumeAttributesClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionVolumeAttributesClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -411,19 +421,19 @@ private okhttp3.Call deleteCollectionVolumeAttributesClassCall(String pretty, St } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionVolumeAttributesClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionVolumeAttributesClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionVolumeAttributesClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionVolumeAttributesClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionVolumeAttributesClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionVolumeAttributesClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionVolumeAttributesClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -432,20 +442,35 @@ private okhttp3.Call deleteCollectionVolumeAttributesClassAsync(String pretty, S } public class APIdeleteCollectionVolumeAttributesClassRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionVolumeAttributesClassRequest() { @@ -456,7 +481,7 @@ private APIdeleteCollectionVolumeAttributesClassRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest pretty(String pretty) { + public APIdeleteCollectionVolumeAttributesClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -466,7 +491,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest _continue(String _continue) { + public APIdeleteCollectionVolumeAttributesClassRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -476,7 +501,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest _continue(String _continu * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest dryRun(String dryRun) { + public APIdeleteCollectionVolumeAttributesClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -486,7 +511,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionVolumeAttributesClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -496,7 +521,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest fieldSelector(String fiel * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionVolumeAttributesClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -506,7 +531,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest gracePeriodSeconds(Intege * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionVolumeAttributesClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -516,7 +541,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest ignoreStoreReadErrorWithC * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest labelSelector(String labelSelector) { + public APIdeleteCollectionVolumeAttributesClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -526,7 +551,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest labelSelector(String labe * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest limit(Integer limit) { + public APIdeleteCollectionVolumeAttributesClassRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -536,7 +561,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionVolumeAttributesClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -546,7 +571,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest orphanDependents(Boolean * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionVolumeAttributesClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -556,7 +581,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest propagationPolicy(String * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionVolumeAttributesClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -566,7 +591,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest resourceVersion(String re * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionVolumeAttributesClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -576,7 +601,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest resourceVersionMatch(Stri * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionVolumeAttributesClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -586,7 +611,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest sendInitialEvents(Boolean * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionVolumeAttributesClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -596,7 +621,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest timeoutSeconds(Integer ti * @param body (optional) * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteCollectionVolumeAttributesClassRequest body(V1DeleteOptions body) { + public APIdeleteCollectionVolumeAttributesClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -607,7 +632,8 @@ public APIdeleteCollectionVolumeAttributesClassRequest body(V1DeleteOptions body * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -622,7 +648,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -638,7 +665,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -654,7 +682,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -670,7 +699,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of VolumeAttributesClass * @return APIdeleteCollectionVolumeAttributesClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -679,7 +709,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionVolumeAttributesClassRequest deleteCollectionVolumeAttributesClass() { return new APIdeleteCollectionVolumeAttributesClassRequest(); } - private okhttp3.Call deleteVolumeAttributesClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteVolumeAttributesClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -753,7 +783,7 @@ private okhttp3.Call deleteVolumeAttributesClassCall(String name, String pretty, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteVolumeAttributesClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteVolumeAttributesClass(Async)"); @@ -764,13 +794,13 @@ private okhttp3.Call deleteVolumeAttributesClassValidateBeforeCall(String name, } - private ApiResponse deleteVolumeAttributesClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteVolumeAttributesClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteVolumeAttributesClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteVolumeAttributesClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteVolumeAttributesClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -779,16 +809,24 @@ private okhttp3.Call deleteVolumeAttributesClassAsync(String name, String pretty } public class APIdeleteVolumeAttributesClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteVolumeAttributesClassRequest(String name) { + private APIdeleteVolumeAttributesClassRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -797,7 +835,7 @@ private APIdeleteVolumeAttributesClassRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteVolumeAttributesClassRequest */ - public APIdeleteVolumeAttributesClassRequest pretty(String pretty) { + public APIdeleteVolumeAttributesClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -807,7 +845,7 @@ public APIdeleteVolumeAttributesClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteVolumeAttributesClassRequest */ - public APIdeleteVolumeAttributesClassRequest dryRun(String dryRun) { + public APIdeleteVolumeAttributesClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -817,7 +855,7 @@ public APIdeleteVolumeAttributesClassRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteVolumeAttributesClassRequest */ - public APIdeleteVolumeAttributesClassRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteVolumeAttributesClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -827,7 +865,7 @@ public APIdeleteVolumeAttributesClassRequest gracePeriodSeconds(Integer gracePer * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteVolumeAttributesClassRequest */ - public APIdeleteVolumeAttributesClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteVolumeAttributesClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -837,7 +875,7 @@ public APIdeleteVolumeAttributesClassRequest ignoreStoreReadErrorWithClusterBrea * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteVolumeAttributesClassRequest */ - public APIdeleteVolumeAttributesClassRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteVolumeAttributesClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -847,7 +885,7 @@ public APIdeleteVolumeAttributesClassRequest orphanDependents(Boolean orphanDepe * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteVolumeAttributesClassRequest */ - public APIdeleteVolumeAttributesClassRequest propagationPolicy(String propagationPolicy) { + public APIdeleteVolumeAttributesClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -857,7 +895,7 @@ public APIdeleteVolumeAttributesClassRequest propagationPolicy(String propagatio * @param body (optional) * @return APIdeleteVolumeAttributesClassRequest */ - public APIdeleteVolumeAttributesClassRequest body(V1DeleteOptions body) { + public APIdeleteVolumeAttributesClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -868,7 +906,8 @@ public APIdeleteVolumeAttributesClassRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -884,7 +923,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1VolumeAttributesClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -901,7 +941,8 @@ public V1beta1VolumeAttributesClass execute() throws ApiException { * @return ApiResponse<V1beta1VolumeAttributesClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -918,7 +959,8 @@ public ApiResponse executeWithHttpInfo() throws Ap * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -936,14 +978,15 @@ public okhttp3.Call executeAsync(final ApiCallback * @param name name of the VolumeAttributesClass (required) * @return APIdeleteVolumeAttributesClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteVolumeAttributesClassRequest deleteVolumeAttributesClass(String name) { + public APIdeleteVolumeAttributesClassRequest deleteVolumeAttributesClass(@jakarta.annotation.Nonnull String name) { return new APIdeleteVolumeAttributesClassRequest(name); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -1025,7 +1068,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1040,7 +1084,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1056,7 +1101,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1072,7 +1118,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1088,7 +1135,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1097,7 +1145,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listVolumeAttributesClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listVolumeAttributesClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1192,19 +1240,19 @@ private okhttp3.Call listVolumeAttributesClassCall(String pretty, Boolean allowW } @SuppressWarnings("rawtypes") - private okhttp3.Call listVolumeAttributesClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listVolumeAttributesClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listVolumeAttributesClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listVolumeAttributesClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listVolumeAttributesClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listVolumeAttributesClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listVolumeAttributesClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1213,16 +1261,27 @@ private okhttp3.Call listVolumeAttributesClassAsync(String pretty, Boolean allow } public class APIlistVolumeAttributesClassRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistVolumeAttributesClassRequest() { @@ -1233,7 +1292,7 @@ private APIlistVolumeAttributesClassRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistVolumeAttributesClassRequest */ - public APIlistVolumeAttributesClassRequest pretty(String pretty) { + public APIlistVolumeAttributesClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1243,7 +1302,7 @@ public APIlistVolumeAttributesClassRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistVolumeAttributesClassRequest */ - public APIlistVolumeAttributesClassRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistVolumeAttributesClassRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1253,7 +1312,7 @@ public APIlistVolumeAttributesClassRequest allowWatchBookmarks(Boolean allowWatc * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistVolumeAttributesClassRequest */ - public APIlistVolumeAttributesClassRequest _continue(String _continue) { + public APIlistVolumeAttributesClassRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1263,7 +1322,7 @@ public APIlistVolumeAttributesClassRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistVolumeAttributesClassRequest */ - public APIlistVolumeAttributesClassRequest fieldSelector(String fieldSelector) { + public APIlistVolumeAttributesClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1273,7 +1332,7 @@ public APIlistVolumeAttributesClassRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistVolumeAttributesClassRequest */ - public APIlistVolumeAttributesClassRequest labelSelector(String labelSelector) { + public APIlistVolumeAttributesClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1283,7 +1342,7 @@ public APIlistVolumeAttributesClassRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistVolumeAttributesClassRequest */ - public APIlistVolumeAttributesClassRequest limit(Integer limit) { + public APIlistVolumeAttributesClassRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1293,7 +1352,7 @@ public APIlistVolumeAttributesClassRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistVolumeAttributesClassRequest */ - public APIlistVolumeAttributesClassRequest resourceVersion(String resourceVersion) { + public APIlistVolumeAttributesClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1303,7 +1362,7 @@ public APIlistVolumeAttributesClassRequest resourceVersion(String resourceVersio * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistVolumeAttributesClassRequest */ - public APIlistVolumeAttributesClassRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistVolumeAttributesClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1313,7 +1372,7 @@ public APIlistVolumeAttributesClassRequest resourceVersionMatch(String resourceV * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistVolumeAttributesClassRequest */ - public APIlistVolumeAttributesClassRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistVolumeAttributesClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1323,7 +1382,7 @@ public APIlistVolumeAttributesClassRequest sendInitialEvents(Boolean sendInitial * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistVolumeAttributesClassRequest */ - public APIlistVolumeAttributesClassRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistVolumeAttributesClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1333,7 +1392,7 @@ public APIlistVolumeAttributesClassRequest timeoutSeconds(Integer timeoutSeconds * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistVolumeAttributesClassRequest */ - public APIlistVolumeAttributesClassRequest watch(Boolean watch) { + public APIlistVolumeAttributesClassRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1344,7 +1403,8 @@ public APIlistVolumeAttributesClassRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1359,7 +1419,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1VolumeAttributesClassList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1375,7 +1436,8 @@ public V1beta1VolumeAttributesClassList execute() throws ApiException { * @return ApiResponse<V1beta1VolumeAttributesClassList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1391,7 +1453,8 @@ public ApiResponse executeWithHttpInfo() throw * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1407,7 +1470,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -1416,7 +1480,7 @@ public okhttp3.Call executeAsync(final ApiCallback patchVolumeAttributesClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchVolumeAttributesClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchVolumeAttributesClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchVolumeAttributesClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchVolumeAttributesClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1517,15 +1581,22 @@ private okhttp3.Call patchVolumeAttributesClassAsync(String name, V1Patch body, } public class APIpatchVolumeAttributesClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchVolumeAttributesClassRequest(String name, V1Patch body) { + private APIpatchVolumeAttributesClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -1535,7 +1606,7 @@ private APIpatchVolumeAttributesClassRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchVolumeAttributesClassRequest */ - public APIpatchVolumeAttributesClassRequest pretty(String pretty) { + public APIpatchVolumeAttributesClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1545,7 +1616,7 @@ public APIpatchVolumeAttributesClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchVolumeAttributesClassRequest */ - public APIpatchVolumeAttributesClassRequest dryRun(String dryRun) { + public APIpatchVolumeAttributesClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1555,7 +1626,7 @@ public APIpatchVolumeAttributesClassRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchVolumeAttributesClassRequest */ - public APIpatchVolumeAttributesClassRequest fieldManager(String fieldManager) { + public APIpatchVolumeAttributesClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1565,7 +1636,7 @@ public APIpatchVolumeAttributesClassRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchVolumeAttributesClassRequest */ - public APIpatchVolumeAttributesClassRequest fieldValidation(String fieldValidation) { + public APIpatchVolumeAttributesClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1575,7 +1646,7 @@ public APIpatchVolumeAttributesClassRequest fieldValidation(String fieldValidati * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchVolumeAttributesClassRequest */ - public APIpatchVolumeAttributesClassRequest force(Boolean force) { + public APIpatchVolumeAttributesClassRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1586,7 +1657,8 @@ public APIpatchVolumeAttributesClassRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1602,7 +1674,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1VolumeAttributesClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1619,7 +1692,8 @@ public V1beta1VolumeAttributesClass execute() throws ApiException { * @return ApiResponse<V1beta1VolumeAttributesClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1636,7 +1710,8 @@ public ApiResponse executeWithHttpInfo() throws Ap * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1655,17 +1730,18 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIpatchVolumeAttributesClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchVolumeAttributesClassRequest patchVolumeAttributesClass(String name, V1Patch body) { + public APIpatchVolumeAttributesClassRequest patchVolumeAttributesClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchVolumeAttributesClassRequest(name, body); } - private okhttp3.Call readVolumeAttributesClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readVolumeAttributesClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1718,7 +1794,7 @@ private okhttp3.Call readVolumeAttributesClassCall(String name, String pretty, f } @SuppressWarnings("rawtypes") - private okhttp3.Call readVolumeAttributesClassValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readVolumeAttributesClass(Async)"); @@ -1729,13 +1805,13 @@ private okhttp3.Call readVolumeAttributesClassValidateBeforeCall(String name, St } - private ApiResponse readVolumeAttributesClassWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readVolumeAttributesClassValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readVolumeAttributesClassAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readVolumeAttributesClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readVolumeAttributesClassValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1744,10 +1820,12 @@ private okhttp3.Call readVolumeAttributesClassAsync(String name, String pretty, } public class APIreadVolumeAttributesClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadVolumeAttributesClassRequest(String name) { + private APIreadVolumeAttributesClassRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -1756,7 +1834,7 @@ private APIreadVolumeAttributesClassRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadVolumeAttributesClassRequest */ - public APIreadVolumeAttributesClassRequest pretty(String pretty) { + public APIreadVolumeAttributesClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1767,7 +1845,8 @@ public APIreadVolumeAttributesClassRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1782,7 +1861,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1VolumeAttributesClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1798,7 +1878,8 @@ public V1beta1VolumeAttributesClass execute() throws ApiException { * @return ApiResponse<V1beta1VolumeAttributesClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1814,7 +1895,8 @@ public ApiResponse executeWithHttpInfo() throws Ap * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1831,16 +1913,17 @@ public okhttp3.Call executeAsync(final ApiCallback * @param name name of the VolumeAttributesClass (required) * @return APIreadVolumeAttributesClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadVolumeAttributesClassRequest readVolumeAttributesClass(String name) { + public APIreadVolumeAttributesClassRequest readVolumeAttributesClass(@jakarta.annotation.Nonnull String name) { return new APIreadVolumeAttributesClassRequest(name); } - private okhttp3.Call replaceVolumeAttributesClassCall(String name, V1beta1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceVolumeAttributesClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1VolumeAttributesClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1906,7 +1989,7 @@ private okhttp3.Call replaceVolumeAttributesClassCall(String name, V1beta1Volume } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceVolumeAttributesClassValidateBeforeCall(String name, V1beta1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1VolumeAttributesClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceVolumeAttributesClass(Async)"); @@ -1922,13 +2005,13 @@ private okhttp3.Call replaceVolumeAttributesClassValidateBeforeCall(String name, } - private ApiResponse replaceVolumeAttributesClassWithHttpInfo(String name, V1beta1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1VolumeAttributesClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceVolumeAttributesClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceVolumeAttributesClassAsync(String name, V1beta1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceVolumeAttributesClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1VolumeAttributesClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceVolumeAttributesClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1937,14 +2020,20 @@ private okhttp3.Call replaceVolumeAttributesClassAsync(String name, V1beta1Volum } public class APIreplaceVolumeAttributesClassRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1beta1VolumeAttributesClass body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceVolumeAttributesClassRequest(String name, V1beta1VolumeAttributesClass body) { + private APIreplaceVolumeAttributesClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1VolumeAttributesClass body) { this.name = name; this.body = body; } @@ -1954,7 +2043,7 @@ private APIreplaceVolumeAttributesClassRequest(String name, V1beta1VolumeAttribu * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceVolumeAttributesClassRequest */ - public APIreplaceVolumeAttributesClassRequest pretty(String pretty) { + public APIreplaceVolumeAttributesClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1964,7 +2053,7 @@ public APIreplaceVolumeAttributesClassRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceVolumeAttributesClassRequest */ - public APIreplaceVolumeAttributesClassRequest dryRun(String dryRun) { + public APIreplaceVolumeAttributesClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1974,7 +2063,7 @@ public APIreplaceVolumeAttributesClassRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceVolumeAttributesClassRequest */ - public APIreplaceVolumeAttributesClassRequest fieldManager(String fieldManager) { + public APIreplaceVolumeAttributesClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1984,7 +2073,7 @@ public APIreplaceVolumeAttributesClassRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceVolumeAttributesClassRequest */ - public APIreplaceVolumeAttributesClassRequest fieldValidation(String fieldValidation) { + public APIreplaceVolumeAttributesClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1995,7 +2084,8 @@ public APIreplaceVolumeAttributesClassRequest fieldValidation(String fieldValida * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2011,7 +2101,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1beta1VolumeAttributesClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2028,7 +2119,8 @@ public V1beta1VolumeAttributesClass execute() throws ApiException { * @return ApiResponse<V1beta1VolumeAttributesClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2045,7 +2137,8 @@ public ApiResponse executeWithHttpInfo() throws Ap * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2064,14 +2157,15 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIreplaceVolumeAttributesClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceVolumeAttributesClassRequest replaceVolumeAttributesClass(String name, V1beta1VolumeAttributesClass body) { + public APIreplaceVolumeAttributesClassRequest replaceVolumeAttributesClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1VolumeAttributesClass body) { return new APIreplaceVolumeAttributesClassRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationApi.java index 835a5ccb32..0d1bce2f93 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationApi.java @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1alpha1Api.java index ed6e40c5e5..f0fdf9bceb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1alpha1Api.java @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createStorageVersionMigrationCall(V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createStorageVersionMigrationCall(@jakarta.annotation.Nonnull V1alpha1StorageVersionMigration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -141,7 +141,7 @@ private okhttp3.Call createStorageVersionMigrationCall(V1alpha1StorageVersionMig } @SuppressWarnings("rawtypes") - private okhttp3.Call createStorageVersionMigrationValidateBeforeCall(V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createStorageVersionMigrationValidateBeforeCall(@jakarta.annotation.Nonnull V1alpha1StorageVersionMigration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createStorageVersionMigration(Async)"); @@ -152,13 +152,13 @@ private okhttp3.Call createStorageVersionMigrationValidateBeforeCall(V1alpha1Sto } - private ApiResponse createStorageVersionMigrationWithHttpInfo(V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createStorageVersionMigrationWithHttpInfo(@jakarta.annotation.Nonnull V1alpha1StorageVersionMigration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createStorageVersionMigrationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createStorageVersionMigrationAsync(V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createStorageVersionMigrationAsync(@jakarta.annotation.Nonnull V1alpha1StorageVersionMigration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createStorageVersionMigrationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -167,13 +167,18 @@ private okhttp3.Call createStorageVersionMigrationAsync(V1alpha1StorageVersionMi } public class APIcreateStorageVersionMigrationRequest { + @jakarta.annotation.Nonnull private final V1alpha1StorageVersionMigration body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateStorageVersionMigrationRequest(V1alpha1StorageVersionMigration body) { + private APIcreateStorageVersionMigrationRequest(@jakarta.annotation.Nonnull V1alpha1StorageVersionMigration body) { this.body = body; } @@ -182,7 +187,7 @@ private APIcreateStorageVersionMigrationRequest(V1alpha1StorageVersionMigration * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateStorageVersionMigrationRequest */ - public APIcreateStorageVersionMigrationRequest pretty(String pretty) { + public APIcreateStorageVersionMigrationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -192,7 +197,7 @@ public APIcreateStorageVersionMigrationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateStorageVersionMigrationRequest */ - public APIcreateStorageVersionMigrationRequest dryRun(String dryRun) { + public APIcreateStorageVersionMigrationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -202,7 +207,7 @@ public APIcreateStorageVersionMigrationRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateStorageVersionMigrationRequest */ - public APIcreateStorageVersionMigrationRequest fieldManager(String fieldManager) { + public APIcreateStorageVersionMigrationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -212,7 +217,7 @@ public APIcreateStorageVersionMigrationRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateStorageVersionMigrationRequest */ - public APIcreateStorageVersionMigrationRequest fieldValidation(String fieldValidation) { + public APIcreateStorageVersionMigrationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -223,7 +228,8 @@ public APIcreateStorageVersionMigrationRequest fieldValidation(String fieldValid * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -240,7 +246,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1StorageVersionMigration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -258,7 +265,8 @@ public V1alpha1StorageVersionMigration execute() throws ApiException { * @return ApiResponse<V1alpha1StorageVersionMigration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -276,7 +284,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -295,7 +304,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+ @@ -303,10 +313,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateStorageVersionMigrationRequest createStorageVersionMigration(V1alpha1StorageVersionMigration body) { + public APIcreateStorageVersionMigrationRequest createStorageVersionMigration(@jakarta.annotation.Nonnull V1alpha1StorageVersionMigration body) { return new APIcreateStorageVersionMigrationRequest(body); } - private okhttp3.Call deleteCollectionStorageVersionMigrationCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionStorageVersionMigrationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -411,19 +421,19 @@ private okhttp3.Call deleteCollectionStorageVersionMigrationCall(String pretty, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionStorageVersionMigrationValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionStorageVersionMigrationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionStorageVersionMigrationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionStorageVersionMigrationWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteCollectionStorageVersionMigrationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionStorageVersionMigrationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionStorageVersionMigrationAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionStorageVersionMigrationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionStorageVersionMigrationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -432,20 +442,35 @@ private okhttp3.Call deleteCollectionStorageVersionMigrationAsync(String pretty, } public class APIdeleteCollectionStorageVersionMigrationRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionStorageVersionMigrationRequest() { @@ -456,7 +481,7 @@ private APIdeleteCollectionStorageVersionMigrationRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionStorageVersionMigrationRequest */ - public APIdeleteCollectionStorageVersionMigrationRequest pretty(String pretty) { + public APIdeleteCollectionStorageVersionMigrationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -466,7 +491,7 @@ public APIdeleteCollectionStorageVersionMigrationRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionStorageVersionMigrationRequest */ - public APIdeleteCollectionStorageVersionMigrationRequest _continue(String _continue) { + public APIdeleteCollectionStorageVersionMigrationRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -476,7 +501,7 @@ public APIdeleteCollectionStorageVersionMigrationRequest _continue(String _conti * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionStorageVersionMigrationRequest */ - public APIdeleteCollectionStorageVersionMigrationRequest dryRun(String dryRun) { + public APIdeleteCollectionStorageVersionMigrationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -486,7 +511,7 @@ public APIdeleteCollectionStorageVersionMigrationRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionStorageVersionMigrationRequest */ - public APIdeleteCollectionStorageVersionMigrationRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionStorageVersionMigrationRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -496,7 +521,7 @@ public APIdeleteCollectionStorageVersionMigrationRequest fieldSelector(String fi * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionStorageVersionMigrationRequest */ - public APIdeleteCollectionStorageVersionMigrationRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionStorageVersionMigrationRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -506,7 +531,7 @@ public APIdeleteCollectionStorageVersionMigrationRequest gracePeriodSeconds(Inte * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteCollectionStorageVersionMigrationRequest */ - public APIdeleteCollectionStorageVersionMigrationRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionStorageVersionMigrationRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -516,7 +541,7 @@ public APIdeleteCollectionStorageVersionMigrationRequest ignoreStoreReadErrorWit * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionStorageVersionMigrationRequest */ - public APIdeleteCollectionStorageVersionMigrationRequest labelSelector(String labelSelector) { + public APIdeleteCollectionStorageVersionMigrationRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -526,7 +551,7 @@ public APIdeleteCollectionStorageVersionMigrationRequest labelSelector(String la * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionStorageVersionMigrationRequest */ - public APIdeleteCollectionStorageVersionMigrationRequest limit(Integer limit) { + public APIdeleteCollectionStorageVersionMigrationRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -536,7 +561,7 @@ public APIdeleteCollectionStorageVersionMigrationRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionStorageVersionMigrationRequest */ - public APIdeleteCollectionStorageVersionMigrationRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionStorageVersionMigrationRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -546,7 +571,7 @@ public APIdeleteCollectionStorageVersionMigrationRequest orphanDependents(Boolea * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionStorageVersionMigrationRequest */ - public APIdeleteCollectionStorageVersionMigrationRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionStorageVersionMigrationRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -556,7 +581,7 @@ public APIdeleteCollectionStorageVersionMigrationRequest propagationPolicy(Strin * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionStorageVersionMigrationRequest */ - public APIdeleteCollectionStorageVersionMigrationRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionStorageVersionMigrationRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -566,7 +591,7 @@ public APIdeleteCollectionStorageVersionMigrationRequest resourceVersion(String * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionStorageVersionMigrationRequest */ - public APIdeleteCollectionStorageVersionMigrationRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionStorageVersionMigrationRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -576,7 +601,7 @@ public APIdeleteCollectionStorageVersionMigrationRequest resourceVersionMatch(St * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionStorageVersionMigrationRequest */ - public APIdeleteCollectionStorageVersionMigrationRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionStorageVersionMigrationRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -586,7 +611,7 @@ public APIdeleteCollectionStorageVersionMigrationRequest sendInitialEvents(Boole * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionStorageVersionMigrationRequest */ - public APIdeleteCollectionStorageVersionMigrationRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionStorageVersionMigrationRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -596,7 +621,7 @@ public APIdeleteCollectionStorageVersionMigrationRequest timeoutSeconds(Integer * @param body (optional) * @return APIdeleteCollectionStorageVersionMigrationRequest */ - public APIdeleteCollectionStorageVersionMigrationRequest body(V1DeleteOptions body) { + public APIdeleteCollectionStorageVersionMigrationRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -607,7 +632,8 @@ public APIdeleteCollectionStorageVersionMigrationRequest body(V1DeleteOptions bo * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -622,7 +648,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -638,7 +665,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -654,7 +682,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -670,7 +699,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of StorageVersionMigration * @return APIdeleteCollectionStorageVersionMigrationRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -679,7 +709,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionStorageVersionMigrationRequest deleteCollectionStorageVersionMigration() { return new APIdeleteCollectionStorageVersionMigrationRequest(); } - private okhttp3.Call deleteStorageVersionMigrationCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteStorageVersionMigrationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -753,7 +783,7 @@ private okhttp3.Call deleteStorageVersionMigrationCall(String name, String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteStorageVersionMigrationValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteStorageVersionMigrationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteStorageVersionMigration(Async)"); @@ -764,13 +794,13 @@ private okhttp3.Call deleteStorageVersionMigrationValidateBeforeCall(String name } - private ApiResponse deleteStorageVersionMigrationWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + private ApiResponse deleteStorageVersionMigrationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteStorageVersionMigrationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteStorageVersionMigrationAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteStorageVersionMigrationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteStorageVersionMigrationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -779,16 +809,24 @@ private okhttp3.Call deleteStorageVersionMigrationAsync(String name, String pret } public class APIdeleteStorageVersionMigrationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteStorageVersionMigrationRequest(String name) { + private APIdeleteStorageVersionMigrationRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -797,7 +835,7 @@ private APIdeleteStorageVersionMigrationRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteStorageVersionMigrationRequest */ - public APIdeleteStorageVersionMigrationRequest pretty(String pretty) { + public APIdeleteStorageVersionMigrationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -807,7 +845,7 @@ public APIdeleteStorageVersionMigrationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteStorageVersionMigrationRequest */ - public APIdeleteStorageVersionMigrationRequest dryRun(String dryRun) { + public APIdeleteStorageVersionMigrationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -817,7 +855,7 @@ public APIdeleteStorageVersionMigrationRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteStorageVersionMigrationRequest */ - public APIdeleteStorageVersionMigrationRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteStorageVersionMigrationRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -827,7 +865,7 @@ public APIdeleteStorageVersionMigrationRequest gracePeriodSeconds(Integer graceP * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @return APIdeleteStorageVersionMigrationRequest */ - public APIdeleteStorageVersionMigrationRequest ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteStorageVersionMigrationRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -837,7 +875,7 @@ public APIdeleteStorageVersionMigrationRequest ignoreStoreReadErrorWithClusterBr * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteStorageVersionMigrationRequest */ - public APIdeleteStorageVersionMigrationRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteStorageVersionMigrationRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -847,7 +885,7 @@ public APIdeleteStorageVersionMigrationRequest orphanDependents(Boolean orphanDe * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteStorageVersionMigrationRequest */ - public APIdeleteStorageVersionMigrationRequest propagationPolicy(String propagationPolicy) { + public APIdeleteStorageVersionMigrationRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -857,7 +895,7 @@ public APIdeleteStorageVersionMigrationRequest propagationPolicy(String propagat * @param body (optional) * @return APIdeleteStorageVersionMigrationRequest */ - public APIdeleteStorageVersionMigrationRequest body(V1DeleteOptions body) { + public APIdeleteStorageVersionMigrationRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -868,7 +906,8 @@ public APIdeleteStorageVersionMigrationRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -884,7 +923,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -901,7 +941,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -918,7 +959,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+ @@ -936,14 +978,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the StorageVersionMigration (required) * @return APIdeleteStorageVersionMigrationRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
+
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteStorageVersionMigrationRequest deleteStorageVersionMigration(String name) { + public APIdeleteStorageVersionMigrationRequest deleteStorageVersionMigration(@jakarta.annotation.Nonnull String name) { return new APIdeleteStorageVersionMigrationRequest(name); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -1025,7 +1068,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1040,7 +1084,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1056,7 +1101,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1072,7 +1118,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1088,7 +1135,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1097,7 +1145,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listStorageVersionMigrationCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStorageVersionMigrationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1192,19 +1240,19 @@ private okhttp3.Call listStorageVersionMigrationCall(String pretty, Boolean allo } @SuppressWarnings("rawtypes") - private okhttp3.Call listStorageVersionMigrationValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStorageVersionMigrationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listStorageVersionMigrationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listStorageVersionMigrationWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listStorageVersionMigrationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listStorageVersionMigrationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listStorageVersionMigrationAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStorageVersionMigrationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listStorageVersionMigrationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1213,16 +1261,27 @@ private okhttp3.Call listStorageVersionMigrationAsync(String pretty, Boolean all } public class APIlistStorageVersionMigrationRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistStorageVersionMigrationRequest() { @@ -1233,7 +1292,7 @@ private APIlistStorageVersionMigrationRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistStorageVersionMigrationRequest */ - public APIlistStorageVersionMigrationRequest pretty(String pretty) { + public APIlistStorageVersionMigrationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1243,7 +1302,7 @@ public APIlistStorageVersionMigrationRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistStorageVersionMigrationRequest */ - public APIlistStorageVersionMigrationRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistStorageVersionMigrationRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1253,7 +1312,7 @@ public APIlistStorageVersionMigrationRequest allowWatchBookmarks(Boolean allowWa * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistStorageVersionMigrationRequest */ - public APIlistStorageVersionMigrationRequest _continue(String _continue) { + public APIlistStorageVersionMigrationRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1263,7 +1322,7 @@ public APIlistStorageVersionMigrationRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistStorageVersionMigrationRequest */ - public APIlistStorageVersionMigrationRequest fieldSelector(String fieldSelector) { + public APIlistStorageVersionMigrationRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1273,7 +1332,7 @@ public APIlistStorageVersionMigrationRequest fieldSelector(String fieldSelector) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistStorageVersionMigrationRequest */ - public APIlistStorageVersionMigrationRequest labelSelector(String labelSelector) { + public APIlistStorageVersionMigrationRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1283,7 +1342,7 @@ public APIlistStorageVersionMigrationRequest labelSelector(String labelSelector) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistStorageVersionMigrationRequest */ - public APIlistStorageVersionMigrationRequest limit(Integer limit) { + public APIlistStorageVersionMigrationRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1293,7 +1352,7 @@ public APIlistStorageVersionMigrationRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistStorageVersionMigrationRequest */ - public APIlistStorageVersionMigrationRequest resourceVersion(String resourceVersion) { + public APIlistStorageVersionMigrationRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1303,7 +1362,7 @@ public APIlistStorageVersionMigrationRequest resourceVersion(String resourceVers * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistStorageVersionMigrationRequest */ - public APIlistStorageVersionMigrationRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistStorageVersionMigrationRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1313,7 +1372,7 @@ public APIlistStorageVersionMigrationRequest resourceVersionMatch(String resourc * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistStorageVersionMigrationRequest */ - public APIlistStorageVersionMigrationRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistStorageVersionMigrationRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1323,7 +1382,7 @@ public APIlistStorageVersionMigrationRequest sendInitialEvents(Boolean sendIniti * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistStorageVersionMigrationRequest */ - public APIlistStorageVersionMigrationRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistStorageVersionMigrationRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1333,7 +1392,7 @@ public APIlistStorageVersionMigrationRequest timeoutSeconds(Integer timeoutSecon * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistStorageVersionMigrationRequest */ - public APIlistStorageVersionMigrationRequest watch(Boolean watch) { + public APIlistStorageVersionMigrationRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1344,7 +1403,8 @@ public APIlistStorageVersionMigrationRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1359,7 +1419,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1StorageVersionMigrationList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1375,7 +1436,8 @@ public V1alpha1StorageVersionMigrationList execute() throws ApiException { * @return ApiResponse<V1alpha1StorageVersionMigrationList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1391,7 +1453,8 @@ public ApiResponse executeWithHttpInfo() th * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1407,7 +1470,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -1416,7 +1480,7 @@ public okhttp3.Call executeAsync(final ApiCallback patchStorageVersionMigrationWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchStorageVersionMigrationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchStorageVersionMigrationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchStorageVersionMigrationAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchStorageVersionMigrationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchStorageVersionMigrationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1517,15 +1581,22 @@ private okhttp3.Call patchStorageVersionMigrationAsync(String name, V1Patch body } public class APIpatchStorageVersionMigrationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchStorageVersionMigrationRequest(String name, V1Patch body) { + private APIpatchStorageVersionMigrationRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -1535,7 +1606,7 @@ private APIpatchStorageVersionMigrationRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchStorageVersionMigrationRequest */ - public APIpatchStorageVersionMigrationRequest pretty(String pretty) { + public APIpatchStorageVersionMigrationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1545,7 +1616,7 @@ public APIpatchStorageVersionMigrationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchStorageVersionMigrationRequest */ - public APIpatchStorageVersionMigrationRequest dryRun(String dryRun) { + public APIpatchStorageVersionMigrationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1555,7 +1626,7 @@ public APIpatchStorageVersionMigrationRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchStorageVersionMigrationRequest */ - public APIpatchStorageVersionMigrationRequest fieldManager(String fieldManager) { + public APIpatchStorageVersionMigrationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1565,7 +1636,7 @@ public APIpatchStorageVersionMigrationRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchStorageVersionMigrationRequest */ - public APIpatchStorageVersionMigrationRequest fieldValidation(String fieldValidation) { + public APIpatchStorageVersionMigrationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1575,7 +1646,7 @@ public APIpatchStorageVersionMigrationRequest fieldValidation(String fieldValida * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchStorageVersionMigrationRequest */ - public APIpatchStorageVersionMigrationRequest force(Boolean force) { + public APIpatchStorageVersionMigrationRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1586,7 +1657,8 @@ public APIpatchStorageVersionMigrationRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1602,7 +1674,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1StorageVersionMigration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1619,7 +1692,8 @@ public V1alpha1StorageVersionMigration execute() throws ApiException { * @return ApiResponse<V1alpha1StorageVersionMigration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1636,7 +1710,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1655,17 +1730,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchStorageVersionMigrationRequest patchStorageVersionMigration(String name, V1Patch body) { + public APIpatchStorageVersionMigrationRequest patchStorageVersionMigration(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchStorageVersionMigrationRequest(name, body); } - private okhttp3.Call patchStorageVersionMigrationStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchStorageVersionMigrationStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1735,7 +1811,7 @@ private okhttp3.Call patchStorageVersionMigrationStatusCall(String name, V1Patch } @SuppressWarnings("rawtypes") - private okhttp3.Call patchStorageVersionMigrationStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchStorageVersionMigrationStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchStorageVersionMigrationStatus(Async)"); @@ -1751,13 +1827,13 @@ private okhttp3.Call patchStorageVersionMigrationStatusValidateBeforeCall(String } - private ApiResponse patchStorageVersionMigrationStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchStorageVersionMigrationStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchStorageVersionMigrationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchStorageVersionMigrationStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchStorageVersionMigrationStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchStorageVersionMigrationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1766,15 +1842,22 @@ private okhttp3.Call patchStorageVersionMigrationStatusAsync(String name, V1Patc } public class APIpatchStorageVersionMigrationStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchStorageVersionMigrationStatusRequest(String name, V1Patch body) { + private APIpatchStorageVersionMigrationStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -1784,7 +1867,7 @@ private APIpatchStorageVersionMigrationStatusRequest(String name, V1Patch body) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchStorageVersionMigrationStatusRequest */ - public APIpatchStorageVersionMigrationStatusRequest pretty(String pretty) { + public APIpatchStorageVersionMigrationStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1794,7 +1877,7 @@ public APIpatchStorageVersionMigrationStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchStorageVersionMigrationStatusRequest */ - public APIpatchStorageVersionMigrationStatusRequest dryRun(String dryRun) { + public APIpatchStorageVersionMigrationStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1804,7 +1887,7 @@ public APIpatchStorageVersionMigrationStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchStorageVersionMigrationStatusRequest */ - public APIpatchStorageVersionMigrationStatusRequest fieldManager(String fieldManager) { + public APIpatchStorageVersionMigrationStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1814,7 +1897,7 @@ public APIpatchStorageVersionMigrationStatusRequest fieldManager(String fieldMan * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchStorageVersionMigrationStatusRequest */ - public APIpatchStorageVersionMigrationStatusRequest fieldValidation(String fieldValidation) { + public APIpatchStorageVersionMigrationStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1824,7 +1907,7 @@ public APIpatchStorageVersionMigrationStatusRequest fieldValidation(String field * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchStorageVersionMigrationStatusRequest */ - public APIpatchStorageVersionMigrationStatusRequest force(Boolean force) { + public APIpatchStorageVersionMigrationStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1835,7 +1918,8 @@ public APIpatchStorageVersionMigrationStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1851,7 +1935,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1StorageVersionMigration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1868,7 +1953,8 @@ public V1alpha1StorageVersionMigration execute() throws ApiException { * @return ApiResponse<V1alpha1StorageVersionMigration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1885,7 +1971,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1904,17 +1991,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchStorageVersionMigrationStatusRequest patchStorageVersionMigrationStatus(String name, V1Patch body) { + public APIpatchStorageVersionMigrationStatusRequest patchStorageVersionMigrationStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchStorageVersionMigrationStatusRequest(name, body); } - private okhttp3.Call readStorageVersionMigrationCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readStorageVersionMigrationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1967,7 +2055,7 @@ private okhttp3.Call readStorageVersionMigrationCall(String name, String pretty, } @SuppressWarnings("rawtypes") - private okhttp3.Call readStorageVersionMigrationValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readStorageVersionMigrationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readStorageVersionMigration(Async)"); @@ -1978,13 +2066,13 @@ private okhttp3.Call readStorageVersionMigrationValidateBeforeCall(String name, } - private ApiResponse readStorageVersionMigrationWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readStorageVersionMigrationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readStorageVersionMigrationValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readStorageVersionMigrationAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readStorageVersionMigrationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readStorageVersionMigrationValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1993,10 +2081,12 @@ private okhttp3.Call readStorageVersionMigrationAsync(String name, String pretty } public class APIreadStorageVersionMigrationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadStorageVersionMigrationRequest(String name) { + private APIreadStorageVersionMigrationRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -2005,7 +2095,7 @@ private APIreadStorageVersionMigrationRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadStorageVersionMigrationRequest */ - public APIreadStorageVersionMigrationRequest pretty(String pretty) { + public APIreadStorageVersionMigrationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2016,7 +2106,8 @@ public APIreadStorageVersionMigrationRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2031,7 +2122,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1StorageVersionMigration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2047,7 +2139,8 @@ public V1alpha1StorageVersionMigration execute() throws ApiException { * @return ApiResponse<V1alpha1StorageVersionMigration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2063,7 +2156,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2080,16 +2174,17 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadStorageVersionMigrationRequest readStorageVersionMigration(String name) { + public APIreadStorageVersionMigrationRequest readStorageVersionMigration(@jakarta.annotation.Nonnull String name) { return new APIreadStorageVersionMigrationRequest(name); } - private okhttp3.Call readStorageVersionMigrationStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readStorageVersionMigrationStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2142,7 +2237,7 @@ private okhttp3.Call readStorageVersionMigrationStatusCall(String name, String p } @SuppressWarnings("rawtypes") - private okhttp3.Call readStorageVersionMigrationStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readStorageVersionMigrationStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readStorageVersionMigrationStatus(Async)"); @@ -2153,13 +2248,13 @@ private okhttp3.Call readStorageVersionMigrationStatusValidateBeforeCall(String } - private ApiResponse readStorageVersionMigrationStatusWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readStorageVersionMigrationStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readStorageVersionMigrationStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readStorageVersionMigrationStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readStorageVersionMigrationStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readStorageVersionMigrationStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2168,10 +2263,12 @@ private okhttp3.Call readStorageVersionMigrationStatusAsync(String name, String } public class APIreadStorageVersionMigrationStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadStorageVersionMigrationStatusRequest(String name) { + private APIreadStorageVersionMigrationStatusRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -2180,7 +2277,7 @@ private APIreadStorageVersionMigrationStatusRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadStorageVersionMigrationStatusRequest */ - public APIreadStorageVersionMigrationStatusRequest pretty(String pretty) { + public APIreadStorageVersionMigrationStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2191,7 +2288,8 @@ public APIreadStorageVersionMigrationStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2206,7 +2304,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1StorageVersionMigration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2222,7 +2321,8 @@ public V1alpha1StorageVersionMigration execute() throws ApiException { * @return ApiResponse<V1alpha1StorageVersionMigration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2238,7 +2338,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2255,16 +2356,17 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadStorageVersionMigrationStatusRequest readStorageVersionMigrationStatus(String name) { + public APIreadStorageVersionMigrationStatusRequest readStorageVersionMigrationStatus(@jakarta.annotation.Nonnull String name) { return new APIreadStorageVersionMigrationStatusRequest(name); } - private okhttp3.Call replaceStorageVersionMigrationCall(String name, V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceStorageVersionMigrationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersionMigration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2330,7 +2432,7 @@ private okhttp3.Call replaceStorageVersionMigrationCall(String name, V1alpha1Sto } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceStorageVersionMigrationValidateBeforeCall(String name, V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceStorageVersionMigrationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersionMigration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceStorageVersionMigration(Async)"); @@ -2346,13 +2448,13 @@ private okhttp3.Call replaceStorageVersionMigrationValidateBeforeCall(String nam } - private ApiResponse replaceStorageVersionMigrationWithHttpInfo(String name, V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceStorageVersionMigrationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersionMigration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceStorageVersionMigrationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceStorageVersionMigrationAsync(String name, V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceStorageVersionMigrationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersionMigration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceStorageVersionMigrationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2361,14 +2463,20 @@ private okhttp3.Call replaceStorageVersionMigrationAsync(String name, V1alpha1St } public class APIreplaceStorageVersionMigrationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1alpha1StorageVersionMigration body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceStorageVersionMigrationRequest(String name, V1alpha1StorageVersionMigration body) { + private APIreplaceStorageVersionMigrationRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersionMigration body) { this.name = name; this.body = body; } @@ -2378,7 +2486,7 @@ private APIreplaceStorageVersionMigrationRequest(String name, V1alpha1StorageVer * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceStorageVersionMigrationRequest */ - public APIreplaceStorageVersionMigrationRequest pretty(String pretty) { + public APIreplaceStorageVersionMigrationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2388,7 +2496,7 @@ public APIreplaceStorageVersionMigrationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceStorageVersionMigrationRequest */ - public APIreplaceStorageVersionMigrationRequest dryRun(String dryRun) { + public APIreplaceStorageVersionMigrationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2398,7 +2506,7 @@ public APIreplaceStorageVersionMigrationRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceStorageVersionMigrationRequest */ - public APIreplaceStorageVersionMigrationRequest fieldManager(String fieldManager) { + public APIreplaceStorageVersionMigrationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2408,7 +2516,7 @@ public APIreplaceStorageVersionMigrationRequest fieldManager(String fieldManager * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceStorageVersionMigrationRequest */ - public APIreplaceStorageVersionMigrationRequest fieldValidation(String fieldValidation) { + public APIreplaceStorageVersionMigrationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2419,7 +2527,8 @@ public APIreplaceStorageVersionMigrationRequest fieldValidation(String fieldVali * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2435,7 +2544,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1StorageVersionMigration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2452,7 +2562,8 @@ public V1alpha1StorageVersionMigration execute() throws ApiException { * @return ApiResponse<V1alpha1StorageVersionMigration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2469,7 +2580,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2488,17 +2600,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceStorageVersionMigrationRequest replaceStorageVersionMigration(String name, V1alpha1StorageVersionMigration body) { + public APIreplaceStorageVersionMigrationRequest replaceStorageVersionMigration(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersionMigration body) { return new APIreplaceStorageVersionMigrationRequest(name, body); } - private okhttp3.Call replaceStorageVersionMigrationStatusCall(String name, V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceStorageVersionMigrationStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersionMigration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2564,7 +2677,7 @@ private okhttp3.Call replaceStorageVersionMigrationStatusCall(String name, V1alp } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceStorageVersionMigrationStatusValidateBeforeCall(String name, V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceStorageVersionMigrationStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersionMigration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceStorageVersionMigrationStatus(Async)"); @@ -2580,13 +2693,13 @@ private okhttp3.Call replaceStorageVersionMigrationStatusValidateBeforeCall(Stri } - private ApiResponse replaceStorageVersionMigrationStatusWithHttpInfo(String name, V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceStorageVersionMigrationStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersionMigration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceStorageVersionMigrationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceStorageVersionMigrationStatusAsync(String name, V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceStorageVersionMigrationStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersionMigration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceStorageVersionMigrationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2595,14 +2708,20 @@ private okhttp3.Call replaceStorageVersionMigrationStatusAsync(String name, V1al } public class APIreplaceStorageVersionMigrationStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1alpha1StorageVersionMigration body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceStorageVersionMigrationStatusRequest(String name, V1alpha1StorageVersionMigration body) { + private APIreplaceStorageVersionMigrationStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersionMigration body) { this.name = name; this.body = body; } @@ -2612,7 +2731,7 @@ private APIreplaceStorageVersionMigrationStatusRequest(String name, V1alpha1Stor * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceStorageVersionMigrationStatusRequest */ - public APIreplaceStorageVersionMigrationStatusRequest pretty(String pretty) { + public APIreplaceStorageVersionMigrationStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2622,7 +2741,7 @@ public APIreplaceStorageVersionMigrationStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceStorageVersionMigrationStatusRequest */ - public APIreplaceStorageVersionMigrationStatusRequest dryRun(String dryRun) { + public APIreplaceStorageVersionMigrationStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2632,7 +2751,7 @@ public APIreplaceStorageVersionMigrationStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceStorageVersionMigrationStatusRequest */ - public APIreplaceStorageVersionMigrationStatusRequest fieldManager(String fieldManager) { + public APIreplaceStorageVersionMigrationStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2642,7 +2761,7 @@ public APIreplaceStorageVersionMigrationStatusRequest fieldManager(String fieldM * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceStorageVersionMigrationStatusRequest */ - public APIreplaceStorageVersionMigrationStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceStorageVersionMigrationStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2653,7 +2772,8 @@ public APIreplaceStorageVersionMigrationStatusRequest fieldValidation(String fie * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2669,7 +2789,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1alpha1StorageVersionMigration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2686,7 +2807,8 @@ public V1alpha1StorageVersionMigration execute() throws ApiException { * @return ApiResponse<V1alpha1StorageVersionMigration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2703,7 +2825,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2722,14 +2845,15 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceStorageVersionMigrationStatusRequest replaceStorageVersionMigrationStatus(String name, V1alpha1StorageVersionMigration body) { + public APIreplaceStorageVersionMigrationStatusRequest replaceStorageVersionMigrationStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1StorageVersionMigration body) { return new APIreplaceStorageVersionMigrationStatusRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/VersionApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/VersionApi.java index 74d8ebc2df..75d8d36df9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/VersionApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/VersionApi.java @@ -147,7 +147,8 @@ private APIgetCodeRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -162,7 +163,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return VersionInfo * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -178,7 +180,8 @@ public VersionInfo execute() throws ApiException { * @return ApiResponse<VersionInfo> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -194,7 +197,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -207,10 +211,11 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw /** * - * get the code version + * get the version information for this server * @return APIgetCodeRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/WellKnownApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/WellKnownApi.java index 2eabf80d7f..035dc0b4c6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/WellKnownApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/WellKnownApi.java @@ -146,7 +146,8 @@ private APIgetServiceAccountIssuerOpenIDConfigurationRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -161,7 +162,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -177,7 +179,8 @@ public String execute() throws ApiException { * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -193,7 +196,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -209,7 +213,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * get service account issuer OpenID configuration, also known as the 'OIDC discovery doc' * @return APIgetServiceAccountIssuerOpenIDConfigurationRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java index c141b3d5b1..2f80ab5b18 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java @@ -19,7 +19,7 @@ import java.util.Map; import java.util.List; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/Authentication.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/Authentication.java index c9b4761e65..730fa8701b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/Authentication.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/Authentication.java @@ -19,6 +19,7 @@ import java.util.Map; import java.util.List; +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public interface Authentication { /** * Apply authentication settings to header and query params. diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBasicAuth.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBasicAuth.java index b7e2772521..84d6891f1c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBasicAuth.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBasicAuth.java @@ -21,8 +21,6 @@ import java.util.Map; import java.util.List; -import java.io.UnsupportedEncodingException; - public class HttpBasicAuth implements Authentication { private String username; private String password; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java index 8e20a18e03..74ad1b8805 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java @@ -21,7 +21,7 @@ import java.util.Optional; import java.util.function.Supplier; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class HttpBearerAuth implements Authentication { private final String scheme; private Supplier tokenSupplier; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java index 7294e127a6..002915bde8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java @@ -20,7 +20,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java index bec6fab23c..42a25fa59c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,103 +50,107 @@ * ServiceReference holds a reference to Service.legacy.k8s.io */ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class AdmissionregistrationV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) + @jakarta.annotation.Nonnull private String namespace; public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) + @jakarta.annotation.Nullable private String path; public static final String SERIALIZED_NAME_PORT = "port"; @SerializedName(SERIALIZED_NAME_PORT) + @jakarta.annotation.Nullable private Integer port; public AdmissionregistrationV1ServiceReference() { } - public AdmissionregistrationV1ServiceReference name(String name) { + public AdmissionregistrationV1ServiceReference name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * `name` is the name of the service. Required * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "`name` is the name of the service. Required") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public AdmissionregistrationV1ServiceReference namespace(String namespace) { + public AdmissionregistrationV1ServiceReference namespace(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; return this; } - /** + /** * `namespace` is the namespace of the service. Required * @return namespace - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "`namespace` is the namespace of the service. Required") public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { + public void setNamespace(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } - public AdmissionregistrationV1ServiceReference path(String path) { + public AdmissionregistrationV1ServiceReference path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } - /** + /** * `path` is an optional URL path which will be sent in any request to this service. * @return path - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`path` is an optional URL path which will be sent in any request to this service.") public String getPath() { return path; } - public void setPath(String path) { + public void setPath(@jakarta.annotation.Nullable String path) { this.path = path; } - public AdmissionregistrationV1ServiceReference port(Integer port) { + public AdmissionregistrationV1ServiceReference port(@jakarta.annotation.Nullable Integer port) { this.port = port; return this; } - /** + /** * If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). * @return port - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).") public Integer getPort() { return port; } - public void setPort(Integer port) { + public void setPort(@jakarta.annotation.Nullable Integer port) { this.port = port; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("namespace"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AdmissionregistrationV1ServiceReference - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AdmissionregistrationV1ServiceReference + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AdmissionregistrationV1ServiceReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -282,22 +285,22 @@ public AdmissionregistrationV1ServiceReference read(JsonReader in) throws IOExce } } - /** - * Create an instance of AdmissionregistrationV1ServiceReference given an JSON string - * - * @param jsonString JSON string - * @return An instance of AdmissionregistrationV1ServiceReference - * @throws IOException if the JSON string is invalid with respect to AdmissionregistrationV1ServiceReference - */ + /** + * Create an instance of AdmissionregistrationV1ServiceReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of AdmissionregistrationV1ServiceReference + * @throws IOException if the JSON string is invalid with respect to AdmissionregistrationV1ServiceReference + */ public static AdmissionregistrationV1ServiceReference fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AdmissionregistrationV1ServiceReference.class); } - /** - * Convert an instance of AdmissionregistrationV1ServiceReference to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of AdmissionregistrationV1ServiceReference to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java index 56df3af4af..88a6ca4c02 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,79 +51,82 @@ * WebhookClientConfig contains the information to make a TLS connection with the webhook */ @ApiModel(description = "WebhookClientConfig contains the information to make a TLS connection with the webhook") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class AdmissionregistrationV1WebhookClientConfig { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; @SerializedName(SERIALIZED_NAME_CA_BUNDLE) + @jakarta.annotation.Nullable private byte[] caBundle; public static final String SERIALIZED_NAME_SERVICE = "service"; @SerializedName(SERIALIZED_NAME_SERVICE) + @jakarta.annotation.Nullable private AdmissionregistrationV1ServiceReference service; public static final String SERIALIZED_NAME_URL = "url"; @SerializedName(SERIALIZED_NAME_URL) + @jakarta.annotation.Nullable private String url; public AdmissionregistrationV1WebhookClientConfig() { } - public AdmissionregistrationV1WebhookClientConfig caBundle(byte[] caBundle) { + public AdmissionregistrationV1WebhookClientConfig caBundle(@jakarta.annotation.Nullable byte[] caBundle) { this.caBundle = caBundle; return this; } - /** + /** * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. * @return caBundle - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.") public byte[] getCaBundle() { return caBundle; } - public void setCaBundle(byte[] caBundle) { + public void setCaBundle(@jakarta.annotation.Nullable byte[] caBundle) { this.caBundle = caBundle; } - public AdmissionregistrationV1WebhookClientConfig service(AdmissionregistrationV1ServiceReference service) { + public AdmissionregistrationV1WebhookClientConfig service(@jakarta.annotation.Nullable AdmissionregistrationV1ServiceReference service) { this.service = service; return this; } - /** + /** * Get service * @return service - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public AdmissionregistrationV1ServiceReference getService() { return service; } - public void setService(AdmissionregistrationV1ServiceReference service) { + public void setService(@jakarta.annotation.Nullable AdmissionregistrationV1ServiceReference service) { this.service = service; } - public AdmissionregistrationV1WebhookClientConfig url(String url) { + public AdmissionregistrationV1WebhookClientConfig url(@jakarta.annotation.Nullable String url) { this.url = url; return this; } - /** + /** * `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. * @return url - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.") public String getUrl() { return url; } - public void setUrl(String url) { + public void setUrl(@jakarta.annotation.Nullable String url) { this.url = url; } @@ -186,12 +188,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AdmissionregistrationV1WebhookClientConfig - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AdmissionregistrationV1WebhookClientConfig + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AdmissionregistrationV1WebhookClientConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -245,22 +247,22 @@ public AdmissionregistrationV1WebhookClientConfig read(JsonReader in) throws IOE } } - /** - * Create an instance of AdmissionregistrationV1WebhookClientConfig given an JSON string - * - * @param jsonString JSON string - * @return An instance of AdmissionregistrationV1WebhookClientConfig - * @throws IOException if the JSON string is invalid with respect to AdmissionregistrationV1WebhookClientConfig - */ + /** + * Create an instance of AdmissionregistrationV1WebhookClientConfig given an JSON string + * + * @param jsonString JSON string + * @return An instance of AdmissionregistrationV1WebhookClientConfig + * @throws IOException if the JSON string is invalid with respect to AdmissionregistrationV1WebhookClientConfig + */ public static AdmissionregistrationV1WebhookClientConfig fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AdmissionregistrationV1WebhookClientConfig.class); } - /** - * Convert an instance of AdmissionregistrationV1WebhookClientConfig to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of AdmissionregistrationV1WebhookClientConfig to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReference.java index 3fc3976753..49b0170e44 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReference.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,103 +50,107 @@ * ServiceReference holds a reference to Service.legacy.k8s.io */ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class ApiextensionsV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) + @jakarta.annotation.Nonnull private String namespace; public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) + @jakarta.annotation.Nullable private String path; public static final String SERIALIZED_NAME_PORT = "port"; @SerializedName(SERIALIZED_NAME_PORT) + @jakarta.annotation.Nullable private Integer port; public ApiextensionsV1ServiceReference() { } - public ApiextensionsV1ServiceReference name(String name) { + public ApiextensionsV1ServiceReference name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * name is the name of the service. Required * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "name is the name of the service. Required") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public ApiextensionsV1ServiceReference namespace(String namespace) { + public ApiextensionsV1ServiceReference namespace(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; return this; } - /** + /** * namespace is the namespace of the service. Required * @return namespace - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "namespace is the namespace of the service. Required") public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { + public void setNamespace(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } - public ApiextensionsV1ServiceReference path(String path) { + public ApiextensionsV1ServiceReference path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } - /** + /** * path is an optional URL path at which the webhook will be contacted. * @return path - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "path is an optional URL path at which the webhook will be contacted.") public String getPath() { return path; } - public void setPath(String path) { + public void setPath(@jakarta.annotation.Nullable String path) { this.path = path; } - public ApiextensionsV1ServiceReference port(Integer port) { + public ApiextensionsV1ServiceReference port(@jakarta.annotation.Nullable Integer port) { this.port = port; return this; } - /** + /** * port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility. * @return port - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.") public Integer getPort() { return port; } - public void setPort(Integer port) { + public void setPort(@jakarta.annotation.Nullable Integer port) { this.port = port; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("namespace"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ApiextensionsV1ServiceReference - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ApiextensionsV1ServiceReference + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ApiextensionsV1ServiceReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -282,22 +285,22 @@ public ApiextensionsV1ServiceReference read(JsonReader in) throws IOException { } } - /** - * Create an instance of ApiextensionsV1ServiceReference given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiextensionsV1ServiceReference - * @throws IOException if the JSON string is invalid with respect to ApiextensionsV1ServiceReference - */ + /** + * Create an instance of ApiextensionsV1ServiceReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of ApiextensionsV1ServiceReference + * @throws IOException if the JSON string is invalid with respect to ApiextensionsV1ServiceReference + */ public static ApiextensionsV1ServiceReference fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ApiextensionsV1ServiceReference.class); } - /** - * Convert an instance of ApiextensionsV1ServiceReference to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ApiextensionsV1ServiceReference to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java index b3553fd809..774a3c41b2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,79 +51,82 @@ * WebhookClientConfig contains the information to make a TLS connection with the webhook. */ @ApiModel(description = "WebhookClientConfig contains the information to make a TLS connection with the webhook.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class ApiextensionsV1WebhookClientConfig { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; @SerializedName(SERIALIZED_NAME_CA_BUNDLE) + @jakarta.annotation.Nullable private byte[] caBundle; public static final String SERIALIZED_NAME_SERVICE = "service"; @SerializedName(SERIALIZED_NAME_SERVICE) + @jakarta.annotation.Nullable private ApiextensionsV1ServiceReference service; public static final String SERIALIZED_NAME_URL = "url"; @SerializedName(SERIALIZED_NAME_URL) + @jakarta.annotation.Nullable private String url; public ApiextensionsV1WebhookClientConfig() { } - public ApiextensionsV1WebhookClientConfig caBundle(byte[] caBundle) { + public ApiextensionsV1WebhookClientConfig caBundle(@jakarta.annotation.Nullable byte[] caBundle) { this.caBundle = caBundle; return this; } - /** + /** * caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. * @return caBundle - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.") public byte[] getCaBundle() { return caBundle; } - public void setCaBundle(byte[] caBundle) { + public void setCaBundle(@jakarta.annotation.Nullable byte[] caBundle) { this.caBundle = caBundle; } - public ApiextensionsV1WebhookClientConfig service(ApiextensionsV1ServiceReference service) { + public ApiextensionsV1WebhookClientConfig service(@jakarta.annotation.Nullable ApiextensionsV1ServiceReference service) { this.service = service; return this; } - /** + /** * Get service * @return service - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public ApiextensionsV1ServiceReference getService() { return service; } - public void setService(ApiextensionsV1ServiceReference service) { + public void setService(@jakarta.annotation.Nullable ApiextensionsV1ServiceReference service) { this.service = service; } - public ApiextensionsV1WebhookClientConfig url(String url) { + public ApiextensionsV1WebhookClientConfig url(@jakarta.annotation.Nullable String url) { this.url = url; return this; } - /** + /** * url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. * @return url - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.") public String getUrl() { return url; } - public void setUrl(String url) { + public void setUrl(@jakarta.annotation.Nullable String url) { this.url = url; } @@ -186,12 +188,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ApiextensionsV1WebhookClientConfig - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ApiextensionsV1WebhookClientConfig + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ApiextensionsV1WebhookClientConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -245,22 +247,22 @@ public ApiextensionsV1WebhookClientConfig read(JsonReader in) throws IOException } } - /** - * Create an instance of ApiextensionsV1WebhookClientConfig given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiextensionsV1WebhookClientConfig - * @throws IOException if the JSON string is invalid with respect to ApiextensionsV1WebhookClientConfig - */ + /** + * Create an instance of ApiextensionsV1WebhookClientConfig given an JSON string + * + * @param jsonString JSON string + * @return An instance of ApiextensionsV1WebhookClientConfig + * @throws IOException if the JSON string is invalid with respect to ApiextensionsV1WebhookClientConfig + */ public static ApiextensionsV1WebhookClientConfig fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ApiextensionsV1WebhookClientConfig.class); } - /** - * Convert an instance of ApiextensionsV1WebhookClientConfig to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ApiextensionsV1WebhookClientConfig to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReference.java index 80e2f0cfe8..5f06745b66 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReference.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,79 +50,82 @@ * ServiceReference holds a reference to Service.legacy.k8s.io */ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class ApiregistrationV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) + @jakarta.annotation.Nullable private String namespace; public static final String SERIALIZED_NAME_PORT = "port"; @SerializedName(SERIALIZED_NAME_PORT) + @jakarta.annotation.Nullable private Integer port; public ApiregistrationV1ServiceReference() { } - public ApiregistrationV1ServiceReference name(String name) { + public ApiregistrationV1ServiceReference name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * Name is the name of the service * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Name is the name of the service") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public ApiregistrationV1ServiceReference namespace(String namespace) { + public ApiregistrationV1ServiceReference namespace(@jakarta.annotation.Nullable String namespace) { this.namespace = namespace; return this; } - /** + /** * Namespace is the namespace of the service * @return namespace - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Namespace is the namespace of the service") public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { + public void setNamespace(@jakarta.annotation.Nullable String namespace) { this.namespace = namespace; } - public ApiregistrationV1ServiceReference port(Integer port) { + public ApiregistrationV1ServiceReference port(@jakarta.annotation.Nullable Integer port) { this.port = port; return this; } - /** + /** * If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). * @return port - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).") public Integer getPort() { return port; } - public void setPort(Integer port) { + public void setPort(@jakarta.annotation.Nullable Integer port) { this.port = port; } @@ -185,12 +187,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ApiregistrationV1ServiceReference - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ApiregistrationV1ServiceReference + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ApiregistrationV1ServiceReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -243,22 +245,22 @@ public ApiregistrationV1ServiceReference read(JsonReader in) throws IOException } } - /** - * Create an instance of ApiregistrationV1ServiceReference given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiregistrationV1ServiceReference - * @throws IOException if the JSON string is invalid with respect to ApiregistrationV1ServiceReference - */ + /** + * Create an instance of ApiregistrationV1ServiceReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of ApiregistrationV1ServiceReference + * @throws IOException if the JSON string is invalid with respect to ApiregistrationV1ServiceReference + */ public static ApiregistrationV1ServiceReference fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ApiregistrationV1ServiceReference.class); } - /** - * Convert an instance of ApiregistrationV1ServiceReference to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ApiregistrationV1ServiceReference to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequest.java index d69b85ee5d..c3766c2406 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequest.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * TokenRequest requests a token for a given service account. */ @ApiModel(description = "TokenRequest requests a token for a given service account.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class AuthenticationV1TokenRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nonnull private V1TokenRequestSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1TokenRequestStatus status; public AuthenticationV1TokenRequest() { } - public AuthenticationV1TokenRequest apiVersion(String apiVersion) { + public AuthenticationV1TokenRequest apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public AuthenticationV1TokenRequest kind(String kind) { + public AuthenticationV1TokenRequest kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public AuthenticationV1TokenRequest metadata(V1ObjectMeta metadata) { + public AuthenticationV1TokenRequest metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public AuthenticationV1TokenRequest spec(V1TokenRequestSpec spec) { + public AuthenticationV1TokenRequest spec(@jakarta.annotation.Nonnull V1TokenRequestSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1TokenRequestSpec getSpec() { return spec; } - public void setSpec(V1TokenRequestSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1TokenRequestSpec spec) { this.spec = spec; } - public AuthenticationV1TokenRequest status(V1TokenRequestStatus status) { + public AuthenticationV1TokenRequest status(@jakarta.annotation.Nullable V1TokenRequestStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1TokenRequestStatus getStatus() { return status; } - public void setStatus(V1TokenRequestStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1TokenRequestStatus status) { this.status = status; } @@ -243,12 +247,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("spec"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AuthenticationV1TokenRequest - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AuthenticationV1TokenRequest + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AuthenticationV1TokenRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -318,22 +322,22 @@ public AuthenticationV1TokenRequest read(JsonReader in) throws IOException { } } - /** - * Create an instance of AuthenticationV1TokenRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of AuthenticationV1TokenRequest - * @throws IOException if the JSON string is invalid with respect to AuthenticationV1TokenRequest - */ + /** + * Create an instance of AuthenticationV1TokenRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of AuthenticationV1TokenRequest + * @throws IOException if the JSON string is invalid with respect to AuthenticationV1TokenRequest + */ public static AuthenticationV1TokenRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AuthenticationV1TokenRequest.class); } - /** - * Convert an instance of AuthenticationV1TokenRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of AuthenticationV1TokenRequest to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java index e10d514188..7e86eb0359 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -48,106 +47,110 @@ import io.kubernetes.client.openapi.JSON; /** - * EndpointPort is a tuple that describes a single port. + * EndpointPort is a tuple that describes a single port. Deprecated: This API is deprecated in v1.33+. */ -@ApiModel(description = "EndpointPort is a tuple that describes a single port.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "EndpointPort is a tuple that describes a single port. Deprecated: This API is deprecated in v1.33+.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class CoreV1EndpointPort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; @SerializedName(SERIALIZED_NAME_APP_PROTOCOL) + @jakarta.annotation.Nullable private String appProtocol; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_PORT = "port"; @SerializedName(SERIALIZED_NAME_PORT) + @jakarta.annotation.Nonnull private Integer port; public static final String SERIALIZED_NAME_PROTOCOL = "protocol"; @SerializedName(SERIALIZED_NAME_PROTOCOL) + @jakarta.annotation.Nullable private String protocol; public CoreV1EndpointPort() { } - public CoreV1EndpointPort appProtocol(String appProtocol) { + public CoreV1EndpointPort appProtocol(@jakarta.annotation.Nullable String appProtocol) { this.appProtocol = appProtocol; return this; } - /** + /** * The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. * @return appProtocol - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.") public String getAppProtocol() { return appProtocol; } - public void setAppProtocol(String appProtocol) { + public void setAppProtocol(@jakarta.annotation.Nullable String appProtocol) { this.appProtocol = appProtocol; } - public CoreV1EndpointPort name(String name) { + public CoreV1EndpointPort name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public CoreV1EndpointPort port(Integer port) { + public CoreV1EndpointPort port(@jakarta.annotation.Nonnull Integer port) { this.port = port; return this; } - /** + /** * The port number of the endpoint. * @return port - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The port number of the endpoint.") public Integer getPort() { return port; } - public void setPort(Integer port) { + public void setPort(@jakarta.annotation.Nonnull Integer port) { this.port = port; } - public CoreV1EndpointPort protocol(String protocol) { + public CoreV1EndpointPort protocol(@jakarta.annotation.Nullable String protocol) { this.protocol = protocol; return this; } - /** + /** * The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. * @return protocol - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.") public String getProtocol() { return protocol; } - public void setProtocol(String protocol) { + public void setProtocol(@jakarta.annotation.Nullable String protocol) { this.protocol = protocol; } @@ -213,12 +216,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("port"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CoreV1EndpointPort - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CoreV1EndpointPort + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CoreV1EndpointPort.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -281,22 +284,22 @@ public CoreV1EndpointPort read(JsonReader in) throws IOException { } } - /** - * Create an instance of CoreV1EndpointPort given an JSON string - * - * @param jsonString JSON string - * @return An instance of CoreV1EndpointPort - * @throws IOException if the JSON string is invalid with respect to CoreV1EndpointPort - */ + /** + * Create an instance of CoreV1EndpointPort given an JSON string + * + * @param jsonString JSON string + * @return An instance of CoreV1EndpointPort + * @throws IOException if the JSON string is invalid with respect to CoreV1EndpointPort + */ public static CoreV1EndpointPort fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CoreV1EndpointPort.class); } - /** - * Convert an instance of CoreV1EndpointPort to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CoreV1EndpointPort to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java index 4604993c19..35940b1d84 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java @@ -43,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -56,415 +55,432 @@ * Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. */ @ApiModel(description = "Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class CoreV1Event implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) + @jakarta.annotation.Nullable private String action; public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) + @jakarta.annotation.Nullable private Integer count; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @jakarta.annotation.Nullable private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_FIRST_TIMESTAMP = "firstTimestamp"; @SerializedName(SERIALIZED_NAME_FIRST_TIMESTAMP) + @jakarta.annotation.Nullable private OffsetDateTime firstTimestamp; public static final String SERIALIZED_NAME_INVOLVED_OBJECT = "involvedObject"; @SerializedName(SERIALIZED_NAME_INVOLVED_OBJECT) + @jakarta.annotation.Nonnull private V1ObjectReference involvedObject; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_LAST_TIMESTAMP = "lastTimestamp"; @SerializedName(SERIALIZED_NAME_LAST_TIMESTAMP) + @jakarta.annotation.Nullable private OffsetDateTime lastTimestamp; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nonnull private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_RELATED = "related"; @SerializedName(SERIALIZED_NAME_RELATED) + @jakarta.annotation.Nullable private V1ObjectReference related; public static final String SERIALIZED_NAME_REPORTING_COMPONENT = "reportingComponent"; @SerializedName(SERIALIZED_NAME_REPORTING_COMPONENT) + @jakarta.annotation.Nullable private String reportingComponent; public static final String SERIALIZED_NAME_REPORTING_INSTANCE = "reportingInstance"; @SerializedName(SERIALIZED_NAME_REPORTING_INSTANCE) + @jakarta.annotation.Nullable private String reportingInstance; public static final String SERIALIZED_NAME_SERIES = "series"; @SerializedName(SERIALIZED_NAME_SERIES) + @jakarta.annotation.Nullable private CoreV1EventSeries series; public static final String SERIALIZED_NAME_SOURCE = "source"; @SerializedName(SERIALIZED_NAME_SOURCE) + @jakarta.annotation.Nullable private V1EventSource source; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nullable private String type; public CoreV1Event() { } - public CoreV1Event action(String action) { + public CoreV1Event action(@jakarta.annotation.Nullable String action) { this.action = action; return this; } - /** + /** * What action was taken/failed regarding to the Regarding object. * @return action - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "What action was taken/failed regarding to the Regarding object.") public String getAction() { return action; } - public void setAction(String action) { + public void setAction(@jakarta.annotation.Nullable String action) { this.action = action; } - public CoreV1Event apiVersion(String apiVersion) { + public CoreV1Event apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public CoreV1Event count(Integer count) { + public CoreV1Event count(@jakarta.annotation.Nullable Integer count) { this.count = count; return this; } - /** + /** * The number of times this event has occurred. * @return count - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The number of times this event has occurred.") public Integer getCount() { return count; } - public void setCount(Integer count) { + public void setCount(@jakarta.annotation.Nullable Integer count) { this.count = count; } - public CoreV1Event eventTime(OffsetDateTime eventTime) { + public CoreV1Event eventTime(@jakarta.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } - /** + /** * Time when this Event was first observed. * @return eventTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Time when this Event was first observed.") public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@jakarta.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; } - public CoreV1Event firstTimestamp(OffsetDateTime firstTimestamp) { + public CoreV1Event firstTimestamp(@jakarta.annotation.Nullable OffsetDateTime firstTimestamp) { this.firstTimestamp = firstTimestamp; return this; } - /** + /** * The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) * @return firstTimestamp - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)") public OffsetDateTime getFirstTimestamp() { return firstTimestamp; } - public void setFirstTimestamp(OffsetDateTime firstTimestamp) { + public void setFirstTimestamp(@jakarta.annotation.Nullable OffsetDateTime firstTimestamp) { this.firstTimestamp = firstTimestamp; } - public CoreV1Event involvedObject(V1ObjectReference involvedObject) { + public CoreV1Event involvedObject(@jakarta.annotation.Nonnull V1ObjectReference involvedObject) { this.involvedObject = involvedObject; return this; } - /** + /** * Get involvedObject * @return involvedObject - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1ObjectReference getInvolvedObject() { return involvedObject; } - public void setInvolvedObject(V1ObjectReference involvedObject) { + public void setInvolvedObject(@jakarta.annotation.Nonnull V1ObjectReference involvedObject) { this.involvedObject = involvedObject; } - public CoreV1Event kind(String kind) { + public CoreV1Event kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public CoreV1Event lastTimestamp(OffsetDateTime lastTimestamp) { + public CoreV1Event lastTimestamp(@jakarta.annotation.Nullable OffsetDateTime lastTimestamp) { this.lastTimestamp = lastTimestamp; return this; } - /** + /** * The time at which the most recent occurrence of this event was recorded. * @return lastTimestamp - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The time at which the most recent occurrence of this event was recorded.") public OffsetDateTime getLastTimestamp() { return lastTimestamp; } - public void setLastTimestamp(OffsetDateTime lastTimestamp) { + public void setLastTimestamp(@jakarta.annotation.Nullable OffsetDateTime lastTimestamp) { this.lastTimestamp = lastTimestamp; } - public CoreV1Event message(String message) { + public CoreV1Event message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * A human-readable description of the status of this operation. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A human-readable description of the status of this operation.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public CoreV1Event metadata(V1ObjectMeta metadata) { + public CoreV1Event metadata(@jakarta.annotation.Nonnull V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nonnull V1ObjectMeta metadata) { this.metadata = metadata; } - public CoreV1Event reason(String reason) { + public CoreV1Event reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * This should be a short, machine understandable string that gives the reason for the transition into the object's current status. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } - public CoreV1Event related(V1ObjectReference related) { + public CoreV1Event related(@jakarta.annotation.Nullable V1ObjectReference related) { this.related = related; return this; } - /** + /** * Get related * @return related - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectReference getRelated() { return related; } - public void setRelated(V1ObjectReference related) { + public void setRelated(@jakarta.annotation.Nullable V1ObjectReference related) { this.related = related; } - public CoreV1Event reportingComponent(String reportingComponent) { + public CoreV1Event reportingComponent(@jakarta.annotation.Nullable String reportingComponent) { this.reportingComponent = reportingComponent; return this; } - /** + /** * Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. * @return reportingComponent - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.") public String getReportingComponent() { return reportingComponent; } - public void setReportingComponent(String reportingComponent) { + public void setReportingComponent(@jakarta.annotation.Nullable String reportingComponent) { this.reportingComponent = reportingComponent; } - public CoreV1Event reportingInstance(String reportingInstance) { + public CoreV1Event reportingInstance(@jakarta.annotation.Nullable String reportingInstance) { this.reportingInstance = reportingInstance; return this; } - /** + /** * ID of the controller instance, e.g. `kubelet-xyzf`. * @return reportingInstance - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ID of the controller instance, e.g. `kubelet-xyzf`.") public String getReportingInstance() { return reportingInstance; } - public void setReportingInstance(String reportingInstance) { + public void setReportingInstance(@jakarta.annotation.Nullable String reportingInstance) { this.reportingInstance = reportingInstance; } - public CoreV1Event series(CoreV1EventSeries series) { + public CoreV1Event series(@jakarta.annotation.Nullable CoreV1EventSeries series) { this.series = series; return this; } - /** + /** * Get series * @return series - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public CoreV1EventSeries getSeries() { return series; } - public void setSeries(CoreV1EventSeries series) { + public void setSeries(@jakarta.annotation.Nullable CoreV1EventSeries series) { this.series = series; } - public CoreV1Event source(V1EventSource source) { + public CoreV1Event source(@jakarta.annotation.Nullable V1EventSource source) { this.source = source; return this; } - /** + /** * Get source * @return source - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1EventSource getSource() { return source; } - public void setSource(V1EventSource source) { + public void setSource(@jakarta.annotation.Nullable V1EventSource source) { this.source = source; } - public CoreV1Event type(String type) { + public CoreV1Event type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } - /** + /** * Type of this event (Normal, Warning), new types could be added in the future * @return type - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Type of this event (Normal, Warning), new types could be added in the future") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } @@ -570,12 +586,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("metadata"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CoreV1Event - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CoreV1Event + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CoreV1Event.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -669,22 +685,22 @@ public CoreV1Event read(JsonReader in) throws IOException { } } - /** - * Create an instance of CoreV1Event given an JSON string - * - * @param jsonString JSON string - * @return An instance of CoreV1Event - * @throws IOException if the JSON string is invalid with respect to CoreV1Event - */ + /** + * Create an instance of CoreV1Event given an JSON string + * + * @param jsonString JSON string + * @return An instance of CoreV1Event + * @throws IOException if the JSON string is invalid with respect to CoreV1Event + */ public static CoreV1Event fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CoreV1Event.class); } - /** - * Convert an instance of CoreV1Event to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CoreV1Event to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java index 8aaeb54f4d..24b9d9adc6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * EventList is a list of events. */ @ApiModel(description = "EventList is a list of events.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class CoreV1EventList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public CoreV1EventList() { } - public CoreV1EventList apiVersion(String apiVersion) { + public CoreV1EventList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public CoreV1EventList items(List items) { + public CoreV1EventList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public CoreV1EventList addItemsItem(CoreV1Event itemsItem) { return this; } - /** + /** * List of events * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "List of events") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public CoreV1EventList kind(String kind) { + public CoreV1EventList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public CoreV1EventList metadata(V1ListMeta metadata) { + public CoreV1EventList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CoreV1EventList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CoreV1EventList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CoreV1EventList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public CoreV1EventList read(JsonReader in) throws IOException { } } - /** - * Create an instance of CoreV1EventList given an JSON string - * - * @param jsonString JSON string - * @return An instance of CoreV1EventList - * @throws IOException if the JSON string is invalid with respect to CoreV1EventList - */ + /** + * Create an instance of CoreV1EventList given an JSON string + * + * @param jsonString JSON string + * @return An instance of CoreV1EventList + * @throws IOException if the JSON string is invalid with respect to CoreV1EventList + */ public static CoreV1EventList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CoreV1EventList.class); } - /** - * Convert an instance of CoreV1EventList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CoreV1EventList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java index a4a9e6231d..2f23ddca59 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. */ @ApiModel(description = "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class CoreV1EventSeries { public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) + @jakarta.annotation.Nullable private Integer count; public static final String SERIALIZED_NAME_LAST_OBSERVED_TIME = "lastObservedTime"; @SerializedName(SERIALIZED_NAME_LAST_OBSERVED_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastObservedTime; public CoreV1EventSeries() { } - public CoreV1EventSeries count(Integer count) { + public CoreV1EventSeries count(@jakarta.annotation.Nullable Integer count) { this.count = count; return this; } - /** + /** * Number of occurrences in this series up to the last heartbeat time * @return count - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Number of occurrences in this series up to the last heartbeat time") public Integer getCount() { return count; } - public void setCount(Integer count) { + public void setCount(@jakarta.annotation.Nullable Integer count) { this.count = count; } - public CoreV1EventSeries lastObservedTime(OffsetDateTime lastObservedTime) { + public CoreV1EventSeries lastObservedTime(@jakarta.annotation.Nullable OffsetDateTime lastObservedTime) { this.lastObservedTime = lastObservedTime; return this; } - /** + /** * Time of the last occurrence observed * @return lastObservedTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Time of the last occurrence observed") public OffsetDateTime getLastObservedTime() { return lastObservedTime; } - public void setLastObservedTime(OffsetDateTime lastObservedTime) { + public void setLastObservedTime(@jakarta.annotation.Nullable OffsetDateTime lastObservedTime) { this.lastObservedTime = lastObservedTime; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CoreV1EventSeries - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CoreV1EventSeries + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CoreV1EventSeries.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -211,22 +212,22 @@ public CoreV1EventSeries read(JsonReader in) throws IOException { } } - /** - * Create an instance of CoreV1EventSeries given an JSON string - * - * @param jsonString JSON string - * @return An instance of CoreV1EventSeries - * @throws IOException if the JSON string is invalid with respect to CoreV1EventSeries - */ + /** + * Create an instance of CoreV1EventSeries given an JSON string + * + * @param jsonString JSON string + * @return An instance of CoreV1EventSeries + * @throws IOException if the JSON string is invalid with respect to CoreV1EventSeries + */ public static CoreV1EventSeries fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CoreV1EventSeries.class); } - /** - * Convert an instance of CoreV1EventSeries to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CoreV1EventSeries to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java index 226817e5ca..289ac75426 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,103 +50,107 @@ * EndpointPort represents a Port used by an EndpointSlice */ @ApiModel(description = "EndpointPort represents a Port used by an EndpointSlice") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class DiscoveryV1EndpointPort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; @SerializedName(SERIALIZED_NAME_APP_PROTOCOL) + @jakarta.annotation.Nullable private String appProtocol; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_PORT = "port"; @SerializedName(SERIALIZED_NAME_PORT) + @jakarta.annotation.Nullable private Integer port; public static final String SERIALIZED_NAME_PROTOCOL = "protocol"; @SerializedName(SERIALIZED_NAME_PROTOCOL) + @jakarta.annotation.Nullable private String protocol; public DiscoveryV1EndpointPort() { } - public DiscoveryV1EndpointPort appProtocol(String appProtocol) { + public DiscoveryV1EndpointPort appProtocol(@jakarta.annotation.Nullable String appProtocol) { this.appProtocol = appProtocol; return this; } - /** + /** * The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. * @return appProtocol - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.") public String getAppProtocol() { return appProtocol; } - public void setAppProtocol(String appProtocol) { + public void setAppProtocol(@jakarta.annotation.Nullable String appProtocol) { this.appProtocol = appProtocol; } - public DiscoveryV1EndpointPort name(String name) { + public DiscoveryV1EndpointPort name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public DiscoveryV1EndpointPort port(Integer port) { + public DiscoveryV1EndpointPort port(@jakarta.annotation.Nullable Integer port) { this.port = port; return this; } - /** - * port represents the port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer. + /** + * port represents the port number of the endpoint. If the EndpointSlice is derived from a Kubernetes service, this must be set to the service's target port. EndpointSlices used for other purposes may have a nil port. * @return port - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "port represents the port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer.") + @ApiModelProperty(value = "port represents the port number of the endpoint. If the EndpointSlice is derived from a Kubernetes service, this must be set to the service's target port. EndpointSlices used for other purposes may have a nil port.") public Integer getPort() { return port; } - public void setPort(Integer port) { + public void setPort(@jakarta.annotation.Nullable Integer port) { this.port = port; } - public DiscoveryV1EndpointPort protocol(String protocol) { + public DiscoveryV1EndpointPort protocol(@jakarta.annotation.Nullable String protocol) { this.protocol = protocol; return this; } - /** + /** * protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. * @return protocol - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.") public String getProtocol() { return protocol; } - public void setProtocol(String protocol) { + public void setProtocol(@jakarta.annotation.Nullable String protocol) { this.protocol = protocol; } @@ -212,12 +215,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DiscoveryV1EndpointPort - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to DiscoveryV1EndpointPort + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!DiscoveryV1EndpointPort.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -273,22 +276,22 @@ public DiscoveryV1EndpointPort read(JsonReader in) throws IOException { } } - /** - * Create an instance of DiscoveryV1EndpointPort given an JSON string - * - * @param jsonString JSON string - * @return An instance of DiscoveryV1EndpointPort - * @throws IOException if the JSON string is invalid with respect to DiscoveryV1EndpointPort - */ + /** + * Create an instance of DiscoveryV1EndpointPort given an JSON string + * + * @param jsonString JSON string + * @return An instance of DiscoveryV1EndpointPort + * @throws IOException if the JSON string is invalid with respect to DiscoveryV1EndpointPort + */ public static DiscoveryV1EndpointPort fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DiscoveryV1EndpointPort.class); } - /** - * Convert an instance of DiscoveryV1EndpointPort to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of DiscoveryV1EndpointPort to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java index 8fb2afe7c8..80833a986a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java @@ -43,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -56,415 +55,432 @@ * Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. */ @ApiModel(description = "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class EventsV1Event implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) + @jakarta.annotation.Nullable private String action; public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_DEPRECATED_COUNT = "deprecatedCount"; @SerializedName(SERIALIZED_NAME_DEPRECATED_COUNT) + @jakarta.annotation.Nullable private Integer deprecatedCount; public static final String SERIALIZED_NAME_DEPRECATED_FIRST_TIMESTAMP = "deprecatedFirstTimestamp"; @SerializedName(SERIALIZED_NAME_DEPRECATED_FIRST_TIMESTAMP) + @jakarta.annotation.Nullable private OffsetDateTime deprecatedFirstTimestamp; public static final String SERIALIZED_NAME_DEPRECATED_LAST_TIMESTAMP = "deprecatedLastTimestamp"; @SerializedName(SERIALIZED_NAME_DEPRECATED_LAST_TIMESTAMP) + @jakarta.annotation.Nullable private OffsetDateTime deprecatedLastTimestamp; public static final String SERIALIZED_NAME_DEPRECATED_SOURCE = "deprecatedSource"; @SerializedName(SERIALIZED_NAME_DEPRECATED_SOURCE) + @jakarta.annotation.Nullable private V1EventSource deprecatedSource; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @jakarta.annotation.Nonnull private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_NOTE = "note"; @SerializedName(SERIALIZED_NAME_NOTE) + @jakarta.annotation.Nullable private String note; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_REGARDING = "regarding"; @SerializedName(SERIALIZED_NAME_REGARDING) + @jakarta.annotation.Nullable private V1ObjectReference regarding; public static final String SERIALIZED_NAME_RELATED = "related"; @SerializedName(SERIALIZED_NAME_RELATED) + @jakarta.annotation.Nullable private V1ObjectReference related; public static final String SERIALIZED_NAME_REPORTING_CONTROLLER = "reportingController"; @SerializedName(SERIALIZED_NAME_REPORTING_CONTROLLER) + @jakarta.annotation.Nullable private String reportingController; public static final String SERIALIZED_NAME_REPORTING_INSTANCE = "reportingInstance"; @SerializedName(SERIALIZED_NAME_REPORTING_INSTANCE) + @jakarta.annotation.Nullable private String reportingInstance; public static final String SERIALIZED_NAME_SERIES = "series"; @SerializedName(SERIALIZED_NAME_SERIES) + @jakarta.annotation.Nullable private EventsV1EventSeries series; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nullable private String type; public EventsV1Event() { } - public EventsV1Event action(String action) { + public EventsV1Event action(@jakarta.annotation.Nullable String action) { this.action = action; return this; } - /** + /** * action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters. * @return action - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters.") public String getAction() { return action; } - public void setAction(String action) { + public void setAction(@jakarta.annotation.Nullable String action) { this.action = action; } - public EventsV1Event apiVersion(String apiVersion) { + public EventsV1Event apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public EventsV1Event deprecatedCount(Integer deprecatedCount) { + public EventsV1Event deprecatedCount(@jakarta.annotation.Nullable Integer deprecatedCount) { this.deprecatedCount = deprecatedCount; return this; } - /** + /** * deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. * @return deprecatedCount - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.") public Integer getDeprecatedCount() { return deprecatedCount; } - public void setDeprecatedCount(Integer deprecatedCount) { + public void setDeprecatedCount(@jakarta.annotation.Nullable Integer deprecatedCount) { this.deprecatedCount = deprecatedCount; } - public EventsV1Event deprecatedFirstTimestamp(OffsetDateTime deprecatedFirstTimestamp) { + public EventsV1Event deprecatedFirstTimestamp(@jakarta.annotation.Nullable OffsetDateTime deprecatedFirstTimestamp) { this.deprecatedFirstTimestamp = deprecatedFirstTimestamp; return this; } - /** + /** * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. * @return deprecatedFirstTimestamp - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.") public OffsetDateTime getDeprecatedFirstTimestamp() { return deprecatedFirstTimestamp; } - public void setDeprecatedFirstTimestamp(OffsetDateTime deprecatedFirstTimestamp) { + public void setDeprecatedFirstTimestamp(@jakarta.annotation.Nullable OffsetDateTime deprecatedFirstTimestamp) { this.deprecatedFirstTimestamp = deprecatedFirstTimestamp; } - public EventsV1Event deprecatedLastTimestamp(OffsetDateTime deprecatedLastTimestamp) { + public EventsV1Event deprecatedLastTimestamp(@jakarta.annotation.Nullable OffsetDateTime deprecatedLastTimestamp) { this.deprecatedLastTimestamp = deprecatedLastTimestamp; return this; } - /** + /** * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. * @return deprecatedLastTimestamp - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.") public OffsetDateTime getDeprecatedLastTimestamp() { return deprecatedLastTimestamp; } - public void setDeprecatedLastTimestamp(OffsetDateTime deprecatedLastTimestamp) { + public void setDeprecatedLastTimestamp(@jakarta.annotation.Nullable OffsetDateTime deprecatedLastTimestamp) { this.deprecatedLastTimestamp = deprecatedLastTimestamp; } - public EventsV1Event deprecatedSource(V1EventSource deprecatedSource) { + public EventsV1Event deprecatedSource(@jakarta.annotation.Nullable V1EventSource deprecatedSource) { this.deprecatedSource = deprecatedSource; return this; } - /** + /** * Get deprecatedSource * @return deprecatedSource - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1EventSource getDeprecatedSource() { return deprecatedSource; } - public void setDeprecatedSource(V1EventSource deprecatedSource) { + public void setDeprecatedSource(@jakarta.annotation.Nullable V1EventSource deprecatedSource) { this.deprecatedSource = deprecatedSource; } - public EventsV1Event eventTime(OffsetDateTime eventTime) { + public EventsV1Event eventTime(@jakarta.annotation.Nonnull OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } - /** + /** * eventTime is the time when this Event was first observed. It is required. * @return eventTime - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "eventTime is the time when this Event was first observed. It is required.") public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@jakarta.annotation.Nonnull OffsetDateTime eventTime) { this.eventTime = eventTime; } - public EventsV1Event kind(String kind) { + public EventsV1Event kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public EventsV1Event metadata(V1ObjectMeta metadata) { + public EventsV1Event metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public EventsV1Event note(String note) { + public EventsV1Event note(@jakarta.annotation.Nullable String note) { this.note = note; return this; } - /** + /** * note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. * @return note - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.") public String getNote() { return note; } - public void setNote(String note) { + public void setNote(@jakarta.annotation.Nullable String note) { this.note = note; } - public EventsV1Event reason(String reason) { + public EventsV1Event reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } - public EventsV1Event regarding(V1ObjectReference regarding) { + public EventsV1Event regarding(@jakarta.annotation.Nullable V1ObjectReference regarding) { this.regarding = regarding; return this; } - /** + /** * Get regarding * @return regarding - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectReference getRegarding() { return regarding; } - public void setRegarding(V1ObjectReference regarding) { + public void setRegarding(@jakarta.annotation.Nullable V1ObjectReference regarding) { this.regarding = regarding; } - public EventsV1Event related(V1ObjectReference related) { + public EventsV1Event related(@jakarta.annotation.Nullable V1ObjectReference related) { this.related = related; return this; } - /** + /** * Get related * @return related - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectReference getRelated() { return related; } - public void setRelated(V1ObjectReference related) { + public void setRelated(@jakarta.annotation.Nullable V1ObjectReference related) { this.related = related; } - public EventsV1Event reportingController(String reportingController) { + public EventsV1Event reportingController(@jakarta.annotation.Nullable String reportingController) { this.reportingController = reportingController; return this; } - /** + /** * reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. * @return reportingController - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.") public String getReportingController() { return reportingController; } - public void setReportingController(String reportingController) { + public void setReportingController(@jakarta.annotation.Nullable String reportingController) { this.reportingController = reportingController; } - public EventsV1Event reportingInstance(String reportingInstance) { + public EventsV1Event reportingInstance(@jakarta.annotation.Nullable String reportingInstance) { this.reportingInstance = reportingInstance; return this; } - /** + /** * reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters. * @return reportingInstance - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters.") public String getReportingInstance() { return reportingInstance; } - public void setReportingInstance(String reportingInstance) { + public void setReportingInstance(@jakarta.annotation.Nullable String reportingInstance) { this.reportingInstance = reportingInstance; } - public EventsV1Event series(EventsV1EventSeries series) { + public EventsV1Event series(@jakarta.annotation.Nullable EventsV1EventSeries series) { this.series = series; return this; } - /** + /** * Get series * @return series - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public EventsV1EventSeries getSeries() { return series; } - public void setSeries(EventsV1EventSeries series) { + public void setSeries(@jakarta.annotation.Nullable EventsV1EventSeries series) { this.series = series; } - public EventsV1Event type(String type) { + public EventsV1Event type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } - /** + /** * type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events. * @return type - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } @@ -569,12 +585,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("eventTime"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to EventsV1Event - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to EventsV1Event + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!EventsV1Event.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -672,22 +688,22 @@ public EventsV1Event read(JsonReader in) throws IOException { } } - /** - * Create an instance of EventsV1Event given an JSON string - * - * @param jsonString JSON string - * @return An instance of EventsV1Event - * @throws IOException if the JSON string is invalid with respect to EventsV1Event - */ + /** + * Create an instance of EventsV1Event given an JSON string + * + * @param jsonString JSON string + * @return An instance of EventsV1Event + * @throws IOException if the JSON string is invalid with respect to EventsV1Event + */ public static EventsV1Event fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, EventsV1Event.class); } - /** - * Convert an instance of EventsV1Event to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of EventsV1Event to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java index 916bd2b99f..aabee34508 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * EventList is a list of Event objects. */ @ApiModel(description = "EventList is a list of Event objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class EventsV1EventList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public EventsV1EventList() { } - public EventsV1EventList apiVersion(String apiVersion) { + public EventsV1EventList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public EventsV1EventList items(List items) { + public EventsV1EventList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public EventsV1EventList addItemsItem(EventsV1Event itemsItem) { return this; } - /** + /** * items is a list of schema objects. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is a list of schema objects.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public EventsV1EventList kind(String kind) { + public EventsV1EventList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public EventsV1EventList metadata(V1ListMeta metadata) { + public EventsV1EventList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to EventsV1EventList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to EventsV1EventList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!EventsV1EventList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public EventsV1EventList read(JsonReader in) throws IOException { } } - /** - * Create an instance of EventsV1EventList given an JSON string - * - * @param jsonString JSON string - * @return An instance of EventsV1EventList - * @throws IOException if the JSON string is invalid with respect to EventsV1EventList - */ + /** + * Create an instance of EventsV1EventList given an JSON string + * + * @param jsonString JSON string + * @return An instance of EventsV1EventList + * @throws IOException if the JSON string is invalid with respect to EventsV1EventList + */ public static EventsV1EventList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, EventsV1EventList.class); } - /** - * Convert an instance of EventsV1EventList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of EventsV1EventList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java index 8fa00b4642..8ca33b6728 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in \"k8s.io/client-go/tools/events/event_broadcaster.go\" shows how this struct is updated on heartbeats and can guide customized reporter implementations. */ @ApiModel(description = "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in \"k8s.io/client-go/tools/events/event_broadcaster.go\" shows how this struct is updated on heartbeats and can guide customized reporter implementations.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class EventsV1EventSeries { public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) + @jakarta.annotation.Nonnull private Integer count; public static final String SERIALIZED_NAME_LAST_OBSERVED_TIME = "lastObservedTime"; @SerializedName(SERIALIZED_NAME_LAST_OBSERVED_TIME) + @jakarta.annotation.Nonnull private OffsetDateTime lastObservedTime; public EventsV1EventSeries() { } - public EventsV1EventSeries count(Integer count) { + public EventsV1EventSeries count(@jakarta.annotation.Nonnull Integer count) { this.count = count; return this; } - /** + /** * count is the number of occurrences in this series up to the last heartbeat time. * @return count - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "count is the number of occurrences in this series up to the last heartbeat time.") public Integer getCount() { return count; } - public void setCount(Integer count) { + public void setCount(@jakarta.annotation.Nonnull Integer count) { this.count = count; } - public EventsV1EventSeries lastObservedTime(OffsetDateTime lastObservedTime) { + public EventsV1EventSeries lastObservedTime(@jakarta.annotation.Nonnull OffsetDateTime lastObservedTime) { this.lastObservedTime = lastObservedTime; return this; } - /** + /** * lastObservedTime is the time when last Event from the series was seen before last heartbeat. * @return lastObservedTime - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "lastObservedTime is the time when last Event from the series was seen before last heartbeat.") public OffsetDateTime getLastObservedTime() { return lastObservedTime; } - public void setLastObservedTime(OffsetDateTime lastObservedTime) { + public void setLastObservedTime(@jakarta.annotation.Nonnull OffsetDateTime lastObservedTime) { this.lastObservedTime = lastObservedTime; } @@ -161,12 +162,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("lastObservedTime"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to EventsV1EventSeries - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to EventsV1EventSeries + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!EventsV1EventSeries.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -220,22 +221,22 @@ public EventsV1EventSeries read(JsonReader in) throws IOException { } } - /** - * Create an instance of EventsV1EventSeries given an JSON string - * - * @param jsonString JSON string - * @return An instance of EventsV1EventSeries - * @throws IOException if the JSON string is invalid with respect to EventsV1EventSeries - */ + /** + * Create an instance of EventsV1EventSeries given an JSON string + * + * @param jsonString JSON string + * @return An instance of EventsV1EventSeries + * @throws IOException if the JSON string is invalid with respect to EventsV1EventSeries + */ public static EventsV1EventSeries fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, EventsV1EventSeries.class); } - /** - * Convert an instance of EventsV1EventSeries to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of EventsV1EventSeries to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java index 59ae8867c0..256f971f61 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,103 +53,107 @@ * Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account. */ @ApiModel(description = "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class FlowcontrolV1Subject { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) + @jakarta.annotation.Nullable private V1GroupSubject group; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nonnull private String kind; public static final String SERIALIZED_NAME_SERVICE_ACCOUNT = "serviceAccount"; @SerializedName(SERIALIZED_NAME_SERVICE_ACCOUNT) + @jakarta.annotation.Nullable private V1ServiceAccountSubject serviceAccount; public static final String SERIALIZED_NAME_USER = "user"; @SerializedName(SERIALIZED_NAME_USER) + @jakarta.annotation.Nullable private V1UserSubject user; public FlowcontrolV1Subject() { } - public FlowcontrolV1Subject group(V1GroupSubject group) { + public FlowcontrolV1Subject group(@jakarta.annotation.Nullable V1GroupSubject group) { this.group = group; return this; } - /** + /** * Get group * @return group - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1GroupSubject getGroup() { return group; } - public void setGroup(V1GroupSubject group) { + public void setGroup(@jakarta.annotation.Nullable V1GroupSubject group) { this.group = group; } - public FlowcontrolV1Subject kind(String kind) { + public FlowcontrolV1Subject kind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; return this; } - /** + /** * `kind` indicates which one of the other fields is non-empty. Required * @return kind - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "`kind` indicates which one of the other fields is non-empty. Required") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; } - public FlowcontrolV1Subject serviceAccount(V1ServiceAccountSubject serviceAccount) { + public FlowcontrolV1Subject serviceAccount(@jakarta.annotation.Nullable V1ServiceAccountSubject serviceAccount) { this.serviceAccount = serviceAccount; return this; } - /** + /** * Get serviceAccount * @return serviceAccount - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceAccountSubject getServiceAccount() { return serviceAccount; } - public void setServiceAccount(V1ServiceAccountSubject serviceAccount) { + public void setServiceAccount(@jakarta.annotation.Nullable V1ServiceAccountSubject serviceAccount) { this.serviceAccount = serviceAccount; } - public FlowcontrolV1Subject user(V1UserSubject user) { + public FlowcontrolV1Subject user(@jakarta.annotation.Nullable V1UserSubject user) { this.user = user; return this; } - /** + /** * Get user * @return user - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1UserSubject getUser() { return user; } - public void setUser(V1UserSubject user) { + public void setUser(@jakarta.annotation.Nullable V1UserSubject user) { this.user = user; } @@ -216,12 +219,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("kind"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to FlowcontrolV1Subject - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to FlowcontrolV1Subject + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!FlowcontrolV1Subject.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -290,22 +293,22 @@ public FlowcontrolV1Subject read(JsonReader in) throws IOException { } } - /** - * Create an instance of FlowcontrolV1Subject given an JSON string - * - * @param jsonString JSON string - * @return An instance of FlowcontrolV1Subject - * @throws IOException if the JSON string is invalid with respect to FlowcontrolV1Subject - */ + /** + * Create an instance of FlowcontrolV1Subject given an JSON string + * + * @param jsonString JSON string + * @return An instance of FlowcontrolV1Subject + * @throws IOException if the JSON string is invalid with respect to FlowcontrolV1Subject + */ public static FlowcontrolV1Subject fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FlowcontrolV1Subject.class); } - /** - * Convert an instance of FlowcontrolV1Subject to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FlowcontrolV1Subject to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java index 3bbfa48737..fba1a6a1a7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,103 +50,107 @@ * Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names. */ @ApiModel(description = "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class RbacV1Subject { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) + @jakarta.annotation.Nullable private String apiGroup; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nonnull private String kind; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) + @jakarta.annotation.Nullable private String namespace; public RbacV1Subject() { } - public RbacV1Subject apiGroup(String apiGroup) { + public RbacV1Subject apiGroup(@jakarta.annotation.Nullable String apiGroup) { this.apiGroup = apiGroup; return this; } - /** + /** * APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. * @return apiGroup - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.") public String getApiGroup() { return apiGroup; } - public void setApiGroup(String apiGroup) { + public void setApiGroup(@jakarta.annotation.Nullable String apiGroup) { this.apiGroup = apiGroup; } - public RbacV1Subject kind(String kind) { + public RbacV1Subject kind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; return this; } - /** + /** * Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. * @return kind - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error.") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; } - public RbacV1Subject name(String name) { + public RbacV1Subject name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name of the object being referenced. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name of the object being referenced.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public RbacV1Subject namespace(String namespace) { + public RbacV1Subject namespace(@jakarta.annotation.Nullable String namespace) { this.namespace = namespace; return this; } - /** + /** * Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. * @return namespace - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.") public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { + public void setNamespace(@jakarta.annotation.Nullable String namespace) { this.namespace = namespace; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to RbacV1Subject - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to RbacV1Subject + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RbacV1Subject.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -285,22 +288,22 @@ public RbacV1Subject read(JsonReader in) throws IOException { } } - /** - * Create an instance of RbacV1Subject given an JSON string - * - * @param jsonString JSON string - * @return An instance of RbacV1Subject - * @throws IOException if the JSON string is invalid with respect to RbacV1Subject - */ + /** + * Create an instance of RbacV1Subject given an JSON string + * + * @param jsonString JSON string + * @return An instance of RbacV1Subject + * @throws IOException if the JSON string is invalid with respect to RbacV1Subject + */ public static RbacV1Subject fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, RbacV1Subject.class); } - /** - * Convert an instance of RbacV1Subject to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of RbacV1Subject to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java index 49cf956bf8..df65ed14f0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * TokenRequest contains parameters of a service account token. */ @ApiModel(description = "TokenRequest contains parameters of a service account token.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class StorageV1TokenRequest { public static final String SERIALIZED_NAME_AUDIENCE = "audience"; @SerializedName(SERIALIZED_NAME_AUDIENCE) + @jakarta.annotation.Nonnull private String audience; public static final String SERIALIZED_NAME_EXPIRATION_SECONDS = "expirationSeconds"; @SerializedName(SERIALIZED_NAME_EXPIRATION_SECONDS) + @jakarta.annotation.Nullable private Long expirationSeconds; public StorageV1TokenRequest() { } - public StorageV1TokenRequest audience(String audience) { + public StorageV1TokenRequest audience(@jakarta.annotation.Nonnull String audience) { this.audience = audience; return this; } - /** + /** * audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver. * @return audience - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver.") public String getAudience() { return audience; } - public void setAudience(String audience) { + public void setAudience(@jakarta.annotation.Nonnull String audience) { this.audience = audience; } - public StorageV1TokenRequest expirationSeconds(Long expirationSeconds) { + public StorageV1TokenRequest expirationSeconds(@jakarta.annotation.Nullable Long expirationSeconds) { this.expirationSeconds = expirationSeconds; return this; } - /** + /** * expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\". * @return expirationSeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\".") public Long getExpirationSeconds() { return expirationSeconds; } - public void setExpirationSeconds(Long expirationSeconds) { + public void setExpirationSeconds(@jakarta.annotation.Nullable Long expirationSeconds) { this.expirationSeconds = expirationSeconds; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("audience"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to StorageV1TokenRequest - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to StorageV1TokenRequest + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StorageV1TokenRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -221,22 +222,22 @@ public StorageV1TokenRequest read(JsonReader in) throws IOException { } } - /** - * Create an instance of StorageV1TokenRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of StorageV1TokenRequest - * @throws IOException if the JSON string is invalid with respect to StorageV1TokenRequest - */ + /** + * Create an instance of StorageV1TokenRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of StorageV1TokenRequest + * @throws IOException if the JSON string is invalid with respect to StorageV1TokenRequest + */ public static StorageV1TokenRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, StorageV1TokenRequest.class); } - /** - * Convert an instance of StorageV1TokenRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of StorageV1TokenRequest to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java index 82662084ca..8578747b53 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,116 +54,122 @@ * APIGroup contains the name, the supported versions, and the preferred version of a group. */ @ApiModel(description = "APIGroup contains the name, the supported versions, and the preferred version of a group.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1APIGroup { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PREFERRED_VERSION = "preferredVersion"; @SerializedName(SERIALIZED_NAME_PREFERRED_VERSION) + @jakarta.annotation.Nullable private V1GroupVersionForDiscovery preferredVersion; public static final String SERIALIZED_NAME_SERVER_ADDRESS_BY_CLIENT_C_I_D_RS = "serverAddressByClientCIDRs"; @SerializedName(SERIALIZED_NAME_SERVER_ADDRESS_BY_CLIENT_C_I_D_RS) + @jakarta.annotation.Nullable private List serverAddressByClientCIDRs = new ArrayList<>(); public static final String SERIALIZED_NAME_VERSIONS = "versions"; @SerializedName(SERIALIZED_NAME_VERSIONS) + @jakarta.annotation.Nonnull private List versions = new ArrayList<>(); public V1APIGroup() { } - public V1APIGroup apiVersion(String apiVersion) { + public V1APIGroup apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1APIGroup kind(String kind) { + public V1APIGroup kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1APIGroup name(String name) { + public V1APIGroup name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * name is the name of the group. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "name is the name of the group.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1APIGroup preferredVersion(V1GroupVersionForDiscovery preferredVersion) { + public V1APIGroup preferredVersion(@jakarta.annotation.Nullable V1GroupVersionForDiscovery preferredVersion) { this.preferredVersion = preferredVersion; return this; } - /** + /** * Get preferredVersion * @return preferredVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1GroupVersionForDiscovery getPreferredVersion() { return preferredVersion; } - public void setPreferredVersion(V1GroupVersionForDiscovery preferredVersion) { + public void setPreferredVersion(@jakarta.annotation.Nullable V1GroupVersionForDiscovery preferredVersion) { this.preferredVersion = preferredVersion; } - public V1APIGroup serverAddressByClientCIDRs(List serverAddressByClientCIDRs) { + public V1APIGroup serverAddressByClientCIDRs(@jakarta.annotation.Nullable List serverAddressByClientCIDRs) { this.serverAddressByClientCIDRs = serverAddressByClientCIDRs; return this; } @@ -177,22 +182,22 @@ public V1APIGroup addServerAddressByClientCIDRsItem(V1ServerAddressByClientCIDR return this; } - /** + /** * a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. * @return serverAddressByClientCIDRs - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.") public List getServerAddressByClientCIDRs() { return serverAddressByClientCIDRs; } - public void setServerAddressByClientCIDRs(List serverAddressByClientCIDRs) { + public void setServerAddressByClientCIDRs(@jakarta.annotation.Nullable List serverAddressByClientCIDRs) { this.serverAddressByClientCIDRs = serverAddressByClientCIDRs; } - public V1APIGroup versions(List versions) { + public V1APIGroup versions(@jakarta.annotation.Nonnull List versions) { this.versions = versions; return this; } @@ -205,17 +210,17 @@ public V1APIGroup addVersionsItem(V1GroupVersionForDiscovery versionsItem) { return this; } - /** + /** * versions are the versions supported in this group. * @return versions - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "versions are the versions supported in this group.") public List getVersions() { return versions; } - public void setVersions(List versions) { + public void setVersions(@jakarta.annotation.Nonnull List versions) { this.versions = versions; } @@ -288,12 +293,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("versions"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1APIGroup - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1APIGroup + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1APIGroup.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -384,22 +389,22 @@ public V1APIGroup read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1APIGroup given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1APIGroup - * @throws IOException if the JSON string is invalid with respect to V1APIGroup - */ + /** + * Create an instance of V1APIGroup given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1APIGroup + * @throws IOException if the JSON string is invalid with respect to V1APIGroup + */ public static V1APIGroup fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1APIGroup.class); } - /** - * Convert an instance of V1APIGroup to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1APIGroup to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java index bff42a1370..e7b32b18d4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,44 +53,47 @@ * APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis. */ @ApiModel(description = "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1APIGroupList { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_GROUPS = "groups"; @SerializedName(SERIALIZED_NAME_GROUPS) + @jakarta.annotation.Nonnull private List groups = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public V1APIGroupList() { } - public V1APIGroupList apiVersion(String apiVersion) { + public V1APIGroupList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1APIGroupList groups(List groups) { + public V1APIGroupList groups(@jakarta.annotation.Nonnull List groups) { this.groups = groups; return this; } @@ -104,37 +106,37 @@ public V1APIGroupList addGroupsItem(V1APIGroup groupsItem) { return this; } - /** + /** * groups is a list of APIGroup. * @return groups - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "groups is a list of APIGroup.") public List getGroups() { return groups; } - public void setGroups(List groups) { + public void setGroups(@jakarta.annotation.Nonnull List groups) { this.groups = groups; } - public V1APIGroupList kind(String kind) { + public V1APIGroupList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } @@ -197,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("groups"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1APIGroupList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1APIGroupList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1APIGroupList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -272,22 +274,22 @@ public V1APIGroupList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1APIGroupList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1APIGroupList - * @throws IOException if the JSON string is invalid with respect to V1APIGroupList - */ + /** + * Create an instance of V1APIGroupList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1APIGroupList + * @throws IOException if the JSON string is invalid with respect to V1APIGroupList + */ public static V1APIGroupList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1APIGroupList.class); } - /** - * Convert an instance of V1APIGroupList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1APIGroupList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResource.java index 2f9dca63ad..cd9730621a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResource.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,52 +52,62 @@ * APIResource specifies the name of a resource and whether it is namespaced. */ @ApiModel(description = "APIResource specifies the name of a resource and whether it is namespaced.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1APIResource { public static final String SERIALIZED_NAME_CATEGORIES = "categories"; @SerializedName(SERIALIZED_NAME_CATEGORIES) + @jakarta.annotation.Nullable private List categories = new ArrayList<>(); public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) + @jakarta.annotation.Nullable private String group; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nonnull private String kind; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_NAMESPACED = "namespaced"; @SerializedName(SERIALIZED_NAME_NAMESPACED) + @jakarta.annotation.Nonnull private Boolean namespaced; public static final String SERIALIZED_NAME_SHORT_NAMES = "shortNames"; @SerializedName(SERIALIZED_NAME_SHORT_NAMES) + @jakarta.annotation.Nullable private List shortNames = new ArrayList<>(); public static final String SERIALIZED_NAME_SINGULAR_NAME = "singularName"; @SerializedName(SERIALIZED_NAME_SINGULAR_NAME) + @jakarta.annotation.Nonnull private String singularName; public static final String SERIALIZED_NAME_STORAGE_VERSION_HASH = "storageVersionHash"; @SerializedName(SERIALIZED_NAME_STORAGE_VERSION_HASH) + @jakarta.annotation.Nullable private String storageVersionHash; public static final String SERIALIZED_NAME_VERBS = "verbs"; @SerializedName(SERIALIZED_NAME_VERBS) + @jakarta.annotation.Nonnull private List verbs = new ArrayList<>(); public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) + @jakarta.annotation.Nullable private String version; public V1APIResource() { } - public V1APIResource categories(List categories) { + public V1APIResource categories(@jakarta.annotation.Nullable List categories) { this.categories = categories; return this; } @@ -111,102 +120,102 @@ public V1APIResource addCategoriesItem(String categoriesItem) { return this; } - /** + /** * categories is a list of the grouped resources this resource belongs to (e.g. 'all') * @return categories - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "categories is a list of the grouped resources this resource belongs to (e.g. 'all')") public List getCategories() { return categories; } - public void setCategories(List categories) { + public void setCategories(@jakarta.annotation.Nullable List categories) { this.categories = categories; } - public V1APIResource group(String group) { + public V1APIResource group(@jakarta.annotation.Nullable String group) { this.group = group; return this; } - /** + /** * group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\". * @return group - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".") public String getGroup() { return group; } - public void setGroup(String group) { + public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; } - public V1APIResource kind(String kind) { + public V1APIResource kind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; return this; } - /** + /** * kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') * @return kind - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; } - public V1APIResource name(String name) { + public V1APIResource name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * name is the plural name of the resource. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "name is the plural name of the resource.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1APIResource namespaced(Boolean namespaced) { + public V1APIResource namespaced(@jakarta.annotation.Nonnull Boolean namespaced) { this.namespaced = namespaced; return this; } - /** + /** * namespaced indicates if a resource is namespaced or not. * @return namespaced - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "namespaced indicates if a resource is namespaced or not.") public Boolean getNamespaced() { return namespaced; } - public void setNamespaced(Boolean namespaced) { + public void setNamespaced(@jakarta.annotation.Nonnull Boolean namespaced) { this.namespaced = namespaced; } - public V1APIResource shortNames(List shortNames) { + public V1APIResource shortNames(@jakarta.annotation.Nullable List shortNames) { this.shortNames = shortNames; return this; } @@ -219,62 +228,62 @@ public V1APIResource addShortNamesItem(String shortNamesItem) { return this; } - /** + /** * shortNames is a list of suggested short names of the resource. * @return shortNames - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "shortNames is a list of suggested short names of the resource.") public List getShortNames() { return shortNames; } - public void setShortNames(List shortNames) { + public void setShortNames(@jakarta.annotation.Nullable List shortNames) { this.shortNames = shortNames; } - public V1APIResource singularName(String singularName) { + public V1APIResource singularName(@jakarta.annotation.Nonnull String singularName) { this.singularName = singularName; return this; } - /** + /** * singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface. * @return singularName - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.") public String getSingularName() { return singularName; } - public void setSingularName(String singularName) { + public void setSingularName(@jakarta.annotation.Nonnull String singularName) { this.singularName = singularName; } - public V1APIResource storageVersionHash(String storageVersionHash) { + public V1APIResource storageVersionHash(@jakarta.annotation.Nullable String storageVersionHash) { this.storageVersionHash = storageVersionHash; return this; } - /** + /** * The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates. * @return storageVersionHash - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.") public String getStorageVersionHash() { return storageVersionHash; } - public void setStorageVersionHash(String storageVersionHash) { + public void setStorageVersionHash(@jakarta.annotation.Nullable String storageVersionHash) { this.storageVersionHash = storageVersionHash; } - public V1APIResource verbs(List verbs) { + public V1APIResource verbs(@jakarta.annotation.Nonnull List verbs) { this.verbs = verbs; return this; } @@ -287,37 +296,37 @@ public V1APIResource addVerbsItem(String verbsItem) { return this; } - /** + /** * verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) * @return verbs - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)") public List getVerbs() { return verbs; } - public void setVerbs(List verbs) { + public void setVerbs(@jakarta.annotation.Nonnull List verbs) { this.verbs = verbs; } - public V1APIResource version(String version) { + public V1APIResource version(@jakarta.annotation.Nullable String version) { this.version = version; return this; } - /** + /** * version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\". * @return version - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".") public String getVersion() { return version; } - public void setVersion(String version) { + public void setVersion(@jakarta.annotation.Nullable String version) { this.version = version; } @@ -405,12 +414,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("verbs"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1APIResource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1APIResource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1APIResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -496,22 +505,22 @@ public V1APIResource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1APIResource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1APIResource - * @throws IOException if the JSON string is invalid with respect to V1APIResource - */ + /** + * Create an instance of V1APIResource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1APIResource + * @throws IOException if the JSON string is invalid with respect to V1APIResource + */ public static V1APIResource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1APIResource.class); } - /** - * Convert an instance of V1APIResource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1APIResource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceList.java index 5b89d4a6f7..87537d81f5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceList.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,88 +53,92 @@ * APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced. */ @ApiModel(description = "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1APIResourceList { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_GROUP_VERSION = "groupVersion"; @SerializedName(SERIALIZED_NAME_GROUP_VERSION) + @jakarta.annotation.Nonnull private String groupVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) + @jakarta.annotation.Nonnull private List resources = new ArrayList<>(); public V1APIResourceList() { } - public V1APIResourceList apiVersion(String apiVersion) { + public V1APIResourceList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1APIResourceList groupVersion(String groupVersion) { + public V1APIResourceList groupVersion(@jakarta.annotation.Nonnull String groupVersion) { this.groupVersion = groupVersion; return this; } - /** + /** * groupVersion is the group and version this APIResourceList is for. * @return groupVersion - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "groupVersion is the group and version this APIResourceList is for.") public String getGroupVersion() { return groupVersion; } - public void setGroupVersion(String groupVersion) { + public void setGroupVersion(@jakarta.annotation.Nonnull String groupVersion) { this.groupVersion = groupVersion; } - public V1APIResourceList kind(String kind) { + public V1APIResourceList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1APIResourceList resources(List resources) { + public V1APIResourceList resources(@jakarta.annotation.Nonnull List resources) { this.resources = resources; return this; } @@ -148,17 +151,17 @@ public V1APIResourceList addResourcesItem(V1APIResource resourcesItem) { return this; } - /** + /** * resources contains the name of the resources and if they are namespaced. * @return resources - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "resources contains the name of the resources and if they are namespaced.") public List getResources() { return resources; } - public void setResources(List resources) { + public void setResources(@jakarta.annotation.Nonnull List resources) { this.resources = resources; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("resources"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1APIResourceList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1APIResourceList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1APIResourceList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -303,22 +306,22 @@ public V1APIResourceList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1APIResourceList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1APIResourceList - * @throws IOException if the JSON string is invalid with respect to V1APIResourceList - */ + /** + * Create an instance of V1APIResourceList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1APIResourceList + * @throws IOException if the JSON string is invalid with respect to V1APIResourceList + */ public static V1APIResourceList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1APIResourceList.class); } - /** - * Convert an instance of V1APIResourceList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1APIResourceList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIService.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIService.java index 452a0d5027..93fa260687 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIService.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIService.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * APIService represents a server for a particular GroupVersion. Name must be \"version.group\". */ @ApiModel(description = "APIService represents a server for a particular GroupVersion. Name must be \"version.group\".") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1APIService implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1APIServiceSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1APIServiceStatus status; public V1APIService() { } - public V1APIService apiVersion(String apiVersion) { + public V1APIService apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1APIService kind(String kind) { + public V1APIService kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1APIService metadata(V1ObjectMeta metadata) { + public V1APIService metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1APIService spec(V1APIServiceSpec spec) { + public V1APIService spec(@jakarta.annotation.Nullable V1APIServiceSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1APIServiceSpec getSpec() { return spec; } - public void setSpec(V1APIServiceSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1APIServiceSpec spec) { this.spec = spec; } - public V1APIService status(V1APIServiceStatus status) { + public V1APIService status(@jakarta.annotation.Nullable V1APIServiceStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1APIServiceStatus getStatus() { return status; } - public void setStatus(V1APIServiceStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1APIServiceStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1APIService - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1APIService + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1APIService.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1APIService read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1APIService given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1APIService - * @throws IOException if the JSON string is invalid with respect to V1APIService - */ + /** + * Create an instance of V1APIService given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1APIService + * @throws IOException if the JSON string is invalid with respect to V1APIService + */ public static V1APIService fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1APIService.class); } - /** - * Convert an instance of V1APIService to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1APIService to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceCondition.java index 26f3955e92..b5af4e8026 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceCondition.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,127 +51,132 @@ * APIServiceCondition describes the state of an APIService at a particular point */ @ApiModel(description = "APIServiceCondition describes the state of an APIService at a particular point") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1APIServiceCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nonnull private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1APIServiceCondition() { } - public V1APIServiceCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { + public V1APIServiceCondition lastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; } - /** + /** * Last time the condition transitioned from one status to another. * @return lastTransitionTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { + public void setLastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } - public V1APIServiceCondition message(String message) { + public V1APIServiceCondition message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * Human-readable message indicating details about last transition. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Human-readable message indicating details about last transition.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1APIServiceCondition reason(String reason) { + public V1APIServiceCondition reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * Unique, one-word, CamelCase reason for the condition's last transition. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Unique, one-word, CamelCase reason for the condition's last transition.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } - public V1APIServiceCondition status(String status) { + public V1APIServiceCondition status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } - /** + /** * Status is the status of the condition. Can be True, False, Unknown. * @return status - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Status is the status of the condition. Can be True, False, Unknown.") public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public V1APIServiceCondition type(String type) { + public V1APIServiceCondition type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * Type is the type of the condition. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Type is the type of the condition.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1APIServiceCondition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1APIServiceCondition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1APIServiceCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -313,22 +317,22 @@ public V1APIServiceCondition read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1APIServiceCondition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1APIServiceCondition - * @throws IOException if the JSON string is invalid with respect to V1APIServiceCondition - */ + /** + * Create an instance of V1APIServiceCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1APIServiceCondition + * @throws IOException if the JSON string is invalid with respect to V1APIServiceCondition + */ public static V1APIServiceCondition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1APIServiceCondition.class); } - /** - * Convert an instance of V1APIServiceCondition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1APIServiceCondition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceList.java index 6f3013b21a..c0ab4feece 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * APIServiceList is a list of APIService objects. */ @ApiModel(description = "APIServiceList is a list of APIService objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1APIServiceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1APIServiceList() { } - public V1APIServiceList apiVersion(String apiVersion) { + public V1APIServiceList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1APIServiceList items(List items) { + public V1APIServiceList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1APIServiceList addItemsItem(V1APIService itemsItem) { return this; } - /** + /** * Items is the list of APIService * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items is the list of APIService") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1APIServiceList kind(String kind) { + public V1APIServiceList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1APIServiceList metadata(V1ListMeta metadata) { + public V1APIServiceList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1APIServiceList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1APIServiceList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1APIServiceList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1APIServiceList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1APIServiceList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1APIServiceList - * @throws IOException if the JSON string is invalid with respect to V1APIServiceList - */ + /** + * Create an instance of V1APIServiceList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1APIServiceList + * @throws IOException if the JSON string is invalid with respect to V1APIServiceList + */ public static V1APIServiceList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1APIServiceList.class); } - /** - * Convert an instance of V1APIServiceList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1APIServiceList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpec.java index 5a4d823058..6ec0eeb48a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpec.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,175 +51,182 @@ * APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification. */ @ApiModel(description = "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1APIServiceSpec { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; @SerializedName(SERIALIZED_NAME_CA_BUNDLE) + @jakarta.annotation.Nullable private byte[] caBundle; public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) + @jakarta.annotation.Nullable private String group; public static final String SERIALIZED_NAME_GROUP_PRIORITY_MINIMUM = "groupPriorityMinimum"; @SerializedName(SERIALIZED_NAME_GROUP_PRIORITY_MINIMUM) + @jakarta.annotation.Nonnull private Integer groupPriorityMinimum; public static final String SERIALIZED_NAME_INSECURE_SKIP_T_L_S_VERIFY = "insecureSkipTLSVerify"; @SerializedName(SERIALIZED_NAME_INSECURE_SKIP_T_L_S_VERIFY) + @jakarta.annotation.Nullable private Boolean insecureSkipTLSVerify; public static final String SERIALIZED_NAME_SERVICE = "service"; @SerializedName(SERIALIZED_NAME_SERVICE) + @jakarta.annotation.Nullable private ApiregistrationV1ServiceReference service; public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) + @jakarta.annotation.Nullable private String version; public static final String SERIALIZED_NAME_VERSION_PRIORITY = "versionPriority"; @SerializedName(SERIALIZED_NAME_VERSION_PRIORITY) + @jakarta.annotation.Nonnull private Integer versionPriority; public V1APIServiceSpec() { } - public V1APIServiceSpec caBundle(byte[] caBundle) { + public V1APIServiceSpec caBundle(@jakarta.annotation.Nullable byte[] caBundle) { this.caBundle = caBundle; return this; } - /** + /** * CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. * @return caBundle - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used.") public byte[] getCaBundle() { return caBundle; } - public void setCaBundle(byte[] caBundle) { + public void setCaBundle(@jakarta.annotation.Nullable byte[] caBundle) { this.caBundle = caBundle; } - public V1APIServiceSpec group(String group) { + public V1APIServiceSpec group(@jakarta.annotation.Nullable String group) { this.group = group; return this; } - /** + /** * Group is the API group name this server hosts * @return group - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Group is the API group name this server hosts") public String getGroup() { return group; } - public void setGroup(String group) { + public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; } - public V1APIServiceSpec groupPriorityMinimum(Integer groupPriorityMinimum) { + public V1APIServiceSpec groupPriorityMinimum(@jakarta.annotation.Nonnull Integer groupPriorityMinimum) { this.groupPriorityMinimum = groupPriorityMinimum; return this; } - /** + /** * GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s * @return groupPriorityMinimum - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s") public Integer getGroupPriorityMinimum() { return groupPriorityMinimum; } - public void setGroupPriorityMinimum(Integer groupPriorityMinimum) { + public void setGroupPriorityMinimum(@jakarta.annotation.Nonnull Integer groupPriorityMinimum) { this.groupPriorityMinimum = groupPriorityMinimum; } - public V1APIServiceSpec insecureSkipTLSVerify(Boolean insecureSkipTLSVerify) { + public V1APIServiceSpec insecureSkipTLSVerify(@jakarta.annotation.Nullable Boolean insecureSkipTLSVerify) { this.insecureSkipTLSVerify = insecureSkipTLSVerify; return this; } - /** + /** * InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. * @return insecureSkipTLSVerify - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.") public Boolean getInsecureSkipTLSVerify() { return insecureSkipTLSVerify; } - public void setInsecureSkipTLSVerify(Boolean insecureSkipTLSVerify) { + public void setInsecureSkipTLSVerify(@jakarta.annotation.Nullable Boolean insecureSkipTLSVerify) { this.insecureSkipTLSVerify = insecureSkipTLSVerify; } - public V1APIServiceSpec service(ApiregistrationV1ServiceReference service) { + public V1APIServiceSpec service(@jakarta.annotation.Nullable ApiregistrationV1ServiceReference service) { this.service = service; return this; } - /** + /** * Get service * @return service - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public ApiregistrationV1ServiceReference getService() { return service; } - public void setService(ApiregistrationV1ServiceReference service) { + public void setService(@jakarta.annotation.Nullable ApiregistrationV1ServiceReference service) { this.service = service; } - public V1APIServiceSpec version(String version) { + public V1APIServiceSpec version(@jakarta.annotation.Nullable String version) { this.version = version; return this; } - /** + /** * Version is the API version this server hosts. For example, \"v1\" * @return version - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Version is the API version this server hosts. For example, \"v1\"") public String getVersion() { return version; } - public void setVersion(String version) { + public void setVersion(@jakarta.annotation.Nullable String version) { this.version = version; } - public V1APIServiceSpec versionPriority(Integer versionPriority) { + public V1APIServiceSpec versionPriority(@jakarta.annotation.Nonnull Integer versionPriority) { this.versionPriority = versionPriority; return this; } - /** + /** * VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. * @return versionPriority - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.") public Integer getVersionPriority() { return versionPriority; } - public void setVersionPriority(Integer versionPriority) { + public void setVersionPriority(@jakarta.annotation.Nonnull Integer versionPriority) { this.versionPriority = versionPriority; } @@ -296,12 +302,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("versionPriority"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1APIServiceSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1APIServiceSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1APIServiceSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -365,22 +371,22 @@ public V1APIServiceSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1APIServiceSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1APIServiceSpec - * @throws IOException if the JSON string is invalid with respect to V1APIServiceSpec - */ + /** + * Create an instance of V1APIServiceSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1APIServiceSpec + * @throws IOException if the JSON string is invalid with respect to V1APIServiceSpec + */ public static V1APIServiceSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1APIServiceSpec.class); } - /** - * Convert an instance of V1APIServiceSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1APIServiceSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatus.java index e4dda57a0e..171f0547d9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatus.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,16 +53,17 @@ * APIServiceStatus contains derived information about an API server */ @ApiModel(description = "APIServiceStatus contains derived information about an API server") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1APIServiceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); public V1APIServiceStatus() { } - public V1APIServiceStatus conditions(List conditions) { + public V1APIServiceStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } @@ -76,17 +76,17 @@ public V1APIServiceStatus addConditionsItem(V1APIServiceCondition conditionsItem return this; } - /** + /** * Current service state of apiService. * @return conditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Current service state of apiService.") public List getConditions() { return conditions; } - public void setConditions(List conditions) { + public void setConditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; } @@ -142,12 +142,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1APIServiceStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1APIServiceStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1APIServiceStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -208,22 +208,22 @@ public V1APIServiceStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1APIServiceStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1APIServiceStatus - * @throws IOException if the JSON string is invalid with respect to V1APIServiceStatus - */ + /** + * Create an instance of V1APIServiceStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1APIServiceStatus + * @throws IOException if the JSON string is invalid with respect to V1APIServiceStatus + */ public static V1APIServiceStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1APIServiceStatus.class); } - /** - * Convert an instance of V1APIServiceStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1APIServiceStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java index ba84276333..1501a439b9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,68 +53,72 @@ * APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API. */ @ApiModel(description = "APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1APIVersions { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_SERVER_ADDRESS_BY_CLIENT_C_I_D_RS = "serverAddressByClientCIDRs"; @SerializedName(SERIALIZED_NAME_SERVER_ADDRESS_BY_CLIENT_C_I_D_RS) + @jakarta.annotation.Nonnull private List serverAddressByClientCIDRs = new ArrayList<>(); public static final String SERIALIZED_NAME_VERSIONS = "versions"; @SerializedName(SERIALIZED_NAME_VERSIONS) + @jakarta.annotation.Nonnull private List versions = new ArrayList<>(); public V1APIVersions() { } - public V1APIVersions apiVersion(String apiVersion) { + public V1APIVersions apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1APIVersions kind(String kind) { + public V1APIVersions kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1APIVersions serverAddressByClientCIDRs(List serverAddressByClientCIDRs) { + public V1APIVersions serverAddressByClientCIDRs(@jakarta.annotation.Nonnull List serverAddressByClientCIDRs) { this.serverAddressByClientCIDRs = serverAddressByClientCIDRs; return this; } @@ -128,22 +131,22 @@ public V1APIVersions addServerAddressByClientCIDRsItem(V1ServerAddressByClientCI return this; } - /** + /** * a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. * @return serverAddressByClientCIDRs - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.") public List getServerAddressByClientCIDRs() { return serverAddressByClientCIDRs; } - public void setServerAddressByClientCIDRs(List serverAddressByClientCIDRs) { + public void setServerAddressByClientCIDRs(@jakarta.annotation.Nonnull List serverAddressByClientCIDRs) { this.serverAddressByClientCIDRs = serverAddressByClientCIDRs; } - public V1APIVersions versions(List versions) { + public V1APIVersions versions(@jakarta.annotation.Nonnull List versions) { this.versions = versions; return this; } @@ -156,17 +159,17 @@ public V1APIVersions addVersionsItem(String versionsItem) { return this; } - /** + /** * versions are the api versions that are available. * @return versions - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "versions are the api versions that are available.") public List getVersions() { return versions; } - public void setVersions(List versions) { + public void setVersions(@jakarta.annotation.Nonnull List versions) { this.versions = versions; } @@ -233,12 +236,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("versions"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1APIVersions - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1APIVersions + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1APIVersions.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -314,22 +317,22 @@ public V1APIVersions read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1APIVersions given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1APIVersions - * @throws IOException if the JSON string is invalid with respect to V1APIVersions - */ + /** + * Create an instance of V1APIVersions given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1APIVersions + * @throws IOException if the JSON string is invalid with respect to V1APIVersions + */ public static V1APIVersions fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1APIVersions.class); } - /** - * Convert an instance of V1APIVersions to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1APIVersions to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java index be3aeb1ffd..d268a9cc49 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,103 +50,107 @@ * Represents a Persistent Disk resource in AWS. An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a Persistent Disk resource in AWS. An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1AWSElasticBlockStoreVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) + @jakarta.annotation.Nullable private String fsType; public static final String SERIALIZED_NAME_PARTITION = "partition"; @SerializedName(SERIALIZED_NAME_PARTITION) + @jakarta.annotation.Nullable private Integer partition; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_VOLUME_I_D = "volumeID"; @SerializedName(SERIALIZED_NAME_VOLUME_I_D) + @jakarta.annotation.Nonnull private String volumeID; public V1AWSElasticBlockStoreVolumeSource() { } - public V1AWSElasticBlockStoreVolumeSource fsType(String fsType) { + public V1AWSElasticBlockStoreVolumeSource fsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; return this; } - /** + /** * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore * @return fsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore") public String getFsType() { return fsType; } - public void setFsType(String fsType) { + public void setFsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; } - public V1AWSElasticBlockStoreVolumeSource partition(Integer partition) { + public V1AWSElasticBlockStoreVolumeSource partition(@jakarta.annotation.Nullable Integer partition) { this.partition = partition; return this; } - /** + /** * partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). * @return partition - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).") public Integer getPartition() { return partition; } - public void setPartition(Integer partition) { + public void setPartition(@jakarta.annotation.Nullable Integer partition) { this.partition = partition; } - public V1AWSElasticBlockStoreVolumeSource readOnly(Boolean readOnly) { + public V1AWSElasticBlockStoreVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1AWSElasticBlockStoreVolumeSource volumeID(String volumeID) { + public V1AWSElasticBlockStoreVolumeSource volumeID(@jakarta.annotation.Nonnull String volumeID) { this.volumeID = volumeID; return this; } - /** + /** * volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore * @return volumeID - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore") public String getVolumeID() { return volumeID; } - public void setVolumeID(String volumeID) { + public void setVolumeID(@jakarta.annotation.Nonnull String volumeID) { this.volumeID = volumeID; } @@ -213,12 +216,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("volumeID"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1AWSElasticBlockStoreVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1AWSElasticBlockStoreVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1AWSElasticBlockStoreVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -278,22 +281,22 @@ public V1AWSElasticBlockStoreVolumeSource read(JsonReader in) throws IOException } } - /** - * Create an instance of V1AWSElasticBlockStoreVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1AWSElasticBlockStoreVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1AWSElasticBlockStoreVolumeSource - */ + /** + * Create an instance of V1AWSElasticBlockStoreVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1AWSElasticBlockStoreVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1AWSElasticBlockStoreVolumeSource + */ public static V1AWSElasticBlockStoreVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1AWSElasticBlockStoreVolumeSource.class); } - /** - * Convert an instance of V1AWSElasticBlockStoreVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1AWSElasticBlockStoreVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java index 7fb8e7583d..6dd6a86130 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,79 +53,82 @@ * Affinity is a group of affinity scheduling rules. */ @ApiModel(description = "Affinity is a group of affinity scheduling rules.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Affinity { public static final String SERIALIZED_NAME_NODE_AFFINITY = "nodeAffinity"; @SerializedName(SERIALIZED_NAME_NODE_AFFINITY) + @jakarta.annotation.Nullable private V1NodeAffinity nodeAffinity; public static final String SERIALIZED_NAME_POD_AFFINITY = "podAffinity"; @SerializedName(SERIALIZED_NAME_POD_AFFINITY) + @jakarta.annotation.Nullable private V1PodAffinity podAffinity; public static final String SERIALIZED_NAME_POD_ANTI_AFFINITY = "podAntiAffinity"; @SerializedName(SERIALIZED_NAME_POD_ANTI_AFFINITY) + @jakarta.annotation.Nullable private V1PodAntiAffinity podAntiAffinity; public V1Affinity() { } - public V1Affinity nodeAffinity(V1NodeAffinity nodeAffinity) { + public V1Affinity nodeAffinity(@jakarta.annotation.Nullable V1NodeAffinity nodeAffinity) { this.nodeAffinity = nodeAffinity; return this; } - /** + /** * Get nodeAffinity * @return nodeAffinity - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1NodeAffinity getNodeAffinity() { return nodeAffinity; } - public void setNodeAffinity(V1NodeAffinity nodeAffinity) { + public void setNodeAffinity(@jakarta.annotation.Nullable V1NodeAffinity nodeAffinity) { this.nodeAffinity = nodeAffinity; } - public V1Affinity podAffinity(V1PodAffinity podAffinity) { + public V1Affinity podAffinity(@jakarta.annotation.Nullable V1PodAffinity podAffinity) { this.podAffinity = podAffinity; return this; } - /** + /** * Get podAffinity * @return podAffinity - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PodAffinity getPodAffinity() { return podAffinity; } - public void setPodAffinity(V1PodAffinity podAffinity) { + public void setPodAffinity(@jakarta.annotation.Nullable V1PodAffinity podAffinity) { this.podAffinity = podAffinity; } - public V1Affinity podAntiAffinity(V1PodAntiAffinity podAntiAffinity) { + public V1Affinity podAntiAffinity(@jakarta.annotation.Nullable V1PodAntiAffinity podAntiAffinity) { this.podAntiAffinity = podAntiAffinity; return this; } - /** + /** * Get podAntiAffinity * @return podAntiAffinity - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PodAntiAffinity getPodAntiAffinity() { return podAntiAffinity; } - public void setPodAntiAffinity(V1PodAntiAffinity podAntiAffinity) { + public void setPodAntiAffinity(@jakarta.annotation.Nullable V1PodAntiAffinity podAntiAffinity) { this.podAntiAffinity = podAntiAffinity; } @@ -188,12 +190,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Affinity - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Affinity + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Affinity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -252,22 +254,22 @@ public V1Affinity read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Affinity given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Affinity - * @throws IOException if the JSON string is invalid with respect to V1Affinity - */ + /** + * Create an instance of V1Affinity given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Affinity + * @throws IOException if the JSON string is invalid with respect to V1Affinity + */ public static V1Affinity fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Affinity.class); } - /** - * Convert an instance of V1Affinity to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Affinity to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java index c02ecb12f4..6dc9266408 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,16 +53,17 @@ * AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole */ @ApiModel(description = "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1AggregationRule { public static final String SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS = "clusterRoleSelectors"; @SerializedName(SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS) + @jakarta.annotation.Nullable private List clusterRoleSelectors = new ArrayList<>(); public V1AggregationRule() { } - public V1AggregationRule clusterRoleSelectors(List clusterRoleSelectors) { + public V1AggregationRule clusterRoleSelectors(@jakarta.annotation.Nullable List clusterRoleSelectors) { this.clusterRoleSelectors = clusterRoleSelectors; return this; } @@ -76,17 +76,17 @@ public V1AggregationRule addClusterRoleSelectorsItem(V1LabelSelector clusterRole return this; } - /** + /** * ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added * @return clusterRoleSelectors - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added") public List getClusterRoleSelectors() { return clusterRoleSelectors; } - public void setClusterRoleSelectors(List clusterRoleSelectors) { + public void setClusterRoleSelectors(@jakarta.annotation.Nullable List clusterRoleSelectors) { this.clusterRoleSelectors = clusterRoleSelectors; } @@ -142,12 +142,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1AggregationRule - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1AggregationRule + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1AggregationRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -208,22 +208,22 @@ public V1AggregationRule read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1AggregationRule given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1AggregationRule - * @throws IOException if the JSON string is invalid with respect to V1AggregationRule - */ + /** + * Create an instance of V1AggregationRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1AggregationRule + * @throws IOException if the JSON string is invalid with respect to V1AggregationRule + */ public static V1AggregationRule fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1AggregationRule.class); } - /** - * Convert an instance of V1AggregationRule to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1AggregationRule to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java index f1b461340d..dbc1930ea0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * AppArmorProfile defines a pod or container's AppArmor settings. */ @ApiModel(description = "AppArmorProfile defines a pod or container's AppArmor settings.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1AppArmorProfile { public static final String SERIALIZED_NAME_LOCALHOST_PROFILE = "localhostProfile"; @SerializedName(SERIALIZED_NAME_LOCALHOST_PROFILE) + @jakarta.annotation.Nullable private String localhostProfile; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1AppArmorProfile() { } - public V1AppArmorProfile localhostProfile(String localhostProfile) { + public V1AppArmorProfile localhostProfile(@jakarta.annotation.Nullable String localhostProfile) { this.localhostProfile = localhostProfile; return this; } - /** + /** * localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \"Localhost\". * @return localhostProfile - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \"Localhost\".") public String getLocalhostProfile() { return localhostProfile; } - public void setLocalhostProfile(String localhostProfile) { + public void setLocalhostProfile(@jakarta.annotation.Nullable String localhostProfile) { this.localhostProfile = localhostProfile; } - public V1AppArmorProfile type(String type) { + public V1AppArmorProfile type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * type indicates which kind of AppArmor profile will be applied. Valid options are: Localhost - a profile pre-loaded on the node. RuntimeDefault - the container runtime's default profile. Unconfined - no AppArmor enforcement. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "type indicates which kind of AppArmor profile will be applied. Valid options are: Localhost - a profile pre-loaded on the node. RuntimeDefault - the container runtime's default profile. Unconfined - no AppArmor enforcement.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1AppArmorProfile - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1AppArmorProfile + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1AppArmorProfile.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -224,22 +225,22 @@ public V1AppArmorProfile read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1AppArmorProfile given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1AppArmorProfile - * @throws IOException if the JSON string is invalid with respect to V1AppArmorProfile - */ + /** + * Create an instance of V1AppArmorProfile given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1AppArmorProfile + * @throws IOException if the JSON string is invalid with respect to V1AppArmorProfile + */ public static V1AppArmorProfile fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1AppArmorProfile.class); } - /** - * Convert an instance of V1AppArmorProfile to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1AppArmorProfile to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java index 8efffb2c74..716d5e1310 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * AttachedVolume describes a volume attached to a node */ @ApiModel(description = "AttachedVolume describes a volume attached to a node") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1AttachedVolume { public static final String SERIALIZED_NAME_DEVICE_PATH = "devicePath"; @SerializedName(SERIALIZED_NAME_DEVICE_PATH) + @jakarta.annotation.Nonnull private String devicePath; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public V1AttachedVolume() { } - public V1AttachedVolume devicePath(String devicePath) { + public V1AttachedVolume devicePath(@jakarta.annotation.Nonnull String devicePath) { this.devicePath = devicePath; return this; } - /** + /** * DevicePath represents the device path where the volume should be available * @return devicePath - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "DevicePath represents the device path where the volume should be available") public String getDevicePath() { return devicePath; } - public void setDevicePath(String devicePath) { + public void setDevicePath(@jakarta.annotation.Nonnull String devicePath) { this.devicePath = devicePath; } - public V1AttachedVolume name(String name) { + public V1AttachedVolume name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name of the attached volume * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name of the attached volume") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1AttachedVolume - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1AttachedVolume + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1AttachedVolume.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -225,22 +226,22 @@ public V1AttachedVolume read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1AttachedVolume given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1AttachedVolume - * @throws IOException if the JSON string is invalid with respect to V1AttachedVolume - */ + /** + * Create an instance of V1AttachedVolume given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1AttachedVolume + * @throws IOException if the JSON string is invalid with respect to V1AttachedVolume + */ public static V1AttachedVolume fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1AttachedVolume.class); } - /** - * Convert an instance of V1AttachedVolume to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1AttachedVolume to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java index 80b8215aac..1692896d8f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * AuditAnnotation describes how to produce an audit annotation for an API request. */ @ApiModel(description = "AuditAnnotation describes how to produce an audit annotation for an API request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1AuditAnnotation { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) + @jakarta.annotation.Nonnull private String key; public static final String SERIALIZED_NAME_VALUE_EXPRESSION = "valueExpression"; @SerializedName(SERIALIZED_NAME_VALUE_EXPRESSION) + @jakarta.annotation.Nonnull private String valueExpression; public V1AuditAnnotation() { } - public V1AuditAnnotation key(String key) { + public V1AuditAnnotation key(@jakarta.annotation.Nonnull String key) { this.key = key; return this; } - /** + /** * key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\". If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. Required. * @return key - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\". If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. Required.") public String getKey() { return key; } - public void setKey(String key) { + public void setKey(@jakarta.annotation.Nonnull String key) { this.key = key; } - public V1AuditAnnotation valueExpression(String valueExpression) { + public V1AuditAnnotation valueExpression(@jakarta.annotation.Nonnull String valueExpression) { this.valueExpression = valueExpression; return this; } - /** + /** * valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. Required. * @return valueExpression - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. Required.") public String getValueExpression() { return valueExpression; } - public void setValueExpression(String valueExpression) { + public void setValueExpression(@jakarta.annotation.Nonnull String valueExpression) { this.valueExpression = valueExpression; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("valueExpression"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1AuditAnnotation - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1AuditAnnotation + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1AuditAnnotation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -225,22 +226,22 @@ public V1AuditAnnotation read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1AuditAnnotation given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1AuditAnnotation - * @throws IOException if the JSON string is invalid with respect to V1AuditAnnotation - */ + /** + * Create an instance of V1AuditAnnotation given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1AuditAnnotation + * @throws IOException if the JSON string is invalid with respect to V1AuditAnnotation + */ public static V1AuditAnnotation fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1AuditAnnotation.class); } - /** - * Convert an instance of V1AuditAnnotation to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1AuditAnnotation to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSource.java index e2c7bfe583..d712dc565e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,151 +50,157 @@ * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. */ @ApiModel(description = "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1AzureDiskVolumeSource { public static final String SERIALIZED_NAME_CACHING_MODE = "cachingMode"; @SerializedName(SERIALIZED_NAME_CACHING_MODE) + @jakarta.annotation.Nullable private String cachingMode; public static final String SERIALIZED_NAME_DISK_NAME = "diskName"; @SerializedName(SERIALIZED_NAME_DISK_NAME) + @jakarta.annotation.Nonnull private String diskName; public static final String SERIALIZED_NAME_DISK_U_R_I = "diskURI"; @SerializedName(SERIALIZED_NAME_DISK_U_R_I) + @jakarta.annotation.Nonnull private String diskURI; public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) + @jakarta.annotation.Nullable private String fsType; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public V1AzureDiskVolumeSource() { } - public V1AzureDiskVolumeSource cachingMode(String cachingMode) { + public V1AzureDiskVolumeSource cachingMode(@jakarta.annotation.Nullable String cachingMode) { this.cachingMode = cachingMode; return this; } - /** + /** * cachingMode is the Host Caching mode: None, Read Only, Read Write. * @return cachingMode - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "cachingMode is the Host Caching mode: None, Read Only, Read Write.") public String getCachingMode() { return cachingMode; } - public void setCachingMode(String cachingMode) { + public void setCachingMode(@jakarta.annotation.Nullable String cachingMode) { this.cachingMode = cachingMode; } - public V1AzureDiskVolumeSource diskName(String diskName) { + public V1AzureDiskVolumeSource diskName(@jakarta.annotation.Nonnull String diskName) { this.diskName = diskName; return this; } - /** + /** * diskName is the Name of the data disk in the blob storage * @return diskName - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "diskName is the Name of the data disk in the blob storage") public String getDiskName() { return diskName; } - public void setDiskName(String diskName) { + public void setDiskName(@jakarta.annotation.Nonnull String diskName) { this.diskName = diskName; } - public V1AzureDiskVolumeSource diskURI(String diskURI) { + public V1AzureDiskVolumeSource diskURI(@jakarta.annotation.Nonnull String diskURI) { this.diskURI = diskURI; return this; } - /** + /** * diskURI is the URI of data disk in the blob storage * @return diskURI - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "diskURI is the URI of data disk in the blob storage") public String getDiskURI() { return diskURI; } - public void setDiskURI(String diskURI) { + public void setDiskURI(@jakarta.annotation.Nonnull String diskURI) { this.diskURI = diskURI; } - public V1AzureDiskVolumeSource fsType(String fsType) { + public V1AzureDiskVolumeSource fsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; return this; } - /** + /** * fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. * @return fsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.") public String getFsType() { return fsType; } - public void setFsType(String fsType) { + public void setFsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; } - public V1AzureDiskVolumeSource kind(String kind) { + public V1AzureDiskVolumeSource kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1AzureDiskVolumeSource readOnly(Boolean readOnly) { + public V1AzureDiskVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } @@ -268,12 +273,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("diskURI"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1AzureDiskVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1AzureDiskVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1AzureDiskVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -342,22 +347,22 @@ public V1AzureDiskVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1AzureDiskVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1AzureDiskVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1AzureDiskVolumeSource - */ + /** + * Create an instance of V1AzureDiskVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1AzureDiskVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1AzureDiskVolumeSource + */ public static V1AzureDiskVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1AzureDiskVolumeSource.class); } - /** - * Convert an instance of V1AzureDiskVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1AzureDiskVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSource.java index 1b5bccd505..c97dccda95 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,103 +50,107 @@ * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. */ @ApiModel(description = "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1AzureFilePersistentVolumeSource { public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_SECRET_NAME = "secretName"; @SerializedName(SERIALIZED_NAME_SECRET_NAME) + @jakarta.annotation.Nonnull private String secretName; public static final String SERIALIZED_NAME_SECRET_NAMESPACE = "secretNamespace"; @SerializedName(SERIALIZED_NAME_SECRET_NAMESPACE) + @jakarta.annotation.Nullable private String secretNamespace; public static final String SERIALIZED_NAME_SHARE_NAME = "shareName"; @SerializedName(SERIALIZED_NAME_SHARE_NAME) + @jakarta.annotation.Nonnull private String shareName; public V1AzureFilePersistentVolumeSource() { } - public V1AzureFilePersistentVolumeSource readOnly(Boolean readOnly) { + public V1AzureFilePersistentVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1AzureFilePersistentVolumeSource secretName(String secretName) { + public V1AzureFilePersistentVolumeSource secretName(@jakarta.annotation.Nonnull String secretName) { this.secretName = secretName; return this; } - /** + /** * secretName is the name of secret that contains Azure Storage Account Name and Key * @return secretName - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "secretName is the name of secret that contains Azure Storage Account Name and Key") public String getSecretName() { return secretName; } - public void setSecretName(String secretName) { + public void setSecretName(@jakarta.annotation.Nonnull String secretName) { this.secretName = secretName; } - public V1AzureFilePersistentVolumeSource secretNamespace(String secretNamespace) { + public V1AzureFilePersistentVolumeSource secretNamespace(@jakarta.annotation.Nullable String secretNamespace) { this.secretNamespace = secretNamespace; return this; } - /** + /** * secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod * @return secretNamespace - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod") public String getSecretNamespace() { return secretNamespace; } - public void setSecretNamespace(String secretNamespace) { + public void setSecretNamespace(@jakarta.annotation.Nullable String secretNamespace) { this.secretNamespace = secretNamespace; } - public V1AzureFilePersistentVolumeSource shareName(String shareName) { + public V1AzureFilePersistentVolumeSource shareName(@jakarta.annotation.Nonnull String shareName) { this.shareName = shareName; return this; } - /** + /** * shareName is the azure Share Name * @return shareName - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "shareName is the azure Share Name") public String getShareName() { return shareName; } - public void setShareName(String shareName) { + public void setShareName(@jakarta.annotation.Nonnull String shareName) { this.shareName = shareName; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("shareName"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1AzureFilePersistentVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1AzureFilePersistentVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1AzureFilePersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -282,22 +285,22 @@ public V1AzureFilePersistentVolumeSource read(JsonReader in) throws IOException } } - /** - * Create an instance of V1AzureFilePersistentVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1AzureFilePersistentVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1AzureFilePersistentVolumeSource - */ + /** + * Create an instance of V1AzureFilePersistentVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1AzureFilePersistentVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1AzureFilePersistentVolumeSource + */ public static V1AzureFilePersistentVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1AzureFilePersistentVolumeSource.class); } - /** - * Convert an instance of V1AzureFilePersistentVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1AzureFilePersistentVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java index 6b881c88b7..94701c39f5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,79 +50,82 @@ * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. */ @ApiModel(description = "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1AzureFileVolumeSource { public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_SECRET_NAME = "secretName"; @SerializedName(SERIALIZED_NAME_SECRET_NAME) + @jakarta.annotation.Nonnull private String secretName; public static final String SERIALIZED_NAME_SHARE_NAME = "shareName"; @SerializedName(SERIALIZED_NAME_SHARE_NAME) + @jakarta.annotation.Nonnull private String shareName; public V1AzureFileVolumeSource() { } - public V1AzureFileVolumeSource readOnly(Boolean readOnly) { + public V1AzureFileVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1AzureFileVolumeSource secretName(String secretName) { + public V1AzureFileVolumeSource secretName(@jakarta.annotation.Nonnull String secretName) { this.secretName = secretName; return this; } - /** + /** * secretName is the name of secret that contains Azure Storage Account Name and Key * @return secretName - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "secretName is the name of secret that contains Azure Storage Account Name and Key") public String getSecretName() { return secretName; } - public void setSecretName(String secretName) { + public void setSecretName(@jakarta.annotation.Nonnull String secretName) { this.secretName = secretName; } - public V1AzureFileVolumeSource shareName(String shareName) { + public V1AzureFileVolumeSource shareName(@jakarta.annotation.Nonnull String shareName) { this.shareName = shareName; return this; } - /** + /** * shareName is the azure share Name * @return shareName - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "shareName is the azure share Name") public String getShareName() { return shareName; } - public void setShareName(String shareName) { + public void setShareName(@jakarta.annotation.Nonnull String shareName) { this.shareName = shareName; } @@ -187,12 +189,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("shareName"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1AzureFileVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1AzureFileVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1AzureFileVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -252,22 +254,22 @@ public V1AzureFileVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1AzureFileVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1AzureFileVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1AzureFileVolumeSource - */ + /** + * Create an instance of V1AzureFileVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1AzureFileVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1AzureFileVolumeSource + */ public static V1AzureFileVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1AzureFileVolumeSource.class); } - /** - * Convert an instance of V1AzureFileVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1AzureFileVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Binding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Binding.java index 57b726cacf..159ac24ba8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Binding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Binding.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,103 +52,107 @@ * Binding ties one object to another; for example, a pod is bound to a node by a scheduler. */ @ApiModel(description = "Binding ties one object to another; for example, a pod is bound to a node by a scheduler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Binding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_TARGET = "target"; @SerializedName(SERIALIZED_NAME_TARGET) + @jakarta.annotation.Nonnull private V1ObjectReference target; public V1Binding() { } - public V1Binding apiVersion(String apiVersion) { + public V1Binding apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1Binding kind(String kind) { + public V1Binding kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1Binding metadata(V1ObjectMeta metadata) { + public V1Binding metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1Binding target(V1ObjectReference target) { + public V1Binding target(@jakarta.annotation.Nonnull V1ObjectReference target) { this.target = target; return this; } - /** + /** * Get target * @return target - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1ObjectReference getTarget() { return target; } - public void setTarget(V1ObjectReference target) { + public void setTarget(@jakarta.annotation.Nonnull V1ObjectReference target) { this.target = target; } @@ -215,12 +218,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("target"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Binding - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Binding + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Binding.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -286,22 +289,22 @@ public V1Binding read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Binding given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Binding - * @throws IOException if the JSON string is invalid with respect to V1Binding - */ + /** + * Create an instance of V1Binding given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Binding + * @throws IOException if the JSON string is invalid with respect to V1Binding + */ public static V1Binding fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Binding.class); } - /** - * Convert an instance of V1Binding to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Binding to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java index 751f00821f..1e3bfe228a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,103 +50,107 @@ * BoundObjectReference is a reference to an object that a token is bound to. */ @ApiModel(description = "BoundObjectReference is a reference to an object that a token is bound to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1BoundObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_UID = "uid"; @SerializedName(SERIALIZED_NAME_UID) + @jakarta.annotation.Nullable private String uid; public V1BoundObjectReference() { } - public V1BoundObjectReference apiVersion(String apiVersion) { + public V1BoundObjectReference apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * API version of the referent. * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "API version of the referent.") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1BoundObjectReference kind(String kind) { + public V1BoundObjectReference kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind of the referent. Valid kinds are 'Pod' and 'Secret'. * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind of the referent. Valid kinds are 'Pod' and 'Secret'.") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1BoundObjectReference name(String name) { + public V1BoundObjectReference name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * Name of the referent. * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Name of the referent.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public V1BoundObjectReference uid(String uid) { + public V1BoundObjectReference uid(@jakarta.annotation.Nullable String uid) { this.uid = uid; return this; } - /** + /** * UID of the referent. * @return uid - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "UID of the referent.") public String getUid() { return uid; } - public void setUid(String uid) { + public void setUid(@jakarta.annotation.Nullable String uid) { this.uid = uid; } @@ -212,12 +215,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1BoundObjectReference - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1BoundObjectReference + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1BoundObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -276,22 +279,22 @@ public V1BoundObjectReference read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1BoundObjectReference given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1BoundObjectReference - * @throws IOException if the JSON string is invalid with respect to V1BoundObjectReference - */ + /** + * Create an instance of V1BoundObjectReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1BoundObjectReference + * @throws IOException if the JSON string is invalid with respect to V1BoundObjectReference + */ public static V1BoundObjectReference fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1BoundObjectReference.class); } - /** - * Convert an instance of V1BoundObjectReference to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1BoundObjectReference to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java index 5203ab444c..ebf632a0ea 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,103 +52,107 @@ * CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. */ @ApiModel(description = "CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CSIDriver implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nonnull private V1CSIDriverSpec spec; public V1CSIDriver() { } - public V1CSIDriver apiVersion(String apiVersion) { + public V1CSIDriver apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1CSIDriver kind(String kind) { + public V1CSIDriver kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1CSIDriver metadata(V1ObjectMeta metadata) { + public V1CSIDriver metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1CSIDriver spec(V1CSIDriverSpec spec) { + public V1CSIDriver spec(@jakarta.annotation.Nonnull V1CSIDriverSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1CSIDriverSpec getSpec() { return spec; } - public void setSpec(V1CSIDriverSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1CSIDriverSpec spec) { this.spec = spec; } @@ -215,12 +218,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("spec"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CSIDriver - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CSIDriver + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CSIDriver.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -286,22 +289,22 @@ public V1CSIDriver read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CSIDriver given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CSIDriver - * @throws IOException if the JSON string is invalid with respect to V1CSIDriver - */ + /** + * Create an instance of V1CSIDriver given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSIDriver + * @throws IOException if the JSON string is invalid with respect to V1CSIDriver + */ public static V1CSIDriver fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CSIDriver.class); } - /** - * Convert an instance of V1CSIDriver to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CSIDriver to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java index 3a9e1e2ac7..4c20406dee 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * CSIDriverList is a collection of CSIDriver objects. */ @ApiModel(description = "CSIDriverList is a collection of CSIDriver objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CSIDriverList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1CSIDriverList() { } - public V1CSIDriverList apiVersion(String apiVersion) { + public V1CSIDriverList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1CSIDriverList items(List items) { + public V1CSIDriverList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1CSIDriverList addItemsItem(V1CSIDriver itemsItem) { return this; } - /** + /** * items is the list of CSIDriver * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is the list of CSIDriver") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1CSIDriverList kind(String kind) { + public V1CSIDriverList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1CSIDriverList metadata(V1ListMeta metadata) { + public V1CSIDriverList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CSIDriverList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CSIDriverList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CSIDriverList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1CSIDriverList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CSIDriverList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CSIDriverList - * @throws IOException if the JSON string is invalid with respect to V1CSIDriverList - */ + /** + * Create an instance of V1CSIDriverList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSIDriverList + * @throws IOException if the JSON string is invalid with respect to V1CSIDriverList + */ public static V1CSIDriverList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CSIDriverList.class); } - /** - * Convert an instance of V1CSIDriverList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CSIDriverList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java index d4986ba521..9f0d016978 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,164 +53,197 @@ * CSIDriverSpec is the specification of a CSIDriver. */ @ApiModel(description = "CSIDriverSpec is the specification of a CSIDriver.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CSIDriverSpec { public static final String SERIALIZED_NAME_ATTACH_REQUIRED = "attachRequired"; @SerializedName(SERIALIZED_NAME_ATTACH_REQUIRED) + @jakarta.annotation.Nullable private Boolean attachRequired; public static final String SERIALIZED_NAME_FS_GROUP_POLICY = "fsGroupPolicy"; @SerializedName(SERIALIZED_NAME_FS_GROUP_POLICY) + @jakarta.annotation.Nullable private String fsGroupPolicy; + public static final String SERIALIZED_NAME_NODE_ALLOCATABLE_UPDATE_PERIOD_SECONDS = "nodeAllocatableUpdatePeriodSeconds"; + @SerializedName(SERIALIZED_NAME_NODE_ALLOCATABLE_UPDATE_PERIOD_SECONDS) + @jakarta.annotation.Nullable + private Long nodeAllocatableUpdatePeriodSeconds; + public static final String SERIALIZED_NAME_POD_INFO_ON_MOUNT = "podInfoOnMount"; @SerializedName(SERIALIZED_NAME_POD_INFO_ON_MOUNT) + @jakarta.annotation.Nullable private Boolean podInfoOnMount; public static final String SERIALIZED_NAME_REQUIRES_REPUBLISH = "requiresRepublish"; @SerializedName(SERIALIZED_NAME_REQUIRES_REPUBLISH) + @jakarta.annotation.Nullable private Boolean requiresRepublish; public static final String SERIALIZED_NAME_SE_LINUX_MOUNT = "seLinuxMount"; @SerializedName(SERIALIZED_NAME_SE_LINUX_MOUNT) + @jakarta.annotation.Nullable private Boolean seLinuxMount; public static final String SERIALIZED_NAME_STORAGE_CAPACITY = "storageCapacity"; @SerializedName(SERIALIZED_NAME_STORAGE_CAPACITY) + @jakarta.annotation.Nullable private Boolean storageCapacity; public static final String SERIALIZED_NAME_TOKEN_REQUESTS = "tokenRequests"; @SerializedName(SERIALIZED_NAME_TOKEN_REQUESTS) + @jakarta.annotation.Nullable private List tokenRequests = new ArrayList<>(); public static final String SERIALIZED_NAME_VOLUME_LIFECYCLE_MODES = "volumeLifecycleModes"; @SerializedName(SERIALIZED_NAME_VOLUME_LIFECYCLE_MODES) + @jakarta.annotation.Nullable private List volumeLifecycleModes = new ArrayList<>(); public V1CSIDriverSpec() { } - public V1CSIDriverSpec attachRequired(Boolean attachRequired) { + public V1CSIDriverSpec attachRequired(@jakarta.annotation.Nullable Boolean attachRequired) { this.attachRequired = attachRequired; return this; } - /** + /** * attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable. * @return attachRequired - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable.") public Boolean getAttachRequired() { return attachRequired; } - public void setAttachRequired(Boolean attachRequired) { + public void setAttachRequired(@jakarta.annotation.Nullable Boolean attachRequired) { this.attachRequired = attachRequired; } - public V1CSIDriverSpec fsGroupPolicy(String fsGroupPolicy) { + public V1CSIDriverSpec fsGroupPolicy(@jakarta.annotation.Nullable String fsGroupPolicy) { this.fsGroupPolicy = fsGroupPolicy; return this; } - /** + /** * fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details. This field was immutable in Kubernetes < 1.29 and now is mutable. Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce. * @return fsGroupPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details. This field was immutable in Kubernetes < 1.29 and now is mutable. Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce.") public String getFsGroupPolicy() { return fsGroupPolicy; } - public void setFsGroupPolicy(String fsGroupPolicy) { + public void setFsGroupPolicy(@jakarta.annotation.Nullable String fsGroupPolicy) { this.fsGroupPolicy = fsGroupPolicy; } - public V1CSIDriverSpec podInfoOnMount(Boolean podInfoOnMount) { + public V1CSIDriverSpec nodeAllocatableUpdatePeriodSeconds(@jakarta.annotation.Nullable Long nodeAllocatableUpdatePeriodSeconds) { + this.nodeAllocatableUpdatePeriodSeconds = nodeAllocatableUpdatePeriodSeconds; + return this; + } + + /** + * nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is an alpha feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. + * @return nodeAllocatableUpdatePeriodSeconds + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is an alpha feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable.") + public Long getNodeAllocatableUpdatePeriodSeconds() { + return nodeAllocatableUpdatePeriodSeconds; + } + + public void setNodeAllocatableUpdatePeriodSeconds(@jakarta.annotation.Nullable Long nodeAllocatableUpdatePeriodSeconds) { + this.nodeAllocatableUpdatePeriodSeconds = nodeAllocatableUpdatePeriodSeconds; + } + + + public V1CSIDriverSpec podInfoOnMount(@jakarta.annotation.Nullable Boolean podInfoOnMount) { this.podInfoOnMount = podInfoOnMount; return this; } - /** + /** * podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) \"csi.storage.k8s.io/ephemeral\": \"true\" if the volume is an ephemeral inline volume defined by a CSIVolumeSource, otherwise \"false\" \"csi.storage.k8s.io/ephemeral\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \"Persistent\" and \"Ephemeral\" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. This field was immutable in Kubernetes < 1.29 and now is mutable. * @return podInfoOnMount - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) \"csi.storage.k8s.io/ephemeral\": \"true\" if the volume is an ephemeral inline volume defined by a CSIVolumeSource, otherwise \"false\" \"csi.storage.k8s.io/ephemeral\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \"Persistent\" and \"Ephemeral\" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. This field was immutable in Kubernetes < 1.29 and now is mutable.") public Boolean getPodInfoOnMount() { return podInfoOnMount; } - public void setPodInfoOnMount(Boolean podInfoOnMount) { + public void setPodInfoOnMount(@jakarta.annotation.Nullable Boolean podInfoOnMount) { this.podInfoOnMount = podInfoOnMount; } - public V1CSIDriverSpec requiresRepublish(Boolean requiresRepublish) { + public V1CSIDriverSpec requiresRepublish(@jakarta.annotation.Nullable Boolean requiresRepublish) { this.requiresRepublish = requiresRepublish; return this; } - /** + /** * requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false. Note: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container. * @return requiresRepublish - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false. Note: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container.") public Boolean getRequiresRepublish() { return requiresRepublish; } - public void setRequiresRepublish(Boolean requiresRepublish) { + public void setRequiresRepublish(@jakarta.annotation.Nullable Boolean requiresRepublish) { this.requiresRepublish = requiresRepublish; } - public V1CSIDriverSpec seLinuxMount(Boolean seLinuxMount) { + public V1CSIDriverSpec seLinuxMount(@jakarta.annotation.Nullable Boolean seLinuxMount) { this.seLinuxMount = seLinuxMount; return this; } - /** + /** * seLinuxMount specifies if the CSI driver supports \"-o context\" mount option. When \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context. When \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem. Default is \"false\". * @return seLinuxMount - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "seLinuxMount specifies if the CSI driver supports \"-o context\" mount option. When \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context. When \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem. Default is \"false\".") public Boolean getSeLinuxMount() { return seLinuxMount; } - public void setSeLinuxMount(Boolean seLinuxMount) { + public void setSeLinuxMount(@jakarta.annotation.Nullable Boolean seLinuxMount) { this.seLinuxMount = seLinuxMount; } - public V1CSIDriverSpec storageCapacity(Boolean storageCapacity) { + public V1CSIDriverSpec storageCapacity(@jakarta.annotation.Nullable Boolean storageCapacity) { this.storageCapacity = storageCapacity; return this; } - /** + /** * storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true. The check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object. Alternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published. This field was immutable in Kubernetes <= 1.22 and now is mutable. * @return storageCapacity - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true. The check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object. Alternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published. This field was immutable in Kubernetes <= 1.22 and now is mutable.") public Boolean getStorageCapacity() { return storageCapacity; } - public void setStorageCapacity(Boolean storageCapacity) { + public void setStorageCapacity(@jakarta.annotation.Nullable Boolean storageCapacity) { this.storageCapacity = storageCapacity; } - public V1CSIDriverSpec tokenRequests(List tokenRequests) { + public V1CSIDriverSpec tokenRequests(@jakarta.annotation.Nullable List tokenRequests) { this.tokenRequests = tokenRequests; return this; } @@ -224,22 +256,22 @@ public V1CSIDriverSpec addTokenRequestsItem(StorageV1TokenRequest tokenRequestsI return this; } - /** + /** * tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \"csi.storage.k8s.io/serviceAccount.tokens\": { \"<audience>\": { \"token\": <token>, \"expirationTimestamp\": <expiration timestamp in RFC3339>, }, ... } Note: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically. * @return tokenRequests - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \"csi.storage.k8s.io/serviceAccount.tokens\": { \"\": { \"token\": , \"expirationTimestamp\": , }, ... } Note: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.") public List getTokenRequests() { return tokenRequests; } - public void setTokenRequests(List tokenRequests) { + public void setTokenRequests(@jakarta.annotation.Nullable List tokenRequests) { this.tokenRequests = tokenRequests; } - public V1CSIDriverSpec volumeLifecycleModes(List volumeLifecycleModes) { + public V1CSIDriverSpec volumeLifecycleModes(@jakarta.annotation.Nullable List volumeLifecycleModes) { this.volumeLifecycleModes = volumeLifecycleModes; return this; } @@ -252,17 +284,17 @@ public V1CSIDriverSpec addVolumeLifecycleModesItem(String volumeLifecycleModesIt return this; } - /** + /** * volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \"Persistent\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is \"Ephemeral\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta. This field is immutable. * @return volumeLifecycleModes - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \"Persistent\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is \"Ephemeral\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta. This field is immutable.") public List getVolumeLifecycleModes() { return volumeLifecycleModes; } - public void setVolumeLifecycleModes(List volumeLifecycleModes) { + public void setVolumeLifecycleModes(@jakarta.annotation.Nullable List volumeLifecycleModes) { this.volumeLifecycleModes = volumeLifecycleModes; } @@ -279,6 +311,7 @@ public boolean equals(Object o) { V1CSIDriverSpec v1CSIDriverSpec = (V1CSIDriverSpec) o; return Objects.equals(this.attachRequired, v1CSIDriverSpec.attachRequired) && Objects.equals(this.fsGroupPolicy, v1CSIDriverSpec.fsGroupPolicy) && + Objects.equals(this.nodeAllocatableUpdatePeriodSeconds, v1CSIDriverSpec.nodeAllocatableUpdatePeriodSeconds) && Objects.equals(this.podInfoOnMount, v1CSIDriverSpec.podInfoOnMount) && Objects.equals(this.requiresRepublish, v1CSIDriverSpec.requiresRepublish) && Objects.equals(this.seLinuxMount, v1CSIDriverSpec.seLinuxMount) && @@ -289,7 +322,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(attachRequired, fsGroupPolicy, podInfoOnMount, requiresRepublish, seLinuxMount, storageCapacity, tokenRequests, volumeLifecycleModes); + return Objects.hash(attachRequired, fsGroupPolicy, nodeAllocatableUpdatePeriodSeconds, podInfoOnMount, requiresRepublish, seLinuxMount, storageCapacity, tokenRequests, volumeLifecycleModes); } @Override @@ -298,6 +331,7 @@ public String toString() { sb.append("class V1CSIDriverSpec {\n"); sb.append(" attachRequired: ").append(toIndentedString(attachRequired)).append("\n"); sb.append(" fsGroupPolicy: ").append(toIndentedString(fsGroupPolicy)).append("\n"); + sb.append(" nodeAllocatableUpdatePeriodSeconds: ").append(toIndentedString(nodeAllocatableUpdatePeriodSeconds)).append("\n"); sb.append(" podInfoOnMount: ").append(toIndentedString(podInfoOnMount)).append("\n"); sb.append(" requiresRepublish: ").append(toIndentedString(requiresRepublish)).append("\n"); sb.append(" seLinuxMount: ").append(toIndentedString(seLinuxMount)).append("\n"); @@ -328,6 +362,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("attachRequired"); openapiFields.add("fsGroupPolicy"); + openapiFields.add("nodeAllocatableUpdatePeriodSeconds"); openapiFields.add("podInfoOnMount"); openapiFields.add("requiresRepublish"); openapiFields.add("seLinuxMount"); @@ -339,12 +374,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CSIDriverSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CSIDriverSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CSIDriverSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -412,22 +447,22 @@ public V1CSIDriverSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CSIDriverSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CSIDriverSpec - * @throws IOException if the JSON string is invalid with respect to V1CSIDriverSpec - */ + /** + * Create an instance of V1CSIDriverSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSIDriverSpec + * @throws IOException if the JSON string is invalid with respect to V1CSIDriverSpec + */ public static V1CSIDriverSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CSIDriverSpec.class); } - /** - * Convert an instance of V1CSIDriverSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CSIDriverSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINode.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINode.java index a00f7defbd..72291896c0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINode.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINode.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,103 +52,107 @@ * CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. */ @ApiModel(description = "CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CSINode implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nonnull private V1CSINodeSpec spec; public V1CSINode() { } - public V1CSINode apiVersion(String apiVersion) { + public V1CSINode apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1CSINode kind(String kind) { + public V1CSINode kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1CSINode metadata(V1ObjectMeta metadata) { + public V1CSINode metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1CSINode spec(V1CSINodeSpec spec) { + public V1CSINode spec(@jakarta.annotation.Nonnull V1CSINodeSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1CSINodeSpec getSpec() { return spec; } - public void setSpec(V1CSINodeSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1CSINodeSpec spec) { this.spec = spec; } @@ -215,12 +218,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("spec"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CSINode - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CSINode + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CSINode.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -286,22 +289,22 @@ public V1CSINode read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CSINode given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CSINode - * @throws IOException if the JSON string is invalid with respect to V1CSINode - */ + /** + * Create an instance of V1CSINode given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSINode + * @throws IOException if the JSON string is invalid with respect to V1CSINode + */ public static V1CSINode fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CSINode.class); } - /** - * Convert an instance of V1CSINode to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CSINode to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriver.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriver.java index a7843a27db..396822bd2c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriver.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriver.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,88 +53,92 @@ * CSINodeDriver holds information about the specification of one CSI driver installed on a node */ @ApiModel(description = "CSINodeDriver holds information about the specification of one CSI driver installed on a node") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CSINodeDriver { public static final String SERIALIZED_NAME_ALLOCATABLE = "allocatable"; @SerializedName(SERIALIZED_NAME_ALLOCATABLE) + @jakarta.annotation.Nullable private V1VolumeNodeResources allocatable; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_NODE_I_D = "nodeID"; @SerializedName(SERIALIZED_NAME_NODE_I_D) + @jakarta.annotation.Nonnull private String nodeID; public static final String SERIALIZED_NAME_TOPOLOGY_KEYS = "topologyKeys"; @SerializedName(SERIALIZED_NAME_TOPOLOGY_KEYS) + @jakarta.annotation.Nullable private List topologyKeys = new ArrayList<>(); public V1CSINodeDriver() { } - public V1CSINodeDriver allocatable(V1VolumeNodeResources allocatable) { + public V1CSINodeDriver allocatable(@jakarta.annotation.Nullable V1VolumeNodeResources allocatable) { this.allocatable = allocatable; return this; } - /** + /** * Get allocatable * @return allocatable - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1VolumeNodeResources getAllocatable() { return allocatable; } - public void setAllocatable(V1VolumeNodeResources allocatable) { + public void setAllocatable(@jakarta.annotation.Nullable V1VolumeNodeResources allocatable) { this.allocatable = allocatable; } - public V1CSINodeDriver name(String name) { + public V1CSINodeDriver name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1CSINodeDriver nodeID(String nodeID) { + public V1CSINodeDriver nodeID(@jakarta.annotation.Nonnull String nodeID) { this.nodeID = nodeID; return this; } - /** + /** * nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required. * @return nodeID - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required.") public String getNodeID() { return nodeID; } - public void setNodeID(String nodeID) { + public void setNodeID(@jakarta.annotation.Nonnull String nodeID) { this.nodeID = nodeID; } - public V1CSINodeDriver topologyKeys(List topologyKeys) { + public V1CSINodeDriver topologyKeys(@jakarta.annotation.Nullable List topologyKeys) { this.topologyKeys = topologyKeys; return this; } @@ -148,17 +151,17 @@ public V1CSINodeDriver addTopologyKeysItem(String topologyKeysItem) { return this; } - /** + /** * topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. * @return topologyKeys - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.") public List getTopologyKeys() { return topologyKeys; } - public void setTopologyKeys(List topologyKeys) { + public void setTopologyKeys(@jakarta.annotation.Nullable List topologyKeys) { this.topologyKeys = topologyKeys; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("nodeID"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CSINodeDriver - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CSINodeDriver + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CSINodeDriver.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -298,22 +301,22 @@ public V1CSINodeDriver read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CSINodeDriver given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CSINodeDriver - * @throws IOException if the JSON string is invalid with respect to V1CSINodeDriver - */ + /** + * Create an instance of V1CSINodeDriver given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSINodeDriver + * @throws IOException if the JSON string is invalid with respect to V1CSINodeDriver + */ public static V1CSINodeDriver fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CSINodeDriver.class); } - /** - * Convert an instance of V1CSINodeDriver to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CSINodeDriver to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeList.java index d66c40e217..2c8bc17640 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * CSINodeList is a collection of CSINode objects. */ @ApiModel(description = "CSINodeList is a collection of CSINode objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CSINodeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1CSINodeList() { } - public V1CSINodeList apiVersion(String apiVersion) { + public V1CSINodeList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1CSINodeList items(List items) { + public V1CSINodeList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1CSINodeList addItemsItem(V1CSINode itemsItem) { return this; } - /** + /** * items is the list of CSINode * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is the list of CSINode") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1CSINodeList kind(String kind) { + public V1CSINodeList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1CSINodeList metadata(V1ListMeta metadata) { + public V1CSINodeList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CSINodeList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CSINodeList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CSINodeList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1CSINodeList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CSINodeList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CSINodeList - * @throws IOException if the JSON string is invalid with respect to V1CSINodeList - */ + /** + * Create an instance of V1CSINodeList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSINodeList + * @throws IOException if the JSON string is invalid with respect to V1CSINodeList + */ public static V1CSINodeList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CSINodeList.class); } - /** - * Convert an instance of V1CSINodeList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CSINodeList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java index aa2d49d553..450dc473db 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,16 +53,17 @@ * CSINodeSpec holds information about the specification of all CSI drivers installed on a node */ @ApiModel(description = "CSINodeSpec holds information about the specification of all CSI drivers installed on a node") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CSINodeSpec { public static final String SERIALIZED_NAME_DRIVERS = "drivers"; @SerializedName(SERIALIZED_NAME_DRIVERS) + @jakarta.annotation.Nonnull private List drivers = new ArrayList<>(); public V1CSINodeSpec() { } - public V1CSINodeSpec drivers(List drivers) { + public V1CSINodeSpec drivers(@jakarta.annotation.Nonnull List drivers) { this.drivers = drivers; return this; } @@ -76,17 +76,17 @@ public V1CSINodeSpec addDriversItem(V1CSINodeDriver driversItem) { return this; } - /** + /** * drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. * @return drivers - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.") public List getDrivers() { return drivers; } - public void setDrivers(List drivers) { + public void setDrivers(@jakarta.annotation.Nonnull List drivers) { this.drivers = drivers; } @@ -143,12 +143,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("drivers"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CSINodeSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CSINodeSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CSINodeSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -212,22 +212,22 @@ public V1CSINodeSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CSINodeSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CSINodeSpec - * @throws IOException if the JSON string is invalid with respect to V1CSINodeSpec - */ + /** + * Create an instance of V1CSINodeSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSINodeSpec + * @throws IOException if the JSON string is invalid with respect to V1CSINodeSpec + */ public static V1CSINodeSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CSINodeSpec.class); } - /** - * Convert an instance of V1CSINodeSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CSINodeSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java index 8911a5d73a..b10d6921dd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,212 +53,222 @@ * Represents storage that is managed by an external CSI volume driver */ @ApiModel(description = "Represents storage that is managed by an external CSI volume driver") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CSIPersistentVolumeSource { public static final String SERIALIZED_NAME_CONTROLLER_EXPAND_SECRET_REF = "controllerExpandSecretRef"; @SerializedName(SERIALIZED_NAME_CONTROLLER_EXPAND_SECRET_REF) + @jakarta.annotation.Nullable private V1SecretReference controllerExpandSecretRef; public static final String SERIALIZED_NAME_CONTROLLER_PUBLISH_SECRET_REF = "controllerPublishSecretRef"; @SerializedName(SERIALIZED_NAME_CONTROLLER_PUBLISH_SECRET_REF) + @jakarta.annotation.Nullable private V1SecretReference controllerPublishSecretRef; public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) + @jakarta.annotation.Nonnull private String driver; public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) + @jakarta.annotation.Nullable private String fsType; public static final String SERIALIZED_NAME_NODE_EXPAND_SECRET_REF = "nodeExpandSecretRef"; @SerializedName(SERIALIZED_NAME_NODE_EXPAND_SECRET_REF) + @jakarta.annotation.Nullable private V1SecretReference nodeExpandSecretRef; public static final String SERIALIZED_NAME_NODE_PUBLISH_SECRET_REF = "nodePublishSecretRef"; @SerializedName(SERIALIZED_NAME_NODE_PUBLISH_SECRET_REF) + @jakarta.annotation.Nullable private V1SecretReference nodePublishSecretRef; public static final String SERIALIZED_NAME_NODE_STAGE_SECRET_REF = "nodeStageSecretRef"; @SerializedName(SERIALIZED_NAME_NODE_STAGE_SECRET_REF) + @jakarta.annotation.Nullable private V1SecretReference nodeStageSecretRef; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_VOLUME_ATTRIBUTES = "volumeAttributes"; @SerializedName(SERIALIZED_NAME_VOLUME_ATTRIBUTES) + @jakarta.annotation.Nullable private Map volumeAttributes = new HashMap<>(); public static final String SERIALIZED_NAME_VOLUME_HANDLE = "volumeHandle"; @SerializedName(SERIALIZED_NAME_VOLUME_HANDLE) + @jakarta.annotation.Nonnull private String volumeHandle; public V1CSIPersistentVolumeSource() { } - public V1CSIPersistentVolumeSource controllerExpandSecretRef(V1SecretReference controllerExpandSecretRef) { + public V1CSIPersistentVolumeSource controllerExpandSecretRef(@jakarta.annotation.Nullable V1SecretReference controllerExpandSecretRef) { this.controllerExpandSecretRef = controllerExpandSecretRef; return this; } - /** + /** * Get controllerExpandSecretRef * @return controllerExpandSecretRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SecretReference getControllerExpandSecretRef() { return controllerExpandSecretRef; } - public void setControllerExpandSecretRef(V1SecretReference controllerExpandSecretRef) { + public void setControllerExpandSecretRef(@jakarta.annotation.Nullable V1SecretReference controllerExpandSecretRef) { this.controllerExpandSecretRef = controllerExpandSecretRef; } - public V1CSIPersistentVolumeSource controllerPublishSecretRef(V1SecretReference controllerPublishSecretRef) { + public V1CSIPersistentVolumeSource controllerPublishSecretRef(@jakarta.annotation.Nullable V1SecretReference controllerPublishSecretRef) { this.controllerPublishSecretRef = controllerPublishSecretRef; return this; } - /** + /** * Get controllerPublishSecretRef * @return controllerPublishSecretRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SecretReference getControllerPublishSecretRef() { return controllerPublishSecretRef; } - public void setControllerPublishSecretRef(V1SecretReference controllerPublishSecretRef) { + public void setControllerPublishSecretRef(@jakarta.annotation.Nullable V1SecretReference controllerPublishSecretRef) { this.controllerPublishSecretRef = controllerPublishSecretRef; } - public V1CSIPersistentVolumeSource driver(String driver) { + public V1CSIPersistentVolumeSource driver(@jakarta.annotation.Nonnull String driver) { this.driver = driver; return this; } - /** + /** * driver is the name of the driver to use for this volume. Required. * @return driver - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "driver is the name of the driver to use for this volume. Required.") public String getDriver() { return driver; } - public void setDriver(String driver) { + public void setDriver(@jakarta.annotation.Nonnull String driver) { this.driver = driver; } - public V1CSIPersistentVolumeSource fsType(String fsType) { + public V1CSIPersistentVolumeSource fsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; return this; } - /** + /** * fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". * @return fsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".") public String getFsType() { return fsType; } - public void setFsType(String fsType) { + public void setFsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; } - public V1CSIPersistentVolumeSource nodeExpandSecretRef(V1SecretReference nodeExpandSecretRef) { + public V1CSIPersistentVolumeSource nodeExpandSecretRef(@jakarta.annotation.Nullable V1SecretReference nodeExpandSecretRef) { this.nodeExpandSecretRef = nodeExpandSecretRef; return this; } - /** + /** * Get nodeExpandSecretRef * @return nodeExpandSecretRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SecretReference getNodeExpandSecretRef() { return nodeExpandSecretRef; } - public void setNodeExpandSecretRef(V1SecretReference nodeExpandSecretRef) { + public void setNodeExpandSecretRef(@jakarta.annotation.Nullable V1SecretReference nodeExpandSecretRef) { this.nodeExpandSecretRef = nodeExpandSecretRef; } - public V1CSIPersistentVolumeSource nodePublishSecretRef(V1SecretReference nodePublishSecretRef) { + public V1CSIPersistentVolumeSource nodePublishSecretRef(@jakarta.annotation.Nullable V1SecretReference nodePublishSecretRef) { this.nodePublishSecretRef = nodePublishSecretRef; return this; } - /** + /** * Get nodePublishSecretRef * @return nodePublishSecretRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SecretReference getNodePublishSecretRef() { return nodePublishSecretRef; } - public void setNodePublishSecretRef(V1SecretReference nodePublishSecretRef) { + public void setNodePublishSecretRef(@jakarta.annotation.Nullable V1SecretReference nodePublishSecretRef) { this.nodePublishSecretRef = nodePublishSecretRef; } - public V1CSIPersistentVolumeSource nodeStageSecretRef(V1SecretReference nodeStageSecretRef) { + public V1CSIPersistentVolumeSource nodeStageSecretRef(@jakarta.annotation.Nullable V1SecretReference nodeStageSecretRef) { this.nodeStageSecretRef = nodeStageSecretRef; return this; } - /** + /** * Get nodeStageSecretRef * @return nodeStageSecretRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SecretReference getNodeStageSecretRef() { return nodeStageSecretRef; } - public void setNodeStageSecretRef(V1SecretReference nodeStageSecretRef) { + public void setNodeStageSecretRef(@jakarta.annotation.Nullable V1SecretReference nodeStageSecretRef) { this.nodeStageSecretRef = nodeStageSecretRef; } - public V1CSIPersistentVolumeSource readOnly(Boolean readOnly) { + public V1CSIPersistentVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1CSIPersistentVolumeSource volumeAttributes(Map volumeAttributes) { + public V1CSIPersistentVolumeSource volumeAttributes(@jakarta.annotation.Nullable Map volumeAttributes) { this.volumeAttributes = volumeAttributes; return this; } @@ -272,37 +281,37 @@ public V1CSIPersistentVolumeSource putVolumeAttributesItem(String key, String vo return this; } - /** + /** * volumeAttributes of the volume to publish. * @return volumeAttributes - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "volumeAttributes of the volume to publish.") public Map getVolumeAttributes() { return volumeAttributes; } - public void setVolumeAttributes(Map volumeAttributes) { + public void setVolumeAttributes(@jakarta.annotation.Nullable Map volumeAttributes) { this.volumeAttributes = volumeAttributes; } - public V1CSIPersistentVolumeSource volumeHandle(String volumeHandle) { + public V1CSIPersistentVolumeSource volumeHandle(@jakarta.annotation.Nonnull String volumeHandle) { this.volumeHandle = volumeHandle; return this; } - /** + /** * volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. * @return volumeHandle - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required.") public String getVolumeHandle() { return volumeHandle; } - public void setVolumeHandle(String volumeHandle) { + public void setVolumeHandle(@jakarta.annotation.Nonnull String volumeHandle) { this.volumeHandle = volumeHandle; } @@ -387,12 +396,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("volumeHandle"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CSIPersistentVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CSIPersistentVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CSIPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -475,22 +484,22 @@ public V1CSIPersistentVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CSIPersistentVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CSIPersistentVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1CSIPersistentVolumeSource - */ + /** + * Create an instance of V1CSIPersistentVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSIPersistentVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1CSIPersistentVolumeSource + */ public static V1CSIPersistentVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CSIPersistentVolumeSource.class); } - /** - * Convert an instance of V1CSIPersistentVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CSIPersistentVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java index 01bb07018d..1e15019c96 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,175 +53,182 @@ * CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. For example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\" The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero The producer of these objects can decide which approach is more suitable. They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node. */ @ApiModel(description = "CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. For example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\" The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero The producer of these objects can decide which approach is more suitable. They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CSIStorageCapacity implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_CAPACITY = "capacity"; @SerializedName(SERIALIZED_NAME_CAPACITY) + @jakarta.annotation.Nullable private Quantity capacity; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_MAXIMUM_VOLUME_SIZE = "maximumVolumeSize"; @SerializedName(SERIALIZED_NAME_MAXIMUM_VOLUME_SIZE) + @jakarta.annotation.Nullable private Quantity maximumVolumeSize; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_NODE_TOPOLOGY = "nodeTopology"; @SerializedName(SERIALIZED_NAME_NODE_TOPOLOGY) + @jakarta.annotation.Nullable private V1LabelSelector nodeTopology; public static final String SERIALIZED_NAME_STORAGE_CLASS_NAME = "storageClassName"; @SerializedName(SERIALIZED_NAME_STORAGE_CLASS_NAME) + @jakarta.annotation.Nonnull private String storageClassName; public V1CSIStorageCapacity() { } - public V1CSIStorageCapacity apiVersion(String apiVersion) { + public V1CSIStorageCapacity apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1CSIStorageCapacity capacity(Quantity capacity) { + public V1CSIStorageCapacity capacity(@jakarta.annotation.Nullable Quantity capacity) { this.capacity = capacity; return this; } - /** + /** * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return capacity - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") public Quantity getCapacity() { return capacity; } - public void setCapacity(Quantity capacity) { + public void setCapacity(@jakarta.annotation.Nullable Quantity capacity) { this.capacity = capacity; } - public V1CSIStorageCapacity kind(String kind) { + public V1CSIStorageCapacity kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1CSIStorageCapacity maximumVolumeSize(Quantity maximumVolumeSize) { + public V1CSIStorageCapacity maximumVolumeSize(@jakarta.annotation.Nullable Quantity maximumVolumeSize) { this.maximumVolumeSize = maximumVolumeSize; return this; } - /** + /** * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return maximumVolumeSize - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") public Quantity getMaximumVolumeSize() { return maximumVolumeSize; } - public void setMaximumVolumeSize(Quantity maximumVolumeSize) { + public void setMaximumVolumeSize(@jakarta.annotation.Nullable Quantity maximumVolumeSize) { this.maximumVolumeSize = maximumVolumeSize; } - public V1CSIStorageCapacity metadata(V1ObjectMeta metadata) { + public V1CSIStorageCapacity metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1CSIStorageCapacity nodeTopology(V1LabelSelector nodeTopology) { + public V1CSIStorageCapacity nodeTopology(@jakarta.annotation.Nullable V1LabelSelector nodeTopology) { this.nodeTopology = nodeTopology; return this; } - /** + /** * Get nodeTopology * @return nodeTopology - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LabelSelector getNodeTopology() { return nodeTopology; } - public void setNodeTopology(V1LabelSelector nodeTopology) { + public void setNodeTopology(@jakarta.annotation.Nullable V1LabelSelector nodeTopology) { this.nodeTopology = nodeTopology; } - public V1CSIStorageCapacity storageClassName(String storageClassName) { + public V1CSIStorageCapacity storageClassName(@jakarta.annotation.Nonnull String storageClassName) { this.storageClassName = storageClassName; return this; } - /** + /** * storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable. * @return storageClassName - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.") public String getStorageClassName() { return storageClassName; } - public void setStorageClassName(String storageClassName) { + public void setStorageClassName(@jakarta.annotation.Nonnull String storageClassName) { this.storageClassName = storageClassName; } @@ -297,12 +303,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("storageClassName"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CSIStorageCapacity - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CSIStorageCapacity + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CSIStorageCapacity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -379,22 +385,22 @@ public V1CSIStorageCapacity read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CSIStorageCapacity given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CSIStorageCapacity - * @throws IOException if the JSON string is invalid with respect to V1CSIStorageCapacity - */ + /** + * Create an instance of V1CSIStorageCapacity given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSIStorageCapacity + * @throws IOException if the JSON string is invalid with respect to V1CSIStorageCapacity + */ public static V1CSIStorageCapacity fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CSIStorageCapacity.class); } - /** - * Convert an instance of V1CSIStorageCapacity to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CSIStorageCapacity to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java index 62b940548b..2d4dac5764 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * CSIStorageCapacityList is a collection of CSIStorageCapacity objects. */ @ApiModel(description = "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CSIStorageCapacityList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1CSIStorageCapacityList() { } - public V1CSIStorageCapacityList apiVersion(String apiVersion) { + public V1CSIStorageCapacityList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1CSIStorageCapacityList items(List items) { + public V1CSIStorageCapacityList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1CSIStorageCapacityList addItemsItem(V1CSIStorageCapacity itemsItem) { return this; } - /** + /** * items is the list of CSIStorageCapacity objects. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is the list of CSIStorageCapacity objects.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1CSIStorageCapacityList kind(String kind) { + public V1CSIStorageCapacityList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1CSIStorageCapacityList metadata(V1ListMeta metadata) { + public V1CSIStorageCapacityList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CSIStorageCapacityList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CSIStorageCapacityList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CSIStorageCapacityList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1CSIStorageCapacityList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CSIStorageCapacityList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CSIStorageCapacityList - * @throws IOException if the JSON string is invalid with respect to V1CSIStorageCapacityList - */ + /** + * Create an instance of V1CSIStorageCapacityList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSIStorageCapacityList + * @throws IOException if the JSON string is invalid with respect to V1CSIStorageCapacityList + */ public static V1CSIStorageCapacityList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CSIStorageCapacityList.class); } - /** - * Convert an instance of V1CSIStorageCapacityList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CSIStorageCapacityList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java index 66dbf3ef10..b31fb58829 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,112 +53,117 @@ * Represents a source location of a volume to mount, managed by an external CSI driver */ @ApiModel(description = "Represents a source location of a volume to mount, managed by an external CSI driver") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CSIVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) + @jakarta.annotation.Nonnull private String driver; public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) + @jakarta.annotation.Nullable private String fsType; public static final String SERIALIZED_NAME_NODE_PUBLISH_SECRET_REF = "nodePublishSecretRef"; @SerializedName(SERIALIZED_NAME_NODE_PUBLISH_SECRET_REF) + @jakarta.annotation.Nullable private V1LocalObjectReference nodePublishSecretRef; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_VOLUME_ATTRIBUTES = "volumeAttributes"; @SerializedName(SERIALIZED_NAME_VOLUME_ATTRIBUTES) + @jakarta.annotation.Nullable private Map volumeAttributes = new HashMap<>(); public V1CSIVolumeSource() { } - public V1CSIVolumeSource driver(String driver) { + public V1CSIVolumeSource driver(@jakarta.annotation.Nonnull String driver) { this.driver = driver; return this; } - /** + /** * driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. * @return driver - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.") public String getDriver() { return driver; } - public void setDriver(String driver) { + public void setDriver(@jakarta.annotation.Nonnull String driver) { this.driver = driver; } - public V1CSIVolumeSource fsType(String fsType) { + public V1CSIVolumeSource fsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; return this; } - /** + /** * fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. * @return fsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.") public String getFsType() { return fsType; } - public void setFsType(String fsType) { + public void setFsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; } - public V1CSIVolumeSource nodePublishSecretRef(V1LocalObjectReference nodePublishSecretRef) { + public V1CSIVolumeSource nodePublishSecretRef(@jakarta.annotation.Nullable V1LocalObjectReference nodePublishSecretRef) { this.nodePublishSecretRef = nodePublishSecretRef; return this; } - /** + /** * Get nodePublishSecretRef * @return nodePublishSecretRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LocalObjectReference getNodePublishSecretRef() { return nodePublishSecretRef; } - public void setNodePublishSecretRef(V1LocalObjectReference nodePublishSecretRef) { + public void setNodePublishSecretRef(@jakarta.annotation.Nullable V1LocalObjectReference nodePublishSecretRef) { this.nodePublishSecretRef = nodePublishSecretRef; } - public V1CSIVolumeSource readOnly(Boolean readOnly) { + public V1CSIVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly specifies a read-only configuration for the volume. Defaults to false (read/write). * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1CSIVolumeSource volumeAttributes(Map volumeAttributes) { + public V1CSIVolumeSource volumeAttributes(@jakarta.annotation.Nullable Map volumeAttributes) { this.volumeAttributes = volumeAttributes; return this; } @@ -172,17 +176,17 @@ public V1CSIVolumeSource putVolumeAttributesItem(String key, String volumeAttrib return this; } - /** + /** * volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. * @return volumeAttributes - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.") public Map getVolumeAttributes() { return volumeAttributes; } - public void setVolumeAttributes(Map volumeAttributes) { + public void setVolumeAttributes(@jakarta.annotation.Nullable Map volumeAttributes) { this.volumeAttributes = volumeAttributes; } @@ -251,12 +255,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("driver"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CSIVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CSIVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CSIVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -320,22 +324,22 @@ public V1CSIVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CSIVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CSIVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1CSIVolumeSource - */ + /** + * Create an instance of V1CSIVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSIVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1CSIVolumeSource + */ public static V1CSIVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CSIVolumeSource.class); } - /** - * Convert an instance of V1CSIVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CSIVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java index dec020b77a..b061dd78b5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,20 +52,22 @@ * Adds and removes POSIX capabilities from running containers. */ @ApiModel(description = "Adds and removes POSIX capabilities from running containers.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Capabilities { public static final String SERIALIZED_NAME_ADD = "add"; @SerializedName(SERIALIZED_NAME_ADD) + @jakarta.annotation.Nullable private List add = new ArrayList<>(); public static final String SERIALIZED_NAME_DROP = "drop"; @SerializedName(SERIALIZED_NAME_DROP) + @jakarta.annotation.Nullable private List drop = new ArrayList<>(); public V1Capabilities() { } - public V1Capabilities add(List add) { + public V1Capabilities add(@jakarta.annotation.Nullable List add) { this.add = add; return this; } @@ -79,22 +80,22 @@ public V1Capabilities addAddItem(String addItem) { return this; } - /** + /** * Added capabilities * @return add - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Added capabilities") public List getAdd() { return add; } - public void setAdd(List add) { + public void setAdd(@jakarta.annotation.Nullable List add) { this.add = add; } - public V1Capabilities drop(List drop) { + public V1Capabilities drop(@jakarta.annotation.Nullable List drop) { this.drop = drop; return this; } @@ -107,17 +108,17 @@ public V1Capabilities addDropItem(String dropItem) { return this; } - /** + /** * Removed capabilities * @return drop - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Removed capabilities") public List getDrop() { return drop; } - public void setDrop(List drop) { + public void setDrop(@jakarta.annotation.Nullable List drop) { this.drop = drop; } @@ -176,12 +177,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Capabilities - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Capabilities + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Capabilities.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -236,22 +237,22 @@ public V1Capabilities read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Capabilities given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Capabilities - * @throws IOException if the JSON string is invalid with respect to V1Capabilities - */ + /** + * Create an instance of V1Capabilities given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Capabilities + * @throws IOException if the JSON string is invalid with respect to V1Capabilities + */ public static V1Capabilities fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Capabilities.class); } - /** - * Convert an instance of V1Capabilities to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Capabilities to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java index be6f9c23d6..a3e8dd69e7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,36 +53,42 @@ * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CephFSPersistentVolumeSource { public static final String SERIALIZED_NAME_MONITORS = "monitors"; @SerializedName(SERIALIZED_NAME_MONITORS) + @jakarta.annotation.Nonnull private List monitors = new ArrayList<>(); public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) + @jakarta.annotation.Nullable private String path; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_SECRET_FILE = "secretFile"; @SerializedName(SERIALIZED_NAME_SECRET_FILE) + @jakarta.annotation.Nullable private String secretFile; public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; @SerializedName(SERIALIZED_NAME_SECRET_REF) + @jakarta.annotation.Nullable private V1SecretReference secretRef; public static final String SERIALIZED_NAME_USER = "user"; @SerializedName(SERIALIZED_NAME_USER) + @jakarta.annotation.Nullable private String user; public V1CephFSPersistentVolumeSource() { } - public V1CephFSPersistentVolumeSource monitors(List monitors) { + public V1CephFSPersistentVolumeSource monitors(@jakarta.annotation.Nonnull List monitors) { this.monitors = monitors; return this; } @@ -96,117 +101,117 @@ public V1CephFSPersistentVolumeSource addMonitorsItem(String monitorsItem) { return this; } - /** + /** * monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it * @return monitors - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it") public List getMonitors() { return monitors; } - public void setMonitors(List monitors) { + public void setMonitors(@jakarta.annotation.Nonnull List monitors) { this.monitors = monitors; } - public V1CephFSPersistentVolumeSource path(String path) { + public V1CephFSPersistentVolumeSource path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } - /** + /** * path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / * @return path - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /") public String getPath() { return path; } - public void setPath(String path) { + public void setPath(@jakarta.annotation.Nullable String path) { this.path = path; } - public V1CephFSPersistentVolumeSource readOnly(Boolean readOnly) { + public V1CephFSPersistentVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1CephFSPersistentVolumeSource secretFile(String secretFile) { + public V1CephFSPersistentVolumeSource secretFile(@jakarta.annotation.Nullable String secretFile) { this.secretFile = secretFile; return this; } - /** + /** * secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it * @return secretFile - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it") public String getSecretFile() { return secretFile; } - public void setSecretFile(String secretFile) { + public void setSecretFile(@jakarta.annotation.Nullable String secretFile) { this.secretFile = secretFile; } - public V1CephFSPersistentVolumeSource secretRef(V1SecretReference secretRef) { + public V1CephFSPersistentVolumeSource secretRef(@jakarta.annotation.Nullable V1SecretReference secretRef) { this.secretRef = secretRef; return this; } - /** + /** * Get secretRef * @return secretRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SecretReference getSecretRef() { return secretRef; } - public void setSecretRef(V1SecretReference secretRef) { + public void setSecretRef(@jakarta.annotation.Nullable V1SecretReference secretRef) { this.secretRef = secretRef; } - public V1CephFSPersistentVolumeSource user(String user) { + public V1CephFSPersistentVolumeSource user(@jakarta.annotation.Nullable String user) { this.user = user; return this; } - /** + /** * user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it * @return user - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it") public String getUser() { return user; } - public void setUser(String user) { + public void setUser(@jakarta.annotation.Nullable String user) { this.user = user; } @@ -278,12 +283,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("monitors"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CephFSPersistentVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CephFSPersistentVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CephFSPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -356,22 +361,22 @@ public V1CephFSPersistentVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CephFSPersistentVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CephFSPersistentVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1CephFSPersistentVolumeSource - */ + /** + * Create an instance of V1CephFSPersistentVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CephFSPersistentVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1CephFSPersistentVolumeSource + */ public static V1CephFSPersistentVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CephFSPersistentVolumeSource.class); } - /** - * Convert an instance of V1CephFSPersistentVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CephFSPersistentVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java index fb9589dc2b..6522561c31 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,36 +53,42 @@ * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CephFSVolumeSource { public static final String SERIALIZED_NAME_MONITORS = "monitors"; @SerializedName(SERIALIZED_NAME_MONITORS) + @jakarta.annotation.Nonnull private List monitors = new ArrayList<>(); public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) + @jakarta.annotation.Nullable private String path; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_SECRET_FILE = "secretFile"; @SerializedName(SERIALIZED_NAME_SECRET_FILE) + @jakarta.annotation.Nullable private String secretFile; public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; @SerializedName(SERIALIZED_NAME_SECRET_REF) + @jakarta.annotation.Nullable private V1LocalObjectReference secretRef; public static final String SERIALIZED_NAME_USER = "user"; @SerializedName(SERIALIZED_NAME_USER) + @jakarta.annotation.Nullable private String user; public V1CephFSVolumeSource() { } - public V1CephFSVolumeSource monitors(List monitors) { + public V1CephFSVolumeSource monitors(@jakarta.annotation.Nonnull List monitors) { this.monitors = monitors; return this; } @@ -96,117 +101,117 @@ public V1CephFSVolumeSource addMonitorsItem(String monitorsItem) { return this; } - /** + /** * monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it * @return monitors - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it") public List getMonitors() { return monitors; } - public void setMonitors(List monitors) { + public void setMonitors(@jakarta.annotation.Nonnull List monitors) { this.monitors = monitors; } - public V1CephFSVolumeSource path(String path) { + public V1CephFSVolumeSource path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } - /** + /** * path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / * @return path - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /") public String getPath() { return path; } - public void setPath(String path) { + public void setPath(@jakarta.annotation.Nullable String path) { this.path = path; } - public V1CephFSVolumeSource readOnly(Boolean readOnly) { + public V1CephFSVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1CephFSVolumeSource secretFile(String secretFile) { + public V1CephFSVolumeSource secretFile(@jakarta.annotation.Nullable String secretFile) { this.secretFile = secretFile; return this; } - /** + /** * secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it * @return secretFile - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it") public String getSecretFile() { return secretFile; } - public void setSecretFile(String secretFile) { + public void setSecretFile(@jakarta.annotation.Nullable String secretFile) { this.secretFile = secretFile; } - public V1CephFSVolumeSource secretRef(V1LocalObjectReference secretRef) { + public V1CephFSVolumeSource secretRef(@jakarta.annotation.Nullable V1LocalObjectReference secretRef) { this.secretRef = secretRef; return this; } - /** + /** * Get secretRef * @return secretRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LocalObjectReference getSecretRef() { return secretRef; } - public void setSecretRef(V1LocalObjectReference secretRef) { + public void setSecretRef(@jakarta.annotation.Nullable V1LocalObjectReference secretRef) { this.secretRef = secretRef; } - public V1CephFSVolumeSource user(String user) { + public V1CephFSVolumeSource user(@jakarta.annotation.Nullable String user) { this.user = user; return this; } - /** + /** * user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it * @return user - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it") public String getUser() { return user; } - public void setUser(String user) { + public void setUser(@jakarta.annotation.Nullable String user) { this.user = user; } @@ -278,12 +283,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("monitors"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CephFSVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CephFSVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CephFSVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -356,22 +361,22 @@ public V1CephFSVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CephFSVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CephFSVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1CephFSVolumeSource - */ + /** + * Create an instance of V1CephFSVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CephFSVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1CephFSVolumeSource + */ public static V1CephFSVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CephFSVolumeSource.class); } - /** - * Convert an instance of V1CephFSVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CephFSVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java index ebb6051c19..8da7b6d1fe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued. Kubelets use this API to obtain: 1. client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client-kubelet\" signerName). 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the \"kubernetes.io/kubelet-serving\" signerName). This API can be used to request client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client\" signerName), or to obtain certificates from custom non-Kubernetes signers. */ @ApiModel(description = "CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued. Kubelets use this API to obtain: 1. client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client-kubelet\" signerName). 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the \"kubernetes.io/kubelet-serving\" signerName). This API can be used to request client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client\" signerName), or to obtain certificates from custom non-Kubernetes signers.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CertificateSigningRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nonnull private V1CertificateSigningRequestSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1CertificateSigningRequestStatus status; public V1CertificateSigningRequest() { } - public V1CertificateSigningRequest apiVersion(String apiVersion) { + public V1CertificateSigningRequest apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1CertificateSigningRequest kind(String kind) { + public V1CertificateSigningRequest kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1CertificateSigningRequest metadata(V1ObjectMeta metadata) { + public V1CertificateSigningRequest metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1CertificateSigningRequest spec(V1CertificateSigningRequestSpec spec) { + public V1CertificateSigningRequest spec(@jakarta.annotation.Nonnull V1CertificateSigningRequestSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1CertificateSigningRequestSpec getSpec() { return spec; } - public void setSpec(V1CertificateSigningRequestSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1CertificateSigningRequestSpec spec) { this.spec = spec; } - public V1CertificateSigningRequest status(V1CertificateSigningRequestStatus status) { + public V1CertificateSigningRequest status(@jakarta.annotation.Nullable V1CertificateSigningRequestStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1CertificateSigningRequestStatus getStatus() { return status; } - public void setStatus(V1CertificateSigningRequestStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1CertificateSigningRequestStatus status) { this.status = status; } @@ -243,12 +247,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("spec"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CertificateSigningRequest - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CertificateSigningRequest + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CertificateSigningRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -318,22 +322,22 @@ public V1CertificateSigningRequest read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CertificateSigningRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CertificateSigningRequest - * @throws IOException if the JSON string is invalid with respect to V1CertificateSigningRequest - */ + /** + * Create an instance of V1CertificateSigningRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CertificateSigningRequest + * @throws IOException if the JSON string is invalid with respect to V1CertificateSigningRequest + */ public static V1CertificateSigningRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CertificateSigningRequest.class); } - /** - * Convert an instance of V1CertificateSigningRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CertificateSigningRequest to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestCondition.java index bb099041b0..d61ab9e751 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestCondition.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,151 +51,157 @@ * CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object */ @ApiModel(description = "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CertificateSigningRequestCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_LAST_UPDATE_TIME = "lastUpdateTime"; @SerializedName(SERIALIZED_NAME_LAST_UPDATE_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastUpdateTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nonnull private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1CertificateSigningRequestCondition() { } - public V1CertificateSigningRequestCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { + public V1CertificateSigningRequestCondition lastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; } - /** + /** * lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time. * @return lastTransitionTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { + public void setLastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } - public V1CertificateSigningRequestCondition lastUpdateTime(OffsetDateTime lastUpdateTime) { + public V1CertificateSigningRequestCondition lastUpdateTime(@jakarta.annotation.Nullable OffsetDateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; return this; } - /** + /** * lastUpdateTime is the time of the last update to this condition * @return lastUpdateTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "lastUpdateTime is the time of the last update to this condition") public OffsetDateTime getLastUpdateTime() { return lastUpdateTime; } - public void setLastUpdateTime(OffsetDateTime lastUpdateTime) { + public void setLastUpdateTime(@jakarta.annotation.Nullable OffsetDateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } - public V1CertificateSigningRequestCondition message(String message) { + public V1CertificateSigningRequestCondition message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * message contains a human readable message with details about the request state * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "message contains a human readable message with details about the request state") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1CertificateSigningRequestCondition reason(String reason) { + public V1CertificateSigningRequestCondition reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * reason indicates a brief reason for the request state * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "reason indicates a brief reason for the request state") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } - public V1CertificateSigningRequestCondition status(String status) { + public V1CertificateSigningRequestCondition status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } - /** + /** * status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\". * @return status - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\".") public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public V1CertificateSigningRequestCondition type(String type) { + public V1CertificateSigningRequestCondition type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\". An \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer. A \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer. A \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate. Approved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added. Only one condition of a given type is allowed. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\". An \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer. A \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer. A \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate. Approved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added. Only one condition of a given type is allowed.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -269,12 +274,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CertificateSigningRequestCondition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CertificateSigningRequestCondition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CertificateSigningRequestCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -340,22 +345,22 @@ public V1CertificateSigningRequestCondition read(JsonReader in) throws IOExcepti } } - /** - * Create an instance of V1CertificateSigningRequestCondition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CertificateSigningRequestCondition - * @throws IOException if the JSON string is invalid with respect to V1CertificateSigningRequestCondition - */ + /** + * Create an instance of V1CertificateSigningRequestCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CertificateSigningRequestCondition + * @throws IOException if the JSON string is invalid with respect to V1CertificateSigningRequestCondition + */ public static V1CertificateSigningRequestCondition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CertificateSigningRequestCondition.class); } - /** - * Convert an instance of V1CertificateSigningRequestCondition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CertificateSigningRequestCondition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestList.java index 436b7bd796..d10a7b1542 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * CertificateSigningRequestList is a collection of CertificateSigningRequest objects */ @ApiModel(description = "CertificateSigningRequestList is a collection of CertificateSigningRequest objects") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CertificateSigningRequestList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1CertificateSigningRequestList() { } - public V1CertificateSigningRequestList apiVersion(String apiVersion) { + public V1CertificateSigningRequestList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1CertificateSigningRequestList items(List items) { + public V1CertificateSigningRequestList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1CertificateSigningRequestList addItemsItem(V1CertificateSigningRequest return this; } - /** + /** * items is a collection of CertificateSigningRequest objects * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is a collection of CertificateSigningRequest objects") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1CertificateSigningRequestList kind(String kind) { + public V1CertificateSigningRequestList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1CertificateSigningRequestList metadata(V1ListMeta metadata) { + public V1CertificateSigningRequestList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CertificateSigningRequestList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CertificateSigningRequestList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CertificateSigningRequestList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1CertificateSigningRequestList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CertificateSigningRequestList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CertificateSigningRequestList - * @throws IOException if the JSON string is invalid with respect to V1CertificateSigningRequestList - */ + /** + * Create an instance of V1CertificateSigningRequestList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CertificateSigningRequestList + * @throws IOException if the JSON string is invalid with respect to V1CertificateSigningRequestList + */ public static V1CertificateSigningRequestList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CertificateSigningRequestList.class); } - /** - * Convert an instance of V1CertificateSigningRequestList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CertificateSigningRequestList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpec.java index a5b8ee68f1..37e3a6b258 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpec.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,64 +54,72 @@ * CertificateSigningRequestSpec contains the certificate request. */ @ApiModel(description = "CertificateSigningRequestSpec contains the certificate request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CertificateSigningRequestSpec { public static final String SERIALIZED_NAME_EXPIRATION_SECONDS = "expirationSeconds"; @SerializedName(SERIALIZED_NAME_EXPIRATION_SECONDS) + @jakarta.annotation.Nullable private Integer expirationSeconds; public static final String SERIALIZED_NAME_EXTRA = "extra"; @SerializedName(SERIALIZED_NAME_EXTRA) + @jakarta.annotation.Nullable private Map> extra = new HashMap<>(); public static final String SERIALIZED_NAME_GROUPS = "groups"; @SerializedName(SERIALIZED_NAME_GROUPS) + @jakarta.annotation.Nullable private List groups = new ArrayList<>(); public static final String SERIALIZED_NAME_REQUEST = "request"; @SerializedName(SERIALIZED_NAME_REQUEST) + @jakarta.annotation.Nonnull private byte[] request; public static final String SERIALIZED_NAME_SIGNER_NAME = "signerName"; @SerializedName(SERIALIZED_NAME_SIGNER_NAME) + @jakarta.annotation.Nonnull private String signerName; public static final String SERIALIZED_NAME_UID = "uid"; @SerializedName(SERIALIZED_NAME_UID) + @jakarta.annotation.Nullable private String uid; public static final String SERIALIZED_NAME_USAGES = "usages"; @SerializedName(SERIALIZED_NAME_USAGES) + @jakarta.annotation.Nullable private List usages = new ArrayList<>(); public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) + @jakarta.annotation.Nullable private String username; public V1CertificateSigningRequestSpec() { } - public V1CertificateSigningRequestSpec expirationSeconds(Integer expirationSeconds) { + public V1CertificateSigningRequestSpec expirationSeconds(@jakarta.annotation.Nullable Integer expirationSeconds) { this.expirationSeconds = expirationSeconds; return this; } - /** + /** * expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration. The v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager. Certificate signers may not honor this field for various reasons: 1. Old signer that is unaware of the field (such as the in-tree implementations prior to v1.22) 2. Signer whose configured maximum is shorter than the requested duration 3. Signer whose configured minimum is longer than the requested duration The minimum valid value for expirationSeconds is 600, i.e. 10 minutes. * @return expirationSeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration. The v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager. Certificate signers may not honor this field for various reasons: 1. Old signer that is unaware of the field (such as the in-tree implementations prior to v1.22) 2. Signer whose configured maximum is shorter than the requested duration 3. Signer whose configured minimum is longer than the requested duration The minimum valid value for expirationSeconds is 600, i.e. 10 minutes.") public Integer getExpirationSeconds() { return expirationSeconds; } - public void setExpirationSeconds(Integer expirationSeconds) { + public void setExpirationSeconds(@jakarta.annotation.Nullable Integer expirationSeconds) { this.expirationSeconds = expirationSeconds; } - public V1CertificateSigningRequestSpec extra(Map> extra) { + public V1CertificateSigningRequestSpec extra(@jakarta.annotation.Nullable Map> extra) { this.extra = extra; return this; } @@ -125,22 +132,22 @@ public V1CertificateSigningRequestSpec putExtraItem(String key, List ext return this; } - /** + /** * extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. * @return extra - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.") public Map> getExtra() { return extra; } - public void setExtra(Map> extra) { + public void setExtra(@jakarta.annotation.Nullable Map> extra) { this.extra = extra; } - public V1CertificateSigningRequestSpec groups(List groups) { + public V1CertificateSigningRequestSpec groups(@jakarta.annotation.Nullable List groups) { this.groups = groups; return this; } @@ -153,82 +160,82 @@ public V1CertificateSigningRequestSpec addGroupsItem(String groupsItem) { return this; } - /** + /** * groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. * @return groups - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.") public List getGroups() { return groups; } - public void setGroups(List groups) { + public void setGroups(@jakarta.annotation.Nullable List groups) { this.groups = groups; } - public V1CertificateSigningRequestSpec request(byte[] request) { + public V1CertificateSigningRequestSpec request(@jakarta.annotation.Nonnull byte[] request) { this.request = request; return this; } - /** + /** * request contains an x509 certificate signing request encoded in a \"CERTIFICATE REQUEST\" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded. * @return request - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "request contains an x509 certificate signing request encoded in a \"CERTIFICATE REQUEST\" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded.") public byte[] getRequest() { return request; } - public void setRequest(byte[] request) { + public void setRequest(@jakarta.annotation.Nonnull byte[] request) { this.request = request; } - public V1CertificateSigningRequestSpec signerName(String signerName) { + public V1CertificateSigningRequestSpec signerName(@jakarta.annotation.Nonnull String signerName) { this.signerName = signerName; return this; } - /** + /** * signerName indicates the requested signer, and is a qualified name. List/watch requests for CertificateSigningRequests can filter on this field using a \"spec.signerName=NAME\" fieldSelector. Well-known Kubernetes signers are: 1. \"kubernetes.io/kube-apiserver-client\": issues client certificates that can be used to authenticate to kube-apiserver. Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the \"csrsigning\" controller in kube-controller-manager. 2. \"kubernetes.io/kube-apiserver-client-kubelet\": issues client certificates that kubelets use to authenticate to kube-apiserver. Requests for this signer can be auto-approved by the \"csrapproving\" controller in kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager. 3. \"kubernetes.io/kubelet-serving\" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely. Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager. More details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers Custom signerNames can also be specified. The signer defines: 1. Trust distribution: how trust (CA bundles) are distributed. 2. Permitted subjects: and behavior when a disallowed subject is requested. 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested. 4. Required, permitted, or forbidden key usages / extended key usages. 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin. 6. Whether or not requests for CA certificates are allowed. * @return signerName - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "signerName indicates the requested signer, and is a qualified name. List/watch requests for CertificateSigningRequests can filter on this field using a \"spec.signerName=NAME\" fieldSelector. Well-known Kubernetes signers are: 1. \"kubernetes.io/kube-apiserver-client\": issues client certificates that can be used to authenticate to kube-apiserver. Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the \"csrsigning\" controller in kube-controller-manager. 2. \"kubernetes.io/kube-apiserver-client-kubelet\": issues client certificates that kubelets use to authenticate to kube-apiserver. Requests for this signer can be auto-approved by the \"csrapproving\" controller in kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager. 3. \"kubernetes.io/kubelet-serving\" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely. Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager. More details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers Custom signerNames can also be specified. The signer defines: 1. Trust distribution: how trust (CA bundles) are distributed. 2. Permitted subjects: and behavior when a disallowed subject is requested. 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested. 4. Required, permitted, or forbidden key usages / extended key usages. 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin. 6. Whether or not requests for CA certificates are allowed.") public String getSignerName() { return signerName; } - public void setSignerName(String signerName) { + public void setSignerName(@jakarta.annotation.Nonnull String signerName) { this.signerName = signerName; } - public V1CertificateSigningRequestSpec uid(String uid) { + public V1CertificateSigningRequestSpec uid(@jakarta.annotation.Nullable String uid) { this.uid = uid; return this; } - /** + /** * uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. * @return uid - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.") public String getUid() { return uid; } - public void setUid(String uid) { + public void setUid(@jakarta.annotation.Nullable String uid) { this.uid = uid; } - public V1CertificateSigningRequestSpec usages(List usages) { + public V1CertificateSigningRequestSpec usages(@jakarta.annotation.Nullable List usages) { this.usages = usages; return this; } @@ -241,37 +248,37 @@ public V1CertificateSigningRequestSpec addUsagesItem(String usagesItem) { return this; } - /** + /** * usages specifies a set of key usages requested in the issued certificate. Requests for TLS client certificates typically request: \"digital signature\", \"key encipherment\", \"client auth\". Requests for TLS serving certificates typically request: \"key encipherment\", \"digital signature\", \"server auth\". Valid values are: \"signing\", \"digital signature\", \"content commitment\", \"key encipherment\", \"key agreement\", \"data encipherment\", \"cert sign\", \"crl sign\", \"encipher only\", \"decipher only\", \"any\", \"server auth\", \"client auth\", \"code signing\", \"email protection\", \"s/mime\", \"ipsec end system\", \"ipsec tunnel\", \"ipsec user\", \"timestamping\", \"ocsp signing\", \"microsoft sgc\", \"netscape sgc\" * @return usages - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "usages specifies a set of key usages requested in the issued certificate. Requests for TLS client certificates typically request: \"digital signature\", \"key encipherment\", \"client auth\". Requests for TLS serving certificates typically request: \"key encipherment\", \"digital signature\", \"server auth\". Valid values are: \"signing\", \"digital signature\", \"content commitment\", \"key encipherment\", \"key agreement\", \"data encipherment\", \"cert sign\", \"crl sign\", \"encipher only\", \"decipher only\", \"any\", \"server auth\", \"client auth\", \"code signing\", \"email protection\", \"s/mime\", \"ipsec end system\", \"ipsec tunnel\", \"ipsec user\", \"timestamping\", \"ocsp signing\", \"microsoft sgc\", \"netscape sgc\"") public List getUsages() { return usages; } - public void setUsages(List usages) { + public void setUsages(@jakarta.annotation.Nullable List usages) { this.usages = usages; } - public V1CertificateSigningRequestSpec username(String username) { + public V1CertificateSigningRequestSpec username(@jakarta.annotation.Nullable String username) { this.username = username; return this; } - /** + /** * username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. * @return username - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.") public String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; } @@ -350,12 +357,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("signerName"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CertificateSigningRequestSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CertificateSigningRequestSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CertificateSigningRequestSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -426,22 +433,22 @@ public V1CertificateSigningRequestSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CertificateSigningRequestSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CertificateSigningRequestSpec - * @throws IOException if the JSON string is invalid with respect to V1CertificateSigningRequestSpec - */ + /** + * Create an instance of V1CertificateSigningRequestSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CertificateSigningRequestSpec + * @throws IOException if the JSON string is invalid with respect to V1CertificateSigningRequestSpec + */ public static V1CertificateSigningRequestSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CertificateSigningRequestSpec.class); } - /** - * Convert an instance of V1CertificateSigningRequestSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CertificateSigningRequestSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatus.java index f5b75a3321..b2f1e6f4b9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatus.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,40 +53,42 @@ * CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate. */ @ApiModel(description = "CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CertificateSigningRequestStatus { public static final String SERIALIZED_NAME_CERTIFICATE = "certificate"; @SerializedName(SERIALIZED_NAME_CERTIFICATE) + @jakarta.annotation.Nullable private byte[] certificate; public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); public V1CertificateSigningRequestStatus() { } - public V1CertificateSigningRequestStatus certificate(byte[] certificate) { + public V1CertificateSigningRequestStatus certificate(@jakarta.annotation.Nullable byte[] certificate) { this.certificate = certificate; return this; } - /** + /** * certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable. If the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty. Validation requirements: 1. certificate must contain one or more PEM blocks. 2. All PEM blocks must have the \"CERTIFICATE\" label, contain no headers, and the encoded data must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280. 3. Non-PEM content may appear before or after the \"CERTIFICATE\" PEM blocks and is unvalidated, to allow for explanatory text as described in section 5.2 of RFC7468. If more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. The certificate is encoded in PEM format. When serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of: base64( -----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- ) * @return certificate - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable. If the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty. Validation requirements: 1. certificate must contain one or more PEM blocks. 2. All PEM blocks must have the \"CERTIFICATE\" label, contain no headers, and the encoded data must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280. 3. Non-PEM content may appear before or after the \"CERTIFICATE\" PEM blocks and is unvalidated, to allow for explanatory text as described in section 5.2 of RFC7468. If more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. The certificate is encoded in PEM format. When serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of: base64( -----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- )") public byte[] getCertificate() { return certificate; } - public void setCertificate(byte[] certificate) { + public void setCertificate(@jakarta.annotation.Nullable byte[] certificate) { this.certificate = certificate; } - public V1CertificateSigningRequestStatus conditions(List conditions) { + public V1CertificateSigningRequestStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } @@ -100,17 +101,17 @@ public V1CertificateSigningRequestStatus addConditionsItem(V1CertificateSigningR return this; } - /** + /** * conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\". * @return conditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\".") public List getConditions() { return conditions; } - public void setConditions(List conditions) { + public void setConditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; } @@ -169,12 +170,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CertificateSigningRequestStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CertificateSigningRequestStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CertificateSigningRequestStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -235,22 +236,22 @@ public V1CertificateSigningRequestStatus read(JsonReader in) throws IOException } } - /** - * Create an instance of V1CertificateSigningRequestStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CertificateSigningRequestStatus - * @throws IOException if the JSON string is invalid with respect to V1CertificateSigningRequestStatus - */ + /** + * Create an instance of V1CertificateSigningRequestStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CertificateSigningRequestStatus + * @throws IOException if the JSON string is invalid with respect to V1CertificateSigningRequestStatus + */ public static V1CertificateSigningRequestStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CertificateSigningRequestStatus.class); } - /** - * Convert an instance of V1CertificateSigningRequestStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CertificateSigningRequestStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSource.java index d14c7026dd..c280dcb05b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSource.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,103 +51,107 @@ * Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CinderPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) + @jakarta.annotation.Nullable private String fsType; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; @SerializedName(SERIALIZED_NAME_SECRET_REF) + @jakarta.annotation.Nullable private V1SecretReference secretRef; public static final String SERIALIZED_NAME_VOLUME_I_D = "volumeID"; @SerializedName(SERIALIZED_NAME_VOLUME_I_D) + @jakarta.annotation.Nonnull private String volumeID; public V1CinderPersistentVolumeSource() { } - public V1CinderPersistentVolumeSource fsType(String fsType) { + public V1CinderPersistentVolumeSource fsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; return this; } - /** + /** * fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md * @return fsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md") public String getFsType() { return fsType; } - public void setFsType(String fsType) { + public void setFsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; } - public V1CinderPersistentVolumeSource readOnly(Boolean readOnly) { + public V1CinderPersistentVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1CinderPersistentVolumeSource secretRef(V1SecretReference secretRef) { + public V1CinderPersistentVolumeSource secretRef(@jakarta.annotation.Nullable V1SecretReference secretRef) { this.secretRef = secretRef; return this; } - /** + /** * Get secretRef * @return secretRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SecretReference getSecretRef() { return secretRef; } - public void setSecretRef(V1SecretReference secretRef) { + public void setSecretRef(@jakarta.annotation.Nullable V1SecretReference secretRef) { this.secretRef = secretRef; } - public V1CinderPersistentVolumeSource volumeID(String volumeID) { + public V1CinderPersistentVolumeSource volumeID(@jakarta.annotation.Nonnull String volumeID) { this.volumeID = volumeID; return this; } - /** + /** * volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md * @return volumeID - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md") public String getVolumeID() { return volumeID; } - public void setVolumeID(String volumeID) { + public void setVolumeID(@jakarta.annotation.Nonnull String volumeID) { this.volumeID = volumeID; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("volumeID"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CinderPersistentVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CinderPersistentVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CinderPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -283,22 +286,22 @@ public V1CinderPersistentVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CinderPersistentVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CinderPersistentVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1CinderPersistentVolumeSource - */ + /** + * Create an instance of V1CinderPersistentVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CinderPersistentVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1CinderPersistentVolumeSource + */ public static V1CinderPersistentVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CinderPersistentVolumeSource.class); } - /** - * Convert an instance of V1CinderPersistentVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CinderPersistentVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSource.java index f6d0c0d87d..f232cc34cc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSource.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,103 +51,107 @@ * Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CinderVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) + @jakarta.annotation.Nullable private String fsType; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; @SerializedName(SERIALIZED_NAME_SECRET_REF) + @jakarta.annotation.Nullable private V1LocalObjectReference secretRef; public static final String SERIALIZED_NAME_VOLUME_I_D = "volumeID"; @SerializedName(SERIALIZED_NAME_VOLUME_I_D) + @jakarta.annotation.Nonnull private String volumeID; public V1CinderVolumeSource() { } - public V1CinderVolumeSource fsType(String fsType) { + public V1CinderVolumeSource fsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; return this; } - /** + /** * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md * @return fsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md") public String getFsType() { return fsType; } - public void setFsType(String fsType) { + public void setFsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; } - public V1CinderVolumeSource readOnly(Boolean readOnly) { + public V1CinderVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1CinderVolumeSource secretRef(V1LocalObjectReference secretRef) { + public V1CinderVolumeSource secretRef(@jakarta.annotation.Nullable V1LocalObjectReference secretRef) { this.secretRef = secretRef; return this; } - /** + /** * Get secretRef * @return secretRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LocalObjectReference getSecretRef() { return secretRef; } - public void setSecretRef(V1LocalObjectReference secretRef) { + public void setSecretRef(@jakarta.annotation.Nullable V1LocalObjectReference secretRef) { this.secretRef = secretRef; } - public V1CinderVolumeSource volumeID(String volumeID) { + public V1CinderVolumeSource volumeID(@jakarta.annotation.Nonnull String volumeID) { this.volumeID = volumeID; return this; } - /** + /** * volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md * @return volumeID - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md") public String getVolumeID() { return volumeID; } - public void setVolumeID(String volumeID) { + public void setVolumeID(@jakarta.annotation.Nonnull String volumeID) { this.volumeID = volumeID; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("volumeID"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CinderVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CinderVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CinderVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -283,22 +286,22 @@ public V1CinderVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CinderVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CinderVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1CinderVolumeSource - */ + /** + * Create an instance of V1CinderVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CinderVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1CinderVolumeSource + */ public static V1CinderVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CinderVolumeSource.class); } - /** - * Convert an instance of V1CinderVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CinderVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfig.java index a88fb417d1..03ec14ef72 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfig.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * ClientIPConfig represents the configurations of Client IP based session affinity. */ @ApiModel(description = "ClientIPConfig represents the configurations of Client IP based session affinity.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ClientIPConfig { public static final String SERIALIZED_NAME_TIMEOUT_SECONDS = "timeoutSeconds"; @SerializedName(SERIALIZED_NAME_TIMEOUT_SECONDS) + @jakarta.annotation.Nullable private Integer timeoutSeconds; public V1ClientIPConfig() { } - public V1ClientIPConfig timeoutSeconds(Integer timeoutSeconds) { + public V1ClientIPConfig timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } - /** + /** * timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours). * @return timeoutSeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours).") public Integer getTimeoutSeconds() { return timeoutSeconds; } - public void setTimeoutSeconds(Integer timeoutSeconds) { + public void setTimeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; } @@ -131,12 +131,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ClientIPConfig - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ClientIPConfig + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ClientIPConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -183,22 +183,22 @@ public V1ClientIPConfig read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ClientIPConfig given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ClientIPConfig - * @throws IOException if the JSON string is invalid with respect to V1ClientIPConfig - */ + /** + * Create an instance of V1ClientIPConfig given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ClientIPConfig + * @throws IOException if the JSON string is invalid with respect to V1ClientIPConfig + */ public static V1ClientIPConfig fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ClientIPConfig.class); } - /** - * Convert an instance of V1ClientIPConfig to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ClientIPConfig to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java index 9d41db0c7b..48cd7fdfd8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java @@ -43,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -56,112 +55,117 @@ * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. */ @ApiModel(description = "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ClusterRole implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_AGGREGATION_RULE = "aggregationRule"; @SerializedName(SERIALIZED_NAME_AGGREGATION_RULE) + @jakarta.annotation.Nullable private V1AggregationRule aggregationRule; public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) + @jakarta.annotation.Nullable private List rules = new ArrayList<>(); public V1ClusterRole() { } - public V1ClusterRole aggregationRule(V1AggregationRule aggregationRule) { + public V1ClusterRole aggregationRule(@jakarta.annotation.Nullable V1AggregationRule aggregationRule) { this.aggregationRule = aggregationRule; return this; } - /** + /** * Get aggregationRule * @return aggregationRule - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1AggregationRule getAggregationRule() { return aggregationRule; } - public void setAggregationRule(V1AggregationRule aggregationRule) { + public void setAggregationRule(@jakarta.annotation.Nullable V1AggregationRule aggregationRule) { this.aggregationRule = aggregationRule; } - public V1ClusterRole apiVersion(String apiVersion) { + public V1ClusterRole apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ClusterRole kind(String kind) { + public V1ClusterRole kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ClusterRole metadata(V1ObjectMeta metadata) { + public V1ClusterRole metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1ClusterRole rules(List rules) { + public V1ClusterRole rules(@jakarta.annotation.Nullable List rules) { this.rules = rules; return this; } @@ -174,17 +178,17 @@ public V1ClusterRole addRulesItem(V1PolicyRule rulesItem) { return this; } - /** + /** * Rules holds all the PolicyRules for this ClusterRole * @return rules - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Rules holds all the PolicyRules for this ClusterRole") public List getRules() { return rules; } - public void setRules(List rules) { + public void setRules(@jakarta.annotation.Nullable List rules) { this.rules = rules; } @@ -252,12 +256,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ClusterRole - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ClusterRole + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ClusterRole.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -332,22 +336,22 @@ public V1ClusterRole read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ClusterRole given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ClusterRole - * @throws IOException if the JSON string is invalid with respect to V1ClusterRole - */ + /** + * Create an instance of V1ClusterRole given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ClusterRole + * @throws IOException if the JSON string is invalid with respect to V1ClusterRole + */ public static V1ClusterRole fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ClusterRole.class); } - /** - * Convert an instance of V1ClusterRole to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ClusterRole to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java index de3173e46c..3002a28821 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java @@ -43,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -56,112 +55,117 @@ * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. */ @ApiModel(description = "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ClusterRoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_ROLE_REF = "roleRef"; @SerializedName(SERIALIZED_NAME_ROLE_REF) + @jakarta.annotation.Nonnull private V1RoleRef roleRef; public static final String SERIALIZED_NAME_SUBJECTS = "subjects"; @SerializedName(SERIALIZED_NAME_SUBJECTS) + @jakarta.annotation.Nullable private List subjects = new ArrayList<>(); public V1ClusterRoleBinding() { } - public V1ClusterRoleBinding apiVersion(String apiVersion) { + public V1ClusterRoleBinding apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ClusterRoleBinding kind(String kind) { + public V1ClusterRoleBinding kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ClusterRoleBinding metadata(V1ObjectMeta metadata) { + public V1ClusterRoleBinding metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1ClusterRoleBinding roleRef(V1RoleRef roleRef) { + public V1ClusterRoleBinding roleRef(@jakarta.annotation.Nonnull V1RoleRef roleRef) { this.roleRef = roleRef; return this; } - /** + /** * Get roleRef * @return roleRef - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1RoleRef getRoleRef() { return roleRef; } - public void setRoleRef(V1RoleRef roleRef) { + public void setRoleRef(@jakarta.annotation.Nonnull V1RoleRef roleRef) { this.roleRef = roleRef; } - public V1ClusterRoleBinding subjects(List subjects) { + public V1ClusterRoleBinding subjects(@jakarta.annotation.Nullable List subjects) { this.subjects = subjects; return this; } @@ -174,17 +178,17 @@ public V1ClusterRoleBinding addSubjectsItem(RbacV1Subject subjectsItem) { return this; } - /** + /** * Subjects holds references to the objects the role applies to. * @return subjects - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Subjects holds references to the objects the role applies to.") public List getSubjects() { return subjects; } - public void setSubjects(List subjects) { + public void setSubjects(@jakarta.annotation.Nullable List subjects) { this.subjects = subjects; } @@ -253,12 +257,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("roleRef"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ClusterRoleBinding - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ClusterRoleBinding + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ClusterRoleBinding.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -338,22 +342,22 @@ public V1ClusterRoleBinding read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ClusterRoleBinding given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ClusterRoleBinding - * @throws IOException if the JSON string is invalid with respect to V1ClusterRoleBinding - */ + /** + * Create an instance of V1ClusterRoleBinding given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ClusterRoleBinding + * @throws IOException if the JSON string is invalid with respect to V1ClusterRoleBinding + */ public static V1ClusterRoleBinding fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ClusterRoleBinding.class); } - /** - * Convert an instance of V1ClusterRoleBinding to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ClusterRoleBinding to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingList.java index 7ec2c1ec6e..6368a0490b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * ClusterRoleBindingList is a collection of ClusterRoleBindings */ @ApiModel(description = "ClusterRoleBindingList is a collection of ClusterRoleBindings") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ClusterRoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1ClusterRoleBindingList() { } - public V1ClusterRoleBindingList apiVersion(String apiVersion) { + public V1ClusterRoleBindingList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ClusterRoleBindingList items(List items) { + public V1ClusterRoleBindingList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1ClusterRoleBindingList addItemsItem(V1ClusterRoleBinding itemsItem) { return this; } - /** + /** * Items is a list of ClusterRoleBindings * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items is a list of ClusterRoleBindings") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1ClusterRoleBindingList kind(String kind) { + public V1ClusterRoleBindingList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ClusterRoleBindingList metadata(V1ListMeta metadata) { + public V1ClusterRoleBindingList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ClusterRoleBindingList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ClusterRoleBindingList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ClusterRoleBindingList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1ClusterRoleBindingList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ClusterRoleBindingList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ClusterRoleBindingList - * @throws IOException if the JSON string is invalid with respect to V1ClusterRoleBindingList - */ + /** + * Create an instance of V1ClusterRoleBindingList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ClusterRoleBindingList + * @throws IOException if the JSON string is invalid with respect to V1ClusterRoleBindingList + */ public static V1ClusterRoleBindingList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ClusterRoleBindingList.class); } - /** - * Convert an instance of V1ClusterRoleBindingList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ClusterRoleBindingList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleList.java index f202be9871..d69cdb5309 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * ClusterRoleList is a collection of ClusterRoles */ @ApiModel(description = "ClusterRoleList is a collection of ClusterRoles") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ClusterRoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1ClusterRoleList() { } - public V1ClusterRoleList apiVersion(String apiVersion) { + public V1ClusterRoleList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ClusterRoleList items(List items) { + public V1ClusterRoleList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1ClusterRoleList addItemsItem(V1ClusterRole itemsItem) { return this; } - /** + /** * Items is a list of ClusterRoles * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items is a list of ClusterRoles") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1ClusterRoleList kind(String kind) { + public V1ClusterRoleList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ClusterRoleList metadata(V1ListMeta metadata) { + public V1ClusterRoleList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ClusterRoleList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ClusterRoleList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ClusterRoleList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1ClusterRoleList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ClusterRoleList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ClusterRoleList - * @throws IOException if the JSON string is invalid with respect to V1ClusterRoleList - */ + /** + * Create an instance of V1ClusterRoleList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ClusterRoleList + * @throws IOException if the JSON string is invalid with respect to V1ClusterRoleList + */ public static V1ClusterRoleList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ClusterRoleList.class); } - /** - * Convert an instance of V1ClusterRoleList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ClusterRoleList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjection.java index cccd35d9e8..88822df6fb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjection.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,127 +51,132 @@ * ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem. */ @ApiModel(description = "ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ClusterTrustBundleProjection { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) + @jakarta.annotation.Nullable private V1LabelSelector labelSelector; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_OPTIONAL = "optional"; @SerializedName(SERIALIZED_NAME_OPTIONAL) + @jakarta.annotation.Nullable private Boolean optional; public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) + @jakarta.annotation.Nonnull private String path; public static final String SERIALIZED_NAME_SIGNER_NAME = "signerName"; @SerializedName(SERIALIZED_NAME_SIGNER_NAME) + @jakarta.annotation.Nullable private String signerName; public V1ClusterTrustBundleProjection() { } - public V1ClusterTrustBundleProjection labelSelector(V1LabelSelector labelSelector) { + public V1ClusterTrustBundleProjection labelSelector(@jakarta.annotation.Nullable V1LabelSelector labelSelector) { this.labelSelector = labelSelector; return this; } - /** + /** * Get labelSelector * @return labelSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LabelSelector getLabelSelector() { return labelSelector; } - public void setLabelSelector(V1LabelSelector labelSelector) { + public void setLabelSelector(@jakarta.annotation.Nullable V1LabelSelector labelSelector) { this.labelSelector = labelSelector; } - public V1ClusterTrustBundleProjection name(String name) { + public V1ClusterTrustBundleProjection name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector. * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public V1ClusterTrustBundleProjection optional(Boolean optional) { + public V1ClusterTrustBundleProjection optional(@jakarta.annotation.Nullable Boolean optional) { this.optional = optional; return this; } - /** + /** * If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles. * @return optional - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles.") public Boolean getOptional() { return optional; } - public void setOptional(Boolean optional) { + public void setOptional(@jakarta.annotation.Nullable Boolean optional) { this.optional = optional; } - public V1ClusterTrustBundleProjection path(String path) { + public V1ClusterTrustBundleProjection path(@jakarta.annotation.Nonnull String path) { this.path = path; return this; } - /** + /** * Relative path from the volume root to write the bundle. * @return path - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Relative path from the volume root to write the bundle.") public String getPath() { return path; } - public void setPath(String path) { + public void setPath(@jakarta.annotation.Nonnull String path) { this.path = path; } - public V1ClusterTrustBundleProjection signerName(String signerName) { + public V1ClusterTrustBundleProjection signerName(@jakarta.annotation.Nullable String signerName) { this.signerName = signerName; return this; } - /** + /** * Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated. * @return signerName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated.") public String getSignerName() { return signerName; } - public void setSignerName(String signerName) { + public void setSignerName(@jakarta.annotation.Nullable String signerName) { this.signerName = signerName; } @@ -241,12 +245,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("path"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ClusterTrustBundleProjection - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ClusterTrustBundleProjection + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ClusterTrustBundleProjection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -313,22 +317,22 @@ public V1ClusterTrustBundleProjection read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ClusterTrustBundleProjection given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ClusterTrustBundleProjection - * @throws IOException if the JSON string is invalid with respect to V1ClusterTrustBundleProjection - */ + /** + * Create an instance of V1ClusterTrustBundleProjection given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ClusterTrustBundleProjection + * @throws IOException if the JSON string is invalid with respect to V1ClusterTrustBundleProjection + */ public static V1ClusterTrustBundleProjection fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ClusterTrustBundleProjection.class); } - /** - * Convert an instance of V1ClusterTrustBundleProjection to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ClusterTrustBundleProjection to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentCondition.java index 61963afb2b..0f1a2f6c4a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentCondition.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,103 +50,107 @@ * Information about the condition of a component. */ @ApiModel(description = "Information about the condition of a component.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ComponentCondition { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) + @jakarta.annotation.Nullable private String error; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nonnull private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1ComponentCondition() { } - public V1ComponentCondition error(String error) { + public V1ComponentCondition error(@jakarta.annotation.Nullable String error) { this.error = error; return this; } - /** + /** * Condition error code for a component. For example, a health check error code. * @return error - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Condition error code for a component. For example, a health check error code.") public String getError() { return error; } - public void setError(String error) { + public void setError(@jakarta.annotation.Nullable String error) { this.error = error; } - public V1ComponentCondition message(String message) { + public V1ComponentCondition message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * Message about the condition for a component. For example, information about a health check. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Message about the condition for a component. For example, information about a health check.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1ComponentCondition status(String status) { + public V1ComponentCondition status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } - /** + /** * Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\". * @return status - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".") public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public V1ComponentCondition type(String type) { + public V1ComponentCondition type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * Type of condition for a component. Valid value: \"Healthy\" * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Type of condition for a component. Valid value: \"Healthy\"") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ComponentCondition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ComponentCondition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ComponentCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -285,22 +288,22 @@ public V1ComponentCondition read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ComponentCondition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ComponentCondition - * @throws IOException if the JSON string is invalid with respect to V1ComponentCondition - */ + /** + * Create an instance of V1ComponentCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ComponentCondition + * @throws IOException if the JSON string is invalid with respect to V1ComponentCondition + */ public static V1ComponentCondition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ComponentCondition.class); } - /** - * Convert an instance of V1ComponentCondition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ComponentCondition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java index f92566a0d0..92c76f9c03 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+ */ @ApiModel(description = "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ComponentStatus implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public V1ComponentStatus() { } - public V1ComponentStatus apiVersion(String apiVersion) { + public V1ComponentStatus apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ComponentStatus conditions(List conditions) { + public V1ComponentStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } @@ -109,57 +112,57 @@ public V1ComponentStatus addConditionsItem(V1ComponentCondition conditionsItem) return this; } - /** + /** * List of component conditions observed * @return conditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "List of component conditions observed") public List getConditions() { return conditions; } - public void setConditions(List conditions) { + public void setConditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; } - public V1ComponentStatus kind(String kind) { + public V1ComponentStatus kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ComponentStatus metadata(V1ObjectMeta metadata) { + public V1ComponentStatus metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } @@ -224,12 +227,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ComponentStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ComponentStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ComponentStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -300,22 +303,22 @@ public V1ComponentStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ComponentStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ComponentStatus - * @throws IOException if the JSON string is invalid with respect to V1ComponentStatus - */ + /** + * Create an instance of V1ComponentStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ComponentStatus + * @throws IOException if the JSON string is invalid with respect to V1ComponentStatus + */ public static V1ComponentStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ComponentStatus.class); } - /** - * Convert an instance of V1ComponentStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ComponentStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusList.java index d8b8c51877..d2180679a9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+ */ @ApiModel(description = "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ComponentStatusList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1ComponentStatusList() { } - public V1ComponentStatusList apiVersion(String apiVersion) { + public V1ComponentStatusList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ComponentStatusList items(List items) { + public V1ComponentStatusList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1ComponentStatusList addItemsItem(V1ComponentStatus itemsItem) { return this; } - /** + /** * List of ComponentStatus objects. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "List of ComponentStatus objects.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1ComponentStatusList kind(String kind) { + public V1ComponentStatusList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ComponentStatusList metadata(V1ListMeta metadata) { + public V1ComponentStatusList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ComponentStatusList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ComponentStatusList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ComponentStatusList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1ComponentStatusList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ComponentStatusList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ComponentStatusList - * @throws IOException if the JSON string is invalid with respect to V1ComponentStatusList - */ + /** + * Create an instance of V1ComponentStatusList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ComponentStatusList + * @throws IOException if the JSON string is invalid with respect to V1ComponentStatusList + */ public static V1ComponentStatusList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ComponentStatusList.class); } - /** - * Convert an instance of V1ComponentStatusList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ComponentStatusList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Condition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Condition.java index 8a3aa6aae3..81ec6aa090 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Condition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Condition.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,151 +51,157 @@ * Condition contains details for one aspect of the current state of this API Resource. */ @ApiModel(description = "Condition contains details for one aspect of the current state of this API Resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Condition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + @jakarta.annotation.Nonnull private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nonnull private String message; public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + @jakarta.annotation.Nullable private Long observedGeneration; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nonnull private String reason; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nonnull private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1Condition() { } - public V1Condition lastTransitionTime(OffsetDateTime lastTransitionTime) { + public V1Condition lastTransitionTime(@jakarta.annotation.Nonnull OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; } - /** + /** * lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. * @return lastTransitionTime - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { + public void setLastTransitionTime(@jakarta.annotation.Nonnull OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } - public V1Condition message(String message) { + public V1Condition message(@jakarta.annotation.Nonnull String message) { this.message = message; return this; } - /** + /** * message is a human readable message indicating details about the transition. This may be an empty string. * @return message - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "message is a human readable message indicating details about the transition. This may be an empty string.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public V1Condition observedGeneration(Long observedGeneration) { + public V1Condition observedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { this.observedGeneration = observedGeneration; return this; } - /** + /** * observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. * @return observedGeneration - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.") public Long getObservedGeneration() { return observedGeneration; } - public void setObservedGeneration(Long observedGeneration) { + public void setObservedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { this.observedGeneration = observedGeneration; } - public V1Condition reason(String reason) { + public V1Condition reason(@jakarta.annotation.Nonnull String reason) { this.reason = reason; return this; } - /** + /** * reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty. * @return reason - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nonnull String reason) { this.reason = reason; } - public V1Condition status(String status) { + public V1Condition status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } - /** + /** * status of the condition, one of True, False, Unknown. * @return status - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public V1Condition type(String type) { + public V1Condition type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * type of condition in CamelCase or in foo.example.com/CamelCase. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "type of condition in CamelCase or in foo.example.com/CamelCase.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -272,12 +277,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Condition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Condition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Condition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -343,22 +348,22 @@ public V1Condition read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Condition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Condition - * @throws IOException if the JSON string is invalid with respect to V1Condition - */ + /** + * Create an instance of V1Condition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Condition + * @throws IOException if the JSON string is invalid with respect to V1Condition + */ public static V1Condition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Condition.class); } - /** - * Convert an instance of V1Condition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Condition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMap.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMap.java index 3b6a42b49f..f5f9d64c34 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMap.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMap.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,56 +53,62 @@ * ConfigMap holds configuration data for pods to consume. */ @ApiModel(description = "ConfigMap holds configuration data for pods to consume.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ConfigMap implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_BINARY_DATA = "binaryData"; @SerializedName(SERIALIZED_NAME_BINARY_DATA) + @jakarta.annotation.Nullable private Map binaryData = new HashMap<>(); public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) + @jakarta.annotation.Nullable private Map data = new HashMap<>(); public static final String SERIALIZED_NAME_IMMUTABLE = "immutable"; @SerializedName(SERIALIZED_NAME_IMMUTABLE) + @jakarta.annotation.Nullable private Boolean immutable; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public V1ConfigMap() { } - public V1ConfigMap apiVersion(String apiVersion) { + public V1ConfigMap apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ConfigMap binaryData(Map binaryData) { + public V1ConfigMap binaryData(@jakarta.annotation.Nullable Map binaryData) { this.binaryData = binaryData; return this; } @@ -116,22 +121,22 @@ public V1ConfigMap putBinaryDataItem(String key, byte[] binaryDataItem) { return this; } - /** + /** * BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. * @return binaryData - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.") public Map getBinaryData() { return binaryData; } - public void setBinaryData(Map binaryData) { + public void setBinaryData(@jakarta.annotation.Nullable Map binaryData) { this.binaryData = binaryData; } - public V1ConfigMap data(Map data) { + public V1ConfigMap data(@jakarta.annotation.Nullable Map data) { this.data = data; return this; } @@ -144,77 +149,77 @@ public V1ConfigMap putDataItem(String key, String dataItem) { return this; } - /** + /** * Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. * @return data - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.") public Map getData() { return data; } - public void setData(Map data) { + public void setData(@jakarta.annotation.Nullable Map data) { this.data = data; } - public V1ConfigMap immutable(Boolean immutable) { + public V1ConfigMap immutable(@jakarta.annotation.Nullable Boolean immutable) { this.immutable = immutable; return this; } - /** + /** * Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. * @return immutable - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.") public Boolean getImmutable() { return immutable; } - public void setImmutable(Boolean immutable) { + public void setImmutable(@jakarta.annotation.Nullable Boolean immutable) { this.immutable = immutable; } - public V1ConfigMap kind(String kind) { + public V1ConfigMap kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ConfigMap metadata(V1ObjectMeta metadata) { + public V1ConfigMap metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } @@ -285,12 +290,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ConfigMap - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ConfigMap + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ConfigMap.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -347,22 +352,22 @@ public V1ConfigMap read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ConfigMap given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ConfigMap - * @throws IOException if the JSON string is invalid with respect to V1ConfigMap - */ + /** + * Create an instance of V1ConfigMap given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ConfigMap + * @throws IOException if the JSON string is invalid with respect to V1ConfigMap + */ public static V1ConfigMap fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ConfigMap.class); } - /** - * Convert an instance of V1ConfigMap to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ConfigMap to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSource.java index c72f931902..3a9ff8add8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. */ @ApiModel(description = "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ConfigMapEnvSource { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_OPTIONAL = "optional"; @SerializedName(SERIALIZED_NAME_OPTIONAL) + @jakarta.annotation.Nullable private Boolean optional; public V1ConfigMapEnvSource() { } - public V1ConfigMapEnvSource name(String name) { + public V1ConfigMapEnvSource name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public V1ConfigMapEnvSource optional(Boolean optional) { + public V1ConfigMapEnvSource optional(@jakarta.annotation.Nullable Boolean optional) { this.optional = optional; return this; } - /** + /** * Specify whether the ConfigMap must be defined * @return optional - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the ConfigMap must be defined") public Boolean getOptional() { return optional; } - public void setOptional(Boolean optional) { + public void setOptional(@jakarta.annotation.Nullable Boolean optional) { this.optional = optional; } @@ -158,12 +159,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ConfigMapEnvSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ConfigMapEnvSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ConfigMapEnvSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -213,22 +214,22 @@ public V1ConfigMapEnvSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ConfigMapEnvSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ConfigMapEnvSource - * @throws IOException if the JSON string is invalid with respect to V1ConfigMapEnvSource - */ + /** + * Create an instance of V1ConfigMapEnvSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ConfigMapEnvSource + * @throws IOException if the JSON string is invalid with respect to V1ConfigMapEnvSource + */ public static V1ConfigMapEnvSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ConfigMapEnvSource.class); } - /** - * Convert an instance of V1ConfigMapEnvSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ConfigMapEnvSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelector.java index e3d2d3af1c..a4931861c4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelector.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,79 +50,82 @@ * Selects a key from a ConfigMap. */ @ApiModel(description = "Selects a key from a ConfigMap.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ConfigMapKeySelector { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) + @jakarta.annotation.Nonnull private String key; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_OPTIONAL = "optional"; @SerializedName(SERIALIZED_NAME_OPTIONAL) + @jakarta.annotation.Nullable private Boolean optional; public V1ConfigMapKeySelector() { } - public V1ConfigMapKeySelector key(String key) { + public V1ConfigMapKeySelector key(@jakarta.annotation.Nonnull String key) { this.key = key; return this; } - /** + /** * The key to select. * @return key - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The key to select.") public String getKey() { return key; } - public void setKey(String key) { + public void setKey(@jakarta.annotation.Nonnull String key) { this.key = key; } - public V1ConfigMapKeySelector name(String name) { + public V1ConfigMapKeySelector name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public V1ConfigMapKeySelector optional(Boolean optional) { + public V1ConfigMapKeySelector optional(@jakarta.annotation.Nullable Boolean optional) { this.optional = optional; return this; } - /** + /** * Specify whether the ConfigMap or its key must be defined * @return optional - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the ConfigMap or its key must be defined") public Boolean getOptional() { return optional; } - public void setOptional(Boolean optional) { + public void setOptional(@jakarta.annotation.Nullable Boolean optional) { this.optional = optional; } @@ -186,12 +188,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("key"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ConfigMapKeySelector - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ConfigMapKeySelector + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ConfigMapKeySelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -251,22 +253,22 @@ public V1ConfigMapKeySelector read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ConfigMapKeySelector given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ConfigMapKeySelector - * @throws IOException if the JSON string is invalid with respect to V1ConfigMapKeySelector - */ + /** + * Create an instance of V1ConfigMapKeySelector given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ConfigMapKeySelector + * @throws IOException if the JSON string is invalid with respect to V1ConfigMapKeySelector + */ public static V1ConfigMapKeySelector fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ConfigMapKeySelector.class); } - /** - * Convert an instance of V1ConfigMapKeySelector to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ConfigMapKeySelector to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapList.java index 2003c7ac54..daafd93a9a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * ConfigMapList is a resource containing a list of ConfigMap objects. */ @ApiModel(description = "ConfigMapList is a resource containing a list of ConfigMap objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ConfigMapList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1ConfigMapList() { } - public V1ConfigMapList apiVersion(String apiVersion) { + public V1ConfigMapList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ConfigMapList items(List items) { + public V1ConfigMapList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1ConfigMapList addItemsItem(V1ConfigMap itemsItem) { return this; } - /** + /** * Items is the list of ConfigMaps. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items is the list of ConfigMaps.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1ConfigMapList kind(String kind) { + public V1ConfigMapList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ConfigMapList metadata(V1ListMeta metadata) { + public V1ConfigMapList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ConfigMapList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ConfigMapList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ConfigMapList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1ConfigMapList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ConfigMapList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ConfigMapList - * @throws IOException if the JSON string is invalid with respect to V1ConfigMapList - */ + /** + * Create an instance of V1ConfigMapList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ConfigMapList + * @throws IOException if the JSON string is invalid with respect to V1ConfigMapList + */ public static V1ConfigMapList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ConfigMapList.class); } - /** - * Convert an instance of V1ConfigMapList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ConfigMapList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.java index a75c0837f6..32497acc7b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,127 +50,132 @@ * ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration */ @ApiModel(description = "ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ConfigMapNodeConfigSource { public static final String SERIALIZED_NAME_KUBELET_CONFIG_KEY = "kubeletConfigKey"; @SerializedName(SERIALIZED_NAME_KUBELET_CONFIG_KEY) + @jakarta.annotation.Nonnull private String kubeletConfigKey; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) + @jakarta.annotation.Nonnull private String namespace; public static final String SERIALIZED_NAME_RESOURCE_VERSION = "resourceVersion"; @SerializedName(SERIALIZED_NAME_RESOURCE_VERSION) + @jakarta.annotation.Nullable private String resourceVersion; public static final String SERIALIZED_NAME_UID = "uid"; @SerializedName(SERIALIZED_NAME_UID) + @jakarta.annotation.Nullable private String uid; public V1ConfigMapNodeConfigSource() { } - public V1ConfigMapNodeConfigSource kubeletConfigKey(String kubeletConfigKey) { + public V1ConfigMapNodeConfigSource kubeletConfigKey(@jakarta.annotation.Nonnull String kubeletConfigKey) { this.kubeletConfigKey = kubeletConfigKey; return this; } - /** + /** * KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. * @return kubeletConfigKey - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.") public String getKubeletConfigKey() { return kubeletConfigKey; } - public void setKubeletConfigKey(String kubeletConfigKey) { + public void setKubeletConfigKey(@jakarta.annotation.Nonnull String kubeletConfigKey) { this.kubeletConfigKey = kubeletConfigKey; } - public V1ConfigMapNodeConfigSource name(String name) { + public V1ConfigMapNodeConfigSource name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1ConfigMapNodeConfigSource namespace(String namespace) { + public V1ConfigMapNodeConfigSource namespace(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; return this; } - /** + /** * Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. * @return namespace - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.") public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { + public void setNamespace(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } - public V1ConfigMapNodeConfigSource resourceVersion(String resourceVersion) { + public V1ConfigMapNodeConfigSource resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } - /** + /** * ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. * @return resourceVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.") public String getResourceVersion() { return resourceVersion; } - public void setResourceVersion(String resourceVersion) { + public void setResourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; } - public V1ConfigMapNodeConfigSource uid(String uid) { + public V1ConfigMapNodeConfigSource uid(@jakarta.annotation.Nullable String uid) { this.uid = uid; return this; } - /** + /** * UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. * @return uid - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.") public String getUid() { return uid; } - public void setUid(String uid) { + public void setUid(@jakarta.annotation.Nullable String uid) { this.uid = uid; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("namespace"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ConfigMapNodeConfigSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ConfigMapNodeConfigSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ConfigMapNodeConfigSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -316,22 +320,22 @@ public V1ConfigMapNodeConfigSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ConfigMapNodeConfigSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ConfigMapNodeConfigSource - * @throws IOException if the JSON string is invalid with respect to V1ConfigMapNodeConfigSource - */ + /** + * Create an instance of V1ConfigMapNodeConfigSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ConfigMapNodeConfigSource + * @throws IOException if the JSON string is invalid with respect to V1ConfigMapNodeConfigSource + */ public static V1ConfigMapNodeConfigSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ConfigMapNodeConfigSource.class); } - /** - * Convert an instance of V1ConfigMapNodeConfigSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ConfigMapNodeConfigSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java index e18cdaa860..24a8e9ee17 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,24 +53,27 @@ * Adapts a ConfigMap into a projected volume. The contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode. */ @ApiModel(description = "Adapts a ConfigMap into a projected volume. The contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ConfigMapProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nullable private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_OPTIONAL = "optional"; @SerializedName(SERIALIZED_NAME_OPTIONAL) + @jakarta.annotation.Nullable private Boolean optional; public V1ConfigMapProjection() { } - public V1ConfigMapProjection items(List items) { + public V1ConfigMapProjection items(@jakarta.annotation.Nullable List items) { this.items = items; return this; } @@ -84,57 +86,57 @@ public V1ConfigMapProjection addItemsItem(V1KeyToPath itemsItem) { return this; } - /** + /** * items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. * @return items - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nullable List items) { this.items = items; } - public V1ConfigMapProjection name(String name) { + public V1ConfigMapProjection name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public V1ConfigMapProjection optional(Boolean optional) { + public V1ConfigMapProjection optional(@jakarta.annotation.Nullable Boolean optional) { this.optional = optional; return this; } - /** + /** * optional specify whether the ConfigMap or its keys must be defined * @return optional - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "optional specify whether the ConfigMap or its keys must be defined") public Boolean getOptional() { return optional; } - public void setOptional(Boolean optional) { + public void setOptional(@jakarta.annotation.Nullable Boolean optional) { this.optional = optional; } @@ -196,12 +198,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ConfigMapProjection - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ConfigMapProjection + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ConfigMapProjection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -265,22 +267,22 @@ public V1ConfigMapProjection read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ConfigMapProjection given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ConfigMapProjection - * @throws IOException if the JSON string is invalid with respect to V1ConfigMapProjection - */ + /** + * Create an instance of V1ConfigMapProjection given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ConfigMapProjection + * @throws IOException if the JSON string is invalid with respect to V1ConfigMapProjection + */ public static V1ConfigMapProjection fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ConfigMapProjection.class); } - /** - * Convert an instance of V1ConfigMapProjection to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ConfigMapProjection to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java index c37f7b629a..1966486ab2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,48 +53,52 @@ * Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ConfigMapVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) + @jakarta.annotation.Nullable private Integer defaultMode; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nullable private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_OPTIONAL = "optional"; @SerializedName(SERIALIZED_NAME_OPTIONAL) + @jakarta.annotation.Nullable private Boolean optional; public V1ConfigMapVolumeSource() { } - public V1ConfigMapVolumeSource defaultMode(Integer defaultMode) { + public V1ConfigMapVolumeSource defaultMode(@jakarta.annotation.Nullable Integer defaultMode) { this.defaultMode = defaultMode; return this; } - /** + /** * defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. * @return defaultMode - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") public Integer getDefaultMode() { return defaultMode; } - public void setDefaultMode(Integer defaultMode) { + public void setDefaultMode(@jakarta.annotation.Nullable Integer defaultMode) { this.defaultMode = defaultMode; } - public V1ConfigMapVolumeSource items(List items) { + public V1ConfigMapVolumeSource items(@jakarta.annotation.Nullable List items) { this.items = items; return this; } @@ -108,57 +111,57 @@ public V1ConfigMapVolumeSource addItemsItem(V1KeyToPath itemsItem) { return this; } - /** + /** * items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. * @return items - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nullable List items) { this.items = items; } - public V1ConfigMapVolumeSource name(String name) { + public V1ConfigMapVolumeSource name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public V1ConfigMapVolumeSource optional(Boolean optional) { + public V1ConfigMapVolumeSource optional(@jakarta.annotation.Nullable Boolean optional) { this.optional = optional; return this; } - /** + /** * optional specify whether the ConfigMap or its keys must be defined * @return optional - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "optional specify whether the ConfigMap or its keys must be defined") public Boolean getOptional() { return optional; } - public void setOptional(Boolean optional) { + public void setOptional(@jakarta.annotation.Nullable Boolean optional) { this.optional = optional; } @@ -223,12 +226,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ConfigMapVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ConfigMapVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ConfigMapVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -292,22 +295,22 @@ public V1ConfigMapVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ConfigMapVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ConfigMapVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1ConfigMapVolumeSource - */ + /** + * Create an instance of V1ConfigMapVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ConfigMapVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1ConfigMapVolumeSource + */ public static V1ConfigMapVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ConfigMapVolumeSource.class); } - /** - * Convert an instance of V1ConfigMapVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ConfigMapVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Container.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Container.java index e8678473c9..b0d4564cc3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Container.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Container.java @@ -50,7 +50,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -63,108 +62,132 @@ * A single application container that you want to run within a pod. */ @ApiModel(description = "A single application container that you want to run within a pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Container { public static final String SERIALIZED_NAME_ARGS = "args"; @SerializedName(SERIALIZED_NAME_ARGS) + @jakarta.annotation.Nullable private List args = new ArrayList<>(); public static final String SERIALIZED_NAME_COMMAND = "command"; @SerializedName(SERIALIZED_NAME_COMMAND) + @jakarta.annotation.Nullable private List command = new ArrayList<>(); public static final String SERIALIZED_NAME_ENV = "env"; @SerializedName(SERIALIZED_NAME_ENV) + @jakarta.annotation.Nullable private List env = new ArrayList<>(); public static final String SERIALIZED_NAME_ENV_FROM = "envFrom"; @SerializedName(SERIALIZED_NAME_ENV_FROM) + @jakarta.annotation.Nullable private List envFrom = new ArrayList<>(); public static final String SERIALIZED_NAME_IMAGE = "image"; @SerializedName(SERIALIZED_NAME_IMAGE) + @jakarta.annotation.Nullable private String image; public static final String SERIALIZED_NAME_IMAGE_PULL_POLICY = "imagePullPolicy"; @SerializedName(SERIALIZED_NAME_IMAGE_PULL_POLICY) + @jakarta.annotation.Nullable private String imagePullPolicy; public static final String SERIALIZED_NAME_LIFECYCLE = "lifecycle"; @SerializedName(SERIALIZED_NAME_LIFECYCLE) + @jakarta.annotation.Nullable private V1Lifecycle lifecycle; public static final String SERIALIZED_NAME_LIVENESS_PROBE = "livenessProbe"; @SerializedName(SERIALIZED_NAME_LIVENESS_PROBE) + @jakarta.annotation.Nullable private V1Probe livenessProbe; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) + @jakarta.annotation.Nullable private List ports = new ArrayList<>(); public static final String SERIALIZED_NAME_READINESS_PROBE = "readinessProbe"; @SerializedName(SERIALIZED_NAME_READINESS_PROBE) + @jakarta.annotation.Nullable private V1Probe readinessProbe; public static final String SERIALIZED_NAME_RESIZE_POLICY = "resizePolicy"; @SerializedName(SERIALIZED_NAME_RESIZE_POLICY) + @jakarta.annotation.Nullable private List resizePolicy = new ArrayList<>(); public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) + @jakarta.annotation.Nullable private V1ResourceRequirements resources; public static final String SERIALIZED_NAME_RESTART_POLICY = "restartPolicy"; @SerializedName(SERIALIZED_NAME_RESTART_POLICY) + @jakarta.annotation.Nullable private String restartPolicy; public static final String SERIALIZED_NAME_SECURITY_CONTEXT = "securityContext"; @SerializedName(SERIALIZED_NAME_SECURITY_CONTEXT) + @jakarta.annotation.Nullable private V1SecurityContext securityContext; public static final String SERIALIZED_NAME_STARTUP_PROBE = "startupProbe"; @SerializedName(SERIALIZED_NAME_STARTUP_PROBE) + @jakarta.annotation.Nullable private V1Probe startupProbe; public static final String SERIALIZED_NAME_STDIN = "stdin"; @SerializedName(SERIALIZED_NAME_STDIN) + @jakarta.annotation.Nullable private Boolean stdin; public static final String SERIALIZED_NAME_STDIN_ONCE = "stdinOnce"; @SerializedName(SERIALIZED_NAME_STDIN_ONCE) + @jakarta.annotation.Nullable private Boolean stdinOnce; public static final String SERIALIZED_NAME_TERMINATION_MESSAGE_PATH = "terminationMessagePath"; @SerializedName(SERIALIZED_NAME_TERMINATION_MESSAGE_PATH) + @jakarta.annotation.Nullable private String terminationMessagePath; public static final String SERIALIZED_NAME_TERMINATION_MESSAGE_POLICY = "terminationMessagePolicy"; @SerializedName(SERIALIZED_NAME_TERMINATION_MESSAGE_POLICY) + @jakarta.annotation.Nullable private String terminationMessagePolicy; public static final String SERIALIZED_NAME_TTY = "tty"; @SerializedName(SERIALIZED_NAME_TTY) + @jakarta.annotation.Nullable private Boolean tty; public static final String SERIALIZED_NAME_VOLUME_DEVICES = "volumeDevices"; @SerializedName(SERIALIZED_NAME_VOLUME_DEVICES) + @jakarta.annotation.Nullable private List volumeDevices = new ArrayList<>(); public static final String SERIALIZED_NAME_VOLUME_MOUNTS = "volumeMounts"; @SerializedName(SERIALIZED_NAME_VOLUME_MOUNTS) + @jakarta.annotation.Nullable private List volumeMounts = new ArrayList<>(); public static final String SERIALIZED_NAME_WORKING_DIR = "workingDir"; @SerializedName(SERIALIZED_NAME_WORKING_DIR) + @jakarta.annotation.Nullable private String workingDir; public V1Container() { } - public V1Container args(List args) { + public V1Container args(@jakarta.annotation.Nullable List args) { this.args = args; return this; } @@ -177,22 +200,22 @@ public V1Container addArgsItem(String argsItem) { return this; } - /** + /** * Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell * @return args - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell") public List getArgs() { return args; } - public void setArgs(List args) { + public void setArgs(@jakarta.annotation.Nullable List args) { this.args = args; } - public V1Container command(List command) { + public V1Container command(@jakarta.annotation.Nullable List command) { this.command = command; return this; } @@ -205,22 +228,22 @@ public V1Container addCommandItem(String commandItem) { return this; } - /** + /** * Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell * @return command - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell") public List getCommand() { return command; } - public void setCommand(List command) { + public void setCommand(@jakarta.annotation.Nullable List command) { this.command = command; } - public V1Container env(List env) { + public V1Container env(@jakarta.annotation.Nullable List env) { this.env = env; return this; } @@ -233,22 +256,22 @@ public V1Container addEnvItem(V1EnvVar envItem) { return this; } - /** + /** * List of environment variables to set in the container. Cannot be updated. * @return env - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "List of environment variables to set in the container. Cannot be updated.") public List getEnv() { return env; } - public void setEnv(List env) { + public void setEnv(@jakarta.annotation.Nullable List env) { this.env = env; } - public V1Container envFrom(List envFrom) { + public V1Container envFrom(@jakarta.annotation.Nullable List envFrom) { this.envFrom = envFrom; return this; } @@ -261,122 +284,122 @@ public V1Container addEnvFromItem(V1EnvFromSource envFromItem) { return this; } - /** + /** * List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. * @return envFrom - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.") public List getEnvFrom() { return envFrom; } - public void setEnvFrom(List envFrom) { + public void setEnvFrom(@jakarta.annotation.Nullable List envFrom) { this.envFrom = envFrom; } - public V1Container image(String image) { + public V1Container image(@jakarta.annotation.Nullable String image) { this.image = image; return this; } - /** + /** * Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. * @return image - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.") public String getImage() { return image; } - public void setImage(String image) { + public void setImage(@jakarta.annotation.Nullable String image) { this.image = image; } - public V1Container imagePullPolicy(String imagePullPolicy) { + public V1Container imagePullPolicy(@jakarta.annotation.Nullable String imagePullPolicy) { this.imagePullPolicy = imagePullPolicy; return this; } - /** + /** * Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images * @return imagePullPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images") public String getImagePullPolicy() { return imagePullPolicy; } - public void setImagePullPolicy(String imagePullPolicy) { + public void setImagePullPolicy(@jakarta.annotation.Nullable String imagePullPolicy) { this.imagePullPolicy = imagePullPolicy; } - public V1Container lifecycle(V1Lifecycle lifecycle) { + public V1Container lifecycle(@jakarta.annotation.Nullable V1Lifecycle lifecycle) { this.lifecycle = lifecycle; return this; } - /** + /** * Get lifecycle * @return lifecycle - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1Lifecycle getLifecycle() { return lifecycle; } - public void setLifecycle(V1Lifecycle lifecycle) { + public void setLifecycle(@jakarta.annotation.Nullable V1Lifecycle lifecycle) { this.lifecycle = lifecycle; } - public V1Container livenessProbe(V1Probe livenessProbe) { + public V1Container livenessProbe(@jakarta.annotation.Nullable V1Probe livenessProbe) { this.livenessProbe = livenessProbe; return this; } - /** + /** * Get livenessProbe * @return livenessProbe - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1Probe getLivenessProbe() { return livenessProbe; } - public void setLivenessProbe(V1Probe livenessProbe) { + public void setLivenessProbe(@jakarta.annotation.Nullable V1Probe livenessProbe) { this.livenessProbe = livenessProbe; } - public V1Container name(String name) { + public V1Container name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1Container ports(List ports) { + public V1Container ports(@jakarta.annotation.Nullable List ports) { this.ports = ports; return this; } @@ -389,42 +412,42 @@ public V1Container addPortsItem(V1ContainerPort portsItem) { return this; } - /** + /** * List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. * @return ports - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated.") public List getPorts() { return ports; } - public void setPorts(List ports) { + public void setPorts(@jakarta.annotation.Nullable List ports) { this.ports = ports; } - public V1Container readinessProbe(V1Probe readinessProbe) { + public V1Container readinessProbe(@jakarta.annotation.Nullable V1Probe readinessProbe) { this.readinessProbe = readinessProbe; return this; } - /** + /** * Get readinessProbe * @return readinessProbe - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1Probe getReadinessProbe() { return readinessProbe; } - public void setReadinessProbe(V1Probe readinessProbe) { + public void setReadinessProbe(@jakarta.annotation.Nullable V1Probe readinessProbe) { this.readinessProbe = readinessProbe; } - public V1Container resizePolicy(List resizePolicy) { + public V1Container resizePolicy(@jakarta.annotation.Nullable List resizePolicy) { this.resizePolicy = resizePolicy; return this; } @@ -437,202 +460,202 @@ public V1Container addResizePolicyItem(V1ContainerResizePolicy resizePolicyItem) return this; } - /** + /** * Resources resize policy for the container. * @return resizePolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Resources resize policy for the container.") public List getResizePolicy() { return resizePolicy; } - public void setResizePolicy(List resizePolicy) { + public void setResizePolicy(@jakarta.annotation.Nullable List resizePolicy) { this.resizePolicy = resizePolicy; } - public V1Container resources(V1ResourceRequirements resources) { + public V1Container resources(@jakarta.annotation.Nullable V1ResourceRequirements resources) { this.resources = resources; return this; } - /** + /** * Get resources * @return resources - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ResourceRequirements getResources() { return resources; } - public void setResources(V1ResourceRequirements resources) { + public void setResources(@jakarta.annotation.Nullable V1ResourceRequirements resources) { this.resources = resources; } - public V1Container restartPolicy(String restartPolicy) { + public V1Container restartPolicy(@jakarta.annotation.Nullable String restartPolicy) { this.restartPolicy = restartPolicy; return this; } - /** + /** * RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. * @return restartPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed.") public String getRestartPolicy() { return restartPolicy; } - public void setRestartPolicy(String restartPolicy) { + public void setRestartPolicy(@jakarta.annotation.Nullable String restartPolicy) { this.restartPolicy = restartPolicy; } - public V1Container securityContext(V1SecurityContext securityContext) { + public V1Container securityContext(@jakarta.annotation.Nullable V1SecurityContext securityContext) { this.securityContext = securityContext; return this; } - /** + /** * Get securityContext * @return securityContext - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SecurityContext getSecurityContext() { return securityContext; } - public void setSecurityContext(V1SecurityContext securityContext) { + public void setSecurityContext(@jakarta.annotation.Nullable V1SecurityContext securityContext) { this.securityContext = securityContext; } - public V1Container startupProbe(V1Probe startupProbe) { + public V1Container startupProbe(@jakarta.annotation.Nullable V1Probe startupProbe) { this.startupProbe = startupProbe; return this; } - /** + /** * Get startupProbe * @return startupProbe - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1Probe getStartupProbe() { return startupProbe; } - public void setStartupProbe(V1Probe startupProbe) { + public void setStartupProbe(@jakarta.annotation.Nullable V1Probe startupProbe) { this.startupProbe = startupProbe; } - public V1Container stdin(Boolean stdin) { + public V1Container stdin(@jakarta.annotation.Nullable Boolean stdin) { this.stdin = stdin; return this; } - /** + /** * Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. * @return stdin - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.") public Boolean getStdin() { return stdin; } - public void setStdin(Boolean stdin) { + public void setStdin(@jakarta.annotation.Nullable Boolean stdin) { this.stdin = stdin; } - public V1Container stdinOnce(Boolean stdinOnce) { + public V1Container stdinOnce(@jakarta.annotation.Nullable Boolean stdinOnce) { this.stdinOnce = stdinOnce; return this; } - /** + /** * Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false * @return stdinOnce - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false") public Boolean getStdinOnce() { return stdinOnce; } - public void setStdinOnce(Boolean stdinOnce) { + public void setStdinOnce(@jakarta.annotation.Nullable Boolean stdinOnce) { this.stdinOnce = stdinOnce; } - public V1Container terminationMessagePath(String terminationMessagePath) { + public V1Container terminationMessagePath(@jakarta.annotation.Nullable String terminationMessagePath) { this.terminationMessagePath = terminationMessagePath; return this; } - /** + /** * Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. * @return terminationMessagePath - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.") public String getTerminationMessagePath() { return terminationMessagePath; } - public void setTerminationMessagePath(String terminationMessagePath) { + public void setTerminationMessagePath(@jakarta.annotation.Nullable String terminationMessagePath) { this.terminationMessagePath = terminationMessagePath; } - public V1Container terminationMessagePolicy(String terminationMessagePolicy) { + public V1Container terminationMessagePolicy(@jakarta.annotation.Nullable String terminationMessagePolicy) { this.terminationMessagePolicy = terminationMessagePolicy; return this; } - /** + /** * Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. * @return terminationMessagePolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.") public String getTerminationMessagePolicy() { return terminationMessagePolicy; } - public void setTerminationMessagePolicy(String terminationMessagePolicy) { + public void setTerminationMessagePolicy(@jakarta.annotation.Nullable String terminationMessagePolicy) { this.terminationMessagePolicy = terminationMessagePolicy; } - public V1Container tty(Boolean tty) { + public V1Container tty(@jakarta.annotation.Nullable Boolean tty) { this.tty = tty; return this; } - /** + /** * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. * @return tty - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.") public Boolean getTty() { return tty; } - public void setTty(Boolean tty) { + public void setTty(@jakarta.annotation.Nullable Boolean tty) { this.tty = tty; } - public V1Container volumeDevices(List volumeDevices) { + public V1Container volumeDevices(@jakarta.annotation.Nullable List volumeDevices) { this.volumeDevices = volumeDevices; return this; } @@ -645,22 +668,22 @@ public V1Container addVolumeDevicesItem(V1VolumeDevice volumeDevicesItem) { return this; } - /** + /** * volumeDevices is the list of block devices to be used by the container. * @return volumeDevices - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "volumeDevices is the list of block devices to be used by the container.") public List getVolumeDevices() { return volumeDevices; } - public void setVolumeDevices(List volumeDevices) { + public void setVolumeDevices(@jakarta.annotation.Nullable List volumeDevices) { this.volumeDevices = volumeDevices; } - public V1Container volumeMounts(List volumeMounts) { + public V1Container volumeMounts(@jakarta.annotation.Nullable List volumeMounts) { this.volumeMounts = volumeMounts; return this; } @@ -673,37 +696,37 @@ public V1Container addVolumeMountsItem(V1VolumeMount volumeMountsItem) { return this; } - /** + /** * Pod volumes to mount into the container's filesystem. Cannot be updated. * @return volumeMounts - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Pod volumes to mount into the container's filesystem. Cannot be updated.") public List getVolumeMounts() { return volumeMounts; } - public void setVolumeMounts(List volumeMounts) { + public void setVolumeMounts(@jakarta.annotation.Nullable List volumeMounts) { this.volumeMounts = volumeMounts; } - public V1Container workingDir(String workingDir) { + public V1Container workingDir(@jakarta.annotation.Nullable String workingDir) { this.workingDir = workingDir; return this; } - /** + /** * Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. * @return workingDir - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.") public String getWorkingDir() { return workingDir; } - public void setWorkingDir(String workingDir) { + public void setWorkingDir(@jakarta.annotation.Nullable String workingDir) { this.workingDir = workingDir; } @@ -829,12 +852,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Container - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Container + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Container.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -1025,22 +1048,22 @@ public V1Container read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Container given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Container - * @throws IOException if the JSON string is invalid with respect to V1Container - */ + /** + * Create an instance of V1Container given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Container + * @throws IOException if the JSON string is invalid with respect to V1Container + */ public static V1Container fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Container.class); } - /** - * Convert an instance of V1Container to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Container to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java index 595d78a694..180c041acf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,20 +52,22 @@ * Describe a container image */ @ApiModel(description = "Describe a container image") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ContainerImage { public static final String SERIALIZED_NAME_NAMES = "names"; @SerializedName(SERIALIZED_NAME_NAMES) + @jakarta.annotation.Nullable private List names = new ArrayList<>(); public static final String SERIALIZED_NAME_SIZE_BYTES = "sizeBytes"; @SerializedName(SERIALIZED_NAME_SIZE_BYTES) + @jakarta.annotation.Nullable private Long sizeBytes; public V1ContainerImage() { } - public V1ContainerImage names(List names) { + public V1ContainerImage names(@jakarta.annotation.Nullable List names) { this.names = names; return this; } @@ -79,37 +80,37 @@ public V1ContainerImage addNamesItem(String namesItem) { return this; } - /** + /** * Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"] * @return names - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"]") public List getNames() { return names; } - public void setNames(List names) { + public void setNames(@jakarta.annotation.Nullable List names) { this.names = names; } - public V1ContainerImage sizeBytes(Long sizeBytes) { + public V1ContainerImage sizeBytes(@jakarta.annotation.Nullable Long sizeBytes) { this.sizeBytes = sizeBytes; return this; } - /** + /** * The size of the image in bytes. * @return sizeBytes - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The size of the image in bytes.") public Long getSizeBytes() { return sizeBytes; } - public void setSizeBytes(Long sizeBytes) { + public void setSizeBytes(@jakarta.annotation.Nullable Long sizeBytes) { this.sizeBytes = sizeBytes; } @@ -168,12 +169,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ContainerImage - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ContainerImage + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ContainerImage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -224,22 +225,22 @@ public V1ContainerImage read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ContainerImage given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ContainerImage - * @throws IOException if the JSON string is invalid with respect to V1ContainerImage - */ + /** + * Create an instance of V1ContainerImage given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ContainerImage + * @throws IOException if the JSON string is invalid with respect to V1ContainerImage + */ public static V1ContainerImage fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ContainerImage.class); } - /** - * Convert an instance of V1ContainerImage to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ContainerImage to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java index f7008baa36..3023b4811e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,127 +50,132 @@ * ContainerPort represents a network port in a single container. */ @ApiModel(description = "ContainerPort represents a network port in a single container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ContainerPort { public static final String SERIALIZED_NAME_CONTAINER_PORT = "containerPort"; @SerializedName(SERIALIZED_NAME_CONTAINER_PORT) + @jakarta.annotation.Nonnull private Integer containerPort; public static final String SERIALIZED_NAME_HOST_I_P = "hostIP"; @SerializedName(SERIALIZED_NAME_HOST_I_P) + @jakarta.annotation.Nullable private String hostIP; public static final String SERIALIZED_NAME_HOST_PORT = "hostPort"; @SerializedName(SERIALIZED_NAME_HOST_PORT) + @jakarta.annotation.Nullable private Integer hostPort; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_PROTOCOL = "protocol"; @SerializedName(SERIALIZED_NAME_PROTOCOL) + @jakarta.annotation.Nullable private String protocol; public V1ContainerPort() { } - public V1ContainerPort containerPort(Integer containerPort) { + public V1ContainerPort containerPort(@jakarta.annotation.Nonnull Integer containerPort) { this.containerPort = containerPort; return this; } - /** + /** * Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. * @return containerPort - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.") public Integer getContainerPort() { return containerPort; } - public void setContainerPort(Integer containerPort) { + public void setContainerPort(@jakarta.annotation.Nonnull Integer containerPort) { this.containerPort = containerPort; } - public V1ContainerPort hostIP(String hostIP) { + public V1ContainerPort hostIP(@jakarta.annotation.Nullable String hostIP) { this.hostIP = hostIP; return this; } - /** + /** * What host IP to bind the external port to. * @return hostIP - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "What host IP to bind the external port to.") public String getHostIP() { return hostIP; } - public void setHostIP(String hostIP) { + public void setHostIP(@jakarta.annotation.Nullable String hostIP) { this.hostIP = hostIP; } - public V1ContainerPort hostPort(Integer hostPort) { + public V1ContainerPort hostPort(@jakarta.annotation.Nullable Integer hostPort) { this.hostPort = hostPort; return this; } - /** + /** * Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. * @return hostPort - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.") public Integer getHostPort() { return hostPort; } - public void setHostPort(Integer hostPort) { + public void setHostPort(@jakarta.annotation.Nullable Integer hostPort) { this.hostPort = hostPort; } - public V1ContainerPort name(String name) { + public V1ContainerPort name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public V1ContainerPort protocol(String protocol) { + public V1ContainerPort protocol(@jakarta.annotation.Nullable String protocol) { this.protocol = protocol; return this; } - /** + /** * Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\". * @return protocol - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".") public String getProtocol() { return protocol; } - public void setProtocol(String protocol) { + public void setProtocol(@jakarta.annotation.Nullable String protocol) { this.protocol = protocol; } @@ -240,12 +244,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("containerPort"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ContainerPort - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ContainerPort + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ContainerPort.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -308,22 +312,22 @@ public V1ContainerPort read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ContainerPort given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ContainerPort - * @throws IOException if the JSON string is invalid with respect to V1ContainerPort - */ + /** + * Create an instance of V1ContainerPort given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ContainerPort + * @throws IOException if the JSON string is invalid with respect to V1ContainerPort + */ public static V1ContainerPort fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ContainerPort.class); } - /** - * Convert an instance of V1ContainerPort to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ContainerPort to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicy.java index b2e028b457..1a24d533ce 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicy.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * ContainerResizePolicy represents resource resize policy for the container. */ @ApiModel(description = "ContainerResizePolicy represents resource resize policy for the container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ContainerResizePolicy { public static final String SERIALIZED_NAME_RESOURCE_NAME = "resourceName"; @SerializedName(SERIALIZED_NAME_RESOURCE_NAME) + @jakarta.annotation.Nonnull private String resourceName; public static final String SERIALIZED_NAME_RESTART_POLICY = "restartPolicy"; @SerializedName(SERIALIZED_NAME_RESTART_POLICY) + @jakarta.annotation.Nonnull private String restartPolicy; public V1ContainerResizePolicy() { } - public V1ContainerResizePolicy resourceName(String resourceName) { + public V1ContainerResizePolicy resourceName(@jakarta.annotation.Nonnull String resourceName) { this.resourceName = resourceName; return this; } - /** + /** * Name of the resource to which this resource resize policy applies. Supported values: cpu, memory. * @return resourceName - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.") public String getResourceName() { return resourceName; } - public void setResourceName(String resourceName) { + public void setResourceName(@jakarta.annotation.Nonnull String resourceName) { this.resourceName = resourceName; } - public V1ContainerResizePolicy restartPolicy(String restartPolicy) { + public V1ContainerResizePolicy restartPolicy(@jakarta.annotation.Nonnull String restartPolicy) { this.restartPolicy = restartPolicy; return this; } - /** + /** * Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired. * @return restartPolicy - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.") public String getRestartPolicy() { return restartPolicy; } - public void setRestartPolicy(String restartPolicy) { + public void setRestartPolicy(@jakarta.annotation.Nonnull String restartPolicy) { this.restartPolicy = restartPolicy; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("restartPolicy"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ContainerResizePolicy - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ContainerResizePolicy + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ContainerResizePolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -225,22 +226,22 @@ public V1ContainerResizePolicy read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ContainerResizePolicy given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ContainerResizePolicy - * @throws IOException if the JSON string is invalid with respect to V1ContainerResizePolicy - */ + /** + * Create an instance of V1ContainerResizePolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ContainerResizePolicy + * @throws IOException if the JSON string is invalid with respect to V1ContainerResizePolicy + */ public static V1ContainerResizePolicy fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ContainerResizePolicy.class); } - /** - * Convert an instance of V1ContainerResizePolicy to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ContainerResizePolicy to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java index 10e5f799b1..4a9dd14af8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,79 +53,82 @@ * ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting. */ @ApiModel(description = "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ContainerState { public static final String SERIALIZED_NAME_RUNNING = "running"; @SerializedName(SERIALIZED_NAME_RUNNING) + @jakarta.annotation.Nullable private V1ContainerStateRunning running; public static final String SERIALIZED_NAME_TERMINATED = "terminated"; @SerializedName(SERIALIZED_NAME_TERMINATED) + @jakarta.annotation.Nullable private V1ContainerStateTerminated terminated; public static final String SERIALIZED_NAME_WAITING = "waiting"; @SerializedName(SERIALIZED_NAME_WAITING) + @jakarta.annotation.Nullable private V1ContainerStateWaiting waiting; public V1ContainerState() { } - public V1ContainerState running(V1ContainerStateRunning running) { + public V1ContainerState running(@jakarta.annotation.Nullable V1ContainerStateRunning running) { this.running = running; return this; } - /** + /** * Get running * @return running - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ContainerStateRunning getRunning() { return running; } - public void setRunning(V1ContainerStateRunning running) { + public void setRunning(@jakarta.annotation.Nullable V1ContainerStateRunning running) { this.running = running; } - public V1ContainerState terminated(V1ContainerStateTerminated terminated) { + public V1ContainerState terminated(@jakarta.annotation.Nullable V1ContainerStateTerminated terminated) { this.terminated = terminated; return this; } - /** + /** * Get terminated * @return terminated - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ContainerStateTerminated getTerminated() { return terminated; } - public void setTerminated(V1ContainerStateTerminated terminated) { + public void setTerminated(@jakarta.annotation.Nullable V1ContainerStateTerminated terminated) { this.terminated = terminated; } - public V1ContainerState waiting(V1ContainerStateWaiting waiting) { + public V1ContainerState waiting(@jakarta.annotation.Nullable V1ContainerStateWaiting waiting) { this.waiting = waiting; return this; } - /** + /** * Get waiting * @return waiting - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ContainerStateWaiting getWaiting() { return waiting; } - public void setWaiting(V1ContainerStateWaiting waiting) { + public void setWaiting(@jakarta.annotation.Nullable V1ContainerStateWaiting waiting) { this.waiting = waiting; } @@ -188,12 +190,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ContainerState - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ContainerState + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ContainerState.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -252,22 +254,22 @@ public V1ContainerState read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ContainerState given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ContainerState - * @throws IOException if the JSON string is invalid with respect to V1ContainerState - */ + /** + * Create an instance of V1ContainerState given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ContainerState + * @throws IOException if the JSON string is invalid with respect to V1ContainerState + */ public static V1ContainerState fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ContainerState.class); } - /** - * Convert an instance of V1ContainerState to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ContainerState to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java index 93fd465b9f..c9a00eb243 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,31 +51,32 @@ * ContainerStateRunning is a running state of a container. */ @ApiModel(description = "ContainerStateRunning is a running state of a container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ContainerStateRunning { public static final String SERIALIZED_NAME_STARTED_AT = "startedAt"; @SerializedName(SERIALIZED_NAME_STARTED_AT) + @jakarta.annotation.Nullable private OffsetDateTime startedAt; public V1ContainerStateRunning() { } - public V1ContainerStateRunning startedAt(OffsetDateTime startedAt) { + public V1ContainerStateRunning startedAt(@jakarta.annotation.Nullable OffsetDateTime startedAt) { this.startedAt = startedAt; return this; } - /** + /** * Time at which the container was last (re-)started * @return startedAt - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Time at which the container was last (re-)started") public OffsetDateTime getStartedAt() { return startedAt; } - public void setStartedAt(OffsetDateTime startedAt) { + public void setStartedAt(@jakarta.annotation.Nullable OffsetDateTime startedAt) { this.startedAt = startedAt; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ContainerStateRunning - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ContainerStateRunning + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ContainerStateRunning.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -184,22 +184,22 @@ public V1ContainerStateRunning read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ContainerStateRunning given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ContainerStateRunning - * @throws IOException if the JSON string is invalid with respect to V1ContainerStateRunning - */ + /** + * Create an instance of V1ContainerStateRunning given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ContainerStateRunning + * @throws IOException if the JSON string is invalid with respect to V1ContainerStateRunning + */ public static V1ContainerStateRunning fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ContainerStateRunning.class); } - /** - * Convert an instance of V1ContainerStateRunning to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ContainerStateRunning to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java index 2ac9095e50..bab76a75ba 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,175 +51,182 @@ * ContainerStateTerminated is a terminated state of a container. */ @ApiModel(description = "ContainerStateTerminated is a terminated state of a container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ContainerStateTerminated { public static final String SERIALIZED_NAME_CONTAINER_I_D = "containerID"; @SerializedName(SERIALIZED_NAME_CONTAINER_I_D) + @jakarta.annotation.Nullable private String containerID; public static final String SERIALIZED_NAME_EXIT_CODE = "exitCode"; @SerializedName(SERIALIZED_NAME_EXIT_CODE) + @jakarta.annotation.Nonnull private Integer exitCode; public static final String SERIALIZED_NAME_FINISHED_AT = "finishedAt"; @SerializedName(SERIALIZED_NAME_FINISHED_AT) + @jakarta.annotation.Nullable private OffsetDateTime finishedAt; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_SIGNAL = "signal"; @SerializedName(SERIALIZED_NAME_SIGNAL) + @jakarta.annotation.Nullable private Integer signal; public static final String SERIALIZED_NAME_STARTED_AT = "startedAt"; @SerializedName(SERIALIZED_NAME_STARTED_AT) + @jakarta.annotation.Nullable private OffsetDateTime startedAt; public V1ContainerStateTerminated() { } - public V1ContainerStateTerminated containerID(String containerID) { + public V1ContainerStateTerminated containerID(@jakarta.annotation.Nullable String containerID) { this.containerID = containerID; return this; } - /** + /** * Container's ID in the format '<type>://<container_id>' * @return containerID - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Container's ID in the format '://'") public String getContainerID() { return containerID; } - public void setContainerID(String containerID) { + public void setContainerID(@jakarta.annotation.Nullable String containerID) { this.containerID = containerID; } - public V1ContainerStateTerminated exitCode(Integer exitCode) { + public V1ContainerStateTerminated exitCode(@jakarta.annotation.Nonnull Integer exitCode) { this.exitCode = exitCode; return this; } - /** + /** * Exit status from the last termination of the container * @return exitCode - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Exit status from the last termination of the container") public Integer getExitCode() { return exitCode; } - public void setExitCode(Integer exitCode) { + public void setExitCode(@jakarta.annotation.Nonnull Integer exitCode) { this.exitCode = exitCode; } - public V1ContainerStateTerminated finishedAt(OffsetDateTime finishedAt) { + public V1ContainerStateTerminated finishedAt(@jakarta.annotation.Nullable OffsetDateTime finishedAt) { this.finishedAt = finishedAt; return this; } - /** + /** * Time at which the container last terminated * @return finishedAt - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Time at which the container last terminated") public OffsetDateTime getFinishedAt() { return finishedAt; } - public void setFinishedAt(OffsetDateTime finishedAt) { + public void setFinishedAt(@jakarta.annotation.Nullable OffsetDateTime finishedAt) { this.finishedAt = finishedAt; } - public V1ContainerStateTerminated message(String message) { + public V1ContainerStateTerminated message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * Message regarding the last termination of the container * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Message regarding the last termination of the container") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1ContainerStateTerminated reason(String reason) { + public V1ContainerStateTerminated reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * (brief) reason from the last termination of the container * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "(brief) reason from the last termination of the container") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } - public V1ContainerStateTerminated signal(Integer signal) { + public V1ContainerStateTerminated signal(@jakarta.annotation.Nullable Integer signal) { this.signal = signal; return this; } - /** + /** * Signal from the last termination of the container * @return signal - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Signal from the last termination of the container") public Integer getSignal() { return signal; } - public void setSignal(Integer signal) { + public void setSignal(@jakarta.annotation.Nullable Integer signal) { this.signal = signal; } - public V1ContainerStateTerminated startedAt(OffsetDateTime startedAt) { + public V1ContainerStateTerminated startedAt(@jakarta.annotation.Nullable OffsetDateTime startedAt) { this.startedAt = startedAt; return this; } - /** + /** * Time at which previous execution of the container started * @return startedAt - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Time at which previous execution of the container started") public OffsetDateTime getStartedAt() { return startedAt; } - public void setStartedAt(OffsetDateTime startedAt) { + public void setStartedAt(@jakarta.annotation.Nullable OffsetDateTime startedAt) { this.startedAt = startedAt; } @@ -295,12 +301,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("exitCode"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ContainerStateTerminated - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ContainerStateTerminated + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ContainerStateTerminated.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -363,22 +369,22 @@ public V1ContainerStateTerminated read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ContainerStateTerminated given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ContainerStateTerminated - * @throws IOException if the JSON string is invalid with respect to V1ContainerStateTerminated - */ + /** + * Create an instance of V1ContainerStateTerminated given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ContainerStateTerminated + * @throws IOException if the JSON string is invalid with respect to V1ContainerStateTerminated + */ public static V1ContainerStateTerminated fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ContainerStateTerminated.class); } - /** - * Convert an instance of V1ContainerStateTerminated to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ContainerStateTerminated to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaiting.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaiting.java index df570c4304..62ba383735 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaiting.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaiting.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * ContainerStateWaiting is a waiting state of a container. */ @ApiModel(description = "ContainerStateWaiting is a waiting state of a container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ContainerStateWaiting { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public V1ContainerStateWaiting() { } - public V1ContainerStateWaiting message(String message) { + public V1ContainerStateWaiting message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * Message regarding why the container is not yet running. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Message regarding why the container is not yet running.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1ContainerStateWaiting reason(String reason) { + public V1ContainerStateWaiting reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * (brief) reason the container is not yet running. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "(brief) reason the container is not yet running.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } @@ -158,12 +159,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ContainerStateWaiting - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ContainerStateWaiting + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ContainerStateWaiting.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -216,22 +217,22 @@ public V1ContainerStateWaiting read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ContainerStateWaiting given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ContainerStateWaiting - * @throws IOException if the JSON string is invalid with respect to V1ContainerStateWaiting - */ + /** + * Create an instance of V1ContainerStateWaiting given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ContainerStateWaiting + * @throws IOException if the JSON string is invalid with respect to V1ContainerStateWaiting + */ public static V1ContainerStateWaiting fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ContainerStateWaiting.class); } - /** - * Convert an instance of V1ContainerStateWaiting to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ContainerStateWaiting to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java index 425cc0e017..a06372b8b4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java @@ -48,7 +48,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -61,68 +60,87 @@ * ContainerStatus contains details for the current status of this container. */ @ApiModel(description = "ContainerStatus contains details for the current status of this container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ContainerStatus { public static final String SERIALIZED_NAME_ALLOCATED_RESOURCES = "allocatedResources"; @SerializedName(SERIALIZED_NAME_ALLOCATED_RESOURCES) + @jakarta.annotation.Nullable private Map allocatedResources = new HashMap<>(); public static final String SERIALIZED_NAME_ALLOCATED_RESOURCES_STATUS = "allocatedResourcesStatus"; @SerializedName(SERIALIZED_NAME_ALLOCATED_RESOURCES_STATUS) + @jakarta.annotation.Nullable private List allocatedResourcesStatus = new ArrayList<>(); public static final String SERIALIZED_NAME_CONTAINER_I_D = "containerID"; @SerializedName(SERIALIZED_NAME_CONTAINER_I_D) + @jakarta.annotation.Nullable private String containerID; public static final String SERIALIZED_NAME_IMAGE = "image"; @SerializedName(SERIALIZED_NAME_IMAGE) + @jakarta.annotation.Nonnull private String image; public static final String SERIALIZED_NAME_IMAGE_I_D = "imageID"; @SerializedName(SERIALIZED_NAME_IMAGE_I_D) + @jakarta.annotation.Nonnull private String imageID; public static final String SERIALIZED_NAME_LAST_STATE = "lastState"; @SerializedName(SERIALIZED_NAME_LAST_STATE) + @jakarta.annotation.Nullable private V1ContainerState lastState; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_READY = "ready"; @SerializedName(SERIALIZED_NAME_READY) + @jakarta.annotation.Nonnull private Boolean ready; public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) + @jakarta.annotation.Nullable private V1ResourceRequirements resources; public static final String SERIALIZED_NAME_RESTART_COUNT = "restartCount"; @SerializedName(SERIALIZED_NAME_RESTART_COUNT) + @jakarta.annotation.Nonnull private Integer restartCount; public static final String SERIALIZED_NAME_STARTED = "started"; @SerializedName(SERIALIZED_NAME_STARTED) + @jakarta.annotation.Nullable private Boolean started; public static final String SERIALIZED_NAME_STATE = "state"; @SerializedName(SERIALIZED_NAME_STATE) + @jakarta.annotation.Nullable private V1ContainerState state; + public static final String SERIALIZED_NAME_STOP_SIGNAL = "stopSignal"; + @SerializedName(SERIALIZED_NAME_STOP_SIGNAL) + @jakarta.annotation.Nullable + private String stopSignal; + public static final String SERIALIZED_NAME_USER = "user"; @SerializedName(SERIALIZED_NAME_USER) + @jakarta.annotation.Nullable private V1ContainerUser user; public static final String SERIALIZED_NAME_VOLUME_MOUNTS = "volumeMounts"; @SerializedName(SERIALIZED_NAME_VOLUME_MOUNTS) + @jakarta.annotation.Nullable private List volumeMounts = new ArrayList<>(); public V1ContainerStatus() { } - public V1ContainerStatus allocatedResources(Map allocatedResources) { + public V1ContainerStatus allocatedResources(@jakarta.annotation.Nullable Map allocatedResources) { this.allocatedResources = allocatedResources; return this; } @@ -135,22 +153,22 @@ public V1ContainerStatus putAllocatedResourcesItem(String key, Quantity allocate return this; } - /** + /** * AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize. * @return allocatedResources - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.") public Map getAllocatedResources() { return allocatedResources; } - public void setAllocatedResources(Map allocatedResources) { + public void setAllocatedResources(@jakarta.annotation.Nullable Map allocatedResources) { this.allocatedResources = allocatedResources; } - public V1ContainerStatus allocatedResourcesStatus(List allocatedResourcesStatus) { + public V1ContainerStatus allocatedResourcesStatus(@jakarta.annotation.Nullable List allocatedResourcesStatus) { this.allocatedResourcesStatus = allocatedResourcesStatus; return this; } @@ -163,242 +181,262 @@ public V1ContainerStatus addAllocatedResourcesStatusItem(V1ResourceStatus alloca return this; } - /** + /** * AllocatedResourcesStatus represents the status of various resources allocated for this Pod. * @return allocatedResourcesStatus - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "AllocatedResourcesStatus represents the status of various resources allocated for this Pod.") public List getAllocatedResourcesStatus() { return allocatedResourcesStatus; } - public void setAllocatedResourcesStatus(List allocatedResourcesStatus) { + public void setAllocatedResourcesStatus(@jakarta.annotation.Nullable List allocatedResourcesStatus) { this.allocatedResourcesStatus = allocatedResourcesStatus; } - public V1ContainerStatus containerID(String containerID) { + public V1ContainerStatus containerID(@jakarta.annotation.Nullable String containerID) { this.containerID = containerID; return this; } - /** + /** * ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\"). * @return containerID - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ContainerID is the ID of the container in the format '://'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").") public String getContainerID() { return containerID; } - public void setContainerID(String containerID) { + public void setContainerID(@jakarta.annotation.Nullable String containerID) { this.containerID = containerID; } - public V1ContainerStatus image(String image) { + public V1ContainerStatus image(@jakarta.annotation.Nonnull String image) { this.image = image; return this; } - /** + /** * Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images. * @return image - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images.") public String getImage() { return image; } - public void setImage(String image) { + public void setImage(@jakarta.annotation.Nonnull String image) { this.image = image; } - public V1ContainerStatus imageID(String imageID) { + public V1ContainerStatus imageID(@jakarta.annotation.Nonnull String imageID) { this.imageID = imageID; return this; } - /** + /** * ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime. * @return imageID - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime.") public String getImageID() { return imageID; } - public void setImageID(String imageID) { + public void setImageID(@jakarta.annotation.Nonnull String imageID) { this.imageID = imageID; } - public V1ContainerStatus lastState(V1ContainerState lastState) { + public V1ContainerStatus lastState(@jakarta.annotation.Nullable V1ContainerState lastState) { this.lastState = lastState; return this; } - /** + /** * Get lastState * @return lastState - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ContainerState getLastState() { return lastState; } - public void setLastState(V1ContainerState lastState) { + public void setLastState(@jakarta.annotation.Nullable V1ContainerState lastState) { this.lastState = lastState; } - public V1ContainerStatus name(String name) { + public V1ContainerStatus name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1ContainerStatus ready(Boolean ready) { + public V1ContainerStatus ready(@jakarta.annotation.Nonnull Boolean ready) { this.ready = ready; return this; } - /** + /** * Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field). The value is typically used to determine whether a container is ready to accept traffic. * @return ready - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field). The value is typically used to determine whether a container is ready to accept traffic.") public Boolean getReady() { return ready; } - public void setReady(Boolean ready) { + public void setReady(@jakarta.annotation.Nonnull Boolean ready) { this.ready = ready; } - public V1ContainerStatus resources(V1ResourceRequirements resources) { + public V1ContainerStatus resources(@jakarta.annotation.Nullable V1ResourceRequirements resources) { this.resources = resources; return this; } - /** + /** * Get resources * @return resources - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ResourceRequirements getResources() { return resources; } - public void setResources(V1ResourceRequirements resources) { + public void setResources(@jakarta.annotation.Nullable V1ResourceRequirements resources) { this.resources = resources; } - public V1ContainerStatus restartCount(Integer restartCount) { + public V1ContainerStatus restartCount(@jakarta.annotation.Nonnull Integer restartCount) { this.restartCount = restartCount; return this; } - /** + /** * RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative. * @return restartCount - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative.") public Integer getRestartCount() { return restartCount; } - public void setRestartCount(Integer restartCount) { + public void setRestartCount(@jakarta.annotation.Nonnull Integer restartCount) { this.restartCount = restartCount; } - public V1ContainerStatus started(Boolean started) { + public V1ContainerStatus started(@jakarta.annotation.Nullable Boolean started) { this.started = started; return this; } - /** + /** * Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false. * @return started - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false.") public Boolean getStarted() { return started; } - public void setStarted(Boolean started) { + public void setStarted(@jakarta.annotation.Nullable Boolean started) { this.started = started; } - public V1ContainerStatus state(V1ContainerState state) { + public V1ContainerStatus state(@jakarta.annotation.Nullable V1ContainerState state) { this.state = state; return this; } - /** + /** * Get state * @return state - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ContainerState getState() { return state; } - public void setState(V1ContainerState state) { + public void setState(@jakarta.annotation.Nullable V1ContainerState state) { this.state = state; } - public V1ContainerStatus user(V1ContainerUser user) { + public V1ContainerStatus stopSignal(@jakarta.annotation.Nullable String stopSignal) { + this.stopSignal = stopSignal; + return this; + } + + /** + * StopSignal reports the effective stop signal for this container + * @return stopSignal + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "StopSignal reports the effective stop signal for this container") + public String getStopSignal() { + return stopSignal; + } + + public void setStopSignal(@jakarta.annotation.Nullable String stopSignal) { + this.stopSignal = stopSignal; + } + + + public V1ContainerStatus user(@jakarta.annotation.Nullable V1ContainerUser user) { this.user = user; return this; } - /** + /** * Get user * @return user - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ContainerUser getUser() { return user; } - public void setUser(V1ContainerUser user) { + public void setUser(@jakarta.annotation.Nullable V1ContainerUser user) { this.user = user; } - public V1ContainerStatus volumeMounts(List volumeMounts) { + public V1ContainerStatus volumeMounts(@jakarta.annotation.Nullable List volumeMounts) { this.volumeMounts = volumeMounts; return this; } @@ -411,17 +449,17 @@ public V1ContainerStatus addVolumeMountsItem(V1VolumeMountStatus volumeMountsIte return this; } - /** + /** * Status of volume mounts. * @return volumeMounts - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Status of volume mounts.") public List getVolumeMounts() { return volumeMounts; } - public void setVolumeMounts(List volumeMounts) { + public void setVolumeMounts(@jakarta.annotation.Nullable List volumeMounts) { this.volumeMounts = volumeMounts; } @@ -448,13 +486,14 @@ public boolean equals(Object o) { Objects.equals(this.restartCount, v1ContainerStatus.restartCount) && Objects.equals(this.started, v1ContainerStatus.started) && Objects.equals(this.state, v1ContainerStatus.state) && + Objects.equals(this.stopSignal, v1ContainerStatus.stopSignal) && Objects.equals(this.user, v1ContainerStatus.user) && Objects.equals(this.volumeMounts, v1ContainerStatus.volumeMounts); } @Override public int hashCode() { - return Objects.hash(allocatedResources, allocatedResourcesStatus, containerID, image, imageID, lastState, name, ready, resources, restartCount, started, state, user, volumeMounts); + return Objects.hash(allocatedResources, allocatedResourcesStatus, containerID, image, imageID, lastState, name, ready, resources, restartCount, started, state, stopSignal, user, volumeMounts); } @Override @@ -473,6 +512,7 @@ public String toString() { sb.append(" restartCount: ").append(toIndentedString(restartCount)).append("\n"); sb.append(" started: ").append(toIndentedString(started)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" stopSignal: ").append(toIndentedString(stopSignal)).append("\n"); sb.append(" user: ").append(toIndentedString(user)).append("\n"); sb.append(" volumeMounts: ").append(toIndentedString(volumeMounts)).append("\n"); sb.append("}"); @@ -509,6 +549,7 @@ private String toIndentedString(Object o) { openapiFields.add("restartCount"); openapiFields.add("started"); openapiFields.add("state"); + openapiFields.add("stopSignal"); openapiFields.add("user"); openapiFields.add("volumeMounts"); @@ -521,12 +562,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("restartCount"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ContainerStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ContainerStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ContainerStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -587,6 +628,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { V1ContainerState.validateJsonElement(jsonObj.get("state")); } + if ((jsonObj.get("stopSignal") != null && !jsonObj.get("stopSignal").isJsonNull()) && !jsonObj.get("stopSignal").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `stopSignal` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stopSignal").toString())); + } // validate the optional field `user` if (jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) { V1ContainerUser.validateJsonElement(jsonObj.get("user")); @@ -636,22 +680,22 @@ public V1ContainerStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ContainerStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ContainerStatus - * @throws IOException if the JSON string is invalid with respect to V1ContainerStatus - */ + /** + * Create an instance of V1ContainerStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ContainerStatus + * @throws IOException if the JSON string is invalid with respect to V1ContainerStatus + */ public static V1ContainerStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ContainerStatus.class); } - /** - * Convert an instance of V1ContainerStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ContainerStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java index f08905367f..c31509ea1e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,31 +51,32 @@ * ContainerUser represents user identity information */ @ApiModel(description = "ContainerUser represents user identity information") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ContainerUser { public static final String SERIALIZED_NAME_LINUX = "linux"; @SerializedName(SERIALIZED_NAME_LINUX) + @jakarta.annotation.Nullable private V1LinuxContainerUser linux; public V1ContainerUser() { } - public V1ContainerUser linux(V1LinuxContainerUser linux) { + public V1ContainerUser linux(@jakarta.annotation.Nullable V1LinuxContainerUser linux) { this.linux = linux; return this; } - /** + /** * Get linux * @return linux - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LinuxContainerUser getLinux() { return linux; } - public void setLinux(V1LinuxContainerUser linux) { + public void setLinux(@jakarta.annotation.Nullable V1LinuxContainerUser linux) { this.linux = linux; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ContainerUser - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ContainerUser + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ContainerUser.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -188,22 +188,22 @@ public V1ContainerUser read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ContainerUser given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ContainerUser - * @throws IOException if the JSON string is invalid with respect to V1ContainerUser - */ + /** + * Create an instance of V1ContainerUser given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ContainerUser + * @throws IOException if the JSON string is invalid with respect to V1ContainerUser + */ public static V1ContainerUser fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ContainerUser.class); } - /** - * Convert an instance of V1ContainerUser to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ContainerUser to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java index 9c64516615..71fb411456 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,127 +51,132 @@ * ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. */ @ApiModel(description = "ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ControllerRevision implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) + @jakarta.annotation.Nullable private Object data; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_REVISION = "revision"; @SerializedName(SERIALIZED_NAME_REVISION) + @jakarta.annotation.Nonnull private Long revision; public V1ControllerRevision() { } - public V1ControllerRevision apiVersion(String apiVersion) { + public V1ControllerRevision apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ControllerRevision data(Object data) { + public V1ControllerRevision data(@jakarta.annotation.Nullable Object data) { this.data = data; return this; } - /** + /** * Data is the serialized representation of the state. * @return data - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Data is the serialized representation of the state.") public Object getData() { return data; } - public void setData(Object data) { + public void setData(@jakarta.annotation.Nullable Object data) { this.data = data; } - public V1ControllerRevision kind(String kind) { + public V1ControllerRevision kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ControllerRevision metadata(V1ObjectMeta metadata) { + public V1ControllerRevision metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1ControllerRevision revision(Long revision) { + public V1ControllerRevision revision(@jakarta.annotation.Nonnull Long revision) { this.revision = revision; return this; } - /** + /** * Revision indicates the revision of the state represented by Data. * @return revision - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Revision indicates the revision of the state represented by Data.") public Long getRevision() { return revision; } - public void setRevision(Long revision) { + public void setRevision(@jakarta.annotation.Nonnull Long revision) { this.revision = revision; } @@ -241,12 +245,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("revision"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ControllerRevision - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ControllerRevision + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ControllerRevision.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -310,22 +314,22 @@ public V1ControllerRevision read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ControllerRevision given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ControllerRevision - * @throws IOException if the JSON string is invalid with respect to V1ControllerRevision - */ + /** + * Create an instance of V1ControllerRevision given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ControllerRevision + * @throws IOException if the JSON string is invalid with respect to V1ControllerRevision + */ public static V1ControllerRevision fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ControllerRevision.class); } - /** - * Convert an instance of V1ControllerRevision to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ControllerRevision to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java index 67cc066a93..44f906b68f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * ControllerRevisionList is a resource containing a list of ControllerRevision objects. */ @ApiModel(description = "ControllerRevisionList is a resource containing a list of ControllerRevision objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ControllerRevisionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1ControllerRevisionList() { } - public V1ControllerRevisionList apiVersion(String apiVersion) { + public V1ControllerRevisionList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ControllerRevisionList items(List items) { + public V1ControllerRevisionList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1ControllerRevisionList addItemsItem(V1ControllerRevision itemsItem) { return this; } - /** + /** * Items is the list of ControllerRevisions * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items is the list of ControllerRevisions") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1ControllerRevisionList kind(String kind) { + public V1ControllerRevisionList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ControllerRevisionList metadata(V1ListMeta metadata) { + public V1ControllerRevisionList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ControllerRevisionList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ControllerRevisionList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ControllerRevisionList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1ControllerRevisionList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ControllerRevisionList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ControllerRevisionList - * @throws IOException if the JSON string is invalid with respect to V1ControllerRevisionList - */ + /** + * Create an instance of V1ControllerRevisionList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ControllerRevisionList + * @throws IOException if the JSON string is invalid with respect to V1ControllerRevisionList + */ public static V1ControllerRevisionList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ControllerRevisionList.class); } - /** - * Convert an instance of V1ControllerRevisionList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ControllerRevisionList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java index 84ec76cc4e..d74a06b615 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * CronJob represents the configuration of a single cron job. */ @ApiModel(description = "CronJob represents the configuration of a single cron job.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CronJob implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1CronJobSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1CronJobStatus status; public V1CronJob() { } - public V1CronJob apiVersion(String apiVersion) { + public V1CronJob apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1CronJob kind(String kind) { + public V1CronJob kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1CronJob metadata(V1ObjectMeta metadata) { + public V1CronJob metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1CronJob spec(V1CronJobSpec spec) { + public V1CronJob spec(@jakarta.annotation.Nullable V1CronJobSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1CronJobSpec getSpec() { return spec; } - public void setSpec(V1CronJobSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1CronJobSpec spec) { this.spec = spec; } - public V1CronJob status(V1CronJobStatus status) { + public V1CronJob status(@jakarta.annotation.Nullable V1CronJobStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1CronJobStatus getStatus() { return status; } - public void setStatus(V1CronJobStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1CronJobStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CronJob - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CronJob + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CronJob.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1CronJob read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CronJob given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CronJob - * @throws IOException if the JSON string is invalid with respect to V1CronJob - */ + /** + * Create an instance of V1CronJob given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CronJob + * @throws IOException if the JSON string is invalid with respect to V1CronJob + */ public static V1CronJob fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CronJob.class); } - /** - * Convert an instance of V1CronJob to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CronJob to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java index 48809c1ea2..121d7bad1c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * CronJobList is a collection of cron jobs. */ @ApiModel(description = "CronJobList is a collection of cron jobs.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CronJobList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1CronJobList() { } - public V1CronJobList apiVersion(String apiVersion) { + public V1CronJobList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1CronJobList items(List items) { + public V1CronJobList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1CronJobList addItemsItem(V1CronJob itemsItem) { return this; } - /** + /** * items is the list of CronJobs. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is the list of CronJobs.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1CronJobList kind(String kind) { + public V1CronJobList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1CronJobList metadata(V1ListMeta metadata) { + public V1CronJobList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CronJobList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CronJobList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CronJobList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1CronJobList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CronJobList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CronJobList - * @throws IOException if the JSON string is invalid with respect to V1CronJobList - */ + /** + * Create an instance of V1CronJobList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CronJobList + * @throws IOException if the JSON string is invalid with respect to V1CronJobList + */ public static V1CronJobList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CronJobList.class); } - /** - * Convert an instance of V1CronJobList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CronJobList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java index e687d86503..9b3fe6eaef 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,199 +51,207 @@ * CronJobSpec describes how the job execution will look like and when it will actually run. */ @ApiModel(description = "CronJobSpec describes how the job execution will look like and when it will actually run.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CronJobSpec { public static final String SERIALIZED_NAME_CONCURRENCY_POLICY = "concurrencyPolicy"; @SerializedName(SERIALIZED_NAME_CONCURRENCY_POLICY) + @jakarta.annotation.Nullable private String concurrencyPolicy; public static final String SERIALIZED_NAME_FAILED_JOBS_HISTORY_LIMIT = "failedJobsHistoryLimit"; @SerializedName(SERIALIZED_NAME_FAILED_JOBS_HISTORY_LIMIT) + @jakarta.annotation.Nullable private Integer failedJobsHistoryLimit; public static final String SERIALIZED_NAME_JOB_TEMPLATE = "jobTemplate"; @SerializedName(SERIALIZED_NAME_JOB_TEMPLATE) + @jakarta.annotation.Nonnull private V1JobTemplateSpec jobTemplate; public static final String SERIALIZED_NAME_SCHEDULE = "schedule"; @SerializedName(SERIALIZED_NAME_SCHEDULE) + @jakarta.annotation.Nonnull private String schedule; public static final String SERIALIZED_NAME_STARTING_DEADLINE_SECONDS = "startingDeadlineSeconds"; @SerializedName(SERIALIZED_NAME_STARTING_DEADLINE_SECONDS) + @jakarta.annotation.Nullable private Long startingDeadlineSeconds; public static final String SERIALIZED_NAME_SUCCESSFUL_JOBS_HISTORY_LIMIT = "successfulJobsHistoryLimit"; @SerializedName(SERIALIZED_NAME_SUCCESSFUL_JOBS_HISTORY_LIMIT) + @jakarta.annotation.Nullable private Integer successfulJobsHistoryLimit; public static final String SERIALIZED_NAME_SUSPEND = "suspend"; @SerializedName(SERIALIZED_NAME_SUSPEND) + @jakarta.annotation.Nullable private Boolean suspend; public static final String SERIALIZED_NAME_TIME_ZONE = "timeZone"; @SerializedName(SERIALIZED_NAME_TIME_ZONE) + @jakarta.annotation.Nullable private String timeZone; public V1CronJobSpec() { } - public V1CronJobSpec concurrencyPolicy(String concurrencyPolicy) { + public V1CronJobSpec concurrencyPolicy(@jakarta.annotation.Nullable String concurrencyPolicy) { this.concurrencyPolicy = concurrencyPolicy; return this; } - /** + /** * Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one * @return concurrencyPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one") public String getConcurrencyPolicy() { return concurrencyPolicy; } - public void setConcurrencyPolicy(String concurrencyPolicy) { + public void setConcurrencyPolicy(@jakarta.annotation.Nullable String concurrencyPolicy) { this.concurrencyPolicy = concurrencyPolicy; } - public V1CronJobSpec failedJobsHistoryLimit(Integer failedJobsHistoryLimit) { + public V1CronJobSpec failedJobsHistoryLimit(@jakarta.annotation.Nullable Integer failedJobsHistoryLimit) { this.failedJobsHistoryLimit = failedJobsHistoryLimit; return this; } - /** + /** * The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1. * @return failedJobsHistoryLimit - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1.") public Integer getFailedJobsHistoryLimit() { return failedJobsHistoryLimit; } - public void setFailedJobsHistoryLimit(Integer failedJobsHistoryLimit) { + public void setFailedJobsHistoryLimit(@jakarta.annotation.Nullable Integer failedJobsHistoryLimit) { this.failedJobsHistoryLimit = failedJobsHistoryLimit; } - public V1CronJobSpec jobTemplate(V1JobTemplateSpec jobTemplate) { + public V1CronJobSpec jobTemplate(@jakarta.annotation.Nonnull V1JobTemplateSpec jobTemplate) { this.jobTemplate = jobTemplate; return this; } - /** + /** * Get jobTemplate * @return jobTemplate - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1JobTemplateSpec getJobTemplate() { return jobTemplate; } - public void setJobTemplate(V1JobTemplateSpec jobTemplate) { + public void setJobTemplate(@jakarta.annotation.Nonnull V1JobTemplateSpec jobTemplate) { this.jobTemplate = jobTemplate; } - public V1CronJobSpec schedule(String schedule) { + public V1CronJobSpec schedule(@jakarta.annotation.Nonnull String schedule) { this.schedule = schedule; return this; } - /** + /** * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. * @return schedule - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.") public String getSchedule() { return schedule; } - public void setSchedule(String schedule) { + public void setSchedule(@jakarta.annotation.Nonnull String schedule) { this.schedule = schedule; } - public V1CronJobSpec startingDeadlineSeconds(Long startingDeadlineSeconds) { + public V1CronJobSpec startingDeadlineSeconds(@jakarta.annotation.Nullable Long startingDeadlineSeconds) { this.startingDeadlineSeconds = startingDeadlineSeconds; return this; } - /** + /** * Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. * @return startingDeadlineSeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.") public Long getStartingDeadlineSeconds() { return startingDeadlineSeconds; } - public void setStartingDeadlineSeconds(Long startingDeadlineSeconds) { + public void setStartingDeadlineSeconds(@jakarta.annotation.Nullable Long startingDeadlineSeconds) { this.startingDeadlineSeconds = startingDeadlineSeconds; } - public V1CronJobSpec successfulJobsHistoryLimit(Integer successfulJobsHistoryLimit) { + public V1CronJobSpec successfulJobsHistoryLimit(@jakarta.annotation.Nullable Integer successfulJobsHistoryLimit) { this.successfulJobsHistoryLimit = successfulJobsHistoryLimit; return this; } - /** + /** * The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3. * @return successfulJobsHistoryLimit - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.") public Integer getSuccessfulJobsHistoryLimit() { return successfulJobsHistoryLimit; } - public void setSuccessfulJobsHistoryLimit(Integer successfulJobsHistoryLimit) { + public void setSuccessfulJobsHistoryLimit(@jakarta.annotation.Nullable Integer successfulJobsHistoryLimit) { this.successfulJobsHistoryLimit = successfulJobsHistoryLimit; } - public V1CronJobSpec suspend(Boolean suspend) { + public V1CronJobSpec suspend(@jakarta.annotation.Nullable Boolean suspend) { this.suspend = suspend; return this; } - /** + /** * This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. * @return suspend - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.") public Boolean getSuspend() { return suspend; } - public void setSuspend(Boolean suspend) { + public void setSuspend(@jakarta.annotation.Nullable Boolean suspend) { this.suspend = suspend; } - public V1CronJobSpec timeZone(String timeZone) { + public V1CronJobSpec timeZone(@jakarta.annotation.Nullable String timeZone) { this.timeZone = timeZone; return this; } - /** + /** * The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones * @return timeZone - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones") public String getTimeZone() { return timeZone; } - public void setTimeZone(String timeZone) { + public void setTimeZone(@jakarta.annotation.Nullable String timeZone) { this.timeZone = timeZone; } @@ -323,12 +330,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("schedule"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CronJobSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CronJobSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CronJobSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -393,22 +400,22 @@ public V1CronJobSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CronJobSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CronJobSpec - * @throws IOException if the JSON string is invalid with respect to V1CronJobSpec - */ + /** + * Create an instance of V1CronJobSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CronJobSpec + * @throws IOException if the JSON string is invalid with respect to V1CronJobSpec + */ public static V1CronJobSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CronJobSpec.class); } - /** - * Convert an instance of V1CronJobSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CronJobSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatus.java index 232f99693a..d7fa4aab23 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatus.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,24 +54,27 @@ * CronJobStatus represents the current state of a cron job. */ @ApiModel(description = "CronJobStatus represents the current state of a cron job.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CronJobStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) + @jakarta.annotation.Nullable private List active = new ArrayList<>(); public static final String SERIALIZED_NAME_LAST_SCHEDULE_TIME = "lastScheduleTime"; @SerializedName(SERIALIZED_NAME_LAST_SCHEDULE_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastScheduleTime; public static final String SERIALIZED_NAME_LAST_SUCCESSFUL_TIME = "lastSuccessfulTime"; @SerializedName(SERIALIZED_NAME_LAST_SUCCESSFUL_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastSuccessfulTime; public V1CronJobStatus() { } - public V1CronJobStatus active(List active) { + public V1CronJobStatus active(@jakarta.annotation.Nullable List active) { this.active = active; return this; } @@ -85,57 +87,57 @@ public V1CronJobStatus addActiveItem(V1ObjectReference activeItem) { return this; } - /** + /** * A list of pointers to currently running jobs. * @return active - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A list of pointers to currently running jobs.") public List getActive() { return active; } - public void setActive(List active) { + public void setActive(@jakarta.annotation.Nullable List active) { this.active = active; } - public V1CronJobStatus lastScheduleTime(OffsetDateTime lastScheduleTime) { + public V1CronJobStatus lastScheduleTime(@jakarta.annotation.Nullable OffsetDateTime lastScheduleTime) { this.lastScheduleTime = lastScheduleTime; return this; } - /** + /** * Information when was the last time the job was successfully scheduled. * @return lastScheduleTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Information when was the last time the job was successfully scheduled.") public OffsetDateTime getLastScheduleTime() { return lastScheduleTime; } - public void setLastScheduleTime(OffsetDateTime lastScheduleTime) { + public void setLastScheduleTime(@jakarta.annotation.Nullable OffsetDateTime lastScheduleTime) { this.lastScheduleTime = lastScheduleTime; } - public V1CronJobStatus lastSuccessfulTime(OffsetDateTime lastSuccessfulTime) { + public V1CronJobStatus lastSuccessfulTime(@jakarta.annotation.Nullable OffsetDateTime lastSuccessfulTime) { this.lastSuccessfulTime = lastSuccessfulTime; return this; } - /** + /** * Information when was the last time the job successfully completed. * @return lastSuccessfulTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Information when was the last time the job successfully completed.") public OffsetDateTime getLastSuccessfulTime() { return lastSuccessfulTime; } - public void setLastSuccessfulTime(OffsetDateTime lastSuccessfulTime) { + public void setLastSuccessfulTime(@jakarta.annotation.Nullable OffsetDateTime lastSuccessfulTime) { this.lastSuccessfulTime = lastSuccessfulTime; } @@ -197,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CronJobStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CronJobStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CronJobStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -263,22 +265,22 @@ public V1CronJobStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CronJobStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CronJobStatus - * @throws IOException if the JSON string is invalid with respect to V1CronJobStatus - */ + /** + * Create an instance of V1CronJobStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CronJobStatus + * @throws IOException if the JSON string is invalid with respect to V1CronJobStatus + */ public static V1CronJobStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CronJobStatus.class); } - /** - * Convert an instance of V1CronJobStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CronJobStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReference.java index 9fbcf32673..c4c367c3fb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReference.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,79 +50,82 @@ * CrossVersionObjectReference contains enough information to let you identify the referred resource. */ @ApiModel(description = "CrossVersionObjectReference contains enough information to let you identify the referred resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CrossVersionObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nonnull private String kind; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public V1CrossVersionObjectReference() { } - public V1CrossVersionObjectReference apiVersion(String apiVersion) { + public V1CrossVersionObjectReference apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * apiVersion is the API version of the referent * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "apiVersion is the API version of the referent") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1CrossVersionObjectReference kind(String kind) { + public V1CrossVersionObjectReference kind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; return this; } - /** + /** * kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; } - public V1CrossVersionObjectReference name(String name) { + public V1CrossVersionObjectReference name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -187,12 +189,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CrossVersionObjectReference - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CrossVersionObjectReference + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CrossVersionObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -255,22 +257,22 @@ public V1CrossVersionObjectReference read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CrossVersionObjectReference given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CrossVersionObjectReference - * @throws IOException if the JSON string is invalid with respect to V1CrossVersionObjectReference - */ + /** + * Create an instance of V1CrossVersionObjectReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CrossVersionObjectReference + * @throws IOException if the JSON string is invalid with respect to V1CrossVersionObjectReference + */ public static V1CrossVersionObjectReference fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CrossVersionObjectReference.class); } - /** - * Convert an instance of V1CrossVersionObjectReference to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CrossVersionObjectReference to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinition.java index 655aa75d8a..6a9a6598fd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinition.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,151 +50,157 @@ * CustomResourceColumnDefinition specifies a column for server side printing. */ @ApiModel(description = "CustomResourceColumnDefinition specifies a column for server side printing.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CustomResourceColumnDefinition { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @jakarta.annotation.Nullable private String description; public static final String SERIALIZED_NAME_FORMAT = "format"; @SerializedName(SERIALIZED_NAME_FORMAT) + @jakarta.annotation.Nullable private String format; public static final String SERIALIZED_NAME_JSON_PATH = "jsonPath"; @SerializedName(SERIALIZED_NAME_JSON_PATH) + @jakarta.annotation.Nonnull private String jsonPath; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PRIORITY = "priority"; @SerializedName(SERIALIZED_NAME_PRIORITY) + @jakarta.annotation.Nullable private Integer priority; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1CustomResourceColumnDefinition() { } - public V1CustomResourceColumnDefinition description(String description) { + public V1CustomResourceColumnDefinition description(@jakarta.annotation.Nullable String description) { this.description = description; return this; } - /** + /** * description is a human readable description of this column. * @return description - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "description is a human readable description of this column.") public String getDescription() { return description; } - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nullable String description) { this.description = description; } - public V1CustomResourceColumnDefinition format(String format) { + public V1CustomResourceColumnDefinition format(@jakarta.annotation.Nullable String format) { this.format = format; return this; } - /** + /** * format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. * @return format - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.") public String getFormat() { return format; } - public void setFormat(String format) { + public void setFormat(@jakarta.annotation.Nullable String format) { this.format = format; } - public V1CustomResourceColumnDefinition jsonPath(String jsonPath) { + public V1CustomResourceColumnDefinition jsonPath(@jakarta.annotation.Nonnull String jsonPath) { this.jsonPath = jsonPath; return this; } - /** + /** * jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. * @return jsonPath - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column.") public String getJsonPath() { return jsonPath; } - public void setJsonPath(String jsonPath) { + public void setJsonPath(@jakarta.annotation.Nonnull String jsonPath) { this.jsonPath = jsonPath; } - public V1CustomResourceColumnDefinition name(String name) { + public V1CustomResourceColumnDefinition name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * name is a human readable name for the column. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "name is a human readable name for the column.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1CustomResourceColumnDefinition priority(Integer priority) { + public V1CustomResourceColumnDefinition priority(@jakarta.annotation.Nullable Integer priority) { this.priority = priority; return this; } - /** + /** * priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. * @return priority - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0.") public Integer getPriority() { return priority; } - public void setPriority(Integer priority) { + public void setPriority(@jakarta.annotation.Nullable Integer priority) { this.priority = priority; } - public V1CustomResourceColumnDefinition type(String type) { + public V1CustomResourceColumnDefinition type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -269,12 +274,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceColumnDefinition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceColumnDefinition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceColumnDefinition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -343,22 +348,22 @@ public V1CustomResourceColumnDefinition read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CustomResourceColumnDefinition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CustomResourceColumnDefinition - * @throws IOException if the JSON string is invalid with respect to V1CustomResourceColumnDefinition - */ + /** + * Create an instance of V1CustomResourceColumnDefinition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceColumnDefinition + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceColumnDefinition + */ public static V1CustomResourceColumnDefinition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CustomResourceColumnDefinition.class); } - /** - * Convert an instance of V1CustomResourceColumnDefinition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CustomResourceColumnDefinition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java index a715d7a2b5..355caf9638 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * CustomResourceConversion describes how to convert different versions of a CR. */ @ApiModel(description = "CustomResourceConversion describes how to convert different versions of a CR.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CustomResourceConversion { public static final String SERIALIZED_NAME_STRATEGY = "strategy"; @SerializedName(SERIALIZED_NAME_STRATEGY) + @jakarta.annotation.Nonnull private String strategy; public static final String SERIALIZED_NAME_WEBHOOK = "webhook"; @SerializedName(SERIALIZED_NAME_WEBHOOK) + @jakarta.annotation.Nullable private V1WebhookConversion webhook; public V1CustomResourceConversion() { } - public V1CustomResourceConversion strategy(String strategy) { + public V1CustomResourceConversion strategy(@jakarta.annotation.Nonnull String strategy) { this.strategy = strategy; return this; } - /** + /** * strategy specifies how custom resources are converted between versions. Allowed values are: - `\"None\"`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `\"Webhook\"`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set. * @return strategy - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "strategy specifies how custom resources are converted between versions. Allowed values are: - `\"None\"`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `\"Webhook\"`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set.") public String getStrategy() { return strategy; } - public void setStrategy(String strategy) { + public void setStrategy(@jakarta.annotation.Nonnull String strategy) { this.strategy = strategy; } - public V1CustomResourceConversion webhook(V1WebhookConversion webhook) { + public V1CustomResourceConversion webhook(@jakarta.annotation.Nullable V1WebhookConversion webhook) { this.webhook = webhook; return this; } - /** + /** * Get webhook * @return webhook - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1WebhookConversion getWebhook() { return webhook; } - public void setWebhook(V1WebhookConversion webhook) { + public void setWebhook(@jakarta.annotation.Nullable V1WebhookConversion webhook) { this.webhook = webhook; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("strategy"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceConversion - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceConversion + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceConversion.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -226,22 +227,22 @@ public V1CustomResourceConversion read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CustomResourceConversion given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CustomResourceConversion - * @throws IOException if the JSON string is invalid with respect to V1CustomResourceConversion - */ + /** + * Create an instance of V1CustomResourceConversion given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceConversion + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceConversion + */ public static V1CustomResourceConversion fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CustomResourceConversion.class); } - /** - * Convert an instance of V1CustomResourceConversion to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CustomResourceConversion to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java index 012d0a20d2..e01316504c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. */ @ApiModel(description = "CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CustomResourceDefinition implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nonnull private V1CustomResourceDefinitionSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1CustomResourceDefinitionStatus status; public V1CustomResourceDefinition() { } - public V1CustomResourceDefinition apiVersion(String apiVersion) { + public V1CustomResourceDefinition apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1CustomResourceDefinition kind(String kind) { + public V1CustomResourceDefinition kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1CustomResourceDefinition metadata(V1ObjectMeta metadata) { + public V1CustomResourceDefinition metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1CustomResourceDefinition spec(V1CustomResourceDefinitionSpec spec) { + public V1CustomResourceDefinition spec(@jakarta.annotation.Nonnull V1CustomResourceDefinitionSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1CustomResourceDefinitionSpec getSpec() { return spec; } - public void setSpec(V1CustomResourceDefinitionSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1CustomResourceDefinitionSpec spec) { this.spec = spec; } - public V1CustomResourceDefinition status(V1CustomResourceDefinitionStatus status) { + public V1CustomResourceDefinition status(@jakarta.annotation.Nullable V1CustomResourceDefinitionStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1CustomResourceDefinitionStatus getStatus() { return status; } - public void setStatus(V1CustomResourceDefinitionStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1CustomResourceDefinitionStatus status) { this.status = status; } @@ -243,12 +247,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("spec"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceDefinition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceDefinition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceDefinition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -318,22 +322,22 @@ public V1CustomResourceDefinition read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CustomResourceDefinition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CustomResourceDefinition - * @throws IOException if the JSON string is invalid with respect to V1CustomResourceDefinition - */ + /** + * Create an instance of V1CustomResourceDefinition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceDefinition + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceDefinition + */ public static V1CustomResourceDefinition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CustomResourceDefinition.class); } - /** - * Convert an instance of V1CustomResourceDefinition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CustomResourceDefinition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionCondition.java index 5c11a3aa7f..7f900f540c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionCondition.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,127 +51,132 @@ * CustomResourceDefinitionCondition contains details for the current condition of this pod. */ @ApiModel(description = "CustomResourceDefinitionCondition contains details for the current condition of this pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CustomResourceDefinitionCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nonnull private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1CustomResourceDefinitionCondition() { } - public V1CustomResourceDefinitionCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { + public V1CustomResourceDefinitionCondition lastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; } - /** + /** * lastTransitionTime last time the condition transitioned from one status to another. * @return lastTransitionTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "lastTransitionTime last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { + public void setLastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } - public V1CustomResourceDefinitionCondition message(String message) { + public V1CustomResourceDefinitionCondition message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * message is a human-readable message indicating details about last transition. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "message is a human-readable message indicating details about last transition.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1CustomResourceDefinitionCondition reason(String reason) { + public V1CustomResourceDefinitionCondition reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * reason is a unique, one-word, CamelCase reason for the condition's last transition. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "reason is a unique, one-word, CamelCase reason for the condition's last transition.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } - public V1CustomResourceDefinitionCondition status(String status) { + public V1CustomResourceDefinitionCondition status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } - /** + /** * status is the status of the condition. Can be True, False, Unknown. * @return status - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "status is the status of the condition. Can be True, False, Unknown.") public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public V1CustomResourceDefinitionCondition type(String type) { + public V1CustomResourceDefinitionCondition type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * type is the type of the condition. Types include Established, NamesAccepted and Terminating. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "type is the type of the condition. Types include Established, NamesAccepted and Terminating.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceDefinitionCondition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceDefinitionCondition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceDefinitionCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -313,22 +317,22 @@ public V1CustomResourceDefinitionCondition read(JsonReader in) throws IOExceptio } } - /** - * Create an instance of V1CustomResourceDefinitionCondition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CustomResourceDefinitionCondition - * @throws IOException if the JSON string is invalid with respect to V1CustomResourceDefinitionCondition - */ + /** + * Create an instance of V1CustomResourceDefinitionCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceDefinitionCondition + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceDefinitionCondition + */ public static V1CustomResourceDefinitionCondition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CustomResourceDefinitionCondition.class); } - /** - * Convert an instance of V1CustomResourceDefinitionCondition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CustomResourceDefinitionCondition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionList.java index 92d9098b9c..e2cde5c0db 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * CustomResourceDefinitionList is a list of CustomResourceDefinition objects. */ @ApiModel(description = "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CustomResourceDefinitionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1CustomResourceDefinitionList() { } - public V1CustomResourceDefinitionList apiVersion(String apiVersion) { + public V1CustomResourceDefinitionList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1CustomResourceDefinitionList items(List items) { + public V1CustomResourceDefinitionList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1CustomResourceDefinitionList addItemsItem(V1CustomResourceDefinition it return this; } - /** + /** * items list individual CustomResourceDefinition objects * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items list individual CustomResourceDefinition objects") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1CustomResourceDefinitionList kind(String kind) { + public V1CustomResourceDefinitionList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1CustomResourceDefinitionList metadata(V1ListMeta metadata) { + public V1CustomResourceDefinitionList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceDefinitionList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceDefinitionList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceDefinitionList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1CustomResourceDefinitionList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CustomResourceDefinitionList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CustomResourceDefinitionList - * @throws IOException if the JSON string is invalid with respect to V1CustomResourceDefinitionList - */ + /** + * Create an instance of V1CustomResourceDefinitionList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceDefinitionList + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceDefinitionList + */ public static V1CustomResourceDefinitionList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CustomResourceDefinitionList.class); } - /** - * Convert an instance of V1CustomResourceDefinitionList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CustomResourceDefinitionList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNames.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNames.java index 34b643f1f3..c4d5be2bb4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNames.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNames.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,36 +52,42 @@ * CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition */ @ApiModel(description = "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CustomResourceDefinitionNames { public static final String SERIALIZED_NAME_CATEGORIES = "categories"; @SerializedName(SERIALIZED_NAME_CATEGORIES) + @jakarta.annotation.Nullable private List categories = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nonnull private String kind; public static final String SERIALIZED_NAME_LIST_KIND = "listKind"; @SerializedName(SERIALIZED_NAME_LIST_KIND) + @jakarta.annotation.Nullable private String listKind; public static final String SERIALIZED_NAME_PLURAL = "plural"; @SerializedName(SERIALIZED_NAME_PLURAL) + @jakarta.annotation.Nonnull private String plural; public static final String SERIALIZED_NAME_SHORT_NAMES = "shortNames"; @SerializedName(SERIALIZED_NAME_SHORT_NAMES) + @jakarta.annotation.Nullable private List shortNames = new ArrayList<>(); public static final String SERIALIZED_NAME_SINGULAR = "singular"; @SerializedName(SERIALIZED_NAME_SINGULAR) + @jakarta.annotation.Nullable private String singular; public V1CustomResourceDefinitionNames() { } - public V1CustomResourceDefinitionNames categories(List categories) { + public V1CustomResourceDefinitionNames categories(@jakarta.annotation.Nullable List categories) { this.categories = categories; return this; } @@ -95,82 +100,82 @@ public V1CustomResourceDefinitionNames addCategoriesItem(String categoriesItem) return this; } - /** + /** * categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. * @return categories - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.") public List getCategories() { return categories; } - public void setCategories(List categories) { + public void setCategories(@jakarta.annotation.Nullable List categories) { this.categories = categories; } - public V1CustomResourceDefinitionNames kind(String kind) { + public V1CustomResourceDefinitionNames kind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; return this; } - /** + /** * kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. * @return kind - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; } - public V1CustomResourceDefinitionNames listKind(String listKind) { + public V1CustomResourceDefinitionNames listKind(@jakarta.annotation.Nullable String listKind) { this.listKind = listKind; return this; } - /** + /** * listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\". * @return listKind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\".") public String getListKind() { return listKind; } - public void setListKind(String listKind) { + public void setListKind(@jakarta.annotation.Nullable String listKind) { this.listKind = listKind; } - public V1CustomResourceDefinitionNames plural(String plural) { + public V1CustomResourceDefinitionNames plural(@jakarta.annotation.Nonnull String plural) { this.plural = plural; return this; } - /** + /** * plural is the plural name of the resource to serve. The custom resources are served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase. * @return plural - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase.") public String getPlural() { return plural; } - public void setPlural(String plural) { + public void setPlural(@jakarta.annotation.Nonnull String plural) { this.plural = plural; } - public V1CustomResourceDefinitionNames shortNames(List shortNames) { + public V1CustomResourceDefinitionNames shortNames(@jakarta.annotation.Nullable List shortNames) { this.shortNames = shortNames; return this; } @@ -183,37 +188,37 @@ public V1CustomResourceDefinitionNames addShortNamesItem(String shortNamesItem) return this; } - /** + /** * shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase. * @return shortNames - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase.") public List getShortNames() { return shortNames; } - public void setShortNames(List shortNames) { + public void setShortNames(@jakarta.annotation.Nullable List shortNames) { this.shortNames = shortNames; } - public V1CustomResourceDefinitionNames singular(String singular) { + public V1CustomResourceDefinitionNames singular(@jakarta.annotation.Nullable String singular) { this.singular = singular; return this; } - /** + /** * singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. * @return singular - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.") public String getSingular() { return singular; } - public void setSingular(String singular) { + public void setSingular(@jakarta.annotation.Nullable String singular) { this.singular = singular; } @@ -286,12 +291,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("plural"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceDefinitionNames - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceDefinitionNames + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceDefinitionNames.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -365,22 +370,22 @@ public V1CustomResourceDefinitionNames read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CustomResourceDefinitionNames given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CustomResourceDefinitionNames - * @throws IOException if the JSON string is invalid with respect to V1CustomResourceDefinitionNames - */ + /** + * Create an instance of V1CustomResourceDefinitionNames given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceDefinitionNames + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceDefinitionNames + */ public static V1CustomResourceDefinitionNames fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CustomResourceDefinitionNames.class); } - /** - * Convert an instance of V1CustomResourceDefinitionNames to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CustomResourceDefinitionNames to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpec.java index 572005239c..2dd33394da 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpec.java @@ -43,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -56,136 +55,142 @@ * CustomResourceDefinitionSpec describes how a user wants their resource to appear */ @ApiModel(description = "CustomResourceDefinitionSpec describes how a user wants their resource to appear") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CustomResourceDefinitionSpec { public static final String SERIALIZED_NAME_CONVERSION = "conversion"; @SerializedName(SERIALIZED_NAME_CONVERSION) + @jakarta.annotation.Nullable private V1CustomResourceConversion conversion; public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) + @jakarta.annotation.Nonnull private String group; public static final String SERIALIZED_NAME_NAMES = "names"; @SerializedName(SERIALIZED_NAME_NAMES) + @jakarta.annotation.Nonnull private V1CustomResourceDefinitionNames names; public static final String SERIALIZED_NAME_PRESERVE_UNKNOWN_FIELDS = "preserveUnknownFields"; @SerializedName(SERIALIZED_NAME_PRESERVE_UNKNOWN_FIELDS) + @jakarta.annotation.Nullable private Boolean preserveUnknownFields; public static final String SERIALIZED_NAME_SCOPE = "scope"; @SerializedName(SERIALIZED_NAME_SCOPE) + @jakarta.annotation.Nonnull private String scope; public static final String SERIALIZED_NAME_VERSIONS = "versions"; @SerializedName(SERIALIZED_NAME_VERSIONS) + @jakarta.annotation.Nonnull private List versions = new ArrayList<>(); public V1CustomResourceDefinitionSpec() { } - public V1CustomResourceDefinitionSpec conversion(V1CustomResourceConversion conversion) { + public V1CustomResourceDefinitionSpec conversion(@jakarta.annotation.Nullable V1CustomResourceConversion conversion) { this.conversion = conversion; return this; } - /** + /** * Get conversion * @return conversion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1CustomResourceConversion getConversion() { return conversion; } - public void setConversion(V1CustomResourceConversion conversion) { + public void setConversion(@jakarta.annotation.Nullable V1CustomResourceConversion conversion) { this.conversion = conversion; } - public V1CustomResourceDefinitionSpec group(String group) { + public V1CustomResourceDefinitionSpec group(@jakarta.annotation.Nonnull String group) { this.group = group; return this; } - /** + /** * group is the API group of the defined custom resource. The custom resources are served under `/apis/<group>/...`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). * @return group - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`).") public String getGroup() { return group; } - public void setGroup(String group) { + public void setGroup(@jakarta.annotation.Nonnull String group) { this.group = group; } - public V1CustomResourceDefinitionSpec names(V1CustomResourceDefinitionNames names) { + public V1CustomResourceDefinitionSpec names(@jakarta.annotation.Nonnull V1CustomResourceDefinitionNames names) { this.names = names; return this; } - /** + /** * Get names * @return names - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1CustomResourceDefinitionNames getNames() { return names; } - public void setNames(V1CustomResourceDefinitionNames names) { + public void setNames(@jakarta.annotation.Nonnull V1CustomResourceDefinitionNames names) { this.names = names; } - public V1CustomResourceDefinitionSpec preserveUnknownFields(Boolean preserveUnknownFields) { + public V1CustomResourceDefinitionSpec preserveUnknownFields(@jakarta.annotation.Nullable Boolean preserveUnknownFields) { this.preserveUnknownFields = preserveUnknownFields; return this; } - /** + /** * preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details. * @return preserveUnknownFields - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details.") public Boolean getPreserveUnknownFields() { return preserveUnknownFields; } - public void setPreserveUnknownFields(Boolean preserveUnknownFields) { + public void setPreserveUnknownFields(@jakarta.annotation.Nullable Boolean preserveUnknownFields) { this.preserveUnknownFields = preserveUnknownFields; } - public V1CustomResourceDefinitionSpec scope(String scope) { + public V1CustomResourceDefinitionSpec scope(@jakarta.annotation.Nonnull String scope) { this.scope = scope; return this; } - /** + /** * scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. * @return scope - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`.") public String getScope() { return scope; } - public void setScope(String scope) { + public void setScope(@jakarta.annotation.Nonnull String scope) { this.scope = scope; } - public V1CustomResourceDefinitionSpec versions(List versions) { + public V1CustomResourceDefinitionSpec versions(@jakarta.annotation.Nonnull List versions) { this.versions = versions; return this; } @@ -198,17 +203,17 @@ public V1CustomResourceDefinitionSpec addVersionsItem(V1CustomResourceDefinition return this; } - /** + /** * versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. * @return versions - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.") public List getVersions() { return versions; } - public void setVersions(List versions) { + public void setVersions(@jakarta.annotation.Nonnull List versions) { this.versions = versions; } @@ -283,12 +288,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("versions"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceDefinitionSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceDefinitionSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceDefinitionSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -364,22 +369,22 @@ public V1CustomResourceDefinitionSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CustomResourceDefinitionSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CustomResourceDefinitionSpec - * @throws IOException if the JSON string is invalid with respect to V1CustomResourceDefinitionSpec - */ + /** + * Create an instance of V1CustomResourceDefinitionSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceDefinitionSpec + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceDefinitionSpec + */ public static V1CustomResourceDefinitionSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CustomResourceDefinitionSpec.class); } - /** - * Convert an instance of V1CustomResourceDefinitionSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CustomResourceDefinitionSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java index d73ddf8270..f2fa4ed914 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,44 +54,47 @@ * CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition */ @ApiModel(description = "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CustomResourceDefinitionStatus { public static final String SERIALIZED_NAME_ACCEPTED_NAMES = "acceptedNames"; @SerializedName(SERIALIZED_NAME_ACCEPTED_NAMES) + @jakarta.annotation.Nullable private V1CustomResourceDefinitionNames acceptedNames; public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); public static final String SERIALIZED_NAME_STORED_VERSIONS = "storedVersions"; @SerializedName(SERIALIZED_NAME_STORED_VERSIONS) + @jakarta.annotation.Nullable private List storedVersions = new ArrayList<>(); public V1CustomResourceDefinitionStatus() { } - public V1CustomResourceDefinitionStatus acceptedNames(V1CustomResourceDefinitionNames acceptedNames) { + public V1CustomResourceDefinitionStatus acceptedNames(@jakarta.annotation.Nullable V1CustomResourceDefinitionNames acceptedNames) { this.acceptedNames = acceptedNames; return this; } - /** + /** * Get acceptedNames * @return acceptedNames - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1CustomResourceDefinitionNames getAcceptedNames() { return acceptedNames; } - public void setAcceptedNames(V1CustomResourceDefinitionNames acceptedNames) { + public void setAcceptedNames(@jakarta.annotation.Nullable V1CustomResourceDefinitionNames acceptedNames) { this.acceptedNames = acceptedNames; } - public V1CustomResourceDefinitionStatus conditions(List conditions) { + public V1CustomResourceDefinitionStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } @@ -105,22 +107,22 @@ public V1CustomResourceDefinitionStatus addConditionsItem(V1CustomResourceDefini return this; } - /** + /** * conditions indicate state for particular aspects of a CustomResourceDefinition * @return conditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "conditions indicate state for particular aspects of a CustomResourceDefinition") public List getConditions() { return conditions; } - public void setConditions(List conditions) { + public void setConditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; } - public V1CustomResourceDefinitionStatus storedVersions(List storedVersions) { + public V1CustomResourceDefinitionStatus storedVersions(@jakarta.annotation.Nullable List storedVersions) { this.storedVersions = storedVersions; return this; } @@ -133,17 +135,17 @@ public V1CustomResourceDefinitionStatus addStoredVersionsItem(String storedVersi return this; } - /** + /** * storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list. * @return storedVersions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list.") public List getStoredVersions() { return storedVersions; } - public void setStoredVersions(List storedVersions) { + public void setStoredVersions(@jakarta.annotation.Nullable List storedVersions) { this.storedVersions = storedVersions; } @@ -205,12 +207,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceDefinitionStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceDefinitionStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceDefinitionStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -279,22 +281,22 @@ public V1CustomResourceDefinitionStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CustomResourceDefinitionStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CustomResourceDefinitionStatus - * @throws IOException if the JSON string is invalid with respect to V1CustomResourceDefinitionStatus - */ + /** + * Create an instance of V1CustomResourceDefinitionStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceDefinitionStatus + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceDefinitionStatus + */ public static V1CustomResourceDefinitionStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CustomResourceDefinitionStatus.class); } - /** - * Convert an instance of V1CustomResourceDefinitionStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CustomResourceDefinitionStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersion.java index 92f760bb15..1ccc05e26e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersion.java @@ -44,7 +44,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -57,48 +56,57 @@ * CustomResourceDefinitionVersion describes a version for CRD. */ @ApiModel(description = "CustomResourceDefinitionVersion describes a version for CRD.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CustomResourceDefinitionVersion { public static final String SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS = "additionalPrinterColumns"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS) + @jakarta.annotation.Nullable private List additionalPrinterColumns = new ArrayList<>(); public static final String SERIALIZED_NAME_DEPRECATED = "deprecated"; @SerializedName(SERIALIZED_NAME_DEPRECATED) + @jakarta.annotation.Nullable private Boolean deprecated; public static final String SERIALIZED_NAME_DEPRECATION_WARNING = "deprecationWarning"; @SerializedName(SERIALIZED_NAME_DEPRECATION_WARNING) + @jakarta.annotation.Nullable private String deprecationWarning; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_SCHEMA = "schema"; @SerializedName(SERIALIZED_NAME_SCHEMA) + @jakarta.annotation.Nullable private V1CustomResourceValidation schema; public static final String SERIALIZED_NAME_SELECTABLE_FIELDS = "selectableFields"; @SerializedName(SERIALIZED_NAME_SELECTABLE_FIELDS) + @jakarta.annotation.Nullable private List selectableFields = new ArrayList<>(); public static final String SERIALIZED_NAME_SERVED = "served"; @SerializedName(SERIALIZED_NAME_SERVED) + @jakarta.annotation.Nonnull private Boolean served; public static final String SERIALIZED_NAME_STORAGE = "storage"; @SerializedName(SERIALIZED_NAME_STORAGE) + @jakarta.annotation.Nonnull private Boolean storage; public static final String SERIALIZED_NAME_SUBRESOURCES = "subresources"; @SerializedName(SERIALIZED_NAME_SUBRESOURCES) + @jakarta.annotation.Nullable private V1CustomResourceSubresources subresources; public V1CustomResourceDefinitionVersion() { } - public V1CustomResourceDefinitionVersion additionalPrinterColumns(List additionalPrinterColumns) { + public V1CustomResourceDefinitionVersion additionalPrinterColumns(@jakarta.annotation.Nullable List additionalPrinterColumns) { this.additionalPrinterColumns = additionalPrinterColumns; return this; } @@ -111,102 +119,102 @@ public V1CustomResourceDefinitionVersion addAdditionalPrinterColumnsItem(V1Custo return this; } - /** + /** * additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used. * @return additionalPrinterColumns - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used.") public List getAdditionalPrinterColumns() { return additionalPrinterColumns; } - public void setAdditionalPrinterColumns(List additionalPrinterColumns) { + public void setAdditionalPrinterColumns(@jakarta.annotation.Nullable List additionalPrinterColumns) { this.additionalPrinterColumns = additionalPrinterColumns; } - public V1CustomResourceDefinitionVersion deprecated(Boolean deprecated) { + public V1CustomResourceDefinitionVersion deprecated(@jakarta.annotation.Nullable Boolean deprecated) { this.deprecated = deprecated; return this; } - /** + /** * deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false. * @return deprecated - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.") public Boolean getDeprecated() { return deprecated; } - public void setDeprecated(Boolean deprecated) { + public void setDeprecated(@jakarta.annotation.Nullable Boolean deprecated) { this.deprecated = deprecated; } - public V1CustomResourceDefinitionVersion deprecationWarning(String deprecationWarning) { + public V1CustomResourceDefinitionVersion deprecationWarning(@jakarta.annotation.Nullable String deprecationWarning) { this.deprecationWarning = deprecationWarning; return this; } - /** + /** * deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists. * @return deprecationWarning - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.") public String getDeprecationWarning() { return deprecationWarning; } - public void setDeprecationWarning(String deprecationWarning) { + public void setDeprecationWarning(@jakarta.annotation.Nullable String deprecationWarning) { this.deprecationWarning = deprecationWarning; } - public V1CustomResourceDefinitionVersion name(String name) { + public V1CustomResourceDefinitionVersion name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1CustomResourceDefinitionVersion schema(V1CustomResourceValidation schema) { + public V1CustomResourceDefinitionVersion schema(@jakarta.annotation.Nullable V1CustomResourceValidation schema) { this.schema = schema; return this; } - /** + /** * Get schema * @return schema - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1CustomResourceValidation getSchema() { return schema; } - public void setSchema(V1CustomResourceValidation schema) { + public void setSchema(@jakarta.annotation.Nullable V1CustomResourceValidation schema) { this.schema = schema; } - public V1CustomResourceDefinitionVersion selectableFields(List selectableFields) { + public V1CustomResourceDefinitionVersion selectableFields(@jakarta.annotation.Nullable List selectableFields) { this.selectableFields = selectableFields; return this; } @@ -219,77 +227,77 @@ public V1CustomResourceDefinitionVersion addSelectableFieldsItem(V1SelectableFie return this; } - /** + /** * selectableFields specifies paths to fields that may be used as field selectors. A maximum of 8 selectable fields are allowed. See https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors * @return selectableFields - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "selectableFields specifies paths to fields that may be used as field selectors. A maximum of 8 selectable fields are allowed. See https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors") public List getSelectableFields() { return selectableFields; } - public void setSelectableFields(List selectableFields) { + public void setSelectableFields(@jakarta.annotation.Nullable List selectableFields) { this.selectableFields = selectableFields; } - public V1CustomResourceDefinitionVersion served(Boolean served) { + public V1CustomResourceDefinitionVersion served(@jakarta.annotation.Nonnull Boolean served) { this.served = served; return this; } - /** + /** * served is a flag enabling/disabling this version from being served via REST APIs * @return served - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "served is a flag enabling/disabling this version from being served via REST APIs") public Boolean getServed() { return served; } - public void setServed(Boolean served) { + public void setServed(@jakarta.annotation.Nonnull Boolean served) { this.served = served; } - public V1CustomResourceDefinitionVersion storage(Boolean storage) { + public V1CustomResourceDefinitionVersion storage(@jakarta.annotation.Nonnull Boolean storage) { this.storage = storage; return this; } - /** + /** * storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. * @return storage - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.") public Boolean getStorage() { return storage; } - public void setStorage(Boolean storage) { + public void setStorage(@jakarta.annotation.Nonnull Boolean storage) { this.storage = storage; } - public V1CustomResourceDefinitionVersion subresources(V1CustomResourceSubresources subresources) { + public V1CustomResourceDefinitionVersion subresources(@jakarta.annotation.Nullable V1CustomResourceSubresources subresources) { this.subresources = subresources; return this; } - /** + /** * Get subresources * @return subresources - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1CustomResourceSubresources getSubresources() { return subresources; } - public void setSubresources(V1CustomResourceSubresources subresources) { + public void setSubresources(@jakarta.annotation.Nullable V1CustomResourceSubresources subresources) { this.subresources = subresources; } @@ -372,12 +380,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("storage"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceDefinitionVersion - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceDefinitionVersion + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceDefinitionVersion.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -473,22 +481,22 @@ public V1CustomResourceDefinitionVersion read(JsonReader in) throws IOException } } - /** - * Create an instance of V1CustomResourceDefinitionVersion given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CustomResourceDefinitionVersion - * @throws IOException if the JSON string is invalid with respect to V1CustomResourceDefinitionVersion - */ + /** + * Create an instance of V1CustomResourceDefinitionVersion given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceDefinitionVersion + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceDefinitionVersion + */ public static V1CustomResourceDefinitionVersion fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CustomResourceDefinitionVersion.class); } - /** - * Convert an instance of V1CustomResourceDefinitionVersion to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CustomResourceDefinitionVersion to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScale.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScale.java index a179e0a3e4..3429e7cfbc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScale.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScale.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,79 +50,82 @@ * CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources. */ @ApiModel(description = "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CustomResourceSubresourceScale { public static final String SERIALIZED_NAME_LABEL_SELECTOR_PATH = "labelSelectorPath"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR_PATH) + @jakarta.annotation.Nullable private String labelSelectorPath; public static final String SERIALIZED_NAME_SPEC_REPLICAS_PATH = "specReplicasPath"; @SerializedName(SERIALIZED_NAME_SPEC_REPLICAS_PATH) + @jakarta.annotation.Nonnull private String specReplicasPath; public static final String SERIALIZED_NAME_STATUS_REPLICAS_PATH = "statusReplicasPath"; @SerializedName(SERIALIZED_NAME_STATUS_REPLICAS_PATH) + @jakarta.annotation.Nonnull private String statusReplicasPath; public V1CustomResourceSubresourceScale() { } - public V1CustomResourceSubresourceScale labelSelectorPath(String labelSelectorPath) { + public V1CustomResourceSubresourceScale labelSelectorPath(@jakarta.annotation.Nullable String labelSelectorPath) { this.labelSelectorPath = labelSelectorPath; return this; } - /** + /** * labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. * @return labelSelectorPath - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string.") public String getLabelSelectorPath() { return labelSelectorPath; } - public void setLabelSelectorPath(String labelSelectorPath) { + public void setLabelSelectorPath(@jakarta.annotation.Nullable String labelSelectorPath) { this.labelSelectorPath = labelSelectorPath; } - public V1CustomResourceSubresourceScale specReplicasPath(String specReplicasPath) { + public V1CustomResourceSubresourceScale specReplicasPath(@jakarta.annotation.Nonnull String specReplicasPath) { this.specReplicasPath = specReplicasPath; return this; } - /** + /** * specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. * @return specReplicasPath - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET.") public String getSpecReplicasPath() { return specReplicasPath; } - public void setSpecReplicasPath(String specReplicasPath) { + public void setSpecReplicasPath(@jakarta.annotation.Nonnull String specReplicasPath) { this.specReplicasPath = specReplicasPath; } - public V1CustomResourceSubresourceScale statusReplicasPath(String statusReplicasPath) { + public V1CustomResourceSubresourceScale statusReplicasPath(@jakarta.annotation.Nonnull String statusReplicasPath) { this.statusReplicasPath = statusReplicasPath; return this; } - /** + /** * statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. * @return statusReplicasPath - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0.") public String getStatusReplicasPath() { return statusReplicasPath; } - public void setStatusReplicasPath(String statusReplicasPath) { + public void setStatusReplicasPath(@jakarta.annotation.Nonnull String statusReplicasPath) { this.statusReplicasPath = statusReplicasPath; } @@ -187,12 +189,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("statusReplicasPath"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceSubresourceScale - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceSubresourceScale + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceSubresourceScale.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -255,22 +257,22 @@ public V1CustomResourceSubresourceScale read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CustomResourceSubresourceScale given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CustomResourceSubresourceScale - * @throws IOException if the JSON string is invalid with respect to V1CustomResourceSubresourceScale - */ + /** + * Create an instance of V1CustomResourceSubresourceScale given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceSubresourceScale + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceSubresourceScale + */ public static V1CustomResourceSubresourceScale fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CustomResourceSubresourceScale.class); } - /** - * Convert an instance of V1CustomResourceSubresourceScale to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CustomResourceSubresourceScale to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresources.java index 05cde830ad..c126922f98 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresources.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * CustomResourceSubresources defines the status and scale subresources for CustomResources. */ @ApiModel(description = "CustomResourceSubresources defines the status and scale subresources for CustomResources.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CustomResourceSubresources { public static final String SERIALIZED_NAME_SCALE = "scale"; @SerializedName(SERIALIZED_NAME_SCALE) + @jakarta.annotation.Nullable private V1CustomResourceSubresourceScale scale; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private Object status; public V1CustomResourceSubresources() { } - public V1CustomResourceSubresources scale(V1CustomResourceSubresourceScale scale) { + public V1CustomResourceSubresources scale(@jakarta.annotation.Nullable V1CustomResourceSubresourceScale scale) { this.scale = scale; return this; } - /** + /** * Get scale * @return scale - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1CustomResourceSubresourceScale getScale() { return scale; } - public void setScale(V1CustomResourceSubresourceScale scale) { + public void setScale(@jakarta.annotation.Nullable V1CustomResourceSubresourceScale scale) { this.scale = scale; } - public V1CustomResourceSubresources status(Object status) { + public V1CustomResourceSubresources status(@jakarta.annotation.Nullable Object status) { this.status = status; return this; } - /** + /** * status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.") public Object getStatus() { return status; } - public void setStatus(Object status) { + public void setStatus(@jakarta.annotation.Nullable Object status) { this.status = status; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceSubresources - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceSubresources + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceSubresources.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -215,22 +216,22 @@ public V1CustomResourceSubresources read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CustomResourceSubresources given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CustomResourceSubresources - * @throws IOException if the JSON string is invalid with respect to V1CustomResourceSubresources - */ + /** + * Create an instance of V1CustomResourceSubresources given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceSubresources + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceSubresources + */ public static V1CustomResourceSubresources fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CustomResourceSubresources.class); } - /** - * Convert an instance of V1CustomResourceSubresources to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CustomResourceSubresources to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java index 2117f1993f..2f06a5209f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,31 +51,32 @@ * CustomResourceValidation is a list of validation methods for CustomResources. */ @ApiModel(description = "CustomResourceValidation is a list of validation methods for CustomResources.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CustomResourceValidation { public static final String SERIALIZED_NAME_OPEN_A_P_I_V3_SCHEMA = "openAPIV3Schema"; @SerializedName(SERIALIZED_NAME_OPEN_A_P_I_V3_SCHEMA) + @jakarta.annotation.Nullable private V1JSONSchemaProps openAPIV3Schema; public V1CustomResourceValidation() { } - public V1CustomResourceValidation openAPIV3Schema(V1JSONSchemaProps openAPIV3Schema) { + public V1CustomResourceValidation openAPIV3Schema(@jakarta.annotation.Nullable V1JSONSchemaProps openAPIV3Schema) { this.openAPIV3Schema = openAPIV3Schema; return this; } - /** + /** * Get openAPIV3Schema * @return openAPIV3Schema - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1JSONSchemaProps getOpenAPIV3Schema() { return openAPIV3Schema; } - public void setOpenAPIV3Schema(V1JSONSchemaProps openAPIV3Schema) { + public void setOpenAPIV3Schema(@jakarta.annotation.Nullable V1JSONSchemaProps openAPIV3Schema) { this.openAPIV3Schema = openAPIV3Schema; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceValidation - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CustomResourceValidation + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceValidation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -188,22 +188,22 @@ public V1CustomResourceValidation read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1CustomResourceValidation given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1CustomResourceValidation - * @throws IOException if the JSON string is invalid with respect to V1CustomResourceValidation - */ + /** + * Create an instance of V1CustomResourceValidation given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceValidation + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceValidation + */ public static V1CustomResourceValidation fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1CustomResourceValidation.class); } - /** - * Convert an instance of V1CustomResourceValidation to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1CustomResourceValidation to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpoint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpoint.java index 7e74081b30..778e9a5431 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpoint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpoint.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * DaemonEndpoint contains information about a single Daemon endpoint. */ @ApiModel(description = "DaemonEndpoint contains information about a single Daemon endpoint.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DaemonEndpoint { public static final String SERIALIZED_NAME_PORT = "Port"; @SerializedName(SERIALIZED_NAME_PORT) + @jakarta.annotation.Nonnull private Integer port; public V1DaemonEndpoint() { } - public V1DaemonEndpoint port(Integer port) { + public V1DaemonEndpoint port(@jakarta.annotation.Nonnull Integer port) { this.port = port; return this; } - /** + /** * Port number of the given endpoint. * @return port - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Port number of the given endpoint.") public Integer getPort() { return port; } - public void setPort(Integer port) { + public void setPort(@jakarta.annotation.Nonnull Integer port) { this.port = port; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("Port"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1DaemonEndpoint - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1DaemonEndpoint + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DaemonEndpoint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -191,22 +191,22 @@ public V1DaemonEndpoint read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1DaemonEndpoint given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1DaemonEndpoint - * @throws IOException if the JSON string is invalid with respect to V1DaemonEndpoint - */ + /** + * Create an instance of V1DaemonEndpoint given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DaemonEndpoint + * @throws IOException if the JSON string is invalid with respect to V1DaemonEndpoint + */ public static V1DaemonEndpoint fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1DaemonEndpoint.class); } - /** - * Convert an instance of V1DaemonEndpoint to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1DaemonEndpoint to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSet.java index 00ddb47060..c28139e098 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSet.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * DaemonSet represents the configuration of a daemon set. */ @ApiModel(description = "DaemonSet represents the configuration of a daemon set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DaemonSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1DaemonSetSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1DaemonSetStatus status; public V1DaemonSet() { } - public V1DaemonSet apiVersion(String apiVersion) { + public V1DaemonSet apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1DaemonSet kind(String kind) { + public V1DaemonSet kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1DaemonSet metadata(V1ObjectMeta metadata) { + public V1DaemonSet metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1DaemonSet spec(V1DaemonSetSpec spec) { + public V1DaemonSet spec(@jakarta.annotation.Nullable V1DaemonSetSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1DaemonSetSpec getSpec() { return spec; } - public void setSpec(V1DaemonSetSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1DaemonSetSpec spec) { this.spec = spec; } - public V1DaemonSet status(V1DaemonSetStatus status) { + public V1DaemonSet status(@jakarta.annotation.Nullable V1DaemonSetStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1DaemonSetStatus getStatus() { return status; } - public void setStatus(V1DaemonSetStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1DaemonSetStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1DaemonSet - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1DaemonSet + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DaemonSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1DaemonSet read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1DaemonSet given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1DaemonSet - * @throws IOException if the JSON string is invalid with respect to V1DaemonSet - */ + /** + * Create an instance of V1DaemonSet given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DaemonSet + * @throws IOException if the JSON string is invalid with respect to V1DaemonSet + */ public static V1DaemonSet fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1DaemonSet.class); } - /** - * Convert an instance of V1DaemonSet to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1DaemonSet to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetCondition.java index 9c53014de8..017dc99ff0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetCondition.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,127 +51,132 @@ * DaemonSetCondition describes the state of a DaemonSet at a certain point. */ @ApiModel(description = "DaemonSetCondition describes the state of a DaemonSet at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DaemonSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nonnull private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1DaemonSetCondition() { } - public V1DaemonSetCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { + public V1DaemonSetCondition lastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; } - /** + /** * Last time the condition transitioned from one status to another. * @return lastTransitionTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { + public void setLastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } - public V1DaemonSetCondition message(String message) { + public V1DaemonSetCondition message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * A human readable message indicating details about the transition. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A human readable message indicating details about the transition.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1DaemonSetCondition reason(String reason) { + public V1DaemonSetCondition reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * The reason for the condition's last transition. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The reason for the condition's last transition.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } - public V1DaemonSetCondition status(String status) { + public V1DaemonSetCondition status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } - /** + /** * Status of the condition, one of True, False, Unknown. * @return status - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public V1DaemonSetCondition type(String type) { + public V1DaemonSetCondition type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * Type of DaemonSet condition. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Type of DaemonSet condition.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1DaemonSetCondition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1DaemonSetCondition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DaemonSetCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -313,22 +317,22 @@ public V1DaemonSetCondition read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1DaemonSetCondition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1DaemonSetCondition - * @throws IOException if the JSON string is invalid with respect to V1DaemonSetCondition - */ + /** + * Create an instance of V1DaemonSetCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DaemonSetCondition + * @throws IOException if the JSON string is invalid with respect to V1DaemonSetCondition + */ public static V1DaemonSetCondition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1DaemonSetCondition.class); } - /** - * Convert an instance of V1DaemonSetCondition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1DaemonSetCondition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetList.java index 699967ab83..6de595bd93 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * DaemonSetList is a collection of daemon sets. */ @ApiModel(description = "DaemonSetList is a collection of daemon sets.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DaemonSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1DaemonSetList() { } - public V1DaemonSetList apiVersion(String apiVersion) { + public V1DaemonSetList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1DaemonSetList items(List items) { + public V1DaemonSetList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1DaemonSetList addItemsItem(V1DaemonSet itemsItem) { return this; } - /** + /** * A list of daemon sets. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "A list of daemon sets.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1DaemonSetList kind(String kind) { + public V1DaemonSetList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1DaemonSetList metadata(V1ListMeta metadata) { + public V1DaemonSetList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1DaemonSetList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1DaemonSetList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DaemonSetList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1DaemonSetList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1DaemonSetList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1DaemonSetList - * @throws IOException if the JSON string is invalid with respect to V1DaemonSetList - */ + /** + * Create an instance of V1DaemonSetList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DaemonSetList + * @throws IOException if the JSON string is invalid with respect to V1DaemonSetList + */ public static V1DaemonSetList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1DaemonSetList.class); } - /** - * Convert an instance of V1DaemonSetList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1DaemonSetList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpec.java index 38c9309bc5..e6d878bd51 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpec.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * DaemonSetSpec is the specification of a daemon set. */ @ApiModel(description = "DaemonSetSpec is the specification of a daemon set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DaemonSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) + @jakarta.annotation.Nullable private Integer minReadySeconds; public static final String SERIALIZED_NAME_REVISION_HISTORY_LIMIT = "revisionHistoryLimit"; @SerializedName(SERIALIZED_NAME_REVISION_HISTORY_LIMIT) + @jakarta.annotation.Nullable private Integer revisionHistoryLimit; public static final String SERIALIZED_NAME_SELECTOR = "selector"; @SerializedName(SERIALIZED_NAME_SELECTOR) + @jakarta.annotation.Nonnull private V1LabelSelector selector; public static final String SERIALIZED_NAME_TEMPLATE = "template"; @SerializedName(SERIALIZED_NAME_TEMPLATE) + @jakarta.annotation.Nonnull private V1PodTemplateSpec template; public static final String SERIALIZED_NAME_UPDATE_STRATEGY = "updateStrategy"; @SerializedName(SERIALIZED_NAME_UPDATE_STRATEGY) + @jakarta.annotation.Nullable private V1DaemonSetUpdateStrategy updateStrategy; public V1DaemonSetSpec() { } - public V1DaemonSetSpec minReadySeconds(Integer minReadySeconds) { + public V1DaemonSetSpec minReadySeconds(@jakarta.annotation.Nullable Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; return this; } - /** + /** * The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). * @return minReadySeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).") public Integer getMinReadySeconds() { return minReadySeconds; } - public void setMinReadySeconds(Integer minReadySeconds) { + public void setMinReadySeconds(@jakarta.annotation.Nullable Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; } - public V1DaemonSetSpec revisionHistoryLimit(Integer revisionHistoryLimit) { + public V1DaemonSetSpec revisionHistoryLimit(@jakarta.annotation.Nullable Integer revisionHistoryLimit) { this.revisionHistoryLimit = revisionHistoryLimit; return this; } - /** + /** * The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. * @return revisionHistoryLimit - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.") public Integer getRevisionHistoryLimit() { return revisionHistoryLimit; } - public void setRevisionHistoryLimit(Integer revisionHistoryLimit) { + public void setRevisionHistoryLimit(@jakarta.annotation.Nullable Integer revisionHistoryLimit) { this.revisionHistoryLimit = revisionHistoryLimit; } - public V1DaemonSetSpec selector(V1LabelSelector selector) { + public V1DaemonSetSpec selector(@jakarta.annotation.Nonnull V1LabelSelector selector) { this.selector = selector; return this; } - /** + /** * Get selector * @return selector - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1LabelSelector getSelector() { return selector; } - public void setSelector(V1LabelSelector selector) { + public void setSelector(@jakarta.annotation.Nonnull V1LabelSelector selector) { this.selector = selector; } - public V1DaemonSetSpec template(V1PodTemplateSpec template) { + public V1DaemonSetSpec template(@jakarta.annotation.Nonnull V1PodTemplateSpec template) { this.template = template; return this; } - /** + /** * Get template * @return template - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1PodTemplateSpec getTemplate() { return template; } - public void setTemplate(V1PodTemplateSpec template) { + public void setTemplate(@jakarta.annotation.Nonnull V1PodTemplateSpec template) { this.template = template; } - public V1DaemonSetSpec updateStrategy(V1DaemonSetUpdateStrategy updateStrategy) { + public V1DaemonSetSpec updateStrategy(@jakarta.annotation.Nullable V1DaemonSetUpdateStrategy updateStrategy) { this.updateStrategy = updateStrategy; return this; } - /** + /** * Get updateStrategy * @return updateStrategy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1DaemonSetUpdateStrategy getUpdateStrategy() { return updateStrategy; } - public void setUpdateStrategy(V1DaemonSetUpdateStrategy updateStrategy) { + public void setUpdateStrategy(@jakarta.annotation.Nullable V1DaemonSetUpdateStrategy updateStrategy) { this.updateStrategy = updateStrategy; } @@ -244,12 +248,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("template"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1DaemonSetSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1DaemonSetSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DaemonSetSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -311,22 +315,22 @@ public V1DaemonSetSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1DaemonSetSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1DaemonSetSpec - * @throws IOException if the JSON string is invalid with respect to V1DaemonSetSpec - */ + /** + * Create an instance of V1DaemonSetSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DaemonSetSpec + * @throws IOException if the JSON string is invalid with respect to V1DaemonSetSpec + */ public static V1DaemonSetSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1DaemonSetSpec.class); } - /** - * Convert an instance of V1DaemonSetSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1DaemonSetSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatus.java index 18c40e7673..2b688962e3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatus.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,72 +53,82 @@ * DaemonSetStatus represents the current status of a daemon set. */ @ApiModel(description = "DaemonSetStatus represents the current status of a daemon set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DaemonSetStatus { public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; @SerializedName(SERIALIZED_NAME_COLLISION_COUNT) + @jakarta.annotation.Nullable private Integer collisionCount; public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); public static final String SERIALIZED_NAME_CURRENT_NUMBER_SCHEDULED = "currentNumberScheduled"; @SerializedName(SERIALIZED_NAME_CURRENT_NUMBER_SCHEDULED) + @jakarta.annotation.Nonnull private Integer currentNumberScheduled; public static final String SERIALIZED_NAME_DESIRED_NUMBER_SCHEDULED = "desiredNumberScheduled"; @SerializedName(SERIALIZED_NAME_DESIRED_NUMBER_SCHEDULED) + @jakarta.annotation.Nonnull private Integer desiredNumberScheduled; public static final String SERIALIZED_NAME_NUMBER_AVAILABLE = "numberAvailable"; @SerializedName(SERIALIZED_NAME_NUMBER_AVAILABLE) + @jakarta.annotation.Nullable private Integer numberAvailable; public static final String SERIALIZED_NAME_NUMBER_MISSCHEDULED = "numberMisscheduled"; @SerializedName(SERIALIZED_NAME_NUMBER_MISSCHEDULED) + @jakarta.annotation.Nonnull private Integer numberMisscheduled; public static final String SERIALIZED_NAME_NUMBER_READY = "numberReady"; @SerializedName(SERIALIZED_NAME_NUMBER_READY) + @jakarta.annotation.Nonnull private Integer numberReady; public static final String SERIALIZED_NAME_NUMBER_UNAVAILABLE = "numberUnavailable"; @SerializedName(SERIALIZED_NAME_NUMBER_UNAVAILABLE) + @jakarta.annotation.Nullable private Integer numberUnavailable; public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + @jakarta.annotation.Nullable private Long observedGeneration; public static final String SERIALIZED_NAME_UPDATED_NUMBER_SCHEDULED = "updatedNumberScheduled"; @SerializedName(SERIALIZED_NAME_UPDATED_NUMBER_SCHEDULED) + @jakarta.annotation.Nullable private Integer updatedNumberScheduled; public V1DaemonSetStatus() { } - public V1DaemonSetStatus collisionCount(Integer collisionCount) { + public V1DaemonSetStatus collisionCount(@jakarta.annotation.Nullable Integer collisionCount) { this.collisionCount = collisionCount; return this; } - /** + /** * Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. * @return collisionCount - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.") public Integer getCollisionCount() { return collisionCount; } - public void setCollisionCount(Integer collisionCount) { + public void setCollisionCount(@jakarta.annotation.Nullable Integer collisionCount) { this.collisionCount = collisionCount; } - public V1DaemonSetStatus conditions(List conditions) { + public V1DaemonSetStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } @@ -132,177 +141,177 @@ public V1DaemonSetStatus addConditionsItem(V1DaemonSetCondition conditionsItem) return this; } - /** + /** * Represents the latest available observations of a DaemonSet's current state. * @return conditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Represents the latest available observations of a DaemonSet's current state.") public List getConditions() { return conditions; } - public void setConditions(List conditions) { + public void setConditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; } - public V1DaemonSetStatus currentNumberScheduled(Integer currentNumberScheduled) { + public V1DaemonSetStatus currentNumberScheduled(@jakarta.annotation.Nonnull Integer currentNumberScheduled) { this.currentNumberScheduled = currentNumberScheduled; return this; } - /** + /** * The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ * @return currentNumberScheduled - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/") public Integer getCurrentNumberScheduled() { return currentNumberScheduled; } - public void setCurrentNumberScheduled(Integer currentNumberScheduled) { + public void setCurrentNumberScheduled(@jakarta.annotation.Nonnull Integer currentNumberScheduled) { this.currentNumberScheduled = currentNumberScheduled; } - public V1DaemonSetStatus desiredNumberScheduled(Integer desiredNumberScheduled) { + public V1DaemonSetStatus desiredNumberScheduled(@jakarta.annotation.Nonnull Integer desiredNumberScheduled) { this.desiredNumberScheduled = desiredNumberScheduled; return this; } - /** + /** * The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ * @return desiredNumberScheduled - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/") public Integer getDesiredNumberScheduled() { return desiredNumberScheduled; } - public void setDesiredNumberScheduled(Integer desiredNumberScheduled) { + public void setDesiredNumberScheduled(@jakarta.annotation.Nonnull Integer desiredNumberScheduled) { this.desiredNumberScheduled = desiredNumberScheduled; } - public V1DaemonSetStatus numberAvailable(Integer numberAvailable) { + public V1DaemonSetStatus numberAvailable(@jakarta.annotation.Nullable Integer numberAvailable) { this.numberAvailable = numberAvailable; return this; } - /** + /** * The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) * @return numberAvailable - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)") public Integer getNumberAvailable() { return numberAvailable; } - public void setNumberAvailable(Integer numberAvailable) { + public void setNumberAvailable(@jakarta.annotation.Nullable Integer numberAvailable) { this.numberAvailable = numberAvailable; } - public V1DaemonSetStatus numberMisscheduled(Integer numberMisscheduled) { + public V1DaemonSetStatus numberMisscheduled(@jakarta.annotation.Nonnull Integer numberMisscheduled) { this.numberMisscheduled = numberMisscheduled; return this; } - /** + /** * The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ * @return numberMisscheduled - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/") public Integer getNumberMisscheduled() { return numberMisscheduled; } - public void setNumberMisscheduled(Integer numberMisscheduled) { + public void setNumberMisscheduled(@jakarta.annotation.Nonnull Integer numberMisscheduled) { this.numberMisscheduled = numberMisscheduled; } - public V1DaemonSetStatus numberReady(Integer numberReady) { + public V1DaemonSetStatus numberReady(@jakarta.annotation.Nonnull Integer numberReady) { this.numberReady = numberReady; return this; } - /** + /** * numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition. * @return numberReady - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.") public Integer getNumberReady() { return numberReady; } - public void setNumberReady(Integer numberReady) { + public void setNumberReady(@jakarta.annotation.Nonnull Integer numberReady) { this.numberReady = numberReady; } - public V1DaemonSetStatus numberUnavailable(Integer numberUnavailable) { + public V1DaemonSetStatus numberUnavailable(@jakarta.annotation.Nullable Integer numberUnavailable) { this.numberUnavailable = numberUnavailable; return this; } - /** + /** * The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) * @return numberUnavailable - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)") public Integer getNumberUnavailable() { return numberUnavailable; } - public void setNumberUnavailable(Integer numberUnavailable) { + public void setNumberUnavailable(@jakarta.annotation.Nullable Integer numberUnavailable) { this.numberUnavailable = numberUnavailable; } - public V1DaemonSetStatus observedGeneration(Long observedGeneration) { + public V1DaemonSetStatus observedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { this.observedGeneration = observedGeneration; return this; } - /** + /** * The most recent generation observed by the daemon set controller. * @return observedGeneration - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The most recent generation observed by the daemon set controller.") public Long getObservedGeneration() { return observedGeneration; } - public void setObservedGeneration(Long observedGeneration) { + public void setObservedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { this.observedGeneration = observedGeneration; } - public V1DaemonSetStatus updatedNumberScheduled(Integer updatedNumberScheduled) { + public V1DaemonSetStatus updatedNumberScheduled(@jakarta.annotation.Nullable Integer updatedNumberScheduled) { this.updatedNumberScheduled = updatedNumberScheduled; return this; } - /** + /** * The total number of nodes that are running updated daemon pod * @return updatedNumberScheduled - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The total number of nodes that are running updated daemon pod") public Integer getUpdatedNumberScheduled() { return updatedNumberScheduled; } - public void setUpdatedNumberScheduled(Integer updatedNumberScheduled) { + public void setUpdatedNumberScheduled(@jakarta.annotation.Nullable Integer updatedNumberScheduled) { this.updatedNumberScheduled = updatedNumberScheduled; } @@ -389,12 +398,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("numberReady"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1DaemonSetStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1DaemonSetStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DaemonSetStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -462,22 +471,22 @@ public V1DaemonSetStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1DaemonSetStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1DaemonSetStatus - * @throws IOException if the JSON string is invalid with respect to V1DaemonSetStatus - */ + /** + * Create an instance of V1DaemonSetStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DaemonSetStatus + * @throws IOException if the JSON string is invalid with respect to V1DaemonSetStatus + */ public static V1DaemonSetStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1DaemonSetStatus.class); } - /** - * Convert an instance of V1DaemonSetStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1DaemonSetStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategy.java index b148e1e3b3..0f2bc32eac 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategy.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. */ @ApiModel(description = "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DaemonSetUpdateStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) + @jakarta.annotation.Nullable private V1RollingUpdateDaemonSet rollingUpdate; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nullable private String type; public V1DaemonSetUpdateStrategy() { } - public V1DaemonSetUpdateStrategy rollingUpdate(V1RollingUpdateDaemonSet rollingUpdate) { + public V1DaemonSetUpdateStrategy rollingUpdate(@jakarta.annotation.Nullable V1RollingUpdateDaemonSet rollingUpdate) { this.rollingUpdate = rollingUpdate; return this; } - /** + /** * Get rollingUpdate * @return rollingUpdate - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1RollingUpdateDaemonSet getRollingUpdate() { return rollingUpdate; } - public void setRollingUpdate(V1RollingUpdateDaemonSet rollingUpdate) { + public void setRollingUpdate(@jakarta.annotation.Nullable V1RollingUpdateDaemonSet rollingUpdate) { this.rollingUpdate = rollingUpdate; } - public V1DaemonSetUpdateStrategy type(String type) { + public V1DaemonSetUpdateStrategy type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } - /** + /** * Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. * @return type - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1DaemonSetUpdateStrategy - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1DaemonSetUpdateStrategy + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DaemonSetUpdateStrategy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -218,22 +219,22 @@ public V1DaemonSetUpdateStrategy read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1DaemonSetUpdateStrategy given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1DaemonSetUpdateStrategy - * @throws IOException if the JSON string is invalid with respect to V1DaemonSetUpdateStrategy - */ + /** + * Create an instance of V1DaemonSetUpdateStrategy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DaemonSetUpdateStrategy + * @throws IOException if the JSON string is invalid with respect to V1DaemonSetUpdateStrategy + */ public static V1DaemonSetUpdateStrategy fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1DaemonSetUpdateStrategy.class); } - /** - * Convert an instance of V1DaemonSetUpdateStrategy to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1DaemonSetUpdateStrategy to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptions.java index 8b79133f93..99cd96a439 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptions.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,64 +53,72 @@ * DeleteOptions may be provided when deleting an API object. */ @ApiModel(description = "DeleteOptions may be provided when deleting an API object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DeleteOptions { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_DRY_RUN = "dryRun"; @SerializedName(SERIALIZED_NAME_DRY_RUN) + @jakarta.annotation.Nullable private List dryRun = new ArrayList<>(); public static final String SERIALIZED_NAME_GRACE_PERIOD_SECONDS = "gracePeriodSeconds"; @SerializedName(SERIALIZED_NAME_GRACE_PERIOD_SECONDS) + @jakarta.annotation.Nullable private Long gracePeriodSeconds; public static final String SERIALIZED_NAME_IGNORE_STORE_READ_ERROR_WITH_CLUSTER_BREAKING_POTENTIAL = "ignoreStoreReadErrorWithClusterBreakingPotential"; @SerializedName(SERIALIZED_NAME_IGNORE_STORE_READ_ERROR_WITH_CLUSTER_BREAKING_POTENTIAL) + @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_ORPHAN_DEPENDENTS = "orphanDependents"; @SerializedName(SERIALIZED_NAME_ORPHAN_DEPENDENTS) + @jakarta.annotation.Nullable private Boolean orphanDependents; public static final String SERIALIZED_NAME_PRECONDITIONS = "preconditions"; @SerializedName(SERIALIZED_NAME_PRECONDITIONS) + @jakarta.annotation.Nullable private V1Preconditions preconditions; public static final String SERIALIZED_NAME_PROPAGATION_POLICY = "propagationPolicy"; @SerializedName(SERIALIZED_NAME_PROPAGATION_POLICY) + @jakarta.annotation.Nullable private String propagationPolicy; public V1DeleteOptions() { } - public V1DeleteOptions apiVersion(String apiVersion) { + public V1DeleteOptions apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1DeleteOptions dryRun(List dryRun) { + public V1DeleteOptions dryRun(@jakarta.annotation.Nullable List dryRun) { this.dryRun = dryRun; return this; } @@ -124,137 +131,137 @@ public V1DeleteOptions addDryRunItem(String dryRunItem) { return this; } - /** + /** * When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @return dryRun - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed") public List getDryRun() { return dryRun; } - public void setDryRun(List dryRun) { + public void setDryRun(@jakarta.annotation.Nullable List dryRun) { this.dryRun = dryRun; } - public V1DeleteOptions gracePeriodSeconds(Long gracePeriodSeconds) { + public V1DeleteOptions gracePeriodSeconds(@jakarta.annotation.Nullable Long gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } - /** + /** * The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. * @return gracePeriodSeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.") public Long getGracePeriodSeconds() { return gracePeriodSeconds; } - public void setGracePeriodSeconds(Long gracePeriodSeconds) { + public void setGracePeriodSeconds(@jakarta.annotation.Nullable Long gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; } - public V1DeleteOptions ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public V1DeleteOptions ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } - /** + /** * if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it * @return ignoreStoreReadErrorWithClusterBreakingPotential - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it") public Boolean getIgnoreStoreReadErrorWithClusterBreakingPotential() { return ignoreStoreReadErrorWithClusterBreakingPotential; } - public void setIgnoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public void setIgnoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; } - public V1DeleteOptions kind(String kind) { + public V1DeleteOptions kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1DeleteOptions orphanDependents(Boolean orphanDependents) { + public V1DeleteOptions orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } - /** + /** * Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. * @return orphanDependents - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.") public Boolean getOrphanDependents() { return orphanDependents; } - public void setOrphanDependents(Boolean orphanDependents) { + public void setOrphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; } - public V1DeleteOptions preconditions(V1Preconditions preconditions) { + public V1DeleteOptions preconditions(@jakarta.annotation.Nullable V1Preconditions preconditions) { this.preconditions = preconditions; return this; } - /** + /** * Get preconditions * @return preconditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1Preconditions getPreconditions() { return preconditions; } - public void setPreconditions(V1Preconditions preconditions) { + public void setPreconditions(@jakarta.annotation.Nullable V1Preconditions preconditions) { this.preconditions = preconditions; } - public V1DeleteOptions propagationPolicy(String propagationPolicy) { + public V1DeleteOptions propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } - /** + /** * Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. * @return propagationPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.") public String getPropagationPolicy() { return propagationPolicy; } - public void setPropagationPolicy(String propagationPolicy) { + public void setPropagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; } @@ -331,12 +338,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1DeleteOptions - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1DeleteOptions + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeleteOptions.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -400,22 +407,22 @@ public V1DeleteOptions read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1DeleteOptions given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1DeleteOptions - * @throws IOException if the JSON string is invalid with respect to V1DeleteOptions - */ + /** + * Create an instance of V1DeleteOptions given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DeleteOptions + * @throws IOException if the JSON string is invalid with respect to V1DeleteOptions + */ public static V1DeleteOptions fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1DeleteOptions.class); } - /** - * Convert an instance of V1DeleteOptions to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1DeleteOptions to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Deployment.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Deployment.java index bc8a3afd3a..467bd080c7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Deployment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Deployment.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * Deployment enables declarative updates for Pods and ReplicaSets. */ @ApiModel(description = "Deployment enables declarative updates for Pods and ReplicaSets.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Deployment implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1DeploymentSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1DeploymentStatus status; public V1Deployment() { } - public V1Deployment apiVersion(String apiVersion) { + public V1Deployment apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1Deployment kind(String kind) { + public V1Deployment kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1Deployment metadata(V1ObjectMeta metadata) { + public V1Deployment metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1Deployment spec(V1DeploymentSpec spec) { + public V1Deployment spec(@jakarta.annotation.Nullable V1DeploymentSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1DeploymentSpec getSpec() { return spec; } - public void setSpec(V1DeploymentSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1DeploymentSpec spec) { this.spec = spec; } - public V1Deployment status(V1DeploymentStatus status) { + public V1Deployment status(@jakarta.annotation.Nullable V1DeploymentStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1DeploymentStatus getStatus() { return status; } - public void setStatus(V1DeploymentStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1DeploymentStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Deployment - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Deployment + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Deployment.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1Deployment read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Deployment given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Deployment - * @throws IOException if the JSON string is invalid with respect to V1Deployment - */ + /** + * Create an instance of V1Deployment given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Deployment + * @throws IOException if the JSON string is invalid with respect to V1Deployment + */ public static V1Deployment fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Deployment.class); } - /** - * Convert an instance of V1Deployment to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Deployment to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentCondition.java index a94b5aaf75..ecc7718986 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentCondition.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,151 +51,157 @@ * DeploymentCondition describes the state of a deployment at a certain point. */ @ApiModel(description = "DeploymentCondition describes the state of a deployment at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DeploymentCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_LAST_UPDATE_TIME = "lastUpdateTime"; @SerializedName(SERIALIZED_NAME_LAST_UPDATE_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastUpdateTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nonnull private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1DeploymentCondition() { } - public V1DeploymentCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { + public V1DeploymentCondition lastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; } - /** + /** * Last time the condition transitioned from one status to another. * @return lastTransitionTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { + public void setLastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } - public V1DeploymentCondition lastUpdateTime(OffsetDateTime lastUpdateTime) { + public V1DeploymentCondition lastUpdateTime(@jakarta.annotation.Nullable OffsetDateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; return this; } - /** + /** * The last time this condition was updated. * @return lastUpdateTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The last time this condition was updated.") public OffsetDateTime getLastUpdateTime() { return lastUpdateTime; } - public void setLastUpdateTime(OffsetDateTime lastUpdateTime) { + public void setLastUpdateTime(@jakarta.annotation.Nullable OffsetDateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } - public V1DeploymentCondition message(String message) { + public V1DeploymentCondition message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * A human readable message indicating details about the transition. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A human readable message indicating details about the transition.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1DeploymentCondition reason(String reason) { + public V1DeploymentCondition reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * The reason for the condition's last transition. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The reason for the condition's last transition.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } - public V1DeploymentCondition status(String status) { + public V1DeploymentCondition status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } - /** + /** * Status of the condition, one of True, False, Unknown. * @return status - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public V1DeploymentCondition type(String type) { + public V1DeploymentCondition type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * Type of deployment condition. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Type of deployment condition.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -269,12 +274,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1DeploymentCondition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1DeploymentCondition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeploymentCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -340,22 +345,22 @@ public V1DeploymentCondition read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1DeploymentCondition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1DeploymentCondition - * @throws IOException if the JSON string is invalid with respect to V1DeploymentCondition - */ + /** + * Create an instance of V1DeploymentCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DeploymentCondition + * @throws IOException if the JSON string is invalid with respect to V1DeploymentCondition + */ public static V1DeploymentCondition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1DeploymentCondition.class); } - /** - * Convert an instance of V1DeploymentCondition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1DeploymentCondition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java index 115885ce3b..8a0846f8dc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * DeploymentList is a list of Deployments. */ @ApiModel(description = "DeploymentList is a list of Deployments.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DeploymentList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1DeploymentList() { } - public V1DeploymentList apiVersion(String apiVersion) { + public V1DeploymentList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1DeploymentList items(List items) { + public V1DeploymentList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1DeploymentList addItemsItem(V1Deployment itemsItem) { return this; } - /** + /** * Items is the list of Deployments. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items is the list of Deployments.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1DeploymentList kind(String kind) { + public V1DeploymentList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1DeploymentList metadata(V1ListMeta metadata) { + public V1DeploymentList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1DeploymentList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1DeploymentList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeploymentList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1DeploymentList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1DeploymentList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1DeploymentList - * @throws IOException if the JSON string is invalid with respect to V1DeploymentList - */ + /** + * Create an instance of V1DeploymentList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DeploymentList + * @throws IOException if the JSON string is invalid with respect to V1DeploymentList + */ public static V1DeploymentList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1DeploymentList.class); } - /** - * Convert an instance of V1DeploymentList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1DeploymentList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java index 5a133dde39..c026574587 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,199 +53,207 @@ * DeploymentSpec is the specification of the desired behavior of the Deployment. */ @ApiModel(description = "DeploymentSpec is the specification of the desired behavior of the Deployment.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DeploymentSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) + @jakarta.annotation.Nullable private Integer minReadySeconds; public static final String SERIALIZED_NAME_PAUSED = "paused"; @SerializedName(SERIALIZED_NAME_PAUSED) + @jakarta.annotation.Nullable private Boolean paused; public static final String SERIALIZED_NAME_PROGRESS_DEADLINE_SECONDS = "progressDeadlineSeconds"; @SerializedName(SERIALIZED_NAME_PROGRESS_DEADLINE_SECONDS) + @jakarta.annotation.Nullable private Integer progressDeadlineSeconds; public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_REPLICAS) + @jakarta.annotation.Nullable private Integer replicas; public static final String SERIALIZED_NAME_REVISION_HISTORY_LIMIT = "revisionHistoryLimit"; @SerializedName(SERIALIZED_NAME_REVISION_HISTORY_LIMIT) + @jakarta.annotation.Nullable private Integer revisionHistoryLimit; public static final String SERIALIZED_NAME_SELECTOR = "selector"; @SerializedName(SERIALIZED_NAME_SELECTOR) + @jakarta.annotation.Nonnull private V1LabelSelector selector; public static final String SERIALIZED_NAME_STRATEGY = "strategy"; @SerializedName(SERIALIZED_NAME_STRATEGY) + @jakarta.annotation.Nullable private V1DeploymentStrategy strategy; public static final String SERIALIZED_NAME_TEMPLATE = "template"; @SerializedName(SERIALIZED_NAME_TEMPLATE) + @jakarta.annotation.Nonnull private V1PodTemplateSpec template; public V1DeploymentSpec() { } - public V1DeploymentSpec minReadySeconds(Integer minReadySeconds) { + public V1DeploymentSpec minReadySeconds(@jakarta.annotation.Nullable Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; return this; } - /** + /** * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) * @return minReadySeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)") public Integer getMinReadySeconds() { return minReadySeconds; } - public void setMinReadySeconds(Integer minReadySeconds) { + public void setMinReadySeconds(@jakarta.annotation.Nullable Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; } - public V1DeploymentSpec paused(Boolean paused) { + public V1DeploymentSpec paused(@jakarta.annotation.Nullable Boolean paused) { this.paused = paused; return this; } - /** + /** * Indicates that the deployment is paused. * @return paused - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Indicates that the deployment is paused.") public Boolean getPaused() { return paused; } - public void setPaused(Boolean paused) { + public void setPaused(@jakarta.annotation.Nullable Boolean paused) { this.paused = paused; } - public V1DeploymentSpec progressDeadlineSeconds(Integer progressDeadlineSeconds) { + public V1DeploymentSpec progressDeadlineSeconds(@jakarta.annotation.Nullable Integer progressDeadlineSeconds) { this.progressDeadlineSeconds = progressDeadlineSeconds; return this; } - /** + /** * The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. * @return progressDeadlineSeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.") public Integer getProgressDeadlineSeconds() { return progressDeadlineSeconds; } - public void setProgressDeadlineSeconds(Integer progressDeadlineSeconds) { + public void setProgressDeadlineSeconds(@jakarta.annotation.Nullable Integer progressDeadlineSeconds) { this.progressDeadlineSeconds = progressDeadlineSeconds; } - public V1DeploymentSpec replicas(Integer replicas) { + public V1DeploymentSpec replicas(@jakarta.annotation.Nullable Integer replicas) { this.replicas = replicas; return this; } - /** + /** * Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. * @return replicas - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.") public Integer getReplicas() { return replicas; } - public void setReplicas(Integer replicas) { + public void setReplicas(@jakarta.annotation.Nullable Integer replicas) { this.replicas = replicas; } - public V1DeploymentSpec revisionHistoryLimit(Integer revisionHistoryLimit) { + public V1DeploymentSpec revisionHistoryLimit(@jakarta.annotation.Nullable Integer revisionHistoryLimit) { this.revisionHistoryLimit = revisionHistoryLimit; return this; } - /** + /** * The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. * @return revisionHistoryLimit - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.") public Integer getRevisionHistoryLimit() { return revisionHistoryLimit; } - public void setRevisionHistoryLimit(Integer revisionHistoryLimit) { + public void setRevisionHistoryLimit(@jakarta.annotation.Nullable Integer revisionHistoryLimit) { this.revisionHistoryLimit = revisionHistoryLimit; } - public V1DeploymentSpec selector(V1LabelSelector selector) { + public V1DeploymentSpec selector(@jakarta.annotation.Nonnull V1LabelSelector selector) { this.selector = selector; return this; } - /** + /** * Get selector * @return selector - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1LabelSelector getSelector() { return selector; } - public void setSelector(V1LabelSelector selector) { + public void setSelector(@jakarta.annotation.Nonnull V1LabelSelector selector) { this.selector = selector; } - public V1DeploymentSpec strategy(V1DeploymentStrategy strategy) { + public V1DeploymentSpec strategy(@jakarta.annotation.Nullable V1DeploymentStrategy strategy) { this.strategy = strategy; return this; } - /** + /** * Get strategy * @return strategy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1DeploymentStrategy getStrategy() { return strategy; } - public void setStrategy(V1DeploymentStrategy strategy) { + public void setStrategy(@jakarta.annotation.Nullable V1DeploymentStrategy strategy) { this.strategy = strategy; } - public V1DeploymentSpec template(V1PodTemplateSpec template) { + public V1DeploymentSpec template(@jakarta.annotation.Nonnull V1PodTemplateSpec template) { this.template = template; return this; } - /** + /** * Get template * @return template - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1PodTemplateSpec getTemplate() { return template; } - public void setTemplate(V1PodTemplateSpec template) { + public void setTemplate(@jakarta.annotation.Nonnull V1PodTemplateSpec template) { this.template = template; } @@ -325,12 +332,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("template"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1DeploymentSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1DeploymentSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeploymentSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -392,22 +399,22 @@ public V1DeploymentSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1DeploymentSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1DeploymentSpec - * @throws IOException if the JSON string is invalid with respect to V1DeploymentSpec - */ + /** + * Create an instance of V1DeploymentSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DeploymentSpec + * @throws IOException if the JSON string is invalid with respect to V1DeploymentSpec + */ public static V1DeploymentSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1DeploymentSpec.class); } - /** - * Convert an instance of V1DeploymentSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1DeploymentSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java index 77da1b6b23..53bc3ccc49 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,84 +53,97 @@ * DeploymentStatus is the most recently observed status of the Deployment. */ @ApiModel(description = "DeploymentStatus is the most recently observed status of the Deployment.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DeploymentStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) + @jakarta.annotation.Nullable private Integer availableReplicas; public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; @SerializedName(SERIALIZED_NAME_COLLISION_COUNT) + @jakarta.annotation.Nullable private Integer collisionCount; public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + @jakarta.annotation.Nullable private Long observedGeneration; public static final String SERIALIZED_NAME_READY_REPLICAS = "readyReplicas"; @SerializedName(SERIALIZED_NAME_READY_REPLICAS) + @jakarta.annotation.Nullable private Integer readyReplicas; public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_REPLICAS) + @jakarta.annotation.Nullable private Integer replicas; + public static final String SERIALIZED_NAME_TERMINATING_REPLICAS = "terminatingReplicas"; + @SerializedName(SERIALIZED_NAME_TERMINATING_REPLICAS) + @jakarta.annotation.Nullable + private Integer terminatingReplicas; + public static final String SERIALIZED_NAME_UNAVAILABLE_REPLICAS = "unavailableReplicas"; @SerializedName(SERIALIZED_NAME_UNAVAILABLE_REPLICAS) + @jakarta.annotation.Nullable private Integer unavailableReplicas; public static final String SERIALIZED_NAME_UPDATED_REPLICAS = "updatedReplicas"; @SerializedName(SERIALIZED_NAME_UPDATED_REPLICAS) + @jakarta.annotation.Nullable private Integer updatedReplicas; public V1DeploymentStatus() { } - public V1DeploymentStatus availableReplicas(Integer availableReplicas) { + public V1DeploymentStatus availableReplicas(@jakarta.annotation.Nullable Integer availableReplicas) { this.availableReplicas = availableReplicas; return this; } - /** - * Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + /** + * Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment. * @return availableReplicas - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.") + @ApiModelProperty(value = "Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment.") public Integer getAvailableReplicas() { return availableReplicas; } - public void setAvailableReplicas(Integer availableReplicas) { + public void setAvailableReplicas(@jakarta.annotation.Nullable Integer availableReplicas) { this.availableReplicas = availableReplicas; } - public V1DeploymentStatus collisionCount(Integer collisionCount) { + public V1DeploymentStatus collisionCount(@jakarta.annotation.Nullable Integer collisionCount) { this.collisionCount = collisionCount; return this; } - /** + /** * Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. * @return collisionCount - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.") public Integer getCollisionCount() { return collisionCount; } - public void setCollisionCount(Integer collisionCount) { + public void setCollisionCount(@jakarta.annotation.Nullable Integer collisionCount) { this.collisionCount = collisionCount; } - public V1DeploymentStatus conditions(List conditions) { + public V1DeploymentStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } @@ -144,117 +156,137 @@ public V1DeploymentStatus addConditionsItem(V1DeploymentCondition conditionsItem return this; } - /** + /** * Represents the latest available observations of a deployment's current state. * @return conditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Represents the latest available observations of a deployment's current state.") public List getConditions() { return conditions; } - public void setConditions(List conditions) { + public void setConditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; } - public V1DeploymentStatus observedGeneration(Long observedGeneration) { + public V1DeploymentStatus observedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { this.observedGeneration = observedGeneration; return this; } - /** + /** * The generation observed by the deployment controller. * @return observedGeneration - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The generation observed by the deployment controller.") public Long getObservedGeneration() { return observedGeneration; } - public void setObservedGeneration(Long observedGeneration) { + public void setObservedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { this.observedGeneration = observedGeneration; } - public V1DeploymentStatus readyReplicas(Integer readyReplicas) { + public V1DeploymentStatus readyReplicas(@jakarta.annotation.Nullable Integer readyReplicas) { this.readyReplicas = readyReplicas; return this; } - /** - * readyReplicas is the number of pods targeted by this Deployment with a Ready Condition. + /** + * Total number of non-terminating pods targeted by this Deployment with a Ready Condition. * @return readyReplicas - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "readyReplicas is the number of pods targeted by this Deployment with a Ready Condition.") + @ApiModelProperty(value = "Total number of non-terminating pods targeted by this Deployment with a Ready Condition.") public Integer getReadyReplicas() { return readyReplicas; } - public void setReadyReplicas(Integer readyReplicas) { + public void setReadyReplicas(@jakarta.annotation.Nullable Integer readyReplicas) { this.readyReplicas = readyReplicas; } - public V1DeploymentStatus replicas(Integer replicas) { + public V1DeploymentStatus replicas(@jakarta.annotation.Nullable Integer replicas) { this.replicas = replicas; return this; } - /** - * Total number of non-terminated pods targeted by this deployment (their labels match the selector). + /** + * Total number of non-terminating pods targeted by this deployment (their labels match the selector). * @return replicas - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Total number of non-terminated pods targeted by this deployment (their labels match the selector).") + @ApiModelProperty(value = "Total number of non-terminating pods targeted by this deployment (their labels match the selector).") public Integer getReplicas() { return replicas; } - public void setReplicas(Integer replicas) { + public void setReplicas(@jakarta.annotation.Nullable Integer replicas) { this.replicas = replicas; } - public V1DeploymentStatus unavailableReplicas(Integer unavailableReplicas) { + public V1DeploymentStatus terminatingReplicas(@jakarta.annotation.Nullable Integer terminatingReplicas) { + this.terminatingReplicas = terminatingReplicas; + return this; + } + + /** + * Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase. This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field. + * @return terminatingReplicas + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase. This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.") + public Integer getTerminatingReplicas() { + return terminatingReplicas; + } + + public void setTerminatingReplicas(@jakarta.annotation.Nullable Integer terminatingReplicas) { + this.terminatingReplicas = terminatingReplicas; + } + + + public V1DeploymentStatus unavailableReplicas(@jakarta.annotation.Nullable Integer unavailableReplicas) { this.unavailableReplicas = unavailableReplicas; return this; } - /** + /** * Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. * @return unavailableReplicas - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.") public Integer getUnavailableReplicas() { return unavailableReplicas; } - public void setUnavailableReplicas(Integer unavailableReplicas) { + public void setUnavailableReplicas(@jakarta.annotation.Nullable Integer unavailableReplicas) { this.unavailableReplicas = unavailableReplicas; } - public V1DeploymentStatus updatedReplicas(Integer updatedReplicas) { + public V1DeploymentStatus updatedReplicas(@jakarta.annotation.Nullable Integer updatedReplicas) { this.updatedReplicas = updatedReplicas; return this; } - /** - * Total number of non-terminated pods targeted by this deployment that have the desired template spec. + /** + * Total number of non-terminating pods targeted by this deployment that have the desired template spec. * @return updatedReplicas - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Total number of non-terminated pods targeted by this deployment that have the desired template spec.") + @ApiModelProperty(value = "Total number of non-terminating pods targeted by this deployment that have the desired template spec.") public Integer getUpdatedReplicas() { return updatedReplicas; } - public void setUpdatedReplicas(Integer updatedReplicas) { + public void setUpdatedReplicas(@jakarta.annotation.Nullable Integer updatedReplicas) { this.updatedReplicas = updatedReplicas; } @@ -275,13 +307,14 @@ public boolean equals(Object o) { Objects.equals(this.observedGeneration, v1DeploymentStatus.observedGeneration) && Objects.equals(this.readyReplicas, v1DeploymentStatus.readyReplicas) && Objects.equals(this.replicas, v1DeploymentStatus.replicas) && + Objects.equals(this.terminatingReplicas, v1DeploymentStatus.terminatingReplicas) && Objects.equals(this.unavailableReplicas, v1DeploymentStatus.unavailableReplicas) && Objects.equals(this.updatedReplicas, v1DeploymentStatus.updatedReplicas); } @Override public int hashCode() { - return Objects.hash(availableReplicas, collisionCount, conditions, observedGeneration, readyReplicas, replicas, unavailableReplicas, updatedReplicas); + return Objects.hash(availableReplicas, collisionCount, conditions, observedGeneration, readyReplicas, replicas, terminatingReplicas, unavailableReplicas, updatedReplicas); } @Override @@ -294,6 +327,7 @@ public String toString() { sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).append("\n"); sb.append(" readyReplicas: ").append(toIndentedString(readyReplicas)).append("\n"); sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n"); + sb.append(" terminatingReplicas: ").append(toIndentedString(terminatingReplicas)).append("\n"); sb.append(" unavailableReplicas: ").append(toIndentedString(unavailableReplicas)).append("\n"); sb.append(" updatedReplicas: ").append(toIndentedString(updatedReplicas)).append("\n"); sb.append("}"); @@ -324,6 +358,7 @@ private String toIndentedString(Object o) { openapiFields.add("observedGeneration"); openapiFields.add("readyReplicas"); openapiFields.add("replicas"); + openapiFields.add("terminatingReplicas"); openapiFields.add("unavailableReplicas"); openapiFields.add("updatedReplicas"); @@ -331,12 +366,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1DeploymentStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1DeploymentStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeploymentStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -397,22 +432,22 @@ public V1DeploymentStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1DeploymentStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1DeploymentStatus - * @throws IOException if the JSON string is invalid with respect to V1DeploymentStatus - */ + /** + * Create an instance of V1DeploymentStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DeploymentStatus + * @throws IOException if the JSON string is invalid with respect to V1DeploymentStatus + */ public static V1DeploymentStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1DeploymentStatus.class); } - /** - * Convert an instance of V1DeploymentStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1DeploymentStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java index f561b21f0d..fe6cf14e64 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * DeploymentStrategy describes how to replace existing pods with new ones. */ @ApiModel(description = "DeploymentStrategy describes how to replace existing pods with new ones.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DeploymentStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) + @jakarta.annotation.Nullable private V1RollingUpdateDeployment rollingUpdate; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nullable private String type; public V1DeploymentStrategy() { } - public V1DeploymentStrategy rollingUpdate(V1RollingUpdateDeployment rollingUpdate) { + public V1DeploymentStrategy rollingUpdate(@jakarta.annotation.Nullable V1RollingUpdateDeployment rollingUpdate) { this.rollingUpdate = rollingUpdate; return this; } - /** + /** * Get rollingUpdate * @return rollingUpdate - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1RollingUpdateDeployment getRollingUpdate() { return rollingUpdate; } - public void setRollingUpdate(V1RollingUpdateDeployment rollingUpdate) { + public void setRollingUpdate(@jakarta.annotation.Nullable V1RollingUpdateDeployment rollingUpdate) { this.rollingUpdate = rollingUpdate; } - public V1DeploymentStrategy type(String type) { + public V1DeploymentStrategy type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } - /** + /** * Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. * @return type - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1DeploymentStrategy - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1DeploymentStrategy + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeploymentStrategy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -218,22 +219,22 @@ public V1DeploymentStrategy read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1DeploymentStrategy given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1DeploymentStrategy - * @throws IOException if the JSON string is invalid with respect to V1DeploymentStrategy - */ + /** + * Create an instance of V1DeploymentStrategy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DeploymentStrategy + * @throws IOException if the JSON string is invalid with respect to V1DeploymentStrategy + */ public static V1DeploymentStrategy fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1DeploymentStrategy.class); } - /** - * Convert an instance of V1DeploymentStrategy to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1DeploymentStrategy to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java index e1b21e9741..9cb392f536 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,16 +53,17 @@ * Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode. */ @ApiModel(description = "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DownwardAPIProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nullable private List items = new ArrayList<>(); public V1DownwardAPIProjection() { } - public V1DownwardAPIProjection items(List items) { + public V1DownwardAPIProjection items(@jakarta.annotation.Nullable List items) { this.items = items; return this; } @@ -76,17 +76,17 @@ public V1DownwardAPIProjection addItemsItem(V1DownwardAPIVolumeFile itemsItem) { return this; } - /** + /** * Items is a list of DownwardAPIVolume file * @return items - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Items is a list of DownwardAPIVolume file") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nullable List items) { this.items = items; } @@ -142,12 +142,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1DownwardAPIProjection - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1DownwardAPIProjection + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DownwardAPIProjection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -208,22 +208,22 @@ public V1DownwardAPIProjection read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1DownwardAPIProjection given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1DownwardAPIProjection - * @throws IOException if the JSON string is invalid with respect to V1DownwardAPIProjection - */ + /** + * Create an instance of V1DownwardAPIProjection given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DownwardAPIProjection + * @throws IOException if the JSON string is invalid with respect to V1DownwardAPIProjection + */ public static V1DownwardAPIProjection fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1DownwardAPIProjection.class); } - /** - * Convert an instance of V1DownwardAPIProjection to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1DownwardAPIProjection to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java index 5fd13ac5ee..816c77a2be 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,103 +52,107 @@ * DownwardAPIVolumeFile represents information to create the file containing the pod field */ @ApiModel(description = "DownwardAPIVolumeFile represents information to create the file containing the pod field") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DownwardAPIVolumeFile { public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; @SerializedName(SERIALIZED_NAME_FIELD_REF) + @jakarta.annotation.Nullable private V1ObjectFieldSelector fieldRef; public static final String SERIALIZED_NAME_MODE = "mode"; @SerializedName(SERIALIZED_NAME_MODE) + @jakarta.annotation.Nullable private Integer mode; public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) + @jakarta.annotation.Nonnull private String path; public static final String SERIALIZED_NAME_RESOURCE_FIELD_REF = "resourceFieldRef"; @SerializedName(SERIALIZED_NAME_RESOURCE_FIELD_REF) + @jakarta.annotation.Nullable private V1ResourceFieldSelector resourceFieldRef; public V1DownwardAPIVolumeFile() { } - public V1DownwardAPIVolumeFile fieldRef(V1ObjectFieldSelector fieldRef) { + public V1DownwardAPIVolumeFile fieldRef(@jakarta.annotation.Nullable V1ObjectFieldSelector fieldRef) { this.fieldRef = fieldRef; return this; } - /** + /** * Get fieldRef * @return fieldRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectFieldSelector getFieldRef() { return fieldRef; } - public void setFieldRef(V1ObjectFieldSelector fieldRef) { + public void setFieldRef(@jakarta.annotation.Nullable V1ObjectFieldSelector fieldRef) { this.fieldRef = fieldRef; } - public V1DownwardAPIVolumeFile mode(Integer mode) { + public V1DownwardAPIVolumeFile mode(@jakarta.annotation.Nullable Integer mode) { this.mode = mode; return this; } - /** + /** * Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. * @return mode - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") public Integer getMode() { return mode; } - public void setMode(Integer mode) { + public void setMode(@jakarta.annotation.Nullable Integer mode) { this.mode = mode; } - public V1DownwardAPIVolumeFile path(String path) { + public V1DownwardAPIVolumeFile path(@jakarta.annotation.Nonnull String path) { this.path = path; return this; } - /** + /** * Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' * @return path - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'") public String getPath() { return path; } - public void setPath(String path) { + public void setPath(@jakarta.annotation.Nonnull String path) { this.path = path; } - public V1DownwardAPIVolumeFile resourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { + public V1DownwardAPIVolumeFile resourceFieldRef(@jakarta.annotation.Nullable V1ResourceFieldSelector resourceFieldRef) { this.resourceFieldRef = resourceFieldRef; return this; } - /** + /** * Get resourceFieldRef * @return resourceFieldRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ResourceFieldSelector getResourceFieldRef() { return resourceFieldRef; } - public void setResourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { + public void setResourceFieldRef(@jakarta.annotation.Nullable V1ResourceFieldSelector resourceFieldRef) { this.resourceFieldRef = resourceFieldRef; } @@ -215,12 +218,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("path"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1DownwardAPIVolumeFile - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1DownwardAPIVolumeFile + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DownwardAPIVolumeFile.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -285,22 +288,22 @@ public V1DownwardAPIVolumeFile read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1DownwardAPIVolumeFile given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1DownwardAPIVolumeFile - * @throws IOException if the JSON string is invalid with respect to V1DownwardAPIVolumeFile - */ + /** + * Create an instance of V1DownwardAPIVolumeFile given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DownwardAPIVolumeFile + * @throws IOException if the JSON string is invalid with respect to V1DownwardAPIVolumeFile + */ public static V1DownwardAPIVolumeFile fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1DownwardAPIVolumeFile.class); } - /** - * Convert an instance of V1DownwardAPIVolumeFile to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1DownwardAPIVolumeFile to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java index d2eb27933b..840fccf52a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,40 +53,42 @@ * DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DownwardAPIVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) + @jakarta.annotation.Nullable private Integer defaultMode; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nullable private List items = new ArrayList<>(); public V1DownwardAPIVolumeSource() { } - public V1DownwardAPIVolumeSource defaultMode(Integer defaultMode) { + public V1DownwardAPIVolumeSource defaultMode(@jakarta.annotation.Nullable Integer defaultMode) { this.defaultMode = defaultMode; return this; } - /** + /** * Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. * @return defaultMode - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") public Integer getDefaultMode() { return defaultMode; } - public void setDefaultMode(Integer defaultMode) { + public void setDefaultMode(@jakarta.annotation.Nullable Integer defaultMode) { this.defaultMode = defaultMode; } - public V1DownwardAPIVolumeSource items(List items) { + public V1DownwardAPIVolumeSource items(@jakarta.annotation.Nullable List items) { this.items = items; return this; } @@ -100,17 +101,17 @@ public V1DownwardAPIVolumeSource addItemsItem(V1DownwardAPIVolumeFile itemsItem) return this; } - /** + /** * Items is a list of downward API volume file * @return items - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Items is a list of downward API volume file") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nullable List items) { this.items = items; } @@ -169,12 +170,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1DownwardAPIVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1DownwardAPIVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DownwardAPIVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -235,22 +236,22 @@ public V1DownwardAPIVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1DownwardAPIVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1DownwardAPIVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1DownwardAPIVolumeSource - */ + /** + * Create an instance of V1DownwardAPIVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DownwardAPIVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1DownwardAPIVolumeSource + */ public static V1DownwardAPIVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1DownwardAPIVolumeSource.class); } - /** - * Convert an instance of V1DownwardAPIVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1DownwardAPIVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSource.java index 116ebc509a..d202c21080 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSource.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EmptyDirVolumeSource { public static final String SERIALIZED_NAME_MEDIUM = "medium"; @SerializedName(SERIALIZED_NAME_MEDIUM) + @jakarta.annotation.Nullable private String medium; public static final String SERIALIZED_NAME_SIZE_LIMIT = "sizeLimit"; @SerializedName(SERIALIZED_NAME_SIZE_LIMIT) + @jakarta.annotation.Nullable private Quantity sizeLimit; public V1EmptyDirVolumeSource() { } - public V1EmptyDirVolumeSource medium(String medium) { + public V1EmptyDirVolumeSource medium(@jakarta.annotation.Nullable String medium) { this.medium = medium; return this; } - /** + /** * medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir * @return medium - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir") public String getMedium() { return medium; } - public void setMedium(String medium) { + public void setMedium(@jakarta.annotation.Nullable String medium) { this.medium = medium; } - public V1EmptyDirVolumeSource sizeLimit(Quantity sizeLimit) { + public V1EmptyDirVolumeSource sizeLimit(@jakarta.annotation.Nullable Quantity sizeLimit) { this.sizeLimit = sizeLimit; return this; } - /** + /** * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return sizeLimit - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") public Quantity getSizeLimit() { return sizeLimit; } - public void setSizeLimit(Quantity sizeLimit) { + public void setSizeLimit(@jakarta.annotation.Nullable Quantity sizeLimit) { this.sizeLimit = sizeLimit; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1EmptyDirVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1EmptyDirVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EmptyDirVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -217,22 +218,22 @@ public V1EmptyDirVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1EmptyDirVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1EmptyDirVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1EmptyDirVolumeSource - */ + /** + * Create an instance of V1EmptyDirVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EmptyDirVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1EmptyDirVolumeSource + */ public static V1EmptyDirVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1EmptyDirVolumeSource.class); } - /** - * Convert an instance of V1EmptyDirVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1EmptyDirVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoint.java index eb0a1b4b8f..0a2ec3e37f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoint.java @@ -45,7 +45,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -58,44 +57,52 @@ * Endpoint represents a single logical \"backend\" implementing a service. */ @ApiModel(description = "Endpoint represents a single logical \"backend\" implementing a service.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Endpoint { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) + @jakarta.annotation.Nonnull private List addresses = new ArrayList<>(); public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private V1EndpointConditions conditions; public static final String SERIALIZED_NAME_DEPRECATED_TOPOLOGY = "deprecatedTopology"; @SerializedName(SERIALIZED_NAME_DEPRECATED_TOPOLOGY) + @jakarta.annotation.Nullable private Map deprecatedTopology = new HashMap<>(); public static final String SERIALIZED_NAME_HINTS = "hints"; @SerializedName(SERIALIZED_NAME_HINTS) + @jakarta.annotation.Nullable private V1EndpointHints hints; public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) + @jakarta.annotation.Nullable private String hostname; public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; @SerializedName(SERIALIZED_NAME_NODE_NAME) + @jakarta.annotation.Nullable private String nodeName; public static final String SERIALIZED_NAME_TARGET_REF = "targetRef"; @SerializedName(SERIALIZED_NAME_TARGET_REF) + @jakarta.annotation.Nullable private V1ObjectReference targetRef; public static final String SERIALIZED_NAME_ZONE = "zone"; @SerializedName(SERIALIZED_NAME_ZONE) + @jakarta.annotation.Nullable private String zone; public V1Endpoint() { } - public V1Endpoint addresses(List addresses) { + public V1Endpoint addresses(@jakarta.annotation.Nonnull List addresses) { this.addresses = addresses; return this; } @@ -108,42 +115,42 @@ public V1Endpoint addAddressesItem(String addressesItem) { return this; } - /** - * addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267 + /** + * addresses of this endpoint. For EndpointSlices of addressType \"IPv4\" or \"IPv6\", the values are IP addresses in canonical form. The syntax and semantics of other addressType values are not defined. This must contain at least one address but no more than 100. EndpointSlices generated by the EndpointSlice controller will always have exactly 1 address. No semantics are defined for additional addresses beyond the first, and kube-proxy does not look at them. * @return addresses - **/ + */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267") + @ApiModelProperty(required = true, value = "addresses of this endpoint. For EndpointSlices of addressType \"IPv4\" or \"IPv6\", the values are IP addresses in canonical form. The syntax and semantics of other addressType values are not defined. This must contain at least one address but no more than 100. EndpointSlices generated by the EndpointSlice controller will always have exactly 1 address. No semantics are defined for additional addresses beyond the first, and kube-proxy does not look at them.") public List getAddresses() { return addresses; } - public void setAddresses(List addresses) { + public void setAddresses(@jakarta.annotation.Nonnull List addresses) { this.addresses = addresses; } - public V1Endpoint conditions(V1EndpointConditions conditions) { + public V1Endpoint conditions(@jakarta.annotation.Nullable V1EndpointConditions conditions) { this.conditions = conditions; return this; } - /** + /** * Get conditions * @return conditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1EndpointConditions getConditions() { return conditions; } - public void setConditions(V1EndpointConditions conditions) { + public void setConditions(@jakarta.annotation.Nullable V1EndpointConditions conditions) { this.conditions = conditions; } - public V1Endpoint deprecatedTopology(Map deprecatedTopology) { + public V1Endpoint deprecatedTopology(@jakarta.annotation.Nullable Map deprecatedTopology) { this.deprecatedTopology = deprecatedTopology; return this; } @@ -156,117 +163,117 @@ public V1Endpoint putDeprecatedTopologyItem(String key, String deprecatedTopolog return this; } - /** + /** * deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead. * @return deprecatedTopology - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead.") public Map getDeprecatedTopology() { return deprecatedTopology; } - public void setDeprecatedTopology(Map deprecatedTopology) { + public void setDeprecatedTopology(@jakarta.annotation.Nullable Map deprecatedTopology) { this.deprecatedTopology = deprecatedTopology; } - public V1Endpoint hints(V1EndpointHints hints) { + public V1Endpoint hints(@jakarta.annotation.Nullable V1EndpointHints hints) { this.hints = hints; return this; } - /** + /** * Get hints * @return hints - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1EndpointHints getHints() { return hints; } - public void setHints(V1EndpointHints hints) { + public void setHints(@jakarta.annotation.Nullable V1EndpointHints hints) { this.hints = hints; } - public V1Endpoint hostname(String hostname) { + public V1Endpoint hostname(@jakarta.annotation.Nullable String hostname) { this.hostname = hostname; return this; } - /** + /** * hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. * @return hostname - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation.") public String getHostname() { return hostname; } - public void setHostname(String hostname) { + public void setHostname(@jakarta.annotation.Nullable String hostname) { this.hostname = hostname; } - public V1Endpoint nodeName(String nodeName) { + public V1Endpoint nodeName(@jakarta.annotation.Nullable String nodeName) { this.nodeName = nodeName; return this; } - /** + /** * nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. * @return nodeName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node.") public String getNodeName() { return nodeName; } - public void setNodeName(String nodeName) { + public void setNodeName(@jakarta.annotation.Nullable String nodeName) { this.nodeName = nodeName; } - public V1Endpoint targetRef(V1ObjectReference targetRef) { + public V1Endpoint targetRef(@jakarta.annotation.Nullable V1ObjectReference targetRef) { this.targetRef = targetRef; return this; } - /** + /** * Get targetRef * @return targetRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectReference getTargetRef() { return targetRef; } - public void setTargetRef(V1ObjectReference targetRef) { + public void setTargetRef(@jakarta.annotation.Nullable V1ObjectReference targetRef) { this.targetRef = targetRef; } - public V1Endpoint zone(String zone) { + public V1Endpoint zone(@jakarta.annotation.Nullable String zone) { this.zone = zone; return this; } - /** + /** * zone is the name of the Zone this endpoint exists in. * @return zone - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "zone is the name of the Zone this endpoint exists in.") public String getZone() { return zone; } - public void setZone(String zone) { + public void setZone(@jakarta.annotation.Nullable String zone) { this.zone = zone; } @@ -344,12 +351,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("addresses"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Endpoint - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Endpoint + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Endpoint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -430,22 +437,22 @@ public V1Endpoint read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Endpoint given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Endpoint - * @throws IOException if the JSON string is invalid with respect to V1Endpoint - */ + /** + * Create an instance of V1Endpoint given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Endpoint + * @throws IOException if the JSON string is invalid with respect to V1Endpoint + */ public static V1Endpoint fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Endpoint.class); } - /** - * Convert an instance of V1Endpoint to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Endpoint to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddress.java index e26017f764..029a7e9338 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddress.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,106 +48,110 @@ import io.kubernetes.client.openapi.JSON; /** - * EndpointAddress is a tuple that describes single IP address. + * EndpointAddress is a tuple that describes single IP address. Deprecated: This API is deprecated in v1.33+. */ -@ApiModel(description = "EndpointAddress is a tuple that describes single IP address.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "EndpointAddress is a tuple that describes single IP address. Deprecated: This API is deprecated in v1.33+.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EndpointAddress { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) + @jakarta.annotation.Nullable private String hostname; public static final String SERIALIZED_NAME_IP = "ip"; @SerializedName(SERIALIZED_NAME_IP) + @jakarta.annotation.Nonnull private String ip; public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; @SerializedName(SERIALIZED_NAME_NODE_NAME) + @jakarta.annotation.Nullable private String nodeName; public static final String SERIALIZED_NAME_TARGET_REF = "targetRef"; @SerializedName(SERIALIZED_NAME_TARGET_REF) + @jakarta.annotation.Nullable private V1ObjectReference targetRef; public V1EndpointAddress() { } - public V1EndpointAddress hostname(String hostname) { + public V1EndpointAddress hostname(@jakarta.annotation.Nullable String hostname) { this.hostname = hostname; return this; } - /** + /** * The Hostname of this endpoint * @return hostname - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The Hostname of this endpoint") public String getHostname() { return hostname; } - public void setHostname(String hostname) { + public void setHostname(@jakarta.annotation.Nullable String hostname) { this.hostname = hostname; } - public V1EndpointAddress ip(String ip) { + public V1EndpointAddress ip(@jakarta.annotation.Nonnull String ip) { this.ip = ip; return this; } - /** + /** * The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16). * @return ip - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16).") public String getIp() { return ip; } - public void setIp(String ip) { + public void setIp(@jakarta.annotation.Nonnull String ip) { this.ip = ip; } - public V1EndpointAddress nodeName(String nodeName) { + public V1EndpointAddress nodeName(@jakarta.annotation.Nullable String nodeName) { this.nodeName = nodeName; return this; } - /** + /** * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. * @return nodeName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.") public String getNodeName() { return nodeName; } - public void setNodeName(String nodeName) { + public void setNodeName(@jakarta.annotation.Nullable String nodeName) { this.nodeName = nodeName; } - public V1EndpointAddress targetRef(V1ObjectReference targetRef) { + public V1EndpointAddress targetRef(@jakarta.annotation.Nullable V1ObjectReference targetRef) { this.targetRef = targetRef; return this; } - /** + /** * Get targetRef * @return targetRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectReference getTargetRef() { return targetRef; } - public void setTargetRef(V1ObjectReference targetRef) { + public void setTargetRef(@jakarta.annotation.Nullable V1ObjectReference targetRef) { this.targetRef = targetRef; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("ip"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1EndpointAddress - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1EndpointAddress + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EndpointAddress.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -286,22 +289,22 @@ public V1EndpointAddress read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1EndpointAddress given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1EndpointAddress - * @throws IOException if the JSON string is invalid with respect to V1EndpointAddress - */ + /** + * Create an instance of V1EndpointAddress given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EndpointAddress + * @throws IOException if the JSON string is invalid with respect to V1EndpointAddress + */ public static V1EndpointAddress fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1EndpointAddress.class); } - /** - * Convert an instance of V1EndpointAddress to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1EndpointAddress to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditions.java index f6d5c21a6d..e75954d463 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditions.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,79 +50,82 @@ * EndpointConditions represents the current condition of an endpoint. */ @ApiModel(description = "EndpointConditions represents the current condition of an endpoint.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EndpointConditions { public static final String SERIALIZED_NAME_READY = "ready"; @SerializedName(SERIALIZED_NAME_READY) + @jakarta.annotation.Nullable private Boolean ready; public static final String SERIALIZED_NAME_SERVING = "serving"; @SerializedName(SERIALIZED_NAME_SERVING) + @jakarta.annotation.Nullable private Boolean serving; public static final String SERIALIZED_NAME_TERMINATING = "terminating"; @SerializedName(SERIALIZED_NAME_TERMINATING) + @jakarta.annotation.Nullable private Boolean terminating; public V1EndpointConditions() { } - public V1EndpointConditions ready(Boolean ready) { + public V1EndpointConditions ready(@jakarta.annotation.Nullable Boolean ready) { this.ready = ready; return this; } - /** - * ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be \"true\" for terminating endpoints, except when the normal readiness behavior is being explicitly overridden, for example when the associated Service has set the publishNotReadyAddresses flag. + /** + * ready indicates that this endpoint is ready to receive traffic, according to whatever system is managing the endpoint. A nil value should be interpreted as \"true\". In general, an endpoint should be marked ready if it is serving and not terminating, though this can be overridden in some cases, such as when the associated Service has set the publishNotReadyAddresses flag. * @return ready - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be \"true\" for terminating endpoints, except when the normal readiness behavior is being explicitly overridden, for example when the associated Service has set the publishNotReadyAddresses flag.") + @ApiModelProperty(value = "ready indicates that this endpoint is ready to receive traffic, according to whatever system is managing the endpoint. A nil value should be interpreted as \"true\". In general, an endpoint should be marked ready if it is serving and not terminating, though this can be overridden in some cases, such as when the associated Service has set the publishNotReadyAddresses flag.") public Boolean getReady() { return ready; } - public void setReady(Boolean ready) { + public void setReady(@jakarta.annotation.Nullable Boolean ready) { this.ready = ready; } - public V1EndpointConditions serving(Boolean serving) { + public V1EndpointConditions serving(@jakarta.annotation.Nullable Boolean serving) { this.serving = serving; return this; } - /** - * serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. + /** + * serving indicates that this endpoint is able to receive traffic, according to whatever system is managing the endpoint. For endpoints backed by pods, the EndpointSlice controller will mark the endpoint as serving if the pod's Ready condition is True. A nil value should be interpreted as \"true\". * @return serving - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.") + @ApiModelProperty(value = "serving indicates that this endpoint is able to receive traffic, according to whatever system is managing the endpoint. For endpoints backed by pods, the EndpointSlice controller will mark the endpoint as serving if the pod's Ready condition is True. A nil value should be interpreted as \"true\".") public Boolean getServing() { return serving; } - public void setServing(Boolean serving) { + public void setServing(@jakarta.annotation.Nullable Boolean serving) { this.serving = serving; } - public V1EndpointConditions terminating(Boolean terminating) { + public V1EndpointConditions terminating(@jakarta.annotation.Nullable Boolean terminating) { this.terminating = terminating; return this; } - /** - * terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. + /** + * terminating indicates that this endpoint is terminating. A nil value should be interpreted as \"false\". * @return terminating - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.") + @ApiModelProperty(value = "terminating indicates that this endpoint is terminating. A nil value should be interpreted as \"false\".") public Boolean getTerminating() { return terminating; } - public void setTerminating(Boolean terminating) { + public void setTerminating(@jakarta.annotation.Nullable Boolean terminating) { this.terminating = terminating; } @@ -185,12 +187,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1EndpointConditions - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1EndpointConditions + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EndpointConditions.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -237,22 +239,22 @@ public V1EndpointConditions read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1EndpointConditions given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1EndpointConditions - * @throws IOException if the JSON string is invalid with respect to V1EndpointConditions - */ + /** + * Create an instance of V1EndpointConditions given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EndpointConditions + * @throws IOException if the JSON string is invalid with respect to V1EndpointConditions + */ public static V1EndpointConditions fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1EndpointConditions.class); } - /** - * Convert an instance of V1EndpointConditions to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1EndpointConditions to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHints.java index 1c2ec82a93..ea1ebdb85a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHints.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHints.java @@ -18,6 +18,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ForNode; import io.kubernetes.client.openapi.models.V1ForZone; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -41,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,16 +54,50 @@ * EndpointHints provides hints describing how an endpoint should be consumed. */ @ApiModel(description = "EndpointHints provides hints describing how an endpoint should be consumed.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EndpointHints { + public static final String SERIALIZED_NAME_FOR_NODES = "forNodes"; + @SerializedName(SERIALIZED_NAME_FOR_NODES) + @jakarta.annotation.Nullable + private List forNodes = new ArrayList<>(); + public static final String SERIALIZED_NAME_FOR_ZONES = "forZones"; @SerializedName(SERIALIZED_NAME_FOR_ZONES) + @jakarta.annotation.Nullable private List forZones = new ArrayList<>(); public V1EndpointHints() { } - public V1EndpointHints forZones(List forZones) { + public V1EndpointHints forNodes(@jakarta.annotation.Nullable List forNodes) { + this.forNodes = forNodes; + return this; + } + + public V1EndpointHints addForNodesItem(V1ForNode forNodesItem) { + if (this.forNodes == null) { + this.forNodes = new ArrayList<>(); + } + this.forNodes.add(forNodesItem); + return this; + } + + /** + * forNodes indicates the node(s) this endpoint should be consumed by when using topology aware routing. May contain a maximum of 8 entries. This is an Alpha feature and is only used when the PreferSameTrafficDistribution feature gate is enabled. + * @return forNodes + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "forNodes indicates the node(s) this endpoint should be consumed by when using topology aware routing. May contain a maximum of 8 entries. This is an Alpha feature and is only used when the PreferSameTrafficDistribution feature gate is enabled.") + public List getForNodes() { + return forNodes; + } + + public void setForNodes(@jakarta.annotation.Nullable List forNodes) { + this.forNodes = forNodes; + } + + + public V1EndpointHints forZones(@jakarta.annotation.Nullable List forZones) { this.forZones = forZones; return this; } @@ -76,17 +110,17 @@ public V1EndpointHints addForZonesItem(V1ForZone forZonesItem) { return this; } - /** - * forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. + /** + * forZones indicates the zone(s) this endpoint should be consumed by when using topology aware routing. May contain a maximum of 8 entries. * @return forZones - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.") + @ApiModelProperty(value = "forZones indicates the zone(s) this endpoint should be consumed by when using topology aware routing. May contain a maximum of 8 entries.") public List getForZones() { return forZones; } - public void setForZones(List forZones) { + public void setForZones(@jakarta.annotation.Nullable List forZones) { this.forZones = forZones; } @@ -101,18 +135,20 @@ public boolean equals(Object o) { return false; } V1EndpointHints v1EndpointHints = (V1EndpointHints) o; - return Objects.equals(this.forZones, v1EndpointHints.forZones); + return Objects.equals(this.forNodes, v1EndpointHints.forNodes) && + Objects.equals(this.forZones, v1EndpointHints.forZones); } @Override public int hashCode() { - return Objects.hash(forZones); + return Objects.hash(forNodes, forZones); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1EndpointHints {\n"); + sb.append(" forNodes: ").append(toIndentedString(forNodes)).append("\n"); sb.append(" forZones: ").append(toIndentedString(forZones)).append("\n"); sb.append("}"); return sb.toString(); @@ -136,18 +172,19 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); + openapiFields.add("forNodes"); openapiFields.add("forZones"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1EndpointHints - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1EndpointHints + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EndpointHints.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -163,6 +200,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("forNodes") != null && !jsonObj.get("forNodes").isJsonNull()) { + JsonArray jsonArrayforNodes = jsonObj.getAsJsonArray("forNodes"); + if (jsonArrayforNodes != null) { + // ensure the json data is an array + if (!jsonObj.get("forNodes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `forNodes` to be an array in the JSON string but got `%s`", jsonObj.get("forNodes").toString())); + } + + // validate the optional field `forNodes` (array) + for (int i = 0; i < jsonArrayforNodes.size(); i++) { + V1ForNode.validateJsonElement(jsonArrayforNodes.get(i)); + }; + } + } if (jsonObj.get("forZones") != null && !jsonObj.get("forZones").isJsonNull()) { JsonArray jsonArrayforZones = jsonObj.getAsJsonArray("forZones"); if (jsonArrayforZones != null) { @@ -208,22 +259,22 @@ public V1EndpointHints read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1EndpointHints given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1EndpointHints - * @throws IOException if the JSON string is invalid with respect to V1EndpointHints - */ + /** + * Create an instance of V1EndpointHints given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EndpointHints + * @throws IOException if the JSON string is invalid with respect to V1EndpointHints + */ public static V1EndpointHints fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1EndpointHints.class); } - /** - * Convert an instance of V1EndpointHints to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1EndpointHints to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSlice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSlice.java index 55fc603892..238295685c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSlice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSlice.java @@ -43,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,79 +52,85 @@ import io.kubernetes.client.openapi.JSON; /** - * EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. + * EndpointSlice represents a set of service endpoints. Most EndpointSlices are created by the EndpointSlice controller to represent the Pods selected by Service objects. For a given service there may be multiple EndpointSlice objects which must be joined to produce the full set of endpoints; you can find all of the slices for a given service by listing EndpointSlices in the service's namespace whose `kubernetes.io/service-name` label contains the service's name. */ -@ApiModel(description = "EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "EndpointSlice represents a set of service endpoints. Most EndpointSlices are created by the EndpointSlice controller to represent the Pods selected by Service objects. For a given service there may be multiple EndpointSlice objects which must be joined to produce the full set of endpoints; you can find all of the slices for a given service by listing EndpointSlices in the service's namespace whose `kubernetes.io/service-name` label contains the service's name.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EndpointSlice implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ADDRESS_TYPE = "addressType"; @SerializedName(SERIALIZED_NAME_ADDRESS_TYPE) + @jakarta.annotation.Nonnull private String addressType; public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; @SerializedName(SERIALIZED_NAME_ENDPOINTS) + @jakarta.annotation.Nonnull private List endpoints = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) + @jakarta.annotation.Nullable private List ports = new ArrayList<>(); public V1EndpointSlice() { } - public V1EndpointSlice addressType(String addressType) { + public V1EndpointSlice addressType(@jakarta.annotation.Nonnull String addressType) { this.addressType = addressType; return this; } - /** - * addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. + /** + * addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. (Deprecated) The EndpointSlice controller only generates, and kube-proxy only processes, slices of addressType \"IPv4\" and \"IPv6\". No semantics are defined for the \"FQDN\" type. * @return addressType - **/ + */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.") + @ApiModelProperty(required = true, value = "addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. (Deprecated) The EndpointSlice controller only generates, and kube-proxy only processes, slices of addressType \"IPv4\" and \"IPv6\". No semantics are defined for the \"FQDN\" type.") public String getAddressType() { return addressType; } - public void setAddressType(String addressType) { + public void setAddressType(@jakarta.annotation.Nonnull String addressType) { this.addressType = addressType; } - public V1EndpointSlice apiVersion(String apiVersion) { + public V1EndpointSlice apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1EndpointSlice endpoints(List endpoints) { + public V1EndpointSlice endpoints(@jakarta.annotation.Nonnull List endpoints) { this.endpoints = endpoints; return this; } @@ -138,62 +143,62 @@ public V1EndpointSlice addEndpointsItem(V1Endpoint endpointsItem) { return this; } - /** + /** * endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. * @return endpoints - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.") public List getEndpoints() { return endpoints; } - public void setEndpoints(List endpoints) { + public void setEndpoints(@jakarta.annotation.Nonnull List endpoints) { this.endpoints = endpoints; } - public V1EndpointSlice kind(String kind) { + public V1EndpointSlice kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1EndpointSlice metadata(V1ObjectMeta metadata) { + public V1EndpointSlice metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1EndpointSlice ports(List ports) { + public V1EndpointSlice ports(@jakarta.annotation.Nullable List ports) { this.ports = ports; return this; } @@ -206,17 +211,17 @@ public V1EndpointSlice addPortsItem(DiscoveryV1EndpointPort portsItem) { return this; } - /** - * ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates \"all ports\". Each slice may include a maximum of 100 ports. + /** + * ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. Each slice may include a maximum of 100 ports. Services always have at least 1 port, so EndpointSlices generated by the EndpointSlice controller will likewise always have at least 1 port. EndpointSlices used for other purposes may have an empty ports list. * @return ports - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates \"all ports\". Each slice may include a maximum of 100 ports.") + @ApiModelProperty(value = "ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. Each slice may include a maximum of 100 ports. Services always have at least 1 port, so EndpointSlices generated by the EndpointSlice controller will likewise always have at least 1 port. EndpointSlices used for other purposes may have an empty ports list.") public List getPorts() { return ports; } - public void setPorts(List ports) { + public void setPorts(@jakarta.annotation.Nullable List ports) { this.ports = ports; } @@ -289,12 +294,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("endpoints"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1EndpointSlice - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1EndpointSlice + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EndpointSlice.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -385,22 +390,22 @@ public V1EndpointSlice read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1EndpointSlice given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1EndpointSlice - * @throws IOException if the JSON string is invalid with respect to V1EndpointSlice - */ + /** + * Create an instance of V1EndpointSlice given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EndpointSlice + * @throws IOException if the JSON string is invalid with respect to V1EndpointSlice + */ public static V1EndpointSlice fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1EndpointSlice.class); } - /** - * Convert an instance of V1EndpointSlice to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1EndpointSlice to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceList.java index 0cd1643a9f..02a6f95a3f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * EndpointSliceList represents a list of endpoint slices */ @ApiModel(description = "EndpointSliceList represents a list of endpoint slices") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EndpointSliceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1EndpointSliceList() { } - public V1EndpointSliceList apiVersion(String apiVersion) { + public V1EndpointSliceList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1EndpointSliceList items(List items) { + public V1EndpointSliceList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1EndpointSliceList addItemsItem(V1EndpointSlice itemsItem) { return this; } - /** + /** * items is the list of endpoint slices * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is the list of endpoint slices") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1EndpointSliceList kind(String kind) { + public V1EndpointSliceList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1EndpointSliceList metadata(V1ListMeta metadata) { + public V1EndpointSliceList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1EndpointSliceList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1EndpointSliceList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EndpointSliceList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1EndpointSliceList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1EndpointSliceList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1EndpointSliceList - * @throws IOException if the JSON string is invalid with respect to V1EndpointSliceList - */ + /** + * Create an instance of V1EndpointSliceList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EndpointSliceList + * @throws IOException if the JSON string is invalid with respect to V1EndpointSliceList + */ public static V1EndpointSliceList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1EndpointSliceList.class); } - /** - * Convert an instance of V1EndpointSliceList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1EndpointSliceList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubset.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubset.java index b857791e26..1e6518122d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubset.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubset.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,27 +51,30 @@ import io.kubernetes.client.openapi.JSON; /** - * EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] } The resulting set of endpoints can be viewed as: a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ] + * EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] } The resulting set of endpoints can be viewed as: a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ] Deprecated: This API is deprecated in v1.33+. */ -@ApiModel(description = "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] } The resulting set of endpoints can be viewed as: a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ]") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] } The resulting set of endpoints can be viewed as: a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ] Deprecated: This API is deprecated in v1.33+.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EndpointSubset { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) + @jakarta.annotation.Nullable private List addresses = new ArrayList<>(); public static final String SERIALIZED_NAME_NOT_READY_ADDRESSES = "notReadyAddresses"; @SerializedName(SERIALIZED_NAME_NOT_READY_ADDRESSES) + @jakarta.annotation.Nullable private List notReadyAddresses = new ArrayList<>(); public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) + @jakarta.annotation.Nullable private List ports = new ArrayList<>(); public V1EndpointSubset() { } - public V1EndpointSubset addresses(List addresses) { + public V1EndpointSubset addresses(@jakarta.annotation.Nullable List addresses) { this.addresses = addresses; return this; } @@ -85,22 +87,22 @@ public V1EndpointSubset addAddressesItem(V1EndpointAddress addressesItem) { return this; } - /** + /** * IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. * @return addresses - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.") public List getAddresses() { return addresses; } - public void setAddresses(List addresses) { + public void setAddresses(@jakarta.annotation.Nullable List addresses) { this.addresses = addresses; } - public V1EndpointSubset notReadyAddresses(List notReadyAddresses) { + public V1EndpointSubset notReadyAddresses(@jakarta.annotation.Nullable List notReadyAddresses) { this.notReadyAddresses = notReadyAddresses; return this; } @@ -113,22 +115,22 @@ public V1EndpointSubset addNotReadyAddressesItem(V1EndpointAddress notReadyAddre return this; } - /** + /** * IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. * @return notReadyAddresses - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.") public List getNotReadyAddresses() { return notReadyAddresses; } - public void setNotReadyAddresses(List notReadyAddresses) { + public void setNotReadyAddresses(@jakarta.annotation.Nullable List notReadyAddresses) { this.notReadyAddresses = notReadyAddresses; } - public V1EndpointSubset ports(List ports) { + public V1EndpointSubset ports(@jakarta.annotation.Nullable List ports) { this.ports = ports; return this; } @@ -141,17 +143,17 @@ public V1EndpointSubset addPortsItem(CoreV1EndpointPort portsItem) { return this; } - /** + /** * Port numbers available on the related IP addresses. * @return ports - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Port numbers available on the related IP addresses.") public List getPorts() { return ports; } - public void setPorts(List ports) { + public void setPorts(@jakarta.annotation.Nullable List ports) { this.ports = ports; } @@ -213,12 +215,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1EndpointSubset - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1EndpointSubset + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EndpointSubset.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -307,22 +309,22 @@ public V1EndpointSubset read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1EndpointSubset given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1EndpointSubset - * @throws IOException if the JSON string is invalid with respect to V1EndpointSubset - */ + /** + * Create an instance of V1EndpointSubset given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EndpointSubset + * @throws IOException if the JSON string is invalid with respect to V1EndpointSubset + */ public static V1EndpointSubset fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1EndpointSubset.class); } - /** - * Convert an instance of V1EndpointSubset to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1EndpointSubset to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoints.java index 93188a1b60..624b49d7ac 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoints.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoints.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,91 +51,95 @@ import io.kubernetes.client.openapi.JSON; /** - * Endpoints is a collection of endpoints that implement the actual service. Example: Name: \"mysvc\", Subsets: [ { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] }, { Addresses: [{\"ip\": \"10.10.3.3\"}], Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}] }, ] + * Endpoints is a collection of endpoints that implement the actual service. Example: Name: \"mysvc\", Subsets: [ { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] }, { Addresses: [{\"ip\": \"10.10.3.3\"}], Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}] }, ] Endpoints is a legacy API and does not contain information about all Service features. Use discoveryv1.EndpointSlice for complete information about Service endpoints. Deprecated: This API is deprecated in v1.33+. Use discoveryv1.EndpointSlice. */ -@ApiModel(description = "Endpoints is a collection of endpoints that implement the actual service. Example: Name: \"mysvc\", Subsets: [ { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] }, { Addresses: [{\"ip\": \"10.10.3.3\"}], Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}] }, ]") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Endpoints is a collection of endpoints that implement the actual service. Example: Name: \"mysvc\", Subsets: [ { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] }, { Addresses: [{\"ip\": \"10.10.3.3\"}], Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}] }, ] Endpoints is a legacy API and does not contain information about all Service features. Use discoveryv1.EndpointSlice for complete information about Service endpoints. Deprecated: This API is deprecated in v1.33+. Use discoveryv1.EndpointSlice.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Endpoints implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SUBSETS = "subsets"; @SerializedName(SERIALIZED_NAME_SUBSETS) + @jakarta.annotation.Nullable private List subsets = new ArrayList<>(); public V1Endpoints() { } - public V1Endpoints apiVersion(String apiVersion) { + public V1Endpoints apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1Endpoints kind(String kind) { + public V1Endpoints kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1Endpoints metadata(V1ObjectMeta metadata) { + public V1Endpoints metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1Endpoints subsets(List subsets) { + public V1Endpoints subsets(@jakarta.annotation.Nullable List subsets) { this.subsets = subsets; return this; } @@ -149,17 +152,17 @@ public V1Endpoints addSubsetsItem(V1EndpointSubset subsetsItem) { return this; } - /** + /** * The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. * @return subsets - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.") public List getSubsets() { return subsets; } - public void setSubsets(List subsets) { + public void setSubsets(@jakarta.annotation.Nullable List subsets) { this.subsets = subsets; } @@ -224,12 +227,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Endpoints - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Endpoints + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Endpoints.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -300,22 +303,22 @@ public V1Endpoints read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Endpoints given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Endpoints - * @throws IOException if the JSON string is invalid with respect to V1Endpoints - */ + /** + * Create an instance of V1Endpoints given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Endpoints + * @throws IOException if the JSON string is invalid with respect to V1Endpoints + */ public static V1Endpoints fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Endpoints.class); } - /** - * Convert an instance of V1Endpoints to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Endpoints to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsList.java index a9f5f874ea..63df6d8a2f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,51 +51,55 @@ import io.kubernetes.client.openapi.JSON; /** - * EndpointsList is a list of endpoints. + * EndpointsList is a list of endpoints. Deprecated: This API is deprecated in v1.33+. */ -@ApiModel(description = "EndpointsList is a list of endpoints.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "EndpointsList is a list of endpoints. Deprecated: This API is deprecated in v1.33+.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EndpointsList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1EndpointsList() { } - public V1EndpointsList apiVersion(String apiVersion) { + public V1EndpointsList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1EndpointsList items(List items) { + public V1EndpointsList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1EndpointsList addItemsItem(V1Endpoints itemsItem) { return this; } - /** + /** * List of endpoints. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "List of endpoints.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1EndpointsList kind(String kind) { + public V1EndpointsList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1EndpointsList metadata(V1ListMeta metadata) { + public V1EndpointsList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1EndpointsList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1EndpointsList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EndpointsList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1EndpointsList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1EndpointsList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1EndpointsList - * @throws IOException if the JSON string is invalid with respect to V1EndpointsList - */ + /** + * Create an instance of V1EndpointsList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EndpointsList + * @throws IOException if the JSON string is invalid with respect to V1EndpointsList + */ public static V1EndpointsList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1EndpointsList.class); } - /** - * Convert an instance of V1EndpointsList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1EndpointsList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSource.java index 04c80762b4..fac0d0f56d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSource.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -50,82 +49,85 @@ import io.kubernetes.client.openapi.JSON; /** - * EnvFromSource represents the source of a set of ConfigMaps + * EnvFromSource represents the source of a set of ConfigMaps or Secrets */ -@ApiModel(description = "EnvFromSource represents the source of a set of ConfigMaps") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "EnvFromSource represents the source of a set of ConfigMaps or Secrets") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EnvFromSource { public static final String SERIALIZED_NAME_CONFIG_MAP_REF = "configMapRef"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP_REF) + @jakarta.annotation.Nullable private V1ConfigMapEnvSource configMapRef; public static final String SERIALIZED_NAME_PREFIX = "prefix"; @SerializedName(SERIALIZED_NAME_PREFIX) + @jakarta.annotation.Nullable private String prefix; public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; @SerializedName(SERIALIZED_NAME_SECRET_REF) + @jakarta.annotation.Nullable private V1SecretEnvSource secretRef; public V1EnvFromSource() { } - public V1EnvFromSource configMapRef(V1ConfigMapEnvSource configMapRef) { + public V1EnvFromSource configMapRef(@jakarta.annotation.Nullable V1ConfigMapEnvSource configMapRef) { this.configMapRef = configMapRef; return this; } - /** + /** * Get configMapRef * @return configMapRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ConfigMapEnvSource getConfigMapRef() { return configMapRef; } - public void setConfigMapRef(V1ConfigMapEnvSource configMapRef) { + public void setConfigMapRef(@jakarta.annotation.Nullable V1ConfigMapEnvSource configMapRef) { this.configMapRef = configMapRef; } - public V1EnvFromSource prefix(String prefix) { + public V1EnvFromSource prefix(@jakarta.annotation.Nullable String prefix) { this.prefix = prefix; return this; } - /** - * An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + /** + * Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER. * @return prefix - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.") + @ApiModelProperty(value = "Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER.") public String getPrefix() { return prefix; } - public void setPrefix(String prefix) { + public void setPrefix(@jakarta.annotation.Nullable String prefix) { this.prefix = prefix; } - public V1EnvFromSource secretRef(V1SecretEnvSource secretRef) { + public V1EnvFromSource secretRef(@jakarta.annotation.Nullable V1SecretEnvSource secretRef) { this.secretRef = secretRef; return this; } - /** + /** * Get secretRef * @return secretRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SecretEnvSource getSecretRef() { return secretRef; } - public void setSecretRef(V1SecretEnvSource secretRef) { + public void setSecretRef(@jakarta.annotation.Nullable V1SecretEnvSource secretRef) { this.secretRef = secretRef; } @@ -187,12 +189,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1EnvFromSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1EnvFromSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EnvFromSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -250,22 +252,22 @@ public V1EnvFromSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1EnvFromSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1EnvFromSource - * @throws IOException if the JSON string is invalid with respect to V1EnvFromSource - */ + /** + * Create an instance of V1EnvFromSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EnvFromSource + * @throws IOException if the JSON string is invalid with respect to V1EnvFromSource + */ public static V1EnvFromSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1EnvFromSource.class); } - /** - * Convert an instance of V1EnvFromSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1EnvFromSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVar.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVar.java index 64d0bacf70..030877d680 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVar.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVar.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,79 +51,82 @@ * EnvVar represents an environment variable present in a Container. */ @ApiModel(description = "EnvVar represents an environment variable present in a Container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EnvVar { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) + @jakarta.annotation.Nullable private String value; public static final String SERIALIZED_NAME_VALUE_FROM = "valueFrom"; @SerializedName(SERIALIZED_NAME_VALUE_FROM) + @jakarta.annotation.Nullable private V1EnvVarSource valueFrom; public V1EnvVar() { } - public V1EnvVar name(String name) { + public V1EnvVar name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name of the environment variable. Must be a C_IDENTIFIER. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name of the environment variable. Must be a C_IDENTIFIER.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1EnvVar value(String value) { + public V1EnvVar value(@jakarta.annotation.Nullable String value) { this.value = value; return this; } - /** + /** * Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". * @return value - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".") public String getValue() { return value; } - public void setValue(String value) { + public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; } - public V1EnvVar valueFrom(V1EnvVarSource valueFrom) { + public V1EnvVar valueFrom(@jakarta.annotation.Nullable V1EnvVarSource valueFrom) { this.valueFrom = valueFrom; return this; } - /** + /** * Get valueFrom * @return valueFrom - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1EnvVarSource getValueFrom() { return valueFrom; } - public void setValueFrom(V1EnvVarSource valueFrom) { + public void setValueFrom(@jakarta.annotation.Nullable V1EnvVarSource valueFrom) { this.valueFrom = valueFrom; } @@ -187,12 +189,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1EnvVar - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1EnvVar + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EnvVar.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -256,22 +258,22 @@ public V1EnvVar read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1EnvVar given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1EnvVar - * @throws IOException if the JSON string is invalid with respect to V1EnvVar - */ + /** + * Create an instance of V1EnvVar given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EnvVar + * @throws IOException if the JSON string is invalid with respect to V1EnvVar + */ public static V1EnvVar fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1EnvVar.class); } - /** - * Convert an instance of V1EnvVar to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1EnvVar to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java index 72cedcafe4..ef712f6465 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,103 +54,107 @@ * EnvVarSource represents a source for the value of an EnvVar. */ @ApiModel(description = "EnvVarSource represents a source for the value of an EnvVar.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EnvVarSource { public static final String SERIALIZED_NAME_CONFIG_MAP_KEY_REF = "configMapKeyRef"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP_KEY_REF) + @jakarta.annotation.Nullable private V1ConfigMapKeySelector configMapKeyRef; public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; @SerializedName(SERIALIZED_NAME_FIELD_REF) + @jakarta.annotation.Nullable private V1ObjectFieldSelector fieldRef; public static final String SERIALIZED_NAME_RESOURCE_FIELD_REF = "resourceFieldRef"; @SerializedName(SERIALIZED_NAME_RESOURCE_FIELD_REF) + @jakarta.annotation.Nullable private V1ResourceFieldSelector resourceFieldRef; public static final String SERIALIZED_NAME_SECRET_KEY_REF = "secretKeyRef"; @SerializedName(SERIALIZED_NAME_SECRET_KEY_REF) + @jakarta.annotation.Nullable private V1SecretKeySelector secretKeyRef; public V1EnvVarSource() { } - public V1EnvVarSource configMapKeyRef(V1ConfigMapKeySelector configMapKeyRef) { + public V1EnvVarSource configMapKeyRef(@jakarta.annotation.Nullable V1ConfigMapKeySelector configMapKeyRef) { this.configMapKeyRef = configMapKeyRef; return this; } - /** + /** * Get configMapKeyRef * @return configMapKeyRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ConfigMapKeySelector getConfigMapKeyRef() { return configMapKeyRef; } - public void setConfigMapKeyRef(V1ConfigMapKeySelector configMapKeyRef) { + public void setConfigMapKeyRef(@jakarta.annotation.Nullable V1ConfigMapKeySelector configMapKeyRef) { this.configMapKeyRef = configMapKeyRef; } - public V1EnvVarSource fieldRef(V1ObjectFieldSelector fieldRef) { + public V1EnvVarSource fieldRef(@jakarta.annotation.Nullable V1ObjectFieldSelector fieldRef) { this.fieldRef = fieldRef; return this; } - /** + /** * Get fieldRef * @return fieldRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectFieldSelector getFieldRef() { return fieldRef; } - public void setFieldRef(V1ObjectFieldSelector fieldRef) { + public void setFieldRef(@jakarta.annotation.Nullable V1ObjectFieldSelector fieldRef) { this.fieldRef = fieldRef; } - public V1EnvVarSource resourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { + public V1EnvVarSource resourceFieldRef(@jakarta.annotation.Nullable V1ResourceFieldSelector resourceFieldRef) { this.resourceFieldRef = resourceFieldRef; return this; } - /** + /** * Get resourceFieldRef * @return resourceFieldRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ResourceFieldSelector getResourceFieldRef() { return resourceFieldRef; } - public void setResourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { + public void setResourceFieldRef(@jakarta.annotation.Nullable V1ResourceFieldSelector resourceFieldRef) { this.resourceFieldRef = resourceFieldRef; } - public V1EnvVarSource secretKeyRef(V1SecretKeySelector secretKeyRef) { + public V1EnvVarSource secretKeyRef(@jakarta.annotation.Nullable V1SecretKeySelector secretKeyRef) { this.secretKeyRef = secretKeyRef; return this; } - /** + /** * Get secretKeyRef * @return secretKeyRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SecretKeySelector getSecretKeyRef() { return secretKeyRef; } - public void setSecretKeyRef(V1SecretKeySelector secretKeyRef) { + public void setSecretKeyRef(@jakarta.annotation.Nullable V1SecretKeySelector secretKeyRef) { this.secretKeyRef = secretKeyRef; } @@ -216,12 +219,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1EnvVarSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1EnvVarSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EnvVarSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -284,22 +287,22 @@ public V1EnvVarSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1EnvVarSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1EnvVarSource - * @throws IOException if the JSON string is invalid with respect to V1EnvVarSource - */ + /** + * Create an instance of V1EnvVarSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EnvVarSource + * @throws IOException if the JSON string is invalid with respect to V1EnvVarSource + */ public static V1EnvVarSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1EnvVarSource.class); } - /** - * Convert an instance of V1EnvVarSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1EnvVarSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java index 030c2da194..3506cbaa75 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java @@ -50,7 +50,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -63,112 +62,137 @@ * An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation. To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted. */ @ApiModel(description = "An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation. To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EphemeralContainer { public static final String SERIALIZED_NAME_ARGS = "args"; @SerializedName(SERIALIZED_NAME_ARGS) + @jakarta.annotation.Nullable private List args = new ArrayList<>(); public static final String SERIALIZED_NAME_COMMAND = "command"; @SerializedName(SERIALIZED_NAME_COMMAND) + @jakarta.annotation.Nullable private List command = new ArrayList<>(); public static final String SERIALIZED_NAME_ENV = "env"; @SerializedName(SERIALIZED_NAME_ENV) + @jakarta.annotation.Nullable private List env = new ArrayList<>(); public static final String SERIALIZED_NAME_ENV_FROM = "envFrom"; @SerializedName(SERIALIZED_NAME_ENV_FROM) + @jakarta.annotation.Nullable private List envFrom = new ArrayList<>(); public static final String SERIALIZED_NAME_IMAGE = "image"; @SerializedName(SERIALIZED_NAME_IMAGE) + @jakarta.annotation.Nullable private String image; public static final String SERIALIZED_NAME_IMAGE_PULL_POLICY = "imagePullPolicy"; @SerializedName(SERIALIZED_NAME_IMAGE_PULL_POLICY) + @jakarta.annotation.Nullable private String imagePullPolicy; public static final String SERIALIZED_NAME_LIFECYCLE = "lifecycle"; @SerializedName(SERIALIZED_NAME_LIFECYCLE) + @jakarta.annotation.Nullable private V1Lifecycle lifecycle; public static final String SERIALIZED_NAME_LIVENESS_PROBE = "livenessProbe"; @SerializedName(SERIALIZED_NAME_LIVENESS_PROBE) + @jakarta.annotation.Nullable private V1Probe livenessProbe; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) + @jakarta.annotation.Nullable private List ports = new ArrayList<>(); public static final String SERIALIZED_NAME_READINESS_PROBE = "readinessProbe"; @SerializedName(SERIALIZED_NAME_READINESS_PROBE) + @jakarta.annotation.Nullable private V1Probe readinessProbe; public static final String SERIALIZED_NAME_RESIZE_POLICY = "resizePolicy"; @SerializedName(SERIALIZED_NAME_RESIZE_POLICY) + @jakarta.annotation.Nullable private List resizePolicy = new ArrayList<>(); public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) + @jakarta.annotation.Nullable private V1ResourceRequirements resources; public static final String SERIALIZED_NAME_RESTART_POLICY = "restartPolicy"; @SerializedName(SERIALIZED_NAME_RESTART_POLICY) + @jakarta.annotation.Nullable private String restartPolicy; public static final String SERIALIZED_NAME_SECURITY_CONTEXT = "securityContext"; @SerializedName(SERIALIZED_NAME_SECURITY_CONTEXT) + @jakarta.annotation.Nullable private V1SecurityContext securityContext; public static final String SERIALIZED_NAME_STARTUP_PROBE = "startupProbe"; @SerializedName(SERIALIZED_NAME_STARTUP_PROBE) + @jakarta.annotation.Nullable private V1Probe startupProbe; public static final String SERIALIZED_NAME_STDIN = "stdin"; @SerializedName(SERIALIZED_NAME_STDIN) + @jakarta.annotation.Nullable private Boolean stdin; public static final String SERIALIZED_NAME_STDIN_ONCE = "stdinOnce"; @SerializedName(SERIALIZED_NAME_STDIN_ONCE) + @jakarta.annotation.Nullable private Boolean stdinOnce; public static final String SERIALIZED_NAME_TARGET_CONTAINER_NAME = "targetContainerName"; @SerializedName(SERIALIZED_NAME_TARGET_CONTAINER_NAME) + @jakarta.annotation.Nullable private String targetContainerName; public static final String SERIALIZED_NAME_TERMINATION_MESSAGE_PATH = "terminationMessagePath"; @SerializedName(SERIALIZED_NAME_TERMINATION_MESSAGE_PATH) + @jakarta.annotation.Nullable private String terminationMessagePath; public static final String SERIALIZED_NAME_TERMINATION_MESSAGE_POLICY = "terminationMessagePolicy"; @SerializedName(SERIALIZED_NAME_TERMINATION_MESSAGE_POLICY) + @jakarta.annotation.Nullable private String terminationMessagePolicy; public static final String SERIALIZED_NAME_TTY = "tty"; @SerializedName(SERIALIZED_NAME_TTY) + @jakarta.annotation.Nullable private Boolean tty; public static final String SERIALIZED_NAME_VOLUME_DEVICES = "volumeDevices"; @SerializedName(SERIALIZED_NAME_VOLUME_DEVICES) + @jakarta.annotation.Nullable private List volumeDevices = new ArrayList<>(); public static final String SERIALIZED_NAME_VOLUME_MOUNTS = "volumeMounts"; @SerializedName(SERIALIZED_NAME_VOLUME_MOUNTS) + @jakarta.annotation.Nullable private List volumeMounts = new ArrayList<>(); public static final String SERIALIZED_NAME_WORKING_DIR = "workingDir"; @SerializedName(SERIALIZED_NAME_WORKING_DIR) + @jakarta.annotation.Nullable private String workingDir; public V1EphemeralContainer() { } - public V1EphemeralContainer args(List args) { + public V1EphemeralContainer args(@jakarta.annotation.Nullable List args) { this.args = args; return this; } @@ -181,22 +205,22 @@ public V1EphemeralContainer addArgsItem(String argsItem) { return this; } - /** + /** * Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell * @return args - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell") public List getArgs() { return args; } - public void setArgs(List args) { + public void setArgs(@jakarta.annotation.Nullable List args) { this.args = args; } - public V1EphemeralContainer command(List command) { + public V1EphemeralContainer command(@jakarta.annotation.Nullable List command) { this.command = command; return this; } @@ -209,22 +233,22 @@ public V1EphemeralContainer addCommandItem(String commandItem) { return this; } - /** + /** * Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell * @return command - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell") public List getCommand() { return command; } - public void setCommand(List command) { + public void setCommand(@jakarta.annotation.Nullable List command) { this.command = command; } - public V1EphemeralContainer env(List env) { + public V1EphemeralContainer env(@jakarta.annotation.Nullable List env) { this.env = env; return this; } @@ -237,22 +261,22 @@ public V1EphemeralContainer addEnvItem(V1EnvVar envItem) { return this; } - /** + /** * List of environment variables to set in the container. Cannot be updated. * @return env - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "List of environment variables to set in the container. Cannot be updated.") public List getEnv() { return env; } - public void setEnv(List env) { + public void setEnv(@jakarta.annotation.Nullable List env) { this.env = env; } - public V1EphemeralContainer envFrom(List envFrom) { + public V1EphemeralContainer envFrom(@jakarta.annotation.Nullable List envFrom) { this.envFrom = envFrom; return this; } @@ -265,122 +289,122 @@ public V1EphemeralContainer addEnvFromItem(V1EnvFromSource envFromItem) { return this; } - /** + /** * List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. * @return envFrom - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.") public List getEnvFrom() { return envFrom; } - public void setEnvFrom(List envFrom) { + public void setEnvFrom(@jakarta.annotation.Nullable List envFrom) { this.envFrom = envFrom; } - public V1EphemeralContainer image(String image) { + public V1EphemeralContainer image(@jakarta.annotation.Nullable String image) { this.image = image; return this; } - /** + /** * Container image name. More info: https://kubernetes.io/docs/concepts/containers/images * @return image - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images") public String getImage() { return image; } - public void setImage(String image) { + public void setImage(@jakarta.annotation.Nullable String image) { this.image = image; } - public V1EphemeralContainer imagePullPolicy(String imagePullPolicy) { + public V1EphemeralContainer imagePullPolicy(@jakarta.annotation.Nullable String imagePullPolicy) { this.imagePullPolicy = imagePullPolicy; return this; } - /** + /** * Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images * @return imagePullPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images") public String getImagePullPolicy() { return imagePullPolicy; } - public void setImagePullPolicy(String imagePullPolicy) { + public void setImagePullPolicy(@jakarta.annotation.Nullable String imagePullPolicy) { this.imagePullPolicy = imagePullPolicy; } - public V1EphemeralContainer lifecycle(V1Lifecycle lifecycle) { + public V1EphemeralContainer lifecycle(@jakarta.annotation.Nullable V1Lifecycle lifecycle) { this.lifecycle = lifecycle; return this; } - /** + /** * Get lifecycle * @return lifecycle - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1Lifecycle getLifecycle() { return lifecycle; } - public void setLifecycle(V1Lifecycle lifecycle) { + public void setLifecycle(@jakarta.annotation.Nullable V1Lifecycle lifecycle) { this.lifecycle = lifecycle; } - public V1EphemeralContainer livenessProbe(V1Probe livenessProbe) { + public V1EphemeralContainer livenessProbe(@jakarta.annotation.Nullable V1Probe livenessProbe) { this.livenessProbe = livenessProbe; return this; } - /** + /** * Get livenessProbe * @return livenessProbe - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1Probe getLivenessProbe() { return livenessProbe; } - public void setLivenessProbe(V1Probe livenessProbe) { + public void setLivenessProbe(@jakarta.annotation.Nullable V1Probe livenessProbe) { this.livenessProbe = livenessProbe; } - public V1EphemeralContainer name(String name) { + public V1EphemeralContainer name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1EphemeralContainer ports(List ports) { + public V1EphemeralContainer ports(@jakarta.annotation.Nullable List ports) { this.ports = ports; return this; } @@ -393,42 +417,42 @@ public V1EphemeralContainer addPortsItem(V1ContainerPort portsItem) { return this; } - /** + /** * Ports are not allowed for ephemeral containers. * @return ports - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Ports are not allowed for ephemeral containers.") public List getPorts() { return ports; } - public void setPorts(List ports) { + public void setPorts(@jakarta.annotation.Nullable List ports) { this.ports = ports; } - public V1EphemeralContainer readinessProbe(V1Probe readinessProbe) { + public V1EphemeralContainer readinessProbe(@jakarta.annotation.Nullable V1Probe readinessProbe) { this.readinessProbe = readinessProbe; return this; } - /** + /** * Get readinessProbe * @return readinessProbe - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1Probe getReadinessProbe() { return readinessProbe; } - public void setReadinessProbe(V1Probe readinessProbe) { + public void setReadinessProbe(@jakarta.annotation.Nullable V1Probe readinessProbe) { this.readinessProbe = readinessProbe; } - public V1EphemeralContainer resizePolicy(List resizePolicy) { + public V1EphemeralContainer resizePolicy(@jakarta.annotation.Nullable List resizePolicy) { this.resizePolicy = resizePolicy; return this; } @@ -441,222 +465,222 @@ public V1EphemeralContainer addResizePolicyItem(V1ContainerResizePolicy resizePo return this; } - /** + /** * Resources resize policy for the container. * @return resizePolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Resources resize policy for the container.") public List getResizePolicy() { return resizePolicy; } - public void setResizePolicy(List resizePolicy) { + public void setResizePolicy(@jakarta.annotation.Nullable List resizePolicy) { this.resizePolicy = resizePolicy; } - public V1EphemeralContainer resources(V1ResourceRequirements resources) { + public V1EphemeralContainer resources(@jakarta.annotation.Nullable V1ResourceRequirements resources) { this.resources = resources; return this; } - /** + /** * Get resources * @return resources - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ResourceRequirements getResources() { return resources; } - public void setResources(V1ResourceRequirements resources) { + public void setResources(@jakarta.annotation.Nullable V1ResourceRequirements resources) { this.resources = resources; } - public V1EphemeralContainer restartPolicy(String restartPolicy) { + public V1EphemeralContainer restartPolicy(@jakarta.annotation.Nullable String restartPolicy) { this.restartPolicy = restartPolicy; return this; } - /** + /** * Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers. * @return restartPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers.") public String getRestartPolicy() { return restartPolicy; } - public void setRestartPolicy(String restartPolicy) { + public void setRestartPolicy(@jakarta.annotation.Nullable String restartPolicy) { this.restartPolicy = restartPolicy; } - public V1EphemeralContainer securityContext(V1SecurityContext securityContext) { + public V1EphemeralContainer securityContext(@jakarta.annotation.Nullable V1SecurityContext securityContext) { this.securityContext = securityContext; return this; } - /** + /** * Get securityContext * @return securityContext - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SecurityContext getSecurityContext() { return securityContext; } - public void setSecurityContext(V1SecurityContext securityContext) { + public void setSecurityContext(@jakarta.annotation.Nullable V1SecurityContext securityContext) { this.securityContext = securityContext; } - public V1EphemeralContainer startupProbe(V1Probe startupProbe) { + public V1EphemeralContainer startupProbe(@jakarta.annotation.Nullable V1Probe startupProbe) { this.startupProbe = startupProbe; return this; } - /** + /** * Get startupProbe * @return startupProbe - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1Probe getStartupProbe() { return startupProbe; } - public void setStartupProbe(V1Probe startupProbe) { + public void setStartupProbe(@jakarta.annotation.Nullable V1Probe startupProbe) { this.startupProbe = startupProbe; } - public V1EphemeralContainer stdin(Boolean stdin) { + public V1EphemeralContainer stdin(@jakarta.annotation.Nullable Boolean stdin) { this.stdin = stdin; return this; } - /** + /** * Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. * @return stdin - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.") public Boolean getStdin() { return stdin; } - public void setStdin(Boolean stdin) { + public void setStdin(@jakarta.annotation.Nullable Boolean stdin) { this.stdin = stdin; } - public V1EphemeralContainer stdinOnce(Boolean stdinOnce) { + public V1EphemeralContainer stdinOnce(@jakarta.annotation.Nullable Boolean stdinOnce) { this.stdinOnce = stdinOnce; return this; } - /** + /** * Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false * @return stdinOnce - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false") public Boolean getStdinOnce() { return stdinOnce; } - public void setStdinOnce(Boolean stdinOnce) { + public void setStdinOnce(@jakarta.annotation.Nullable Boolean stdinOnce) { this.stdinOnce = stdinOnce; } - public V1EphemeralContainer targetContainerName(String targetContainerName) { + public V1EphemeralContainer targetContainerName(@jakarta.annotation.Nullable String targetContainerName) { this.targetContainerName = targetContainerName; return this; } - /** + /** * If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. * @return targetContainerName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined.") public String getTargetContainerName() { return targetContainerName; } - public void setTargetContainerName(String targetContainerName) { + public void setTargetContainerName(@jakarta.annotation.Nullable String targetContainerName) { this.targetContainerName = targetContainerName; } - public V1EphemeralContainer terminationMessagePath(String terminationMessagePath) { + public V1EphemeralContainer terminationMessagePath(@jakarta.annotation.Nullable String terminationMessagePath) { this.terminationMessagePath = terminationMessagePath; return this; } - /** + /** * Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. * @return terminationMessagePath - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.") public String getTerminationMessagePath() { return terminationMessagePath; } - public void setTerminationMessagePath(String terminationMessagePath) { + public void setTerminationMessagePath(@jakarta.annotation.Nullable String terminationMessagePath) { this.terminationMessagePath = terminationMessagePath; } - public V1EphemeralContainer terminationMessagePolicy(String terminationMessagePolicy) { + public V1EphemeralContainer terminationMessagePolicy(@jakarta.annotation.Nullable String terminationMessagePolicy) { this.terminationMessagePolicy = terminationMessagePolicy; return this; } - /** + /** * Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. * @return terminationMessagePolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.") public String getTerminationMessagePolicy() { return terminationMessagePolicy; } - public void setTerminationMessagePolicy(String terminationMessagePolicy) { + public void setTerminationMessagePolicy(@jakarta.annotation.Nullable String terminationMessagePolicy) { this.terminationMessagePolicy = terminationMessagePolicy; } - public V1EphemeralContainer tty(Boolean tty) { + public V1EphemeralContainer tty(@jakarta.annotation.Nullable Boolean tty) { this.tty = tty; return this; } - /** + /** * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. * @return tty - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.") public Boolean getTty() { return tty; } - public void setTty(Boolean tty) { + public void setTty(@jakarta.annotation.Nullable Boolean tty) { this.tty = tty; } - public V1EphemeralContainer volumeDevices(List volumeDevices) { + public V1EphemeralContainer volumeDevices(@jakarta.annotation.Nullable List volumeDevices) { this.volumeDevices = volumeDevices; return this; } @@ -669,22 +693,22 @@ public V1EphemeralContainer addVolumeDevicesItem(V1VolumeDevice volumeDevicesIte return this; } - /** + /** * volumeDevices is the list of block devices to be used by the container. * @return volumeDevices - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "volumeDevices is the list of block devices to be used by the container.") public List getVolumeDevices() { return volumeDevices; } - public void setVolumeDevices(List volumeDevices) { + public void setVolumeDevices(@jakarta.annotation.Nullable List volumeDevices) { this.volumeDevices = volumeDevices; } - public V1EphemeralContainer volumeMounts(List volumeMounts) { + public V1EphemeralContainer volumeMounts(@jakarta.annotation.Nullable List volumeMounts) { this.volumeMounts = volumeMounts; return this; } @@ -697,37 +721,37 @@ public V1EphemeralContainer addVolumeMountsItem(V1VolumeMount volumeMountsItem) return this; } - /** + /** * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated. * @return volumeMounts - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.") public List getVolumeMounts() { return volumeMounts; } - public void setVolumeMounts(List volumeMounts) { + public void setVolumeMounts(@jakarta.annotation.Nullable List volumeMounts) { this.volumeMounts = volumeMounts; } - public V1EphemeralContainer workingDir(String workingDir) { + public V1EphemeralContainer workingDir(@jakarta.annotation.Nullable String workingDir) { this.workingDir = workingDir; return this; } - /** + /** * Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. * @return workingDir - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.") public String getWorkingDir() { return workingDir; } - public void setWorkingDir(String workingDir) { + public void setWorkingDir(@jakarta.annotation.Nullable String workingDir) { this.workingDir = workingDir; } @@ -856,12 +880,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1EphemeralContainer - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1EphemeralContainer + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EphemeralContainer.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -1055,22 +1079,22 @@ public V1EphemeralContainer read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1EphemeralContainer given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1EphemeralContainer - * @throws IOException if the JSON string is invalid with respect to V1EphemeralContainer - */ + /** + * Create an instance of V1EphemeralContainer given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EphemeralContainer + * @throws IOException if the JSON string is invalid with respect to V1EphemeralContainer + */ public static V1EphemeralContainer fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1EphemeralContainer.class); } - /** - * Convert an instance of V1EphemeralContainer to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1EphemeralContainer to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java index f4c5e3e665..ab67848a89 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,31 +51,32 @@ * Represents an ephemeral volume that is handled by a normal storage driver. */ @ApiModel(description = "Represents an ephemeral volume that is handled by a normal storage driver.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EphemeralVolumeSource { public static final String SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATE = "volumeClaimTemplate"; @SerializedName(SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATE) + @jakarta.annotation.Nullable private V1PersistentVolumeClaimTemplate volumeClaimTemplate; public V1EphemeralVolumeSource() { } - public V1EphemeralVolumeSource volumeClaimTemplate(V1PersistentVolumeClaimTemplate volumeClaimTemplate) { + public V1EphemeralVolumeSource volumeClaimTemplate(@jakarta.annotation.Nullable V1PersistentVolumeClaimTemplate volumeClaimTemplate) { this.volumeClaimTemplate = volumeClaimTemplate; return this; } - /** + /** * Get volumeClaimTemplate * @return volumeClaimTemplate - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PersistentVolumeClaimTemplate getVolumeClaimTemplate() { return volumeClaimTemplate; } - public void setVolumeClaimTemplate(V1PersistentVolumeClaimTemplate volumeClaimTemplate) { + public void setVolumeClaimTemplate(@jakarta.annotation.Nullable V1PersistentVolumeClaimTemplate volumeClaimTemplate) { this.volumeClaimTemplate = volumeClaimTemplate; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1EphemeralVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1EphemeralVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EphemeralVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -188,22 +188,22 @@ public V1EphemeralVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1EphemeralVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1EphemeralVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1EphemeralVolumeSource - */ + /** + * Create an instance of V1EphemeralVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EphemeralVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1EphemeralVolumeSource + */ public static V1EphemeralVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1EphemeralVolumeSource.class); } - /** - * Convert an instance of V1EphemeralVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1EphemeralVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java index 2a6af2ee4e..11001d09c5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * EventSource contains information for an event. */ @ApiModel(description = "EventSource contains information for an event.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EventSource { public static final String SERIALIZED_NAME_COMPONENT = "component"; @SerializedName(SERIALIZED_NAME_COMPONENT) + @jakarta.annotation.Nullable private String component; public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) + @jakarta.annotation.Nullable private String host; public V1EventSource() { } - public V1EventSource component(String component) { + public V1EventSource component(@jakarta.annotation.Nullable String component) { this.component = component; return this; } - /** + /** * Component from which the event is generated. * @return component - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Component from which the event is generated.") public String getComponent() { return component; } - public void setComponent(String component) { + public void setComponent(@jakarta.annotation.Nullable String component) { this.component = component; } - public V1EventSource host(String host) { + public V1EventSource host(@jakarta.annotation.Nullable String host) { this.host = host; return this; } - /** + /** * Node name on which the event is generated. * @return host - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Node name on which the event is generated.") public String getHost() { return host; } - public void setHost(String host) { + public void setHost(@jakarta.annotation.Nullable String host) { this.host = host; } @@ -158,12 +159,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1EventSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1EventSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EventSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -216,22 +217,22 @@ public V1EventSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1EventSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1EventSource - * @throws IOException if the JSON string is invalid with respect to V1EventSource - */ + /** + * Create an instance of V1EventSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EventSource + * @throws IOException if the JSON string is invalid with respect to V1EventSource + */ public static V1EventSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1EventSource.class); } - /** - * Convert an instance of V1EventSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1EventSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java index 0defe29595..d1c01032a1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,103 +52,107 @@ * Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods/<pod name>/evictions. */ @ApiModel(description = "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Eviction implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_DELETE_OPTIONS = "deleteOptions"; @SerializedName(SERIALIZED_NAME_DELETE_OPTIONS) + @jakarta.annotation.Nullable private V1DeleteOptions deleteOptions; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public V1Eviction() { } - public V1Eviction apiVersion(String apiVersion) { + public V1Eviction apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1Eviction deleteOptions(V1DeleteOptions deleteOptions) { + public V1Eviction deleteOptions(@jakarta.annotation.Nullable V1DeleteOptions deleteOptions) { this.deleteOptions = deleteOptions; return this; } - /** + /** * Get deleteOptions * @return deleteOptions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1DeleteOptions getDeleteOptions() { return deleteOptions; } - public void setDeleteOptions(V1DeleteOptions deleteOptions) { + public void setDeleteOptions(@jakarta.annotation.Nullable V1DeleteOptions deleteOptions) { this.deleteOptions = deleteOptions; } - public V1Eviction kind(String kind) { + public V1Eviction kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1Eviction metadata(V1ObjectMeta metadata) { + public V1Eviction metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Eviction - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Eviction + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Eviction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -280,22 +283,22 @@ public V1Eviction read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Eviction given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Eviction - * @throws IOException if the JSON string is invalid with respect to V1Eviction - */ + /** + * Create an instance of V1Eviction given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Eviction + * @throws IOException if the JSON string is invalid with respect to V1Eviction + */ public static V1Eviction fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Eviction.class); } - /** - * Convert an instance of V1Eviction to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Eviction to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java index a0b8342b0c..4b8f7ac4c0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,16 +52,17 @@ * ExecAction describes a \"run in container\" action. */ @ApiModel(description = "ExecAction describes a \"run in container\" action.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ExecAction { public static final String SERIALIZED_NAME_COMMAND = "command"; @SerializedName(SERIALIZED_NAME_COMMAND) + @jakarta.annotation.Nullable private List command = new ArrayList<>(); public V1ExecAction() { } - public V1ExecAction command(List command) { + public V1ExecAction command(@jakarta.annotation.Nullable List command) { this.command = command; return this; } @@ -75,17 +75,17 @@ public V1ExecAction addCommandItem(String commandItem) { return this; } - /** + /** * Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. * @return command - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.") public List getCommand() { return command; } - public void setCommand(List command) { + public void setCommand(@jakarta.annotation.Nullable List command) { this.command = command; } @@ -141,12 +141,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ExecAction - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ExecAction + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ExecAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -197,22 +197,22 @@ public V1ExecAction read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ExecAction given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ExecAction - * @throws IOException if the JSON string is invalid with respect to V1ExecAction - */ + /** + * Create an instance of V1ExecAction given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ExecAction + * @throws IOException if the JSON string is invalid with respect to V1ExecAction + */ public static V1ExecAction fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ExecAction.class); } - /** - * Convert an instance of V1ExecAction to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ExecAction to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java index 5d4940ad2b..3ec549189a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`. */ @ApiModel(description = "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ExemptPriorityLevelConfiguration { public static final String SERIALIZED_NAME_LENDABLE_PERCENT = "lendablePercent"; @SerializedName(SERIALIZED_NAME_LENDABLE_PERCENT) + @jakarta.annotation.Nullable private Integer lendablePercent; public static final String SERIALIZED_NAME_NOMINAL_CONCURRENCY_SHARES = "nominalConcurrencyShares"; @SerializedName(SERIALIZED_NAME_NOMINAL_CONCURRENCY_SHARES) + @jakarta.annotation.Nullable private Integer nominalConcurrencyShares; public V1ExemptPriorityLevelConfiguration() { } - public V1ExemptPriorityLevelConfiguration lendablePercent(Integer lendablePercent) { + public V1ExemptPriorityLevelConfiguration lendablePercent(@jakarta.annotation.Nullable Integer lendablePercent) { this.lendablePercent = lendablePercent; return this; } - /** + /** * `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) * @return lendablePercent - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )") public Integer getLendablePercent() { return lendablePercent; } - public void setLendablePercent(Integer lendablePercent) { + public void setLendablePercent(@jakarta.annotation.Nullable Integer lendablePercent) { this.lendablePercent = lendablePercent; } - public V1ExemptPriorityLevelConfiguration nominalConcurrencyShares(Integer nominalConcurrencyShares) { + public V1ExemptPriorityLevelConfiguration nominalConcurrencyShares(@jakarta.annotation.Nullable Integer nominalConcurrencyShares) { this.nominalConcurrencyShares = nominalConcurrencyShares; return this; } - /** + /** * `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values: NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero. * @return nominalConcurrencyShares - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values: NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.") public Integer getNominalConcurrencyShares() { return nominalConcurrencyShares; } - public void setNominalConcurrencyShares(Integer nominalConcurrencyShares) { + public void setNominalConcurrencyShares(@jakarta.annotation.Nullable Integer nominalConcurrencyShares) { this.nominalConcurrencyShares = nominalConcurrencyShares; } @@ -158,12 +159,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ExemptPriorityLevelConfiguration - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ExemptPriorityLevelConfiguration + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ExemptPriorityLevelConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -210,22 +211,22 @@ public V1ExemptPriorityLevelConfiguration read(JsonReader in) throws IOException } } - /** - * Create an instance of V1ExemptPriorityLevelConfiguration given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ExemptPriorityLevelConfiguration - * @throws IOException if the JSON string is invalid with respect to V1ExemptPriorityLevelConfiguration - */ + /** + * Create an instance of V1ExemptPriorityLevelConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ExemptPriorityLevelConfiguration + * @throws IOException if the JSON string is invalid with respect to V1ExemptPriorityLevelConfiguration + */ public static V1ExemptPriorityLevelConfiguration fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ExemptPriorityLevelConfiguration.class); } - /** - * Convert an instance of V1ExemptPriorityLevelConfiguration to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ExemptPriorityLevelConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java index 5980336ed0..fcc35c945c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * ExpressionWarning is a warning information that targets a specific expression. */ @ApiModel(description = "ExpressionWarning is a warning information that targets a specific expression.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ExpressionWarning { public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; @SerializedName(SERIALIZED_NAME_FIELD_REF) + @jakarta.annotation.Nonnull private String fieldRef; public static final String SERIALIZED_NAME_WARNING = "warning"; @SerializedName(SERIALIZED_NAME_WARNING) + @jakarta.annotation.Nonnull private String warning; public V1ExpressionWarning() { } - public V1ExpressionWarning fieldRef(String fieldRef) { + public V1ExpressionWarning fieldRef(@jakarta.annotation.Nonnull String fieldRef) { this.fieldRef = fieldRef; return this; } - /** + /** * The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\" * @return fieldRef - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"") public String getFieldRef() { return fieldRef; } - public void setFieldRef(String fieldRef) { + public void setFieldRef(@jakarta.annotation.Nonnull String fieldRef) { this.fieldRef = fieldRef; } - public V1ExpressionWarning warning(String warning) { + public V1ExpressionWarning warning(@jakarta.annotation.Nonnull String warning) { this.warning = warning; return this; } - /** + /** * The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler. * @return warning - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.") public String getWarning() { return warning; } - public void setWarning(String warning) { + public void setWarning(@jakarta.annotation.Nonnull String warning) { this.warning = warning; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("warning"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ExpressionWarning - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ExpressionWarning + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ExpressionWarning.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -225,22 +226,22 @@ public V1ExpressionWarning read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ExpressionWarning given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ExpressionWarning - * @throws IOException if the JSON string is invalid with respect to V1ExpressionWarning - */ + /** + * Create an instance of V1ExpressionWarning given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ExpressionWarning + * @throws IOException if the JSON string is invalid with respect to V1ExpressionWarning + */ public static V1ExpressionWarning fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ExpressionWarning.class); } - /** - * Convert an instance of V1ExpressionWarning to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ExpressionWarning to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java index 9f594ed3ef..3521a6c02d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * ExternalDocumentation allows referencing an external resource for extended documentation. */ @ApiModel(description = "ExternalDocumentation allows referencing an external resource for extended documentation.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ExternalDocumentation { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @jakarta.annotation.Nullable private String description; public static final String SERIALIZED_NAME_URL = "url"; @SerializedName(SERIALIZED_NAME_URL) + @jakarta.annotation.Nullable private String url; public V1ExternalDocumentation() { } - public V1ExternalDocumentation description(String description) { + public V1ExternalDocumentation description(@jakarta.annotation.Nullable String description) { this.description = description; return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public String getDescription() { return description; } - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nullable String description) { this.description = description; } - public V1ExternalDocumentation url(String url) { + public V1ExternalDocumentation url(@jakarta.annotation.Nullable String url) { this.url = url; return this; } - /** + /** * Get url * @return url - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public String getUrl() { return url; } - public void setUrl(String url) { + public void setUrl(@jakarta.annotation.Nullable String url) { this.url = url; } @@ -158,12 +159,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ExternalDocumentation - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ExternalDocumentation + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ExternalDocumentation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -216,22 +217,22 @@ public V1ExternalDocumentation read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ExternalDocumentation given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ExternalDocumentation - * @throws IOException if the JSON string is invalid with respect to V1ExternalDocumentation - */ + /** + * Create an instance of V1ExternalDocumentation given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ExternalDocumentation + * @throws IOException if the JSON string is invalid with respect to V1ExternalDocumentation + */ public static V1ExternalDocumentation fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ExternalDocumentation.class); } - /** - * Convert an instance of V1ExternalDocumentation to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ExternalDocumentation to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java index 8b29fd8795..31032a3cab 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,92 +52,97 @@ * Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1FCVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) + @jakarta.annotation.Nullable private String fsType; public static final String SERIALIZED_NAME_LUN = "lun"; @SerializedName(SERIALIZED_NAME_LUN) + @jakarta.annotation.Nullable private Integer lun; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_TARGET_W_W_NS = "targetWWNs"; @SerializedName(SERIALIZED_NAME_TARGET_W_W_NS) + @jakarta.annotation.Nullable private List targetWWNs = new ArrayList<>(); public static final String SERIALIZED_NAME_WWIDS = "wwids"; @SerializedName(SERIALIZED_NAME_WWIDS) + @jakarta.annotation.Nullable private List wwids = new ArrayList<>(); public V1FCVolumeSource() { } - public V1FCVolumeSource fsType(String fsType) { + public V1FCVolumeSource fsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; return this; } - /** + /** * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. * @return fsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.") public String getFsType() { return fsType; } - public void setFsType(String fsType) { + public void setFsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; } - public V1FCVolumeSource lun(Integer lun) { + public V1FCVolumeSource lun(@jakarta.annotation.Nullable Integer lun) { this.lun = lun; return this; } - /** + /** * lun is Optional: FC target lun number * @return lun - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "lun is Optional: FC target lun number") public Integer getLun() { return lun; } - public void setLun(Integer lun) { + public void setLun(@jakarta.annotation.Nullable Integer lun) { this.lun = lun; } - public V1FCVolumeSource readOnly(Boolean readOnly) { + public V1FCVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1FCVolumeSource targetWWNs(List targetWWNs) { + public V1FCVolumeSource targetWWNs(@jakarta.annotation.Nullable List targetWWNs) { this.targetWWNs = targetWWNs; return this; } @@ -151,22 +155,22 @@ public V1FCVolumeSource addTargetWWNsItem(String targetWWNsItem) { return this; } - /** + /** * targetWWNs is Optional: FC target worldwide names (WWNs) * @return targetWWNs - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "targetWWNs is Optional: FC target worldwide names (WWNs)") public List getTargetWWNs() { return targetWWNs; } - public void setTargetWWNs(List targetWWNs) { + public void setTargetWWNs(@jakarta.annotation.Nullable List targetWWNs) { this.targetWWNs = targetWWNs; } - public V1FCVolumeSource wwids(List wwids) { + public V1FCVolumeSource wwids(@jakarta.annotation.Nullable List wwids) { this.wwids = wwids; return this; } @@ -179,17 +183,17 @@ public V1FCVolumeSource addWwidsItem(String wwidsItem) { return this; } - /** + /** * wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. * @return wwids - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.") public List getWwids() { return wwids; } - public void setWwids(List wwids) { + public void setWwids(@jakarta.annotation.Nullable List wwids) { this.wwids = wwids; } @@ -257,12 +261,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1FCVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1FCVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FCVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -320,22 +324,22 @@ public V1FCVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1FCVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1FCVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1FCVolumeSource - */ + /** + * Create an instance of V1FCVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1FCVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1FCVolumeSource + */ public static V1FCVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1FCVolumeSource.class); } - /** - * Convert an instance of V1FCVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1FCVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java index 1d34b9371c..29dd02fb84 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,40 +53,42 @@ * FieldSelectorAttributes indicates a field limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid. */ @ApiModel(description = "FieldSelectorAttributes indicates a field limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1FieldSelectorAttributes { public static final String SERIALIZED_NAME_RAW_SELECTOR = "rawSelector"; @SerializedName(SERIALIZED_NAME_RAW_SELECTOR) + @jakarta.annotation.Nullable private String rawSelector; public static final String SERIALIZED_NAME_REQUIREMENTS = "requirements"; @SerializedName(SERIALIZED_NAME_REQUIREMENTS) + @jakarta.annotation.Nullable private List requirements = new ArrayList<>(); public V1FieldSelectorAttributes() { } - public V1FieldSelectorAttributes rawSelector(String rawSelector) { + public V1FieldSelectorAttributes rawSelector(@jakarta.annotation.Nullable String rawSelector) { this.rawSelector = rawSelector; return this; } - /** + /** * rawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present. * @return rawSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "rawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.") public String getRawSelector() { return rawSelector; } - public void setRawSelector(String rawSelector) { + public void setRawSelector(@jakarta.annotation.Nullable String rawSelector) { this.rawSelector = rawSelector; } - public V1FieldSelectorAttributes requirements(List requirements) { + public V1FieldSelectorAttributes requirements(@jakarta.annotation.Nullable List requirements) { this.requirements = requirements; return this; } @@ -100,17 +101,17 @@ public V1FieldSelectorAttributes addRequirementsItem(V1FieldSelectorRequirement return this; } - /** + /** * requirements is the parsed interpretation of a field selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood. * @return requirements - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "requirements is the parsed interpretation of a field selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood.") public List getRequirements() { return requirements; } - public void setRequirements(List requirements) { + public void setRequirements(@jakarta.annotation.Nullable List requirements) { this.requirements = requirements; } @@ -169,12 +170,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1FieldSelectorAttributes - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1FieldSelectorAttributes + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FieldSelectorAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -238,22 +239,22 @@ public V1FieldSelectorAttributes read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1FieldSelectorAttributes given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1FieldSelectorAttributes - * @throws IOException if the JSON string is invalid with respect to V1FieldSelectorAttributes - */ + /** + * Create an instance of V1FieldSelectorAttributes given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1FieldSelectorAttributes + * @throws IOException if the JSON string is invalid with respect to V1FieldSelectorAttributes + */ public static V1FieldSelectorAttributes fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1FieldSelectorAttributes.class); } - /** - * Convert an instance of V1FieldSelectorAttributes to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1FieldSelectorAttributes to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java index 3ea32e57eb..fa79467c01 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,64 +52,67 @@ * FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values. */ @ApiModel(description = "FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1FieldSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) + @jakarta.annotation.Nonnull private String key; public static final String SERIALIZED_NAME_OPERATOR = "operator"; @SerializedName(SERIALIZED_NAME_OPERATOR) + @jakarta.annotation.Nonnull private String operator; public static final String SERIALIZED_NAME_VALUES = "values"; @SerializedName(SERIALIZED_NAME_VALUES) + @jakarta.annotation.Nullable private List values = new ArrayList<>(); public V1FieldSelectorRequirement() { } - public V1FieldSelectorRequirement key(String key) { + public V1FieldSelectorRequirement key(@jakarta.annotation.Nonnull String key) { this.key = key; return this; } - /** + /** * key is the field selector key that the requirement applies to. * @return key - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "key is the field selector key that the requirement applies to.") public String getKey() { return key; } - public void setKey(String key) { + public void setKey(@jakarta.annotation.Nonnull String key) { this.key = key; } - public V1FieldSelectorRequirement operator(String operator) { + public V1FieldSelectorRequirement operator(@jakarta.annotation.Nonnull String operator) { this.operator = operator; return this; } - /** + /** * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future. * @return operator - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future.") public String getOperator() { return operator; } - public void setOperator(String operator) { + public void setOperator(@jakarta.annotation.Nonnull String operator) { this.operator = operator; } - public V1FieldSelectorRequirement values(List values) { + public V1FieldSelectorRequirement values(@jakarta.annotation.Nullable List values) { this.values = values; return this; } @@ -123,17 +125,17 @@ public V1FieldSelectorRequirement addValuesItem(String valuesItem) { return this; } - /** + /** * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. * @return values - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.") public List getValues() { return values; } - public void setValues(List values) { + public void setValues(@jakarta.annotation.Nullable List values) { this.values = values; } @@ -197,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("operator"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1FieldSelectorRequirement - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1FieldSelectorRequirement + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FieldSelectorRequirement.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -266,22 +268,22 @@ public V1FieldSelectorRequirement read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1FieldSelectorRequirement given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1FieldSelectorRequirement - * @throws IOException if the JSON string is invalid with respect to V1FieldSelectorRequirement - */ + /** + * Create an instance of V1FieldSelectorRequirement given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1FieldSelectorRequirement + * @throws IOException if the JSON string is invalid with respect to V1FieldSelectorRequirement + */ public static V1FieldSelectorRequirement fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1FieldSelectorRequirement.class); } - /** - * Convert an instance of V1FieldSelectorRequirement to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1FieldSelectorRequirement to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java index c42981e00f..ceb33cd9ef 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,72 +53,77 @@ * FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin. */ @ApiModel(description = "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1FlexPersistentVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) + @jakarta.annotation.Nonnull private String driver; public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) + @jakarta.annotation.Nullable private String fsType; public static final String SERIALIZED_NAME_OPTIONS = "options"; @SerializedName(SERIALIZED_NAME_OPTIONS) + @jakarta.annotation.Nullable private Map options = new HashMap<>(); public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; @SerializedName(SERIALIZED_NAME_SECRET_REF) + @jakarta.annotation.Nullable private V1SecretReference secretRef; public V1FlexPersistentVolumeSource() { } - public V1FlexPersistentVolumeSource driver(String driver) { + public V1FlexPersistentVolumeSource driver(@jakarta.annotation.Nonnull String driver) { this.driver = driver; return this; } - /** + /** * driver is the name of the driver to use for this volume. * @return driver - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "driver is the name of the driver to use for this volume.") public String getDriver() { return driver; } - public void setDriver(String driver) { + public void setDriver(@jakarta.annotation.Nonnull String driver) { this.driver = driver; } - public V1FlexPersistentVolumeSource fsType(String fsType) { + public V1FlexPersistentVolumeSource fsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; return this; } - /** + /** * fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. * @return fsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.") public String getFsType() { return fsType; } - public void setFsType(String fsType) { + public void setFsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; } - public V1FlexPersistentVolumeSource options(Map options) { + public V1FlexPersistentVolumeSource options(@jakarta.annotation.Nullable Map options) { this.options = options; return this; } @@ -132,57 +136,57 @@ public V1FlexPersistentVolumeSource putOptionsItem(String key, String optionsIte return this; } - /** + /** * options is Optional: this field holds extra command options if any. * @return options - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "options is Optional: this field holds extra command options if any.") public Map getOptions() { return options; } - public void setOptions(Map options) { + public void setOptions(@jakarta.annotation.Nullable Map options) { this.options = options; } - public V1FlexPersistentVolumeSource readOnly(Boolean readOnly) { + public V1FlexPersistentVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1FlexPersistentVolumeSource secretRef(V1SecretReference secretRef) { + public V1FlexPersistentVolumeSource secretRef(@jakarta.annotation.Nullable V1SecretReference secretRef) { this.secretRef = secretRef; return this; } - /** + /** * Get secretRef * @return secretRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SecretReference getSecretRef() { return secretRef; } - public void setSecretRef(V1SecretReference secretRef) { + public void setSecretRef(@jakarta.annotation.Nullable V1SecretReference secretRef) { this.secretRef = secretRef; } @@ -251,12 +255,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("driver"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1FlexPersistentVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1FlexPersistentVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FlexPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -320,22 +324,22 @@ public V1FlexPersistentVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1FlexPersistentVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1FlexPersistentVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1FlexPersistentVolumeSource - */ + /** + * Create an instance of V1FlexPersistentVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1FlexPersistentVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1FlexPersistentVolumeSource + */ public static V1FlexPersistentVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1FlexPersistentVolumeSource.class); } - /** - * Convert an instance of V1FlexPersistentVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1FlexPersistentVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java index 52b2690e8a..6efe803539 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,72 +53,77 @@ * FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. */ @ApiModel(description = "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1FlexVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) + @jakarta.annotation.Nonnull private String driver; public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) + @jakarta.annotation.Nullable private String fsType; public static final String SERIALIZED_NAME_OPTIONS = "options"; @SerializedName(SERIALIZED_NAME_OPTIONS) + @jakarta.annotation.Nullable private Map options = new HashMap<>(); public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; @SerializedName(SERIALIZED_NAME_SECRET_REF) + @jakarta.annotation.Nullable private V1LocalObjectReference secretRef; public V1FlexVolumeSource() { } - public V1FlexVolumeSource driver(String driver) { + public V1FlexVolumeSource driver(@jakarta.annotation.Nonnull String driver) { this.driver = driver; return this; } - /** + /** * driver is the name of the driver to use for this volume. * @return driver - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "driver is the name of the driver to use for this volume.") public String getDriver() { return driver; } - public void setDriver(String driver) { + public void setDriver(@jakarta.annotation.Nonnull String driver) { this.driver = driver; } - public V1FlexVolumeSource fsType(String fsType) { + public V1FlexVolumeSource fsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; return this; } - /** + /** * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. * @return fsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.") public String getFsType() { return fsType; } - public void setFsType(String fsType) { + public void setFsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; } - public V1FlexVolumeSource options(Map options) { + public V1FlexVolumeSource options(@jakarta.annotation.Nullable Map options) { this.options = options; return this; } @@ -132,57 +136,57 @@ public V1FlexVolumeSource putOptionsItem(String key, String optionsItem) { return this; } - /** + /** * options is Optional: this field holds extra command options if any. * @return options - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "options is Optional: this field holds extra command options if any.") public Map getOptions() { return options; } - public void setOptions(Map options) { + public void setOptions(@jakarta.annotation.Nullable Map options) { this.options = options; } - public V1FlexVolumeSource readOnly(Boolean readOnly) { + public V1FlexVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1FlexVolumeSource secretRef(V1LocalObjectReference secretRef) { + public V1FlexVolumeSource secretRef(@jakarta.annotation.Nullable V1LocalObjectReference secretRef) { this.secretRef = secretRef; return this; } - /** + /** * Get secretRef * @return secretRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LocalObjectReference getSecretRef() { return secretRef; } - public void setSecretRef(V1LocalObjectReference secretRef) { + public void setSecretRef(@jakarta.annotation.Nullable V1LocalObjectReference secretRef) { this.secretRef = secretRef; } @@ -251,12 +255,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("driver"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1FlexVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1FlexVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FlexVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -320,22 +324,22 @@ public V1FlexVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1FlexVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1FlexVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1FlexVolumeSource - */ + /** + * Create an instance of V1FlexVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1FlexVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1FlexVolumeSource + */ public static V1FlexVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1FlexVolumeSource.class); } - /** - * Convert an instance of V1FlexVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1FlexVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java index bee3819099..8746d7dda5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1FlockerVolumeSource { public static final String SERIALIZED_NAME_DATASET_NAME = "datasetName"; @SerializedName(SERIALIZED_NAME_DATASET_NAME) + @jakarta.annotation.Nullable private String datasetName; public static final String SERIALIZED_NAME_DATASET_U_U_I_D = "datasetUUID"; @SerializedName(SERIALIZED_NAME_DATASET_U_U_I_D) + @jakarta.annotation.Nullable private String datasetUUID; public V1FlockerVolumeSource() { } - public V1FlockerVolumeSource datasetName(String datasetName) { + public V1FlockerVolumeSource datasetName(@jakarta.annotation.Nullable String datasetName) { this.datasetName = datasetName; return this; } - /** + /** * datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated * @return datasetName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated") public String getDatasetName() { return datasetName; } - public void setDatasetName(String datasetName) { + public void setDatasetName(@jakarta.annotation.Nullable String datasetName) { this.datasetName = datasetName; } - public V1FlockerVolumeSource datasetUUID(String datasetUUID) { + public V1FlockerVolumeSource datasetUUID(@jakarta.annotation.Nullable String datasetUUID) { this.datasetUUID = datasetUUID; return this; } - /** + /** * datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset * @return datasetUUID - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset") public String getDatasetUUID() { return datasetUUID; } - public void setDatasetUUID(String datasetUUID) { + public void setDatasetUUID(@jakarta.annotation.Nullable String datasetUUID) { this.datasetUUID = datasetUUID; } @@ -158,12 +159,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1FlockerVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1FlockerVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FlockerVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -216,22 +217,22 @@ public V1FlockerVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1FlockerVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1FlockerVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1FlockerVolumeSource - */ + /** + * Create an instance of V1FlockerVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1FlockerVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1FlockerVolumeSource + */ public static V1FlockerVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1FlockerVolumeSource.class); } - /** - * Convert an instance of V1FlockerVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1FlockerVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethod.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethod.java index 99f5875369..9e4f1e9a6c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethod.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethod.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * FlowDistinguisherMethod specifies the method of a flow distinguisher. */ @ApiModel(description = "FlowDistinguisherMethod specifies the method of a flow distinguisher.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1FlowDistinguisherMethod { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1FlowDistinguisherMethod() { } - public V1FlowDistinguisherMethod type(String type) { + public V1FlowDistinguisherMethod type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * `type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1FlowDistinguisherMethod - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1FlowDistinguisherMethod + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FlowDistinguisherMethod.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -194,22 +194,22 @@ public V1FlowDistinguisherMethod read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1FlowDistinguisherMethod given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1FlowDistinguisherMethod - * @throws IOException if the JSON string is invalid with respect to V1FlowDistinguisherMethod - */ + /** + * Create an instance of V1FlowDistinguisherMethod given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1FlowDistinguisherMethod + * @throws IOException if the JSON string is invalid with respect to V1FlowDistinguisherMethod + */ public static V1FlowDistinguisherMethod fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1FlowDistinguisherMethod.class); } - /** - * Convert an instance of V1FlowDistinguisherMethod to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1FlowDistinguisherMethod to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchema.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchema.java index 76b2f59cc7..be0d0c55b3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchema.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchema.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\". */ @ApiModel(description = "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1FlowSchema implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1FlowSchemaSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1FlowSchemaStatus status; public V1FlowSchema() { } - public V1FlowSchema apiVersion(String apiVersion) { + public V1FlowSchema apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1FlowSchema kind(String kind) { + public V1FlowSchema kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1FlowSchema metadata(V1ObjectMeta metadata) { + public V1FlowSchema metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1FlowSchema spec(V1FlowSchemaSpec spec) { + public V1FlowSchema spec(@jakarta.annotation.Nullable V1FlowSchemaSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1FlowSchemaSpec getSpec() { return spec; } - public void setSpec(V1FlowSchemaSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1FlowSchemaSpec spec) { this.spec = spec; } - public V1FlowSchema status(V1FlowSchemaStatus status) { + public V1FlowSchema status(@jakarta.annotation.Nullable V1FlowSchemaStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1FlowSchemaStatus getStatus() { return status; } - public void setStatus(V1FlowSchemaStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1FlowSchemaStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1FlowSchema - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1FlowSchema + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FlowSchema.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1FlowSchema read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1FlowSchema given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1FlowSchema - * @throws IOException if the JSON string is invalid with respect to V1FlowSchema - */ + /** + * Create an instance of V1FlowSchema given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1FlowSchema + * @throws IOException if the JSON string is invalid with respect to V1FlowSchema + */ public static V1FlowSchema fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1FlowSchema.class); } - /** - * Convert an instance of V1FlowSchema to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1FlowSchema to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java index 1b31d7ae69..d97629a768 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,127 +51,132 @@ * FlowSchemaCondition describes conditions for a FlowSchema. */ @ApiModel(description = "FlowSchemaCondition describes conditions for a FlowSchema.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1FlowSchemaCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nullable private String type; public V1FlowSchemaCondition() { } - public V1FlowSchemaCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { + public V1FlowSchemaCondition lastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; } - /** + /** * `lastTransitionTime` is the last time the condition transitioned from one status to another. * @return lastTransitionTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`lastTransitionTime` is the last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { + public void setLastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } - public V1FlowSchemaCondition message(String message) { + public V1FlowSchemaCondition message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * `message` is a human-readable message indicating details about last transition. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`message` is a human-readable message indicating details about last transition.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1FlowSchemaCondition reason(String reason) { + public V1FlowSchemaCondition reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * `reason` is a unique, one-word, CamelCase reason for the condition's last transition. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } - public V1FlowSchemaCondition status(String status) { + public V1FlowSchemaCondition status(@jakarta.annotation.Nullable String status) { this.status = status; return this; } - /** + /** * `status` is the status of the condition. Can be True, False, Unknown. Required. * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`status` is the status of the condition. Can be True, False, Unknown. Required.") public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nullable String status) { this.status = status; } - public V1FlowSchemaCondition type(String type) { + public V1FlowSchemaCondition type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } - /** + /** * `type` is the type of the condition. Required. * @return type - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`type` is the type of the condition. Required.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } @@ -240,12 +244,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1FlowSchemaCondition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1FlowSchemaCondition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FlowSchemaCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +308,22 @@ public V1FlowSchemaCondition read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1FlowSchemaCondition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1FlowSchemaCondition - * @throws IOException if the JSON string is invalid with respect to V1FlowSchemaCondition - */ + /** + * Create an instance of V1FlowSchemaCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1FlowSchemaCondition + * @throws IOException if the JSON string is invalid with respect to V1FlowSchemaCondition + */ public static V1FlowSchemaCondition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1FlowSchemaCondition.class); } - /** - * Convert an instance of V1FlowSchemaCondition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1FlowSchemaCondition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java index c56c69134c..a06c8bbeac 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * FlowSchemaList is a list of FlowSchema objects. */ @ApiModel(description = "FlowSchemaList is a list of FlowSchema objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1FlowSchemaList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1FlowSchemaList() { } - public V1FlowSchemaList apiVersion(String apiVersion) { + public V1FlowSchemaList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1FlowSchemaList items(List items) { + public V1FlowSchemaList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1FlowSchemaList addItemsItem(V1FlowSchema itemsItem) { return this; } - /** + /** * `items` is a list of FlowSchemas. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "`items` is a list of FlowSchemas.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1FlowSchemaList kind(String kind) { + public V1FlowSchemaList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1FlowSchemaList metadata(V1ListMeta metadata) { + public V1FlowSchemaList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1FlowSchemaList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1FlowSchemaList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FlowSchemaList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1FlowSchemaList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1FlowSchemaList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1FlowSchemaList - * @throws IOException if the JSON string is invalid with respect to V1FlowSchemaList - */ + /** + * Create an instance of V1FlowSchemaList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1FlowSchemaList + * @throws IOException if the JSON string is invalid with respect to V1FlowSchemaList + */ public static V1FlowSchemaList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1FlowSchemaList.class); } - /** - * Convert an instance of V1FlowSchemaList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1FlowSchemaList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java index 881cde264f..5a562faecf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java @@ -43,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -56,88 +55,92 @@ * FlowSchemaSpec describes how the FlowSchema's specification looks like. */ @ApiModel(description = "FlowSchemaSpec describes how the FlowSchema's specification looks like.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1FlowSchemaSpec { public static final String SERIALIZED_NAME_DISTINGUISHER_METHOD = "distinguisherMethod"; @SerializedName(SERIALIZED_NAME_DISTINGUISHER_METHOD) + @jakarta.annotation.Nullable private V1FlowDistinguisherMethod distinguisherMethod; public static final String SERIALIZED_NAME_MATCHING_PRECEDENCE = "matchingPrecedence"; @SerializedName(SERIALIZED_NAME_MATCHING_PRECEDENCE) + @jakarta.annotation.Nullable private Integer matchingPrecedence; public static final String SERIALIZED_NAME_PRIORITY_LEVEL_CONFIGURATION = "priorityLevelConfiguration"; @SerializedName(SERIALIZED_NAME_PRIORITY_LEVEL_CONFIGURATION) + @jakarta.annotation.Nonnull private V1PriorityLevelConfigurationReference priorityLevelConfiguration; public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) + @jakarta.annotation.Nullable private List rules = new ArrayList<>(); public V1FlowSchemaSpec() { } - public V1FlowSchemaSpec distinguisherMethod(V1FlowDistinguisherMethod distinguisherMethod) { + public V1FlowSchemaSpec distinguisherMethod(@jakarta.annotation.Nullable V1FlowDistinguisherMethod distinguisherMethod) { this.distinguisherMethod = distinguisherMethod; return this; } - /** + /** * Get distinguisherMethod * @return distinguisherMethod - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1FlowDistinguisherMethod getDistinguisherMethod() { return distinguisherMethod; } - public void setDistinguisherMethod(V1FlowDistinguisherMethod distinguisherMethod) { + public void setDistinguisherMethod(@jakarta.annotation.Nullable V1FlowDistinguisherMethod distinguisherMethod) { this.distinguisherMethod = distinguisherMethod; } - public V1FlowSchemaSpec matchingPrecedence(Integer matchingPrecedence) { + public V1FlowSchemaSpec matchingPrecedence(@jakarta.annotation.Nullable Integer matchingPrecedence) { this.matchingPrecedence = matchingPrecedence; return this; } - /** + /** * `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. * @return matchingPrecedence - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.") public Integer getMatchingPrecedence() { return matchingPrecedence; } - public void setMatchingPrecedence(Integer matchingPrecedence) { + public void setMatchingPrecedence(@jakarta.annotation.Nullable Integer matchingPrecedence) { this.matchingPrecedence = matchingPrecedence; } - public V1FlowSchemaSpec priorityLevelConfiguration(V1PriorityLevelConfigurationReference priorityLevelConfiguration) { + public V1FlowSchemaSpec priorityLevelConfiguration(@jakarta.annotation.Nonnull V1PriorityLevelConfigurationReference priorityLevelConfiguration) { this.priorityLevelConfiguration = priorityLevelConfiguration; return this; } - /** + /** * Get priorityLevelConfiguration * @return priorityLevelConfiguration - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1PriorityLevelConfigurationReference getPriorityLevelConfiguration() { return priorityLevelConfiguration; } - public void setPriorityLevelConfiguration(V1PriorityLevelConfigurationReference priorityLevelConfiguration) { + public void setPriorityLevelConfiguration(@jakarta.annotation.Nonnull V1PriorityLevelConfigurationReference priorityLevelConfiguration) { this.priorityLevelConfiguration = priorityLevelConfiguration; } - public V1FlowSchemaSpec rules(List rules) { + public V1FlowSchemaSpec rules(@jakarta.annotation.Nullable List rules) { this.rules = rules; return this; } @@ -150,17 +153,17 @@ public V1FlowSchemaSpec addRulesItem(V1PolicyRulesWithSubjects rulesItem) { return this; } - /** + /** * `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. * @return rules - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.") public List getRules() { return rules; } - public void setRules(List rules) { + public void setRules(@jakarta.annotation.Nullable List rules) { this.rules = rules; } @@ -226,12 +229,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("priorityLevelConfiguration"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1FlowSchemaSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1FlowSchemaSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FlowSchemaSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -305,22 +308,22 @@ public V1FlowSchemaSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1FlowSchemaSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1FlowSchemaSpec - * @throws IOException if the JSON string is invalid with respect to V1FlowSchemaSpec - */ + /** + * Create an instance of V1FlowSchemaSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1FlowSchemaSpec + * @throws IOException if the JSON string is invalid with respect to V1FlowSchemaSpec + */ public static V1FlowSchemaSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1FlowSchemaSpec.class); } - /** - * Convert an instance of V1FlowSchemaSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1FlowSchemaSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java index 519323e0dd..fb38ae41ad 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,16 +53,17 @@ * FlowSchemaStatus represents the current state of a FlowSchema. */ @ApiModel(description = "FlowSchemaStatus represents the current state of a FlowSchema.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1FlowSchemaStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); public V1FlowSchemaStatus() { } - public V1FlowSchemaStatus conditions(List conditions) { + public V1FlowSchemaStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } @@ -76,17 +76,17 @@ public V1FlowSchemaStatus addConditionsItem(V1FlowSchemaCondition conditionsItem return this; } - /** + /** * `conditions` is a list of the current states of FlowSchema. * @return conditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`conditions` is a list of the current states of FlowSchema.") public List getConditions() { return conditions; } - public void setConditions(List conditions) { + public void setConditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; } @@ -142,12 +142,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1FlowSchemaStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1FlowSchemaStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FlowSchemaStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -208,22 +208,22 @@ public V1FlowSchemaStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1FlowSchemaStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1FlowSchemaStatus - * @throws IOException if the JSON string is invalid with respect to V1FlowSchemaStatus - */ + /** + * Create an instance of V1FlowSchemaStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1FlowSchemaStatus + * @throws IOException if the JSON string is invalid with respect to V1FlowSchemaStatus + */ public static V1FlowSchemaStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1FlowSchemaStatus.class); } - /** - * Convert an instance of V1FlowSchemaStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1FlowSchemaStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForNode.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForNode.java new file mode 100644 index 0000000000..e9a9ef3222 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForNode.java @@ -0,0 +1,216 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * ForNode provides information about which nodes should consume this endpoint. + */ +@ApiModel(description = "ForNode provides information about which nodes should consume this endpoint.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1ForNode { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull + private String name; + + public V1ForNode() { + } + + public V1ForNode name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * name represents the name of the node. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name represents the name of the node.") + public String getName() { + return name; + } + + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ForNode v1ForNode = (V1ForNode) o; + return Objects.equals(this.name, v1ForNode.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ForNode {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ForNode + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1ForNode.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ForNode is not found in the empty JSON string", V1ForNode.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1ForNode.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ForNode` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ForNode.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ForNode.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ForNode' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ForNode.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ForNode value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ForNode read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ForNode given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ForNode + * @throws IOException if the JSON string is invalid with respect to V1ForNode + */ + public static V1ForNode fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ForNode.class); + } + + /** + * Convert an instance of V1ForNode to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java index 1163d7c581..d0ba048a88 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * ForZone provides information about which zones should consume this endpoint. */ @ApiModel(description = "ForZone provides information about which zones should consume this endpoint.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ForZone { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public V1ForZone() { } - public V1ForZone name(String name) { + public V1ForZone name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * name represents the name of the zone. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "name represents the name of the zone.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ForZone - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ForZone + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ForZone.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -194,22 +194,22 @@ public V1ForZone read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ForZone given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ForZone - * @throws IOException if the JSON string is invalid with respect to V1ForZone - */ + /** + * Create an instance of V1ForZone given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ForZone + * @throws IOException if the JSON string is invalid with respect to V1ForZone + */ public static V1ForZone fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ForZone.class); } - /** - * Convert an instance of V1ForZone to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ForZone to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java index 7354033540..a23cfea3b3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,103 +50,107 @@ * Represents a Persistent Disk resource in Google Compute Engine. A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a Persistent Disk resource in Google Compute Engine. A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1GCEPersistentDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) + @jakarta.annotation.Nullable private String fsType; public static final String SERIALIZED_NAME_PARTITION = "partition"; @SerializedName(SERIALIZED_NAME_PARTITION) + @jakarta.annotation.Nullable private Integer partition; public static final String SERIALIZED_NAME_PD_NAME = "pdName"; @SerializedName(SERIALIZED_NAME_PD_NAME) + @jakarta.annotation.Nonnull private String pdName; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public V1GCEPersistentDiskVolumeSource() { } - public V1GCEPersistentDiskVolumeSource fsType(String fsType) { + public V1GCEPersistentDiskVolumeSource fsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; return this; } - /** + /** * fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk * @return fsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk") public String getFsType() { return fsType; } - public void setFsType(String fsType) { + public void setFsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; } - public V1GCEPersistentDiskVolumeSource partition(Integer partition) { + public V1GCEPersistentDiskVolumeSource partition(@jakarta.annotation.Nullable Integer partition) { this.partition = partition; return this; } - /** + /** * partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk * @return partition - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk") public Integer getPartition() { return partition; } - public void setPartition(Integer partition) { + public void setPartition(@jakarta.annotation.Nullable Integer partition) { this.partition = partition; } - public V1GCEPersistentDiskVolumeSource pdName(String pdName) { + public V1GCEPersistentDiskVolumeSource pdName(@jakarta.annotation.Nonnull String pdName) { this.pdName = pdName; return this; } - /** + /** * pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk * @return pdName - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk") public String getPdName() { return pdName; } - public void setPdName(String pdName) { + public void setPdName(@jakarta.annotation.Nonnull String pdName) { this.pdName = pdName; } - public V1GCEPersistentDiskVolumeSource readOnly(Boolean readOnly) { + public V1GCEPersistentDiskVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } @@ -213,12 +216,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("pdName"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1GCEPersistentDiskVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1GCEPersistentDiskVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1GCEPersistentDiskVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -278,22 +281,22 @@ public V1GCEPersistentDiskVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1GCEPersistentDiskVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1GCEPersistentDiskVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1GCEPersistentDiskVolumeSource - */ + /** + * Create an instance of V1GCEPersistentDiskVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1GCEPersistentDiskVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1GCEPersistentDiskVolumeSource + */ public static V1GCEPersistentDiskVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1GCEPersistentDiskVolumeSource.class); } - /** - * Convert an instance of V1GCEPersistentDiskVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1GCEPersistentDiskVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java index f4006784e3..e533b546d4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * GRPCAction specifies an action involving a GRPC service. */ @ApiModel(description = "GRPCAction specifies an action involving a GRPC service.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1GRPCAction { public static final String SERIALIZED_NAME_PORT = "port"; @SerializedName(SERIALIZED_NAME_PORT) + @jakarta.annotation.Nonnull private Integer port; public static final String SERIALIZED_NAME_SERVICE = "service"; @SerializedName(SERIALIZED_NAME_SERVICE) + @jakarta.annotation.Nullable private String service; public V1GRPCAction() { } - public V1GRPCAction port(Integer port) { + public V1GRPCAction port(@jakarta.annotation.Nonnull Integer port) { this.port = port; return this; } - /** + /** * Port number of the gRPC service. Number must be in the range 1 to 65535. * @return port - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Port number of the gRPC service. Number must be in the range 1 to 65535.") public Integer getPort() { return port; } - public void setPort(Integer port) { + public void setPort(@jakarta.annotation.Nonnull Integer port) { this.port = port; } - public V1GRPCAction service(String service) { + public V1GRPCAction service(@jakarta.annotation.Nullable String service) { this.service = service; return this; } - /** + /** * Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC. * @return service - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.") public String getService() { return service; } - public void setService(String service) { + public void setService(@jakarta.annotation.Nullable String service) { this.service = service; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("port"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1GRPCAction - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1GRPCAction + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1GRPCAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -221,22 +222,22 @@ public V1GRPCAction read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1GRPCAction given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1GRPCAction - * @throws IOException if the JSON string is invalid with respect to V1GRPCAction - */ + /** + * Create an instance of V1GRPCAction given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1GRPCAction + * @throws IOException if the JSON string is invalid with respect to V1GRPCAction + */ public static V1GRPCAction fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1GRPCAction.class); } - /** - * Convert an instance of V1GRPCAction to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1GRPCAction to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSource.java index f5d2dff855..0bf7166e44 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,79 +50,82 @@ * Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. */ @ApiModel(description = "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1GitRepoVolumeSource { public static final String SERIALIZED_NAME_DIRECTORY = "directory"; @SerializedName(SERIALIZED_NAME_DIRECTORY) + @jakarta.annotation.Nullable private String directory; public static final String SERIALIZED_NAME_REPOSITORY = "repository"; @SerializedName(SERIALIZED_NAME_REPOSITORY) + @jakarta.annotation.Nonnull private String repository; public static final String SERIALIZED_NAME_REVISION = "revision"; @SerializedName(SERIALIZED_NAME_REVISION) + @jakarta.annotation.Nullable private String revision; public V1GitRepoVolumeSource() { } - public V1GitRepoVolumeSource directory(String directory) { + public V1GitRepoVolumeSource directory(@jakarta.annotation.Nullable String directory) { this.directory = directory; return this; } - /** + /** * directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. * @return directory - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.") public String getDirectory() { return directory; } - public void setDirectory(String directory) { + public void setDirectory(@jakarta.annotation.Nullable String directory) { this.directory = directory; } - public V1GitRepoVolumeSource repository(String repository) { + public V1GitRepoVolumeSource repository(@jakarta.annotation.Nonnull String repository) { this.repository = repository; return this; } - /** + /** * repository is the URL * @return repository - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "repository is the URL") public String getRepository() { return repository; } - public void setRepository(String repository) { + public void setRepository(@jakarta.annotation.Nonnull String repository) { this.repository = repository; } - public V1GitRepoVolumeSource revision(String revision) { + public V1GitRepoVolumeSource revision(@jakarta.annotation.Nullable String revision) { this.revision = revision; return this; } - /** + /** * revision is the commit hash for the specified revision. * @return revision - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "revision is the commit hash for the specified revision.") public String getRevision() { return revision; } - public void setRevision(String revision) { + public void setRevision(@jakarta.annotation.Nullable String revision) { this.revision = revision; } @@ -186,12 +188,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("repository"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1GitRepoVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1GitRepoVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1GitRepoVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -254,22 +256,22 @@ public V1GitRepoVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1GitRepoVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1GitRepoVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1GitRepoVolumeSource - */ + /** + * Create an instance of V1GitRepoVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1GitRepoVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1GitRepoVolumeSource + */ public static V1GitRepoVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1GitRepoVolumeSource.class); } - /** - * Convert an instance of V1GitRepoVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1GitRepoVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java index 252842bb14..784da4f239 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,103 +50,107 @@ * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1GlusterfsPersistentVolumeSource { public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; @SerializedName(SERIALIZED_NAME_ENDPOINTS) + @jakarta.annotation.Nonnull private String endpoints; public static final String SERIALIZED_NAME_ENDPOINTS_NAMESPACE = "endpointsNamespace"; @SerializedName(SERIALIZED_NAME_ENDPOINTS_NAMESPACE) + @jakarta.annotation.Nullable private String endpointsNamespace; public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) + @jakarta.annotation.Nonnull private String path; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public V1GlusterfsPersistentVolumeSource() { } - public V1GlusterfsPersistentVolumeSource endpoints(String endpoints) { + public V1GlusterfsPersistentVolumeSource endpoints(@jakarta.annotation.Nonnull String endpoints) { this.endpoints = endpoints; return this; } - /** + /** * endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod * @return endpoints - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod") public String getEndpoints() { return endpoints; } - public void setEndpoints(String endpoints) { + public void setEndpoints(@jakarta.annotation.Nonnull String endpoints) { this.endpoints = endpoints; } - public V1GlusterfsPersistentVolumeSource endpointsNamespace(String endpointsNamespace) { + public V1GlusterfsPersistentVolumeSource endpointsNamespace(@jakarta.annotation.Nullable String endpointsNamespace) { this.endpointsNamespace = endpointsNamespace; return this; } - /** + /** * endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod * @return endpointsNamespace - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod") public String getEndpointsNamespace() { return endpointsNamespace; } - public void setEndpointsNamespace(String endpointsNamespace) { + public void setEndpointsNamespace(@jakarta.annotation.Nullable String endpointsNamespace) { this.endpointsNamespace = endpointsNamespace; } - public V1GlusterfsPersistentVolumeSource path(String path) { + public V1GlusterfsPersistentVolumeSource path(@jakarta.annotation.Nonnull String path) { this.path = path; return this; } - /** + /** * path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod * @return path - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod") public String getPath() { return path; } - public void setPath(String path) { + public void setPath(@jakarta.annotation.Nonnull String path) { this.path = path; } - public V1GlusterfsPersistentVolumeSource readOnly(Boolean readOnly) { + public V1GlusterfsPersistentVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("path"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1GlusterfsPersistentVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1GlusterfsPersistentVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1GlusterfsPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -282,22 +285,22 @@ public V1GlusterfsPersistentVolumeSource read(JsonReader in) throws IOException } } - /** - * Create an instance of V1GlusterfsPersistentVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1GlusterfsPersistentVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1GlusterfsPersistentVolumeSource - */ + /** + * Create an instance of V1GlusterfsPersistentVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1GlusterfsPersistentVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1GlusterfsPersistentVolumeSource + */ public static V1GlusterfsPersistentVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1GlusterfsPersistentVolumeSource.class); } - /** - * Convert an instance of V1GlusterfsPersistentVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1GlusterfsPersistentVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java index f86a28c102..85b8ba1ec1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,79 +50,82 @@ * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1GlusterfsVolumeSource { public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; @SerializedName(SERIALIZED_NAME_ENDPOINTS) + @jakarta.annotation.Nonnull private String endpoints; public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) + @jakarta.annotation.Nonnull private String path; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public V1GlusterfsVolumeSource() { } - public V1GlusterfsVolumeSource endpoints(String endpoints) { + public V1GlusterfsVolumeSource endpoints(@jakarta.annotation.Nonnull String endpoints) { this.endpoints = endpoints; return this; } - /** + /** * endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod * @return endpoints - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod") public String getEndpoints() { return endpoints; } - public void setEndpoints(String endpoints) { + public void setEndpoints(@jakarta.annotation.Nonnull String endpoints) { this.endpoints = endpoints; } - public V1GlusterfsVolumeSource path(String path) { + public V1GlusterfsVolumeSource path(@jakarta.annotation.Nonnull String path) { this.path = path; return this; } - /** + /** * path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod * @return path - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod") public String getPath() { return path; } - public void setPath(String path) { + public void setPath(@jakarta.annotation.Nonnull String path) { this.path = path; } - public V1GlusterfsVolumeSource readOnly(Boolean readOnly) { + public V1GlusterfsVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } @@ -187,12 +189,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("path"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1GlusterfsVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1GlusterfsVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1GlusterfsVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -252,22 +254,22 @@ public V1GlusterfsVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1GlusterfsVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1GlusterfsVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1GlusterfsVolumeSource - */ + /** + * Create an instance of V1GlusterfsVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1GlusterfsVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1GlusterfsVolumeSource + */ public static V1GlusterfsVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1GlusterfsVolumeSource.class); } - /** - * Convert an instance of V1GlusterfsVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1GlusterfsVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java index 4def560506..3b21e7664d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * GroupSubject holds detailed information for group-kind subject. */ @ApiModel(description = "GroupSubject holds detailed information for group-kind subject.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1GroupSubject { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public V1GroupSubject() { } - public V1GroupSubject name(String name) { + public V1GroupSubject name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1GroupSubject - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1GroupSubject + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1GroupSubject.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -194,22 +194,22 @@ public V1GroupSubject read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1GroupSubject given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1GroupSubject - * @throws IOException if the JSON string is invalid with respect to V1GroupSubject - */ + /** + * Create an instance of V1GroupSubject given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1GroupSubject + * @throws IOException if the JSON string is invalid with respect to V1GroupSubject + */ public static V1GroupSubject fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1GroupSubject.class); } - /** - * Convert an instance of V1GroupSubject to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1GroupSubject to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java index 00ff4a5983..a961ebd8a3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility. */ @ApiModel(description = "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1GroupVersionForDiscovery { public static final String SERIALIZED_NAME_GROUP_VERSION = "groupVersion"; @SerializedName(SERIALIZED_NAME_GROUP_VERSION) + @jakarta.annotation.Nonnull private String groupVersion; public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) + @jakarta.annotation.Nonnull private String version; public V1GroupVersionForDiscovery() { } - public V1GroupVersionForDiscovery groupVersion(String groupVersion) { + public V1GroupVersionForDiscovery groupVersion(@jakarta.annotation.Nonnull String groupVersion) { this.groupVersion = groupVersion; return this; } - /** + /** * groupVersion specifies the API group and version in the form \"group/version\" * @return groupVersion - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "groupVersion specifies the API group and version in the form \"group/version\"") public String getGroupVersion() { return groupVersion; } - public void setGroupVersion(String groupVersion) { + public void setGroupVersion(@jakarta.annotation.Nonnull String groupVersion) { this.groupVersion = groupVersion; } - public V1GroupVersionForDiscovery version(String version) { + public V1GroupVersionForDiscovery version(@jakarta.annotation.Nonnull String version) { this.version = version; return this; } - /** + /** * version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. * @return version - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.") public String getVersion() { return version; } - public void setVersion(String version) { + public void setVersion(@jakarta.annotation.Nonnull String version) { this.version = version; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("version"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1GroupVersionForDiscovery - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1GroupVersionForDiscovery + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1GroupVersionForDiscovery.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -225,22 +226,22 @@ public V1GroupVersionForDiscovery read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1GroupVersionForDiscovery given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1GroupVersionForDiscovery - * @throws IOException if the JSON string is invalid with respect to V1GroupVersionForDiscovery - */ + /** + * Create an instance of V1GroupVersionForDiscovery given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1GroupVersionForDiscovery + * @throws IOException if the JSON string is invalid with respect to V1GroupVersionForDiscovery + */ public static V1GroupVersionForDiscovery fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1GroupVersionForDiscovery.class); } - /** - * Convert an instance of V1GroupVersionForDiscovery to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1GroupVersionForDiscovery to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java index bf3a135cdb..ab1ede2380 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,52 +54,57 @@ * HTTPGetAction describes an action based on HTTP Get requests. */ @ApiModel(description = "HTTPGetAction describes an action based on HTTP Get requests.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1HTTPGetAction { public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) + @jakarta.annotation.Nullable private String host; public static final String SERIALIZED_NAME_HTTP_HEADERS = "httpHeaders"; @SerializedName(SERIALIZED_NAME_HTTP_HEADERS) + @jakarta.annotation.Nullable private List httpHeaders = new ArrayList<>(); public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) + @jakarta.annotation.Nullable private String path; public static final String SERIALIZED_NAME_PORT = "port"; @SerializedName(SERIALIZED_NAME_PORT) + @jakarta.annotation.Nonnull private IntOrString port; public static final String SERIALIZED_NAME_SCHEME = "scheme"; @SerializedName(SERIALIZED_NAME_SCHEME) + @jakarta.annotation.Nullable private String scheme; public V1HTTPGetAction() { } - public V1HTTPGetAction host(String host) { + public V1HTTPGetAction host(@jakarta.annotation.Nullable String host) { this.host = host; return this; } - /** + /** * Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. * @return host - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.") public String getHost() { return host; } - public void setHost(String host) { + public void setHost(@jakarta.annotation.Nullable String host) { this.host = host; } - public V1HTTPGetAction httpHeaders(List httpHeaders) { + public V1HTTPGetAction httpHeaders(@jakarta.annotation.Nullable List httpHeaders) { this.httpHeaders = httpHeaders; return this; } @@ -113,77 +117,77 @@ public V1HTTPGetAction addHttpHeadersItem(V1HTTPHeader httpHeadersItem) { return this; } - /** + /** * Custom headers to set in the request. HTTP allows repeated headers. * @return httpHeaders - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Custom headers to set in the request. HTTP allows repeated headers.") public List getHttpHeaders() { return httpHeaders; } - public void setHttpHeaders(List httpHeaders) { + public void setHttpHeaders(@jakarta.annotation.Nullable List httpHeaders) { this.httpHeaders = httpHeaders; } - public V1HTTPGetAction path(String path) { + public V1HTTPGetAction path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } - /** + /** * Path to access on the HTTP server. * @return path - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Path to access on the HTTP server.") public String getPath() { return path; } - public void setPath(String path) { + public void setPath(@jakarta.annotation.Nullable String path) { this.path = path; } - public V1HTTPGetAction port(IntOrString port) { + public V1HTTPGetAction port(@jakarta.annotation.Nonnull IntOrString port) { this.port = port; return this; } - /** + /** * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return port - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") public IntOrString getPort() { return port; } - public void setPort(IntOrString port) { + public void setPort(@jakarta.annotation.Nonnull IntOrString port) { this.port = port; } - public V1HTTPGetAction scheme(String scheme) { + public V1HTTPGetAction scheme(@jakarta.annotation.Nullable String scheme) { this.scheme = scheme; return this; } - /** + /** * Scheme to use for connecting to the host. Defaults to HTTP. * @return scheme - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Scheme to use for connecting to the host. Defaults to HTTP.") public String getScheme() { return scheme; } - public void setScheme(String scheme) { + public void setScheme(@jakarta.annotation.Nullable String scheme) { this.scheme = scheme; } @@ -252,12 +256,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("port"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1HTTPGetAction - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1HTTPGetAction + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1HTTPGetAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -337,22 +341,22 @@ public V1HTTPGetAction read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1HTTPGetAction given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1HTTPGetAction - * @throws IOException if the JSON string is invalid with respect to V1HTTPGetAction - */ + /** + * Create an instance of V1HTTPGetAction given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1HTTPGetAction + * @throws IOException if the JSON string is invalid with respect to V1HTTPGetAction + */ public static V1HTTPGetAction fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1HTTPGetAction.class); } - /** - * Convert an instance of V1HTTPGetAction to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1HTTPGetAction to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeader.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeader.java index 4b54594302..e35befdd85 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeader.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeader.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * HTTPHeader describes a custom header to be used in HTTP probes */ @ApiModel(description = "HTTPHeader describes a custom header to be used in HTTP probes") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1HTTPHeader { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) + @jakarta.annotation.Nonnull private String value; public V1HTTPHeader() { } - public V1HTTPHeader name(String name) { + public V1HTTPHeader name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1HTTPHeader value(String value) { + public V1HTTPHeader value(@jakarta.annotation.Nonnull String value) { this.value = value; return this; } - /** + /** * The header field value * @return value - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The header field value") public String getValue() { return value; } - public void setValue(String value) { + public void setValue(@jakarta.annotation.Nonnull String value) { this.value = value; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("value"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1HTTPHeader - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1HTTPHeader + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1HTTPHeader.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -225,22 +226,22 @@ public V1HTTPHeader read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1HTTPHeader given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1HTTPHeader - * @throws IOException if the JSON string is invalid with respect to V1HTTPHeader - */ + /** + * Create an instance of V1HTTPHeader given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1HTTPHeader + * @throws IOException if the JSON string is invalid with respect to V1HTTPHeader + */ public static V1HTTPHeader fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1HTTPHeader.class); } - /** - * Convert an instance of V1HTTPHeader to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1HTTPHeader to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java index e77ea26b35..e3f4c57d1b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,79 +51,82 @@ * HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend. */ @ApiModel(description = "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1HTTPIngressPath { public static final String SERIALIZED_NAME_BACKEND = "backend"; @SerializedName(SERIALIZED_NAME_BACKEND) + @jakarta.annotation.Nonnull private V1IngressBackend backend; public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) + @jakarta.annotation.Nullable private String path; public static final String SERIALIZED_NAME_PATH_TYPE = "pathType"; @SerializedName(SERIALIZED_NAME_PATH_TYPE) + @jakarta.annotation.Nonnull private String pathType; public V1HTTPIngressPath() { } - public V1HTTPIngressPath backend(V1IngressBackend backend) { + public V1HTTPIngressPath backend(@jakarta.annotation.Nonnull V1IngressBackend backend) { this.backend = backend; return this; } - /** + /** * Get backend * @return backend - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1IngressBackend getBackend() { return backend; } - public void setBackend(V1IngressBackend backend) { + public void setBackend(@jakarta.annotation.Nonnull V1IngressBackend backend) { this.backend = backend; } - public V1HTTPIngressPath path(String path) { + public V1HTTPIngressPath path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } - /** + /** * path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value \"Exact\" or \"Prefix\". * @return path - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value \"Exact\" or \"Prefix\".") public String getPath() { return path; } - public void setPath(String path) { + public void setPath(@jakarta.annotation.Nullable String path) { this.path = path; } - public V1HTTPIngressPath pathType(String pathType) { + public V1HTTPIngressPath pathType(@jakarta.annotation.Nonnull String pathType) { this.pathType = pathType; return this; } - /** + /** * pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is done on a path element by element basis. A path element refers is the list of labels in the path split by the '/' separator. A request is a match for path p if every p is an element-wise prefix of p of the request path. Note that if the last element of the path is a substring of the last element in request path, it is not a match (e.g. /foo/bar matches /foo/bar/baz, but does not match /foo/barbaz). * ImplementationSpecific: Interpretation of the Path matching is up to the IngressClass. Implementations can treat this as a separate PathType or treat it identically to Prefix or Exact path types. Implementations are required to support all path types. * @return pathType - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is done on a path element by element basis. A path element refers is the list of labels in the path split by the '/' separator. A request is a match for path p if every p is an element-wise prefix of p of the request path. Note that if the last element of the path is a substring of the last element in request path, it is not a match (e.g. /foo/bar matches /foo/bar/baz, but does not match /foo/barbaz). * ImplementationSpecific: Interpretation of the Path matching is up to the IngressClass. Implementations can treat this as a separate PathType or treat it identically to Prefix or Exact path types. Implementations are required to support all path types.") public String getPathType() { return pathType; } - public void setPathType(String pathType) { + public void setPathType(@jakarta.annotation.Nonnull String pathType) { this.pathType = pathType; } @@ -188,12 +190,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("pathType"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1HTTPIngressPath - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1HTTPIngressPath + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1HTTPIngressPath.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -255,22 +257,22 @@ public V1HTTPIngressPath read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1HTTPIngressPath given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1HTTPIngressPath - * @throws IOException if the JSON string is invalid with respect to V1HTTPIngressPath - */ + /** + * Create an instance of V1HTTPIngressPath given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1HTTPIngressPath + * @throws IOException if the JSON string is invalid with respect to V1HTTPIngressPath + */ public static V1HTTPIngressPath fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1HTTPIngressPath.class); } - /** - * Convert an instance of V1HTTPIngressPath to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1HTTPIngressPath to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java index 96d50762c7..14db726db5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,16 +53,17 @@ * HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http://<host>/<path>?<searchpart> -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'. */ @ApiModel(description = "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1HTTPIngressRuleValue { public static final String SERIALIZED_NAME_PATHS = "paths"; @SerializedName(SERIALIZED_NAME_PATHS) + @jakarta.annotation.Nonnull private List paths = new ArrayList<>(); public V1HTTPIngressRuleValue() { } - public V1HTTPIngressRuleValue paths(List paths) { + public V1HTTPIngressRuleValue paths(@jakarta.annotation.Nonnull List paths) { this.paths = paths; return this; } @@ -76,17 +76,17 @@ public V1HTTPIngressRuleValue addPathsItem(V1HTTPIngressPath pathsItem) { return this; } - /** + /** * paths is a collection of paths that map requests to backends. * @return paths - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "paths is a collection of paths that map requests to backends.") public List getPaths() { return paths; } - public void setPaths(List paths) { + public void setPaths(@jakarta.annotation.Nonnull List paths) { this.paths = paths; } @@ -143,12 +143,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("paths"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1HTTPIngressRuleValue - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1HTTPIngressRuleValue + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1HTTPIngressRuleValue.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -212,22 +212,22 @@ public V1HTTPIngressRuleValue read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1HTTPIngressRuleValue given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1HTTPIngressRuleValue - * @throws IOException if the JSON string is invalid with respect to V1HTTPIngressRuleValue - */ + /** + * Create an instance of V1HTTPIngressRuleValue given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1HTTPIngressRuleValue + * @throws IOException if the JSON string is invalid with respect to V1HTTPIngressRuleValue + */ public static V1HTTPIngressRuleValue fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1HTTPIngressRuleValue.class); } - /** - * Convert an instance of V1HTTPIngressRuleValue to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1HTTPIngressRuleValue to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscaler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscaler.java index 14236d3677..9f617f0f02 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscaler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscaler.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * configuration of a horizontal pod autoscaler. */ @ApiModel(description = "configuration of a horizontal pod autoscaler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1HorizontalPodAutoscaler implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1HorizontalPodAutoscalerSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1HorizontalPodAutoscalerStatus status; public V1HorizontalPodAutoscaler() { } - public V1HorizontalPodAutoscaler apiVersion(String apiVersion) { + public V1HorizontalPodAutoscaler apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1HorizontalPodAutoscaler kind(String kind) { + public V1HorizontalPodAutoscaler kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1HorizontalPodAutoscaler metadata(V1ObjectMeta metadata) { + public V1HorizontalPodAutoscaler metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1HorizontalPodAutoscaler spec(V1HorizontalPodAutoscalerSpec spec) { + public V1HorizontalPodAutoscaler spec(@jakarta.annotation.Nullable V1HorizontalPodAutoscalerSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1HorizontalPodAutoscalerSpec getSpec() { return spec; } - public void setSpec(V1HorizontalPodAutoscalerSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1HorizontalPodAutoscalerSpec spec) { this.spec = spec; } - public V1HorizontalPodAutoscaler status(V1HorizontalPodAutoscalerStatus status) { + public V1HorizontalPodAutoscaler status(@jakarta.annotation.Nullable V1HorizontalPodAutoscalerStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1HorizontalPodAutoscalerStatus getStatus() { return status; } - public void setStatus(V1HorizontalPodAutoscalerStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1HorizontalPodAutoscalerStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1HorizontalPodAutoscaler - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1HorizontalPodAutoscaler + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1HorizontalPodAutoscaler.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1HorizontalPodAutoscaler read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1HorizontalPodAutoscaler given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1HorizontalPodAutoscaler - * @throws IOException if the JSON string is invalid with respect to V1HorizontalPodAutoscaler - */ + /** + * Create an instance of V1HorizontalPodAutoscaler given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1HorizontalPodAutoscaler + * @throws IOException if the JSON string is invalid with respect to V1HorizontalPodAutoscaler + */ public static V1HorizontalPodAutoscaler fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1HorizontalPodAutoscaler.class); } - /** - * Convert an instance of V1HorizontalPodAutoscaler to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1HorizontalPodAutoscaler to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerList.java index 6f6a99af6e..c68420c044 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * list of horizontal pod autoscaler objects. */ @ApiModel(description = "list of horizontal pod autoscaler objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1HorizontalPodAutoscalerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1HorizontalPodAutoscalerList() { } - public V1HorizontalPodAutoscalerList apiVersion(String apiVersion) { + public V1HorizontalPodAutoscalerList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1HorizontalPodAutoscalerList items(List items) { + public V1HorizontalPodAutoscalerList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1HorizontalPodAutoscalerList addItemsItem(V1HorizontalPodAutoscaler item return this; } - /** + /** * items is the list of horizontal pod autoscaler objects. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is the list of horizontal pod autoscaler objects.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1HorizontalPodAutoscalerList kind(String kind) { + public V1HorizontalPodAutoscalerList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1HorizontalPodAutoscalerList metadata(V1ListMeta metadata) { + public V1HorizontalPodAutoscalerList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1HorizontalPodAutoscalerList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1HorizontalPodAutoscalerList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1HorizontalPodAutoscalerList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1HorizontalPodAutoscalerList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1HorizontalPodAutoscalerList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1HorizontalPodAutoscalerList - * @throws IOException if the JSON string is invalid with respect to V1HorizontalPodAutoscalerList - */ + /** + * Create an instance of V1HorizontalPodAutoscalerList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1HorizontalPodAutoscalerList + * @throws IOException if the JSON string is invalid with respect to V1HorizontalPodAutoscalerList + */ public static V1HorizontalPodAutoscalerList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1HorizontalPodAutoscalerList.class); } - /** - * Convert an instance of V1HorizontalPodAutoscalerList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1HorizontalPodAutoscalerList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpec.java index 8a3336f072..7f93e02637 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpec.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,103 +51,107 @@ * specification of a horizontal pod autoscaler. */ @ApiModel(description = "specification of a horizontal pod autoscaler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1HorizontalPodAutoscalerSpec { public static final String SERIALIZED_NAME_MAX_REPLICAS = "maxReplicas"; @SerializedName(SERIALIZED_NAME_MAX_REPLICAS) + @jakarta.annotation.Nonnull private Integer maxReplicas; public static final String SERIALIZED_NAME_MIN_REPLICAS = "minReplicas"; @SerializedName(SERIALIZED_NAME_MIN_REPLICAS) + @jakarta.annotation.Nullable private Integer minReplicas; public static final String SERIALIZED_NAME_SCALE_TARGET_REF = "scaleTargetRef"; @SerializedName(SERIALIZED_NAME_SCALE_TARGET_REF) + @jakarta.annotation.Nonnull private V1CrossVersionObjectReference scaleTargetRef; public static final String SERIALIZED_NAME_TARGET_C_P_U_UTILIZATION_PERCENTAGE = "targetCPUUtilizationPercentage"; @SerializedName(SERIALIZED_NAME_TARGET_C_P_U_UTILIZATION_PERCENTAGE) + @jakarta.annotation.Nullable private Integer targetCPUUtilizationPercentage; public V1HorizontalPodAutoscalerSpec() { } - public V1HorizontalPodAutoscalerSpec maxReplicas(Integer maxReplicas) { + public V1HorizontalPodAutoscalerSpec maxReplicas(@jakarta.annotation.Nonnull Integer maxReplicas) { this.maxReplicas = maxReplicas; return this; } - /** + /** * maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. * @return maxReplicas - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.") public Integer getMaxReplicas() { return maxReplicas; } - public void setMaxReplicas(Integer maxReplicas) { + public void setMaxReplicas(@jakarta.annotation.Nonnull Integer maxReplicas) { this.maxReplicas = maxReplicas; } - public V1HorizontalPodAutoscalerSpec minReplicas(Integer minReplicas) { + public V1HorizontalPodAutoscalerSpec minReplicas(@jakarta.annotation.Nullable Integer minReplicas) { this.minReplicas = minReplicas; return this; } - /** + /** * minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. * @return minReplicas - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.") public Integer getMinReplicas() { return minReplicas; } - public void setMinReplicas(Integer minReplicas) { + public void setMinReplicas(@jakarta.annotation.Nullable Integer minReplicas) { this.minReplicas = minReplicas; } - public V1HorizontalPodAutoscalerSpec scaleTargetRef(V1CrossVersionObjectReference scaleTargetRef) { + public V1HorizontalPodAutoscalerSpec scaleTargetRef(@jakarta.annotation.Nonnull V1CrossVersionObjectReference scaleTargetRef) { this.scaleTargetRef = scaleTargetRef; return this; } - /** + /** * Get scaleTargetRef * @return scaleTargetRef - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1CrossVersionObjectReference getScaleTargetRef() { return scaleTargetRef; } - public void setScaleTargetRef(V1CrossVersionObjectReference scaleTargetRef) { + public void setScaleTargetRef(@jakarta.annotation.Nonnull V1CrossVersionObjectReference scaleTargetRef) { this.scaleTargetRef = scaleTargetRef; } - public V1HorizontalPodAutoscalerSpec targetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage) { + public V1HorizontalPodAutoscalerSpec targetCPUUtilizationPercentage(@jakarta.annotation.Nullable Integer targetCPUUtilizationPercentage) { this.targetCPUUtilizationPercentage = targetCPUUtilizationPercentage; return this; } - /** + /** * targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. * @return targetCPUUtilizationPercentage - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.") public Integer getTargetCPUUtilizationPercentage() { return targetCPUUtilizationPercentage; } - public void setTargetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage) { + public void setTargetCPUUtilizationPercentage(@jakarta.annotation.Nullable Integer targetCPUUtilizationPercentage) { this.targetCPUUtilizationPercentage = targetCPUUtilizationPercentage; } @@ -215,12 +218,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("scaleTargetRef"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1HorizontalPodAutoscalerSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1HorizontalPodAutoscalerSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1HorizontalPodAutoscalerSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -276,22 +279,22 @@ public V1HorizontalPodAutoscalerSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1HorizontalPodAutoscalerSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1HorizontalPodAutoscalerSpec - * @throws IOException if the JSON string is invalid with respect to V1HorizontalPodAutoscalerSpec - */ + /** + * Create an instance of V1HorizontalPodAutoscalerSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1HorizontalPodAutoscalerSpec + * @throws IOException if the JSON string is invalid with respect to V1HorizontalPodAutoscalerSpec + */ public static V1HorizontalPodAutoscalerSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1HorizontalPodAutoscalerSpec.class); } - /** - * Convert an instance of V1HorizontalPodAutoscalerSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1HorizontalPodAutoscalerSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatus.java index a08efc5bdb..ea2b74b1c1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatus.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,127 +51,132 @@ * current status of a horizontal pod autoscaler */ @ApiModel(description = "current status of a horizontal pod autoscaler") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1HorizontalPodAutoscalerStatus { public static final String SERIALIZED_NAME_CURRENT_C_P_U_UTILIZATION_PERCENTAGE = "currentCPUUtilizationPercentage"; @SerializedName(SERIALIZED_NAME_CURRENT_C_P_U_UTILIZATION_PERCENTAGE) + @jakarta.annotation.Nullable private Integer currentCPUUtilizationPercentage; public static final String SERIALIZED_NAME_CURRENT_REPLICAS = "currentReplicas"; @SerializedName(SERIALIZED_NAME_CURRENT_REPLICAS) + @jakarta.annotation.Nonnull private Integer currentReplicas; public static final String SERIALIZED_NAME_DESIRED_REPLICAS = "desiredReplicas"; @SerializedName(SERIALIZED_NAME_DESIRED_REPLICAS) + @jakarta.annotation.Nonnull private Integer desiredReplicas; public static final String SERIALIZED_NAME_LAST_SCALE_TIME = "lastScaleTime"; @SerializedName(SERIALIZED_NAME_LAST_SCALE_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastScaleTime; public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + @jakarta.annotation.Nullable private Long observedGeneration; public V1HorizontalPodAutoscalerStatus() { } - public V1HorizontalPodAutoscalerStatus currentCPUUtilizationPercentage(Integer currentCPUUtilizationPercentage) { + public V1HorizontalPodAutoscalerStatus currentCPUUtilizationPercentage(@jakarta.annotation.Nullable Integer currentCPUUtilizationPercentage) { this.currentCPUUtilizationPercentage = currentCPUUtilizationPercentage; return this; } - /** + /** * currentCPUUtilizationPercentage is the current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. * @return currentCPUUtilizationPercentage - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "currentCPUUtilizationPercentage is the current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.") public Integer getCurrentCPUUtilizationPercentage() { return currentCPUUtilizationPercentage; } - public void setCurrentCPUUtilizationPercentage(Integer currentCPUUtilizationPercentage) { + public void setCurrentCPUUtilizationPercentage(@jakarta.annotation.Nullable Integer currentCPUUtilizationPercentage) { this.currentCPUUtilizationPercentage = currentCPUUtilizationPercentage; } - public V1HorizontalPodAutoscalerStatus currentReplicas(Integer currentReplicas) { + public V1HorizontalPodAutoscalerStatus currentReplicas(@jakarta.annotation.Nonnull Integer currentReplicas) { this.currentReplicas = currentReplicas; return this; } - /** + /** * currentReplicas is the current number of replicas of pods managed by this autoscaler. * @return currentReplicas - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "currentReplicas is the current number of replicas of pods managed by this autoscaler.") public Integer getCurrentReplicas() { return currentReplicas; } - public void setCurrentReplicas(Integer currentReplicas) { + public void setCurrentReplicas(@jakarta.annotation.Nonnull Integer currentReplicas) { this.currentReplicas = currentReplicas; } - public V1HorizontalPodAutoscalerStatus desiredReplicas(Integer desiredReplicas) { + public V1HorizontalPodAutoscalerStatus desiredReplicas(@jakarta.annotation.Nonnull Integer desiredReplicas) { this.desiredReplicas = desiredReplicas; return this; } - /** + /** * desiredReplicas is the desired number of replicas of pods managed by this autoscaler. * @return desiredReplicas - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "desiredReplicas is the desired number of replicas of pods managed by this autoscaler.") public Integer getDesiredReplicas() { return desiredReplicas; } - public void setDesiredReplicas(Integer desiredReplicas) { + public void setDesiredReplicas(@jakarta.annotation.Nonnull Integer desiredReplicas) { this.desiredReplicas = desiredReplicas; } - public V1HorizontalPodAutoscalerStatus lastScaleTime(OffsetDateTime lastScaleTime) { + public V1HorizontalPodAutoscalerStatus lastScaleTime(@jakarta.annotation.Nullable OffsetDateTime lastScaleTime) { this.lastScaleTime = lastScaleTime; return this; } - /** + /** * lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. * @return lastScaleTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.") public OffsetDateTime getLastScaleTime() { return lastScaleTime; } - public void setLastScaleTime(OffsetDateTime lastScaleTime) { + public void setLastScaleTime(@jakarta.annotation.Nullable OffsetDateTime lastScaleTime) { this.lastScaleTime = lastScaleTime; } - public V1HorizontalPodAutoscalerStatus observedGeneration(Long observedGeneration) { + public V1HorizontalPodAutoscalerStatus observedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { this.observedGeneration = observedGeneration; return this; } - /** + /** * observedGeneration is the most recent generation observed by this autoscaler. * @return observedGeneration - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "observedGeneration is the most recent generation observed by this autoscaler.") public Long getObservedGeneration() { return observedGeneration; } - public void setObservedGeneration(Long observedGeneration) { + public void setObservedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { this.observedGeneration = observedGeneration; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("desiredReplicas"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1HorizontalPodAutoscalerStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1HorizontalPodAutoscalerStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1HorizontalPodAutoscalerStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -301,22 +305,22 @@ public V1HorizontalPodAutoscalerStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1HorizontalPodAutoscalerStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1HorizontalPodAutoscalerStatus - * @throws IOException if the JSON string is invalid with respect to V1HorizontalPodAutoscalerStatus - */ + /** + * Create an instance of V1HorizontalPodAutoscalerStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1HorizontalPodAutoscalerStatus + * @throws IOException if the JSON string is invalid with respect to V1HorizontalPodAutoscalerStatus + */ public static V1HorizontalPodAutoscalerStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1HorizontalPodAutoscalerStatus.class); } - /** - * Convert an instance of V1HorizontalPodAutoscalerStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1HorizontalPodAutoscalerStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java index e088412ac6..e97a0a42d7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,20 +52,22 @@ * HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file. */ @ApiModel(description = "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1HostAlias { public static final String SERIALIZED_NAME_HOSTNAMES = "hostnames"; @SerializedName(SERIALIZED_NAME_HOSTNAMES) + @jakarta.annotation.Nullable private List hostnames = new ArrayList<>(); public static final String SERIALIZED_NAME_IP = "ip"; @SerializedName(SERIALIZED_NAME_IP) + @jakarta.annotation.Nonnull private String ip; public V1HostAlias() { } - public V1HostAlias hostnames(List hostnames) { + public V1HostAlias hostnames(@jakarta.annotation.Nullable List hostnames) { this.hostnames = hostnames; return this; } @@ -79,37 +80,37 @@ public V1HostAlias addHostnamesItem(String hostnamesItem) { return this; } - /** + /** * Hostnames for the above IP address. * @return hostnames - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Hostnames for the above IP address.") public List getHostnames() { return hostnames; } - public void setHostnames(List hostnames) { + public void setHostnames(@jakarta.annotation.Nullable List hostnames) { this.hostnames = hostnames; } - public V1HostAlias ip(String ip) { + public V1HostAlias ip(@jakarta.annotation.Nonnull String ip) { this.ip = ip; return this; } - /** + /** * IP address of the host file entry. * @return ip - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "IP address of the host file entry.") public String getIp() { return ip; } - public void setIp(String ip) { + public void setIp(@jakarta.annotation.Nonnull String ip) { this.ip = ip; } @@ -169,12 +170,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("ip"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1HostAlias - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1HostAlias + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1HostAlias.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -235,22 +236,22 @@ public V1HostAlias read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1HostAlias given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1HostAlias - * @throws IOException if the JSON string is invalid with respect to V1HostAlias - */ + /** + * Create an instance of V1HostAlias given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1HostAlias + * @throws IOException if the JSON string is invalid with respect to V1HostAlias + */ public static V1HostAlias fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1HostAlias.class); } - /** - * Convert an instance of V1HostAlias to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1HostAlias to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java index 3b280a7cc8..58ca843b9e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * HostIP represents a single IP address allocated to the host. */ @ApiModel(description = "HostIP represents a single IP address allocated to the host.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1HostIP { public static final String SERIALIZED_NAME_IP = "ip"; @SerializedName(SERIALIZED_NAME_IP) + @jakarta.annotation.Nonnull private String ip; public V1HostIP() { } - public V1HostIP ip(String ip) { + public V1HostIP ip(@jakarta.annotation.Nonnull String ip) { this.ip = ip; return this; } - /** + /** * IP is the IP address assigned to the host * @return ip - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "IP is the IP address assigned to the host") public String getIp() { return ip; } - public void setIp(String ip) { + public void setIp(@jakarta.annotation.Nonnull String ip) { this.ip = ip; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("ip"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1HostIP - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1HostIP + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1HostIP.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -194,22 +194,22 @@ public V1HostIP read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1HostIP given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1HostIP - * @throws IOException if the JSON string is invalid with respect to V1HostIP - */ + /** + * Create an instance of V1HostIP given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1HostIP + * @throws IOException if the JSON string is invalid with respect to V1HostIP + */ public static V1HostIP fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1HostIP.class); } - /** - * Convert an instance of V1HostIP to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1HostIP to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java index b09fc0938a..d9766182bb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1HostPathVolumeSource { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) + @jakarta.annotation.Nonnull private String path; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nullable private String type; public V1HostPathVolumeSource() { } - public V1HostPathVolumeSource path(String path) { + public V1HostPathVolumeSource path(@jakarta.annotation.Nonnull String path) { this.path = path; return this; } - /** + /** * path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath * @return path - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath") public String getPath() { return path; } - public void setPath(String path) { + public void setPath(@jakarta.annotation.Nonnull String path) { this.path = path; } - public V1HostPathVolumeSource type(String type) { + public V1HostPathVolumeSource type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } - /** + /** * type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath * @return type - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("path"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1HostPathVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1HostPathVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1HostPathVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -224,22 +225,22 @@ public V1HostPathVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1HostPathVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1HostPathVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1HostPathVolumeSource - */ + /** + * Create an instance of V1HostPathVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1HostPathVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1HostPathVolumeSource + */ public static V1HostPathVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1HostPathVolumeSource.class); } - /** - * Convert an instance of V1HostPathVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1HostPathVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddress.java new file mode 100644 index 0000000000..cae28037a7 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddress.java @@ -0,0 +1,305 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1IPAddressSpec; +import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1 + */ +@ApiModel(description = "IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1IPAddress implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable + private V1IPAddressSpec spec; + + public V1IPAddress() { + } + + public V1IPAddress apiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @return apiVersion + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") + public String getApiVersion() { + return apiVersion; + } + + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1IPAddress kind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + return this; + } + + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @return kind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") + public String getKind() { + return kind; + } + + public void setKind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + } + + + public V1IPAddress metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { + return metadata; + } + + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1IPAddress spec(@jakarta.annotation.Nullable V1IPAddressSpec spec) { + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1IPAddressSpec getSpec() { + return spec; + } + + public void setSpec(@jakarta.annotation.Nullable V1IPAddressSpec spec) { + this.spec = spec; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1IPAddress v1IPAddress = (V1IPAddress) o; + return Objects.equals(this.apiVersion, v1IPAddress.apiVersion) && + Objects.equals(this.kind, v1IPAddress.kind) && + Objects.equals(this.metadata, v1IPAddress.metadata) && + Objects.equals(this.spec, v1IPAddress.spec); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1IPAddress {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1IPAddress + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1IPAddress.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1IPAddress is not found in the empty JSON string", V1IPAddress.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1IPAddress.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1IPAddress` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1IPAddressSpec.validateJsonElement(jsonObj.get("spec")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1IPAddress.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1IPAddress' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1IPAddress.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1IPAddress value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1IPAddress read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1IPAddress given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IPAddress + * @throws IOException if the JSON string is invalid with respect to V1IPAddress + */ + public static V1IPAddress fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1IPAddress.class); + } + + /** + * Convert an instance of V1IPAddress to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressList.java new file mode 100644 index 0000000000..69c0242297 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressList.java @@ -0,0 +1,329 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1IPAddress; +import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * IPAddressList contains a list of IPAddress. + */ +@ApiModel(description = "IPAddressList contains a list of IPAddress.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1IPAddressList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable + private V1ListMeta metadata; + + public V1IPAddressList() { + } + + public V1IPAddressList apiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @return apiVersion + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") + public String getApiVersion() { + return apiVersion; + } + + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1IPAddressList items(@jakarta.annotation.Nonnull List items) { + this.items = items; + return this; + } + + public V1IPAddressList addItemsItem(V1IPAddress itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + /** + * items is the list of IPAddresses. + * @return items + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is the list of IPAddresses.") + public List getItems() { + return items; + } + + public void setItems(@jakarta.annotation.Nonnull List items) { + this.items = items; + } + + + public V1IPAddressList kind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + return this; + } + + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @return kind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") + public String getKind() { + return kind; + } + + public void setKind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + } + + + public V1IPAddressList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { + return metadata; + } + + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + this.metadata = metadata; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1IPAddressList v1IPAddressList = (V1IPAddressList) o; + return Objects.equals(this.apiVersion, v1IPAddressList.apiVersion) && + Objects.equals(this.items, v1IPAddressList.items) && + Objects.equals(this.kind, v1IPAddressList.kind) && + Objects.equals(this.metadata, v1IPAddressList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1IPAddressList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1IPAddressList + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1IPAddressList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1IPAddressList is not found in the empty JSON string", V1IPAddressList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1IPAddressList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1IPAddressList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1IPAddressList.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1IPAddress.validateJsonElement(jsonArrayitems.get(i)); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonElement(jsonObj.get("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1IPAddressList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1IPAddressList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1IPAddressList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1IPAddressList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1IPAddressList read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1IPAddressList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IPAddressList + * @throws IOException if the JSON string is invalid with respect to V1IPAddressList + */ + public static V1IPAddressList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1IPAddressList.class); + } + + /** + * Convert an instance of V1IPAddressList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpec.java new file mode 100644 index 0000000000..440ac38b3e --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpec.java @@ -0,0 +1,216 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ParentReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * IPAddressSpec describe the attributes in an IP Address. + */ +@ApiModel(description = "IPAddressSpec describe the attributes in an IP Address.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1IPAddressSpec { + public static final String SERIALIZED_NAME_PARENT_REF = "parentRef"; + @SerializedName(SERIALIZED_NAME_PARENT_REF) + @jakarta.annotation.Nonnull + private V1ParentReference parentRef; + + public V1IPAddressSpec() { + } + + public V1IPAddressSpec parentRef(@jakarta.annotation.Nonnull V1ParentReference parentRef) { + this.parentRef = parentRef; + return this; + } + + /** + * Get parentRef + * @return parentRef + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1ParentReference getParentRef() { + return parentRef; + } + + public void setParentRef(@jakarta.annotation.Nonnull V1ParentReference parentRef) { + this.parentRef = parentRef; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1IPAddressSpec v1IPAddressSpec = (V1IPAddressSpec) o; + return Objects.equals(this.parentRef, v1IPAddressSpec.parentRef); + } + + @Override + public int hashCode() { + return Objects.hash(parentRef); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1IPAddressSpec {\n"); + sb.append(" parentRef: ").append(toIndentedString(parentRef)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("parentRef"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("parentRef"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1IPAddressSpec + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1IPAddressSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1IPAddressSpec is not found in the empty JSON string", V1IPAddressSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1IPAddressSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1IPAddressSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1IPAddressSpec.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `parentRef` + V1ParentReference.validateJsonElement(jsonObj.get("parentRef")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1IPAddressSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1IPAddressSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1IPAddressSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1IPAddressSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1IPAddressSpec read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1IPAddressSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IPAddressSpec + * @throws IOException if the JSON string is invalid with respect to V1IPAddressSpec + */ + public static V1IPAddressSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1IPAddressSpec.class); + } + + /** + * Convert an instance of V1IPAddressSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java index b8e69fa4a9..025cc73cf5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,40 +52,42 @@ * IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule. */ @ApiModel(description = "IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IPBlock { public static final String SERIALIZED_NAME_CIDR = "cidr"; @SerializedName(SERIALIZED_NAME_CIDR) + @jakarta.annotation.Nonnull private String cidr; public static final String SERIALIZED_NAME_EXCEPT = "except"; @SerializedName(SERIALIZED_NAME_EXCEPT) + @jakarta.annotation.Nullable private List except = new ArrayList<>(); public V1IPBlock() { } - public V1IPBlock cidr(String cidr) { + public V1IPBlock cidr(@jakarta.annotation.Nonnull String cidr) { this.cidr = cidr; return this; } - /** + /** * cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" * @return cidr - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"") public String getCidr() { return cidr; } - public void setCidr(String cidr) { + public void setCidr(@jakarta.annotation.Nonnull String cidr) { this.cidr = cidr; } - public V1IPBlock except(List except) { + public V1IPBlock except(@jakarta.annotation.Nullable List except) { this.except = except; return this; } @@ -99,17 +100,17 @@ public V1IPBlock addExceptItem(String exceptItem) { return this; } - /** + /** * except is a slice of CIDRs that should not be included within an IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" Except values will be rejected if they are outside the cidr range * @return except - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "except is a slice of CIDRs that should not be included within an IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" Except values will be rejected if they are outside the cidr range") public List getExcept() { return except; } - public void setExcept(List except) { + public void setExcept(@jakarta.annotation.Nullable List except) { this.except = except; } @@ -169,12 +170,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("cidr"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1IPBlock - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1IPBlock + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IPBlock.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -235,22 +236,22 @@ public V1IPBlock read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1IPBlock given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1IPBlock - * @throws IOException if the JSON string is invalid with respect to V1IPBlock - */ + /** + * Create an instance of V1IPBlock given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IPBlock + * @throws IOException if the JSON string is invalid with respect to V1IPBlock + */ public static V1IPBlock fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1IPBlock.class); } - /** - * Convert an instance of V1IPBlock to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1IPBlock to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java index 5dce7b14f6..2bf1e605a1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,196 +53,207 @@ * ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ISCSIPersistentVolumeSource { public static final String SERIALIZED_NAME_CHAP_AUTH_DISCOVERY = "chapAuthDiscovery"; @SerializedName(SERIALIZED_NAME_CHAP_AUTH_DISCOVERY) + @jakarta.annotation.Nullable private Boolean chapAuthDiscovery; public static final String SERIALIZED_NAME_CHAP_AUTH_SESSION = "chapAuthSession"; @SerializedName(SERIALIZED_NAME_CHAP_AUTH_SESSION) + @jakarta.annotation.Nullable private Boolean chapAuthSession; public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) + @jakarta.annotation.Nullable private String fsType; public static final String SERIALIZED_NAME_INITIATOR_NAME = "initiatorName"; @SerializedName(SERIALIZED_NAME_INITIATOR_NAME) + @jakarta.annotation.Nullable private String initiatorName; public static final String SERIALIZED_NAME_IQN = "iqn"; @SerializedName(SERIALIZED_NAME_IQN) + @jakarta.annotation.Nonnull private String iqn; public static final String SERIALIZED_NAME_ISCSI_INTERFACE = "iscsiInterface"; @SerializedName(SERIALIZED_NAME_ISCSI_INTERFACE) + @jakarta.annotation.Nullable private String iscsiInterface; public static final String SERIALIZED_NAME_LUN = "lun"; @SerializedName(SERIALIZED_NAME_LUN) + @jakarta.annotation.Nonnull private Integer lun; public static final String SERIALIZED_NAME_PORTALS = "portals"; @SerializedName(SERIALIZED_NAME_PORTALS) + @jakarta.annotation.Nullable private List portals = new ArrayList<>(); public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; @SerializedName(SERIALIZED_NAME_SECRET_REF) + @jakarta.annotation.Nullable private V1SecretReference secretRef; public static final String SERIALIZED_NAME_TARGET_PORTAL = "targetPortal"; @SerializedName(SERIALIZED_NAME_TARGET_PORTAL) + @jakarta.annotation.Nonnull private String targetPortal; public V1ISCSIPersistentVolumeSource() { } - public V1ISCSIPersistentVolumeSource chapAuthDiscovery(Boolean chapAuthDiscovery) { + public V1ISCSIPersistentVolumeSource chapAuthDiscovery(@jakarta.annotation.Nullable Boolean chapAuthDiscovery) { this.chapAuthDiscovery = chapAuthDiscovery; return this; } - /** + /** * chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication * @return chapAuthDiscovery - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication") public Boolean getChapAuthDiscovery() { return chapAuthDiscovery; } - public void setChapAuthDiscovery(Boolean chapAuthDiscovery) { + public void setChapAuthDiscovery(@jakarta.annotation.Nullable Boolean chapAuthDiscovery) { this.chapAuthDiscovery = chapAuthDiscovery; } - public V1ISCSIPersistentVolumeSource chapAuthSession(Boolean chapAuthSession) { + public V1ISCSIPersistentVolumeSource chapAuthSession(@jakarta.annotation.Nullable Boolean chapAuthSession) { this.chapAuthSession = chapAuthSession; return this; } - /** + /** * chapAuthSession defines whether support iSCSI Session CHAP authentication * @return chapAuthSession - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "chapAuthSession defines whether support iSCSI Session CHAP authentication") public Boolean getChapAuthSession() { return chapAuthSession; } - public void setChapAuthSession(Boolean chapAuthSession) { + public void setChapAuthSession(@jakarta.annotation.Nullable Boolean chapAuthSession) { this.chapAuthSession = chapAuthSession; } - public V1ISCSIPersistentVolumeSource fsType(String fsType) { + public V1ISCSIPersistentVolumeSource fsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; return this; } - /** + /** * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi * @return fsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi") public String getFsType() { return fsType; } - public void setFsType(String fsType) { + public void setFsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; } - public V1ISCSIPersistentVolumeSource initiatorName(String initiatorName) { + public V1ISCSIPersistentVolumeSource initiatorName(@jakarta.annotation.Nullable String initiatorName) { this.initiatorName = initiatorName; return this; } - /** + /** * initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection. * @return initiatorName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.") public String getInitiatorName() { return initiatorName; } - public void setInitiatorName(String initiatorName) { + public void setInitiatorName(@jakarta.annotation.Nullable String initiatorName) { this.initiatorName = initiatorName; } - public V1ISCSIPersistentVolumeSource iqn(String iqn) { + public V1ISCSIPersistentVolumeSource iqn(@jakarta.annotation.Nonnull String iqn) { this.iqn = iqn; return this; } - /** + /** * iqn is Target iSCSI Qualified Name. * @return iqn - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "iqn is Target iSCSI Qualified Name.") public String getIqn() { return iqn; } - public void setIqn(String iqn) { + public void setIqn(@jakarta.annotation.Nonnull String iqn) { this.iqn = iqn; } - public V1ISCSIPersistentVolumeSource iscsiInterface(String iscsiInterface) { + public V1ISCSIPersistentVolumeSource iscsiInterface(@jakarta.annotation.Nullable String iscsiInterface) { this.iscsiInterface = iscsiInterface; return this; } - /** + /** * iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). * @return iscsiInterface - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).") public String getIscsiInterface() { return iscsiInterface; } - public void setIscsiInterface(String iscsiInterface) { + public void setIscsiInterface(@jakarta.annotation.Nullable String iscsiInterface) { this.iscsiInterface = iscsiInterface; } - public V1ISCSIPersistentVolumeSource lun(Integer lun) { + public V1ISCSIPersistentVolumeSource lun(@jakarta.annotation.Nonnull Integer lun) { this.lun = lun; return this; } - /** + /** * lun is iSCSI Target Lun number. * @return lun - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "lun is iSCSI Target Lun number.") public Integer getLun() { return lun; } - public void setLun(Integer lun) { + public void setLun(@jakarta.annotation.Nonnull Integer lun) { this.lun = lun; } - public V1ISCSIPersistentVolumeSource portals(List portals) { + public V1ISCSIPersistentVolumeSource portals(@jakarta.annotation.Nullable List portals) { this.portals = portals; return this; } @@ -256,77 +266,77 @@ public V1ISCSIPersistentVolumeSource addPortalsItem(String portalsItem) { return this; } - /** + /** * portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). * @return portals - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).") public List getPortals() { return portals; } - public void setPortals(List portals) { + public void setPortals(@jakarta.annotation.Nullable List portals) { this.portals = portals; } - public V1ISCSIPersistentVolumeSource readOnly(Boolean readOnly) { + public V1ISCSIPersistentVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1ISCSIPersistentVolumeSource secretRef(V1SecretReference secretRef) { + public V1ISCSIPersistentVolumeSource secretRef(@jakarta.annotation.Nullable V1SecretReference secretRef) { this.secretRef = secretRef; return this; } - /** + /** * Get secretRef * @return secretRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SecretReference getSecretRef() { return secretRef; } - public void setSecretRef(V1SecretReference secretRef) { + public void setSecretRef(@jakarta.annotation.Nullable V1SecretReference secretRef) { this.secretRef = secretRef; } - public V1ISCSIPersistentVolumeSource targetPortal(String targetPortal) { + public V1ISCSIPersistentVolumeSource targetPortal(@jakarta.annotation.Nonnull String targetPortal) { this.targetPortal = targetPortal; return this; } - /** + /** * targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). * @return targetPortal - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).") public String getTargetPortal() { return targetPortal; } - public void setTargetPortal(String targetPortal) { + public void setTargetPortal(@jakarta.annotation.Nonnull String targetPortal) { this.targetPortal = targetPortal; } @@ -415,12 +425,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("targetPortal"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ISCSIPersistentVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ISCSIPersistentVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ISCSIPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -497,22 +507,22 @@ public V1ISCSIPersistentVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ISCSIPersistentVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ISCSIPersistentVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1ISCSIPersistentVolumeSource - */ + /** + * Create an instance of V1ISCSIPersistentVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ISCSIPersistentVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1ISCSIPersistentVolumeSource + */ public static V1ISCSIPersistentVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ISCSIPersistentVolumeSource.class); } - /** - * Convert an instance of V1ISCSIPersistentVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ISCSIPersistentVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java index bd5cbe5e32..4616ab4cd1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,196 +53,207 @@ * Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ISCSIVolumeSource { public static final String SERIALIZED_NAME_CHAP_AUTH_DISCOVERY = "chapAuthDiscovery"; @SerializedName(SERIALIZED_NAME_CHAP_AUTH_DISCOVERY) + @jakarta.annotation.Nullable private Boolean chapAuthDiscovery; public static final String SERIALIZED_NAME_CHAP_AUTH_SESSION = "chapAuthSession"; @SerializedName(SERIALIZED_NAME_CHAP_AUTH_SESSION) + @jakarta.annotation.Nullable private Boolean chapAuthSession; public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) + @jakarta.annotation.Nullable private String fsType; public static final String SERIALIZED_NAME_INITIATOR_NAME = "initiatorName"; @SerializedName(SERIALIZED_NAME_INITIATOR_NAME) + @jakarta.annotation.Nullable private String initiatorName; public static final String SERIALIZED_NAME_IQN = "iqn"; @SerializedName(SERIALIZED_NAME_IQN) + @jakarta.annotation.Nonnull private String iqn; public static final String SERIALIZED_NAME_ISCSI_INTERFACE = "iscsiInterface"; @SerializedName(SERIALIZED_NAME_ISCSI_INTERFACE) + @jakarta.annotation.Nullable private String iscsiInterface; public static final String SERIALIZED_NAME_LUN = "lun"; @SerializedName(SERIALIZED_NAME_LUN) + @jakarta.annotation.Nonnull private Integer lun; public static final String SERIALIZED_NAME_PORTALS = "portals"; @SerializedName(SERIALIZED_NAME_PORTALS) + @jakarta.annotation.Nullable private List portals = new ArrayList<>(); public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; @SerializedName(SERIALIZED_NAME_SECRET_REF) + @jakarta.annotation.Nullable private V1LocalObjectReference secretRef; public static final String SERIALIZED_NAME_TARGET_PORTAL = "targetPortal"; @SerializedName(SERIALIZED_NAME_TARGET_PORTAL) + @jakarta.annotation.Nonnull private String targetPortal; public V1ISCSIVolumeSource() { } - public V1ISCSIVolumeSource chapAuthDiscovery(Boolean chapAuthDiscovery) { + public V1ISCSIVolumeSource chapAuthDiscovery(@jakarta.annotation.Nullable Boolean chapAuthDiscovery) { this.chapAuthDiscovery = chapAuthDiscovery; return this; } - /** + /** * chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication * @return chapAuthDiscovery - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication") public Boolean getChapAuthDiscovery() { return chapAuthDiscovery; } - public void setChapAuthDiscovery(Boolean chapAuthDiscovery) { + public void setChapAuthDiscovery(@jakarta.annotation.Nullable Boolean chapAuthDiscovery) { this.chapAuthDiscovery = chapAuthDiscovery; } - public V1ISCSIVolumeSource chapAuthSession(Boolean chapAuthSession) { + public V1ISCSIVolumeSource chapAuthSession(@jakarta.annotation.Nullable Boolean chapAuthSession) { this.chapAuthSession = chapAuthSession; return this; } - /** + /** * chapAuthSession defines whether support iSCSI Session CHAP authentication * @return chapAuthSession - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "chapAuthSession defines whether support iSCSI Session CHAP authentication") public Boolean getChapAuthSession() { return chapAuthSession; } - public void setChapAuthSession(Boolean chapAuthSession) { + public void setChapAuthSession(@jakarta.annotation.Nullable Boolean chapAuthSession) { this.chapAuthSession = chapAuthSession; } - public V1ISCSIVolumeSource fsType(String fsType) { + public V1ISCSIVolumeSource fsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; return this; } - /** + /** * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi * @return fsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi") public String getFsType() { return fsType; } - public void setFsType(String fsType) { + public void setFsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; } - public V1ISCSIVolumeSource initiatorName(String initiatorName) { + public V1ISCSIVolumeSource initiatorName(@jakarta.annotation.Nullable String initiatorName) { this.initiatorName = initiatorName; return this; } - /** + /** * initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection. * @return initiatorName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.") public String getInitiatorName() { return initiatorName; } - public void setInitiatorName(String initiatorName) { + public void setInitiatorName(@jakarta.annotation.Nullable String initiatorName) { this.initiatorName = initiatorName; } - public V1ISCSIVolumeSource iqn(String iqn) { + public V1ISCSIVolumeSource iqn(@jakarta.annotation.Nonnull String iqn) { this.iqn = iqn; return this; } - /** + /** * iqn is the target iSCSI Qualified Name. * @return iqn - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "iqn is the target iSCSI Qualified Name.") public String getIqn() { return iqn; } - public void setIqn(String iqn) { + public void setIqn(@jakarta.annotation.Nonnull String iqn) { this.iqn = iqn; } - public V1ISCSIVolumeSource iscsiInterface(String iscsiInterface) { + public V1ISCSIVolumeSource iscsiInterface(@jakarta.annotation.Nullable String iscsiInterface) { this.iscsiInterface = iscsiInterface; return this; } - /** + /** * iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). * @return iscsiInterface - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).") public String getIscsiInterface() { return iscsiInterface; } - public void setIscsiInterface(String iscsiInterface) { + public void setIscsiInterface(@jakarta.annotation.Nullable String iscsiInterface) { this.iscsiInterface = iscsiInterface; } - public V1ISCSIVolumeSource lun(Integer lun) { + public V1ISCSIVolumeSource lun(@jakarta.annotation.Nonnull Integer lun) { this.lun = lun; return this; } - /** + /** * lun represents iSCSI Target Lun number. * @return lun - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "lun represents iSCSI Target Lun number.") public Integer getLun() { return lun; } - public void setLun(Integer lun) { + public void setLun(@jakarta.annotation.Nonnull Integer lun) { this.lun = lun; } - public V1ISCSIVolumeSource portals(List portals) { + public V1ISCSIVolumeSource portals(@jakarta.annotation.Nullable List portals) { this.portals = portals; return this; } @@ -256,77 +266,77 @@ public V1ISCSIVolumeSource addPortalsItem(String portalsItem) { return this; } - /** + /** * portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). * @return portals - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).") public List getPortals() { return portals; } - public void setPortals(List portals) { + public void setPortals(@jakarta.annotation.Nullable List portals) { this.portals = portals; } - public V1ISCSIVolumeSource readOnly(Boolean readOnly) { + public V1ISCSIVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1ISCSIVolumeSource secretRef(V1LocalObjectReference secretRef) { + public V1ISCSIVolumeSource secretRef(@jakarta.annotation.Nullable V1LocalObjectReference secretRef) { this.secretRef = secretRef; return this; } - /** + /** * Get secretRef * @return secretRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LocalObjectReference getSecretRef() { return secretRef; } - public void setSecretRef(V1LocalObjectReference secretRef) { + public void setSecretRef(@jakarta.annotation.Nullable V1LocalObjectReference secretRef) { this.secretRef = secretRef; } - public V1ISCSIVolumeSource targetPortal(String targetPortal) { + public V1ISCSIVolumeSource targetPortal(@jakarta.annotation.Nonnull String targetPortal) { this.targetPortal = targetPortal; return this; } - /** + /** * targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). * @return targetPortal - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).") public String getTargetPortal() { return targetPortal; } - public void setTargetPortal(String targetPortal) { + public void setTargetPortal(@jakarta.annotation.Nonnull String targetPortal) { this.targetPortal = targetPortal; } @@ -415,12 +425,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("targetPortal"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ISCSIVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ISCSIVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ISCSIVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -497,22 +507,22 @@ public V1ISCSIVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ISCSIVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ISCSIVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1ISCSIVolumeSource - */ + /** + * Create an instance of V1ISCSIVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ISCSIVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1ISCSIVolumeSource + */ public static V1ISCSIVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ISCSIVolumeSource.class); } - /** - * Convert an instance of V1ISCSIVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ISCSIVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java index 590bb7e4bd..36e385ca08 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * ImageVolumeSource represents a image volume resource. */ @ApiModel(description = "ImageVolumeSource represents a image volume resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ImageVolumeSource { public static final String SERIALIZED_NAME_PULL_POLICY = "pullPolicy"; @SerializedName(SERIALIZED_NAME_PULL_POLICY) + @jakarta.annotation.Nullable private String pullPolicy; public static final String SERIALIZED_NAME_REFERENCE = "reference"; @SerializedName(SERIALIZED_NAME_REFERENCE) + @jakarta.annotation.Nullable private String reference; public V1ImageVolumeSource() { } - public V1ImageVolumeSource pullPolicy(String pullPolicy) { + public V1ImageVolumeSource pullPolicy(@jakarta.annotation.Nullable String pullPolicy) { this.pullPolicy = pullPolicy; return this; } - /** + /** * Policy for pulling OCI objects. Possible values are: Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. * @return pullPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Policy for pulling OCI objects. Possible values are: Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.") public String getPullPolicy() { return pullPolicy; } - public void setPullPolicy(String pullPolicy) { + public void setPullPolicy(@jakarta.annotation.Nullable String pullPolicy) { this.pullPolicy = pullPolicy; } - public V1ImageVolumeSource reference(String reference) { + public V1ImageVolumeSource reference(@jakarta.annotation.Nullable String reference) { this.reference = reference; return this; } - /** + /** * Required: Image or artifact reference to be used. Behaves in the same way as pod.spec.containers[*].image. Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. * @return reference - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Required: Image or artifact reference to be used. Behaves in the same way as pod.spec.containers[*].image. Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.") public String getReference() { return reference; } - public void setReference(String reference) { + public void setReference(@jakarta.annotation.Nullable String reference) { this.reference = reference; } @@ -158,12 +159,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ImageVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ImageVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ImageVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -216,22 +217,22 @@ public V1ImageVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ImageVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ImageVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1ImageVolumeSource - */ + /** + * Create an instance of V1ImageVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ImageVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1ImageVolumeSource + */ public static V1ImageVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ImageVolumeSource.class); } - /** - * Convert an instance of V1ImageVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ImageVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java index a0f07e8c4b..5626567019 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. */ @ApiModel(description = "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Ingress implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1IngressSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1IngressStatus status; public V1Ingress() { } - public V1Ingress apiVersion(String apiVersion) { + public V1Ingress apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1Ingress kind(String kind) { + public V1Ingress kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1Ingress metadata(V1ObjectMeta metadata) { + public V1Ingress metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1Ingress spec(V1IngressSpec spec) { + public V1Ingress spec(@jakarta.annotation.Nullable V1IngressSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1IngressSpec getSpec() { return spec; } - public void setSpec(V1IngressSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1IngressSpec spec) { this.spec = spec; } - public V1Ingress status(V1IngressStatus status) { + public V1Ingress status(@jakarta.annotation.Nullable V1IngressStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1IngressStatus getStatus() { return status; } - public void setStatus(V1IngressStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1IngressStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Ingress - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Ingress + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Ingress.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1Ingress read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Ingress given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Ingress - * @throws IOException if the JSON string is invalid with respect to V1Ingress - */ + /** + * Create an instance of V1Ingress given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Ingress + * @throws IOException if the JSON string is invalid with respect to V1Ingress + */ public static V1Ingress fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Ingress.class); } - /** - * Convert an instance of V1Ingress to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Ingress to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java index 7108d9b7bb..1ede9c878d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,55 +52,57 @@ * IngressBackend describes all endpoints for a given service and port. */ @ApiModel(description = "IngressBackend describes all endpoints for a given service and port.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IngressBackend { public static final String SERIALIZED_NAME_RESOURCE = "resource"; @SerializedName(SERIALIZED_NAME_RESOURCE) + @jakarta.annotation.Nullable private V1TypedLocalObjectReference resource; public static final String SERIALIZED_NAME_SERVICE = "service"; @SerializedName(SERIALIZED_NAME_SERVICE) + @jakarta.annotation.Nullable private V1IngressServiceBackend service; public V1IngressBackend() { } - public V1IngressBackend resource(V1TypedLocalObjectReference resource) { + public V1IngressBackend resource(@jakarta.annotation.Nullable V1TypedLocalObjectReference resource) { this.resource = resource; return this; } - /** + /** * Get resource * @return resource - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1TypedLocalObjectReference getResource() { return resource; } - public void setResource(V1TypedLocalObjectReference resource) { + public void setResource(@jakarta.annotation.Nullable V1TypedLocalObjectReference resource) { this.resource = resource; } - public V1IngressBackend service(V1IngressServiceBackend service) { + public V1IngressBackend service(@jakarta.annotation.Nullable V1IngressServiceBackend service) { this.service = service; return this; } - /** + /** * Get service * @return service - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1IngressServiceBackend getService() { return service; } - public void setService(V1IngressServiceBackend service) { + public void setService(@jakarta.annotation.Nullable V1IngressServiceBackend service) { this.service = service; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1IngressBackend - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1IngressBackend + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressBackend.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -220,22 +221,22 @@ public V1IngressBackend read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1IngressBackend given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1IngressBackend - * @throws IOException if the JSON string is invalid with respect to V1IngressBackend - */ + /** + * Create an instance of V1IngressBackend given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressBackend + * @throws IOException if the JSON string is invalid with respect to V1IngressBackend + */ public static V1IngressBackend fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1IngressBackend.class); } - /** - * Convert an instance of V1IngressBackend to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1IngressBackend to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java index 32a181a3bd..102b2c22df 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,103 +52,107 @@ * IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class. */ @ApiModel(description = "IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IngressClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1IngressClassSpec spec; public V1IngressClass() { } - public V1IngressClass apiVersion(String apiVersion) { + public V1IngressClass apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1IngressClass kind(String kind) { + public V1IngressClass kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1IngressClass metadata(V1ObjectMeta metadata) { + public V1IngressClass metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1IngressClass spec(V1IngressClassSpec spec) { + public V1IngressClass spec(@jakarta.annotation.Nullable V1IngressClassSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1IngressClassSpec getSpec() { return spec; } - public void setSpec(V1IngressClassSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1IngressClassSpec spec) { this.spec = spec; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1IngressClass - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1IngressClass + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -280,22 +283,22 @@ public V1IngressClass read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1IngressClass given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1IngressClass - * @throws IOException if the JSON string is invalid with respect to V1IngressClass - */ + /** + * Create an instance of V1IngressClass given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressClass + * @throws IOException if the JSON string is invalid with respect to V1IngressClass + */ public static V1IngressClass fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1IngressClass.class); } - /** - * Convert an instance of V1IngressClass to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1IngressClass to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassList.java index 237665b5b9..2aca1e5ac7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * IngressClassList is a collection of IngressClasses. */ @ApiModel(description = "IngressClassList is a collection of IngressClasses.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IngressClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1IngressClassList() { } - public V1IngressClassList apiVersion(String apiVersion) { + public V1IngressClassList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1IngressClassList items(List items) { + public V1IngressClassList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1IngressClassList addItemsItem(V1IngressClass itemsItem) { return this; } - /** + /** * items is the list of IngressClasses. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is the list of IngressClasses.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1IngressClassList kind(String kind) { + public V1IngressClassList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1IngressClassList metadata(V1ListMeta metadata) { + public V1IngressClassList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1IngressClassList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1IngressClassList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1IngressClassList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1IngressClassList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1IngressClassList - * @throws IOException if the JSON string is invalid with respect to V1IngressClassList - */ + /** + * Create an instance of V1IngressClassList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressClassList + * @throws IOException if the JSON string is invalid with respect to V1IngressClassList + */ public static V1IngressClassList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1IngressClassList.class); } - /** - * Convert an instance of V1IngressClassList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1IngressClassList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReference.java index 420acc51c1..b4e64800a4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReference.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,127 +50,132 @@ * IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource. */ @ApiModel(description = "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IngressClassParametersReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) + @jakarta.annotation.Nullable private String apiGroup; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nonnull private String kind; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) + @jakarta.annotation.Nullable private String namespace; public static final String SERIALIZED_NAME_SCOPE = "scope"; @SerializedName(SERIALIZED_NAME_SCOPE) + @jakarta.annotation.Nullable private String scope; public V1IngressClassParametersReference() { } - public V1IngressClassParametersReference apiGroup(String apiGroup) { + public V1IngressClassParametersReference apiGroup(@jakarta.annotation.Nullable String apiGroup) { this.apiGroup = apiGroup; return this; } - /** + /** * apiGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. * @return apiGroup - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "apiGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.") public String getApiGroup() { return apiGroup; } - public void setApiGroup(String apiGroup) { + public void setApiGroup(@jakarta.annotation.Nullable String apiGroup) { this.apiGroup = apiGroup; } - public V1IngressClassParametersReference kind(String kind) { + public V1IngressClassParametersReference kind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; return this; } - /** + /** * kind is the type of resource being referenced. * @return kind - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "kind is the type of resource being referenced.") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; } - public V1IngressClassParametersReference name(String name) { + public V1IngressClassParametersReference name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * name is the name of resource being referenced. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "name is the name of resource being referenced.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1IngressClassParametersReference namespace(String namespace) { + public V1IngressClassParametersReference namespace(@jakarta.annotation.Nullable String namespace) { this.namespace = namespace; return this; } - /** + /** * namespace is the namespace of the resource being referenced. This field is required when scope is set to \"Namespace\" and must be unset when scope is set to \"Cluster\". * @return namespace - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "namespace is the namespace of the resource being referenced. This field is required when scope is set to \"Namespace\" and must be unset when scope is set to \"Cluster\".") public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { + public void setNamespace(@jakarta.annotation.Nullable String namespace) { this.namespace = namespace; } - public V1IngressClassParametersReference scope(String scope) { + public V1IngressClassParametersReference scope(@jakarta.annotation.Nullable String scope) { this.scope = scope; return this; } - /** + /** * scope represents if this refers to a cluster or namespace scoped resource. This may be set to \"Cluster\" (default) or \"Namespace\". * @return scope - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "scope represents if this refers to a cluster or namespace scoped resource. This may be set to \"Cluster\" (default) or \"Namespace\".") public String getScope() { return scope; } - public void setScope(String scope) { + public void setScope(@jakarta.annotation.Nullable String scope) { this.scope = scope; } @@ -241,12 +245,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1IngressClassParametersReference - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1IngressClassParametersReference + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressClassParametersReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -315,22 +319,22 @@ public V1IngressClassParametersReference read(JsonReader in) throws IOException } } - /** - * Create an instance of V1IngressClassParametersReference given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1IngressClassParametersReference - * @throws IOException if the JSON string is invalid with respect to V1IngressClassParametersReference - */ + /** + * Create an instance of V1IngressClassParametersReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressClassParametersReference + * @throws IOException if the JSON string is invalid with respect to V1IngressClassParametersReference + */ public static V1IngressClassParametersReference fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1IngressClassParametersReference.class); } - /** - * Convert an instance of V1IngressClassParametersReference to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1IngressClassParametersReference to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpec.java index 221c8e1845..d03893b090 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpec.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * IngressClassSpec provides information about the class of an Ingress. */ @ApiModel(description = "IngressClassSpec provides information about the class of an Ingress.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IngressClassSpec { public static final String SERIALIZED_NAME_CONTROLLER = "controller"; @SerializedName(SERIALIZED_NAME_CONTROLLER) + @jakarta.annotation.Nullable private String controller; public static final String SERIALIZED_NAME_PARAMETERS = "parameters"; @SerializedName(SERIALIZED_NAME_PARAMETERS) + @jakarta.annotation.Nullable private V1IngressClassParametersReference parameters; public V1IngressClassSpec() { } - public V1IngressClassSpec controller(String controller) { + public V1IngressClassSpec controller(@jakarta.annotation.Nullable String controller) { this.controller = controller; return this; } - /** + /** * controller refers to the name of the controller that should handle this class. This allows for different \"flavors\" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. \"acme.io/ingress-controller\". This field is immutable. * @return controller - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "controller refers to the name of the controller that should handle this class. This allows for different \"flavors\" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. \"acme.io/ingress-controller\". This field is immutable.") public String getController() { return controller; } - public void setController(String controller) { + public void setController(@jakarta.annotation.Nullable String controller) { this.controller = controller; } - public V1IngressClassSpec parameters(V1IngressClassParametersReference parameters) { + public V1IngressClassSpec parameters(@jakarta.annotation.Nullable V1IngressClassParametersReference parameters) { this.parameters = parameters; return this; } - /** + /** * Get parameters * @return parameters - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1IngressClassParametersReference getParameters() { return parameters; } - public void setParameters(V1IngressClassParametersReference parameters) { + public void setParameters(@jakarta.annotation.Nullable V1IngressClassParametersReference parameters) { this.parameters = parameters; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1IngressClassSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1IngressClassSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressClassSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -218,22 +219,22 @@ public V1IngressClassSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1IngressClassSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1IngressClassSpec - * @throws IOException if the JSON string is invalid with respect to V1IngressClassSpec - */ + /** + * Create an instance of V1IngressClassSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressClassSpec + * @throws IOException if the JSON string is invalid with respect to V1IngressClassSpec + */ public static V1IngressClassSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1IngressClassSpec.class); } - /** - * Convert an instance of V1IngressClassSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1IngressClassSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java index ab825603e2..e386cf075a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * IngressList is a collection of Ingress. */ @ApiModel(description = "IngressList is a collection of Ingress.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IngressList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1IngressList() { } - public V1IngressList apiVersion(String apiVersion) { + public V1IngressList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1IngressList items(List items) { + public V1IngressList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1IngressList addItemsItem(V1Ingress itemsItem) { return this; } - /** + /** * items is the list of Ingress. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is the list of Ingress.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1IngressList kind(String kind) { + public V1IngressList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1IngressList metadata(V1ListMeta metadata) { + public V1IngressList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1IngressList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1IngressList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1IngressList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1IngressList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1IngressList - * @throws IOException if the JSON string is invalid with respect to V1IngressList - */ + /** + * Create an instance of V1IngressList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressList + * @throws IOException if the JSON string is invalid with respect to V1IngressList + */ public static V1IngressList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1IngressList.class); } - /** - * Convert an instance of V1IngressList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1IngressList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngress.java index 381d2c89ba..b2fa7b5c7f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngress.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,64 +53,67 @@ * IngressLoadBalancerIngress represents the status of a load-balancer ingress point. */ @ApiModel(description = "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IngressLoadBalancerIngress { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) + @jakarta.annotation.Nullable private String hostname; public static final String SERIALIZED_NAME_IP = "ip"; @SerializedName(SERIALIZED_NAME_IP) + @jakarta.annotation.Nullable private String ip; public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) + @jakarta.annotation.Nullable private List ports = new ArrayList<>(); public V1IngressLoadBalancerIngress() { } - public V1IngressLoadBalancerIngress hostname(String hostname) { + public V1IngressLoadBalancerIngress hostname(@jakarta.annotation.Nullable String hostname) { this.hostname = hostname; return this; } - /** + /** * hostname is set for load-balancer ingress points that are DNS based. * @return hostname - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "hostname is set for load-balancer ingress points that are DNS based.") public String getHostname() { return hostname; } - public void setHostname(String hostname) { + public void setHostname(@jakarta.annotation.Nullable String hostname) { this.hostname = hostname; } - public V1IngressLoadBalancerIngress ip(String ip) { + public V1IngressLoadBalancerIngress ip(@jakarta.annotation.Nullable String ip) { this.ip = ip; return this; } - /** + /** * ip is set for load-balancer ingress points that are IP based. * @return ip - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ip is set for load-balancer ingress points that are IP based.") public String getIp() { return ip; } - public void setIp(String ip) { + public void setIp(@jakarta.annotation.Nullable String ip) { this.ip = ip; } - public V1IngressLoadBalancerIngress ports(List ports) { + public V1IngressLoadBalancerIngress ports(@jakarta.annotation.Nullable List ports) { this.ports = ports; return this; } @@ -124,17 +126,17 @@ public V1IngressLoadBalancerIngress addPortsItem(V1IngressPortStatus portsItem) return this; } - /** + /** * ports provides information about the ports exposed by this LoadBalancer. * @return ports - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ports provides information about the ports exposed by this LoadBalancer.") public List getPorts() { return ports; } - public void setPorts(List ports) { + public void setPorts(@jakarta.annotation.Nullable List ports) { this.ports = ports; } @@ -196,12 +198,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1IngressLoadBalancerIngress - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1IngressLoadBalancerIngress + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressLoadBalancerIngress.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -268,22 +270,22 @@ public V1IngressLoadBalancerIngress read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1IngressLoadBalancerIngress given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1IngressLoadBalancerIngress - * @throws IOException if the JSON string is invalid with respect to V1IngressLoadBalancerIngress - */ + /** + * Create an instance of V1IngressLoadBalancerIngress given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressLoadBalancerIngress + * @throws IOException if the JSON string is invalid with respect to V1IngressLoadBalancerIngress + */ public static V1IngressLoadBalancerIngress fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1IngressLoadBalancerIngress.class); } - /** - * Convert an instance of V1IngressLoadBalancerIngress to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1IngressLoadBalancerIngress to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatus.java index 131bee4b67..42de53c46d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatus.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,16 +53,17 @@ * IngressLoadBalancerStatus represents the status of a load-balancer. */ @ApiModel(description = "IngressLoadBalancerStatus represents the status of a load-balancer.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IngressLoadBalancerStatus { public static final String SERIALIZED_NAME_INGRESS = "ingress"; @SerializedName(SERIALIZED_NAME_INGRESS) + @jakarta.annotation.Nullable private List ingress = new ArrayList<>(); public V1IngressLoadBalancerStatus() { } - public V1IngressLoadBalancerStatus ingress(List ingress) { + public V1IngressLoadBalancerStatus ingress(@jakarta.annotation.Nullable List ingress) { this.ingress = ingress; return this; } @@ -76,17 +76,17 @@ public V1IngressLoadBalancerStatus addIngressItem(V1IngressLoadBalancerIngress i return this; } - /** + /** * ingress is a list containing ingress points for the load-balancer. * @return ingress - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ingress is a list containing ingress points for the load-balancer.") public List getIngress() { return ingress; } - public void setIngress(List ingress) { + public void setIngress(@jakarta.annotation.Nullable List ingress) { this.ingress = ingress; } @@ -142,12 +142,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1IngressLoadBalancerStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1IngressLoadBalancerStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressLoadBalancerStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -208,22 +208,22 @@ public V1IngressLoadBalancerStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1IngressLoadBalancerStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1IngressLoadBalancerStatus - * @throws IOException if the JSON string is invalid with respect to V1IngressLoadBalancerStatus - */ + /** + * Create an instance of V1IngressLoadBalancerStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressLoadBalancerStatus + * @throws IOException if the JSON string is invalid with respect to V1IngressLoadBalancerStatus + */ public static V1IngressLoadBalancerStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1IngressLoadBalancerStatus.class); } - /** - * Convert an instance of V1IngressLoadBalancerStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1IngressLoadBalancerStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatus.java index 46d2fd9633..ae5c4243c6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatus.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,79 +50,82 @@ * IngressPortStatus represents the error condition of a service port */ @ApiModel(description = "IngressPortStatus represents the error condition of a service port") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IngressPortStatus { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) + @jakarta.annotation.Nullable private String error; public static final String SERIALIZED_NAME_PORT = "port"; @SerializedName(SERIALIZED_NAME_PORT) + @jakarta.annotation.Nonnull private Integer port; public static final String SERIALIZED_NAME_PROTOCOL = "protocol"; @SerializedName(SERIALIZED_NAME_PROTOCOL) + @jakarta.annotation.Nonnull private String protocol; public V1IngressPortStatus() { } - public V1IngressPortStatus error(String error) { + public V1IngressPortStatus error(@jakarta.annotation.Nullable String error) { this.error = error; return this; } - /** + /** * error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use CamelCase names - cloud provider specific error values must have names that comply with the format foo.example.com/CamelCase. * @return error - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use CamelCase names - cloud provider specific error values must have names that comply with the format foo.example.com/CamelCase.") public String getError() { return error; } - public void setError(String error) { + public void setError(@jakarta.annotation.Nullable String error) { this.error = error; } - public V1IngressPortStatus port(Integer port) { + public V1IngressPortStatus port(@jakarta.annotation.Nonnull Integer port) { this.port = port; return this; } - /** + /** * port is the port number of the ingress port. * @return port - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "port is the port number of the ingress port.") public Integer getPort() { return port; } - public void setPort(Integer port) { + public void setPort(@jakarta.annotation.Nonnull Integer port) { this.port = port; } - public V1IngressPortStatus protocol(String protocol) { + public V1IngressPortStatus protocol(@jakarta.annotation.Nonnull String protocol) { this.protocol = protocol; return this; } - /** + /** * protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\" * @return protocol - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\"") public String getProtocol() { return protocol; } - public void setProtocol(String protocol) { + public void setProtocol(@jakarta.annotation.Nonnull String protocol) { this.protocol = protocol; } @@ -187,12 +189,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("protocol"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1IngressPortStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1IngressPortStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressPortStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -252,22 +254,22 @@ public V1IngressPortStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1IngressPortStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1IngressPortStatus - * @throws IOException if the JSON string is invalid with respect to V1IngressPortStatus - */ + /** + * Create an instance of V1IngressPortStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressPortStatus + * @throws IOException if the JSON string is invalid with respect to V1IngressPortStatus + */ public static V1IngressPortStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1IngressPortStatus.class); } - /** - * Convert an instance of V1IngressPortStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1IngressPortStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressRule.java index a64e76d02e..380b83ba68 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressRule.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue. */ @ApiModel(description = "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IngressRule { public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) + @jakarta.annotation.Nullable private String host; public static final String SERIALIZED_NAME_HTTP = "http"; @SerializedName(SERIALIZED_NAME_HTTP) + @jakarta.annotation.Nullable private V1HTTPIngressRuleValue http; public V1IngressRule() { } - public V1IngressRule host(String host) { + public V1IngressRule host(@jakarta.annotation.Nullable String host) { this.host = host; return this; } - /** + /** * host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. host can be \"precise\" which is a domain name without the terminating dot of a network host (e.g. \"foo.bar.com\") or \"wildcard\", which is a domain name prefixed with a single wildcard label (e.g. \"*.foo.com\"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == \"*\"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. * @return host - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. host can be \"precise\" which is a domain name without the terminating dot of a network host (e.g. \"foo.bar.com\") or \"wildcard\", which is a domain name prefixed with a single wildcard label (e.g. \"*.foo.com\"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == \"*\"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.") public String getHost() { return host; } - public void setHost(String host) { + public void setHost(@jakarta.annotation.Nullable String host) { this.host = host; } - public V1IngressRule http(V1HTTPIngressRuleValue http) { + public V1IngressRule http(@jakarta.annotation.Nullable V1HTTPIngressRuleValue http) { this.http = http; return this; } - /** + /** * Get http * @return http - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1HTTPIngressRuleValue getHttp() { return http; } - public void setHttp(V1HTTPIngressRuleValue http) { + public void setHttp(@jakarta.annotation.Nullable V1HTTPIngressRuleValue http) { this.http = http; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1IngressRule - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1IngressRule + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -218,22 +219,22 @@ public V1IngressRule read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1IngressRule given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1IngressRule - * @throws IOException if the JSON string is invalid with respect to V1IngressRule - */ + /** + * Create an instance of V1IngressRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressRule + * @throws IOException if the JSON string is invalid with respect to V1IngressRule + */ public static V1IngressRule fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1IngressRule.class); } - /** - * Convert an instance of V1IngressRule to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1IngressRule to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java index b05e81aef1..e5bbfc215f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * IngressServiceBackend references a Kubernetes Service as a Backend. */ @ApiModel(description = "IngressServiceBackend references a Kubernetes Service as a Backend.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IngressServiceBackend { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PORT = "port"; @SerializedName(SERIALIZED_NAME_PORT) + @jakarta.annotation.Nullable private V1ServiceBackendPort port; public V1IngressServiceBackend() { } - public V1IngressServiceBackend name(String name) { + public V1IngressServiceBackend name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * name is the referenced service. The service must exist in the same namespace as the Ingress object. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "name is the referenced service. The service must exist in the same namespace as the Ingress object.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1IngressServiceBackend port(V1ServiceBackendPort port) { + public V1IngressServiceBackend port(@jakarta.annotation.Nullable V1ServiceBackendPort port) { this.port = port; return this; } - /** + /** * Get port * @return port - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceBackendPort getPort() { return port; } - public void setPort(V1ServiceBackendPort port) { + public void setPort(@jakarta.annotation.Nullable V1ServiceBackendPort port) { this.port = port; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1IngressServiceBackend - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1IngressServiceBackend + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressServiceBackend.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -226,22 +227,22 @@ public V1IngressServiceBackend read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1IngressServiceBackend given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1IngressServiceBackend - * @throws IOException if the JSON string is invalid with respect to V1IngressServiceBackend - */ + /** + * Create an instance of V1IngressServiceBackend given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressServiceBackend + * @throws IOException if the JSON string is invalid with respect to V1IngressServiceBackend + */ public static V1IngressServiceBackend fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1IngressServiceBackend.class); } - /** - * Convert an instance of V1IngressServiceBackend to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1IngressServiceBackend to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java index b14c83025a..cfb3cf8857 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java @@ -43,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -56,68 +55,72 @@ * IngressSpec describes the Ingress the user wishes to exist. */ @ApiModel(description = "IngressSpec describes the Ingress the user wishes to exist.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IngressSpec { public static final String SERIALIZED_NAME_DEFAULT_BACKEND = "defaultBackend"; @SerializedName(SERIALIZED_NAME_DEFAULT_BACKEND) + @jakarta.annotation.Nullable private V1IngressBackend defaultBackend; public static final String SERIALIZED_NAME_INGRESS_CLASS_NAME = "ingressClassName"; @SerializedName(SERIALIZED_NAME_INGRESS_CLASS_NAME) + @jakarta.annotation.Nullable private String ingressClassName; public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) + @jakarta.annotation.Nullable private List rules = new ArrayList<>(); public static final String SERIALIZED_NAME_TLS = "tls"; @SerializedName(SERIALIZED_NAME_TLS) + @jakarta.annotation.Nullable private List tls = new ArrayList<>(); public V1IngressSpec() { } - public V1IngressSpec defaultBackend(V1IngressBackend defaultBackend) { + public V1IngressSpec defaultBackend(@jakarta.annotation.Nullable V1IngressBackend defaultBackend) { this.defaultBackend = defaultBackend; return this; } - /** + /** * Get defaultBackend * @return defaultBackend - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1IngressBackend getDefaultBackend() { return defaultBackend; } - public void setDefaultBackend(V1IngressBackend defaultBackend) { + public void setDefaultBackend(@jakarta.annotation.Nullable V1IngressBackend defaultBackend) { this.defaultBackend = defaultBackend; } - public V1IngressSpec ingressClassName(String ingressClassName) { + public V1IngressSpec ingressClassName(@jakarta.annotation.Nullable String ingressClassName) { this.ingressClassName = ingressClassName; return this; } - /** + /** * ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present. * @return ingressClassName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present.") public String getIngressClassName() { return ingressClassName; } - public void setIngressClassName(String ingressClassName) { + public void setIngressClassName(@jakarta.annotation.Nullable String ingressClassName) { this.ingressClassName = ingressClassName; } - public V1IngressSpec rules(List rules) { + public V1IngressSpec rules(@jakarta.annotation.Nullable List rules) { this.rules = rules; return this; } @@ -130,22 +133,22 @@ public V1IngressSpec addRulesItem(V1IngressRule rulesItem) { return this; } - /** + /** * rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. * @return rules - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.") public List getRules() { return rules; } - public void setRules(List rules) { + public void setRules(@jakarta.annotation.Nullable List rules) { this.rules = rules; } - public V1IngressSpec tls(List tls) { + public V1IngressSpec tls(@jakarta.annotation.Nullable List tls) { this.tls = tls; return this; } @@ -158,17 +161,17 @@ public V1IngressSpec addTlsItem(V1IngressTLS tlsItem) { return this; } - /** + /** * tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. * @return tls - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.") public List getTls() { return tls; } - public void setTls(List tls) { + public void setTls(@jakarta.annotation.Nullable List tls) { this.tls = tls; } @@ -233,12 +236,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1IngressSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1IngressSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -320,22 +323,22 @@ public V1IngressSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1IngressSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1IngressSpec - * @throws IOException if the JSON string is invalid with respect to V1IngressSpec - */ + /** + * Create an instance of V1IngressSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressSpec + * @throws IOException if the JSON string is invalid with respect to V1IngressSpec + */ public static V1IngressSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1IngressSpec.class); } - /** - * Convert an instance of V1IngressSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1IngressSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatus.java index cf9ad27a7a..cc7432b551 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatus.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,31 +51,32 @@ * IngressStatus describe the current state of the Ingress. */ @ApiModel(description = "IngressStatus describe the current state of the Ingress.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IngressStatus { public static final String SERIALIZED_NAME_LOAD_BALANCER = "loadBalancer"; @SerializedName(SERIALIZED_NAME_LOAD_BALANCER) + @jakarta.annotation.Nullable private V1IngressLoadBalancerStatus loadBalancer; public V1IngressStatus() { } - public V1IngressStatus loadBalancer(V1IngressLoadBalancerStatus loadBalancer) { + public V1IngressStatus loadBalancer(@jakarta.annotation.Nullable V1IngressLoadBalancerStatus loadBalancer) { this.loadBalancer = loadBalancer; return this; } - /** + /** * Get loadBalancer * @return loadBalancer - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1IngressLoadBalancerStatus getLoadBalancer() { return loadBalancer; } - public void setLoadBalancer(V1IngressLoadBalancerStatus loadBalancer) { + public void setLoadBalancer(@jakarta.annotation.Nullable V1IngressLoadBalancerStatus loadBalancer) { this.loadBalancer = loadBalancer; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1IngressStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1IngressStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -188,22 +188,22 @@ public V1IngressStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1IngressStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1IngressStatus - * @throws IOException if the JSON string is invalid with respect to V1IngressStatus - */ + /** + * Create an instance of V1IngressStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressStatus + * @throws IOException if the JSON string is invalid with respect to V1IngressStatus + */ public static V1IngressStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1IngressStatus.class); } - /** - * Convert an instance of V1IngressStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1IngressStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLS.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLS.java index 2ddc78f476..d8605daec5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLS.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLS.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,20 +52,22 @@ * IngressTLS describes the transport layer security associated with an ingress. */ @ApiModel(description = "IngressTLS describes the transport layer security associated with an ingress.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IngressTLS { public static final String SERIALIZED_NAME_HOSTS = "hosts"; @SerializedName(SERIALIZED_NAME_HOSTS) + @jakarta.annotation.Nullable private List hosts = new ArrayList<>(); public static final String SERIALIZED_NAME_SECRET_NAME = "secretName"; @SerializedName(SERIALIZED_NAME_SECRET_NAME) + @jakarta.annotation.Nullable private String secretName; public V1IngressTLS() { } - public V1IngressTLS hosts(List hosts) { + public V1IngressTLS hosts(@jakarta.annotation.Nullable List hosts) { this.hosts = hosts; return this; } @@ -79,37 +80,37 @@ public V1IngressTLS addHostsItem(String hostsItem) { return this; } - /** + /** * hosts is a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. * @return hosts - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "hosts is a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.") public List getHosts() { return hosts; } - public void setHosts(List hosts) { + public void setHosts(@jakarta.annotation.Nullable List hosts) { this.hosts = hosts; } - public V1IngressTLS secretName(String secretName) { + public V1IngressTLS secretName(@jakarta.annotation.Nullable String secretName) { this.secretName = secretName; return this; } - /** + /** * secretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the \"Host\" header is used for routing. * @return secretName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "secretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the \"Host\" header is used for routing.") public String getSecretName() { return secretName; } - public void setSecretName(String secretName) { + public void setSecretName(@jakarta.annotation.Nullable String secretName) { this.secretName = secretName; } @@ -168,12 +169,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1IngressTLS - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1IngressTLS + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressTLS.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -227,22 +228,22 @@ public V1IngressTLS read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1IngressTLS given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1IngressTLS - * @throws IOException if the JSON string is invalid with respect to V1IngressTLS - */ + /** + * Create an instance of V1IngressTLS given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressTLS + * @throws IOException if the JSON string is invalid with respect to V1IngressTLS + */ public static V1IngressTLS fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1IngressTLS.class); } - /** - * Convert an instance of V1IngressTLS to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1IngressTLS to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java index e45fddb325..bb5db91a68 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java @@ -44,7 +44,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -57,268 +56,312 @@ * JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). */ @ApiModel(description = "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1JSONSchemaProps { public static final String SERIALIZED_NAME_$_REF = "$ref"; @SerializedName(SERIALIZED_NAME_$_REF) + @jakarta.annotation.Nullable private String $ref; public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; @SerializedName(SERIALIZED_NAME_$_SCHEMA) + @jakarta.annotation.Nullable private String $schema; public static final String SERIALIZED_NAME_ADDITIONAL_ITEMS = "additionalItems"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_ITEMS) + @jakarta.annotation.Nullable private Object additionalItems; public static final String SERIALIZED_NAME_ADDITIONAL_PROPERTIES = "additionalProperties"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_PROPERTIES) + @jakarta.annotation.Nullable private Object additionalProperties; public static final String SERIALIZED_NAME_ALL_OF = "allOf"; @SerializedName(SERIALIZED_NAME_ALL_OF) + @jakarta.annotation.Nullable private List allOf = new ArrayList<>(); public static final String SERIALIZED_NAME_ANY_OF = "anyOf"; @SerializedName(SERIALIZED_NAME_ANY_OF) + @jakarta.annotation.Nullable private List anyOf = new ArrayList<>(); public static final String SERIALIZED_NAME_DEFAULT = "default"; @SerializedName(SERIALIZED_NAME_DEFAULT) + @jakarta.annotation.Nullable private Object _default; public static final String SERIALIZED_NAME_DEFINITIONS = "definitions"; @SerializedName(SERIALIZED_NAME_DEFINITIONS) + @jakarta.annotation.Nullable private Map definitions = new HashMap<>(); public static final String SERIALIZED_NAME_DEPENDENCIES = "dependencies"; @SerializedName(SERIALIZED_NAME_DEPENDENCIES) + @jakarta.annotation.Nullable private Map dependencies = new HashMap<>(); public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @jakarta.annotation.Nullable private String description; public static final String SERIALIZED_NAME_ENUM = "enum"; @SerializedName(SERIALIZED_NAME_ENUM) + @jakarta.annotation.Nullable private List _enum = new ArrayList<>(); public static final String SERIALIZED_NAME_EXAMPLE = "example"; @SerializedName(SERIALIZED_NAME_EXAMPLE) + @jakarta.annotation.Nullable private Object example; public static final String SERIALIZED_NAME_EXCLUSIVE_MAXIMUM = "exclusiveMaximum"; @SerializedName(SERIALIZED_NAME_EXCLUSIVE_MAXIMUM) + @jakarta.annotation.Nullable private Boolean exclusiveMaximum; public static final String SERIALIZED_NAME_EXCLUSIVE_MINIMUM = "exclusiveMinimum"; @SerializedName(SERIALIZED_NAME_EXCLUSIVE_MINIMUM) + @jakarta.annotation.Nullable private Boolean exclusiveMinimum; public static final String SERIALIZED_NAME_EXTERNAL_DOCS = "externalDocs"; @SerializedName(SERIALIZED_NAME_EXTERNAL_DOCS) + @jakarta.annotation.Nullable private V1ExternalDocumentation externalDocs; public static final String SERIALIZED_NAME_FORMAT = "format"; @SerializedName(SERIALIZED_NAME_FORMAT) + @jakarta.annotation.Nullable private String format; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @jakarta.annotation.Nullable private String id; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nullable private Object items; public static final String SERIALIZED_NAME_MAX_ITEMS = "maxItems"; @SerializedName(SERIALIZED_NAME_MAX_ITEMS) + @jakarta.annotation.Nullable private Long maxItems; public static final String SERIALIZED_NAME_MAX_LENGTH = "maxLength"; @SerializedName(SERIALIZED_NAME_MAX_LENGTH) + @jakarta.annotation.Nullable private Long maxLength; public static final String SERIALIZED_NAME_MAX_PROPERTIES = "maxProperties"; @SerializedName(SERIALIZED_NAME_MAX_PROPERTIES) + @jakarta.annotation.Nullable private Long maxProperties; public static final String SERIALIZED_NAME_MAXIMUM = "maximum"; @SerializedName(SERIALIZED_NAME_MAXIMUM) + @jakarta.annotation.Nullable private Double maximum; public static final String SERIALIZED_NAME_MIN_ITEMS = "minItems"; @SerializedName(SERIALIZED_NAME_MIN_ITEMS) + @jakarta.annotation.Nullable private Long minItems; public static final String SERIALIZED_NAME_MIN_LENGTH = "minLength"; @SerializedName(SERIALIZED_NAME_MIN_LENGTH) + @jakarta.annotation.Nullable private Long minLength; public static final String SERIALIZED_NAME_MIN_PROPERTIES = "minProperties"; @SerializedName(SERIALIZED_NAME_MIN_PROPERTIES) + @jakarta.annotation.Nullable private Long minProperties; public static final String SERIALIZED_NAME_MINIMUM = "minimum"; @SerializedName(SERIALIZED_NAME_MINIMUM) + @jakarta.annotation.Nullable private Double minimum; public static final String SERIALIZED_NAME_MULTIPLE_OF = "multipleOf"; @SerializedName(SERIALIZED_NAME_MULTIPLE_OF) + @jakarta.annotation.Nullable private Double multipleOf; public static final String SERIALIZED_NAME_NOT = "not"; @SerializedName(SERIALIZED_NAME_NOT) + @jakarta.annotation.Nullable private V1JSONSchemaProps not; public static final String SERIALIZED_NAME_NULLABLE = "nullable"; @SerializedName(SERIALIZED_NAME_NULLABLE) + @jakarta.annotation.Nullable private Boolean nullable; public static final String SERIALIZED_NAME_ONE_OF = "oneOf"; @SerializedName(SERIALIZED_NAME_ONE_OF) + @jakarta.annotation.Nullable private List oneOf = new ArrayList<>(); public static final String SERIALIZED_NAME_PATTERN = "pattern"; @SerializedName(SERIALIZED_NAME_PATTERN) + @jakarta.annotation.Nullable private String pattern; public static final String SERIALIZED_NAME_PATTERN_PROPERTIES = "patternProperties"; @SerializedName(SERIALIZED_NAME_PATTERN_PROPERTIES) + @jakarta.annotation.Nullable private Map patternProperties = new HashMap<>(); public static final String SERIALIZED_NAME_PROPERTIES = "properties"; @SerializedName(SERIALIZED_NAME_PROPERTIES) + @jakarta.annotation.Nullable private Map properties = new HashMap<>(); public static final String SERIALIZED_NAME_REQUIRED = "required"; @SerializedName(SERIALIZED_NAME_REQUIRED) + @jakarta.annotation.Nullable private List required = new ArrayList<>(); public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) + @jakarta.annotation.Nullable private String title; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nullable private String type; public static final String SERIALIZED_NAME_UNIQUE_ITEMS = "uniqueItems"; @SerializedName(SERIALIZED_NAME_UNIQUE_ITEMS) + @jakarta.annotation.Nullable private Boolean uniqueItems; public static final String SERIALIZED_NAME_X_KUBERNETES_EMBEDDED_RESOURCE = "x-kubernetes-embedded-resource"; @SerializedName(SERIALIZED_NAME_X_KUBERNETES_EMBEDDED_RESOURCE) + @jakarta.annotation.Nullable private Boolean xKubernetesEmbeddedResource; public static final String SERIALIZED_NAME_X_KUBERNETES_INT_OR_STRING = "x-kubernetes-int-or-string"; @SerializedName(SERIALIZED_NAME_X_KUBERNETES_INT_OR_STRING) + @jakarta.annotation.Nullable private Boolean xKubernetesIntOrString; public static final String SERIALIZED_NAME_X_KUBERNETES_LIST_MAP_KEYS = "x-kubernetes-list-map-keys"; @SerializedName(SERIALIZED_NAME_X_KUBERNETES_LIST_MAP_KEYS) + @jakarta.annotation.Nullable private List xKubernetesListMapKeys = new ArrayList<>(); public static final String SERIALIZED_NAME_X_KUBERNETES_LIST_TYPE = "x-kubernetes-list-type"; @SerializedName(SERIALIZED_NAME_X_KUBERNETES_LIST_TYPE) + @jakarta.annotation.Nullable private String xKubernetesListType; public static final String SERIALIZED_NAME_X_KUBERNETES_MAP_TYPE = "x-kubernetes-map-type"; @SerializedName(SERIALIZED_NAME_X_KUBERNETES_MAP_TYPE) + @jakarta.annotation.Nullable private String xKubernetesMapType; public static final String SERIALIZED_NAME_X_KUBERNETES_PRESERVE_UNKNOWN_FIELDS = "x-kubernetes-preserve-unknown-fields"; @SerializedName(SERIALIZED_NAME_X_KUBERNETES_PRESERVE_UNKNOWN_FIELDS) + @jakarta.annotation.Nullable private Boolean xKubernetesPreserveUnknownFields; public static final String SERIALIZED_NAME_X_KUBERNETES_VALIDATIONS = "x-kubernetes-validations"; @SerializedName(SERIALIZED_NAME_X_KUBERNETES_VALIDATIONS) + @jakarta.annotation.Nullable private List xKubernetesValidations = new ArrayList<>(); public V1JSONSchemaProps() { } - public V1JSONSchemaProps $ref(String $ref) { + public V1JSONSchemaProps $ref(@jakarta.annotation.Nullable String $ref) { this.$ref = $ref; return this; } - /** + /** * Get $ref * @return $ref - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public String get$Ref() { return $ref; } - public void set$Ref(String $ref) { + public void set$Ref(@jakarta.annotation.Nullable String $ref) { this.$ref = $ref; } - public V1JSONSchemaProps $schema(String $schema) { + public V1JSONSchemaProps $schema(@jakarta.annotation.Nullable String $schema) { this.$schema = $schema; return this; } - /** + /** * Get $schema * @return $schema - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public String get$Schema() { return $schema; } - public void set$Schema(String $schema) { + public void set$Schema(@jakarta.annotation.Nullable String $schema) { this.$schema = $schema; } - public V1JSONSchemaProps additionalItems(Object additionalItems) { + public V1JSONSchemaProps additionalItems(@jakarta.annotation.Nullable Object additionalItems) { this.additionalItems = additionalItems; return this; } - /** + /** * JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. * @return additionalItems - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.") public Object getAdditionalItems() { return additionalItems; } - public void setAdditionalItems(Object additionalItems) { + public void setAdditionalItems(@jakarta.annotation.Nullable Object additionalItems) { this.additionalItems = additionalItems; } - public V1JSONSchemaProps additionalProperties(Object additionalProperties) { + public V1JSONSchemaProps additionalProperties(@jakarta.annotation.Nullable Object additionalProperties) { this.additionalProperties = additionalProperties; return this; } - /** + /** * JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. * @return additionalProperties - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.") public Object getAdditionalProperties() { return additionalProperties; } - public void setAdditionalProperties(Object additionalProperties) { + public void setAdditionalProperties(@jakarta.annotation.Nullable Object additionalProperties) { this.additionalProperties = additionalProperties; } - public V1JSONSchemaProps allOf(List allOf) { + public V1JSONSchemaProps allOf(@jakarta.annotation.Nullable List allOf) { this.allOf = allOf; return this; } @@ -331,22 +374,22 @@ public V1JSONSchemaProps addAllOfItem(V1JSONSchemaProps allOfItem) { return this; } - /** + /** * Get allOf * @return allOf - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public List getAllOf() { return allOf; } - public void setAllOf(List allOf) { + public void setAllOf(@jakarta.annotation.Nullable List allOf) { this.allOf = allOf; } - public V1JSONSchemaProps anyOf(List anyOf) { + public V1JSONSchemaProps anyOf(@jakarta.annotation.Nullable List anyOf) { this.anyOf = anyOf; return this; } @@ -359,42 +402,42 @@ public V1JSONSchemaProps addAnyOfItem(V1JSONSchemaProps anyOfItem) { return this; } - /** + /** * Get anyOf * @return anyOf - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public List getAnyOf() { return anyOf; } - public void setAnyOf(List anyOf) { + public void setAnyOf(@jakarta.annotation.Nullable List anyOf) { this.anyOf = anyOf; } - public V1JSONSchemaProps _default(Object _default) { + public V1JSONSchemaProps _default(@jakarta.annotation.Nullable Object _default) { this._default = _default; return this; } - /** + /** * default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false. * @return _default - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false.") public Object getDefault() { return _default; } - public void setDefault(Object _default) { + public void setDefault(@jakarta.annotation.Nullable Object _default) { this._default = _default; } - public V1JSONSchemaProps definitions(Map definitions) { + public V1JSONSchemaProps definitions(@jakarta.annotation.Nullable Map definitions) { this.definitions = definitions; return this; } @@ -407,22 +450,22 @@ public V1JSONSchemaProps putDefinitionsItem(String key, V1JSONSchemaProps defini return this; } - /** + /** * Get definitions * @return definitions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Map getDefinitions() { return definitions; } - public void setDefinitions(Map definitions) { + public void setDefinitions(@jakarta.annotation.Nullable Map definitions) { this.definitions = definitions; } - public V1JSONSchemaProps dependencies(Map dependencies) { + public V1JSONSchemaProps dependencies(@jakarta.annotation.Nullable Map dependencies) { this.dependencies = dependencies; return this; } @@ -435,42 +478,42 @@ public V1JSONSchemaProps putDependenciesItem(String key, Object dependenciesItem return this; } - /** + /** * Get dependencies * @return dependencies - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Map getDependencies() { return dependencies; } - public void setDependencies(Map dependencies) { + public void setDependencies(@jakarta.annotation.Nullable Map dependencies) { this.dependencies = dependencies; } - public V1JSONSchemaProps description(String description) { + public V1JSONSchemaProps description(@jakarta.annotation.Nullable String description) { this.description = description; return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public String getDescription() { return description; } - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nullable String description) { this.description = description; } - public V1JSONSchemaProps _enum(List _enum) { + public V1JSONSchemaProps _enum(@jakarta.annotation.Nullable List _enum) { this._enum = _enum; return this; } @@ -483,382 +526,382 @@ public V1JSONSchemaProps addEnumItem(Object _enumItem) { return this; } - /** + /** * Get _enum * @return _enum - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public List getEnum() { return _enum; } - public void setEnum(List _enum) { + public void setEnum(@jakarta.annotation.Nullable List _enum) { this._enum = _enum; } - public V1JSONSchemaProps example(Object example) { + public V1JSONSchemaProps example(@jakarta.annotation.Nullable Object example) { this.example = example; return this; } - /** + /** * JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. * @return example - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.") public Object getExample() { return example; } - public void setExample(Object example) { + public void setExample(@jakarta.annotation.Nullable Object example) { this.example = example; } - public V1JSONSchemaProps exclusiveMaximum(Boolean exclusiveMaximum) { + public V1JSONSchemaProps exclusiveMaximum(@jakarta.annotation.Nullable Boolean exclusiveMaximum) { this.exclusiveMaximum = exclusiveMaximum; return this; } - /** + /** * Get exclusiveMaximum * @return exclusiveMaximum - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Boolean getExclusiveMaximum() { return exclusiveMaximum; } - public void setExclusiveMaximum(Boolean exclusiveMaximum) { + public void setExclusiveMaximum(@jakarta.annotation.Nullable Boolean exclusiveMaximum) { this.exclusiveMaximum = exclusiveMaximum; } - public V1JSONSchemaProps exclusiveMinimum(Boolean exclusiveMinimum) { + public V1JSONSchemaProps exclusiveMinimum(@jakarta.annotation.Nullable Boolean exclusiveMinimum) { this.exclusiveMinimum = exclusiveMinimum; return this; } - /** + /** * Get exclusiveMinimum * @return exclusiveMinimum - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Boolean getExclusiveMinimum() { return exclusiveMinimum; } - public void setExclusiveMinimum(Boolean exclusiveMinimum) { + public void setExclusiveMinimum(@jakarta.annotation.Nullable Boolean exclusiveMinimum) { this.exclusiveMinimum = exclusiveMinimum; } - public V1JSONSchemaProps externalDocs(V1ExternalDocumentation externalDocs) { + public V1JSONSchemaProps externalDocs(@jakarta.annotation.Nullable V1ExternalDocumentation externalDocs) { this.externalDocs = externalDocs; return this; } - /** + /** * Get externalDocs * @return externalDocs - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ExternalDocumentation getExternalDocs() { return externalDocs; } - public void setExternalDocs(V1ExternalDocumentation externalDocs) { + public void setExternalDocs(@jakarta.annotation.Nullable V1ExternalDocumentation externalDocs) { this.externalDocs = externalDocs; } - public V1JSONSchemaProps format(String format) { + public V1JSONSchemaProps format(@jakarta.annotation.Nullable String format) { this.format = format; return this; } - /** + /** * format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like \"0321751043\" or \"978-0321751041\" - isbn10: an ISBN10 number string like \"0321751043\" - isbn13: an ISBN13 number string like \"978-0321751041\" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\\\d{3})\\\\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\\\\d{3}[- ]?\\\\d{2}[- ]?\\\\d{4}$ - hexcolor: an hexadecimal color code like \"#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like \"rgb(255,255,2559\" - byte: base64 encoded binary data - password: any kind of string - date: a date string like \"2006-01-02\" as defined by full-date in RFC3339 - duration: a duration string like \"22 ns\" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like \"2014-12-15T19:30:20.000Z\" as defined by date-time in RFC3339. * @return format - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like \"0321751043\" or \"978-0321751041\" - isbn10: an ISBN10 number string like \"0321751043\" - isbn13: an ISBN13 number string like \"978-0321751041\" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\\\d{3})\\\\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\\\\d{3}[- ]?\\\\d{2}[- ]?\\\\d{4}$ - hexcolor: an hexadecimal color code like \"#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like \"rgb(255,255,2559\" - byte: base64 encoded binary data - password: any kind of string - date: a date string like \"2006-01-02\" as defined by full-date in RFC3339 - duration: a duration string like \"22 ns\" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like \"2014-12-15T19:30:20.000Z\" as defined by date-time in RFC3339.") public String getFormat() { return format; } - public void setFormat(String format) { + public void setFormat(@jakarta.annotation.Nullable String format) { this.format = format; } - public V1JSONSchemaProps id(String id) { + public V1JSONSchemaProps id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public String getId() { return id; } - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public V1JSONSchemaProps items(Object items) { + public V1JSONSchemaProps items(@jakarta.annotation.Nullable Object items) { this.items = items; return this; } - /** + /** * JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes. * @return items - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes.") public Object getItems() { return items; } - public void setItems(Object items) { + public void setItems(@jakarta.annotation.Nullable Object items) { this.items = items; } - public V1JSONSchemaProps maxItems(Long maxItems) { + public V1JSONSchemaProps maxItems(@jakarta.annotation.Nullable Long maxItems) { this.maxItems = maxItems; return this; } - /** + /** * Get maxItems * @return maxItems - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Long getMaxItems() { return maxItems; } - public void setMaxItems(Long maxItems) { + public void setMaxItems(@jakarta.annotation.Nullable Long maxItems) { this.maxItems = maxItems; } - public V1JSONSchemaProps maxLength(Long maxLength) { + public V1JSONSchemaProps maxLength(@jakarta.annotation.Nullable Long maxLength) { this.maxLength = maxLength; return this; } - /** + /** * Get maxLength * @return maxLength - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Long getMaxLength() { return maxLength; } - public void setMaxLength(Long maxLength) { + public void setMaxLength(@jakarta.annotation.Nullable Long maxLength) { this.maxLength = maxLength; } - public V1JSONSchemaProps maxProperties(Long maxProperties) { + public V1JSONSchemaProps maxProperties(@jakarta.annotation.Nullable Long maxProperties) { this.maxProperties = maxProperties; return this; } - /** + /** * Get maxProperties * @return maxProperties - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Long getMaxProperties() { return maxProperties; } - public void setMaxProperties(Long maxProperties) { + public void setMaxProperties(@jakarta.annotation.Nullable Long maxProperties) { this.maxProperties = maxProperties; } - public V1JSONSchemaProps maximum(Double maximum) { + public V1JSONSchemaProps maximum(@jakarta.annotation.Nullable Double maximum) { this.maximum = maximum; return this; } - /** + /** * Get maximum * @return maximum - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Double getMaximum() { return maximum; } - public void setMaximum(Double maximum) { + public void setMaximum(@jakarta.annotation.Nullable Double maximum) { this.maximum = maximum; } - public V1JSONSchemaProps minItems(Long minItems) { + public V1JSONSchemaProps minItems(@jakarta.annotation.Nullable Long minItems) { this.minItems = minItems; return this; } - /** + /** * Get minItems * @return minItems - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Long getMinItems() { return minItems; } - public void setMinItems(Long minItems) { + public void setMinItems(@jakarta.annotation.Nullable Long minItems) { this.minItems = minItems; } - public V1JSONSchemaProps minLength(Long minLength) { + public V1JSONSchemaProps minLength(@jakarta.annotation.Nullable Long minLength) { this.minLength = minLength; return this; } - /** + /** * Get minLength * @return minLength - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Long getMinLength() { return minLength; } - public void setMinLength(Long minLength) { + public void setMinLength(@jakarta.annotation.Nullable Long minLength) { this.minLength = minLength; } - public V1JSONSchemaProps minProperties(Long minProperties) { + public V1JSONSchemaProps minProperties(@jakarta.annotation.Nullable Long minProperties) { this.minProperties = minProperties; return this; } - /** + /** * Get minProperties * @return minProperties - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Long getMinProperties() { return minProperties; } - public void setMinProperties(Long minProperties) { + public void setMinProperties(@jakarta.annotation.Nullable Long minProperties) { this.minProperties = minProperties; } - public V1JSONSchemaProps minimum(Double minimum) { + public V1JSONSchemaProps minimum(@jakarta.annotation.Nullable Double minimum) { this.minimum = minimum; return this; } - /** + /** * Get minimum * @return minimum - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Double getMinimum() { return minimum; } - public void setMinimum(Double minimum) { + public void setMinimum(@jakarta.annotation.Nullable Double minimum) { this.minimum = minimum; } - public V1JSONSchemaProps multipleOf(Double multipleOf) { + public V1JSONSchemaProps multipleOf(@jakarta.annotation.Nullable Double multipleOf) { this.multipleOf = multipleOf; return this; } - /** + /** * Get multipleOf * @return multipleOf - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Double getMultipleOf() { return multipleOf; } - public void setMultipleOf(Double multipleOf) { + public void setMultipleOf(@jakarta.annotation.Nullable Double multipleOf) { this.multipleOf = multipleOf; } - public V1JSONSchemaProps not(V1JSONSchemaProps not) { + public V1JSONSchemaProps not(@jakarta.annotation.Nullable V1JSONSchemaProps not) { this.not = not; return this; } - /** + /** * Get not * @return not - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1JSONSchemaProps getNot() { return not; } - public void setNot(V1JSONSchemaProps not) { + public void setNot(@jakarta.annotation.Nullable V1JSONSchemaProps not) { this.not = not; } - public V1JSONSchemaProps nullable(Boolean nullable) { + public V1JSONSchemaProps nullable(@jakarta.annotation.Nullable Boolean nullable) { this.nullable = nullable; return this; } - /** + /** * Get nullable * @return nullable - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Boolean getNullable() { return nullable; } - public void setNullable(Boolean nullable) { + public void setNullable(@jakarta.annotation.Nullable Boolean nullable) { this.nullable = nullable; } - public V1JSONSchemaProps oneOf(List oneOf) { + public V1JSONSchemaProps oneOf(@jakarta.annotation.Nullable List oneOf) { this.oneOf = oneOf; return this; } @@ -871,42 +914,42 @@ public V1JSONSchemaProps addOneOfItem(V1JSONSchemaProps oneOfItem) { return this; } - /** + /** * Get oneOf * @return oneOf - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public List getOneOf() { return oneOf; } - public void setOneOf(List oneOf) { + public void setOneOf(@jakarta.annotation.Nullable List oneOf) { this.oneOf = oneOf; } - public V1JSONSchemaProps pattern(String pattern) { + public V1JSONSchemaProps pattern(@jakarta.annotation.Nullable String pattern) { this.pattern = pattern; return this; } - /** + /** * Get pattern * @return pattern - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public String getPattern() { return pattern; } - public void setPattern(String pattern) { + public void setPattern(@jakarta.annotation.Nullable String pattern) { this.pattern = pattern; } - public V1JSONSchemaProps patternProperties(Map patternProperties) { + public V1JSONSchemaProps patternProperties(@jakarta.annotation.Nullable Map patternProperties) { this.patternProperties = patternProperties; return this; } @@ -919,22 +962,22 @@ public V1JSONSchemaProps putPatternPropertiesItem(String key, V1JSONSchemaProps return this; } - /** + /** * Get patternProperties * @return patternProperties - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Map getPatternProperties() { return patternProperties; } - public void setPatternProperties(Map patternProperties) { + public void setPatternProperties(@jakarta.annotation.Nullable Map patternProperties) { this.patternProperties = patternProperties; } - public V1JSONSchemaProps properties(Map properties) { + public V1JSONSchemaProps properties(@jakarta.annotation.Nullable Map properties) { this.properties = properties; return this; } @@ -947,22 +990,22 @@ public V1JSONSchemaProps putPropertiesItem(String key, V1JSONSchemaProps propert return this; } - /** + /** * Get properties * @return properties - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Map getProperties() { return properties; } - public void setProperties(Map properties) { + public void setProperties(@jakarta.annotation.Nullable Map properties) { this.properties = properties; } - public V1JSONSchemaProps required(List required) { + public V1JSONSchemaProps required(@jakarta.annotation.Nullable List required) { this.required = required; return this; } @@ -975,122 +1018,122 @@ public V1JSONSchemaProps addRequiredItem(String requiredItem) { return this; } - /** + /** * Get required * @return required - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public List getRequired() { return required; } - public void setRequired(List required) { + public void setRequired(@jakarta.annotation.Nullable List required) { this.required = required; } - public V1JSONSchemaProps title(String title) { + public V1JSONSchemaProps title(@jakarta.annotation.Nullable String title) { this.title = title; return this; } - /** + /** * Get title * @return title - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public String getTitle() { return title; } - public void setTitle(String title) { + public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; } - public V1JSONSchemaProps type(String type) { + public V1JSONSchemaProps type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public V1JSONSchemaProps uniqueItems(Boolean uniqueItems) { + public V1JSONSchemaProps uniqueItems(@jakarta.annotation.Nullable Boolean uniqueItems) { this.uniqueItems = uniqueItems; return this; } - /** + /** * Get uniqueItems * @return uniqueItems - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Boolean getUniqueItems() { return uniqueItems; } - public void setUniqueItems(Boolean uniqueItems) { + public void setUniqueItems(@jakarta.annotation.Nullable Boolean uniqueItems) { this.uniqueItems = uniqueItems; } - public V1JSONSchemaProps xKubernetesEmbeddedResource(Boolean xKubernetesEmbeddedResource) { + public V1JSONSchemaProps xKubernetesEmbeddedResource(@jakarta.annotation.Nullable Boolean xKubernetesEmbeddedResource) { this.xKubernetesEmbeddedResource = xKubernetesEmbeddedResource; return this; } - /** + /** * x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). * @return xKubernetesEmbeddedResource - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata).") public Boolean getxKubernetesEmbeddedResource() { return xKubernetesEmbeddedResource; } - public void setxKubernetesEmbeddedResource(Boolean xKubernetesEmbeddedResource) { + public void setxKubernetesEmbeddedResource(@jakarta.annotation.Nullable Boolean xKubernetesEmbeddedResource) { this.xKubernetesEmbeddedResource = xKubernetesEmbeddedResource; } - public V1JSONSchemaProps xKubernetesIntOrString(Boolean xKubernetesIntOrString) { + public V1JSONSchemaProps xKubernetesIntOrString(@jakarta.annotation.Nullable Boolean xKubernetesIntOrString) { this.xKubernetesIntOrString = xKubernetesIntOrString; return this; } - /** + /** * x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: 1) anyOf: - type: integer - type: string 2) allOf: - anyOf: - type: integer - type: string - ... zero or more * @return xKubernetesIntOrString - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: 1) anyOf: - type: integer - type: string 2) allOf: - anyOf: - type: integer - type: string - ... zero or more") public Boolean getxKubernetesIntOrString() { return xKubernetesIntOrString; } - public void setxKubernetesIntOrString(Boolean xKubernetesIntOrString) { + public void setxKubernetesIntOrString(@jakarta.annotation.Nullable Boolean xKubernetesIntOrString) { this.xKubernetesIntOrString = xKubernetesIntOrString; } - public V1JSONSchemaProps xKubernetesListMapKeys(List xKubernetesListMapKeys) { + public V1JSONSchemaProps xKubernetesListMapKeys(@jakarta.annotation.Nullable List xKubernetesListMapKeys) { this.xKubernetesListMapKeys = xKubernetesListMapKeys; return this; } @@ -1103,82 +1146,82 @@ public V1JSONSchemaProps addXKubernetesListMapKeysItem(String xKubernetesListMap return this; } - /** + /** * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. This tag MUST only be used on lists that have the \"x-kubernetes-list-type\" extension set to \"map\". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). The properties specified must either be required or have a default value, to ensure those properties are present for all list items. * @return xKubernetesListMapKeys - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. This tag MUST only be used on lists that have the \"x-kubernetes-list-type\" extension set to \"map\". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). The properties specified must either be required or have a default value, to ensure those properties are present for all list items.") public List getxKubernetesListMapKeys() { return xKubernetesListMapKeys; } - public void setxKubernetesListMapKeys(List xKubernetesListMapKeys) { + public void setxKubernetesListMapKeys(@jakarta.annotation.Nullable List xKubernetesListMapKeys) { this.xKubernetesListMapKeys = xKubernetesListMapKeys; } - public V1JSONSchemaProps xKubernetesListType(String xKubernetesListType) { + public V1JSONSchemaProps xKubernetesListType(@jakarta.annotation.Nullable String xKubernetesListType) { this.xKubernetesListType = xKubernetesListType; return this; } - /** + /** * x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: 1) `atomic`: the list is treated as a single entity, like a scalar. Atomic lists will be entirely replaced when updated. This extension may be used on any type of list (struct, scalar, ...). 2) `set`: Sets are lists that must not have multiple items with the same value. Each value must be a scalar, an object with x-kubernetes-map-type `atomic` or an array with x-kubernetes-list-type `atomic`. 3) `map`: These lists are like maps in that their elements have a non-index key used to identify them. Order is preserved upon merge. The map tag must only be used on a list with elements of type object. Defaults to atomic for arrays. * @return xKubernetesListType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: 1) `atomic`: the list is treated as a single entity, like a scalar. Atomic lists will be entirely replaced when updated. This extension may be used on any type of list (struct, scalar, ...). 2) `set`: Sets are lists that must not have multiple items with the same value. Each value must be a scalar, an object with x-kubernetes-map-type `atomic` or an array with x-kubernetes-list-type `atomic`. 3) `map`: These lists are like maps in that their elements have a non-index key used to identify them. Order is preserved upon merge. The map tag must only be used on a list with elements of type object. Defaults to atomic for arrays.") public String getxKubernetesListType() { return xKubernetesListType; } - public void setxKubernetesListType(String xKubernetesListType) { + public void setxKubernetesListType(@jakarta.annotation.Nullable String xKubernetesListType) { this.xKubernetesListType = xKubernetesListType; } - public V1JSONSchemaProps xKubernetesMapType(String xKubernetesMapType) { + public V1JSONSchemaProps xKubernetesMapType(@jakarta.annotation.Nullable String xKubernetesMapType) { this.xKubernetesMapType = xKubernetesMapType; return this; } - /** + /** * x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: 1) `granular`: These maps are actual maps (key-value pairs) and each fields are independent from each other (they can each be manipulated by separate actors). This is the default behaviour for all maps. 2) `atomic`: the list is treated as a single entity, like a scalar. Atomic maps will be entirely replaced when updated. * @return xKubernetesMapType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: 1) `granular`: These maps are actual maps (key-value pairs) and each fields are independent from each other (they can each be manipulated by separate actors). This is the default behaviour for all maps. 2) `atomic`: the list is treated as a single entity, like a scalar. Atomic maps will be entirely replaced when updated.") public String getxKubernetesMapType() { return xKubernetesMapType; } - public void setxKubernetesMapType(String xKubernetesMapType) { + public void setxKubernetesMapType(@jakarta.annotation.Nullable String xKubernetesMapType) { this.xKubernetesMapType = xKubernetesMapType; } - public V1JSONSchemaProps xKubernetesPreserveUnknownFields(Boolean xKubernetesPreserveUnknownFields) { + public V1JSONSchemaProps xKubernetesPreserveUnknownFields(@jakarta.annotation.Nullable Boolean xKubernetesPreserveUnknownFields) { this.xKubernetesPreserveUnknownFields = xKubernetesPreserveUnknownFields; return this; } - /** + /** * x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. * @return xKubernetesPreserveUnknownFields - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden.") public Boolean getxKubernetesPreserveUnknownFields() { return xKubernetesPreserveUnknownFields; } - public void setxKubernetesPreserveUnknownFields(Boolean xKubernetesPreserveUnknownFields) { + public void setxKubernetesPreserveUnknownFields(@jakarta.annotation.Nullable Boolean xKubernetesPreserveUnknownFields) { this.xKubernetesPreserveUnknownFields = xKubernetesPreserveUnknownFields; } - public V1JSONSchemaProps xKubernetesValidations(List xKubernetesValidations) { + public V1JSONSchemaProps xKubernetesValidations(@jakarta.annotation.Nullable List xKubernetesValidations) { this.xKubernetesValidations = xKubernetesValidations; return this; } @@ -1191,17 +1234,17 @@ public V1JSONSchemaProps addXKubernetesValidationsItem(V1ValidationRule xKuberne return this; } - /** + /** * x-kubernetes-validations describes a list of validation rules written in the CEL expression language. * @return xKubernetesValidations - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "x-kubernetes-validations describes a list of validation rules written in the CEL expression language.") public List getxKubernetesValidations() { return xKubernetesValidations; } - public void setxKubernetesValidations(List xKubernetesValidations) { + public void setxKubernetesValidations(@jakarta.annotation.Nullable List xKubernetesValidations) { this.xKubernetesValidations = xKubernetesValidations; } @@ -1386,12 +1429,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1JSONSchemaProps - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1JSONSchemaProps + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1JSONSchemaProps.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -1544,22 +1587,22 @@ public V1JSONSchemaProps read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1JSONSchemaProps given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1JSONSchemaProps - * @throws IOException if the JSON string is invalid with respect to V1JSONSchemaProps - */ + /** + * Create an instance of V1JSONSchemaProps given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1JSONSchemaProps + * @throws IOException if the JSON string is invalid with respect to V1JSONSchemaProps + */ public static V1JSONSchemaProps fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1JSONSchemaProps.class); } - /** - * Convert an instance of V1JSONSchemaProps to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1JSONSchemaProps to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Job.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Job.java index 2b05decbda..47524f9e12 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Job.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Job.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * Job represents the configuration of a single job. */ @ApiModel(description = "Job represents the configuration of a single job.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Job implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1JobSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1JobStatus status; public V1Job() { } - public V1Job apiVersion(String apiVersion) { + public V1Job apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1Job kind(String kind) { + public V1Job kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1Job metadata(V1ObjectMeta metadata) { + public V1Job metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1Job spec(V1JobSpec spec) { + public V1Job spec(@jakarta.annotation.Nullable V1JobSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1JobSpec getSpec() { return spec; } - public void setSpec(V1JobSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1JobSpec spec) { this.spec = spec; } - public V1Job status(V1JobStatus status) { + public V1Job status(@jakarta.annotation.Nullable V1JobStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1JobStatus getStatus() { return status; } - public void setStatus(V1JobStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1JobStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Job - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Job + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Job.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1Job read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Job given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Job - * @throws IOException if the JSON string is invalid with respect to V1Job - */ + /** + * Create an instance of V1Job given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Job + * @throws IOException if the JSON string is invalid with respect to V1Job + */ public static V1Job fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Job.class); } - /** - * Convert an instance of V1Job to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Job to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java index 3787a25cb0..7875caeae7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,151 +51,157 @@ * JobCondition describes current state of a job. */ @ApiModel(description = "JobCondition describes current state of a job.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1JobCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastProbeTime; public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nonnull private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1JobCondition() { } - public V1JobCondition lastProbeTime(OffsetDateTime lastProbeTime) { + public V1JobCondition lastProbeTime(@jakarta.annotation.Nullable OffsetDateTime lastProbeTime) { this.lastProbeTime = lastProbeTime; return this; } - /** + /** * Last time the condition was checked. * @return lastProbeTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Last time the condition was checked.") public OffsetDateTime getLastProbeTime() { return lastProbeTime; } - public void setLastProbeTime(OffsetDateTime lastProbeTime) { + public void setLastProbeTime(@jakarta.annotation.Nullable OffsetDateTime lastProbeTime) { this.lastProbeTime = lastProbeTime; } - public V1JobCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { + public V1JobCondition lastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; } - /** + /** * Last time the condition transit from one status to another. * @return lastTransitionTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Last time the condition transit from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { + public void setLastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } - public V1JobCondition message(String message) { + public V1JobCondition message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * Human readable message indicating details about last transition. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Human readable message indicating details about last transition.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1JobCondition reason(String reason) { + public V1JobCondition reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * (brief) reason for the condition's last transition. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "(brief) reason for the condition's last transition.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } - public V1JobCondition status(String status) { + public V1JobCondition status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } - /** + /** * Status of the condition, one of True, False, Unknown. * @return status - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public V1JobCondition type(String type) { + public V1JobCondition type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * Type of job condition, Complete or Failed. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Type of job condition, Complete or Failed.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -269,12 +274,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1JobCondition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1JobCondition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1JobCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -340,22 +345,22 @@ public V1JobCondition read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1JobCondition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1JobCondition - * @throws IOException if the JSON string is invalid with respect to V1JobCondition - */ + /** + * Create an instance of V1JobCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1JobCondition + * @throws IOException if the JSON string is invalid with respect to V1JobCondition + */ public static V1JobCondition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1JobCondition.class); } - /** - * Convert an instance of V1JobCondition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1JobCondition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobList.java index c46a10386f..6a711ec376 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * JobList is a collection of jobs. */ @ApiModel(description = "JobList is a collection of jobs.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1JobList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1JobList() { } - public V1JobList apiVersion(String apiVersion) { + public V1JobList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1JobList items(List items) { + public V1JobList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1JobList addItemsItem(V1Job itemsItem) { return this; } - /** + /** * items is the list of Jobs. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is the list of Jobs.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1JobList kind(String kind) { + public V1JobList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1JobList metadata(V1ListMeta metadata) { + public V1JobList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1JobList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1JobList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1JobList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1JobList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1JobList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1JobList - * @throws IOException if the JSON string is invalid with respect to V1JobList - */ + /** + * Create an instance of V1JobList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1JobList + * @throws IOException if the JSON string is invalid with respect to V1JobList + */ public static V1JobList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1JobList.class); } - /** - * Convert an instance of V1JobList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1JobList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSpec.java index 7d8720d5f8..91c4dd9d43 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSpec.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,391 +54,407 @@ * JobSpec describes how the job execution will look like. */ @ApiModel(description = "JobSpec describes how the job execution will look like.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1JobSpec { public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; @SerializedName(SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS) + @jakarta.annotation.Nullable private Long activeDeadlineSeconds; public static final String SERIALIZED_NAME_BACKOFF_LIMIT = "backoffLimit"; @SerializedName(SERIALIZED_NAME_BACKOFF_LIMIT) + @jakarta.annotation.Nullable private Integer backoffLimit; public static final String SERIALIZED_NAME_BACKOFF_LIMIT_PER_INDEX = "backoffLimitPerIndex"; @SerializedName(SERIALIZED_NAME_BACKOFF_LIMIT_PER_INDEX) + @jakarta.annotation.Nullable private Integer backoffLimitPerIndex; public static final String SERIALIZED_NAME_COMPLETION_MODE = "completionMode"; @SerializedName(SERIALIZED_NAME_COMPLETION_MODE) + @jakarta.annotation.Nullable private String completionMode; public static final String SERIALIZED_NAME_COMPLETIONS = "completions"; @SerializedName(SERIALIZED_NAME_COMPLETIONS) + @jakarta.annotation.Nullable private Integer completions; public static final String SERIALIZED_NAME_MANAGED_BY = "managedBy"; @SerializedName(SERIALIZED_NAME_MANAGED_BY) + @jakarta.annotation.Nullable private String managedBy; public static final String SERIALIZED_NAME_MANUAL_SELECTOR = "manualSelector"; @SerializedName(SERIALIZED_NAME_MANUAL_SELECTOR) + @jakarta.annotation.Nullable private Boolean manualSelector; public static final String SERIALIZED_NAME_MAX_FAILED_INDEXES = "maxFailedIndexes"; @SerializedName(SERIALIZED_NAME_MAX_FAILED_INDEXES) + @jakarta.annotation.Nullable private Integer maxFailedIndexes; public static final String SERIALIZED_NAME_PARALLELISM = "parallelism"; @SerializedName(SERIALIZED_NAME_PARALLELISM) + @jakarta.annotation.Nullable private Integer parallelism; public static final String SERIALIZED_NAME_POD_FAILURE_POLICY = "podFailurePolicy"; @SerializedName(SERIALIZED_NAME_POD_FAILURE_POLICY) + @jakarta.annotation.Nullable private V1PodFailurePolicy podFailurePolicy; public static final String SERIALIZED_NAME_POD_REPLACEMENT_POLICY = "podReplacementPolicy"; @SerializedName(SERIALIZED_NAME_POD_REPLACEMENT_POLICY) + @jakarta.annotation.Nullable private String podReplacementPolicy; public static final String SERIALIZED_NAME_SELECTOR = "selector"; @SerializedName(SERIALIZED_NAME_SELECTOR) + @jakarta.annotation.Nullable private V1LabelSelector selector; public static final String SERIALIZED_NAME_SUCCESS_POLICY = "successPolicy"; @SerializedName(SERIALIZED_NAME_SUCCESS_POLICY) + @jakarta.annotation.Nullable private V1SuccessPolicy successPolicy; public static final String SERIALIZED_NAME_SUSPEND = "suspend"; @SerializedName(SERIALIZED_NAME_SUSPEND) + @jakarta.annotation.Nullable private Boolean suspend; public static final String SERIALIZED_NAME_TEMPLATE = "template"; @SerializedName(SERIALIZED_NAME_TEMPLATE) + @jakarta.annotation.Nonnull private V1PodTemplateSpec template; public static final String SERIALIZED_NAME_TTL_SECONDS_AFTER_FINISHED = "ttlSecondsAfterFinished"; @SerializedName(SERIALIZED_NAME_TTL_SECONDS_AFTER_FINISHED) + @jakarta.annotation.Nullable private Integer ttlSecondsAfterFinished; public V1JobSpec() { } - public V1JobSpec activeDeadlineSeconds(Long activeDeadlineSeconds) { + public V1JobSpec activeDeadlineSeconds(@jakarta.annotation.Nullable Long activeDeadlineSeconds) { this.activeDeadlineSeconds = activeDeadlineSeconds; return this; } - /** + /** * Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again. * @return activeDeadlineSeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again.") public Long getActiveDeadlineSeconds() { return activeDeadlineSeconds; } - public void setActiveDeadlineSeconds(Long activeDeadlineSeconds) { + public void setActiveDeadlineSeconds(@jakarta.annotation.Nullable Long activeDeadlineSeconds) { this.activeDeadlineSeconds = activeDeadlineSeconds; } - public V1JobSpec backoffLimit(Integer backoffLimit) { + public V1JobSpec backoffLimit(@jakarta.annotation.Nullable Integer backoffLimit) { this.backoffLimit = backoffLimit; return this; } - /** + /** * Specifies the number of retries before marking this job failed. Defaults to 6 * @return backoffLimit - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Specifies the number of retries before marking this job failed. Defaults to 6") public Integer getBackoffLimit() { return backoffLimit; } - public void setBackoffLimit(Integer backoffLimit) { + public void setBackoffLimit(@jakarta.annotation.Nullable Integer backoffLimit) { this.backoffLimit = backoffLimit; } - public V1JobSpec backoffLimitPerIndex(Integer backoffLimitPerIndex) { + public V1JobSpec backoffLimitPerIndex(@jakarta.annotation.Nullable Integer backoffLimitPerIndex) { this.backoffLimitPerIndex = backoffLimitPerIndex; return this; } - /** - * Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). + /** + * Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. * @return backoffLimitPerIndex - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).") + @ApiModelProperty(value = "Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable.") public Integer getBackoffLimitPerIndex() { return backoffLimitPerIndex; } - public void setBackoffLimitPerIndex(Integer backoffLimitPerIndex) { + public void setBackoffLimitPerIndex(@jakarta.annotation.Nullable Integer backoffLimitPerIndex) { this.backoffLimitPerIndex = backoffLimitPerIndex; } - public V1JobSpec completionMode(String completionMode) { + public V1JobSpec completionMode(@jakarta.annotation.Nullable String completionMode) { this.completionMode = completionMode; return this; } - /** + /** * completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`. `NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other. `Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`. More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job. * @return completionMode - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`. `NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other. `Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`. More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.") public String getCompletionMode() { return completionMode; } - public void setCompletionMode(String completionMode) { + public void setCompletionMode(@jakarta.annotation.Nullable String completionMode) { this.completionMode = completionMode; } - public V1JobSpec completions(Integer completions) { + public V1JobSpec completions(@jakarta.annotation.Nullable Integer completions) { this.completions = completions; return this; } - /** + /** * Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ * @return completions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/") public Integer getCompletions() { return completions; } - public void setCompletions(Integer completions) { + public void setCompletions(@jakarta.annotation.Nullable Integer completions) { this.completions = completions; } - public V1JobSpec managedBy(String managedBy) { + public V1JobSpec managedBy(@jakarta.annotation.Nullable String managedBy) { this.managedBy = managedBy; return this; } - /** + /** * ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first \"/\" must be a valid subdomain as defined by RFC 1123. All characters trailing the first \"/\" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable. This field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default). * @return managedBy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first \"/\" must be a valid subdomain as defined by RFC 1123. All characters trailing the first \"/\" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable. This field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).") public String getManagedBy() { return managedBy; } - public void setManagedBy(String managedBy) { + public void setManagedBy(@jakarta.annotation.Nullable String managedBy) { this.managedBy = managedBy; } - public V1JobSpec manualSelector(Boolean manualSelector) { + public V1JobSpec manualSelector(@jakarta.annotation.Nullable Boolean manualSelector) { this.manualSelector = manualSelector; return this; } - /** + /** * manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector * @return manualSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector") public Boolean getManualSelector() { return manualSelector; } - public void setManualSelector(Boolean manualSelector) { + public void setManualSelector(@jakarta.annotation.Nullable Boolean manualSelector) { this.manualSelector = manualSelector; } - public V1JobSpec maxFailedIndexes(Integer maxFailedIndexes) { + public V1JobSpec maxFailedIndexes(@jakarta.annotation.Nullable Integer maxFailedIndexes) { this.maxFailedIndexes = maxFailedIndexes; return this; } - /** - * Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). + /** + * Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. * @return maxFailedIndexes - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).") + @ApiModelProperty(value = "Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5.") public Integer getMaxFailedIndexes() { return maxFailedIndexes; } - public void setMaxFailedIndexes(Integer maxFailedIndexes) { + public void setMaxFailedIndexes(@jakarta.annotation.Nullable Integer maxFailedIndexes) { this.maxFailedIndexes = maxFailedIndexes; } - public V1JobSpec parallelism(Integer parallelism) { + public V1JobSpec parallelism(@jakarta.annotation.Nullable Integer parallelism) { this.parallelism = parallelism; return this; } - /** + /** * Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ * @return parallelism - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/") public Integer getParallelism() { return parallelism; } - public void setParallelism(Integer parallelism) { + public void setParallelism(@jakarta.annotation.Nullable Integer parallelism) { this.parallelism = parallelism; } - public V1JobSpec podFailurePolicy(V1PodFailurePolicy podFailurePolicy) { + public V1JobSpec podFailurePolicy(@jakarta.annotation.Nullable V1PodFailurePolicy podFailurePolicy) { this.podFailurePolicy = podFailurePolicy; return this; } - /** + /** * Get podFailurePolicy * @return podFailurePolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PodFailurePolicy getPodFailurePolicy() { return podFailurePolicy; } - public void setPodFailurePolicy(V1PodFailurePolicy podFailurePolicy) { + public void setPodFailurePolicy(@jakarta.annotation.Nullable V1PodFailurePolicy podFailurePolicy) { this.podFailurePolicy = podFailurePolicy; } - public V1JobSpec podReplacementPolicy(String podReplacementPolicy) { + public V1JobSpec podReplacementPolicy(@jakarta.annotation.Nullable String podReplacementPolicy) { this.podReplacementPolicy = podReplacementPolicy; return this; } - /** + /** * podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods when they are terminating (has a metadata.deletionTimestamp) or failed. - Failed means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod. When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default. * @return podReplacementPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods when they are terminating (has a metadata.deletionTimestamp) or failed. - Failed means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod. When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.") public String getPodReplacementPolicy() { return podReplacementPolicy; } - public void setPodReplacementPolicy(String podReplacementPolicy) { + public void setPodReplacementPolicy(@jakarta.annotation.Nullable String podReplacementPolicy) { this.podReplacementPolicy = podReplacementPolicy; } - public V1JobSpec selector(V1LabelSelector selector) { + public V1JobSpec selector(@jakarta.annotation.Nullable V1LabelSelector selector) { this.selector = selector; return this; } - /** + /** * Get selector * @return selector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LabelSelector getSelector() { return selector; } - public void setSelector(V1LabelSelector selector) { + public void setSelector(@jakarta.annotation.Nullable V1LabelSelector selector) { this.selector = selector; } - public V1JobSpec successPolicy(V1SuccessPolicy successPolicy) { + public V1JobSpec successPolicy(@jakarta.annotation.Nullable V1SuccessPolicy successPolicy) { this.successPolicy = successPolicy; return this; } - /** + /** * Get successPolicy * @return successPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SuccessPolicy getSuccessPolicy() { return successPolicy; } - public void setSuccessPolicy(V1SuccessPolicy successPolicy) { + public void setSuccessPolicy(@jakarta.annotation.Nullable V1SuccessPolicy successPolicy) { this.successPolicy = successPolicy; } - public V1JobSpec suspend(Boolean suspend) { + public V1JobSpec suspend(@jakarta.annotation.Nullable Boolean suspend) { this.suspend = suspend; return this; } - /** + /** * suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. * @return suspend - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.") public Boolean getSuspend() { return suspend; } - public void setSuspend(Boolean suspend) { + public void setSuspend(@jakarta.annotation.Nullable Boolean suspend) { this.suspend = suspend; } - public V1JobSpec template(V1PodTemplateSpec template) { + public V1JobSpec template(@jakarta.annotation.Nonnull V1PodTemplateSpec template) { this.template = template; return this; } - /** + /** * Get template * @return template - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1PodTemplateSpec getTemplate() { return template; } - public void setTemplate(V1PodTemplateSpec template) { + public void setTemplate(@jakarta.annotation.Nonnull V1PodTemplateSpec template) { this.template = template; } - public V1JobSpec ttlSecondsAfterFinished(Integer ttlSecondsAfterFinished) { + public V1JobSpec ttlSecondsAfterFinished(@jakarta.annotation.Nullable Integer ttlSecondsAfterFinished) { this.ttlSecondsAfterFinished = ttlSecondsAfterFinished; return this; } - /** + /** * ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. * @return ttlSecondsAfterFinished - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.") public Integer getTtlSecondsAfterFinished() { return ttlSecondsAfterFinished; } - public void setTtlSecondsAfterFinished(Integer ttlSecondsAfterFinished) { + public void setTtlSecondsAfterFinished(@jakarta.annotation.Nullable Integer ttlSecondsAfterFinished) { this.ttlSecondsAfterFinished = ttlSecondsAfterFinished; } @@ -541,12 +556,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("template"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1JobSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1JobSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1JobSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -623,22 +638,22 @@ public V1JobSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1JobSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1JobSpec - * @throws IOException if the JSON string is invalid with respect to V1JobSpec - */ + /** + * Create an instance of V1JobSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1JobSpec + * @throws IOException if the JSON string is invalid with respect to V1JobSpec + */ public static V1JobSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1JobSpec.class); } - /** - * Convert an instance of V1JobSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1JobSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java index aecb3fae4f..52f9641c18 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java @@ -43,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -56,116 +55,127 @@ * JobStatus represents the current state of a Job. */ @ApiModel(description = "JobStatus represents the current state of a Job.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1JobStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) + @jakarta.annotation.Nullable private Integer active; public static final String SERIALIZED_NAME_COMPLETED_INDEXES = "completedIndexes"; @SerializedName(SERIALIZED_NAME_COMPLETED_INDEXES) + @jakarta.annotation.Nullable private String completedIndexes; public static final String SERIALIZED_NAME_COMPLETION_TIME = "completionTime"; @SerializedName(SERIALIZED_NAME_COMPLETION_TIME) + @jakarta.annotation.Nullable private OffsetDateTime completionTime; public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); public static final String SERIALIZED_NAME_FAILED = "failed"; @SerializedName(SERIALIZED_NAME_FAILED) + @jakarta.annotation.Nullable private Integer failed; public static final String SERIALIZED_NAME_FAILED_INDEXES = "failedIndexes"; @SerializedName(SERIALIZED_NAME_FAILED_INDEXES) + @jakarta.annotation.Nullable private String failedIndexes; public static final String SERIALIZED_NAME_READY = "ready"; @SerializedName(SERIALIZED_NAME_READY) + @jakarta.annotation.Nullable private Integer ready; public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) + @jakarta.annotation.Nullable private OffsetDateTime startTime; public static final String SERIALIZED_NAME_SUCCEEDED = "succeeded"; @SerializedName(SERIALIZED_NAME_SUCCEEDED) + @jakarta.annotation.Nullable private Integer succeeded; public static final String SERIALIZED_NAME_TERMINATING = "terminating"; @SerializedName(SERIALIZED_NAME_TERMINATING) + @jakarta.annotation.Nullable private Integer terminating; public static final String SERIALIZED_NAME_UNCOUNTED_TERMINATED_PODS = "uncountedTerminatedPods"; @SerializedName(SERIALIZED_NAME_UNCOUNTED_TERMINATED_PODS) + @jakarta.annotation.Nullable private V1UncountedTerminatedPods uncountedTerminatedPods; public V1JobStatus() { } - public V1JobStatus active(Integer active) { + public V1JobStatus active(@jakarta.annotation.Nullable Integer active) { this.active = active; return this; } - /** + /** * The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs. * @return active - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs.") public Integer getActive() { return active; } - public void setActive(Integer active) { + public void setActive(@jakarta.annotation.Nullable Integer active) { this.active = active; } - public V1JobStatus completedIndexes(String completedIndexes) { + public V1JobStatus completedIndexes(@jakarta.annotation.Nullable String completedIndexes) { this.completedIndexes = completedIndexes; return this; } - /** + /** * completedIndexes holds the completed indexes when .spec.completionMode = \"Indexed\" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". * @return completedIndexes - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "completedIndexes holds the completed indexes when .spec.completionMode = \"Indexed\" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\".") public String getCompletedIndexes() { return completedIndexes; } - public void setCompletedIndexes(String completedIndexes) { + public void setCompletedIndexes(@jakarta.annotation.Nullable String completedIndexes) { this.completedIndexes = completedIndexes; } - public V1JobStatus completionTime(OffsetDateTime completionTime) { + public V1JobStatus completionTime(@jakarta.annotation.Nullable OffsetDateTime completionTime) { this.completionTime = completionTime; return this; } - /** + /** * Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is set when the job finishes successfully, and only then. The value cannot be updated or removed. The value indicates the same or later point in time as the startTime field. * @return completionTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is set when the job finishes successfully, and only then. The value cannot be updated or removed. The value indicates the same or later point in time as the startTime field.") public OffsetDateTime getCompletionTime() { return completionTime; } - public void setCompletionTime(OffsetDateTime completionTime) { + public void setCompletionTime(@jakarta.annotation.Nullable OffsetDateTime completionTime) { this.completionTime = completionTime; } - public V1JobStatus conditions(List conditions) { + public V1JobStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } @@ -178,157 +188,157 @@ public V1JobStatus addConditionsItem(V1JobCondition conditionsItem) { return this; } - /** + /** * The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true. A job is considered finished when it is in a terminal condition, either \"Complete\" or \"Failed\". A Job cannot have both the \"Complete\" and \"Failed\" conditions. Additionally, it cannot be in the \"Complete\" and \"FailureTarget\" conditions. The \"Complete\", \"Failed\" and \"FailureTarget\" conditions cannot be disabled. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ * @return conditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true. A job is considered finished when it is in a terminal condition, either \"Complete\" or \"Failed\". A Job cannot have both the \"Complete\" and \"Failed\" conditions. Additionally, it cannot be in the \"Complete\" and \"FailureTarget\" conditions. The \"Complete\", \"Failed\" and \"FailureTarget\" conditions cannot be disabled. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/") public List getConditions() { return conditions; } - public void setConditions(List conditions) { + public void setConditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; } - public V1JobStatus failed(Integer failed) { + public V1JobStatus failed(@jakarta.annotation.Nullable Integer failed) { this.failed = failed; return this; } - /** + /** * The number of pods which reached phase Failed. The value increases monotonically. * @return failed - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The number of pods which reached phase Failed. The value increases monotonically.") public Integer getFailed() { return failed; } - public void setFailed(Integer failed) { + public void setFailed(@jakarta.annotation.Nullable Integer failed) { this.failed = failed; } - public V1JobStatus failedIndexes(String failedIndexes) { + public V1JobStatus failedIndexes(@jakarta.annotation.Nullable String failedIndexes) { this.failedIndexes = failedIndexes; return this; } - /** - * FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". The set of failed indexes cannot overlap with the set of completed indexes. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). + /** + * FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". The set of failed indexes cannot overlap with the set of completed indexes. * @return failedIndexes - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". The set of failed indexes cannot overlap with the set of completed indexes. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).") + @ApiModelProperty(value = "FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". The set of failed indexes cannot overlap with the set of completed indexes.") public String getFailedIndexes() { return failedIndexes; } - public void setFailedIndexes(String failedIndexes) { + public void setFailedIndexes(@jakarta.annotation.Nullable String failedIndexes) { this.failedIndexes = failedIndexes; } - public V1JobStatus ready(Integer ready) { + public V1JobStatus ready(@jakarta.annotation.Nullable Integer ready) { this.ready = ready; return this; } - /** + /** * The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp). * @return ready - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).") public Integer getReady() { return ready; } - public void setReady(Integer ready) { + public void setReady(@jakarta.annotation.Nullable Integer ready) { this.ready = ready; } - public V1JobStatus startTime(OffsetDateTime startTime) { + public V1JobStatus startTime(@jakarta.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; return this; } - /** + /** * Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC. Once set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished. * @return startTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC. Once set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished.") public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { + public void setStartTime(@jakarta.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; } - public V1JobStatus succeeded(Integer succeeded) { + public V1JobStatus succeeded(@jakarta.annotation.Nullable Integer succeeded) { this.succeeded = succeeded; return this; } - /** + /** * The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs. * @return succeeded - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs.") public Integer getSucceeded() { return succeeded; } - public void setSucceeded(Integer succeeded) { + public void setSucceeded(@jakarta.annotation.Nullable Integer succeeded) { this.succeeded = succeeded; } - public V1JobStatus terminating(Integer terminating) { + public V1JobStatus terminating(@jakarta.annotation.Nullable Integer terminating) { this.terminating = terminating; return this; } - /** + /** * The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp). This field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default). * @return terminating - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp). This field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default).") public Integer getTerminating() { return terminating; } - public void setTerminating(Integer terminating) { + public void setTerminating(@jakarta.annotation.Nullable Integer terminating) { this.terminating = terminating; } - public V1JobStatus uncountedTerminatedPods(V1UncountedTerminatedPods uncountedTerminatedPods) { + public V1JobStatus uncountedTerminatedPods(@jakarta.annotation.Nullable V1UncountedTerminatedPods uncountedTerminatedPods) { this.uncountedTerminatedPods = uncountedTerminatedPods; return this; } - /** + /** * Get uncountedTerminatedPods * @return uncountedTerminatedPods - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1UncountedTerminatedPods getUncountedTerminatedPods() { return uncountedTerminatedPods; } - public void setUncountedTerminatedPods(V1UncountedTerminatedPods uncountedTerminatedPods) { + public void setUncountedTerminatedPods(@jakarta.annotation.Nullable V1UncountedTerminatedPods uncountedTerminatedPods) { this.uncountedTerminatedPods = uncountedTerminatedPods; } @@ -414,12 +424,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1JobStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1JobStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1JobStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -490,22 +500,22 @@ public V1JobStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1JobStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1JobStatus - * @throws IOException if the JSON string is invalid with respect to V1JobStatus - */ + /** + * Create an instance of V1JobStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1JobStatus + * @throws IOException if the JSON string is invalid with respect to V1JobStatus + */ public static V1JobStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1JobStatus.class); } - /** - * Convert an instance of V1JobStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1JobStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java index 5604759807..6c15f1eeaf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,55 +52,57 @@ * JobTemplateSpec describes the data a Job should have when created from a template */ @ApiModel(description = "JobTemplateSpec describes the data a Job should have when created from a template") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1JobTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1JobSpec spec; public V1JobTemplateSpec() { } - public V1JobTemplateSpec metadata(V1ObjectMeta metadata) { + public V1JobTemplateSpec metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1JobTemplateSpec spec(V1JobSpec spec) { + public V1JobTemplateSpec spec(@jakarta.annotation.Nullable V1JobSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1JobSpec getSpec() { return spec; } - public void setSpec(V1JobSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1JobSpec spec) { this.spec = spec; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1JobTemplateSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1JobTemplateSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1JobTemplateSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -220,22 +221,22 @@ public V1JobTemplateSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1JobTemplateSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1JobTemplateSpec - * @throws IOException if the JSON string is invalid with respect to V1JobTemplateSpec - */ + /** + * Create an instance of V1JobTemplateSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1JobTemplateSpec + * @throws IOException if the JSON string is invalid with respect to V1JobTemplateSpec + */ public static V1JobTemplateSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1JobTemplateSpec.class); } - /** - * Convert an instance of V1JobTemplateSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1JobTemplateSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPath.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPath.java index 61acc268f7..b98c93819d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPath.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPath.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,79 +50,82 @@ * Maps a string key to a path within a volume. */ @ApiModel(description = "Maps a string key to a path within a volume.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1KeyToPath { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) + @jakarta.annotation.Nonnull private String key; public static final String SERIALIZED_NAME_MODE = "mode"; @SerializedName(SERIALIZED_NAME_MODE) + @jakarta.annotation.Nullable private Integer mode; public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) + @jakarta.annotation.Nonnull private String path; public V1KeyToPath() { } - public V1KeyToPath key(String key) { + public V1KeyToPath key(@jakarta.annotation.Nonnull String key) { this.key = key; return this; } - /** + /** * key is the key to project. * @return key - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "key is the key to project.") public String getKey() { return key; } - public void setKey(String key) { + public void setKey(@jakarta.annotation.Nonnull String key) { this.key = key; } - public V1KeyToPath mode(Integer mode) { + public V1KeyToPath mode(@jakarta.annotation.Nullable Integer mode) { this.mode = mode; return this; } - /** + /** * mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. * @return mode - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") public Integer getMode() { return mode; } - public void setMode(Integer mode) { + public void setMode(@jakarta.annotation.Nullable Integer mode) { this.mode = mode; } - public V1KeyToPath path(String path) { + public V1KeyToPath path(@jakarta.annotation.Nonnull String path) { this.path = path; return this; } - /** + /** * path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. * @return path - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.") public String getPath() { return path; } - public void setPath(String path) { + public void setPath(@jakarta.annotation.Nonnull String path) { this.path = path; } @@ -187,12 +189,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("path"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1KeyToPath - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1KeyToPath + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1KeyToPath.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -252,22 +254,22 @@ public V1KeyToPath read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1KeyToPath given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1KeyToPath - * @throws IOException if the JSON string is invalid with respect to V1KeyToPath - */ + /** + * Create an instance of V1KeyToPath given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1KeyToPath + * @throws IOException if the JSON string is invalid with respect to V1KeyToPath + */ public static V1KeyToPath fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1KeyToPath.class); } - /** - * Convert an instance of V1KeyToPath to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1KeyToPath to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java index e1584c18e0..d7e6ade2f0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java @@ -43,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -56,20 +55,22 @@ * A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. */ @ApiModel(description = "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LabelSelector { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) + @jakarta.annotation.Nullable private List matchExpressions = new ArrayList<>(); public static final String SERIALIZED_NAME_MATCH_LABELS = "matchLabels"; @SerializedName(SERIALIZED_NAME_MATCH_LABELS) + @jakarta.annotation.Nullable private Map matchLabels = new HashMap<>(); public V1LabelSelector() { } - public V1LabelSelector matchExpressions(List matchExpressions) { + public V1LabelSelector matchExpressions(@jakarta.annotation.Nullable List matchExpressions) { this.matchExpressions = matchExpressions; return this; } @@ -82,22 +83,22 @@ public V1LabelSelector addMatchExpressionsItem(V1LabelSelectorRequirement matchE return this; } - /** + /** * matchExpressions is a list of label selector requirements. The requirements are ANDed. * @return matchExpressions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "matchExpressions is a list of label selector requirements. The requirements are ANDed.") public List getMatchExpressions() { return matchExpressions; } - public void setMatchExpressions(List matchExpressions) { + public void setMatchExpressions(@jakarta.annotation.Nullable List matchExpressions) { this.matchExpressions = matchExpressions; } - public V1LabelSelector matchLabels(Map matchLabels) { + public V1LabelSelector matchLabels(@jakarta.annotation.Nullable Map matchLabels) { this.matchLabels = matchLabels; return this; } @@ -110,17 +111,17 @@ public V1LabelSelector putMatchLabelsItem(String key, String matchLabelsItem) { return this; } - /** + /** * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. * @return matchLabels - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.") public Map getMatchLabels() { return matchLabels; } - public void setMatchLabels(Map matchLabels) { + public void setMatchLabels(@jakarta.annotation.Nullable Map matchLabels) { this.matchLabels = matchLabels; } @@ -179,12 +180,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1LabelSelector - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1LabelSelector + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LabelSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -245,22 +246,22 @@ public V1LabelSelector read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1LabelSelector given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1LabelSelector - * @throws IOException if the JSON string is invalid with respect to V1LabelSelector - */ + /** + * Create an instance of V1LabelSelector given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LabelSelector + * @throws IOException if the JSON string is invalid with respect to V1LabelSelector + */ public static V1LabelSelector fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1LabelSelector.class); } - /** - * Convert an instance of V1LabelSelector to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1LabelSelector to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributes.java index 022b2074bc..2e91637d87 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributes.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,40 +53,42 @@ * LabelSelectorAttributes indicates a label limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid. */ @ApiModel(description = "LabelSelectorAttributes indicates a label limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LabelSelectorAttributes { public static final String SERIALIZED_NAME_RAW_SELECTOR = "rawSelector"; @SerializedName(SERIALIZED_NAME_RAW_SELECTOR) + @jakarta.annotation.Nullable private String rawSelector; public static final String SERIALIZED_NAME_REQUIREMENTS = "requirements"; @SerializedName(SERIALIZED_NAME_REQUIREMENTS) + @jakarta.annotation.Nullable private List requirements = new ArrayList<>(); public V1LabelSelectorAttributes() { } - public V1LabelSelectorAttributes rawSelector(String rawSelector) { + public V1LabelSelectorAttributes rawSelector(@jakarta.annotation.Nullable String rawSelector) { this.rawSelector = rawSelector; return this; } - /** + /** * rawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present. * @return rawSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "rawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.") public String getRawSelector() { return rawSelector; } - public void setRawSelector(String rawSelector) { + public void setRawSelector(@jakarta.annotation.Nullable String rawSelector) { this.rawSelector = rawSelector; } - public V1LabelSelectorAttributes requirements(List requirements) { + public V1LabelSelectorAttributes requirements(@jakarta.annotation.Nullable List requirements) { this.requirements = requirements; return this; } @@ -100,17 +101,17 @@ public V1LabelSelectorAttributes addRequirementsItem(V1LabelSelectorRequirement return this; } - /** + /** * requirements is the parsed interpretation of a label selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood. * @return requirements - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "requirements is the parsed interpretation of a label selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood.") public List getRequirements() { return requirements; } - public void setRequirements(List requirements) { + public void setRequirements(@jakarta.annotation.Nullable List requirements) { this.requirements = requirements; } @@ -169,12 +170,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1LabelSelectorAttributes - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1LabelSelectorAttributes + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LabelSelectorAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -238,22 +239,22 @@ public V1LabelSelectorAttributes read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1LabelSelectorAttributes given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1LabelSelectorAttributes - * @throws IOException if the JSON string is invalid with respect to V1LabelSelectorAttributes - */ + /** + * Create an instance of V1LabelSelectorAttributes given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LabelSelectorAttributes + * @throws IOException if the JSON string is invalid with respect to V1LabelSelectorAttributes + */ public static V1LabelSelectorAttributes fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1LabelSelectorAttributes.class); } - /** - * Convert an instance of V1LabelSelectorAttributes to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1LabelSelectorAttributes to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirement.java index 0f7e1a7cb3..e691dc0ab2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirement.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,64 +52,67 @@ * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ @ApiModel(description = "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LabelSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) + @jakarta.annotation.Nonnull private String key; public static final String SERIALIZED_NAME_OPERATOR = "operator"; @SerializedName(SERIALIZED_NAME_OPERATOR) + @jakarta.annotation.Nonnull private String operator; public static final String SERIALIZED_NAME_VALUES = "values"; @SerializedName(SERIALIZED_NAME_VALUES) + @jakarta.annotation.Nullable private List values = new ArrayList<>(); public V1LabelSelectorRequirement() { } - public V1LabelSelectorRequirement key(String key) { + public V1LabelSelectorRequirement key(@jakarta.annotation.Nonnull String key) { this.key = key; return this; } - /** + /** * key is the label key that the selector applies to. * @return key - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "key is the label key that the selector applies to.") public String getKey() { return key; } - public void setKey(String key) { + public void setKey(@jakarta.annotation.Nonnull String key) { this.key = key; } - public V1LabelSelectorRequirement operator(String operator) { + public V1LabelSelectorRequirement operator(@jakarta.annotation.Nonnull String operator) { this.operator = operator; return this; } - /** + /** * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. * @return operator - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.") public String getOperator() { return operator; } - public void setOperator(String operator) { + public void setOperator(@jakarta.annotation.Nonnull String operator) { this.operator = operator; } - public V1LabelSelectorRequirement values(List values) { + public V1LabelSelectorRequirement values(@jakarta.annotation.Nullable List values) { this.values = values; return this; } @@ -123,17 +125,17 @@ public V1LabelSelectorRequirement addValuesItem(String valuesItem) { return this; } - /** + /** * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. * @return values - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.") public List getValues() { return values; } - public void setValues(List values) { + public void setValues(@jakarta.annotation.Nullable List values) { this.values = values; } @@ -197,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("operator"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1LabelSelectorRequirement - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1LabelSelectorRequirement + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LabelSelectorRequirement.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -266,22 +268,22 @@ public V1LabelSelectorRequirement read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1LabelSelectorRequirement given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1LabelSelectorRequirement - * @throws IOException if the JSON string is invalid with respect to V1LabelSelectorRequirement - */ + /** + * Create an instance of V1LabelSelectorRequirement given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LabelSelectorRequirement + * @throws IOException if the JSON string is invalid with respect to V1LabelSelectorRequirement + */ public static V1LabelSelectorRequirement fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1LabelSelectorRequirement.class); } - /** - * Convert an instance of V1LabelSelectorRequirement to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1LabelSelectorRequirement to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lease.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lease.java index 557b32f9bf..ffbb19b749 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lease.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lease.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,103 +52,107 @@ * Lease defines a lease concept. */ @ApiModel(description = "Lease defines a lease concept.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Lease implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1LeaseSpec spec; public V1Lease() { } - public V1Lease apiVersion(String apiVersion) { + public V1Lease apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1Lease kind(String kind) { + public V1Lease kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1Lease metadata(V1ObjectMeta metadata) { + public V1Lease metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1Lease spec(V1LeaseSpec spec) { + public V1Lease spec(@jakarta.annotation.Nullable V1LeaseSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LeaseSpec getSpec() { return spec; } - public void setSpec(V1LeaseSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1LeaseSpec spec) { this.spec = spec; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Lease - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Lease + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Lease.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -280,22 +283,22 @@ public V1Lease read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Lease given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Lease - * @throws IOException if the JSON string is invalid with respect to V1Lease - */ + /** + * Create an instance of V1Lease given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Lease + * @throws IOException if the JSON string is invalid with respect to V1Lease + */ public static V1Lease fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Lease.class); } - /** - * Convert an instance of V1Lease to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Lease to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseList.java index cd7421f1ff..4829a13a7c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * LeaseList is a list of Lease objects. */ @ApiModel(description = "LeaseList is a list of Lease objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LeaseList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1LeaseList() { } - public V1LeaseList apiVersion(String apiVersion) { + public V1LeaseList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1LeaseList items(List items) { + public V1LeaseList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1LeaseList addItemsItem(V1Lease itemsItem) { return this; } - /** + /** * items is a list of schema objects. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is a list of schema objects.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1LeaseList kind(String kind) { + public V1LeaseList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1LeaseList metadata(V1ListMeta metadata) { + public V1LeaseList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1LeaseList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1LeaseList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LeaseList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1LeaseList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1LeaseList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1LeaseList - * @throws IOException if the JSON string is invalid with respect to V1LeaseList - */ + /** + * Create an instance of V1LeaseList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LeaseList + * @throws IOException if the JSON string is invalid with respect to V1LeaseList + */ public static V1LeaseList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1LeaseList.class); } - /** - * Convert an instance of V1LeaseList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1LeaseList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpec.java index f0ba35cd04..df2ddc351b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpec.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,175 +51,182 @@ * LeaseSpec is a specification of a Lease. */ @ApiModel(description = "LeaseSpec is a specification of a Lease.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LeaseSpec { public static final String SERIALIZED_NAME_ACQUIRE_TIME = "acquireTime"; @SerializedName(SERIALIZED_NAME_ACQUIRE_TIME) + @jakarta.annotation.Nullable private OffsetDateTime acquireTime; public static final String SERIALIZED_NAME_HOLDER_IDENTITY = "holderIdentity"; @SerializedName(SERIALIZED_NAME_HOLDER_IDENTITY) + @jakarta.annotation.Nullable private String holderIdentity; public static final String SERIALIZED_NAME_LEASE_DURATION_SECONDS = "leaseDurationSeconds"; @SerializedName(SERIALIZED_NAME_LEASE_DURATION_SECONDS) + @jakarta.annotation.Nullable private Integer leaseDurationSeconds; public static final String SERIALIZED_NAME_LEASE_TRANSITIONS = "leaseTransitions"; @SerializedName(SERIALIZED_NAME_LEASE_TRANSITIONS) + @jakarta.annotation.Nullable private Integer leaseTransitions; public static final String SERIALIZED_NAME_PREFERRED_HOLDER = "preferredHolder"; @SerializedName(SERIALIZED_NAME_PREFERRED_HOLDER) + @jakarta.annotation.Nullable private String preferredHolder; public static final String SERIALIZED_NAME_RENEW_TIME = "renewTime"; @SerializedName(SERIALIZED_NAME_RENEW_TIME) + @jakarta.annotation.Nullable private OffsetDateTime renewTime; public static final String SERIALIZED_NAME_STRATEGY = "strategy"; @SerializedName(SERIALIZED_NAME_STRATEGY) + @jakarta.annotation.Nullable private String strategy; public V1LeaseSpec() { } - public V1LeaseSpec acquireTime(OffsetDateTime acquireTime) { + public V1LeaseSpec acquireTime(@jakarta.annotation.Nullable OffsetDateTime acquireTime) { this.acquireTime = acquireTime; return this; } - /** + /** * acquireTime is a time when the current lease was acquired. * @return acquireTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "acquireTime is a time when the current lease was acquired.") public OffsetDateTime getAcquireTime() { return acquireTime; } - public void setAcquireTime(OffsetDateTime acquireTime) { + public void setAcquireTime(@jakarta.annotation.Nullable OffsetDateTime acquireTime) { this.acquireTime = acquireTime; } - public V1LeaseSpec holderIdentity(String holderIdentity) { + public V1LeaseSpec holderIdentity(@jakarta.annotation.Nullable String holderIdentity) { this.holderIdentity = holderIdentity; return this; } - /** + /** * holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field. * @return holderIdentity - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.") public String getHolderIdentity() { return holderIdentity; } - public void setHolderIdentity(String holderIdentity) { + public void setHolderIdentity(@jakarta.annotation.Nullable String holderIdentity) { this.holderIdentity = holderIdentity; } - public V1LeaseSpec leaseDurationSeconds(Integer leaseDurationSeconds) { + public V1LeaseSpec leaseDurationSeconds(@jakarta.annotation.Nullable Integer leaseDurationSeconds) { this.leaseDurationSeconds = leaseDurationSeconds; return this; } - /** + /** * leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime. * @return leaseDurationSeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.") public Integer getLeaseDurationSeconds() { return leaseDurationSeconds; } - public void setLeaseDurationSeconds(Integer leaseDurationSeconds) { + public void setLeaseDurationSeconds(@jakarta.annotation.Nullable Integer leaseDurationSeconds) { this.leaseDurationSeconds = leaseDurationSeconds; } - public V1LeaseSpec leaseTransitions(Integer leaseTransitions) { + public V1LeaseSpec leaseTransitions(@jakarta.annotation.Nullable Integer leaseTransitions) { this.leaseTransitions = leaseTransitions; return this; } - /** + /** * leaseTransitions is the number of transitions of a lease between holders. * @return leaseTransitions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "leaseTransitions is the number of transitions of a lease between holders.") public Integer getLeaseTransitions() { return leaseTransitions; } - public void setLeaseTransitions(Integer leaseTransitions) { + public void setLeaseTransitions(@jakarta.annotation.Nullable Integer leaseTransitions) { this.leaseTransitions = leaseTransitions; } - public V1LeaseSpec preferredHolder(String preferredHolder) { + public V1LeaseSpec preferredHolder(@jakarta.annotation.Nullable String preferredHolder) { this.preferredHolder = preferredHolder; return this; } - /** + /** * PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set. * @return preferredHolder - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.") public String getPreferredHolder() { return preferredHolder; } - public void setPreferredHolder(String preferredHolder) { + public void setPreferredHolder(@jakarta.annotation.Nullable String preferredHolder) { this.preferredHolder = preferredHolder; } - public V1LeaseSpec renewTime(OffsetDateTime renewTime) { + public V1LeaseSpec renewTime(@jakarta.annotation.Nullable OffsetDateTime renewTime) { this.renewTime = renewTime; return this; } - /** + /** * renewTime is a time when the current holder of a lease has last updated the lease. * @return renewTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "renewTime is a time when the current holder of a lease has last updated the lease.") public OffsetDateTime getRenewTime() { return renewTime; } - public void setRenewTime(OffsetDateTime renewTime) { + public void setRenewTime(@jakarta.annotation.Nullable OffsetDateTime renewTime) { this.renewTime = renewTime; } - public V1LeaseSpec strategy(String strategy) { + public V1LeaseSpec strategy(@jakarta.annotation.Nullable String strategy) { this.strategy = strategy; return this; } - /** + /** * Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled. * @return strategy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.") public String getStrategy() { return strategy; } - public void setStrategy(String strategy) { + public void setStrategy(@jakarta.annotation.Nullable String strategy) { this.strategy = strategy; } @@ -294,12 +300,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1LeaseSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1LeaseSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LeaseSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -355,22 +361,22 @@ public V1LeaseSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1LeaseSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1LeaseSpec - * @throws IOException if the JSON string is invalid with respect to V1LeaseSpec - */ + /** + * Create an instance of V1LeaseSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LeaseSpec + * @throws IOException if the JSON string is invalid with respect to V1LeaseSpec + */ public static V1LeaseSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1LeaseSpec.class); } - /** - * Convert an instance of V1LeaseSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1LeaseSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lifecycle.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lifecycle.java index 68e8892898..8e98c78b7e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lifecycle.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lifecycle.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,59 +51,86 @@ * Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted. */ @ApiModel(description = "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Lifecycle { public static final String SERIALIZED_NAME_POST_START = "postStart"; @SerializedName(SERIALIZED_NAME_POST_START) + @jakarta.annotation.Nullable private V1LifecycleHandler postStart; public static final String SERIALIZED_NAME_PRE_STOP = "preStop"; @SerializedName(SERIALIZED_NAME_PRE_STOP) + @jakarta.annotation.Nullable private V1LifecycleHandler preStop; + public static final String SERIALIZED_NAME_STOP_SIGNAL = "stopSignal"; + @SerializedName(SERIALIZED_NAME_STOP_SIGNAL) + @jakarta.annotation.Nullable + private String stopSignal; + public V1Lifecycle() { } - public V1Lifecycle postStart(V1LifecycleHandler postStart) { + public V1Lifecycle postStart(@jakarta.annotation.Nullable V1LifecycleHandler postStart) { this.postStart = postStart; return this; } - /** + /** * Get postStart * @return postStart - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LifecycleHandler getPostStart() { return postStart; } - public void setPostStart(V1LifecycleHandler postStart) { + public void setPostStart(@jakarta.annotation.Nullable V1LifecycleHandler postStart) { this.postStart = postStart; } - public V1Lifecycle preStop(V1LifecycleHandler preStop) { + public V1Lifecycle preStop(@jakarta.annotation.Nullable V1LifecycleHandler preStop) { this.preStop = preStop; return this; } - /** + /** * Get preStop * @return preStop - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LifecycleHandler getPreStop() { return preStop; } - public void setPreStop(V1LifecycleHandler preStop) { + public void setPreStop(@jakarta.annotation.Nullable V1LifecycleHandler preStop) { this.preStop = preStop; } + public V1Lifecycle stopSignal(@jakarta.annotation.Nullable String stopSignal) { + this.stopSignal = stopSignal; + return this; + } + + /** + * StopSignal defines which signal will be sent to a container when it is being stopped. If not specified, the default is defined by the container runtime in use. StopSignal can only be set for Pods with a non-empty .spec.os.name + * @return stopSignal + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "StopSignal defines which signal will be sent to a container when it is being stopped. If not specified, the default is defined by the container runtime in use. StopSignal can only be set for Pods with a non-empty .spec.os.name") + public String getStopSignal() { + return stopSignal; + } + + public void setStopSignal(@jakarta.annotation.Nullable String stopSignal) { + this.stopSignal = stopSignal; + } + + @Override public boolean equals(Object o) { @@ -116,12 +142,13 @@ public boolean equals(Object o) { } V1Lifecycle v1Lifecycle = (V1Lifecycle) o; return Objects.equals(this.postStart, v1Lifecycle.postStart) && - Objects.equals(this.preStop, v1Lifecycle.preStop); + Objects.equals(this.preStop, v1Lifecycle.preStop) && + Objects.equals(this.stopSignal, v1Lifecycle.stopSignal); } @Override public int hashCode() { - return Objects.hash(postStart, preStop); + return Objects.hash(postStart, preStop, stopSignal); } @Override @@ -130,6 +157,7 @@ public String toString() { sb.append("class V1Lifecycle {\n"); sb.append(" postStart: ").append(toIndentedString(postStart)).append("\n"); sb.append(" preStop: ").append(toIndentedString(preStop)).append("\n"); + sb.append(" stopSignal: ").append(toIndentedString(stopSignal)).append("\n"); sb.append("}"); return sb.toString(); } @@ -154,17 +182,18 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("postStart"); openapiFields.add("preStop"); + openapiFields.add("stopSignal"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Lifecycle - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Lifecycle + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Lifecycle.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -188,6 +217,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("preStop") != null && !jsonObj.get("preStop").isJsonNull()) { V1LifecycleHandler.validateJsonElement(jsonObj.get("preStop")); } + if ((jsonObj.get("stopSignal") != null && !jsonObj.get("stopSignal").isJsonNull()) && !jsonObj.get("stopSignal").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `stopSignal` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stopSignal").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -219,22 +251,22 @@ public V1Lifecycle read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Lifecycle given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Lifecycle - * @throws IOException if the JSON string is invalid with respect to V1Lifecycle - */ + /** + * Create an instance of V1Lifecycle given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Lifecycle + * @throws IOException if the JSON string is invalid with respect to V1Lifecycle + */ public static V1Lifecycle fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Lifecycle.class); } - /** - * Convert an instance of V1Lifecycle to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Lifecycle to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandler.java index af31359165..842f97098a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandler.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,103 +54,107 @@ * LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified. */ @ApiModel(description = "LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LifecycleHandler { public static final String SERIALIZED_NAME_EXEC = "exec"; @SerializedName(SERIALIZED_NAME_EXEC) + @jakarta.annotation.Nullable private V1ExecAction exec; public static final String SERIALIZED_NAME_HTTP_GET = "httpGet"; @SerializedName(SERIALIZED_NAME_HTTP_GET) + @jakarta.annotation.Nullable private V1HTTPGetAction httpGet; public static final String SERIALIZED_NAME_SLEEP = "sleep"; @SerializedName(SERIALIZED_NAME_SLEEP) + @jakarta.annotation.Nullable private V1SleepAction sleep; public static final String SERIALIZED_NAME_TCP_SOCKET = "tcpSocket"; @SerializedName(SERIALIZED_NAME_TCP_SOCKET) + @jakarta.annotation.Nullable private V1TCPSocketAction tcpSocket; public V1LifecycleHandler() { } - public V1LifecycleHandler exec(V1ExecAction exec) { + public V1LifecycleHandler exec(@jakarta.annotation.Nullable V1ExecAction exec) { this.exec = exec; return this; } - /** + /** * Get exec * @return exec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ExecAction getExec() { return exec; } - public void setExec(V1ExecAction exec) { + public void setExec(@jakarta.annotation.Nullable V1ExecAction exec) { this.exec = exec; } - public V1LifecycleHandler httpGet(V1HTTPGetAction httpGet) { + public V1LifecycleHandler httpGet(@jakarta.annotation.Nullable V1HTTPGetAction httpGet) { this.httpGet = httpGet; return this; } - /** + /** * Get httpGet * @return httpGet - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1HTTPGetAction getHttpGet() { return httpGet; } - public void setHttpGet(V1HTTPGetAction httpGet) { + public void setHttpGet(@jakarta.annotation.Nullable V1HTTPGetAction httpGet) { this.httpGet = httpGet; } - public V1LifecycleHandler sleep(V1SleepAction sleep) { + public V1LifecycleHandler sleep(@jakarta.annotation.Nullable V1SleepAction sleep) { this.sleep = sleep; return this; } - /** + /** * Get sleep * @return sleep - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SleepAction getSleep() { return sleep; } - public void setSleep(V1SleepAction sleep) { + public void setSleep(@jakarta.annotation.Nullable V1SleepAction sleep) { this.sleep = sleep; } - public V1LifecycleHandler tcpSocket(V1TCPSocketAction tcpSocket) { + public V1LifecycleHandler tcpSocket(@jakarta.annotation.Nullable V1TCPSocketAction tcpSocket) { this.tcpSocket = tcpSocket; return this; } - /** + /** * Get tcpSocket * @return tcpSocket - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1TCPSocketAction getTcpSocket() { return tcpSocket; } - public void setTcpSocket(V1TCPSocketAction tcpSocket) { + public void setTcpSocket(@jakarta.annotation.Nullable V1TCPSocketAction tcpSocket) { this.tcpSocket = tcpSocket; } @@ -216,12 +219,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1LifecycleHandler - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1LifecycleHandler + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LifecycleHandler.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -284,22 +287,22 @@ public V1LifecycleHandler read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1LifecycleHandler given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1LifecycleHandler - * @throws IOException if the JSON string is invalid with respect to V1LifecycleHandler - */ + /** + * Create an instance of V1LifecycleHandler given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LifecycleHandler + * @throws IOException if the JSON string is invalid with respect to V1LifecycleHandler + */ public static V1LifecycleHandler fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1LifecycleHandler.class); } - /** - * Convert an instance of V1LifecycleHandler to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1LifecycleHandler to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRange.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRange.java index 316b1bb9d1..545b6c68d4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRange.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,103 +52,107 @@ * LimitRange sets resource usage limits for each kind of resource in a Namespace. */ @ApiModel(description = "LimitRange sets resource usage limits for each kind of resource in a Namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LimitRange implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1LimitRangeSpec spec; public V1LimitRange() { } - public V1LimitRange apiVersion(String apiVersion) { + public V1LimitRange apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1LimitRange kind(String kind) { + public V1LimitRange kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1LimitRange metadata(V1ObjectMeta metadata) { + public V1LimitRange metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1LimitRange spec(V1LimitRangeSpec spec) { + public V1LimitRange spec(@jakarta.annotation.Nullable V1LimitRangeSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LimitRangeSpec getSpec() { return spec; } - public void setSpec(V1LimitRangeSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1LimitRangeSpec spec) { this.spec = spec; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1LimitRange - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1LimitRange + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LimitRange.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -280,22 +283,22 @@ public V1LimitRange read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1LimitRange given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1LimitRange - * @throws IOException if the JSON string is invalid with respect to V1LimitRange - */ + /** + * Create an instance of V1LimitRange given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LimitRange + * @throws IOException if the JSON string is invalid with respect to V1LimitRange + */ public static V1LimitRange fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1LimitRange.class); } - /** - * Convert an instance of V1LimitRange to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1LimitRange to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItem.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItem.java index f9189f30c7..1e1306da71 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItem.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItem.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,36 +53,42 @@ * LimitRangeItem defines a min/max usage limit for any resource that matches on kind. */ @ApiModel(description = "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LimitRangeItem { public static final String SERIALIZED_NAME_DEFAULT = "default"; @SerializedName(SERIALIZED_NAME_DEFAULT) + @jakarta.annotation.Nullable private Map _default = new HashMap<>(); public static final String SERIALIZED_NAME_DEFAULT_REQUEST = "defaultRequest"; @SerializedName(SERIALIZED_NAME_DEFAULT_REQUEST) + @jakarta.annotation.Nullable private Map defaultRequest = new HashMap<>(); public static final String SERIALIZED_NAME_MAX = "max"; @SerializedName(SERIALIZED_NAME_MAX) + @jakarta.annotation.Nullable private Map max = new HashMap<>(); public static final String SERIALIZED_NAME_MAX_LIMIT_REQUEST_RATIO = "maxLimitRequestRatio"; @SerializedName(SERIALIZED_NAME_MAX_LIMIT_REQUEST_RATIO) + @jakarta.annotation.Nullable private Map maxLimitRequestRatio = new HashMap<>(); public static final String SERIALIZED_NAME_MIN = "min"; @SerializedName(SERIALIZED_NAME_MIN) + @jakarta.annotation.Nullable private Map min = new HashMap<>(); public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1LimitRangeItem() { } - public V1LimitRangeItem _default(Map _default) { + public V1LimitRangeItem _default(@jakarta.annotation.Nullable Map _default) { this._default = _default; return this; } @@ -96,22 +101,22 @@ public V1LimitRangeItem putDefaultItem(String key, Quantity _defaultItem) { return this; } - /** + /** * Default resource requirement limit value by resource name if resource limit is omitted. * @return _default - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Default resource requirement limit value by resource name if resource limit is omitted.") public Map getDefault() { return _default; } - public void setDefault(Map _default) { + public void setDefault(@jakarta.annotation.Nullable Map _default) { this._default = _default; } - public V1LimitRangeItem defaultRequest(Map defaultRequest) { + public V1LimitRangeItem defaultRequest(@jakarta.annotation.Nullable Map defaultRequest) { this.defaultRequest = defaultRequest; return this; } @@ -124,22 +129,22 @@ public V1LimitRangeItem putDefaultRequestItem(String key, Quantity defaultReques return this; } - /** + /** * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. * @return defaultRequest - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.") public Map getDefaultRequest() { return defaultRequest; } - public void setDefaultRequest(Map defaultRequest) { + public void setDefaultRequest(@jakarta.annotation.Nullable Map defaultRequest) { this.defaultRequest = defaultRequest; } - public V1LimitRangeItem max(Map max) { + public V1LimitRangeItem max(@jakarta.annotation.Nullable Map max) { this.max = max; return this; } @@ -152,22 +157,22 @@ public V1LimitRangeItem putMaxItem(String key, Quantity maxItem) { return this; } - /** + /** * Max usage constraints on this kind by resource name. * @return max - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Max usage constraints on this kind by resource name.") public Map getMax() { return max; } - public void setMax(Map max) { + public void setMax(@jakarta.annotation.Nullable Map max) { this.max = max; } - public V1LimitRangeItem maxLimitRequestRatio(Map maxLimitRequestRatio) { + public V1LimitRangeItem maxLimitRequestRatio(@jakarta.annotation.Nullable Map maxLimitRequestRatio) { this.maxLimitRequestRatio = maxLimitRequestRatio; return this; } @@ -180,22 +185,22 @@ public V1LimitRangeItem putMaxLimitRequestRatioItem(String key, Quantity maxLimi return this; } - /** + /** * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. * @return maxLimitRequestRatio - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.") public Map getMaxLimitRequestRatio() { return maxLimitRequestRatio; } - public void setMaxLimitRequestRatio(Map maxLimitRequestRatio) { + public void setMaxLimitRequestRatio(@jakarta.annotation.Nullable Map maxLimitRequestRatio) { this.maxLimitRequestRatio = maxLimitRequestRatio; } - public V1LimitRangeItem min(Map min) { + public V1LimitRangeItem min(@jakarta.annotation.Nullable Map min) { this.min = min; return this; } @@ -208,37 +213,37 @@ public V1LimitRangeItem putMinItem(String key, Quantity minItem) { return this; } - /** + /** * Min usage constraints on this kind by resource name. * @return min - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Min usage constraints on this kind by resource name.") public Map getMin() { return min; } - public void setMin(Map min) { + public void setMin(@jakarta.annotation.Nullable Map min) { this.min = min; } - public V1LimitRangeItem type(String type) { + public V1LimitRangeItem type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * Type of resource that this limit applies to. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Type of resource that this limit applies to.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -310,12 +315,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1LimitRangeItem - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1LimitRangeItem + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LimitRangeItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -372,22 +377,22 @@ public V1LimitRangeItem read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1LimitRangeItem given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1LimitRangeItem - * @throws IOException if the JSON string is invalid with respect to V1LimitRangeItem - */ + /** + * Create an instance of V1LimitRangeItem given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LimitRangeItem + * @throws IOException if the JSON string is invalid with respect to V1LimitRangeItem + */ public static V1LimitRangeItem fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1LimitRangeItem.class); } - /** - * Convert an instance of V1LimitRangeItem to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1LimitRangeItem to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeList.java index 2b4ca96a56..51bcf57ce3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * LimitRangeList is a list of LimitRange items. */ @ApiModel(description = "LimitRangeList is a list of LimitRange items.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LimitRangeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1LimitRangeList() { } - public V1LimitRangeList apiVersion(String apiVersion) { + public V1LimitRangeList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1LimitRangeList items(List items) { + public V1LimitRangeList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1LimitRangeList addItemsItem(V1LimitRange itemsItem) { return this; } - /** + /** * Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1LimitRangeList kind(String kind) { + public V1LimitRangeList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1LimitRangeList metadata(V1ListMeta metadata) { + public V1LimitRangeList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1LimitRangeList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1LimitRangeList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LimitRangeList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1LimitRangeList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1LimitRangeList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1LimitRangeList - * @throws IOException if the JSON string is invalid with respect to V1LimitRangeList - */ + /** + * Create an instance of V1LimitRangeList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LimitRangeList + * @throws IOException if the JSON string is invalid with respect to V1LimitRangeList + */ public static V1LimitRangeList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1LimitRangeList.class); } - /** - * Convert an instance of V1LimitRangeList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1LimitRangeList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpec.java index a421deefc9..82a6f45f42 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpec.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,16 +53,17 @@ * LimitRangeSpec defines a min/max usage limit for resources that match on kind. */ @ApiModel(description = "LimitRangeSpec defines a min/max usage limit for resources that match on kind.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LimitRangeSpec { public static final String SERIALIZED_NAME_LIMITS = "limits"; @SerializedName(SERIALIZED_NAME_LIMITS) + @jakarta.annotation.Nonnull private List limits = new ArrayList<>(); public V1LimitRangeSpec() { } - public V1LimitRangeSpec limits(List limits) { + public V1LimitRangeSpec limits(@jakarta.annotation.Nonnull List limits) { this.limits = limits; return this; } @@ -76,17 +76,17 @@ public V1LimitRangeSpec addLimitsItem(V1LimitRangeItem limitsItem) { return this; } - /** + /** * Limits is the list of LimitRangeItem objects that are enforced. * @return limits - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Limits is the list of LimitRangeItem objects that are enforced.") public List getLimits() { return limits; } - public void setLimits(List limits) { + public void setLimits(@jakarta.annotation.Nonnull List limits) { this.limits = limits; } @@ -143,12 +143,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("limits"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1LimitRangeSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1LimitRangeSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LimitRangeSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -212,22 +212,22 @@ public V1LimitRangeSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1LimitRangeSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1LimitRangeSpec - * @throws IOException if the JSON string is invalid with respect to V1LimitRangeSpec - */ + /** + * Create an instance of V1LimitRangeSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LimitRangeSpec + * @throws IOException if the JSON string is invalid with respect to V1LimitRangeSpec + */ public static V1LimitRangeSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1LimitRangeSpec.class); } - /** - * Convert an instance of V1LimitRangeSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1LimitRangeSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponse.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponse.java index 61da2c84d5..dfdc562d83 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponse.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponse.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * LimitResponse defines how to handle requests that can not be executed right now. */ @ApiModel(description = "LimitResponse defines how to handle requests that can not be executed right now.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LimitResponse { public static final String SERIALIZED_NAME_QUEUING = "queuing"; @SerializedName(SERIALIZED_NAME_QUEUING) + @jakarta.annotation.Nullable private V1QueuingConfiguration queuing; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1LimitResponse() { } - public V1LimitResponse queuing(V1QueuingConfiguration queuing) { + public V1LimitResponse queuing(@jakarta.annotation.Nullable V1QueuingConfiguration queuing) { this.queuing = queuing; return this; } - /** + /** * Get queuing * @return queuing - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1QueuingConfiguration getQueuing() { return queuing; } - public void setQueuing(V1QueuingConfiguration queuing) { + public void setQueuing(@jakarta.annotation.Nullable V1QueuingConfiguration queuing) { this.queuing = queuing; } - public V1LimitResponse type(String type) { + public V1LimitResponse type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * `type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "`type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1LimitResponse - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1LimitResponse + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LimitResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -226,22 +227,22 @@ public V1LimitResponse read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1LimitResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1LimitResponse - * @throws IOException if the JSON string is invalid with respect to V1LimitResponse - */ + /** + * Create an instance of V1LimitResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LimitResponse + * @throws IOException if the JSON string is invalid with respect to V1LimitResponse + */ public static V1LimitResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1LimitResponse.class); } - /** - * Convert an instance of V1LimitResponse to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1LimitResponse to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfiguration.java index 9039ef4ab4..12d4b4e866 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfiguration.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,103 +51,107 @@ * LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: - How are requests for this priority level limited? - What should be done with requests that exceed the limit? */ @ApiModel(description = "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: - How are requests for this priority level limited? - What should be done with requests that exceed the limit?") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LimitedPriorityLevelConfiguration { public static final String SERIALIZED_NAME_BORROWING_LIMIT_PERCENT = "borrowingLimitPercent"; @SerializedName(SERIALIZED_NAME_BORROWING_LIMIT_PERCENT) + @jakarta.annotation.Nullable private Integer borrowingLimitPercent; public static final String SERIALIZED_NAME_LENDABLE_PERCENT = "lendablePercent"; @SerializedName(SERIALIZED_NAME_LENDABLE_PERCENT) + @jakarta.annotation.Nullable private Integer lendablePercent; public static final String SERIALIZED_NAME_LIMIT_RESPONSE = "limitResponse"; @SerializedName(SERIALIZED_NAME_LIMIT_RESPONSE) + @jakarta.annotation.Nullable private V1LimitResponse limitResponse; public static final String SERIALIZED_NAME_NOMINAL_CONCURRENCY_SHARES = "nominalConcurrencyShares"; @SerializedName(SERIALIZED_NAME_NOMINAL_CONCURRENCY_SHARES) + @jakarta.annotation.Nullable private Integer nominalConcurrencyShares; public V1LimitedPriorityLevelConfiguration() { } - public V1LimitedPriorityLevelConfiguration borrowingLimitPercent(Integer borrowingLimitPercent) { + public V1LimitedPriorityLevelConfiguration borrowingLimitPercent(@jakarta.annotation.Nullable Integer borrowingLimitPercent) { this.borrowingLimitPercent = borrowingLimitPercent; return this; } - /** + /** * `borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows. BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite. * @return borrowingLimitPercent - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows. BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.") public Integer getBorrowingLimitPercent() { return borrowingLimitPercent; } - public void setBorrowingLimitPercent(Integer borrowingLimitPercent) { + public void setBorrowingLimitPercent(@jakarta.annotation.Nullable Integer borrowingLimitPercent) { this.borrowingLimitPercent = borrowingLimitPercent; } - public V1LimitedPriorityLevelConfiguration lendablePercent(Integer lendablePercent) { + public V1LimitedPriorityLevelConfiguration lendablePercent(@jakarta.annotation.Nullable Integer lendablePercent) { this.lendablePercent = lendablePercent; return this; } - /** + /** * `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) * @return lendablePercent - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )") public Integer getLendablePercent() { return lendablePercent; } - public void setLendablePercent(Integer lendablePercent) { + public void setLendablePercent(@jakarta.annotation.Nullable Integer lendablePercent) { this.lendablePercent = lendablePercent; } - public V1LimitedPriorityLevelConfiguration limitResponse(V1LimitResponse limitResponse) { + public V1LimitedPriorityLevelConfiguration limitResponse(@jakarta.annotation.Nullable V1LimitResponse limitResponse) { this.limitResponse = limitResponse; return this; } - /** + /** * Get limitResponse * @return limitResponse - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LimitResponse getLimitResponse() { return limitResponse; } - public void setLimitResponse(V1LimitResponse limitResponse) { + public void setLimitResponse(@jakarta.annotation.Nullable V1LimitResponse limitResponse) { this.limitResponse = limitResponse; } - public V1LimitedPriorityLevelConfiguration nominalConcurrencyShares(Integer nominalConcurrencyShares) { + public V1LimitedPriorityLevelConfiguration nominalConcurrencyShares(@jakarta.annotation.Nullable Integer nominalConcurrencyShares) { this.nominalConcurrencyShares = nominalConcurrencyShares; return this; } - /** + /** * `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values: NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. If not specified, this field defaults to a value of 30. Setting this field to zero supports the construction of a \"jail\" for this priority level that is used to hold some request(s) * @return nominalConcurrencyShares - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values: NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. If not specified, this field defaults to a value of 30. Setting this field to zero supports the construction of a \"jail\" for this priority level that is used to hold some request(s)") public Integer getNominalConcurrencyShares() { return nominalConcurrencyShares; } - public void setNominalConcurrencyShares(Integer nominalConcurrencyShares) { + public void setNominalConcurrencyShares(@jakarta.annotation.Nullable Integer nominalConcurrencyShares) { this.nominalConcurrencyShares = nominalConcurrencyShares; } @@ -213,12 +216,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1LimitedPriorityLevelConfiguration - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1LimitedPriorityLevelConfiguration + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LimitedPriorityLevelConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -269,22 +272,22 @@ public V1LimitedPriorityLevelConfiguration read(JsonReader in) throws IOExceptio } } - /** - * Create an instance of V1LimitedPriorityLevelConfiguration given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1LimitedPriorityLevelConfiguration - * @throws IOException if the JSON string is invalid with respect to V1LimitedPriorityLevelConfiguration - */ + /** + * Create an instance of V1LimitedPriorityLevelConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LimitedPriorityLevelConfiguration + * @throws IOException if the JSON string is invalid with respect to V1LimitedPriorityLevelConfiguration + */ public static V1LimitedPriorityLevelConfiguration fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1LimitedPriorityLevelConfiguration.class); } - /** - * Convert an instance of V1LimitedPriorityLevelConfiguration to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1LimitedPriorityLevelConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUser.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUser.java index ae53cb1c32..80a03eae6c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUser.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUser.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,44 +52,47 @@ * LinuxContainerUser represents user identity information in Linux containers */ @ApiModel(description = "LinuxContainerUser represents user identity information in Linux containers") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LinuxContainerUser { public static final String SERIALIZED_NAME_GID = "gid"; @SerializedName(SERIALIZED_NAME_GID) + @jakarta.annotation.Nonnull private Long gid; public static final String SERIALIZED_NAME_SUPPLEMENTAL_GROUPS = "supplementalGroups"; @SerializedName(SERIALIZED_NAME_SUPPLEMENTAL_GROUPS) + @jakarta.annotation.Nullable private List supplementalGroups = new ArrayList<>(); public static final String SERIALIZED_NAME_UID = "uid"; @SerializedName(SERIALIZED_NAME_UID) + @jakarta.annotation.Nonnull private Long uid; public V1LinuxContainerUser() { } - public V1LinuxContainerUser gid(Long gid) { + public V1LinuxContainerUser gid(@jakarta.annotation.Nonnull Long gid) { this.gid = gid; return this; } - /** + /** * GID is the primary gid initially attached to the first process in the container * @return gid - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "GID is the primary gid initially attached to the first process in the container") public Long getGid() { return gid; } - public void setGid(Long gid) { + public void setGid(@jakarta.annotation.Nonnull Long gid) { this.gid = gid; } - public V1LinuxContainerUser supplementalGroups(List supplementalGroups) { + public V1LinuxContainerUser supplementalGroups(@jakarta.annotation.Nullable List supplementalGroups) { this.supplementalGroups = supplementalGroups; return this; } @@ -103,37 +105,37 @@ public V1LinuxContainerUser addSupplementalGroupsItem(Long supplementalGroupsIte return this; } - /** + /** * SupplementalGroups are the supplemental groups initially attached to the first process in the container * @return supplementalGroups - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "SupplementalGroups are the supplemental groups initially attached to the first process in the container") public List getSupplementalGroups() { return supplementalGroups; } - public void setSupplementalGroups(List supplementalGroups) { + public void setSupplementalGroups(@jakarta.annotation.Nullable List supplementalGroups) { this.supplementalGroups = supplementalGroups; } - public V1LinuxContainerUser uid(Long uid) { + public V1LinuxContainerUser uid(@jakarta.annotation.Nonnull Long uid) { this.uid = uid; return this; } - /** + /** * UID is the primary uid initially attached to the first process in the container * @return uid - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "UID is the primary uid initially attached to the first process in the container") public Long getUid() { return uid; } - public void setUid(Long uid) { + public void setUid(@jakarta.annotation.Nonnull Long uid) { this.uid = uid; } @@ -197,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("uid"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1LinuxContainerUser - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1LinuxContainerUser + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LinuxContainerUser.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -260,22 +262,22 @@ public V1LinuxContainerUser read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1LinuxContainerUser given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1LinuxContainerUser - * @throws IOException if the JSON string is invalid with respect to V1LinuxContainerUser - */ + /** + * Create an instance of V1LinuxContainerUser given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LinuxContainerUser + * @throws IOException if the JSON string is invalid with respect to V1LinuxContainerUser + */ public static V1LinuxContainerUser fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1LinuxContainerUser.class); } - /** - * Convert an instance of V1LinuxContainerUser to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1LinuxContainerUser to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ListMeta.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ListMeta.java index ed401b393f..b45919c6fa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ListMeta.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ListMeta.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,103 +50,107 @@ * ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. */ @ApiModel(description = "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ListMeta { public static final String SERIALIZED_NAME_CONTINUE = "continue"; @SerializedName(SERIALIZED_NAME_CONTINUE) + @jakarta.annotation.Nullable private String _continue; public static final String SERIALIZED_NAME_REMAINING_ITEM_COUNT = "remainingItemCount"; @SerializedName(SERIALIZED_NAME_REMAINING_ITEM_COUNT) + @jakarta.annotation.Nullable private Long remainingItemCount; public static final String SERIALIZED_NAME_RESOURCE_VERSION = "resourceVersion"; @SerializedName(SERIALIZED_NAME_RESOURCE_VERSION) + @jakarta.annotation.Nullable private String resourceVersion; public static final String SERIALIZED_NAME_SELF_LINK = "selfLink"; @SerializedName(SERIALIZED_NAME_SELF_LINK) + @jakarta.annotation.Nullable private String selfLink; public V1ListMeta() { } - public V1ListMeta _continue(String _continue) { + public V1ListMeta _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } - /** + /** * continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. * @return _continue - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.") public String getContinue() { return _continue; } - public void setContinue(String _continue) { + public void setContinue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; } - public V1ListMeta remainingItemCount(Long remainingItemCount) { + public V1ListMeta remainingItemCount(@jakarta.annotation.Nullable Long remainingItemCount) { this.remainingItemCount = remainingItemCount; return this; } - /** + /** * remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. * @return remainingItemCount - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.") public Long getRemainingItemCount() { return remainingItemCount; } - public void setRemainingItemCount(Long remainingItemCount) { + public void setRemainingItemCount(@jakarta.annotation.Nullable Long remainingItemCount) { this.remainingItemCount = remainingItemCount; } - public V1ListMeta resourceVersion(String resourceVersion) { + public V1ListMeta resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } - /** + /** * String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency * @return resourceVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency") public String getResourceVersion() { return resourceVersion; } - public void setResourceVersion(String resourceVersion) { + public void setResourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; } - public V1ListMeta selfLink(String selfLink) { + public V1ListMeta selfLink(@jakarta.annotation.Nullable String selfLink) { this.selfLink = selfLink; return this; } - /** + /** * Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. * @return selfLink - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.") public String getSelfLink() { return selfLink; } - public void setSelfLink(String selfLink) { + public void setSelfLink(@jakarta.annotation.Nullable String selfLink) { this.selfLink = selfLink; } @@ -212,12 +215,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ListMeta - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ListMeta + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ListMeta.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -274,22 +277,22 @@ public V1ListMeta read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ListMeta given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ListMeta - * @throws IOException if the JSON string is invalid with respect to V1ListMeta - */ + /** + * Create an instance of V1ListMeta given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ListMeta + * @throws IOException if the JSON string is invalid with respect to V1ListMeta + */ public static V1ListMeta fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ListMeta.class); } - /** - * Convert an instance of V1ListMeta to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ListMeta to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java index 8bf9708a5b..a2f259e009 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,88 +53,92 @@ * LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point. */ @ApiModel(description = "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LoadBalancerIngress { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) + @jakarta.annotation.Nullable private String hostname; public static final String SERIALIZED_NAME_IP = "ip"; @SerializedName(SERIALIZED_NAME_IP) + @jakarta.annotation.Nullable private String ip; public static final String SERIALIZED_NAME_IP_MODE = "ipMode"; @SerializedName(SERIALIZED_NAME_IP_MODE) + @jakarta.annotation.Nullable private String ipMode; public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) + @jakarta.annotation.Nullable private List ports = new ArrayList<>(); public V1LoadBalancerIngress() { } - public V1LoadBalancerIngress hostname(String hostname) { + public V1LoadBalancerIngress hostname(@jakarta.annotation.Nullable String hostname) { this.hostname = hostname; return this; } - /** + /** * Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) * @return hostname - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)") public String getHostname() { return hostname; } - public void setHostname(String hostname) { + public void setHostname(@jakarta.annotation.Nullable String hostname) { this.hostname = hostname; } - public V1LoadBalancerIngress ip(String ip) { + public V1LoadBalancerIngress ip(@jakarta.annotation.Nullable String ip) { this.ip = ip; return this; } - /** + /** * IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) * @return ip - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)") public String getIp() { return ip; } - public void setIp(String ip) { + public void setIp(@jakarta.annotation.Nullable String ip) { this.ip = ip; } - public V1LoadBalancerIngress ipMode(String ipMode) { + public V1LoadBalancerIngress ipMode(@jakarta.annotation.Nullable String ipMode) { this.ipMode = ipMode; return this; } - /** + /** * IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to \"VIP\" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to \"Proxy\" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing. * @return ipMode - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to \"VIP\" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to \"Proxy\" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing.") public String getIpMode() { return ipMode; } - public void setIpMode(String ipMode) { + public void setIpMode(@jakarta.annotation.Nullable String ipMode) { this.ipMode = ipMode; } - public V1LoadBalancerIngress ports(List ports) { + public V1LoadBalancerIngress ports(@jakarta.annotation.Nullable List ports) { this.ports = ports; return this; } @@ -148,17 +151,17 @@ public V1LoadBalancerIngress addPortsItem(V1PortStatus portsItem) { return this; } - /** + /** * Ports is a list of records of service ports If used, every port defined in the service should have an entry in it * @return ports - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it") public List getPorts() { return ports; } - public void setPorts(List ports) { + public void setPorts(@jakarta.annotation.Nullable List ports) { this.ports = ports; } @@ -223,12 +226,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1LoadBalancerIngress - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1LoadBalancerIngress + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LoadBalancerIngress.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -298,22 +301,22 @@ public V1LoadBalancerIngress read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1LoadBalancerIngress given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1LoadBalancerIngress - * @throws IOException if the JSON string is invalid with respect to V1LoadBalancerIngress - */ + /** + * Create an instance of V1LoadBalancerIngress given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LoadBalancerIngress + * @throws IOException if the JSON string is invalid with respect to V1LoadBalancerIngress + */ public static V1LoadBalancerIngress fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1LoadBalancerIngress.class); } - /** - * Convert an instance of V1LoadBalancerIngress to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1LoadBalancerIngress to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatus.java index 1a5862b5ba..53dd81e8ff 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatus.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,16 +53,17 @@ * LoadBalancerStatus represents the status of a load-balancer. */ @ApiModel(description = "LoadBalancerStatus represents the status of a load-balancer.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LoadBalancerStatus { public static final String SERIALIZED_NAME_INGRESS = "ingress"; @SerializedName(SERIALIZED_NAME_INGRESS) + @jakarta.annotation.Nullable private List ingress = new ArrayList<>(); public V1LoadBalancerStatus() { } - public V1LoadBalancerStatus ingress(List ingress) { + public V1LoadBalancerStatus ingress(@jakarta.annotation.Nullable List ingress) { this.ingress = ingress; return this; } @@ -76,17 +76,17 @@ public V1LoadBalancerStatus addIngressItem(V1LoadBalancerIngress ingressItem) { return this; } - /** + /** * Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. * @return ingress - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.") public List getIngress() { return ingress; } - public void setIngress(List ingress) { + public void setIngress(@jakarta.annotation.Nullable List ingress) { this.ingress = ingress; } @@ -142,12 +142,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1LoadBalancerStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1LoadBalancerStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LoadBalancerStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -208,22 +208,22 @@ public V1LoadBalancerStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1LoadBalancerStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1LoadBalancerStatus - * @throws IOException if the JSON string is invalid with respect to V1LoadBalancerStatus - */ + /** + * Create an instance of V1LoadBalancerStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LoadBalancerStatus + * @throws IOException if the JSON string is invalid with respect to V1LoadBalancerStatus + */ public static V1LoadBalancerStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1LoadBalancerStatus.class); } - /** - * Convert an instance of V1LoadBalancerStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1LoadBalancerStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReference.java index fc7e1435b6..ac93fd5793 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReference.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. */ @ApiModel(description = "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LocalObjectReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public V1LocalObjectReference() { } - public V1LocalObjectReference name(String name) { + public V1LocalObjectReference name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } @@ -131,12 +131,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1LocalObjectReference - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1LocalObjectReference + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LocalObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -186,22 +186,22 @@ public V1LocalObjectReference read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1LocalObjectReference given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1LocalObjectReference - * @throws IOException if the JSON string is invalid with respect to V1LocalObjectReference - */ + /** + * Create an instance of V1LocalObjectReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LocalObjectReference + * @throws IOException if the JSON string is invalid with respect to V1LocalObjectReference + */ public static V1LocalObjectReference fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1LocalObjectReference.class); } - /** - * Convert an instance of V1LocalObjectReference to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1LocalObjectReference to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReview.java index 62ee41e78c..a9bbf596da 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReview.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. */ @ApiModel(description = "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LocalSubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nonnull private V1SubjectAccessReviewSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1SubjectAccessReviewStatus status; public V1LocalSubjectAccessReview() { } - public V1LocalSubjectAccessReview apiVersion(String apiVersion) { + public V1LocalSubjectAccessReview apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1LocalSubjectAccessReview kind(String kind) { + public V1LocalSubjectAccessReview kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1LocalSubjectAccessReview metadata(V1ObjectMeta metadata) { + public V1LocalSubjectAccessReview metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1LocalSubjectAccessReview spec(V1SubjectAccessReviewSpec spec) { + public V1LocalSubjectAccessReview spec(@jakarta.annotation.Nonnull V1SubjectAccessReviewSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1SubjectAccessReviewSpec getSpec() { return spec; } - public void setSpec(V1SubjectAccessReviewSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1SubjectAccessReviewSpec spec) { this.spec = spec; } - public V1LocalSubjectAccessReview status(V1SubjectAccessReviewStatus status) { + public V1LocalSubjectAccessReview status(@jakarta.annotation.Nullable V1SubjectAccessReviewStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SubjectAccessReviewStatus getStatus() { return status; } - public void setStatus(V1SubjectAccessReviewStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1SubjectAccessReviewStatus status) { this.status = status; } @@ -243,12 +247,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("spec"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1LocalSubjectAccessReview - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1LocalSubjectAccessReview + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LocalSubjectAccessReview.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -318,22 +322,22 @@ public V1LocalSubjectAccessReview read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1LocalSubjectAccessReview given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1LocalSubjectAccessReview - * @throws IOException if the JSON string is invalid with respect to V1LocalSubjectAccessReview - */ + /** + * Create an instance of V1LocalSubjectAccessReview given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LocalSubjectAccessReview + * @throws IOException if the JSON string is invalid with respect to V1LocalSubjectAccessReview + */ public static V1LocalSubjectAccessReview fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1LocalSubjectAccessReview.class); } - /** - * Convert an instance of V1LocalSubjectAccessReview to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1LocalSubjectAccessReview to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSource.java index 4db2241f44..eb51be59b9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * Local represents directly-attached storage with node affinity */ @ApiModel(description = "Local represents directly-attached storage with node affinity") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LocalVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) + @jakarta.annotation.Nullable private String fsType; public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) + @jakarta.annotation.Nonnull private String path; public V1LocalVolumeSource() { } - public V1LocalVolumeSource fsType(String fsType) { + public V1LocalVolumeSource fsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; return this; } - /** + /** * fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a filesystem if unspecified. * @return fsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a filesystem if unspecified.") public String getFsType() { return fsType; } - public void setFsType(String fsType) { + public void setFsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; } - public V1LocalVolumeSource path(String path) { + public V1LocalVolumeSource path(@jakarta.annotation.Nonnull String path) { this.path = path; return this; } - /** + /** * path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). * @return path - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).") public String getPath() { return path; } - public void setPath(String path) { + public void setPath(@jakarta.annotation.Nonnull String path) { this.path = path; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("path"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1LocalVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1LocalVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LocalVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -224,22 +225,22 @@ public V1LocalVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1LocalVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1LocalVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1LocalVolumeSource - */ + /** + * Create an instance of V1LocalVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LocalVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1LocalVolumeSource + */ public static V1LocalVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1LocalVolumeSource.class); } - /** - * Convert an instance of V1LocalVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1LocalVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntry.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntry.java index cc839db350..df2d7045a0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntry.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntry.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,175 +51,182 @@ * ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to. */ @ApiModel(description = "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ManagedFieldsEntry { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_FIELDS_TYPE = "fieldsType"; @SerializedName(SERIALIZED_NAME_FIELDS_TYPE) + @jakarta.annotation.Nullable private String fieldsType; public static final String SERIALIZED_NAME_FIELDS_V1 = "fieldsV1"; @SerializedName(SERIALIZED_NAME_FIELDS_V1) + @jakarta.annotation.Nullable private Object fieldsV1; public static final String SERIALIZED_NAME_MANAGER = "manager"; @SerializedName(SERIALIZED_NAME_MANAGER) + @jakarta.annotation.Nullable private String manager; public static final String SERIALIZED_NAME_OPERATION = "operation"; @SerializedName(SERIALIZED_NAME_OPERATION) + @jakarta.annotation.Nullable private String operation; public static final String SERIALIZED_NAME_SUBRESOURCE = "subresource"; @SerializedName(SERIALIZED_NAME_SUBRESOURCE) + @jakarta.annotation.Nullable private String subresource; public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) + @jakarta.annotation.Nullable private OffsetDateTime time; public V1ManagedFieldsEntry() { } - public V1ManagedFieldsEntry apiVersion(String apiVersion) { + public V1ManagedFieldsEntry apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ManagedFieldsEntry fieldsType(String fieldsType) { + public V1ManagedFieldsEntry fieldsType(@jakarta.annotation.Nullable String fieldsType) { this.fieldsType = fieldsType; return this; } - /** + /** * FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\" * @return fieldsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"") public String getFieldsType() { return fieldsType; } - public void setFieldsType(String fieldsType) { + public void setFieldsType(@jakarta.annotation.Nullable String fieldsType) { this.fieldsType = fieldsType; } - public V1ManagedFieldsEntry fieldsV1(Object fieldsV1) { + public V1ManagedFieldsEntry fieldsV1(@jakarta.annotation.Nullable Object fieldsV1) { this.fieldsV1 = fieldsV1; return this; } - /** + /** * FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. * @return fieldsV1 - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.") public Object getFieldsV1() { return fieldsV1; } - public void setFieldsV1(Object fieldsV1) { + public void setFieldsV1(@jakarta.annotation.Nullable Object fieldsV1) { this.fieldsV1 = fieldsV1; } - public V1ManagedFieldsEntry manager(String manager) { + public V1ManagedFieldsEntry manager(@jakarta.annotation.Nullable String manager) { this.manager = manager; return this; } - /** + /** * Manager is an identifier of the workflow managing these fields. * @return manager - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Manager is an identifier of the workflow managing these fields.") public String getManager() { return manager; } - public void setManager(String manager) { + public void setManager(@jakarta.annotation.Nullable String manager) { this.manager = manager; } - public V1ManagedFieldsEntry operation(String operation) { + public V1ManagedFieldsEntry operation(@jakarta.annotation.Nullable String operation) { this.operation = operation; return this; } - /** + /** * Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. * @return operation - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.") public String getOperation() { return operation; } - public void setOperation(String operation) { + public void setOperation(@jakarta.annotation.Nullable String operation) { this.operation = operation; } - public V1ManagedFieldsEntry subresource(String subresource) { + public V1ManagedFieldsEntry subresource(@jakarta.annotation.Nullable String subresource) { this.subresource = subresource; return this; } - /** + /** * Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource. * @return subresource - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.") public String getSubresource() { return subresource; } - public void setSubresource(String subresource) { + public void setSubresource(@jakarta.annotation.Nullable String subresource) { this.subresource = subresource; } - public V1ManagedFieldsEntry time(OffsetDateTime time) { + public V1ManagedFieldsEntry time(@jakarta.annotation.Nullable OffsetDateTime time) { this.time = time; return this; } - /** + /** * Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over. * @return time - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over.") public OffsetDateTime getTime() { return time; } - public void setTime(OffsetDateTime time) { + public void setTime(@jakarta.annotation.Nullable OffsetDateTime time) { this.time = time; } @@ -294,12 +300,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ManagedFieldsEntry - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ManagedFieldsEntry + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ManagedFieldsEntry.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -361,22 +367,22 @@ public V1ManagedFieldsEntry read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ManagedFieldsEntry given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ManagedFieldsEntry - * @throws IOException if the JSON string is invalid with respect to V1ManagedFieldsEntry - */ + /** + * Create an instance of V1ManagedFieldsEntry given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ManagedFieldsEntry + * @throws IOException if the JSON string is invalid with respect to V1ManagedFieldsEntry + */ public static V1ManagedFieldsEntry fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ManagedFieldsEntry.class); } - /** - * Convert an instance of V1ManagedFieldsEntry to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ManagedFieldsEntry to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchCondition.java index 44d541ee93..f5a8857104 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchCondition.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook. */ @ApiModel(description = "MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1MatchCondition { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) + @jakarta.annotation.Nonnull private String expression; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public V1MatchCondition() { } - public V1MatchCondition expression(String expression) { + public V1MatchCondition expression(@jakarta.annotation.Nonnull String expression) { this.expression = expression; return this; } - /** + /** * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. * @return expression - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required.") public String getExpression() { return expression; } - public void setExpression(String expression) { + public void setExpression(@jakarta.annotation.Nonnull String expression) { this.expression = expression; } - public V1MatchCondition name(String name) { + public V1MatchCondition name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1MatchCondition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1MatchCondition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1MatchCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -225,22 +226,22 @@ public V1MatchCondition read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1MatchCondition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1MatchCondition - * @throws IOException if the JSON string is invalid with respect to V1MatchCondition - */ + /** + * Create an instance of V1MatchCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1MatchCondition + * @throws IOException if the JSON string is invalid with respect to V1MatchCondition + */ public static V1MatchCondition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1MatchCondition.class); } - /** - * Convert an instance of V1MatchCondition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1MatchCondition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchResources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchResources.java index a6530bceab..9c27c7e267 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchResources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchResources.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,32 +54,37 @@ * MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) */ @ApiModel(description = "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1MatchResources { public static final String SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES = "excludeResourceRules"; @SerializedName(SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES) + @jakarta.annotation.Nullable private List excludeResourceRules = new ArrayList<>(); public static final String SERIALIZED_NAME_MATCH_POLICY = "matchPolicy"; @SerializedName(SERIALIZED_NAME_MATCH_POLICY) + @jakarta.annotation.Nullable private String matchPolicy; public static final String SERIALIZED_NAME_NAMESPACE_SELECTOR = "namespaceSelector"; @SerializedName(SERIALIZED_NAME_NAMESPACE_SELECTOR) + @jakarta.annotation.Nullable private V1LabelSelector namespaceSelector; public static final String SERIALIZED_NAME_OBJECT_SELECTOR = "objectSelector"; @SerializedName(SERIALIZED_NAME_OBJECT_SELECTOR) + @jakarta.annotation.Nullable private V1LabelSelector objectSelector; public static final String SERIALIZED_NAME_RESOURCE_RULES = "resourceRules"; @SerializedName(SERIALIZED_NAME_RESOURCE_RULES) + @jakarta.annotation.Nullable private List resourceRules = new ArrayList<>(); public V1MatchResources() { } - public V1MatchResources excludeResourceRules(List excludeResourceRules) { + public V1MatchResources excludeResourceRules(@jakarta.annotation.Nullable List excludeResourceRules) { this.excludeResourceRules = excludeResourceRules; return this; } @@ -93,82 +97,82 @@ public V1MatchResources addExcludeResourceRulesItem(V1NamedRuleWithOperations ex return this; } - /** + /** * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) * @return excludeResourceRules - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)") public List getExcludeResourceRules() { return excludeResourceRules; } - public void setExcludeResourceRules(List excludeResourceRules) { + public void setExcludeResourceRules(@jakarta.annotation.Nullable List excludeResourceRules) { this.excludeResourceRules = excludeResourceRules; } - public V1MatchResources matchPolicy(String matchPolicy) { + public V1MatchResources matchPolicy(@jakarta.annotation.Nullable String matchPolicy) { this.matchPolicy = matchPolicy; return this; } - /** + /** * matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to \"Equivalent\" * @return matchPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to \"Equivalent\"") public String getMatchPolicy() { return matchPolicy; } - public void setMatchPolicy(String matchPolicy) { + public void setMatchPolicy(@jakarta.annotation.Nullable String matchPolicy) { this.matchPolicy = matchPolicy; } - public V1MatchResources namespaceSelector(V1LabelSelector namespaceSelector) { + public V1MatchResources namespaceSelector(@jakarta.annotation.Nullable V1LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; return this; } - /** + /** * Get namespaceSelector * @return namespaceSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LabelSelector getNamespaceSelector() { return namespaceSelector; } - public void setNamespaceSelector(V1LabelSelector namespaceSelector) { + public void setNamespaceSelector(@jakarta.annotation.Nullable V1LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; } - public V1MatchResources objectSelector(V1LabelSelector objectSelector) { + public V1MatchResources objectSelector(@jakarta.annotation.Nullable V1LabelSelector objectSelector) { this.objectSelector = objectSelector; return this; } - /** + /** * Get objectSelector * @return objectSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LabelSelector getObjectSelector() { return objectSelector; } - public void setObjectSelector(V1LabelSelector objectSelector) { + public void setObjectSelector(@jakarta.annotation.Nullable V1LabelSelector objectSelector) { this.objectSelector = objectSelector; } - public V1MatchResources resourceRules(List resourceRules) { + public V1MatchResources resourceRules(@jakarta.annotation.Nullable List resourceRules) { this.resourceRules = resourceRules; return this; } @@ -181,17 +185,17 @@ public V1MatchResources addResourceRulesItem(V1NamedRuleWithOperations resourceR return this; } - /** + /** * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. * @return resourceRules - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.") public List getResourceRules() { return resourceRules; } - public void setResourceRules(List resourceRules) { + public void setResourceRules(@jakarta.annotation.Nullable List resourceRules) { this.resourceRules = resourceRules; } @@ -259,12 +263,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1MatchResources - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1MatchResources + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1MatchResources.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -350,22 +354,22 @@ public V1MatchResources read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1MatchResources given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1MatchResources - * @throws IOException if the JSON string is invalid with respect to V1MatchResources - */ + /** + * Create an instance of V1MatchResources given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1MatchResources + * @throws IOException if the JSON string is invalid with respect to V1MatchResources + */ public static V1MatchResources fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1MatchResources.class); } - /** - * Convert an instance of V1MatchResources to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1MatchResources to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatus.java index 8ff35a5090..a1faa93ca1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatus.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * ModifyVolumeStatus represents the status object of ControllerModifyVolume operation */ @ApiModel(description = "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ModifyVolumeStatus { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nonnull private String status; public static final String SERIALIZED_NAME_TARGET_VOLUME_ATTRIBUTES_CLASS_NAME = "targetVolumeAttributesClassName"; @SerializedName(SERIALIZED_NAME_TARGET_VOLUME_ATTRIBUTES_CLASS_NAME) + @jakarta.annotation.Nullable private String targetVolumeAttributesClassName; public V1ModifyVolumeStatus() { } - public V1ModifyVolumeStatus status(String status) { + public V1ModifyVolumeStatus status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } - /** + /** * status is the status of the ControllerModifyVolume operation. It can be in any of following states: - Pending Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as the specified VolumeAttributesClass not existing. - InProgress InProgress indicates that the volume is being modified. - Infeasible Infeasible indicates that the request has been rejected as invalid by the CSI driver. To resolve the error, a valid VolumeAttributesClass needs to be specified. Note: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately. * @return status - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "status is the status of the ControllerModifyVolume operation. It can be in any of following states: - Pending Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as the specified VolumeAttributesClass not existing. - InProgress InProgress indicates that the volume is being modified. - Infeasible Infeasible indicates that the request has been rejected as invalid by the CSI driver. To resolve the error, a valid VolumeAttributesClass needs to be specified. Note: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately.") public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public V1ModifyVolumeStatus targetVolumeAttributesClassName(String targetVolumeAttributesClassName) { + public V1ModifyVolumeStatus targetVolumeAttributesClassName(@jakarta.annotation.Nullable String targetVolumeAttributesClassName) { this.targetVolumeAttributesClassName = targetVolumeAttributesClassName; return this; } - /** + /** * targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled * @return targetVolumeAttributesClassName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled") public String getTargetVolumeAttributesClassName() { return targetVolumeAttributesClassName; } - public void setTargetVolumeAttributesClassName(String targetVolumeAttributesClassName) { + public void setTargetVolumeAttributesClassName(@jakarta.annotation.Nullable String targetVolumeAttributesClassName) { this.targetVolumeAttributesClassName = targetVolumeAttributesClassName; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("status"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ModifyVolumeStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ModifyVolumeStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ModifyVolumeStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -224,22 +225,22 @@ public V1ModifyVolumeStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ModifyVolumeStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ModifyVolumeStatus - * @throws IOException if the JSON string is invalid with respect to V1ModifyVolumeStatus - */ + /** + * Create an instance of V1ModifyVolumeStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ModifyVolumeStatus + * @throws IOException if the JSON string is invalid with respect to V1ModifyVolumeStatus + */ public static V1ModifyVolumeStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ModifyVolumeStatus.class); } - /** - * Convert an instance of V1ModifyVolumeStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ModifyVolumeStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java index a45b4244d9..a231236b32 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java @@ -44,7 +44,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -57,60 +56,72 @@ * MutatingWebhook describes an admission webhook and the resources and operations it applies to. */ @ApiModel(description = "MutatingWebhook describes an admission webhook and the resources and operations it applies to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1MutatingWebhook { public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; @SerializedName(SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS) + @jakarta.annotation.Nonnull private List admissionReviewVersions = new ArrayList<>(); public static final String SERIALIZED_NAME_CLIENT_CONFIG = "clientConfig"; @SerializedName(SERIALIZED_NAME_CLIENT_CONFIG) + @jakarta.annotation.Nonnull private AdmissionregistrationV1WebhookClientConfig clientConfig; public static final String SERIALIZED_NAME_FAILURE_POLICY = "failurePolicy"; @SerializedName(SERIALIZED_NAME_FAILURE_POLICY) + @jakarta.annotation.Nullable private String failurePolicy; public static final String SERIALIZED_NAME_MATCH_CONDITIONS = "matchConditions"; @SerializedName(SERIALIZED_NAME_MATCH_CONDITIONS) + @jakarta.annotation.Nullable private List matchConditions = new ArrayList<>(); public static final String SERIALIZED_NAME_MATCH_POLICY = "matchPolicy"; @SerializedName(SERIALIZED_NAME_MATCH_POLICY) + @jakarta.annotation.Nullable private String matchPolicy; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_NAMESPACE_SELECTOR = "namespaceSelector"; @SerializedName(SERIALIZED_NAME_NAMESPACE_SELECTOR) + @jakarta.annotation.Nullable private V1LabelSelector namespaceSelector; public static final String SERIALIZED_NAME_OBJECT_SELECTOR = "objectSelector"; @SerializedName(SERIALIZED_NAME_OBJECT_SELECTOR) + @jakarta.annotation.Nullable private V1LabelSelector objectSelector; public static final String SERIALIZED_NAME_REINVOCATION_POLICY = "reinvocationPolicy"; @SerializedName(SERIALIZED_NAME_REINVOCATION_POLICY) + @jakarta.annotation.Nullable private String reinvocationPolicy; public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) + @jakarta.annotation.Nullable private List rules = new ArrayList<>(); public static final String SERIALIZED_NAME_SIDE_EFFECTS = "sideEffects"; @SerializedName(SERIALIZED_NAME_SIDE_EFFECTS) + @jakarta.annotation.Nonnull private String sideEffects; public static final String SERIALIZED_NAME_TIMEOUT_SECONDS = "timeoutSeconds"; @SerializedName(SERIALIZED_NAME_TIMEOUT_SECONDS) + @jakarta.annotation.Nullable private Integer timeoutSeconds; public V1MutatingWebhook() { } - public V1MutatingWebhook admissionReviewVersions(List admissionReviewVersions) { + public V1MutatingWebhook admissionReviewVersions(@jakarta.annotation.Nonnull List admissionReviewVersions) { this.admissionReviewVersions = admissionReviewVersions; return this; } @@ -123,62 +134,62 @@ public V1MutatingWebhook addAdmissionReviewVersionsItem(String admissionReviewVe return this; } - /** + /** * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. * @return admissionReviewVersions - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.") public List getAdmissionReviewVersions() { return admissionReviewVersions; } - public void setAdmissionReviewVersions(List admissionReviewVersions) { + public void setAdmissionReviewVersions(@jakarta.annotation.Nonnull List admissionReviewVersions) { this.admissionReviewVersions = admissionReviewVersions; } - public V1MutatingWebhook clientConfig(AdmissionregistrationV1WebhookClientConfig clientConfig) { + public V1MutatingWebhook clientConfig(@jakarta.annotation.Nonnull AdmissionregistrationV1WebhookClientConfig clientConfig) { this.clientConfig = clientConfig; return this; } - /** + /** * Get clientConfig * @return clientConfig - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public AdmissionregistrationV1WebhookClientConfig getClientConfig() { return clientConfig; } - public void setClientConfig(AdmissionregistrationV1WebhookClientConfig clientConfig) { + public void setClientConfig(@jakarta.annotation.Nonnull AdmissionregistrationV1WebhookClientConfig clientConfig) { this.clientConfig = clientConfig; } - public V1MutatingWebhook failurePolicy(String failurePolicy) { + public V1MutatingWebhook failurePolicy(@jakarta.annotation.Nullable String failurePolicy) { this.failurePolicy = failurePolicy; return this; } - /** + /** * FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. * @return failurePolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.") public String getFailurePolicy() { return failurePolicy; } - public void setFailurePolicy(String failurePolicy) { + public void setFailurePolicy(@jakarta.annotation.Nullable String failurePolicy) { this.failurePolicy = failurePolicy; } - public V1MutatingWebhook matchConditions(List matchConditions) { + public V1MutatingWebhook matchConditions(@jakarta.annotation.Nullable List matchConditions) { this.matchConditions = matchConditions; return this; } @@ -191,122 +202,122 @@ public V1MutatingWebhook addMatchConditionsItem(V1MatchCondition matchConditions return this; } - /** + /** * MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped * @return matchConditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped") public List getMatchConditions() { return matchConditions; } - public void setMatchConditions(List matchConditions) { + public void setMatchConditions(@jakarta.annotation.Nullable List matchConditions) { this.matchConditions = matchConditions; } - public V1MutatingWebhook matchPolicy(String matchPolicy) { + public V1MutatingWebhook matchPolicy(@jakarta.annotation.Nullable String matchPolicy) { this.matchPolicy = matchPolicy; return this; } - /** + /** * matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Equivalent\" * @return matchPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Equivalent\"") public String getMatchPolicy() { return matchPolicy; } - public void setMatchPolicy(String matchPolicy) { + public void setMatchPolicy(@jakarta.annotation.Nullable String matchPolicy) { this.matchPolicy = matchPolicy; } - public V1MutatingWebhook name(String name) { + public V1MutatingWebhook name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1MutatingWebhook namespaceSelector(V1LabelSelector namespaceSelector) { + public V1MutatingWebhook namespaceSelector(@jakarta.annotation.Nullable V1LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; return this; } - /** + /** * Get namespaceSelector * @return namespaceSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LabelSelector getNamespaceSelector() { return namespaceSelector; } - public void setNamespaceSelector(V1LabelSelector namespaceSelector) { + public void setNamespaceSelector(@jakarta.annotation.Nullable V1LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; } - public V1MutatingWebhook objectSelector(V1LabelSelector objectSelector) { + public V1MutatingWebhook objectSelector(@jakarta.annotation.Nullable V1LabelSelector objectSelector) { this.objectSelector = objectSelector; return this; } - /** + /** * Get objectSelector * @return objectSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LabelSelector getObjectSelector() { return objectSelector; } - public void setObjectSelector(V1LabelSelector objectSelector) { + public void setObjectSelector(@jakarta.annotation.Nullable V1LabelSelector objectSelector) { this.objectSelector = objectSelector; } - public V1MutatingWebhook reinvocationPolicy(String reinvocationPolicy) { + public V1MutatingWebhook reinvocationPolicy(@jakarta.annotation.Nullable String reinvocationPolicy) { this.reinvocationPolicy = reinvocationPolicy; return this; } - /** + /** * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: the webhook will not be called more than once in a single admission evaluation. IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. Defaults to \"Never\". * @return reinvocationPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: the webhook will not be called more than once in a single admission evaluation. IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. Defaults to \"Never\".") public String getReinvocationPolicy() { return reinvocationPolicy; } - public void setReinvocationPolicy(String reinvocationPolicy) { + public void setReinvocationPolicy(@jakarta.annotation.Nullable String reinvocationPolicy) { this.reinvocationPolicy = reinvocationPolicy; } - public V1MutatingWebhook rules(List rules) { + public V1MutatingWebhook rules(@jakarta.annotation.Nullable List rules) { this.rules = rules; return this; } @@ -319,57 +330,57 @@ public V1MutatingWebhook addRulesItem(V1RuleWithOperations rulesItem) { return this; } - /** + /** * Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. * @return rules - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.") public List getRules() { return rules; } - public void setRules(List rules) { + public void setRules(@jakarta.annotation.Nullable List rules) { this.rules = rules; } - public V1MutatingWebhook sideEffects(String sideEffects) { + public V1MutatingWebhook sideEffects(@jakarta.annotation.Nonnull String sideEffects) { this.sideEffects = sideEffects; return this; } - /** + /** * SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. * @return sideEffects - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.") public String getSideEffects() { return sideEffects; } - public void setSideEffects(String sideEffects) { + public void setSideEffects(@jakarta.annotation.Nonnull String sideEffects) { this.sideEffects = sideEffects; } - public V1MutatingWebhook timeoutSeconds(Integer timeoutSeconds) { + public V1MutatingWebhook timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } - /** + /** * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. * @return timeoutSeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.") public Integer getTimeoutSeconds() { return timeoutSeconds; } - public void setTimeoutSeconds(Integer timeoutSeconds) { + public void setTimeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; } @@ -462,12 +473,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("sideEffects"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1MutatingWebhook - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1MutatingWebhook + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1MutatingWebhook.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -580,22 +591,22 @@ public V1MutatingWebhook read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1MutatingWebhook given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1MutatingWebhook - * @throws IOException if the JSON string is invalid with respect to V1MutatingWebhook - */ + /** + * Create an instance of V1MutatingWebhook given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1MutatingWebhook + * @throws IOException if the JSON string is invalid with respect to V1MutatingWebhook + */ public static V1MutatingWebhook fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1MutatingWebhook.class); } - /** - * Convert an instance of V1MutatingWebhook to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1MutatingWebhook to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfiguration.java index 045e66b8e5..1348b5db54 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfiguration.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,88 +54,92 @@ * MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. */ @ApiModel(description = "MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1MutatingWebhookConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_WEBHOOKS = "webhooks"; @SerializedName(SERIALIZED_NAME_WEBHOOKS) + @jakarta.annotation.Nullable private List webhooks = new ArrayList<>(); public V1MutatingWebhookConfiguration() { } - public V1MutatingWebhookConfiguration apiVersion(String apiVersion) { + public V1MutatingWebhookConfiguration apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1MutatingWebhookConfiguration kind(String kind) { + public V1MutatingWebhookConfiguration kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1MutatingWebhookConfiguration metadata(V1ObjectMeta metadata) { + public V1MutatingWebhookConfiguration metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1MutatingWebhookConfiguration webhooks(List webhooks) { + public V1MutatingWebhookConfiguration webhooks(@jakarta.annotation.Nullable List webhooks) { this.webhooks = webhooks; return this; } @@ -149,17 +152,17 @@ public V1MutatingWebhookConfiguration addWebhooksItem(V1MutatingWebhook webhooks return this; } - /** + /** * Webhooks is a list of webhooks and the affected resources and operations. * @return webhooks - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Webhooks is a list of webhooks and the affected resources and operations.") public List getWebhooks() { return webhooks; } - public void setWebhooks(List webhooks) { + public void setWebhooks(@jakarta.annotation.Nullable List webhooks) { this.webhooks = webhooks; } @@ -224,12 +227,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1MutatingWebhookConfiguration - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1MutatingWebhookConfiguration + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1MutatingWebhookConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -300,22 +303,22 @@ public V1MutatingWebhookConfiguration read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1MutatingWebhookConfiguration given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1MutatingWebhookConfiguration - * @throws IOException if the JSON string is invalid with respect to V1MutatingWebhookConfiguration - */ + /** + * Create an instance of V1MutatingWebhookConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1MutatingWebhookConfiguration + * @throws IOException if the JSON string is invalid with respect to V1MutatingWebhookConfiguration + */ public static V1MutatingWebhookConfiguration fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1MutatingWebhookConfiguration.class); } - /** - * Convert an instance of V1MutatingWebhookConfiguration to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1MutatingWebhookConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationList.java index f0744d5e88..d37a1cf8e0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. */ @ApiModel(description = "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1MutatingWebhookConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1MutatingWebhookConfigurationList() { } - public V1MutatingWebhookConfigurationList apiVersion(String apiVersion) { + public V1MutatingWebhookConfigurationList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1MutatingWebhookConfigurationList items(List items) { + public V1MutatingWebhookConfigurationList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1MutatingWebhookConfigurationList addItemsItem(V1MutatingWebhookConfigur return this; } - /** + /** * List of MutatingWebhookConfiguration. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "List of MutatingWebhookConfiguration.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1MutatingWebhookConfigurationList kind(String kind) { + public V1MutatingWebhookConfigurationList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1MutatingWebhookConfigurationList metadata(V1ListMeta metadata) { + public V1MutatingWebhookConfigurationList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1MutatingWebhookConfigurationList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1MutatingWebhookConfigurationList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1MutatingWebhookConfigurationList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1MutatingWebhookConfigurationList read(JsonReader in) throws IOException } } - /** - * Create an instance of V1MutatingWebhookConfigurationList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1MutatingWebhookConfigurationList - * @throws IOException if the JSON string is invalid with respect to V1MutatingWebhookConfigurationList - */ + /** + * Create an instance of V1MutatingWebhookConfigurationList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1MutatingWebhookConfigurationList + * @throws IOException if the JSON string is invalid with respect to V1MutatingWebhookConfigurationList + */ public static V1MutatingWebhookConfigurationList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1MutatingWebhookConfigurationList.class); } - /** - * Convert an instance of V1MutatingWebhookConfigurationList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1MutatingWebhookConfigurationList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSource.java index 3adb02896c..5cbb2f2f7d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,79 +50,82 @@ * Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NFSVolumeSource { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) + @jakarta.annotation.Nonnull private String path; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_SERVER = "server"; @SerializedName(SERIALIZED_NAME_SERVER) + @jakarta.annotation.Nonnull private String server; public V1NFSVolumeSource() { } - public V1NFSVolumeSource path(String path) { + public V1NFSVolumeSource path(@jakarta.annotation.Nonnull String path) { this.path = path; return this; } - /** + /** * path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs * @return path - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs") public String getPath() { return path; } - public void setPath(String path) { + public void setPath(@jakarta.annotation.Nonnull String path) { this.path = path; } - public V1NFSVolumeSource readOnly(Boolean readOnly) { + public V1NFSVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1NFSVolumeSource server(String server) { + public V1NFSVolumeSource server(@jakarta.annotation.Nonnull String server) { this.server = server; return this; } - /** + /** * server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs * @return server - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs") public String getServer() { return server; } - public void setServer(String server) { + public void setServer(@jakarta.annotation.Nonnull String server) { this.server = server; } @@ -187,12 +189,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("server"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NFSVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NFSVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NFSVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -252,22 +254,22 @@ public V1NFSVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NFSVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NFSVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1NFSVolumeSource - */ + /** + * Create an instance of V1NFSVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NFSVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1NFSVolumeSource + */ public static V1NFSVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NFSVolumeSource.class); } - /** - * Convert an instance of V1NFSVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NFSVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperations.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperations.java index edc8ccec16..1633de152e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperations.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperations.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,36 +52,42 @@ * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. */ @ApiModel(description = "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NamedRuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) + @jakarta.annotation.Nullable private List apiGroups = new ArrayList<>(); public static final String SERIALIZED_NAME_API_VERSIONS = "apiVersions"; @SerializedName(SERIALIZED_NAME_API_VERSIONS) + @jakarta.annotation.Nullable private List apiVersions = new ArrayList<>(); public static final String SERIALIZED_NAME_OPERATIONS = "operations"; @SerializedName(SERIALIZED_NAME_OPERATIONS) + @jakarta.annotation.Nullable private List operations = new ArrayList<>(); public static final String SERIALIZED_NAME_RESOURCE_NAMES = "resourceNames"; @SerializedName(SERIALIZED_NAME_RESOURCE_NAMES) + @jakarta.annotation.Nullable private List resourceNames = new ArrayList<>(); public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) + @jakarta.annotation.Nullable private List resources = new ArrayList<>(); public static final String SERIALIZED_NAME_SCOPE = "scope"; @SerializedName(SERIALIZED_NAME_SCOPE) + @jakarta.annotation.Nullable private String scope; public V1NamedRuleWithOperations() { } - public V1NamedRuleWithOperations apiGroups(List apiGroups) { + public V1NamedRuleWithOperations apiGroups(@jakarta.annotation.Nullable List apiGroups) { this.apiGroups = apiGroups; return this; } @@ -95,22 +100,22 @@ public V1NamedRuleWithOperations addApiGroupsItem(String apiGroupsItem) { return this; } - /** + /** * APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. * @return apiGroups - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.") public List getApiGroups() { return apiGroups; } - public void setApiGroups(List apiGroups) { + public void setApiGroups(@jakarta.annotation.Nullable List apiGroups) { this.apiGroups = apiGroups; } - public V1NamedRuleWithOperations apiVersions(List apiVersions) { + public V1NamedRuleWithOperations apiVersions(@jakarta.annotation.Nullable List apiVersions) { this.apiVersions = apiVersions; return this; } @@ -123,22 +128,22 @@ public V1NamedRuleWithOperations addApiVersionsItem(String apiVersionsItem) { return this; } - /** + /** * APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. * @return apiVersions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.") public List getApiVersions() { return apiVersions; } - public void setApiVersions(List apiVersions) { + public void setApiVersions(@jakarta.annotation.Nullable List apiVersions) { this.apiVersions = apiVersions; } - public V1NamedRuleWithOperations operations(List operations) { + public V1NamedRuleWithOperations operations(@jakarta.annotation.Nullable List operations) { this.operations = operations; return this; } @@ -151,22 +156,22 @@ public V1NamedRuleWithOperations addOperationsItem(String operationsItem) { return this; } - /** + /** * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. * @return operations - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.") public List getOperations() { return operations; } - public void setOperations(List operations) { + public void setOperations(@jakarta.annotation.Nullable List operations) { this.operations = operations; } - public V1NamedRuleWithOperations resourceNames(List resourceNames) { + public V1NamedRuleWithOperations resourceNames(@jakarta.annotation.Nullable List resourceNames) { this.resourceNames = resourceNames; return this; } @@ -179,22 +184,22 @@ public V1NamedRuleWithOperations addResourceNamesItem(String resourceNamesItem) return this; } - /** + /** * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. * @return resourceNames - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.") public List getResourceNames() { return resourceNames; } - public void setResourceNames(List resourceNames) { + public void setResourceNames(@jakarta.annotation.Nullable List resourceNames) { this.resourceNames = resourceNames; } - public V1NamedRuleWithOperations resources(List resources) { + public V1NamedRuleWithOperations resources(@jakarta.annotation.Nullable List resources) { this.resources = resources; return this; } @@ -207,37 +212,37 @@ public V1NamedRuleWithOperations addResourcesItem(String resourcesItem) { return this; } - /** + /** * Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. * @return resources - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.") public List getResources() { return resources; } - public void setResources(List resources) { + public void setResources(@jakarta.annotation.Nullable List resources) { this.resources = resources; } - public V1NamedRuleWithOperations scope(String scope) { + public V1NamedRuleWithOperations scope(@jakarta.annotation.Nullable String scope) { this.scope = scope; return this; } - /** + /** * scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". * @return scope - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".") public String getScope() { return scope; } - public void setScope(String scope) { + public void setScope(@jakarta.annotation.Nullable String scope) { this.scope = scope; } @@ -308,12 +313,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NamedRuleWithOperations - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NamedRuleWithOperations + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NamedRuleWithOperations.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -383,22 +388,22 @@ public V1NamedRuleWithOperations read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NamedRuleWithOperations given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NamedRuleWithOperations - * @throws IOException if the JSON string is invalid with respect to V1NamedRuleWithOperations - */ + /** + * Create an instance of V1NamedRuleWithOperations given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NamedRuleWithOperations + * @throws IOException if the JSON string is invalid with respect to V1NamedRuleWithOperations + */ public static V1NamedRuleWithOperations fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NamedRuleWithOperations.class); } - /** - * Convert an instance of V1NamedRuleWithOperations to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NamedRuleWithOperations to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Namespace.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Namespace.java index 53836447c7..9015083510 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Namespace.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Namespace.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * Namespace provides a scope for Names. Use of multiple namespaces is optional. */ @ApiModel(description = "Namespace provides a scope for Names. Use of multiple namespaces is optional.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Namespace implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1NamespaceSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1NamespaceStatus status; public V1Namespace() { } - public V1Namespace apiVersion(String apiVersion) { + public V1Namespace apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1Namespace kind(String kind) { + public V1Namespace kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1Namespace metadata(V1ObjectMeta metadata) { + public V1Namespace metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1Namespace spec(V1NamespaceSpec spec) { + public V1Namespace spec(@jakarta.annotation.Nullable V1NamespaceSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1NamespaceSpec getSpec() { return spec; } - public void setSpec(V1NamespaceSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1NamespaceSpec spec) { this.spec = spec; } - public V1Namespace status(V1NamespaceStatus status) { + public V1Namespace status(@jakarta.annotation.Nullable V1NamespaceStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1NamespaceStatus getStatus() { return status; } - public void setStatus(V1NamespaceStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1NamespaceStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Namespace - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Namespace + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Namespace.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1Namespace read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Namespace given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Namespace - * @throws IOException if the JSON string is invalid with respect to V1Namespace - */ + /** + * Create an instance of V1Namespace given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Namespace + * @throws IOException if the JSON string is invalid with respect to V1Namespace + */ public static V1Namespace fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Namespace.class); } - /** - * Convert an instance of V1Namespace to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Namespace to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java index b285d1c828..7e386f359b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,127 +51,132 @@ * NamespaceCondition contains details about state of namespace. */ @ApiModel(description = "NamespaceCondition contains details about state of namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NamespaceCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nonnull private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1NamespaceCondition() { } - public V1NamespaceCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { + public V1NamespaceCondition lastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; } - /** + /** * Last time the condition transitioned from one status to another. * @return lastTransitionTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { + public void setLastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } - public V1NamespaceCondition message(String message) { + public V1NamespaceCondition message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * Human-readable message indicating details about last transition. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Human-readable message indicating details about last transition.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1NamespaceCondition reason(String reason) { + public V1NamespaceCondition reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * Unique, one-word, CamelCase reason for the condition's last transition. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Unique, one-word, CamelCase reason for the condition's last transition.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } - public V1NamespaceCondition status(String status) { + public V1NamespaceCondition status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } - /** + /** * Status of the condition, one of True, False, Unknown. * @return status - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public V1NamespaceCondition type(String type) { + public V1NamespaceCondition type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * Type of namespace controller condition. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Type of namespace controller condition.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NamespaceCondition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NamespaceCondition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NamespaceCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -313,22 +317,22 @@ public V1NamespaceCondition read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NamespaceCondition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NamespaceCondition - * @throws IOException if the JSON string is invalid with respect to V1NamespaceCondition - */ + /** + * Create an instance of V1NamespaceCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NamespaceCondition + * @throws IOException if the JSON string is invalid with respect to V1NamespaceCondition + */ public static V1NamespaceCondition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NamespaceCondition.class); } - /** - * Convert an instance of V1NamespaceCondition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NamespaceCondition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java index 4304c5c965..13bf74e9f6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * NamespaceList is a list of Namespaces. */ @ApiModel(description = "NamespaceList is a list of Namespaces.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NamespaceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1NamespaceList() { } - public V1NamespaceList apiVersion(String apiVersion) { + public V1NamespaceList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1NamespaceList items(List items) { + public V1NamespaceList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1NamespaceList addItemsItem(V1Namespace itemsItem) { return this; } - /** + /** * Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1NamespaceList kind(String kind) { + public V1NamespaceList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1NamespaceList metadata(V1ListMeta metadata) { + public V1NamespaceList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NamespaceList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NamespaceList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NamespaceList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1NamespaceList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NamespaceList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NamespaceList - * @throws IOException if the JSON string is invalid with respect to V1NamespaceList - */ + /** + * Create an instance of V1NamespaceList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NamespaceList + * @throws IOException if the JSON string is invalid with respect to V1NamespaceList + */ public static V1NamespaceList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NamespaceList.class); } - /** - * Convert an instance of V1NamespaceList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NamespaceList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java index 331761a131..c6525d6e15 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,16 +52,17 @@ * NamespaceSpec describes the attributes on a Namespace. */ @ApiModel(description = "NamespaceSpec describes the attributes on a Namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NamespaceSpec { public static final String SERIALIZED_NAME_FINALIZERS = "finalizers"; @SerializedName(SERIALIZED_NAME_FINALIZERS) + @jakarta.annotation.Nullable private List finalizers = new ArrayList<>(); public V1NamespaceSpec() { } - public V1NamespaceSpec finalizers(List finalizers) { + public V1NamespaceSpec finalizers(@jakarta.annotation.Nullable List finalizers) { this.finalizers = finalizers; return this; } @@ -75,17 +75,17 @@ public V1NamespaceSpec addFinalizersItem(String finalizersItem) { return this; } - /** + /** * Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ * @return finalizers - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/") public List getFinalizers() { return finalizers; } - public void setFinalizers(List finalizers) { + public void setFinalizers(@jakarta.annotation.Nullable List finalizers) { this.finalizers = finalizers; } @@ -141,12 +141,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NamespaceSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NamespaceSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NamespaceSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -197,22 +197,22 @@ public V1NamespaceSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NamespaceSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NamespaceSpec - * @throws IOException if the JSON string is invalid with respect to V1NamespaceSpec - */ + /** + * Create an instance of V1NamespaceSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NamespaceSpec + * @throws IOException if the JSON string is invalid with respect to V1NamespaceSpec + */ public static V1NamespaceSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NamespaceSpec.class); } - /** - * Convert an instance of V1NamespaceSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NamespaceSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java index e891ddc42c..96063ad1d7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,20 +53,22 @@ * NamespaceStatus is information about the current status of a Namespace. */ @ApiModel(description = "NamespaceStatus is information about the current status of a Namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NamespaceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); public static final String SERIALIZED_NAME_PHASE = "phase"; @SerializedName(SERIALIZED_NAME_PHASE) + @jakarta.annotation.Nullable private String phase; public V1NamespaceStatus() { } - public V1NamespaceStatus conditions(List conditions) { + public V1NamespaceStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } @@ -80,37 +81,37 @@ public V1NamespaceStatus addConditionsItem(V1NamespaceCondition conditionsItem) return this; } - /** + /** * Represents the latest available observations of a namespace's current state. * @return conditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Represents the latest available observations of a namespace's current state.") public List getConditions() { return conditions; } - public void setConditions(List conditions) { + public void setConditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; } - public V1NamespaceStatus phase(String phase) { + public V1NamespaceStatus phase(@jakarta.annotation.Nullable String phase) { this.phase = phase; return this; } - /** + /** * Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ * @return phase - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/") public String getPhase() { return phase; } - public void setPhase(String phase) { + public void setPhase(@jakarta.annotation.Nullable String phase) { this.phase = phase; } @@ -169,12 +170,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NamespaceStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NamespaceStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NamespaceStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -238,22 +239,22 @@ public V1NamespaceStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NamespaceStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NamespaceStatus - * @throws IOException if the JSON string is invalid with respect to V1NamespaceStatus - */ + /** + * Create an instance of V1NamespaceStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NamespaceStatus + * @throws IOException if the JSON string is invalid with respect to V1NamespaceStatus + */ public static V1NamespaceStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NamespaceStatus.class); } - /** - * Convert an instance of V1NamespaceStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NamespaceStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java index 651a9b54be..14fb8dd9a4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,103 +52,107 @@ * NetworkPolicy describes what network traffic is allowed for a set of Pods */ @ApiModel(description = "NetworkPolicy describes what network traffic is allowed for a set of Pods") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NetworkPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1NetworkPolicySpec spec; public V1NetworkPolicy() { } - public V1NetworkPolicy apiVersion(String apiVersion) { + public V1NetworkPolicy apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1NetworkPolicy kind(String kind) { + public V1NetworkPolicy kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1NetworkPolicy metadata(V1ObjectMeta metadata) { + public V1NetworkPolicy metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1NetworkPolicy spec(V1NetworkPolicySpec spec) { + public V1NetworkPolicy spec(@jakarta.annotation.Nullable V1NetworkPolicySpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1NetworkPolicySpec getSpec() { return spec; } - public void setSpec(V1NetworkPolicySpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1NetworkPolicySpec spec) { this.spec = spec; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NetworkPolicy - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NetworkPolicy + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NetworkPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -280,22 +283,22 @@ public V1NetworkPolicy read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NetworkPolicy given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NetworkPolicy - * @throws IOException if the JSON string is invalid with respect to V1NetworkPolicy - */ + /** + * Create an instance of V1NetworkPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NetworkPolicy + * @throws IOException if the JSON string is invalid with respect to V1NetworkPolicy + */ public static V1NetworkPolicy fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NetworkPolicy.class); } - /** - * Convert an instance of V1NetworkPolicy to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NetworkPolicy to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java index 0c3660e249..83708f2149 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,20 +54,22 @@ * NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8 */ @ApiModel(description = "NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NetworkPolicyEgressRule { public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) + @jakarta.annotation.Nullable private List ports = new ArrayList<>(); public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @jakarta.annotation.Nullable private List to = new ArrayList<>(); public V1NetworkPolicyEgressRule() { } - public V1NetworkPolicyEgressRule ports(List ports) { + public V1NetworkPolicyEgressRule ports(@jakarta.annotation.Nullable List ports) { this.ports = ports; return this; } @@ -81,22 +82,22 @@ public V1NetworkPolicyEgressRule addPortsItem(V1NetworkPolicyPort portsItem) { return this; } - /** + /** * ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. * @return ports - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.") public List getPorts() { return ports; } - public void setPorts(List ports) { + public void setPorts(@jakarta.annotation.Nullable List ports) { this.ports = ports; } - public V1NetworkPolicyEgressRule to(List to) { + public V1NetworkPolicyEgressRule to(@jakarta.annotation.Nullable List to) { this.to = to; return this; } @@ -109,17 +110,17 @@ public V1NetworkPolicyEgressRule addToItem(V1NetworkPolicyPeer toItem) { return this; } - /** + /** * to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. * @return to - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.") public List getTo() { return to; } - public void setTo(List to) { + public void setTo(@jakarta.annotation.Nullable List to) { this.to = to; } @@ -178,12 +179,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NetworkPolicyEgressRule - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NetworkPolicyEgressRule + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NetworkPolicyEgressRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -258,22 +259,22 @@ public V1NetworkPolicyEgressRule read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NetworkPolicyEgressRule given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NetworkPolicyEgressRule - * @throws IOException if the JSON string is invalid with respect to V1NetworkPolicyEgressRule - */ + /** + * Create an instance of V1NetworkPolicyEgressRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NetworkPolicyEgressRule + * @throws IOException if the JSON string is invalid with respect to V1NetworkPolicyEgressRule + */ public static V1NetworkPolicyEgressRule fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NetworkPolicyEgressRule.class); } - /** - * Convert an instance of V1NetworkPolicyEgressRule to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NetworkPolicyEgressRule to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java index 8ee78dddca..e5da37bac7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,20 +54,22 @@ * NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from. */ @ApiModel(description = "NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NetworkPolicyIngressRule { public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @jakarta.annotation.Nullable private List from = new ArrayList<>(); public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) + @jakarta.annotation.Nullable private List ports = new ArrayList<>(); public V1NetworkPolicyIngressRule() { } - public V1NetworkPolicyIngressRule from(List from) { + public V1NetworkPolicyIngressRule from(@jakarta.annotation.Nullable List from) { this.from = from; return this; } @@ -81,22 +82,22 @@ public V1NetworkPolicyIngressRule addFromItem(V1NetworkPolicyPeer fromItem) { return this; } - /** + /** * from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. * @return from - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list.") public List getFrom() { return from; } - public void setFrom(List from) { + public void setFrom(@jakarta.annotation.Nullable List from) { this.from = from; } - public V1NetworkPolicyIngressRule ports(List ports) { + public V1NetworkPolicyIngressRule ports(@jakarta.annotation.Nullable List ports) { this.ports = ports; return this; } @@ -109,17 +110,17 @@ public V1NetworkPolicyIngressRule addPortsItem(V1NetworkPolicyPort portsItem) { return this; } - /** + /** * ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. * @return ports - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.") public List getPorts() { return ports; } - public void setPorts(List ports) { + public void setPorts(@jakarta.annotation.Nullable List ports) { this.ports = ports; } @@ -178,12 +179,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NetworkPolicyIngressRule - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NetworkPolicyIngressRule + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NetworkPolicyIngressRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -258,22 +259,22 @@ public V1NetworkPolicyIngressRule read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NetworkPolicyIngressRule given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NetworkPolicyIngressRule - * @throws IOException if the JSON string is invalid with respect to V1NetworkPolicyIngressRule - */ + /** + * Create an instance of V1NetworkPolicyIngressRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NetworkPolicyIngressRule + * @throws IOException if the JSON string is invalid with respect to V1NetworkPolicyIngressRule + */ public static V1NetworkPolicyIngressRule fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NetworkPolicyIngressRule.class); } - /** - * Convert an instance of V1NetworkPolicyIngressRule to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NetworkPolicyIngressRule to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyList.java index ff0644e460..1edd3b76ad 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * NetworkPolicyList is a list of NetworkPolicy objects. */ @ApiModel(description = "NetworkPolicyList is a list of NetworkPolicy objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NetworkPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1NetworkPolicyList() { } - public V1NetworkPolicyList apiVersion(String apiVersion) { + public V1NetworkPolicyList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1NetworkPolicyList items(List items) { + public V1NetworkPolicyList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1NetworkPolicyList addItemsItem(V1NetworkPolicy itemsItem) { return this; } - /** + /** * items is a list of schema objects. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is a list of schema objects.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1NetworkPolicyList kind(String kind) { + public V1NetworkPolicyList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1NetworkPolicyList metadata(V1ListMeta metadata) { + public V1NetworkPolicyList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NetworkPolicyList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NetworkPolicyList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NetworkPolicyList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1NetworkPolicyList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NetworkPolicyList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NetworkPolicyList - * @throws IOException if the JSON string is invalid with respect to V1NetworkPolicyList - */ + /** + * Create an instance of V1NetworkPolicyList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NetworkPolicyList + * @throws IOException if the JSON string is invalid with respect to V1NetworkPolicyList + */ public static V1NetworkPolicyList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NetworkPolicyList.class); } - /** - * Convert an instance of V1NetworkPolicyList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NetworkPolicyList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeer.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeer.java index 7966f82ebe..a7e913e593 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeer.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeer.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,79 +52,82 @@ * NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed */ @ApiModel(description = "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NetworkPolicyPeer { public static final String SERIALIZED_NAME_IP_BLOCK = "ipBlock"; @SerializedName(SERIALIZED_NAME_IP_BLOCK) + @jakarta.annotation.Nullable private V1IPBlock ipBlock; public static final String SERIALIZED_NAME_NAMESPACE_SELECTOR = "namespaceSelector"; @SerializedName(SERIALIZED_NAME_NAMESPACE_SELECTOR) + @jakarta.annotation.Nullable private V1LabelSelector namespaceSelector; public static final String SERIALIZED_NAME_POD_SELECTOR = "podSelector"; @SerializedName(SERIALIZED_NAME_POD_SELECTOR) + @jakarta.annotation.Nullable private V1LabelSelector podSelector; public V1NetworkPolicyPeer() { } - public V1NetworkPolicyPeer ipBlock(V1IPBlock ipBlock) { + public V1NetworkPolicyPeer ipBlock(@jakarta.annotation.Nullable V1IPBlock ipBlock) { this.ipBlock = ipBlock; return this; } - /** + /** * Get ipBlock * @return ipBlock - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1IPBlock getIpBlock() { return ipBlock; } - public void setIpBlock(V1IPBlock ipBlock) { + public void setIpBlock(@jakarta.annotation.Nullable V1IPBlock ipBlock) { this.ipBlock = ipBlock; } - public V1NetworkPolicyPeer namespaceSelector(V1LabelSelector namespaceSelector) { + public V1NetworkPolicyPeer namespaceSelector(@jakarta.annotation.Nullable V1LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; return this; } - /** + /** * Get namespaceSelector * @return namespaceSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LabelSelector getNamespaceSelector() { return namespaceSelector; } - public void setNamespaceSelector(V1LabelSelector namespaceSelector) { + public void setNamespaceSelector(@jakarta.annotation.Nullable V1LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; } - public V1NetworkPolicyPeer podSelector(V1LabelSelector podSelector) { + public V1NetworkPolicyPeer podSelector(@jakarta.annotation.Nullable V1LabelSelector podSelector) { this.podSelector = podSelector; return this; } - /** + /** * Get podSelector * @return podSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LabelSelector getPodSelector() { return podSelector; } - public void setPodSelector(V1LabelSelector podSelector) { + public void setPodSelector(@jakarta.annotation.Nullable V1LabelSelector podSelector) { this.podSelector = podSelector; } @@ -187,12 +189,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NetworkPolicyPeer - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NetworkPolicyPeer + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NetworkPolicyPeer.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -251,22 +253,22 @@ public V1NetworkPolicyPeer read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NetworkPolicyPeer given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NetworkPolicyPeer - * @throws IOException if the JSON string is invalid with respect to V1NetworkPolicyPeer - */ + /** + * Create an instance of V1NetworkPolicyPeer given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NetworkPolicyPeer + * @throws IOException if the JSON string is invalid with respect to V1NetworkPolicyPeer + */ public static V1NetworkPolicyPeer fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NetworkPolicyPeer.class); } - /** - * Convert an instance of V1NetworkPolicyPeer to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NetworkPolicyPeer to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPort.java index 3f6f4b617d..214c07590a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPort.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,79 +51,82 @@ * NetworkPolicyPort describes a port to allow traffic on */ @ApiModel(description = "NetworkPolicyPort describes a port to allow traffic on") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NetworkPolicyPort { public static final String SERIALIZED_NAME_END_PORT = "endPort"; @SerializedName(SERIALIZED_NAME_END_PORT) + @jakarta.annotation.Nullable private Integer endPort; public static final String SERIALIZED_NAME_PORT = "port"; @SerializedName(SERIALIZED_NAME_PORT) + @jakarta.annotation.Nullable private IntOrString port; public static final String SERIALIZED_NAME_PROTOCOL = "protocol"; @SerializedName(SERIALIZED_NAME_PROTOCOL) + @jakarta.annotation.Nullable private String protocol; public V1NetworkPolicyPort() { } - public V1NetworkPolicyPort endPort(Integer endPort) { + public V1NetworkPolicyPort endPort(@jakarta.annotation.Nullable Integer endPort) { this.endPort = endPort; return this; } - /** + /** * endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. * @return endPort - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.") public Integer getEndPort() { return endPort; } - public void setEndPort(Integer endPort) { + public void setEndPort(@jakarta.annotation.Nullable Integer endPort) { this.endPort = endPort; } - public V1NetworkPolicyPort port(IntOrString port) { + public V1NetworkPolicyPort port(@jakarta.annotation.Nullable IntOrString port) { this.port = port; return this; } - /** + /** * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return port - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") public IntOrString getPort() { return port; } - public void setPort(IntOrString port) { + public void setPort(@jakarta.annotation.Nullable IntOrString port) { this.port = port; } - public V1NetworkPolicyPort protocol(String protocol) { + public V1NetworkPolicyPort protocol(@jakarta.annotation.Nullable String protocol) { this.protocol = protocol; return this; } - /** + /** * protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. * @return protocol - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.") public String getProtocol() { return protocol; } - public void setProtocol(String protocol) { + public void setProtocol(@jakarta.annotation.Nullable String protocol) { this.protocol = protocol; } @@ -186,12 +188,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NetworkPolicyPort - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NetworkPolicyPort + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NetworkPolicyPort.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -244,22 +246,22 @@ public V1NetworkPolicyPort read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NetworkPolicyPort given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NetworkPolicyPort - * @throws IOException if the JSON string is invalid with respect to V1NetworkPolicyPort - */ + /** + * Create an instance of V1NetworkPolicyPort given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NetworkPolicyPort + * @throws IOException if the JSON string is invalid with respect to V1NetworkPolicyPort + */ public static V1NetworkPolicyPort fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NetworkPolicyPort.class); } - /** - * Convert an instance of V1NetworkPolicyPort to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NetworkPolicyPort to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java index f5ccf06fcd..4944be1d80 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java @@ -43,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -56,28 +55,32 @@ * NetworkPolicySpec provides the specification of a NetworkPolicy */ @ApiModel(description = "NetworkPolicySpec provides the specification of a NetworkPolicy") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NetworkPolicySpec { public static final String SERIALIZED_NAME_EGRESS = "egress"; @SerializedName(SERIALIZED_NAME_EGRESS) + @jakarta.annotation.Nullable private List egress = new ArrayList<>(); public static final String SERIALIZED_NAME_INGRESS = "ingress"; @SerializedName(SERIALIZED_NAME_INGRESS) + @jakarta.annotation.Nullable private List ingress = new ArrayList<>(); public static final String SERIALIZED_NAME_POD_SELECTOR = "podSelector"; @SerializedName(SERIALIZED_NAME_POD_SELECTOR) + @jakarta.annotation.Nonnull private V1LabelSelector podSelector; public static final String SERIALIZED_NAME_POLICY_TYPES = "policyTypes"; @SerializedName(SERIALIZED_NAME_POLICY_TYPES) + @jakarta.annotation.Nullable private List policyTypes = new ArrayList<>(); public V1NetworkPolicySpec() { } - public V1NetworkPolicySpec egress(List egress) { + public V1NetworkPolicySpec egress(@jakarta.annotation.Nullable List egress) { this.egress = egress; return this; } @@ -90,22 +93,22 @@ public V1NetworkPolicySpec addEgressItem(V1NetworkPolicyEgressRule egressItem) { return this; } - /** + /** * egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 * @return egress - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8") public List getEgress() { return egress; } - public void setEgress(List egress) { + public void setEgress(@jakarta.annotation.Nullable List egress) { this.egress = egress; } - public V1NetworkPolicySpec ingress(List ingress) { + public V1NetworkPolicySpec ingress(@jakarta.annotation.Nullable List ingress) { this.ingress = ingress; return this; } @@ -118,42 +121,42 @@ public V1NetworkPolicySpec addIngressItem(V1NetworkPolicyIngressRule ingressItem return this; } - /** + /** * ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) * @return ingress - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default)") public List getIngress() { return ingress; } - public void setIngress(List ingress) { + public void setIngress(@jakarta.annotation.Nullable List ingress) { this.ingress = ingress; } - public V1NetworkPolicySpec podSelector(V1LabelSelector podSelector) { + public V1NetworkPolicySpec podSelector(@jakarta.annotation.Nonnull V1LabelSelector podSelector) { this.podSelector = podSelector; return this; } - /** + /** * Get podSelector * @return podSelector - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1LabelSelector getPodSelector() { return podSelector; } - public void setPodSelector(V1LabelSelector podSelector) { + public void setPodSelector(@jakarta.annotation.Nonnull V1LabelSelector podSelector) { this.podSelector = podSelector; } - public V1NetworkPolicySpec policyTypes(List policyTypes) { + public V1NetworkPolicySpec policyTypes(@jakarta.annotation.Nullable List policyTypes) { this.policyTypes = policyTypes; return this; } @@ -166,17 +169,17 @@ public V1NetworkPolicySpec addPolicyTypesItem(String policyTypesItem) { return this; } - /** + /** * policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are [\"Ingress\"], [\"Egress\"], or [\"Ingress\", \"Egress\"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8 * @return policyTypes - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are [\"Ingress\"], [\"Egress\"], or [\"Ingress\", \"Egress\"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8") public List getPolicyTypes() { return policyTypes; } - public void setPolicyTypes(List policyTypes) { + public void setPolicyTypes(@jakarta.annotation.Nullable List policyTypes) { this.policyTypes = policyTypes; } @@ -242,12 +245,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("podSelector"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NetworkPolicySpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NetworkPolicySpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NetworkPolicySpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -335,22 +338,22 @@ public V1NetworkPolicySpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NetworkPolicySpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NetworkPolicySpec - * @throws IOException if the JSON string is invalid with respect to V1NetworkPolicySpec - */ + /** + * Create an instance of V1NetworkPolicySpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NetworkPolicySpec + * @throws IOException if the JSON string is invalid with respect to V1NetworkPolicySpec + */ public static V1NetworkPolicySpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NetworkPolicySpec.class); } - /** - * Convert an instance of V1NetworkPolicySpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NetworkPolicySpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Node.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Node.java index 15a6c6e829..225b47650f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Node.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Node.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). */ @ApiModel(description = "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Node implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1NodeSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1NodeStatus status; public V1Node() { } - public V1Node apiVersion(String apiVersion) { + public V1Node apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1Node kind(String kind) { + public V1Node kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1Node metadata(V1ObjectMeta metadata) { + public V1Node metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1Node spec(V1NodeSpec spec) { + public V1Node spec(@jakarta.annotation.Nullable V1NodeSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1NodeSpec getSpec() { return spec; } - public void setSpec(V1NodeSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1NodeSpec spec) { this.spec = spec; } - public V1Node status(V1NodeStatus status) { + public V1Node status(@jakarta.annotation.Nullable V1NodeStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1NodeStatus getStatus() { return status; } - public void setStatus(V1NodeStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1NodeStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Node - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Node + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Node.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1Node read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Node given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Node - * @throws IOException if the JSON string is invalid with respect to V1Node - */ + /** + * Create an instance of V1Node given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Node + * @throws IOException if the JSON string is invalid with respect to V1Node + */ public static V1Node fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Node.class); } - /** - * Convert an instance of V1Node to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Node to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java index 9465fa8325..d27650d967 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * NodeAddress contains information for the node's address. */ @ApiModel(description = "NodeAddress contains information for the node's address.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeAddress { public static final String SERIALIZED_NAME_ADDRESS = "address"; @SerializedName(SERIALIZED_NAME_ADDRESS) + @jakarta.annotation.Nonnull private String address; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1NodeAddress() { } - public V1NodeAddress address(String address) { + public V1NodeAddress address(@jakarta.annotation.Nonnull String address) { this.address = address; return this; } - /** + /** * The node address. * @return address - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The node address.") public String getAddress() { return address; } - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nonnull String address) { this.address = address; } - public V1NodeAddress type(String type) { + public V1NodeAddress type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * Node address type, one of Hostname, ExternalIP or InternalIP. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Node address type, one of Hostname, ExternalIP or InternalIP.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NodeAddress - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodeAddress + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeAddress.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -225,22 +226,22 @@ public V1NodeAddress read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NodeAddress given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NodeAddress - * @throws IOException if the JSON string is invalid with respect to V1NodeAddress - */ + /** + * Create an instance of V1NodeAddress given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeAddress + * @throws IOException if the JSON string is invalid with respect to V1NodeAddress + */ public static V1NodeAddress fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NodeAddress.class); } - /** - * Convert an instance of V1NodeAddress to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NodeAddress to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java index 23c87cdbfe..f3fa8957f0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,20 +54,22 @@ * Node affinity is a group of node affinity scheduling rules. */ @ApiModel(description = "Node affinity is a group of node affinity scheduling rules.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) + @jakarta.annotation.Nullable private List preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); public static final String SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "requiredDuringSchedulingIgnoredDuringExecution"; @SerializedName(SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) + @jakarta.annotation.Nullable private V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution; public V1NodeAffinity() { } - public V1NodeAffinity preferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + public V1NodeAffinity preferredDuringSchedulingIgnoredDuringExecution(@jakarta.annotation.Nullable List preferredDuringSchedulingIgnoredDuringExecution) { this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; return this; } @@ -81,37 +82,37 @@ public V1NodeAffinity addPreferredDuringSchedulingIgnoredDuringExecutionItem(V1P return this; } - /** + /** * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. * @return preferredDuringSchedulingIgnoredDuringExecution - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.") public List getPreferredDuringSchedulingIgnoredDuringExecution() { return preferredDuringSchedulingIgnoredDuringExecution; } - public void setPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + public void setPreferredDuringSchedulingIgnoredDuringExecution(@jakarta.annotation.Nullable List preferredDuringSchedulingIgnoredDuringExecution) { this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; } - public V1NodeAffinity requiredDuringSchedulingIgnoredDuringExecution(V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution) { + public V1NodeAffinity requiredDuringSchedulingIgnoredDuringExecution(@jakarta.annotation.Nullable V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution) { this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; return this; } - /** + /** * Get requiredDuringSchedulingIgnoredDuringExecution * @return requiredDuringSchedulingIgnoredDuringExecution - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1NodeSelector getRequiredDuringSchedulingIgnoredDuringExecution() { return requiredDuringSchedulingIgnoredDuringExecution; } - public void setRequiredDuringSchedulingIgnoredDuringExecution(V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution) { + public void setRequiredDuringSchedulingIgnoredDuringExecution(@jakarta.annotation.Nullable V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution) { this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; } @@ -170,12 +171,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NodeAffinity - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodeAffinity + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeAffinity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -240,22 +241,22 @@ public V1NodeAffinity read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NodeAffinity given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NodeAffinity - * @throws IOException if the JSON string is invalid with respect to V1NodeAffinity - */ + /** + * Create an instance of V1NodeAffinity given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeAffinity + * @throws IOException if the JSON string is invalid with respect to V1NodeAffinity + */ public static V1NodeAffinity fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NodeAffinity.class); } - /** - * Convert an instance of V1NodeAffinity to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NodeAffinity to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java index b1b1238454..2c25e5b474 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,151 +51,157 @@ * NodeCondition contains condition information for a node. */ @ApiModel(description = "NodeCondition contains condition information for a node.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeCondition { public static final String SERIALIZED_NAME_LAST_HEARTBEAT_TIME = "lastHeartbeatTime"; @SerializedName(SERIALIZED_NAME_LAST_HEARTBEAT_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastHeartbeatTime; public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nonnull private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1NodeCondition() { } - public V1NodeCondition lastHeartbeatTime(OffsetDateTime lastHeartbeatTime) { + public V1NodeCondition lastHeartbeatTime(@jakarta.annotation.Nullable OffsetDateTime lastHeartbeatTime) { this.lastHeartbeatTime = lastHeartbeatTime; return this; } - /** + /** * Last time we got an update on a given condition. * @return lastHeartbeatTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Last time we got an update on a given condition.") public OffsetDateTime getLastHeartbeatTime() { return lastHeartbeatTime; } - public void setLastHeartbeatTime(OffsetDateTime lastHeartbeatTime) { + public void setLastHeartbeatTime(@jakarta.annotation.Nullable OffsetDateTime lastHeartbeatTime) { this.lastHeartbeatTime = lastHeartbeatTime; } - public V1NodeCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { + public V1NodeCondition lastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; } - /** + /** * Last time the condition transit from one status to another. * @return lastTransitionTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Last time the condition transit from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { + public void setLastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } - public V1NodeCondition message(String message) { + public V1NodeCondition message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * Human readable message indicating details about last transition. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Human readable message indicating details about last transition.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1NodeCondition reason(String reason) { + public V1NodeCondition reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * (brief) reason for the condition's last transition. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "(brief) reason for the condition's last transition.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } - public V1NodeCondition status(String status) { + public V1NodeCondition status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } - /** + /** * Status of the condition, one of True, False, Unknown. * @return status - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public V1NodeCondition type(String type) { + public V1NodeCondition type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * Type of node condition. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Type of node condition.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -269,12 +274,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NodeCondition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodeCondition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -340,22 +345,22 @@ public V1NodeCondition read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NodeCondition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NodeCondition - * @throws IOException if the JSON string is invalid with respect to V1NodeCondition - */ + /** + * Create an instance of V1NodeCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeCondition + * @throws IOException if the JSON string is invalid with respect to V1NodeCondition + */ public static V1NodeCondition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NodeCondition.class); } - /** - * Convert an instance of V1NodeCondition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NodeCondition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java index 739fc6a980..f1062a8e5e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,31 +51,32 @@ * NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22 */ @ApiModel(description = "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeConfigSource { public static final String SERIALIZED_NAME_CONFIG_MAP = "configMap"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP) + @jakarta.annotation.Nullable private V1ConfigMapNodeConfigSource configMap; public V1NodeConfigSource() { } - public V1NodeConfigSource configMap(V1ConfigMapNodeConfigSource configMap) { + public V1NodeConfigSource configMap(@jakarta.annotation.Nullable V1ConfigMapNodeConfigSource configMap) { this.configMap = configMap; return this; } - /** + /** * Get configMap * @return configMap - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ConfigMapNodeConfigSource getConfigMap() { return configMap; } - public void setConfigMap(V1ConfigMapNodeConfigSource configMap) { + public void setConfigMap(@jakarta.annotation.Nullable V1ConfigMapNodeConfigSource configMap) { this.configMap = configMap; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NodeConfigSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodeConfigSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeConfigSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -188,22 +188,22 @@ public V1NodeConfigSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NodeConfigSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NodeConfigSource - * @throws IOException if the JSON string is invalid with respect to V1NodeConfigSource - */ + /** + * Create an instance of V1NodeConfigSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeConfigSource + * @throws IOException if the JSON string is invalid with respect to V1NodeConfigSource + */ public static V1NodeConfigSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NodeConfigSource.class); } - /** - * Convert an instance of V1NodeConfigSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NodeConfigSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java index e930f76e7c..669973297a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,103 +51,107 @@ * NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource. */ @ApiModel(description = "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeConfigStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) + @jakarta.annotation.Nullable private V1NodeConfigSource active; public static final String SERIALIZED_NAME_ASSIGNED = "assigned"; @SerializedName(SERIALIZED_NAME_ASSIGNED) + @jakarta.annotation.Nullable private V1NodeConfigSource assigned; public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) + @jakarta.annotation.Nullable private String error; public static final String SERIALIZED_NAME_LAST_KNOWN_GOOD = "lastKnownGood"; @SerializedName(SERIALIZED_NAME_LAST_KNOWN_GOOD) + @jakarta.annotation.Nullable private V1NodeConfigSource lastKnownGood; public V1NodeConfigStatus() { } - public V1NodeConfigStatus active(V1NodeConfigSource active) { + public V1NodeConfigStatus active(@jakarta.annotation.Nullable V1NodeConfigSource active) { this.active = active; return this; } - /** + /** * Get active * @return active - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1NodeConfigSource getActive() { return active; } - public void setActive(V1NodeConfigSource active) { + public void setActive(@jakarta.annotation.Nullable V1NodeConfigSource active) { this.active = active; } - public V1NodeConfigStatus assigned(V1NodeConfigSource assigned) { + public V1NodeConfigStatus assigned(@jakarta.annotation.Nullable V1NodeConfigSource assigned) { this.assigned = assigned; return this; } - /** + /** * Get assigned * @return assigned - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1NodeConfigSource getAssigned() { return assigned; } - public void setAssigned(V1NodeConfigSource assigned) { + public void setAssigned(@jakarta.annotation.Nullable V1NodeConfigSource assigned) { this.assigned = assigned; } - public V1NodeConfigStatus error(String error) { + public V1NodeConfigStatus error(@jakarta.annotation.Nullable String error) { this.error = error; return this; } - /** + /** * Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions. * @return error - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions.") public String getError() { return error; } - public void setError(String error) { + public void setError(@jakarta.annotation.Nullable String error) { this.error = error; } - public V1NodeConfigStatus lastKnownGood(V1NodeConfigSource lastKnownGood) { + public V1NodeConfigStatus lastKnownGood(@jakarta.annotation.Nullable V1NodeConfigSource lastKnownGood) { this.lastKnownGood = lastKnownGood; return this; } - /** + /** * Get lastKnownGood * @return lastKnownGood - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1NodeConfigSource getLastKnownGood() { return lastKnownGood; } - public void setLastKnownGood(V1NodeConfigSource lastKnownGood) { + public void setLastKnownGood(@jakarta.annotation.Nullable V1NodeConfigSource lastKnownGood) { this.lastKnownGood = lastKnownGood; } @@ -213,12 +216,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NodeConfigStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodeConfigStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeConfigStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -280,22 +283,22 @@ public V1NodeConfigStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NodeConfigStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NodeConfigStatus - * @throws IOException if the JSON string is invalid with respect to V1NodeConfigStatus - */ + /** + * Create an instance of V1NodeConfigStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeConfigStatus + * @throws IOException if the JSON string is invalid with respect to V1NodeConfigStatus + */ public static V1NodeConfigStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NodeConfigStatus.class); } - /** - * Convert an instance of V1NodeConfigStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NodeConfigStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java index 8f953a74fb..5495fcd25c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,31 +51,32 @@ * NodeDaemonEndpoints lists ports opened by daemons running on the Node. */ @ApiModel(description = "NodeDaemonEndpoints lists ports opened by daemons running on the Node.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeDaemonEndpoints { public static final String SERIALIZED_NAME_KUBELET_ENDPOINT = "kubeletEndpoint"; @SerializedName(SERIALIZED_NAME_KUBELET_ENDPOINT) + @jakarta.annotation.Nullable private V1DaemonEndpoint kubeletEndpoint; public V1NodeDaemonEndpoints() { } - public V1NodeDaemonEndpoints kubeletEndpoint(V1DaemonEndpoint kubeletEndpoint) { + public V1NodeDaemonEndpoints kubeletEndpoint(@jakarta.annotation.Nullable V1DaemonEndpoint kubeletEndpoint) { this.kubeletEndpoint = kubeletEndpoint; return this; } - /** + /** * Get kubeletEndpoint * @return kubeletEndpoint - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1DaemonEndpoint getKubeletEndpoint() { return kubeletEndpoint; } - public void setKubeletEndpoint(V1DaemonEndpoint kubeletEndpoint) { + public void setKubeletEndpoint(@jakarta.annotation.Nullable V1DaemonEndpoint kubeletEndpoint) { this.kubeletEndpoint = kubeletEndpoint; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NodeDaemonEndpoints - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodeDaemonEndpoints + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeDaemonEndpoints.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -188,22 +188,22 @@ public V1NodeDaemonEndpoints read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NodeDaemonEndpoints given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NodeDaemonEndpoints - * @throws IOException if the JSON string is invalid with respect to V1NodeDaemonEndpoints - */ + /** + * Create an instance of V1NodeDaemonEndpoints given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeDaemonEndpoints + * @throws IOException if the JSON string is invalid with respect to V1NodeDaemonEndpoints + */ public static V1NodeDaemonEndpoints fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NodeDaemonEndpoints.class); } - /** - * Convert an instance of V1NodeDaemonEndpoints to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NodeDaemonEndpoints to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java index c97f89deac..2bdd8a936b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * NodeFeatures describes the set of features implemented by the CRI implementation. The features contained in the NodeFeatures should depend only on the cri implementation independent of runtime handlers. */ @ApiModel(description = "NodeFeatures describes the set of features implemented by the CRI implementation. The features contained in the NodeFeatures should depend only on the cri implementation independent of runtime handlers.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeFeatures { public static final String SERIALIZED_NAME_SUPPLEMENTAL_GROUPS_POLICY = "supplementalGroupsPolicy"; @SerializedName(SERIALIZED_NAME_SUPPLEMENTAL_GROUPS_POLICY) + @jakarta.annotation.Nullable private Boolean supplementalGroupsPolicy; public V1NodeFeatures() { } - public V1NodeFeatures supplementalGroupsPolicy(Boolean supplementalGroupsPolicy) { + public V1NodeFeatures supplementalGroupsPolicy(@jakarta.annotation.Nullable Boolean supplementalGroupsPolicy) { this.supplementalGroupsPolicy = supplementalGroupsPolicy; return this; } - /** + /** * SupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser. * @return supplementalGroupsPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "SupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser.") public Boolean getSupplementalGroupsPolicy() { return supplementalGroupsPolicy; } - public void setSupplementalGroupsPolicy(Boolean supplementalGroupsPolicy) { + public void setSupplementalGroupsPolicy(@jakarta.annotation.Nullable Boolean supplementalGroupsPolicy) { this.supplementalGroupsPolicy = supplementalGroupsPolicy; } @@ -131,12 +131,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NodeFeatures - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodeFeatures + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeFeatures.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -183,22 +183,22 @@ public V1NodeFeatures read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NodeFeatures given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NodeFeatures - * @throws IOException if the JSON string is invalid with respect to V1NodeFeatures - */ + /** + * Create an instance of V1NodeFeatures given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeFeatures + * @throws IOException if the JSON string is invalid with respect to V1NodeFeatures + */ public static V1NodeFeatures fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NodeFeatures.class); } - /** - * Convert an instance of V1NodeFeatures to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NodeFeatures to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java index ed8dfaa917..5e452a2ba7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * NodeList is the whole list of all Nodes which have been registered with master. */ @ApiModel(description = "NodeList is the whole list of all Nodes which have been registered with master.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1NodeList() { } - public V1NodeList apiVersion(String apiVersion) { + public V1NodeList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1NodeList items(List items) { + public V1NodeList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1NodeList addItemsItem(V1Node itemsItem) { return this; } - /** + /** * List of nodes * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "List of nodes") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1NodeList kind(String kind) { + public V1NodeList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1NodeList metadata(V1ListMeta metadata) { + public V1NodeList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NodeList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodeList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1NodeList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NodeList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NodeList - * @throws IOException if the JSON string is invalid with respect to V1NodeList - */ + /** + * Create an instance of V1NodeList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeList + * @throws IOException if the JSON string is invalid with respect to V1NodeList + */ public static V1NodeList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NodeList.class); } - /** - * Convert an instance of V1NodeList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NodeList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java index d2dd3fedea..597ad1c759 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * NodeRuntimeHandler is a set of runtime handler information. */ @ApiModel(description = "NodeRuntimeHandler is a set of runtime handler information.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeRuntimeHandler { public static final String SERIALIZED_NAME_FEATURES = "features"; @SerializedName(SERIALIZED_NAME_FEATURES) + @jakarta.annotation.Nullable private V1NodeRuntimeHandlerFeatures features; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public V1NodeRuntimeHandler() { } - public V1NodeRuntimeHandler features(V1NodeRuntimeHandlerFeatures features) { + public V1NodeRuntimeHandler features(@jakarta.annotation.Nullable V1NodeRuntimeHandlerFeatures features) { this.features = features; return this; } - /** + /** * Get features * @return features - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1NodeRuntimeHandlerFeatures getFeatures() { return features; } - public void setFeatures(V1NodeRuntimeHandlerFeatures features) { + public void setFeatures(@jakarta.annotation.Nullable V1NodeRuntimeHandlerFeatures features) { this.features = features; } - public V1NodeRuntimeHandler name(String name) { + public V1NodeRuntimeHandler name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * Runtime handler name. Empty for the default runtime handler. * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Runtime handler name. Empty for the default runtime handler.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NodeRuntimeHandler - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodeRuntimeHandler + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeRuntimeHandler.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -218,22 +219,22 @@ public V1NodeRuntimeHandler read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NodeRuntimeHandler given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NodeRuntimeHandler - * @throws IOException if the JSON string is invalid with respect to V1NodeRuntimeHandler - */ + /** + * Create an instance of V1NodeRuntimeHandler given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeRuntimeHandler + * @throws IOException if the JSON string is invalid with respect to V1NodeRuntimeHandler + */ public static V1NodeRuntimeHandler fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NodeRuntimeHandler.class); } - /** - * Convert an instance of V1NodeRuntimeHandler to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NodeRuntimeHandler to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java index 7c1308efd7..e3ea7bc302 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler. */ @ApiModel(description = "NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeRuntimeHandlerFeatures { public static final String SERIALIZED_NAME_RECURSIVE_READ_ONLY_MOUNTS = "recursiveReadOnlyMounts"; @SerializedName(SERIALIZED_NAME_RECURSIVE_READ_ONLY_MOUNTS) + @jakarta.annotation.Nullable private Boolean recursiveReadOnlyMounts; public static final String SERIALIZED_NAME_USER_NAMESPACES = "userNamespaces"; @SerializedName(SERIALIZED_NAME_USER_NAMESPACES) + @jakarta.annotation.Nullable private Boolean userNamespaces; public V1NodeRuntimeHandlerFeatures() { } - public V1NodeRuntimeHandlerFeatures recursiveReadOnlyMounts(Boolean recursiveReadOnlyMounts) { + public V1NodeRuntimeHandlerFeatures recursiveReadOnlyMounts(@jakarta.annotation.Nullable Boolean recursiveReadOnlyMounts) { this.recursiveReadOnlyMounts = recursiveReadOnlyMounts; return this; } - /** + /** * RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts. * @return recursiveReadOnlyMounts - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts.") public Boolean getRecursiveReadOnlyMounts() { return recursiveReadOnlyMounts; } - public void setRecursiveReadOnlyMounts(Boolean recursiveReadOnlyMounts) { + public void setRecursiveReadOnlyMounts(@jakarta.annotation.Nullable Boolean recursiveReadOnlyMounts) { this.recursiveReadOnlyMounts = recursiveReadOnlyMounts; } - public V1NodeRuntimeHandlerFeatures userNamespaces(Boolean userNamespaces) { + public V1NodeRuntimeHandlerFeatures userNamespaces(@jakarta.annotation.Nullable Boolean userNamespaces) { this.userNamespaces = userNamespaces; return this; } - /** + /** * UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes. * @return userNamespaces - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.") public Boolean getUserNamespaces() { return userNamespaces; } - public void setUserNamespaces(Boolean userNamespaces) { + public void setUserNamespaces(@jakarta.annotation.Nullable Boolean userNamespaces) { this.userNamespaces = userNamespaces; } @@ -158,12 +159,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NodeRuntimeHandlerFeatures - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodeRuntimeHandlerFeatures + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeRuntimeHandlerFeatures.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -210,22 +211,22 @@ public V1NodeRuntimeHandlerFeatures read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NodeRuntimeHandlerFeatures given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NodeRuntimeHandlerFeatures - * @throws IOException if the JSON string is invalid with respect to V1NodeRuntimeHandlerFeatures - */ + /** + * Create an instance of V1NodeRuntimeHandlerFeatures given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeRuntimeHandlerFeatures + * @throws IOException if the JSON string is invalid with respect to V1NodeRuntimeHandlerFeatures + */ public static V1NodeRuntimeHandlerFeatures fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NodeRuntimeHandlerFeatures.class); } - /** - * Convert an instance of V1NodeRuntimeHandlerFeatures to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NodeRuntimeHandlerFeatures to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelector.java index 644cefb965..f133a4acc7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelector.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,16 +53,17 @@ * A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms. */ @ApiModel(description = "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeSelector { public static final String SERIALIZED_NAME_NODE_SELECTOR_TERMS = "nodeSelectorTerms"; @SerializedName(SERIALIZED_NAME_NODE_SELECTOR_TERMS) + @jakarta.annotation.Nonnull private List nodeSelectorTerms = new ArrayList<>(); public V1NodeSelector() { } - public V1NodeSelector nodeSelectorTerms(List nodeSelectorTerms) { + public V1NodeSelector nodeSelectorTerms(@jakarta.annotation.Nonnull List nodeSelectorTerms) { this.nodeSelectorTerms = nodeSelectorTerms; return this; } @@ -76,17 +76,17 @@ public V1NodeSelector addNodeSelectorTermsItem(V1NodeSelectorTerm nodeSelectorTe return this; } - /** + /** * Required. A list of node selector terms. The terms are ORed. * @return nodeSelectorTerms - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Required. A list of node selector terms. The terms are ORed.") public List getNodeSelectorTerms() { return nodeSelectorTerms; } - public void setNodeSelectorTerms(List nodeSelectorTerms) { + public void setNodeSelectorTerms(@jakarta.annotation.Nonnull List nodeSelectorTerms) { this.nodeSelectorTerms = nodeSelectorTerms; } @@ -143,12 +143,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("nodeSelectorTerms"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NodeSelector - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodeSelector + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -212,22 +212,22 @@ public V1NodeSelector read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NodeSelector given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NodeSelector - * @throws IOException if the JSON string is invalid with respect to V1NodeSelector - */ + /** + * Create an instance of V1NodeSelector given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeSelector + * @throws IOException if the JSON string is invalid with respect to V1NodeSelector + */ public static V1NodeSelector fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NodeSelector.class); } - /** - * Convert an instance of V1NodeSelector to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NodeSelector to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java index 84b5646c80..94909c03b2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,64 +52,67 @@ * A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ @ApiModel(description = "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) + @jakarta.annotation.Nonnull private String key; public static final String SERIALIZED_NAME_OPERATOR = "operator"; @SerializedName(SERIALIZED_NAME_OPERATOR) + @jakarta.annotation.Nonnull private String operator; public static final String SERIALIZED_NAME_VALUES = "values"; @SerializedName(SERIALIZED_NAME_VALUES) + @jakarta.annotation.Nullable private List values = new ArrayList<>(); public V1NodeSelectorRequirement() { } - public V1NodeSelectorRequirement key(String key) { + public V1NodeSelectorRequirement key(@jakarta.annotation.Nonnull String key) { this.key = key; return this; } - /** + /** * The label key that the selector applies to. * @return key - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The label key that the selector applies to.") public String getKey() { return key; } - public void setKey(String key) { + public void setKey(@jakarta.annotation.Nonnull String key) { this.key = key; } - public V1NodeSelectorRequirement operator(String operator) { + public V1NodeSelectorRequirement operator(@jakarta.annotation.Nonnull String operator) { this.operator = operator; return this; } - /** + /** * Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. * @return operator - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.") public String getOperator() { return operator; } - public void setOperator(String operator) { + public void setOperator(@jakarta.annotation.Nonnull String operator) { this.operator = operator; } - public V1NodeSelectorRequirement values(List values) { + public V1NodeSelectorRequirement values(@jakarta.annotation.Nullable List values) { this.values = values; return this; } @@ -123,17 +125,17 @@ public V1NodeSelectorRequirement addValuesItem(String valuesItem) { return this; } - /** + /** * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. * @return values - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.") public List getValues() { return values; } - public void setValues(List values) { + public void setValues(@jakarta.annotation.Nullable List values) { this.values = values; } @@ -197,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("operator"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NodeSelectorRequirement - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodeSelectorRequirement + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeSelectorRequirement.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -266,22 +268,22 @@ public V1NodeSelectorRequirement read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NodeSelectorRequirement given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NodeSelectorRequirement - * @throws IOException if the JSON string is invalid with respect to V1NodeSelectorRequirement - */ + /** + * Create an instance of V1NodeSelectorRequirement given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeSelectorRequirement + * @throws IOException if the JSON string is invalid with respect to V1NodeSelectorRequirement + */ public static V1NodeSelectorRequirement fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NodeSelectorRequirement.class); } - /** - * Convert an instance of V1NodeSelectorRequirement to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NodeSelectorRequirement to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java index a098a2429a..c6ddf414e0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,20 +53,22 @@ * A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. */ @ApiModel(description = "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeSelectorTerm { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) + @jakarta.annotation.Nullable private List matchExpressions = new ArrayList<>(); public static final String SERIALIZED_NAME_MATCH_FIELDS = "matchFields"; @SerializedName(SERIALIZED_NAME_MATCH_FIELDS) + @jakarta.annotation.Nullable private List matchFields = new ArrayList<>(); public V1NodeSelectorTerm() { } - public V1NodeSelectorTerm matchExpressions(List matchExpressions) { + public V1NodeSelectorTerm matchExpressions(@jakarta.annotation.Nullable List matchExpressions) { this.matchExpressions = matchExpressions; return this; } @@ -80,22 +81,22 @@ public V1NodeSelectorTerm addMatchExpressionsItem(V1NodeSelectorRequirement matc return this; } - /** + /** * A list of node selector requirements by node's labels. * @return matchExpressions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A list of node selector requirements by node's labels.") public List getMatchExpressions() { return matchExpressions; } - public void setMatchExpressions(List matchExpressions) { + public void setMatchExpressions(@jakarta.annotation.Nullable List matchExpressions) { this.matchExpressions = matchExpressions; } - public V1NodeSelectorTerm matchFields(List matchFields) { + public V1NodeSelectorTerm matchFields(@jakarta.annotation.Nullable List matchFields) { this.matchFields = matchFields; return this; } @@ -108,17 +109,17 @@ public V1NodeSelectorTerm addMatchFieldsItem(V1NodeSelectorRequirement matchFiel return this; } - /** + /** * A list of node selector requirements by node's fields. * @return matchFields - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A list of node selector requirements by node's fields.") public List getMatchFields() { return matchFields; } - public void setMatchFields(List matchFields) { + public void setMatchFields(@jakarta.annotation.Nullable List matchFields) { this.matchFields = matchFields; } @@ -177,12 +178,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NodeSelectorTerm - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodeSelectorTerm + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeSelectorTerm.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -257,22 +258,22 @@ public V1NodeSelectorTerm read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NodeSelectorTerm given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NodeSelectorTerm - * @throws IOException if the JSON string is invalid with respect to V1NodeSelectorTerm - */ + /** + * Create an instance of V1NodeSelectorTerm given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeSelectorTerm + * @throws IOException if the JSON string is invalid with respect to V1NodeSelectorTerm + */ public static V1NodeSelectorTerm fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NodeSelectorTerm.class); } - /** - * Convert an instance of V1NodeSelectorTerm to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NodeSelectorTerm to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java index 379fa4a2d7..2ce113f97f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,100 +54,107 @@ * NodeSpec describes the attributes that a node is created with. */ @ApiModel(description = "NodeSpec describes the attributes that a node is created with.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeSpec { public static final String SERIALIZED_NAME_CONFIG_SOURCE = "configSource"; @SerializedName(SERIALIZED_NAME_CONFIG_SOURCE) + @jakarta.annotation.Nullable private V1NodeConfigSource configSource; public static final String SERIALIZED_NAME_EXTERNAL_I_D = "externalID"; @SerializedName(SERIALIZED_NAME_EXTERNAL_I_D) + @jakarta.annotation.Nullable private String externalID; public static final String SERIALIZED_NAME_POD_C_I_D_R = "podCIDR"; @SerializedName(SERIALIZED_NAME_POD_C_I_D_R) + @jakarta.annotation.Nullable private String podCIDR; public static final String SERIALIZED_NAME_POD_C_I_D_RS = "podCIDRs"; @SerializedName(SERIALIZED_NAME_POD_C_I_D_RS) + @jakarta.annotation.Nullable private List podCIDRs = new ArrayList<>(); public static final String SERIALIZED_NAME_PROVIDER_I_D = "providerID"; @SerializedName(SERIALIZED_NAME_PROVIDER_I_D) + @jakarta.annotation.Nullable private String providerID; public static final String SERIALIZED_NAME_TAINTS = "taints"; @SerializedName(SERIALIZED_NAME_TAINTS) + @jakarta.annotation.Nullable private List taints = new ArrayList<>(); public static final String SERIALIZED_NAME_UNSCHEDULABLE = "unschedulable"; @SerializedName(SERIALIZED_NAME_UNSCHEDULABLE) + @jakarta.annotation.Nullable private Boolean unschedulable; public V1NodeSpec() { } - public V1NodeSpec configSource(V1NodeConfigSource configSource) { + public V1NodeSpec configSource(@jakarta.annotation.Nullable V1NodeConfigSource configSource) { this.configSource = configSource; return this; } - /** + /** * Get configSource * @return configSource - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1NodeConfigSource getConfigSource() { return configSource; } - public void setConfigSource(V1NodeConfigSource configSource) { + public void setConfigSource(@jakarta.annotation.Nullable V1NodeConfigSource configSource) { this.configSource = configSource; } - public V1NodeSpec externalID(String externalID) { + public V1NodeSpec externalID(@jakarta.annotation.Nullable String externalID) { this.externalID = externalID; return this; } - /** + /** * Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 * @return externalID - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966") public String getExternalID() { return externalID; } - public void setExternalID(String externalID) { + public void setExternalID(@jakarta.annotation.Nullable String externalID) { this.externalID = externalID; } - public V1NodeSpec podCIDR(String podCIDR) { + public V1NodeSpec podCIDR(@jakarta.annotation.Nullable String podCIDR) { this.podCIDR = podCIDR; return this; } - /** + /** * PodCIDR represents the pod IP range assigned to the node. * @return podCIDR - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "PodCIDR represents the pod IP range assigned to the node.") public String getPodCIDR() { return podCIDR; } - public void setPodCIDR(String podCIDR) { + public void setPodCIDR(@jakarta.annotation.Nullable String podCIDR) { this.podCIDR = podCIDR; } - public V1NodeSpec podCIDRs(List podCIDRs) { + public V1NodeSpec podCIDRs(@jakarta.annotation.Nullable List podCIDRs) { this.podCIDRs = podCIDRs; return this; } @@ -161,42 +167,42 @@ public V1NodeSpec addPodCIDRsItem(String podCIDRsItem) { return this; } - /** + /** * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6. * @return podCIDRs - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6.") public List getPodCIDRs() { return podCIDRs; } - public void setPodCIDRs(List podCIDRs) { + public void setPodCIDRs(@jakarta.annotation.Nullable List podCIDRs) { this.podCIDRs = podCIDRs; } - public V1NodeSpec providerID(String providerID) { + public V1NodeSpec providerID(@jakarta.annotation.Nullable String providerID) { this.providerID = providerID; return this; } - /** + /** * ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID> * @return providerID - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ID of the node assigned by the cloud provider in the format: ://") public String getProviderID() { return providerID; } - public void setProviderID(String providerID) { + public void setProviderID(@jakarta.annotation.Nullable String providerID) { this.providerID = providerID; } - public V1NodeSpec taints(List taints) { + public V1NodeSpec taints(@jakarta.annotation.Nullable List taints) { this.taints = taints; return this; } @@ -209,37 +215,37 @@ public V1NodeSpec addTaintsItem(V1Taint taintsItem) { return this; } - /** + /** * If specified, the node's taints. * @return taints - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "If specified, the node's taints.") public List getTaints() { return taints; } - public void setTaints(List taints) { + public void setTaints(@jakarta.annotation.Nullable List taints) { this.taints = taints; } - public V1NodeSpec unschedulable(Boolean unschedulable) { + public V1NodeSpec unschedulable(@jakarta.annotation.Nullable Boolean unschedulable) { this.unschedulable = unschedulable; return this; } - /** + /** * Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration * @return unschedulable - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration") public Boolean getUnschedulable() { return unschedulable; } - public void setUnschedulable(Boolean unschedulable) { + public void setUnschedulable(@jakarta.annotation.Nullable Boolean unschedulable) { this.unschedulable = unschedulable; } @@ -313,12 +319,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NodeSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodeSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -396,22 +402,22 @@ public V1NodeSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NodeSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NodeSpec - * @throws IOException if the JSON string is invalid with respect to V1NodeSpec - */ + /** + * Create an instance of V1NodeSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeSpec + * @throws IOException if the JSON string is invalid with respect to V1NodeSpec + */ public static V1NodeSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NodeSpec.class); } - /** - * Convert an instance of V1NodeSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NodeSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java index 80704550a5..6f959ea8f6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java @@ -52,7 +52,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -65,64 +64,77 @@ * NodeStatus is information about the current status of a node. */ @ApiModel(description = "NodeStatus is information about the current status of a node.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeStatus { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) + @jakarta.annotation.Nullable private List addresses = new ArrayList<>(); public static final String SERIALIZED_NAME_ALLOCATABLE = "allocatable"; @SerializedName(SERIALIZED_NAME_ALLOCATABLE) + @jakarta.annotation.Nullable private Map allocatable = new HashMap<>(); public static final String SERIALIZED_NAME_CAPACITY = "capacity"; @SerializedName(SERIALIZED_NAME_CAPACITY) + @jakarta.annotation.Nullable private Map capacity = new HashMap<>(); public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) + @jakarta.annotation.Nullable private V1NodeConfigStatus config; public static final String SERIALIZED_NAME_DAEMON_ENDPOINTS = "daemonEndpoints"; @SerializedName(SERIALIZED_NAME_DAEMON_ENDPOINTS) + @jakarta.annotation.Nullable private V1NodeDaemonEndpoints daemonEndpoints; public static final String SERIALIZED_NAME_FEATURES = "features"; @SerializedName(SERIALIZED_NAME_FEATURES) + @jakarta.annotation.Nullable private V1NodeFeatures features; public static final String SERIALIZED_NAME_IMAGES = "images"; @SerializedName(SERIALIZED_NAME_IMAGES) + @jakarta.annotation.Nullable private List images = new ArrayList<>(); public static final String SERIALIZED_NAME_NODE_INFO = "nodeInfo"; @SerializedName(SERIALIZED_NAME_NODE_INFO) + @jakarta.annotation.Nullable private V1NodeSystemInfo nodeInfo; public static final String SERIALIZED_NAME_PHASE = "phase"; @SerializedName(SERIALIZED_NAME_PHASE) + @jakarta.annotation.Nullable private String phase; public static final String SERIALIZED_NAME_RUNTIME_HANDLERS = "runtimeHandlers"; @SerializedName(SERIALIZED_NAME_RUNTIME_HANDLERS) + @jakarta.annotation.Nullable private List runtimeHandlers = new ArrayList<>(); public static final String SERIALIZED_NAME_VOLUMES_ATTACHED = "volumesAttached"; @SerializedName(SERIALIZED_NAME_VOLUMES_ATTACHED) + @jakarta.annotation.Nullable private List volumesAttached = new ArrayList<>(); public static final String SERIALIZED_NAME_VOLUMES_IN_USE = "volumesInUse"; @SerializedName(SERIALIZED_NAME_VOLUMES_IN_USE) + @jakarta.annotation.Nullable private List volumesInUse = new ArrayList<>(); public V1NodeStatus() { } - public V1NodeStatus addresses(List addresses) { + public V1NodeStatus addresses(@jakarta.annotation.Nullable List addresses) { this.addresses = addresses; return this; } @@ -135,22 +147,22 @@ public V1NodeStatus addAddressesItem(V1NodeAddress addressesItem) { return this; } - /** + /** * List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP). * @return addresses - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).") public List getAddresses() { return addresses; } - public void setAddresses(List addresses) { + public void setAddresses(@jakarta.annotation.Nullable List addresses) { this.addresses = addresses; } - public V1NodeStatus allocatable(Map allocatable) { + public V1NodeStatus allocatable(@jakarta.annotation.Nullable Map allocatable) { this.allocatable = allocatable; return this; } @@ -163,22 +175,22 @@ public V1NodeStatus putAllocatableItem(String key, Quantity allocatableItem) { return this; } - /** + /** * Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. * @return allocatable - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.") public Map getAllocatable() { return allocatable; } - public void setAllocatable(Map allocatable) { + public void setAllocatable(@jakarta.annotation.Nullable Map allocatable) { this.allocatable = allocatable; } - public V1NodeStatus capacity(Map capacity) { + public V1NodeStatus capacity(@jakarta.annotation.Nullable Map capacity) { this.capacity = capacity; return this; } @@ -191,22 +203,22 @@ public V1NodeStatus putCapacityItem(String key, Quantity capacityItem) { return this; } - /** + /** * Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity * @return capacity - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity") public Map getCapacity() { return capacity; } - public void setCapacity(Map capacity) { + public void setCapacity(@jakarta.annotation.Nullable Map capacity) { this.capacity = capacity; } - public V1NodeStatus conditions(List conditions) { + public V1NodeStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } @@ -219,82 +231,82 @@ public V1NodeStatus addConditionsItem(V1NodeCondition conditionsItem) { return this; } - /** + /** * Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition * @return conditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition") public List getConditions() { return conditions; } - public void setConditions(List conditions) { + public void setConditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; } - public V1NodeStatus config(V1NodeConfigStatus config) { + public V1NodeStatus config(@jakarta.annotation.Nullable V1NodeConfigStatus config) { this.config = config; return this; } - /** + /** * Get config * @return config - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1NodeConfigStatus getConfig() { return config; } - public void setConfig(V1NodeConfigStatus config) { + public void setConfig(@jakarta.annotation.Nullable V1NodeConfigStatus config) { this.config = config; } - public V1NodeStatus daemonEndpoints(V1NodeDaemonEndpoints daemonEndpoints) { + public V1NodeStatus daemonEndpoints(@jakarta.annotation.Nullable V1NodeDaemonEndpoints daemonEndpoints) { this.daemonEndpoints = daemonEndpoints; return this; } - /** + /** * Get daemonEndpoints * @return daemonEndpoints - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1NodeDaemonEndpoints getDaemonEndpoints() { return daemonEndpoints; } - public void setDaemonEndpoints(V1NodeDaemonEndpoints daemonEndpoints) { + public void setDaemonEndpoints(@jakarta.annotation.Nullable V1NodeDaemonEndpoints daemonEndpoints) { this.daemonEndpoints = daemonEndpoints; } - public V1NodeStatus features(V1NodeFeatures features) { + public V1NodeStatus features(@jakarta.annotation.Nullable V1NodeFeatures features) { this.features = features; return this; } - /** + /** * Get features * @return features - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1NodeFeatures getFeatures() { return features; } - public void setFeatures(V1NodeFeatures features) { + public void setFeatures(@jakarta.annotation.Nullable V1NodeFeatures features) { this.features = features; } - public V1NodeStatus images(List images) { + public V1NodeStatus images(@jakarta.annotation.Nullable List images) { this.images = images; return this; } @@ -307,62 +319,62 @@ public V1NodeStatus addImagesItem(V1ContainerImage imagesItem) { return this; } - /** + /** * List of container images on this node * @return images - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "List of container images on this node") public List getImages() { return images; } - public void setImages(List images) { + public void setImages(@jakarta.annotation.Nullable List images) { this.images = images; } - public V1NodeStatus nodeInfo(V1NodeSystemInfo nodeInfo) { + public V1NodeStatus nodeInfo(@jakarta.annotation.Nullable V1NodeSystemInfo nodeInfo) { this.nodeInfo = nodeInfo; return this; } - /** + /** * Get nodeInfo * @return nodeInfo - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1NodeSystemInfo getNodeInfo() { return nodeInfo; } - public void setNodeInfo(V1NodeSystemInfo nodeInfo) { + public void setNodeInfo(@jakarta.annotation.Nullable V1NodeSystemInfo nodeInfo) { this.nodeInfo = nodeInfo; } - public V1NodeStatus phase(String phase) { + public V1NodeStatus phase(@jakarta.annotation.Nullable String phase) { this.phase = phase; return this; } - /** + /** * NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. * @return phase - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated.") public String getPhase() { return phase; } - public void setPhase(String phase) { + public void setPhase(@jakarta.annotation.Nullable String phase) { this.phase = phase; } - public V1NodeStatus runtimeHandlers(List runtimeHandlers) { + public V1NodeStatus runtimeHandlers(@jakarta.annotation.Nullable List runtimeHandlers) { this.runtimeHandlers = runtimeHandlers; return this; } @@ -375,22 +387,22 @@ public V1NodeStatus addRuntimeHandlersItem(V1NodeRuntimeHandler runtimeHandlersI return this; } - /** + /** * The available runtime handlers. * @return runtimeHandlers - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The available runtime handlers.") public List getRuntimeHandlers() { return runtimeHandlers; } - public void setRuntimeHandlers(List runtimeHandlers) { + public void setRuntimeHandlers(@jakarta.annotation.Nullable List runtimeHandlers) { this.runtimeHandlers = runtimeHandlers; } - public V1NodeStatus volumesAttached(List volumesAttached) { + public V1NodeStatus volumesAttached(@jakarta.annotation.Nullable List volumesAttached) { this.volumesAttached = volumesAttached; return this; } @@ -403,22 +415,22 @@ public V1NodeStatus addVolumesAttachedItem(V1AttachedVolume volumesAttachedItem) return this; } - /** + /** * List of volumes that are attached to the node. * @return volumesAttached - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "List of volumes that are attached to the node.") public List getVolumesAttached() { return volumesAttached; } - public void setVolumesAttached(List volumesAttached) { + public void setVolumesAttached(@jakarta.annotation.Nullable List volumesAttached) { this.volumesAttached = volumesAttached; } - public V1NodeStatus volumesInUse(List volumesInUse) { + public V1NodeStatus volumesInUse(@jakarta.annotation.Nullable List volumesInUse) { this.volumesInUse = volumesInUse; return this; } @@ -431,17 +443,17 @@ public V1NodeStatus addVolumesInUseItem(String volumesInUseItem) { return this; } - /** + /** * List of attachable volumes in use (mounted) by the node. * @return volumesInUse - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "List of attachable volumes in use (mounted) by the node.") public List getVolumesInUse() { return volumesInUse; } - public void setVolumesInUse(List volumesInUse) { + public void setVolumesInUse(@jakarta.annotation.Nullable List volumesInUse) { this.volumesInUse = volumesInUse; } @@ -533,12 +545,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NodeStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodeStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -678,22 +690,22 @@ public V1NodeStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NodeStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NodeStatus - * @throws IOException if the JSON string is invalid with respect to V1NodeStatus - */ + /** + * Create an instance of V1NodeStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeStatus + * @throws IOException if the JSON string is invalid with respect to V1NodeStatus + */ public static V1NodeStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NodeStatus.class); } - /** - * Convert an instance of V1NodeStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NodeStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatus.java new file mode 100644 index 0000000000..39adeac5e1 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatus.java @@ -0,0 +1,205 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * NodeSwapStatus represents swap memory information. + */ +@ApiModel(description = "NodeSwapStatus represents swap memory information.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1NodeSwapStatus { + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; + @SerializedName(SERIALIZED_NAME_CAPACITY) + @jakarta.annotation.Nullable + private Long capacity; + + public V1NodeSwapStatus() { + } + + public V1NodeSwapStatus capacity(@jakarta.annotation.Nullable Long capacity) { + this.capacity = capacity; + return this; + } + + /** + * Total amount of swap memory in bytes. + * @return capacity + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Total amount of swap memory in bytes.") + public Long getCapacity() { + return capacity; + } + + public void setCapacity(@jakarta.annotation.Nullable Long capacity) { + this.capacity = capacity; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1NodeSwapStatus v1NodeSwapStatus = (V1NodeSwapStatus) o; + return Objects.equals(this.capacity, v1NodeSwapStatus.capacity); + } + + @Override + public int hashCode() { + return Objects.hash(capacity); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1NodeSwapStatus {\n"); + sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("capacity"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodeSwapStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1NodeSwapStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NodeSwapStatus is not found in the empty JSON string", V1NodeSwapStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1NodeSwapStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NodeSwapStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NodeSwapStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NodeSwapStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NodeSwapStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NodeSwapStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NodeSwapStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NodeSwapStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeSwapStatus + * @throws IOException if the JSON string is invalid with respect to V1NodeSwapStatus + */ + public static V1NodeSwapStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NodeSwapStatus.class); + } + + /** + * Convert an instance of V1NodeSwapStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java index 0d766d5c3a..d15db6390b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java @@ -18,6 +18,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1NodeSwapStatus; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -38,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,247 +51,282 @@ * NodeSystemInfo is a set of ids/uuids to uniquely identify the node. */ @ApiModel(description = "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeSystemInfo { public static final String SERIALIZED_NAME_ARCHITECTURE = "architecture"; @SerializedName(SERIALIZED_NAME_ARCHITECTURE) + @jakarta.annotation.Nonnull private String architecture; public static final String SERIALIZED_NAME_BOOT_I_D = "bootID"; @SerializedName(SERIALIZED_NAME_BOOT_I_D) + @jakarta.annotation.Nonnull private String bootID; public static final String SERIALIZED_NAME_CONTAINER_RUNTIME_VERSION = "containerRuntimeVersion"; @SerializedName(SERIALIZED_NAME_CONTAINER_RUNTIME_VERSION) + @jakarta.annotation.Nonnull private String containerRuntimeVersion; public static final String SERIALIZED_NAME_KERNEL_VERSION = "kernelVersion"; @SerializedName(SERIALIZED_NAME_KERNEL_VERSION) + @jakarta.annotation.Nonnull private String kernelVersion; public static final String SERIALIZED_NAME_KUBE_PROXY_VERSION = "kubeProxyVersion"; @SerializedName(SERIALIZED_NAME_KUBE_PROXY_VERSION) + @jakarta.annotation.Nonnull private String kubeProxyVersion; public static final String SERIALIZED_NAME_KUBELET_VERSION = "kubeletVersion"; @SerializedName(SERIALIZED_NAME_KUBELET_VERSION) + @jakarta.annotation.Nonnull private String kubeletVersion; public static final String SERIALIZED_NAME_MACHINE_I_D = "machineID"; @SerializedName(SERIALIZED_NAME_MACHINE_I_D) + @jakarta.annotation.Nonnull private String machineID; public static final String SERIALIZED_NAME_OPERATING_SYSTEM = "operatingSystem"; @SerializedName(SERIALIZED_NAME_OPERATING_SYSTEM) + @jakarta.annotation.Nonnull private String operatingSystem; public static final String SERIALIZED_NAME_OS_IMAGE = "osImage"; @SerializedName(SERIALIZED_NAME_OS_IMAGE) + @jakarta.annotation.Nonnull private String osImage; + public static final String SERIALIZED_NAME_SWAP = "swap"; + @SerializedName(SERIALIZED_NAME_SWAP) + @jakarta.annotation.Nullable + private V1NodeSwapStatus swap; + public static final String SERIALIZED_NAME_SYSTEM_U_U_I_D = "systemUUID"; @SerializedName(SERIALIZED_NAME_SYSTEM_U_U_I_D) + @jakarta.annotation.Nonnull private String systemUUID; public V1NodeSystemInfo() { } - public V1NodeSystemInfo architecture(String architecture) { + public V1NodeSystemInfo architecture(@jakarta.annotation.Nonnull String architecture) { this.architecture = architecture; return this; } - /** + /** * The Architecture reported by the node * @return architecture - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The Architecture reported by the node") public String getArchitecture() { return architecture; } - public void setArchitecture(String architecture) { + public void setArchitecture(@jakarta.annotation.Nonnull String architecture) { this.architecture = architecture; } - public V1NodeSystemInfo bootID(String bootID) { + public V1NodeSystemInfo bootID(@jakarta.annotation.Nonnull String bootID) { this.bootID = bootID; return this; } - /** + /** * Boot ID reported by the node. * @return bootID - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Boot ID reported by the node.") public String getBootID() { return bootID; } - public void setBootID(String bootID) { + public void setBootID(@jakarta.annotation.Nonnull String bootID) { this.bootID = bootID; } - public V1NodeSystemInfo containerRuntimeVersion(String containerRuntimeVersion) { + public V1NodeSystemInfo containerRuntimeVersion(@jakarta.annotation.Nonnull String containerRuntimeVersion) { this.containerRuntimeVersion = containerRuntimeVersion; return this; } - /** + /** * ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2). * @return containerRuntimeVersion - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2).") public String getContainerRuntimeVersion() { return containerRuntimeVersion; } - public void setContainerRuntimeVersion(String containerRuntimeVersion) { + public void setContainerRuntimeVersion(@jakarta.annotation.Nonnull String containerRuntimeVersion) { this.containerRuntimeVersion = containerRuntimeVersion; } - public V1NodeSystemInfo kernelVersion(String kernelVersion) { + public V1NodeSystemInfo kernelVersion(@jakarta.annotation.Nonnull String kernelVersion) { this.kernelVersion = kernelVersion; return this; } - /** + /** * Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). * @return kernelVersion - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).") public String getKernelVersion() { return kernelVersion; } - public void setKernelVersion(String kernelVersion) { + public void setKernelVersion(@jakarta.annotation.Nonnull String kernelVersion) { this.kernelVersion = kernelVersion; } - public V1NodeSystemInfo kubeProxyVersion(String kubeProxyVersion) { + public V1NodeSystemInfo kubeProxyVersion(@jakarta.annotation.Nonnull String kubeProxyVersion) { this.kubeProxyVersion = kubeProxyVersion; return this; } - /** + /** * Deprecated: KubeProxy Version reported by the node. * @return kubeProxyVersion - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Deprecated: KubeProxy Version reported by the node.") public String getKubeProxyVersion() { return kubeProxyVersion; } - public void setKubeProxyVersion(String kubeProxyVersion) { + public void setKubeProxyVersion(@jakarta.annotation.Nonnull String kubeProxyVersion) { this.kubeProxyVersion = kubeProxyVersion; } - public V1NodeSystemInfo kubeletVersion(String kubeletVersion) { + public V1NodeSystemInfo kubeletVersion(@jakarta.annotation.Nonnull String kubeletVersion) { this.kubeletVersion = kubeletVersion; return this; } - /** + /** * Kubelet Version reported by the node. * @return kubeletVersion - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Kubelet Version reported by the node.") public String getKubeletVersion() { return kubeletVersion; } - public void setKubeletVersion(String kubeletVersion) { + public void setKubeletVersion(@jakarta.annotation.Nonnull String kubeletVersion) { this.kubeletVersion = kubeletVersion; } - public V1NodeSystemInfo machineID(String machineID) { + public V1NodeSystemInfo machineID(@jakarta.annotation.Nonnull String machineID) { this.machineID = machineID; return this; } - /** + /** * MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html * @return machineID - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html") public String getMachineID() { return machineID; } - public void setMachineID(String machineID) { + public void setMachineID(@jakarta.annotation.Nonnull String machineID) { this.machineID = machineID; } - public V1NodeSystemInfo operatingSystem(String operatingSystem) { + public V1NodeSystemInfo operatingSystem(@jakarta.annotation.Nonnull String operatingSystem) { this.operatingSystem = operatingSystem; return this; } - /** + /** * The Operating System reported by the node * @return operatingSystem - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The Operating System reported by the node") public String getOperatingSystem() { return operatingSystem; } - public void setOperatingSystem(String operatingSystem) { + public void setOperatingSystem(@jakarta.annotation.Nonnull String operatingSystem) { this.operatingSystem = operatingSystem; } - public V1NodeSystemInfo osImage(String osImage) { + public V1NodeSystemInfo osImage(@jakarta.annotation.Nonnull String osImage) { this.osImage = osImage; return this; } - /** + /** * OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). * @return osImage - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).") public String getOsImage() { return osImage; } - public void setOsImage(String osImage) { + public void setOsImage(@jakarta.annotation.Nonnull String osImage) { this.osImage = osImage; } - public V1NodeSystemInfo systemUUID(String systemUUID) { + public V1NodeSystemInfo swap(@jakarta.annotation.Nullable V1NodeSwapStatus swap) { + this.swap = swap; + return this; + } + + /** + * Get swap + * @return swap + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1NodeSwapStatus getSwap() { + return swap; + } + + public void setSwap(@jakarta.annotation.Nullable V1NodeSwapStatus swap) { + this.swap = swap; + } + + + public V1NodeSystemInfo systemUUID(@jakarta.annotation.Nonnull String systemUUID) { this.systemUUID = systemUUID; return this; } - /** + /** * SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid * @return systemUUID - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid") public String getSystemUUID() { return systemUUID; } - public void setSystemUUID(String systemUUID) { + public void setSystemUUID(@jakarta.annotation.Nonnull String systemUUID) { this.systemUUID = systemUUID; } @@ -315,12 +350,13 @@ public boolean equals(Object o) { Objects.equals(this.machineID, v1NodeSystemInfo.machineID) && Objects.equals(this.operatingSystem, v1NodeSystemInfo.operatingSystem) && Objects.equals(this.osImage, v1NodeSystemInfo.osImage) && + Objects.equals(this.swap, v1NodeSystemInfo.swap) && Objects.equals(this.systemUUID, v1NodeSystemInfo.systemUUID); } @Override public int hashCode() { - return Objects.hash(architecture, bootID, containerRuntimeVersion, kernelVersion, kubeProxyVersion, kubeletVersion, machineID, operatingSystem, osImage, systemUUID); + return Objects.hash(architecture, bootID, containerRuntimeVersion, kernelVersion, kubeProxyVersion, kubeletVersion, machineID, operatingSystem, osImage, swap, systemUUID); } @Override @@ -336,6 +372,7 @@ public String toString() { sb.append(" machineID: ").append(toIndentedString(machineID)).append("\n"); sb.append(" operatingSystem: ").append(toIndentedString(operatingSystem)).append("\n"); sb.append(" osImage: ").append(toIndentedString(osImage)).append("\n"); + sb.append(" swap: ").append(toIndentedString(swap)).append("\n"); sb.append(" systemUUID: ").append(toIndentedString(systemUUID)).append("\n"); sb.append("}"); return sb.toString(); @@ -368,6 +405,7 @@ private String toIndentedString(Object o) { openapiFields.add("machineID"); openapiFields.add("operatingSystem"); openapiFields.add("osImage"); + openapiFields.add("swap"); openapiFields.add("systemUUID"); // a set of required properties/fields (JSON key names) @@ -384,12 +422,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("systemUUID"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NodeSystemInfo - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodeSystemInfo + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeSystemInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -439,6 +477,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("osImage").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `osImage` to be a primitive type in the JSON string but got `%s`", jsonObj.get("osImage").toString())); } + // validate the optional field `swap` + if (jsonObj.get("swap") != null && !jsonObj.get("swap").isJsonNull()) { + V1NodeSwapStatus.validateJsonElement(jsonObj.get("swap")); + } if (!jsonObj.get("systemUUID").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `systemUUID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("systemUUID").toString())); } @@ -473,22 +515,22 @@ public V1NodeSystemInfo read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NodeSystemInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NodeSystemInfo - * @throws IOException if the JSON string is invalid with respect to V1NodeSystemInfo - */ + /** + * Create an instance of V1NodeSystemInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeSystemInfo + * @throws IOException if the JSON string is invalid with respect to V1NodeSystemInfo + */ public static V1NodeSystemInfo fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NodeSystemInfo.class); } - /** - * Convert an instance of V1NodeSystemInfo to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NodeSystemInfo to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java index 71dc8611dd..49207586f3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface */ @ApiModel(description = "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NonResourceAttributes { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) + @jakarta.annotation.Nullable private String path; public static final String SERIALIZED_NAME_VERB = "verb"; @SerializedName(SERIALIZED_NAME_VERB) + @jakarta.annotation.Nullable private String verb; public V1NonResourceAttributes() { } - public V1NonResourceAttributes path(String path) { + public V1NonResourceAttributes path(@jakarta.annotation.Nullable String path) { this.path = path; return this; } - /** + /** * Path is the URL path of the request * @return path - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Path is the URL path of the request") public String getPath() { return path; } - public void setPath(String path) { + public void setPath(@jakarta.annotation.Nullable String path) { this.path = path; } - public V1NonResourceAttributes verb(String verb) { + public V1NonResourceAttributes verb(@jakarta.annotation.Nullable String verb) { this.verb = verb; return this; } - /** + /** * Verb is the standard HTTP verb * @return verb - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Verb is the standard HTTP verb") public String getVerb() { return verb; } - public void setVerb(String verb) { + public void setVerb(@jakarta.annotation.Nullable String verb) { this.verb = verb; } @@ -158,12 +159,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NonResourceAttributes - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NonResourceAttributes + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NonResourceAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -216,22 +217,22 @@ public V1NonResourceAttributes read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NonResourceAttributes given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NonResourceAttributes - * @throws IOException if the JSON string is invalid with respect to V1NonResourceAttributes - */ + /** + * Create an instance of V1NonResourceAttributes given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NonResourceAttributes + * @throws IOException if the JSON string is invalid with respect to V1NonResourceAttributes + */ public static V1NonResourceAttributes fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NonResourceAttributes.class); } - /** - * Convert an instance of V1NonResourceAttributes to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NonResourceAttributes to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java index 8cf3c27536..39a005de2c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,20 +52,22 @@ * NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. */ @ApiModel(description = "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NonResourcePolicyRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) + @jakarta.annotation.Nonnull private List nonResourceURLs = new ArrayList<>(); public static final String SERIALIZED_NAME_VERBS = "verbs"; @SerializedName(SERIALIZED_NAME_VERBS) + @jakarta.annotation.Nonnull private List verbs = new ArrayList<>(); public V1NonResourcePolicyRule() { } - public V1NonResourcePolicyRule nonResourceURLs(List nonResourceURLs) { + public V1NonResourcePolicyRule nonResourceURLs(@jakarta.annotation.Nonnull List nonResourceURLs) { this.nonResourceURLs = nonResourceURLs; return this; } @@ -79,22 +80,22 @@ public V1NonResourcePolicyRule addNonResourceURLsItem(String nonResourceURLsItem return this; } - /** + /** * `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: - \"/healthz\" is legal - \"/hea*\" is illegal - \"/hea\" is legal but matches nothing - \"/hea/_*\" also matches nothing - \"/healthz/_*\" matches all per-component health checks. \"*\" matches all non-resource urls. if it is present, it must be the only entry. Required. * @return nonResourceURLs - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: - \"/healthz\" is legal - \"/hea*\" is illegal - \"/hea\" is legal but matches nothing - \"/hea/_*\" also matches nothing - \"/healthz/_*\" matches all per-component health checks. \"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.") public List getNonResourceURLs() { return nonResourceURLs; } - public void setNonResourceURLs(List nonResourceURLs) { + public void setNonResourceURLs(@jakarta.annotation.Nonnull List nonResourceURLs) { this.nonResourceURLs = nonResourceURLs; } - public V1NonResourcePolicyRule verbs(List verbs) { + public V1NonResourcePolicyRule verbs(@jakarta.annotation.Nonnull List verbs) { this.verbs = verbs; return this; } @@ -107,17 +108,17 @@ public V1NonResourcePolicyRule addVerbsItem(String verbsItem) { return this; } - /** + /** * `verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required. * @return verbs - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.") public List getVerbs() { return verbs; } - public void setVerbs(List verbs) { + public void setVerbs(@jakarta.annotation.Nonnull List verbs) { this.verbs = verbs; } @@ -178,12 +179,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("verbs"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NonResourcePolicyRule - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NonResourcePolicyRule + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NonResourcePolicyRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -249,22 +250,22 @@ public V1NonResourcePolicyRule read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NonResourcePolicyRule given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NonResourcePolicyRule - * @throws IOException if the JSON string is invalid with respect to V1NonResourcePolicyRule - */ + /** + * Create an instance of V1NonResourcePolicyRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NonResourcePolicyRule + * @throws IOException if the JSON string is invalid with respect to V1NonResourcePolicyRule + */ public static V1NonResourcePolicyRule fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NonResourcePolicyRule.class); } - /** - * Convert an instance of V1NonResourcePolicyRule to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NonResourcePolicyRule to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java index 1fc85e1c8e..24af818505 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,20 +52,22 @@ * NonResourceRule holds information that describes a rule for the non-resource */ @ApiModel(description = "NonResourceRule holds information that describes a rule for the non-resource") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NonResourceRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) + @jakarta.annotation.Nullable private List nonResourceURLs = new ArrayList<>(); public static final String SERIALIZED_NAME_VERBS = "verbs"; @SerializedName(SERIALIZED_NAME_VERBS) + @jakarta.annotation.Nonnull private List verbs = new ArrayList<>(); public V1NonResourceRule() { } - public V1NonResourceRule nonResourceURLs(List nonResourceURLs) { + public V1NonResourceRule nonResourceURLs(@jakarta.annotation.Nullable List nonResourceURLs) { this.nonResourceURLs = nonResourceURLs; return this; } @@ -79,22 +80,22 @@ public V1NonResourceRule addNonResourceURLsItem(String nonResourceURLsItem) { return this; } - /** + /** * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. * @return nonResourceURLs - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all.") public List getNonResourceURLs() { return nonResourceURLs; } - public void setNonResourceURLs(List nonResourceURLs) { + public void setNonResourceURLs(@jakarta.annotation.Nullable List nonResourceURLs) { this.nonResourceURLs = nonResourceURLs; } - public V1NonResourceRule verbs(List verbs) { + public V1NonResourceRule verbs(@jakarta.annotation.Nonnull List verbs) { this.verbs = verbs; return this; } @@ -107,17 +108,17 @@ public V1NonResourceRule addVerbsItem(String verbsItem) { return this; } - /** + /** * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all. * @return verbs - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.") public List getVerbs() { return verbs; } - public void setVerbs(List verbs) { + public void setVerbs(@jakarta.annotation.Nonnull List verbs) { this.verbs = verbs; } @@ -177,12 +178,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("verbs"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NonResourceRule - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NonResourceRule + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NonResourceRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -246,22 +247,22 @@ public V1NonResourceRule read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1NonResourceRule given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1NonResourceRule - * @throws IOException if the JSON string is invalid with respect to V1NonResourceRule - */ + /** + * Create an instance of V1NonResourceRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NonResourceRule + * @throws IOException if the JSON string is invalid with respect to V1NonResourceRule + */ public static V1NonResourceRule fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1NonResourceRule.class); } - /** - * Convert an instance of V1NonResourceRule to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1NonResourceRule to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java index 07613bdaba..fbdf36058f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * ObjectFieldSelector selects an APIVersioned field of an object. */ @ApiModel(description = "ObjectFieldSelector selects an APIVersioned field of an object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ObjectFieldSelector { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_FIELD_PATH = "fieldPath"; @SerializedName(SERIALIZED_NAME_FIELD_PATH) + @jakarta.annotation.Nonnull private String fieldPath; public V1ObjectFieldSelector() { } - public V1ObjectFieldSelector apiVersion(String apiVersion) { + public V1ObjectFieldSelector apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * Version of the schema the FieldPath is written in terms of, defaults to \"v1\". * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ObjectFieldSelector fieldPath(String fieldPath) { + public V1ObjectFieldSelector fieldPath(@jakarta.annotation.Nonnull String fieldPath) { this.fieldPath = fieldPath; return this; } - /** + /** * Path of the field to select in the specified API version. * @return fieldPath - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Path of the field to select in the specified API version.") public String getFieldPath() { return fieldPath; } - public void setFieldPath(String fieldPath) { + public void setFieldPath(@jakarta.annotation.Nonnull String fieldPath) { this.fieldPath = fieldPath; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("fieldPath"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ObjectFieldSelector - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ObjectFieldSelector + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ObjectFieldSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -224,22 +225,22 @@ public V1ObjectFieldSelector read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ObjectFieldSelector given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ObjectFieldSelector - * @throws IOException if the JSON string is invalid with respect to V1ObjectFieldSelector - */ + /** + * Create an instance of V1ObjectFieldSelector given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ObjectFieldSelector + * @throws IOException if the JSON string is invalid with respect to V1ObjectFieldSelector + */ public static V1ObjectFieldSelector fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ObjectFieldSelector.class); } - /** - * Convert an instance of V1ObjectFieldSelector to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ObjectFieldSelector to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java index 3937234cc7..c0f3b82429 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java @@ -45,7 +45,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -58,72 +57,87 @@ * ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. */ @ApiModel(description = "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ObjectMeta { public static final String SERIALIZED_NAME_ANNOTATIONS = "annotations"; @SerializedName(SERIALIZED_NAME_ANNOTATIONS) + @jakarta.annotation.Nullable private Map annotations = new HashMap<>(); public static final String SERIALIZED_NAME_CREATION_TIMESTAMP = "creationTimestamp"; @SerializedName(SERIALIZED_NAME_CREATION_TIMESTAMP) + @jakarta.annotation.Nullable private OffsetDateTime creationTimestamp; public static final String SERIALIZED_NAME_DELETION_GRACE_PERIOD_SECONDS = "deletionGracePeriodSeconds"; @SerializedName(SERIALIZED_NAME_DELETION_GRACE_PERIOD_SECONDS) + @jakarta.annotation.Nullable private Long deletionGracePeriodSeconds; public static final String SERIALIZED_NAME_DELETION_TIMESTAMP = "deletionTimestamp"; @SerializedName(SERIALIZED_NAME_DELETION_TIMESTAMP) + @jakarta.annotation.Nullable private OffsetDateTime deletionTimestamp; public static final String SERIALIZED_NAME_FINALIZERS = "finalizers"; @SerializedName(SERIALIZED_NAME_FINALIZERS) + @jakarta.annotation.Nullable private List finalizers = new ArrayList<>(); public static final String SERIALIZED_NAME_GENERATE_NAME = "generateName"; @SerializedName(SERIALIZED_NAME_GENERATE_NAME) + @jakarta.annotation.Nullable private String generateName; public static final String SERIALIZED_NAME_GENERATION = "generation"; @SerializedName(SERIALIZED_NAME_GENERATION) + @jakarta.annotation.Nullable private Long generation; public static final String SERIALIZED_NAME_LABELS = "labels"; @SerializedName(SERIALIZED_NAME_LABELS) + @jakarta.annotation.Nullable private Map labels = new HashMap<>(); public static final String SERIALIZED_NAME_MANAGED_FIELDS = "managedFields"; @SerializedName(SERIALIZED_NAME_MANAGED_FIELDS) + @jakarta.annotation.Nullable private List managedFields = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) + @jakarta.annotation.Nullable private String namespace; public static final String SERIALIZED_NAME_OWNER_REFERENCES = "ownerReferences"; @SerializedName(SERIALIZED_NAME_OWNER_REFERENCES) + @jakarta.annotation.Nullable private List ownerReferences = new ArrayList<>(); public static final String SERIALIZED_NAME_RESOURCE_VERSION = "resourceVersion"; @SerializedName(SERIALIZED_NAME_RESOURCE_VERSION) + @jakarta.annotation.Nullable private String resourceVersion; public static final String SERIALIZED_NAME_SELF_LINK = "selfLink"; @SerializedName(SERIALIZED_NAME_SELF_LINK) + @jakarta.annotation.Nullable private String selfLink; public static final String SERIALIZED_NAME_UID = "uid"; @SerializedName(SERIALIZED_NAME_UID) + @jakarta.annotation.Nullable private String uid; public V1ObjectMeta() { } - public V1ObjectMeta annotations(Map annotations) { + public V1ObjectMeta annotations(@jakarta.annotation.Nullable Map annotations) { this.annotations = annotations; return this; } @@ -136,82 +150,82 @@ public V1ObjectMeta putAnnotationsItem(String key, String annotationsItem) { return this; } - /** + /** * Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations * @return annotations - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations") public Map getAnnotations() { return annotations; } - public void setAnnotations(Map annotations) { + public void setAnnotations(@jakarta.annotation.Nullable Map annotations) { this.annotations = annotations; } - public V1ObjectMeta creationTimestamp(OffsetDateTime creationTimestamp) { + public V1ObjectMeta creationTimestamp(@jakarta.annotation.Nullable OffsetDateTime creationTimestamp) { this.creationTimestamp = creationTimestamp; return this; } - /** + /** * CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata * @return creationTimestamp - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") public OffsetDateTime getCreationTimestamp() { return creationTimestamp; } - public void setCreationTimestamp(OffsetDateTime creationTimestamp) { + public void setCreationTimestamp(@jakarta.annotation.Nullable OffsetDateTime creationTimestamp) { this.creationTimestamp = creationTimestamp; } - public V1ObjectMeta deletionGracePeriodSeconds(Long deletionGracePeriodSeconds) { + public V1ObjectMeta deletionGracePeriodSeconds(@jakarta.annotation.Nullable Long deletionGracePeriodSeconds) { this.deletionGracePeriodSeconds = deletionGracePeriodSeconds; return this; } - /** + /** * Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. * @return deletionGracePeriodSeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.") public Long getDeletionGracePeriodSeconds() { return deletionGracePeriodSeconds; } - public void setDeletionGracePeriodSeconds(Long deletionGracePeriodSeconds) { + public void setDeletionGracePeriodSeconds(@jakarta.annotation.Nullable Long deletionGracePeriodSeconds) { this.deletionGracePeriodSeconds = deletionGracePeriodSeconds; } - public V1ObjectMeta deletionTimestamp(OffsetDateTime deletionTimestamp) { + public V1ObjectMeta deletionTimestamp(@jakarta.annotation.Nullable OffsetDateTime deletionTimestamp) { this.deletionTimestamp = deletionTimestamp; return this; } - /** + /** * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata * @return deletionTimestamp - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") public OffsetDateTime getDeletionTimestamp() { return deletionTimestamp; } - public void setDeletionTimestamp(OffsetDateTime deletionTimestamp) { + public void setDeletionTimestamp(@jakarta.annotation.Nullable OffsetDateTime deletionTimestamp) { this.deletionTimestamp = deletionTimestamp; } - public V1ObjectMeta finalizers(List finalizers) { + public V1ObjectMeta finalizers(@jakarta.annotation.Nullable List finalizers) { this.finalizers = finalizers; return this; } @@ -224,62 +238,62 @@ public V1ObjectMeta addFinalizersItem(String finalizersItem) { return this; } - /** + /** * Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. * @return finalizers - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.") public List getFinalizers() { return finalizers; } - public void setFinalizers(List finalizers) { + public void setFinalizers(@jakarta.annotation.Nullable List finalizers) { this.finalizers = finalizers; } - public V1ObjectMeta generateName(String generateName) { + public V1ObjectMeta generateName(@jakarta.annotation.Nullable String generateName) { this.generateName = generateName; return this; } - /** + /** * GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency * @return generateName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency") public String getGenerateName() { return generateName; } - public void setGenerateName(String generateName) { + public void setGenerateName(@jakarta.annotation.Nullable String generateName) { this.generateName = generateName; } - public V1ObjectMeta generation(Long generation) { + public V1ObjectMeta generation(@jakarta.annotation.Nullable Long generation) { this.generation = generation; return this; } - /** + /** * A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. * @return generation - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.") public Long getGeneration() { return generation; } - public void setGeneration(Long generation) { + public void setGeneration(@jakarta.annotation.Nullable Long generation) { this.generation = generation; } - public V1ObjectMeta labels(Map labels) { + public V1ObjectMeta labels(@jakarta.annotation.Nullable Map labels) { this.labels = labels; return this; } @@ -292,22 +306,22 @@ public V1ObjectMeta putLabelsItem(String key, String labelsItem) { return this; } - /** + /** * Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels * @return labels - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels") public Map getLabels() { return labels; } - public void setLabels(Map labels) { + public void setLabels(@jakarta.annotation.Nullable Map labels) { this.labels = labels; } - public V1ObjectMeta managedFields(List managedFields) { + public V1ObjectMeta managedFields(@jakarta.annotation.Nullable List managedFields) { this.managedFields = managedFields; return this; } @@ -320,62 +334,62 @@ public V1ObjectMeta addManagedFieldsItem(V1ManagedFieldsEntry managedFieldsItem) return this; } - /** + /** * ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. * @return managedFields - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.") public List getManagedFields() { return managedFields; } - public void setManagedFields(List managedFields) { + public void setManagedFields(@jakarta.annotation.Nullable List managedFields) { this.managedFields = managedFields; } - public V1ObjectMeta name(String name) { + public V1ObjectMeta name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public V1ObjectMeta namespace(String namespace) { + public V1ObjectMeta namespace(@jakarta.annotation.Nullable String namespace) { this.namespace = namespace; return this; } - /** + /** * Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces * @return namespace - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces") public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { + public void setNamespace(@jakarta.annotation.Nullable String namespace) { this.namespace = namespace; } - public V1ObjectMeta ownerReferences(List ownerReferences) { + public V1ObjectMeta ownerReferences(@jakarta.annotation.Nullable List ownerReferences) { this.ownerReferences = ownerReferences; return this; } @@ -388,77 +402,77 @@ public V1ObjectMeta addOwnerReferencesItem(V1OwnerReference ownerReferencesItem) return this; } - /** + /** * List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. * @return ownerReferences - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.") public List getOwnerReferences() { return ownerReferences; } - public void setOwnerReferences(List ownerReferences) { + public void setOwnerReferences(@jakarta.annotation.Nullable List ownerReferences) { this.ownerReferences = ownerReferences; } - public V1ObjectMeta resourceVersion(String resourceVersion) { + public V1ObjectMeta resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } - /** + /** * An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency * @return resourceVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency") public String getResourceVersion() { return resourceVersion; } - public void setResourceVersion(String resourceVersion) { + public void setResourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; } - public V1ObjectMeta selfLink(String selfLink) { + public V1ObjectMeta selfLink(@jakarta.annotation.Nullable String selfLink) { this.selfLink = selfLink; return this; } - /** + /** * Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. * @return selfLink - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.") public String getSelfLink() { return selfLink; } - public void setSelfLink(String selfLink) { + public void setSelfLink(@jakarta.annotation.Nullable String selfLink) { this.selfLink = selfLink; } - public V1ObjectMeta uid(String uid) { + public V1ObjectMeta uid(@jakarta.annotation.Nullable String uid) { this.uid = uid; return this; } - /** + /** * UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids * @return uid - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids") public String getUid() { return uid; } - public void setUid(String uid) { + public void setUid(@jakarta.annotation.Nullable String uid) { this.uid = uid; } @@ -556,12 +570,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ObjectMeta - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ObjectMeta + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ObjectMeta.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -658,22 +672,22 @@ public V1ObjectMeta read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ObjectMeta given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ObjectMeta - * @throws IOException if the JSON string is invalid with respect to V1ObjectMeta - */ + /** + * Create an instance of V1ObjectMeta given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ObjectMeta + * @throws IOException if the JSON string is invalid with respect to V1ObjectMeta + */ public static V1ObjectMeta fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ObjectMeta.class); } - /** - * Convert an instance of V1ObjectMeta to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ObjectMeta to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java index 6fc9cb0a00..608caae2d0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,175 +50,182 @@ * ObjectReference contains enough information to let you inspect or modify the referred object. */ @ApiModel(description = "ObjectReference contains enough information to let you inspect or modify the referred object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_FIELD_PATH = "fieldPath"; @SerializedName(SERIALIZED_NAME_FIELD_PATH) + @jakarta.annotation.Nullable private String fieldPath; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) + @jakarta.annotation.Nullable private String namespace; public static final String SERIALIZED_NAME_RESOURCE_VERSION = "resourceVersion"; @SerializedName(SERIALIZED_NAME_RESOURCE_VERSION) + @jakarta.annotation.Nullable private String resourceVersion; public static final String SERIALIZED_NAME_UID = "uid"; @SerializedName(SERIALIZED_NAME_UID) + @jakarta.annotation.Nullable private String uid; public V1ObjectReference() { } - public V1ObjectReference apiVersion(String apiVersion) { + public V1ObjectReference apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * API version of the referent. * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "API version of the referent.") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ObjectReference fieldPath(String fieldPath) { + public V1ObjectReference fieldPath(@jakarta.annotation.Nullable String fieldPath) { this.fieldPath = fieldPath; return this; } - /** + /** * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. * @return fieldPath - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.") public String getFieldPath() { return fieldPath; } - public void setFieldPath(String fieldPath) { + public void setFieldPath(@jakarta.annotation.Nullable String fieldPath) { this.fieldPath = fieldPath; } - public V1ObjectReference kind(String kind) { + public V1ObjectReference kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ObjectReference name(String name) { + public V1ObjectReference name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public V1ObjectReference namespace(String namespace) { + public V1ObjectReference namespace(@jakarta.annotation.Nullable String namespace) { this.namespace = namespace; return this; } - /** + /** * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ * @return namespace - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/") public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { + public void setNamespace(@jakarta.annotation.Nullable String namespace) { this.namespace = namespace; } - public V1ObjectReference resourceVersion(String resourceVersion) { + public V1ObjectReference resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } - /** + /** * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency * @return resourceVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency") public String getResourceVersion() { return resourceVersion; } - public void setResourceVersion(String resourceVersion) { + public void setResourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; } - public V1ObjectReference uid(String uid) { + public V1ObjectReference uid(@jakarta.annotation.Nullable String uid) { this.uid = uid; return this; } - /** + /** * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids * @return uid - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids") public String getUid() { return uid; } - public void setUid(String uid) { + public void setUid(@jakarta.annotation.Nullable String uid) { this.uid = uid; } @@ -293,12 +299,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ObjectReference - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ObjectReference + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -366,22 +372,22 @@ public V1ObjectReference read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ObjectReference given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ObjectReference - * @throws IOException if the JSON string is invalid with respect to V1ObjectReference - */ + /** + * Create an instance of V1ObjectReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ObjectReference + * @throws IOException if the JSON string is invalid with respect to V1ObjectReference + */ public static V1ObjectReference fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ObjectReference.class); } - /** - * Convert an instance of V1ObjectReference to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ObjectReference to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java index dbe8d71a6b..74a0b4effc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,16 +53,17 @@ * Overhead structure represents the resource overhead associated with running a pod. */ @ApiModel(description = "Overhead structure represents the resource overhead associated with running a pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Overhead { public static final String SERIALIZED_NAME_POD_FIXED = "podFixed"; @SerializedName(SERIALIZED_NAME_POD_FIXED) + @jakarta.annotation.Nullable private Map podFixed = new HashMap<>(); public V1Overhead() { } - public V1Overhead podFixed(Map podFixed) { + public V1Overhead podFixed(@jakarta.annotation.Nullable Map podFixed) { this.podFixed = podFixed; return this; } @@ -76,17 +76,17 @@ public V1Overhead putPodFixedItem(String key, Quantity podFixedItem) { return this; } - /** + /** * podFixed represents the fixed resource overhead associated with running a pod. * @return podFixed - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "podFixed represents the fixed resource overhead associated with running a pod.") public Map getPodFixed() { return podFixed; } - public void setPodFixed(Map podFixed) { + public void setPodFixed(@jakarta.annotation.Nullable Map podFixed) { this.podFixed = podFixed; } @@ -142,12 +142,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Overhead - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Overhead + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Overhead.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -194,22 +194,22 @@ public V1Overhead read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Overhead given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Overhead - * @throws IOException if the JSON string is invalid with respect to V1Overhead - */ + /** + * Create an instance of V1Overhead given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Overhead + * @throws IOException if the JSON string is invalid with respect to V1Overhead + */ public static V1Overhead fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Overhead.class); } - /** - * Convert an instance of V1Overhead to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Overhead to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java index 06ab0449b4..4349adc1dc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,151 +50,157 @@ * OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field. */ @ApiModel(description = "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1OwnerReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nonnull private String apiVersion; public static final String SERIALIZED_NAME_BLOCK_OWNER_DELETION = "blockOwnerDeletion"; @SerializedName(SERIALIZED_NAME_BLOCK_OWNER_DELETION) + @jakarta.annotation.Nullable private Boolean blockOwnerDeletion; public static final String SERIALIZED_NAME_CONTROLLER = "controller"; @SerializedName(SERIALIZED_NAME_CONTROLLER) + @jakarta.annotation.Nullable private Boolean controller; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nonnull private String kind; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_UID = "uid"; @SerializedName(SERIALIZED_NAME_UID) + @jakarta.annotation.Nonnull private String uid; public V1OwnerReference() { } - public V1OwnerReference apiVersion(String apiVersion) { + public V1OwnerReference apiVersion(@jakarta.annotation.Nonnull String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * API version of the referent. * @return apiVersion - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "API version of the referent.") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nonnull String apiVersion) { this.apiVersion = apiVersion; } - public V1OwnerReference blockOwnerDeletion(Boolean blockOwnerDeletion) { + public V1OwnerReference blockOwnerDeletion(@jakarta.annotation.Nullable Boolean blockOwnerDeletion) { this.blockOwnerDeletion = blockOwnerDeletion; return this; } - /** + /** * If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. * @return blockOwnerDeletion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.") public Boolean getBlockOwnerDeletion() { return blockOwnerDeletion; } - public void setBlockOwnerDeletion(Boolean blockOwnerDeletion) { + public void setBlockOwnerDeletion(@jakarta.annotation.Nullable Boolean blockOwnerDeletion) { this.blockOwnerDeletion = blockOwnerDeletion; } - public V1OwnerReference controller(Boolean controller) { + public V1OwnerReference controller(@jakarta.annotation.Nullable Boolean controller) { this.controller = controller; return this; } - /** + /** * If true, this reference points to the managing controller. * @return controller - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "If true, this reference points to the managing controller.") public Boolean getController() { return controller; } - public void setController(Boolean controller) { + public void setController(@jakarta.annotation.Nullable Boolean controller) { this.controller = controller; } - public V1OwnerReference kind(String kind) { + public V1OwnerReference kind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; return this; } - /** + /** * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; } - public V1OwnerReference name(String name) { + public V1OwnerReference name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1OwnerReference uid(String uid) { + public V1OwnerReference uid(@jakarta.annotation.Nonnull String uid) { this.uid = uid; return this; } - /** + /** * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids * @return uid - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids") public String getUid() { return uid; } - public void setUid(String uid) { + public void setUid(@jakarta.annotation.Nonnull String uid) { this.uid = uid; } @@ -270,12 +275,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("uid"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1OwnerReference - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1OwnerReference + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1OwnerReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -341,22 +346,22 @@ public V1OwnerReference read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1OwnerReference given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1OwnerReference - * @throws IOException if the JSON string is invalid with respect to V1OwnerReference - */ + /** + * Create an instance of V1OwnerReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1OwnerReference + * @throws IOException if the JSON string is invalid with respect to V1OwnerReference + */ public static V1OwnerReference fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1OwnerReference.class); } - /** - * Convert an instance of V1OwnerReference to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1OwnerReference to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java index ca9995b7d9..7411f45ea7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * ParamKind is a tuple of Group Kind and Version. */ @ApiModel(description = "ParamKind is a tuple of Group Kind and Version.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ParamKind { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public V1ParamKind() { } - public V1ParamKind apiVersion(String apiVersion) { + public V1ParamKind apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion is the API group version the resources belong to. In format of \"group/version\". Required. * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ParamKind kind(String kind) { + public V1ParamKind kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is the API kind the resources belong to. Required. * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is the API kind the resources belong to. Required.") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } @@ -158,12 +159,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ParamKind - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ParamKind + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ParamKind.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -216,22 +217,22 @@ public V1ParamKind read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ParamKind given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ParamKind - * @throws IOException if the JSON string is invalid with respect to V1ParamKind - */ + /** + * Create an instance of V1ParamKind given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ParamKind + * @throws IOException if the JSON string is invalid with respect to V1ParamKind + */ public static V1ParamKind fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ParamKind.class); } - /** - * Convert an instance of V1ParamKind to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ParamKind to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java index fe679059af..cfba226d25 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,103 +51,107 @@ * ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. */ @ApiModel(description = "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ParamRef { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) + @jakarta.annotation.Nullable private String namespace; public static final String SERIALIZED_NAME_PARAMETER_NOT_FOUND_ACTION = "parameterNotFoundAction"; @SerializedName(SERIALIZED_NAME_PARAMETER_NOT_FOUND_ACTION) + @jakarta.annotation.Nullable private String parameterNotFoundAction; public static final String SERIALIZED_NAME_SELECTOR = "selector"; @SerializedName(SERIALIZED_NAME_SELECTOR) + @jakarta.annotation.Nullable private V1LabelSelector selector; public V1ParamRef() { } - public V1ParamRef name(String name) { + public V1ParamRef name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * name is the name of the resource being referenced. One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. A single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped. * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "name is the name of the resource being referenced. One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. A single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public V1ParamRef namespace(String namespace) { + public V1ParamRef namespace(@jakarta.annotation.Nullable String namespace) { this.namespace = namespace; return this; } - /** + /** * namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. * @return namespace - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.") public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { + public void setNamespace(@jakarta.annotation.Nullable String namespace) { this.namespace = namespace; } - public V1ParamRef parameterNotFoundAction(String parameterNotFoundAction) { + public V1ParamRef parameterNotFoundAction(@jakarta.annotation.Nullable String parameterNotFoundAction) { this.parameterNotFoundAction = parameterNotFoundAction; return this; } - /** + /** * `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Required * @return parameterNotFoundAction - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Required") public String getParameterNotFoundAction() { return parameterNotFoundAction; } - public void setParameterNotFoundAction(String parameterNotFoundAction) { + public void setParameterNotFoundAction(@jakarta.annotation.Nullable String parameterNotFoundAction) { this.parameterNotFoundAction = parameterNotFoundAction; } - public V1ParamRef selector(V1LabelSelector selector) { + public V1ParamRef selector(@jakarta.annotation.Nullable V1LabelSelector selector) { this.selector = selector; return this; } - /** + /** * Get selector * @return selector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LabelSelector getSelector() { return selector; } - public void setSelector(V1LabelSelector selector) { + public void setSelector(@jakarta.annotation.Nullable V1LabelSelector selector) { this.selector = selector; } @@ -213,12 +216,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ParamRef - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ParamRef + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ParamRef.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -278,22 +281,22 @@ public V1ParamRef read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ParamRef given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ParamRef - * @throws IOException if the JSON string is invalid with respect to V1ParamRef - */ + /** + * Create an instance of V1ParamRef given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ParamRef + * @throws IOException if the JSON string is invalid with respect to V1ParamRef + */ public static V1ParamRef fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ParamRef.class); } - /** - * Convert an instance of V1ParamRef to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ParamRef to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParentReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParentReference.java new file mode 100644 index 0000000000..58f7e929d4 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParentReference.java @@ -0,0 +1,310 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * ParentReference describes a reference to a parent object. + */ +@ApiModel(description = "ParentReference describes a reference to a parent object.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1ParentReference { + public static final String SERIALIZED_NAME_GROUP = "group"; + @SerializedName(SERIALIZED_NAME_GROUP) + @jakarta.annotation.Nullable + private String group; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull + private String name; + + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + @jakarta.annotation.Nullable + private String namespace; + + public static final String SERIALIZED_NAME_RESOURCE = "resource"; + @SerializedName(SERIALIZED_NAME_RESOURCE) + @jakarta.annotation.Nonnull + private String resource; + + public V1ParentReference() { + } + + public V1ParentReference group(@jakarta.annotation.Nullable String group) { + this.group = group; + return this; + } + + /** + * Group is the group of the object being referenced. + * @return group + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Group is the group of the object being referenced.") + public String getGroup() { + return group; + } + + public void setGroup(@jakarta.annotation.Nullable String group) { + this.group = group; + } + + + public V1ParentReference name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * Name is the name of the object being referenced. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is the name of the object being referenced.") + public String getName() { + return name; + } + + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + + public V1ParentReference namespace(@jakarta.annotation.Nullable String namespace) { + this.namespace = namespace; + return this; + } + + /** + * Namespace is the namespace of the object being referenced. + * @return namespace + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Namespace is the namespace of the object being referenced.") + public String getNamespace() { + return namespace; + } + + public void setNamespace(@jakarta.annotation.Nullable String namespace) { + this.namespace = namespace; + } + + + public V1ParentReference resource(@jakarta.annotation.Nonnull String resource) { + this.resource = resource; + return this; + } + + /** + * Resource is the resource of the object being referenced. + * @return resource + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Resource is the resource of the object being referenced.") + public String getResource() { + return resource; + } + + public void setResource(@jakarta.annotation.Nonnull String resource) { + this.resource = resource; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ParentReference v1ParentReference = (V1ParentReference) o; + return Objects.equals(this.group, v1ParentReference.group) && + Objects.equals(this.name, v1ParentReference.name) && + Objects.equals(this.namespace, v1ParentReference.namespace) && + Objects.equals(this.resource, v1ParentReference.resource); + } + + @Override + public int hashCode() { + return Objects.hash(group, name, namespace, resource); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ParentReference {\n"); + sb.append(" group: ").append(toIndentedString(group)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("group"); + openapiFields.add("name"); + openapiFields.add("namespace"); + openapiFields.add("resource"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("resource"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ParentReference + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1ParentReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ParentReference is not found in the empty JSON string", V1ParentReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1ParentReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ParentReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ParentReference.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) && !jsonObj.get("group").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); + } + if (!jsonObj.get("resource").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `resource` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ParentReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ParentReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ParentReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ParentReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ParentReference read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ParentReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ParentReference + * @throws IOException if the JSON string is invalid with respect to V1ParentReference + */ + public static V1ParentReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ParentReference.class); + } + + /** + * Convert an instance of V1ParentReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java index 78f4410244..7bc14bd6f3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes */ @ApiModel(description = "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PersistentVolume implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1PersistentVolumeSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1PersistentVolumeStatus status; public V1PersistentVolume() { } - public V1PersistentVolume apiVersion(String apiVersion) { + public V1PersistentVolume apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1PersistentVolume kind(String kind) { + public V1PersistentVolume kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1PersistentVolume metadata(V1ObjectMeta metadata) { + public V1PersistentVolume metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1PersistentVolume spec(V1PersistentVolumeSpec spec) { + public V1PersistentVolume spec(@jakarta.annotation.Nullable V1PersistentVolumeSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PersistentVolumeSpec getSpec() { return spec; } - public void setSpec(V1PersistentVolumeSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1PersistentVolumeSpec spec) { this.spec = spec; } - public V1PersistentVolume status(V1PersistentVolumeStatus status) { + public V1PersistentVolume status(@jakarta.annotation.Nullable V1PersistentVolumeStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PersistentVolumeStatus getStatus() { return status; } - public void setStatus(V1PersistentVolumeStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1PersistentVolumeStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PersistentVolume - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PersistentVolume + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PersistentVolume.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1PersistentVolume read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PersistentVolume given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PersistentVolume - * @throws IOException if the JSON string is invalid with respect to V1PersistentVolume - */ + /** + * Create an instance of V1PersistentVolume given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PersistentVolume + * @throws IOException if the JSON string is invalid with respect to V1PersistentVolume + */ public static V1PersistentVolume fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PersistentVolume.class); } - /** - * Convert an instance of V1PersistentVolume to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PersistentVolume to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java index 00e5d76b74..1383cdfa95 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * PersistentVolumeClaim is a user's request for and claim to a persistent volume */ @ApiModel(description = "PersistentVolumeClaim is a user's request for and claim to a persistent volume") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PersistentVolumeClaim implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1PersistentVolumeClaimSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1PersistentVolumeClaimStatus status; public V1PersistentVolumeClaim() { } - public V1PersistentVolumeClaim apiVersion(String apiVersion) { + public V1PersistentVolumeClaim apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1PersistentVolumeClaim kind(String kind) { + public V1PersistentVolumeClaim kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1PersistentVolumeClaim metadata(V1ObjectMeta metadata) { + public V1PersistentVolumeClaim metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1PersistentVolumeClaim spec(V1PersistentVolumeClaimSpec spec) { + public V1PersistentVolumeClaim spec(@jakarta.annotation.Nullable V1PersistentVolumeClaimSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PersistentVolumeClaimSpec getSpec() { return spec; } - public void setSpec(V1PersistentVolumeClaimSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1PersistentVolumeClaimSpec spec) { this.spec = spec; } - public V1PersistentVolumeClaim status(V1PersistentVolumeClaimStatus status) { + public V1PersistentVolumeClaim status(@jakarta.annotation.Nullable V1PersistentVolumeClaimStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PersistentVolumeClaimStatus getStatus() { return status; } - public void setStatus(V1PersistentVolumeClaimStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1PersistentVolumeClaimStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PersistentVolumeClaim - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PersistentVolumeClaim + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PersistentVolumeClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1PersistentVolumeClaim read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PersistentVolumeClaim given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PersistentVolumeClaim - * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeClaim - */ + /** + * Create an instance of V1PersistentVolumeClaim given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PersistentVolumeClaim + * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeClaim + */ public static V1PersistentVolumeClaim fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PersistentVolumeClaim.class); } - /** - * Convert an instance of V1PersistentVolumeClaim to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PersistentVolumeClaim to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java index 57aad329e3..6b815d828a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,151 +51,157 @@ * PersistentVolumeClaimCondition contains details about state of pvc */ @ApiModel(description = "PersistentVolumeClaimCondition contains details about state of pvc") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PersistentVolumeClaimCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastProbeTime; public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nonnull private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1PersistentVolumeClaimCondition() { } - public V1PersistentVolumeClaimCondition lastProbeTime(OffsetDateTime lastProbeTime) { + public V1PersistentVolumeClaimCondition lastProbeTime(@jakarta.annotation.Nullable OffsetDateTime lastProbeTime) { this.lastProbeTime = lastProbeTime; return this; } - /** + /** * lastProbeTime is the time we probed the condition. * @return lastProbeTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "lastProbeTime is the time we probed the condition.") public OffsetDateTime getLastProbeTime() { return lastProbeTime; } - public void setLastProbeTime(OffsetDateTime lastProbeTime) { + public void setLastProbeTime(@jakarta.annotation.Nullable OffsetDateTime lastProbeTime) { this.lastProbeTime = lastProbeTime; } - public V1PersistentVolumeClaimCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { + public V1PersistentVolumeClaimCondition lastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; } - /** + /** * lastTransitionTime is the time the condition transitioned from one status to another. * @return lastTransitionTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "lastTransitionTime is the time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { + public void setLastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } - public V1PersistentVolumeClaimCondition message(String message) { + public V1PersistentVolumeClaimCondition message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * message is the human-readable message indicating details about last transition. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "message is the human-readable message indicating details about last transition.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1PersistentVolumeClaimCondition reason(String reason) { + public V1PersistentVolumeClaimCondition reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"Resizing\" that means the underlying persistent volume is being resized. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"Resizing\" that means the underlying persistent volume is being resized.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } - public V1PersistentVolumeClaimCondition status(String status) { + public V1PersistentVolumeClaimCondition status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } - /** + /** * Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=state%20of%20pvc-,conditions.status,-(string)%2C%20required * @return status - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=state%20of%20pvc-,conditions.status,-(string)%2C%20required") public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public V1PersistentVolumeClaimCondition type(String type) { + public V1PersistentVolumeClaimCondition type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * Type is the type of the condition. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=set%20to%20%27ResizeStarted%27.-,PersistentVolumeClaimCondition,-contains%20details%20about * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Type is the type of the condition. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=set%20to%20%27ResizeStarted%27.-,PersistentVolumeClaimCondition,-contains%20details%20about") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -269,12 +274,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PersistentVolumeClaimCondition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PersistentVolumeClaimCondition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PersistentVolumeClaimCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -340,22 +345,22 @@ public V1PersistentVolumeClaimCondition read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PersistentVolumeClaimCondition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PersistentVolumeClaimCondition - * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeClaimCondition - */ + /** + * Create an instance of V1PersistentVolumeClaimCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PersistentVolumeClaimCondition + * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeClaimCondition + */ public static V1PersistentVolumeClaimCondition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PersistentVolumeClaimCondition.class); } - /** - * Convert an instance of V1PersistentVolumeClaimCondition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PersistentVolumeClaimCondition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimList.java index 6e5d5bdaf4..9c2bf71693 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * PersistentVolumeClaimList is a list of PersistentVolumeClaim items. */ @ApiModel(description = "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PersistentVolumeClaimList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1PersistentVolumeClaimList() { } - public V1PersistentVolumeClaimList apiVersion(String apiVersion) { + public V1PersistentVolumeClaimList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1PersistentVolumeClaimList items(List items) { + public V1PersistentVolumeClaimList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1PersistentVolumeClaimList addItemsItem(V1PersistentVolumeClaim itemsIte return this; } - /** + /** * items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1PersistentVolumeClaimList kind(String kind) { + public V1PersistentVolumeClaimList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1PersistentVolumeClaimList metadata(V1ListMeta metadata) { + public V1PersistentVolumeClaimList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PersistentVolumeClaimList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PersistentVolumeClaimList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PersistentVolumeClaimList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1PersistentVolumeClaimList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PersistentVolumeClaimList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PersistentVolumeClaimList - * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeClaimList - */ + /** + * Create an instance of V1PersistentVolumeClaimList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PersistentVolumeClaimList + * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeClaimList + */ public static V1PersistentVolumeClaimList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PersistentVolumeClaimList.class); } - /** - * Convert an instance of V1PersistentVolumeClaimList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PersistentVolumeClaimList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpec.java index cfa91152fe..dddf291274 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpec.java @@ -44,7 +44,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -57,48 +56,57 @@ * PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes */ @ApiModel(description = "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PersistentVolumeClaimSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) + @jakarta.annotation.Nullable private List accessModes = new ArrayList<>(); public static final String SERIALIZED_NAME_DATA_SOURCE = "dataSource"; @SerializedName(SERIALIZED_NAME_DATA_SOURCE) + @jakarta.annotation.Nullable private V1TypedLocalObjectReference dataSource; public static final String SERIALIZED_NAME_DATA_SOURCE_REF = "dataSourceRef"; @SerializedName(SERIALIZED_NAME_DATA_SOURCE_REF) + @jakarta.annotation.Nullable private V1TypedObjectReference dataSourceRef; public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) + @jakarta.annotation.Nullable private V1VolumeResourceRequirements resources; public static final String SERIALIZED_NAME_SELECTOR = "selector"; @SerializedName(SERIALIZED_NAME_SELECTOR) + @jakarta.annotation.Nullable private V1LabelSelector selector; public static final String SERIALIZED_NAME_STORAGE_CLASS_NAME = "storageClassName"; @SerializedName(SERIALIZED_NAME_STORAGE_CLASS_NAME) + @jakarta.annotation.Nullable private String storageClassName; public static final String SERIALIZED_NAME_VOLUME_ATTRIBUTES_CLASS_NAME = "volumeAttributesClassName"; @SerializedName(SERIALIZED_NAME_VOLUME_ATTRIBUTES_CLASS_NAME) + @jakarta.annotation.Nullable private String volumeAttributesClassName; public static final String SERIALIZED_NAME_VOLUME_MODE = "volumeMode"; @SerializedName(SERIALIZED_NAME_VOLUME_MODE) + @jakarta.annotation.Nullable private String volumeMode; public static final String SERIALIZED_NAME_VOLUME_NAME = "volumeName"; @SerializedName(SERIALIZED_NAME_VOLUME_NAME) + @jakarta.annotation.Nullable private String volumeName; public V1PersistentVolumeClaimSpec() { } - public V1PersistentVolumeClaimSpec accessModes(List accessModes) { + public V1PersistentVolumeClaimSpec accessModes(@jakarta.annotation.Nullable List accessModes) { this.accessModes = accessModes; return this; } @@ -111,177 +119,177 @@ public V1PersistentVolumeClaimSpec addAccessModesItem(String accessModesItem) { return this; } - /** + /** * accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 * @return accessModes - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1") public List getAccessModes() { return accessModes; } - public void setAccessModes(List accessModes) { + public void setAccessModes(@jakarta.annotation.Nullable List accessModes) { this.accessModes = accessModes; } - public V1PersistentVolumeClaimSpec dataSource(V1TypedLocalObjectReference dataSource) { + public V1PersistentVolumeClaimSpec dataSource(@jakarta.annotation.Nullable V1TypedLocalObjectReference dataSource) { this.dataSource = dataSource; return this; } - /** + /** * Get dataSource * @return dataSource - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1TypedLocalObjectReference getDataSource() { return dataSource; } - public void setDataSource(V1TypedLocalObjectReference dataSource) { + public void setDataSource(@jakarta.annotation.Nullable V1TypedLocalObjectReference dataSource) { this.dataSource = dataSource; } - public V1PersistentVolumeClaimSpec dataSourceRef(V1TypedObjectReference dataSourceRef) { + public V1PersistentVolumeClaimSpec dataSourceRef(@jakarta.annotation.Nullable V1TypedObjectReference dataSourceRef) { this.dataSourceRef = dataSourceRef; return this; } - /** + /** * Get dataSourceRef * @return dataSourceRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1TypedObjectReference getDataSourceRef() { return dataSourceRef; } - public void setDataSourceRef(V1TypedObjectReference dataSourceRef) { + public void setDataSourceRef(@jakarta.annotation.Nullable V1TypedObjectReference dataSourceRef) { this.dataSourceRef = dataSourceRef; } - public V1PersistentVolumeClaimSpec resources(V1VolumeResourceRequirements resources) { + public V1PersistentVolumeClaimSpec resources(@jakarta.annotation.Nullable V1VolumeResourceRequirements resources) { this.resources = resources; return this; } - /** + /** * Get resources * @return resources - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1VolumeResourceRequirements getResources() { return resources; } - public void setResources(V1VolumeResourceRequirements resources) { + public void setResources(@jakarta.annotation.Nullable V1VolumeResourceRequirements resources) { this.resources = resources; } - public V1PersistentVolumeClaimSpec selector(V1LabelSelector selector) { + public V1PersistentVolumeClaimSpec selector(@jakarta.annotation.Nullable V1LabelSelector selector) { this.selector = selector; return this; } - /** + /** * Get selector * @return selector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LabelSelector getSelector() { return selector; } - public void setSelector(V1LabelSelector selector) { + public void setSelector(@jakarta.annotation.Nullable V1LabelSelector selector) { this.selector = selector; } - public V1PersistentVolumeClaimSpec storageClassName(String storageClassName) { + public V1PersistentVolumeClaimSpec storageClassName(@jakarta.annotation.Nullable String storageClassName) { this.storageClassName = storageClassName; return this; } - /** + /** * storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 * @return storageClassName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1") public String getStorageClassName() { return storageClassName; } - public void setStorageClassName(String storageClassName) { + public void setStorageClassName(@jakarta.annotation.Nullable String storageClassName) { this.storageClassName = storageClassName; } - public V1PersistentVolumeClaimSpec volumeAttributesClassName(String volumeAttributesClassName) { + public V1PersistentVolumeClaimSpec volumeAttributesClassName(@jakarta.annotation.Nullable String volumeAttributesClassName) { this.volumeAttributesClassName = volumeAttributesClassName; return this; } - /** + /** * volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). * @return volumeAttributesClassName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).") public String getVolumeAttributesClassName() { return volumeAttributesClassName; } - public void setVolumeAttributesClassName(String volumeAttributesClassName) { + public void setVolumeAttributesClassName(@jakarta.annotation.Nullable String volumeAttributesClassName) { this.volumeAttributesClassName = volumeAttributesClassName; } - public V1PersistentVolumeClaimSpec volumeMode(String volumeMode) { + public V1PersistentVolumeClaimSpec volumeMode(@jakarta.annotation.Nullable String volumeMode) { this.volumeMode = volumeMode; return this; } - /** + /** * volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. * @return volumeMode - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.") public String getVolumeMode() { return volumeMode; } - public void setVolumeMode(String volumeMode) { + public void setVolumeMode(@jakarta.annotation.Nullable String volumeMode) { this.volumeMode = volumeMode; } - public V1PersistentVolumeClaimSpec volumeName(String volumeName) { + public V1PersistentVolumeClaimSpec volumeName(@jakarta.annotation.Nullable String volumeName) { this.volumeName = volumeName; return this; } - /** + /** * volumeName is the binding reference to the PersistentVolume backing this claim. * @return volumeName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "volumeName is the binding reference to the PersistentVolume backing this claim.") public String getVolumeName() { return volumeName; } - public void setVolumeName(String volumeName) { + public void setVolumeName(@jakarta.annotation.Nullable String volumeName) { this.volumeName = volumeName; } @@ -361,12 +369,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PersistentVolumeClaimSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PersistentVolumeClaimSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PersistentVolumeClaimSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -445,22 +453,22 @@ public V1PersistentVolumeClaimSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PersistentVolumeClaimSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PersistentVolumeClaimSpec - * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeClaimSpec - */ + /** + * Create an instance of V1PersistentVolumeClaimSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PersistentVolumeClaimSpec + * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeClaimSpec + */ public static V1PersistentVolumeClaimSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PersistentVolumeClaimSpec.class); } - /** - * Convert an instance of V1PersistentVolumeClaimSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PersistentVolumeClaimSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatus.java index e6c173906d..9530e8ee76 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatus.java @@ -45,7 +45,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -58,44 +57,52 @@ * PersistentVolumeClaimStatus is the current status of a persistent volume claim. */ @ApiModel(description = "PersistentVolumeClaimStatus is the current status of a persistent volume claim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PersistentVolumeClaimStatus { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) + @jakarta.annotation.Nullable private List accessModes = new ArrayList<>(); public static final String SERIALIZED_NAME_ALLOCATED_RESOURCE_STATUSES = "allocatedResourceStatuses"; @SerializedName(SERIALIZED_NAME_ALLOCATED_RESOURCE_STATUSES) + @jakarta.annotation.Nullable private Map allocatedResourceStatuses = new HashMap<>(); public static final String SERIALIZED_NAME_ALLOCATED_RESOURCES = "allocatedResources"; @SerializedName(SERIALIZED_NAME_ALLOCATED_RESOURCES) + @jakarta.annotation.Nullable private Map allocatedResources = new HashMap<>(); public static final String SERIALIZED_NAME_CAPACITY = "capacity"; @SerializedName(SERIALIZED_NAME_CAPACITY) + @jakarta.annotation.Nullable private Map capacity = new HashMap<>(); public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); public static final String SERIALIZED_NAME_CURRENT_VOLUME_ATTRIBUTES_CLASS_NAME = "currentVolumeAttributesClassName"; @SerializedName(SERIALIZED_NAME_CURRENT_VOLUME_ATTRIBUTES_CLASS_NAME) + @jakarta.annotation.Nullable private String currentVolumeAttributesClassName; public static final String SERIALIZED_NAME_MODIFY_VOLUME_STATUS = "modifyVolumeStatus"; @SerializedName(SERIALIZED_NAME_MODIFY_VOLUME_STATUS) + @jakarta.annotation.Nullable private V1ModifyVolumeStatus modifyVolumeStatus; public static final String SERIALIZED_NAME_PHASE = "phase"; @SerializedName(SERIALIZED_NAME_PHASE) + @jakarta.annotation.Nullable private String phase; public V1PersistentVolumeClaimStatus() { } - public V1PersistentVolumeClaimStatus accessModes(List accessModes) { + public V1PersistentVolumeClaimStatus accessModes(@jakarta.annotation.Nullable List accessModes) { this.accessModes = accessModes; return this; } @@ -108,22 +115,22 @@ public V1PersistentVolumeClaimStatus addAccessModesItem(String accessModesItem) return this; } - /** + /** * accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 * @return accessModes - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1") public List getAccessModes() { return accessModes; } - public void setAccessModes(List accessModes) { + public void setAccessModes(@jakarta.annotation.Nullable List accessModes) { this.accessModes = accessModes; } - public V1PersistentVolumeClaimStatus allocatedResourceStatuses(Map allocatedResourceStatuses) { + public V1PersistentVolumeClaimStatus allocatedResourceStatuses(@jakarta.annotation.Nullable Map allocatedResourceStatuses) { this.allocatedResourceStatuses = allocatedResourceStatuses; return this; } @@ -136,22 +143,22 @@ public V1PersistentVolumeClaimStatus putAllocatedResourceStatusesItem(String key return this; } - /** + /** * allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. ClaimResourceStatus can be in any of following states: - ControllerResizeInProgress: State set when resize controller starts resizing the volume in control-plane. - ControllerResizeFailed: State set when resize has failed in resize controller with a terminal error. - NodeResizePending: State set when resize controller has finished resizing the volume but further resizing of volume is needed on the node. - NodeResizeInProgress: State set when kubelet starts resizing the volume. - NodeResizeFailed: State set when resizing has failed in kubelet with a terminal error. Transient errors don't set NodeResizeFailed. For example: if expanding a PVC for more capacity - this field can be one of the following states: - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\" - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\" - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\" - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\" - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\" When this field is not set, it means that no resize operation is in progress for the given PVC. A controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. * @return allocatedResourceStatuses - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. ClaimResourceStatus can be in any of following states: - ControllerResizeInProgress: State set when resize controller starts resizing the volume in control-plane. - ControllerResizeFailed: State set when resize has failed in resize controller with a terminal error. - NodeResizePending: State set when resize controller has finished resizing the volume but further resizing of volume is needed on the node. - NodeResizeInProgress: State set when kubelet starts resizing the volume. - NodeResizeFailed: State set when resizing has failed in kubelet with a terminal error. Transient errors don't set NodeResizeFailed. For example: if expanding a PVC for more capacity - this field can be one of the following states: - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\" - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\" - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\" - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\" - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\" When this field is not set, it means that no resize operation is in progress for the given PVC. A controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.") public Map getAllocatedResourceStatuses() { return allocatedResourceStatuses; } - public void setAllocatedResourceStatuses(Map allocatedResourceStatuses) { + public void setAllocatedResourceStatuses(@jakarta.annotation.Nullable Map allocatedResourceStatuses) { this.allocatedResourceStatuses = allocatedResourceStatuses; } - public V1PersistentVolumeClaimStatus allocatedResources(Map allocatedResources) { + public V1PersistentVolumeClaimStatus allocatedResources(@jakarta.annotation.Nullable Map allocatedResources) { this.allocatedResources = allocatedResources; return this; } @@ -164,22 +171,22 @@ public V1PersistentVolumeClaimStatus putAllocatedResourcesItem(String key, Quant return this; } - /** + /** * allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. Capacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. A controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. * @return allocatedResources - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. Capacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. A controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.") public Map getAllocatedResources() { return allocatedResources; } - public void setAllocatedResources(Map allocatedResources) { + public void setAllocatedResources(@jakarta.annotation.Nullable Map allocatedResources) { this.allocatedResources = allocatedResources; } - public V1PersistentVolumeClaimStatus capacity(Map capacity) { + public V1PersistentVolumeClaimStatus capacity(@jakarta.annotation.Nullable Map capacity) { this.capacity = capacity; return this; } @@ -192,22 +199,22 @@ public V1PersistentVolumeClaimStatus putCapacityItem(String key, Quantity capaci return this; } - /** + /** * capacity represents the actual resources of the underlying volume. * @return capacity - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "capacity represents the actual resources of the underlying volume.") public Map getCapacity() { return capacity; } - public void setCapacity(Map capacity) { + public void setCapacity(@jakarta.annotation.Nullable Map capacity) { this.capacity = capacity; } - public V1PersistentVolumeClaimStatus conditions(List conditions) { + public V1PersistentVolumeClaimStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } @@ -220,77 +227,77 @@ public V1PersistentVolumeClaimStatus addConditionsItem(V1PersistentVolumeClaimCo return this; } - /** + /** * conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'. * @return conditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.") public List getConditions() { return conditions; } - public void setConditions(List conditions) { + public void setConditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; } - public V1PersistentVolumeClaimStatus currentVolumeAttributesClassName(String currentVolumeAttributesClassName) { + public V1PersistentVolumeClaimStatus currentVolumeAttributesClassName(@jakarta.annotation.Nullable String currentVolumeAttributesClassName) { this.currentVolumeAttributesClassName = currentVolumeAttributesClassName; return this; } - /** + /** * currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default). * @return currentVolumeAttributesClassName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default).") public String getCurrentVolumeAttributesClassName() { return currentVolumeAttributesClassName; } - public void setCurrentVolumeAttributesClassName(String currentVolumeAttributesClassName) { + public void setCurrentVolumeAttributesClassName(@jakarta.annotation.Nullable String currentVolumeAttributesClassName) { this.currentVolumeAttributesClassName = currentVolumeAttributesClassName; } - public V1PersistentVolumeClaimStatus modifyVolumeStatus(V1ModifyVolumeStatus modifyVolumeStatus) { + public V1PersistentVolumeClaimStatus modifyVolumeStatus(@jakarta.annotation.Nullable V1ModifyVolumeStatus modifyVolumeStatus) { this.modifyVolumeStatus = modifyVolumeStatus; return this; } - /** + /** * Get modifyVolumeStatus * @return modifyVolumeStatus - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ModifyVolumeStatus getModifyVolumeStatus() { return modifyVolumeStatus; } - public void setModifyVolumeStatus(V1ModifyVolumeStatus modifyVolumeStatus) { + public void setModifyVolumeStatus(@jakarta.annotation.Nullable V1ModifyVolumeStatus modifyVolumeStatus) { this.modifyVolumeStatus = modifyVolumeStatus; } - public V1PersistentVolumeClaimStatus phase(String phase) { + public V1PersistentVolumeClaimStatus phase(@jakarta.annotation.Nullable String phase) { this.phase = phase; return this; } - /** + /** * phase represents the current phase of PersistentVolumeClaim. * @return phase - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "phase represents the current phase of PersistentVolumeClaim.") public String getPhase() { return phase; } - public void setPhase(String phase) { + public void setPhase(@jakarta.annotation.Nullable String phase) { this.phase = phase; } @@ -367,12 +374,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PersistentVolumeClaimStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PersistentVolumeClaimStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PersistentVolumeClaimStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -447,22 +454,22 @@ public V1PersistentVolumeClaimStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PersistentVolumeClaimStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PersistentVolumeClaimStatus - * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeClaimStatus - */ + /** + * Create an instance of V1PersistentVolumeClaimStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PersistentVolumeClaimStatus + * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeClaimStatus + */ public static V1PersistentVolumeClaimStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PersistentVolumeClaimStatus.class); } - /** - * Convert an instance of V1PersistentVolumeClaimStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PersistentVolumeClaimStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplate.java index 08e0ee084f..a3addb496a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplate.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,55 +52,57 @@ * PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource. */ @ApiModel(description = "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PersistentVolumeClaimTemplate { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nonnull private V1PersistentVolumeClaimSpec spec; public V1PersistentVolumeClaimTemplate() { } - public V1PersistentVolumeClaimTemplate metadata(V1ObjectMeta metadata) { + public V1PersistentVolumeClaimTemplate metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1PersistentVolumeClaimTemplate spec(V1PersistentVolumeClaimSpec spec) { + public V1PersistentVolumeClaimTemplate spec(@jakarta.annotation.Nonnull V1PersistentVolumeClaimSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1PersistentVolumeClaimSpec getSpec() { return spec; } - public void setSpec(V1PersistentVolumeClaimSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1PersistentVolumeClaimSpec spec) { this.spec = spec; } @@ -161,12 +162,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("spec"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PersistentVolumeClaimTemplate - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PersistentVolumeClaimTemplate + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PersistentVolumeClaimTemplate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -226,22 +227,22 @@ public V1PersistentVolumeClaimTemplate read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PersistentVolumeClaimTemplate given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PersistentVolumeClaimTemplate - * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeClaimTemplate - */ + /** + * Create an instance of V1PersistentVolumeClaimTemplate given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PersistentVolumeClaimTemplate + * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeClaimTemplate + */ public static V1PersistentVolumeClaimTemplate fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PersistentVolumeClaimTemplate.class); } - /** - * Convert an instance of V1PersistentVolumeClaimTemplate to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PersistentVolumeClaimTemplate to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java index a0027c3a79..1dae41f5d6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system). */ @ApiModel(description = "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PersistentVolumeClaimVolumeSource { public static final String SERIALIZED_NAME_CLAIM_NAME = "claimName"; @SerializedName(SERIALIZED_NAME_CLAIM_NAME) + @jakarta.annotation.Nonnull private String claimName; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public V1PersistentVolumeClaimVolumeSource() { } - public V1PersistentVolumeClaimVolumeSource claimName(String claimName) { + public V1PersistentVolumeClaimVolumeSource claimName(@jakarta.annotation.Nonnull String claimName) { this.claimName = claimName; return this; } - /** + /** * claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims * @return claimName - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims") public String getClaimName() { return claimName; } - public void setClaimName(String claimName) { + public void setClaimName(@jakarta.annotation.Nonnull String claimName) { this.claimName = claimName; } - public V1PersistentVolumeClaimVolumeSource readOnly(Boolean readOnly) { + public V1PersistentVolumeClaimVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly Will force the ReadOnly setting in VolumeMounts. Default false. * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly Will force the ReadOnly setting in VolumeMounts. Default false.") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("claimName"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PersistentVolumeClaimVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PersistentVolumeClaimVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PersistentVolumeClaimVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -221,22 +222,22 @@ public V1PersistentVolumeClaimVolumeSource read(JsonReader in) throws IOExceptio } } - /** - * Create an instance of V1PersistentVolumeClaimVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PersistentVolumeClaimVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeClaimVolumeSource - */ + /** + * Create an instance of V1PersistentVolumeClaimVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PersistentVolumeClaimVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeClaimVolumeSource + */ public static V1PersistentVolumeClaimVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PersistentVolumeClaimVolumeSource.class); } - /** - * Convert an instance of V1PersistentVolumeClaimVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PersistentVolumeClaimVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeList.java index 22dde6db6e..7abd81615c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * PersistentVolumeList is a list of PersistentVolume items. */ @ApiModel(description = "PersistentVolumeList is a list of PersistentVolume items.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PersistentVolumeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1PersistentVolumeList() { } - public V1PersistentVolumeList apiVersion(String apiVersion) { + public V1PersistentVolumeList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1PersistentVolumeList items(List items) { + public V1PersistentVolumeList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1PersistentVolumeList addItemsItem(V1PersistentVolume itemsItem) { return this; } - /** + /** * items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1PersistentVolumeList kind(String kind) { + public V1PersistentVolumeList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1PersistentVolumeList metadata(V1ListMeta metadata) { + public V1PersistentVolumeList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PersistentVolumeList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PersistentVolumeList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PersistentVolumeList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1PersistentVolumeList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PersistentVolumeList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PersistentVolumeList - * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeList - */ + /** + * Create an instance of V1PersistentVolumeList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PersistentVolumeList + * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeList + */ public static V1PersistentVolumeList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PersistentVolumeList.class); } - /** - * Convert an instance of V1PersistentVolumeList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PersistentVolumeList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpec.java index 735777e58c..4c360ae063 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpec.java @@ -67,7 +67,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -80,136 +79,167 @@ * PersistentVolumeSpec is the specification of a persistent volume. */ @ApiModel(description = "PersistentVolumeSpec is the specification of a persistent volume.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PersistentVolumeSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) + @jakarta.annotation.Nullable private List accessModes = new ArrayList<>(); public static final String SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE = "awsElasticBlockStore"; @SerializedName(SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE) + @jakarta.annotation.Nullable private V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore; public static final String SERIALIZED_NAME_AZURE_DISK = "azureDisk"; @SerializedName(SERIALIZED_NAME_AZURE_DISK) + @jakarta.annotation.Nullable private V1AzureDiskVolumeSource azureDisk; public static final String SERIALIZED_NAME_AZURE_FILE = "azureFile"; @SerializedName(SERIALIZED_NAME_AZURE_FILE) + @jakarta.annotation.Nullable private V1AzureFilePersistentVolumeSource azureFile; public static final String SERIALIZED_NAME_CAPACITY = "capacity"; @SerializedName(SERIALIZED_NAME_CAPACITY) + @jakarta.annotation.Nullable private Map capacity = new HashMap<>(); public static final String SERIALIZED_NAME_CEPHFS = "cephfs"; @SerializedName(SERIALIZED_NAME_CEPHFS) + @jakarta.annotation.Nullable private V1CephFSPersistentVolumeSource cephfs; public static final String SERIALIZED_NAME_CINDER = "cinder"; @SerializedName(SERIALIZED_NAME_CINDER) + @jakarta.annotation.Nullable private V1CinderPersistentVolumeSource cinder; public static final String SERIALIZED_NAME_CLAIM_REF = "claimRef"; @SerializedName(SERIALIZED_NAME_CLAIM_REF) + @jakarta.annotation.Nullable private V1ObjectReference claimRef; public static final String SERIALIZED_NAME_CSI = "csi"; @SerializedName(SERIALIZED_NAME_CSI) + @jakarta.annotation.Nullable private V1CSIPersistentVolumeSource csi; public static final String SERIALIZED_NAME_FC = "fc"; @SerializedName(SERIALIZED_NAME_FC) + @jakarta.annotation.Nullable private V1FCVolumeSource fc; public static final String SERIALIZED_NAME_FLEX_VOLUME = "flexVolume"; @SerializedName(SERIALIZED_NAME_FLEX_VOLUME) + @jakarta.annotation.Nullable private V1FlexPersistentVolumeSource flexVolume; public static final String SERIALIZED_NAME_FLOCKER = "flocker"; @SerializedName(SERIALIZED_NAME_FLOCKER) + @jakarta.annotation.Nullable private V1FlockerVolumeSource flocker; public static final String SERIALIZED_NAME_GCE_PERSISTENT_DISK = "gcePersistentDisk"; @SerializedName(SERIALIZED_NAME_GCE_PERSISTENT_DISK) + @jakarta.annotation.Nullable private V1GCEPersistentDiskVolumeSource gcePersistentDisk; public static final String SERIALIZED_NAME_GLUSTERFS = "glusterfs"; @SerializedName(SERIALIZED_NAME_GLUSTERFS) + @jakarta.annotation.Nullable private V1GlusterfsPersistentVolumeSource glusterfs; public static final String SERIALIZED_NAME_HOST_PATH = "hostPath"; @SerializedName(SERIALIZED_NAME_HOST_PATH) + @jakarta.annotation.Nullable private V1HostPathVolumeSource hostPath; public static final String SERIALIZED_NAME_ISCSI = "iscsi"; @SerializedName(SERIALIZED_NAME_ISCSI) + @jakarta.annotation.Nullable private V1ISCSIPersistentVolumeSource iscsi; public static final String SERIALIZED_NAME_LOCAL = "local"; @SerializedName(SERIALIZED_NAME_LOCAL) + @jakarta.annotation.Nullable private V1LocalVolumeSource local; public static final String SERIALIZED_NAME_MOUNT_OPTIONS = "mountOptions"; @SerializedName(SERIALIZED_NAME_MOUNT_OPTIONS) + @jakarta.annotation.Nullable private List mountOptions = new ArrayList<>(); public static final String SERIALIZED_NAME_NFS = "nfs"; @SerializedName(SERIALIZED_NAME_NFS) + @jakarta.annotation.Nullable private V1NFSVolumeSource nfs; public static final String SERIALIZED_NAME_NODE_AFFINITY = "nodeAffinity"; @SerializedName(SERIALIZED_NAME_NODE_AFFINITY) + @jakarta.annotation.Nullable private V1VolumeNodeAffinity nodeAffinity; public static final String SERIALIZED_NAME_PERSISTENT_VOLUME_RECLAIM_POLICY = "persistentVolumeReclaimPolicy"; @SerializedName(SERIALIZED_NAME_PERSISTENT_VOLUME_RECLAIM_POLICY) + @jakarta.annotation.Nullable private String persistentVolumeReclaimPolicy; public static final String SERIALIZED_NAME_PHOTON_PERSISTENT_DISK = "photonPersistentDisk"; @SerializedName(SERIALIZED_NAME_PHOTON_PERSISTENT_DISK) + @jakarta.annotation.Nullable private V1PhotonPersistentDiskVolumeSource photonPersistentDisk; public static final String SERIALIZED_NAME_PORTWORX_VOLUME = "portworxVolume"; @SerializedName(SERIALIZED_NAME_PORTWORX_VOLUME) + @jakarta.annotation.Nullable private V1PortworxVolumeSource portworxVolume; public static final String SERIALIZED_NAME_QUOBYTE = "quobyte"; @SerializedName(SERIALIZED_NAME_QUOBYTE) + @jakarta.annotation.Nullable private V1QuobyteVolumeSource quobyte; public static final String SERIALIZED_NAME_RBD = "rbd"; @SerializedName(SERIALIZED_NAME_RBD) + @jakarta.annotation.Nullable private V1RBDPersistentVolumeSource rbd; public static final String SERIALIZED_NAME_SCALE_I_O = "scaleIO"; @SerializedName(SERIALIZED_NAME_SCALE_I_O) + @jakarta.annotation.Nullable private V1ScaleIOPersistentVolumeSource scaleIO; public static final String SERIALIZED_NAME_STORAGE_CLASS_NAME = "storageClassName"; @SerializedName(SERIALIZED_NAME_STORAGE_CLASS_NAME) + @jakarta.annotation.Nullable private String storageClassName; public static final String SERIALIZED_NAME_STORAGEOS = "storageos"; @SerializedName(SERIALIZED_NAME_STORAGEOS) + @jakarta.annotation.Nullable private V1StorageOSPersistentVolumeSource storageos; public static final String SERIALIZED_NAME_VOLUME_ATTRIBUTES_CLASS_NAME = "volumeAttributesClassName"; @SerializedName(SERIALIZED_NAME_VOLUME_ATTRIBUTES_CLASS_NAME) + @jakarta.annotation.Nullable private String volumeAttributesClassName; public static final String SERIALIZED_NAME_VOLUME_MODE = "volumeMode"; @SerializedName(SERIALIZED_NAME_VOLUME_MODE) + @jakarta.annotation.Nullable private String volumeMode; public static final String SERIALIZED_NAME_VSPHERE_VOLUME = "vsphereVolume"; @SerializedName(SERIALIZED_NAME_VSPHERE_VOLUME) + @jakarta.annotation.Nullable private V1VsphereVirtualDiskVolumeSource vsphereVolume; public V1PersistentVolumeSpec() { } - public V1PersistentVolumeSpec accessModes(List accessModes) { + public V1PersistentVolumeSpec accessModes(@jakarta.annotation.Nullable List accessModes) { this.accessModes = accessModes; return this; } @@ -222,82 +252,82 @@ public V1PersistentVolumeSpec addAccessModesItem(String accessModesItem) { return this; } - /** + /** * accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes * @return accessModes - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes") public List getAccessModes() { return accessModes; } - public void setAccessModes(List accessModes) { + public void setAccessModes(@jakarta.annotation.Nullable List accessModes) { this.accessModes = accessModes; } - public V1PersistentVolumeSpec awsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { + public V1PersistentVolumeSpec awsElasticBlockStore(@jakarta.annotation.Nullable V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { this.awsElasticBlockStore = awsElasticBlockStore; return this; } - /** + /** * Get awsElasticBlockStore * @return awsElasticBlockStore - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore() { return awsElasticBlockStore; } - public void setAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { + public void setAwsElasticBlockStore(@jakarta.annotation.Nullable V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { this.awsElasticBlockStore = awsElasticBlockStore; } - public V1PersistentVolumeSpec azureDisk(V1AzureDiskVolumeSource azureDisk) { + public V1PersistentVolumeSpec azureDisk(@jakarta.annotation.Nullable V1AzureDiskVolumeSource azureDisk) { this.azureDisk = azureDisk; return this; } - /** + /** * Get azureDisk * @return azureDisk - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1AzureDiskVolumeSource getAzureDisk() { return azureDisk; } - public void setAzureDisk(V1AzureDiskVolumeSource azureDisk) { + public void setAzureDisk(@jakarta.annotation.Nullable V1AzureDiskVolumeSource azureDisk) { this.azureDisk = azureDisk; } - public V1PersistentVolumeSpec azureFile(V1AzureFilePersistentVolumeSource azureFile) { + public V1PersistentVolumeSpec azureFile(@jakarta.annotation.Nullable V1AzureFilePersistentVolumeSource azureFile) { this.azureFile = azureFile; return this; } - /** + /** * Get azureFile * @return azureFile - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1AzureFilePersistentVolumeSource getAzureFile() { return azureFile; } - public void setAzureFile(V1AzureFilePersistentVolumeSource azureFile) { + public void setAzureFile(@jakarta.annotation.Nullable V1AzureFilePersistentVolumeSource azureFile) { this.azureFile = azureFile; } - public V1PersistentVolumeSpec capacity(Map capacity) { + public V1PersistentVolumeSpec capacity(@jakarta.annotation.Nullable Map capacity) { this.capacity = capacity; return this; } @@ -310,262 +340,262 @@ public V1PersistentVolumeSpec putCapacityItem(String key, Quantity capacityItem) return this; } - /** + /** * capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity * @return capacity - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity") public Map getCapacity() { return capacity; } - public void setCapacity(Map capacity) { + public void setCapacity(@jakarta.annotation.Nullable Map capacity) { this.capacity = capacity; } - public V1PersistentVolumeSpec cephfs(V1CephFSPersistentVolumeSource cephfs) { + public V1PersistentVolumeSpec cephfs(@jakarta.annotation.Nullable V1CephFSPersistentVolumeSource cephfs) { this.cephfs = cephfs; return this; } - /** + /** * Get cephfs * @return cephfs - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1CephFSPersistentVolumeSource getCephfs() { return cephfs; } - public void setCephfs(V1CephFSPersistentVolumeSource cephfs) { + public void setCephfs(@jakarta.annotation.Nullable V1CephFSPersistentVolumeSource cephfs) { this.cephfs = cephfs; } - public V1PersistentVolumeSpec cinder(V1CinderPersistentVolumeSource cinder) { + public V1PersistentVolumeSpec cinder(@jakarta.annotation.Nullable V1CinderPersistentVolumeSource cinder) { this.cinder = cinder; return this; } - /** + /** * Get cinder * @return cinder - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1CinderPersistentVolumeSource getCinder() { return cinder; } - public void setCinder(V1CinderPersistentVolumeSource cinder) { + public void setCinder(@jakarta.annotation.Nullable V1CinderPersistentVolumeSource cinder) { this.cinder = cinder; } - public V1PersistentVolumeSpec claimRef(V1ObjectReference claimRef) { + public V1PersistentVolumeSpec claimRef(@jakarta.annotation.Nullable V1ObjectReference claimRef) { this.claimRef = claimRef; return this; } - /** + /** * Get claimRef * @return claimRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectReference getClaimRef() { return claimRef; } - public void setClaimRef(V1ObjectReference claimRef) { + public void setClaimRef(@jakarta.annotation.Nullable V1ObjectReference claimRef) { this.claimRef = claimRef; } - public V1PersistentVolumeSpec csi(V1CSIPersistentVolumeSource csi) { + public V1PersistentVolumeSpec csi(@jakarta.annotation.Nullable V1CSIPersistentVolumeSource csi) { this.csi = csi; return this; } - /** + /** * Get csi * @return csi - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1CSIPersistentVolumeSource getCsi() { return csi; } - public void setCsi(V1CSIPersistentVolumeSource csi) { + public void setCsi(@jakarta.annotation.Nullable V1CSIPersistentVolumeSource csi) { this.csi = csi; } - public V1PersistentVolumeSpec fc(V1FCVolumeSource fc) { + public V1PersistentVolumeSpec fc(@jakarta.annotation.Nullable V1FCVolumeSource fc) { this.fc = fc; return this; } - /** + /** * Get fc * @return fc - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1FCVolumeSource getFc() { return fc; } - public void setFc(V1FCVolumeSource fc) { + public void setFc(@jakarta.annotation.Nullable V1FCVolumeSource fc) { this.fc = fc; } - public V1PersistentVolumeSpec flexVolume(V1FlexPersistentVolumeSource flexVolume) { + public V1PersistentVolumeSpec flexVolume(@jakarta.annotation.Nullable V1FlexPersistentVolumeSource flexVolume) { this.flexVolume = flexVolume; return this; } - /** + /** * Get flexVolume * @return flexVolume - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1FlexPersistentVolumeSource getFlexVolume() { return flexVolume; } - public void setFlexVolume(V1FlexPersistentVolumeSource flexVolume) { + public void setFlexVolume(@jakarta.annotation.Nullable V1FlexPersistentVolumeSource flexVolume) { this.flexVolume = flexVolume; } - public V1PersistentVolumeSpec flocker(V1FlockerVolumeSource flocker) { + public V1PersistentVolumeSpec flocker(@jakarta.annotation.Nullable V1FlockerVolumeSource flocker) { this.flocker = flocker; return this; } - /** + /** * Get flocker * @return flocker - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1FlockerVolumeSource getFlocker() { return flocker; } - public void setFlocker(V1FlockerVolumeSource flocker) { + public void setFlocker(@jakarta.annotation.Nullable V1FlockerVolumeSource flocker) { this.flocker = flocker; } - public V1PersistentVolumeSpec gcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) { + public V1PersistentVolumeSpec gcePersistentDisk(@jakarta.annotation.Nullable V1GCEPersistentDiskVolumeSource gcePersistentDisk) { this.gcePersistentDisk = gcePersistentDisk; return this; } - /** + /** * Get gcePersistentDisk * @return gcePersistentDisk - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1GCEPersistentDiskVolumeSource getGcePersistentDisk() { return gcePersistentDisk; } - public void setGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) { + public void setGcePersistentDisk(@jakarta.annotation.Nullable V1GCEPersistentDiskVolumeSource gcePersistentDisk) { this.gcePersistentDisk = gcePersistentDisk; } - public V1PersistentVolumeSpec glusterfs(V1GlusterfsPersistentVolumeSource glusterfs) { + public V1PersistentVolumeSpec glusterfs(@jakarta.annotation.Nullable V1GlusterfsPersistentVolumeSource glusterfs) { this.glusterfs = glusterfs; return this; } - /** + /** * Get glusterfs * @return glusterfs - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1GlusterfsPersistentVolumeSource getGlusterfs() { return glusterfs; } - public void setGlusterfs(V1GlusterfsPersistentVolumeSource glusterfs) { + public void setGlusterfs(@jakarta.annotation.Nullable V1GlusterfsPersistentVolumeSource glusterfs) { this.glusterfs = glusterfs; } - public V1PersistentVolumeSpec hostPath(V1HostPathVolumeSource hostPath) { + public V1PersistentVolumeSpec hostPath(@jakarta.annotation.Nullable V1HostPathVolumeSource hostPath) { this.hostPath = hostPath; return this; } - /** + /** * Get hostPath * @return hostPath - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1HostPathVolumeSource getHostPath() { return hostPath; } - public void setHostPath(V1HostPathVolumeSource hostPath) { + public void setHostPath(@jakarta.annotation.Nullable V1HostPathVolumeSource hostPath) { this.hostPath = hostPath; } - public V1PersistentVolumeSpec iscsi(V1ISCSIPersistentVolumeSource iscsi) { + public V1PersistentVolumeSpec iscsi(@jakarta.annotation.Nullable V1ISCSIPersistentVolumeSource iscsi) { this.iscsi = iscsi; return this; } - /** + /** * Get iscsi * @return iscsi - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ISCSIPersistentVolumeSource getIscsi() { return iscsi; } - public void setIscsi(V1ISCSIPersistentVolumeSource iscsi) { + public void setIscsi(@jakarta.annotation.Nullable V1ISCSIPersistentVolumeSource iscsi) { this.iscsi = iscsi; } - public V1PersistentVolumeSpec local(V1LocalVolumeSource local) { + public V1PersistentVolumeSpec local(@jakarta.annotation.Nullable V1LocalVolumeSource local) { this.local = local; return this; } - /** + /** * Get local * @return local - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LocalVolumeSource getLocal() { return local; } - public void setLocal(V1LocalVolumeSource local) { + public void setLocal(@jakarta.annotation.Nullable V1LocalVolumeSource local) { this.local = local; } - public V1PersistentVolumeSpec mountOptions(List mountOptions) { + public V1PersistentVolumeSpec mountOptions(@jakarta.annotation.Nullable List mountOptions) { this.mountOptions = mountOptions; return this; } @@ -578,277 +608,277 @@ public V1PersistentVolumeSpec addMountOptionsItem(String mountOptionsItem) { return this; } - /** + /** * mountOptions is the list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options * @return mountOptions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "mountOptions is the list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options") public List getMountOptions() { return mountOptions; } - public void setMountOptions(List mountOptions) { + public void setMountOptions(@jakarta.annotation.Nullable List mountOptions) { this.mountOptions = mountOptions; } - public V1PersistentVolumeSpec nfs(V1NFSVolumeSource nfs) { + public V1PersistentVolumeSpec nfs(@jakarta.annotation.Nullable V1NFSVolumeSource nfs) { this.nfs = nfs; return this; } - /** + /** * Get nfs * @return nfs - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1NFSVolumeSource getNfs() { return nfs; } - public void setNfs(V1NFSVolumeSource nfs) { + public void setNfs(@jakarta.annotation.Nullable V1NFSVolumeSource nfs) { this.nfs = nfs; } - public V1PersistentVolumeSpec nodeAffinity(V1VolumeNodeAffinity nodeAffinity) { + public V1PersistentVolumeSpec nodeAffinity(@jakarta.annotation.Nullable V1VolumeNodeAffinity nodeAffinity) { this.nodeAffinity = nodeAffinity; return this; } - /** + /** * Get nodeAffinity * @return nodeAffinity - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1VolumeNodeAffinity getNodeAffinity() { return nodeAffinity; } - public void setNodeAffinity(V1VolumeNodeAffinity nodeAffinity) { + public void setNodeAffinity(@jakarta.annotation.Nullable V1VolumeNodeAffinity nodeAffinity) { this.nodeAffinity = nodeAffinity; } - public V1PersistentVolumeSpec persistentVolumeReclaimPolicy(String persistentVolumeReclaimPolicy) { + public V1PersistentVolumeSpec persistentVolumeReclaimPolicy(@jakarta.annotation.Nullable String persistentVolumeReclaimPolicy) { this.persistentVolumeReclaimPolicy = persistentVolumeReclaimPolicy; return this; } - /** + /** * persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming * @return persistentVolumeReclaimPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming") public String getPersistentVolumeReclaimPolicy() { return persistentVolumeReclaimPolicy; } - public void setPersistentVolumeReclaimPolicy(String persistentVolumeReclaimPolicy) { + public void setPersistentVolumeReclaimPolicy(@jakarta.annotation.Nullable String persistentVolumeReclaimPolicy) { this.persistentVolumeReclaimPolicy = persistentVolumeReclaimPolicy; } - public V1PersistentVolumeSpec photonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { + public V1PersistentVolumeSpec photonPersistentDisk(@jakarta.annotation.Nullable V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { this.photonPersistentDisk = photonPersistentDisk; return this; } - /** + /** * Get photonPersistentDisk * @return photonPersistentDisk - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PhotonPersistentDiskVolumeSource getPhotonPersistentDisk() { return photonPersistentDisk; } - public void setPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { + public void setPhotonPersistentDisk(@jakarta.annotation.Nullable V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { this.photonPersistentDisk = photonPersistentDisk; } - public V1PersistentVolumeSpec portworxVolume(V1PortworxVolumeSource portworxVolume) { + public V1PersistentVolumeSpec portworxVolume(@jakarta.annotation.Nullable V1PortworxVolumeSource portworxVolume) { this.portworxVolume = portworxVolume; return this; } - /** + /** * Get portworxVolume * @return portworxVolume - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PortworxVolumeSource getPortworxVolume() { return portworxVolume; } - public void setPortworxVolume(V1PortworxVolumeSource portworxVolume) { + public void setPortworxVolume(@jakarta.annotation.Nullable V1PortworxVolumeSource portworxVolume) { this.portworxVolume = portworxVolume; } - public V1PersistentVolumeSpec quobyte(V1QuobyteVolumeSource quobyte) { + public V1PersistentVolumeSpec quobyte(@jakarta.annotation.Nullable V1QuobyteVolumeSource quobyte) { this.quobyte = quobyte; return this; } - /** + /** * Get quobyte * @return quobyte - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1QuobyteVolumeSource getQuobyte() { return quobyte; } - public void setQuobyte(V1QuobyteVolumeSource quobyte) { + public void setQuobyte(@jakarta.annotation.Nullable V1QuobyteVolumeSource quobyte) { this.quobyte = quobyte; } - public V1PersistentVolumeSpec rbd(V1RBDPersistentVolumeSource rbd) { + public V1PersistentVolumeSpec rbd(@jakarta.annotation.Nullable V1RBDPersistentVolumeSource rbd) { this.rbd = rbd; return this; } - /** + /** * Get rbd * @return rbd - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1RBDPersistentVolumeSource getRbd() { return rbd; } - public void setRbd(V1RBDPersistentVolumeSource rbd) { + public void setRbd(@jakarta.annotation.Nullable V1RBDPersistentVolumeSource rbd) { this.rbd = rbd; } - public V1PersistentVolumeSpec scaleIO(V1ScaleIOPersistentVolumeSource scaleIO) { + public V1PersistentVolumeSpec scaleIO(@jakarta.annotation.Nullable V1ScaleIOPersistentVolumeSource scaleIO) { this.scaleIO = scaleIO; return this; } - /** + /** * Get scaleIO * @return scaleIO - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ScaleIOPersistentVolumeSource getScaleIO() { return scaleIO; } - public void setScaleIO(V1ScaleIOPersistentVolumeSource scaleIO) { + public void setScaleIO(@jakarta.annotation.Nullable V1ScaleIOPersistentVolumeSource scaleIO) { this.scaleIO = scaleIO; } - public V1PersistentVolumeSpec storageClassName(String storageClassName) { + public V1PersistentVolumeSpec storageClassName(@jakarta.annotation.Nullable String storageClassName) { this.storageClassName = storageClassName; return this; } - /** + /** * storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. * @return storageClassName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.") public String getStorageClassName() { return storageClassName; } - public void setStorageClassName(String storageClassName) { + public void setStorageClassName(@jakarta.annotation.Nullable String storageClassName) { this.storageClassName = storageClassName; } - public V1PersistentVolumeSpec storageos(V1StorageOSPersistentVolumeSource storageos) { + public V1PersistentVolumeSpec storageos(@jakarta.annotation.Nullable V1StorageOSPersistentVolumeSource storageos) { this.storageos = storageos; return this; } - /** + /** * Get storageos * @return storageos - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1StorageOSPersistentVolumeSource getStorageos() { return storageos; } - public void setStorageos(V1StorageOSPersistentVolumeSource storageos) { + public void setStorageos(@jakarta.annotation.Nullable V1StorageOSPersistentVolumeSource storageos) { this.storageos = storageos; } - public V1PersistentVolumeSpec volumeAttributesClassName(String volumeAttributesClassName) { + public V1PersistentVolumeSpec volumeAttributesClassName(@jakarta.annotation.Nullable String volumeAttributesClassName) { this.volumeAttributesClassName = volumeAttributesClassName; return this; } - /** + /** * Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is a beta field and requires enabling VolumeAttributesClass feature (off by default). * @return volumeAttributesClassName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is a beta field and requires enabling VolumeAttributesClass feature (off by default).") public String getVolumeAttributesClassName() { return volumeAttributesClassName; } - public void setVolumeAttributesClassName(String volumeAttributesClassName) { + public void setVolumeAttributesClassName(@jakarta.annotation.Nullable String volumeAttributesClassName) { this.volumeAttributesClassName = volumeAttributesClassName; } - public V1PersistentVolumeSpec volumeMode(String volumeMode) { + public V1PersistentVolumeSpec volumeMode(@jakarta.annotation.Nullable String volumeMode) { this.volumeMode = volumeMode; return this; } - /** + /** * volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. * @return volumeMode - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.") public String getVolumeMode() { return volumeMode; } - public void setVolumeMode(String volumeMode) { + public void setVolumeMode(@jakarta.annotation.Nullable String volumeMode) { this.volumeMode = volumeMode; } - public V1PersistentVolumeSpec vsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { + public V1PersistentVolumeSpec vsphereVolume(@jakarta.annotation.Nullable V1VsphereVirtualDiskVolumeSource vsphereVolume) { this.vsphereVolume = vsphereVolume; return this; } - /** + /** * Get vsphereVolume * @return vsphereVolume - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1VsphereVirtualDiskVolumeSource getVsphereVolume() { return vsphereVolume; } - public void setVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { + public void setVsphereVolume(@jakarta.annotation.Nullable V1VsphereVirtualDiskVolumeSource vsphereVolume) { this.vsphereVolume = vsphereVolume; } @@ -994,12 +1024,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PersistentVolumeSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PersistentVolumeSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PersistentVolumeSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -1162,22 +1192,22 @@ public V1PersistentVolumeSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PersistentVolumeSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PersistentVolumeSpec - * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeSpec - */ + /** + * Create an instance of V1PersistentVolumeSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PersistentVolumeSpec + * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeSpec + */ public static V1PersistentVolumeSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PersistentVolumeSpec.class); } - /** - * Convert an instance of V1PersistentVolumeSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PersistentVolumeSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatus.java index 53f01dcda8..c431c71a52 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatus.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,103 +51,107 @@ * PersistentVolumeStatus is the current status of a persistent volume. */ @ApiModel(description = "PersistentVolumeStatus is the current status of a persistent volume.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PersistentVolumeStatus { public static final String SERIALIZED_NAME_LAST_PHASE_TRANSITION_TIME = "lastPhaseTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_PHASE_TRANSITION_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastPhaseTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_PHASE = "phase"; @SerializedName(SERIALIZED_NAME_PHASE) + @jakarta.annotation.Nullable private String phase; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public V1PersistentVolumeStatus() { } - public V1PersistentVolumeStatus lastPhaseTransitionTime(OffsetDateTime lastPhaseTransitionTime) { + public V1PersistentVolumeStatus lastPhaseTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastPhaseTransitionTime) { this.lastPhaseTransitionTime = lastPhaseTransitionTime; return this; } - /** + /** * lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions. * @return lastPhaseTransitionTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions.") public OffsetDateTime getLastPhaseTransitionTime() { return lastPhaseTransitionTime; } - public void setLastPhaseTransitionTime(OffsetDateTime lastPhaseTransitionTime) { + public void setLastPhaseTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastPhaseTransitionTime) { this.lastPhaseTransitionTime = lastPhaseTransitionTime; } - public V1PersistentVolumeStatus message(String message) { + public V1PersistentVolumeStatus message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * message is a human-readable message indicating details about why the volume is in this state. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "message is a human-readable message indicating details about why the volume is in this state.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1PersistentVolumeStatus phase(String phase) { + public V1PersistentVolumeStatus phase(@jakarta.annotation.Nullable String phase) { this.phase = phase; return this; } - /** + /** * phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase * @return phase - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase") public String getPhase() { return phase; } - public void setPhase(String phase) { + public void setPhase(@jakarta.annotation.Nullable String phase) { this.phase = phase; } - public V1PersistentVolumeStatus reason(String reason) { + public V1PersistentVolumeStatus reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } @@ -213,12 +216,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PersistentVolumeStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PersistentVolumeStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PersistentVolumeStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -274,22 +277,22 @@ public V1PersistentVolumeStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PersistentVolumeStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PersistentVolumeStatus - * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeStatus - */ + /** + * Create an instance of V1PersistentVolumeStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PersistentVolumeStatus + * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeStatus + */ public static V1PersistentVolumeStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PersistentVolumeStatus.class); } - /** - * Convert an instance of V1PersistentVolumeStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PersistentVolumeStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSource.java index 586bcc7ff1..d599115aa4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * Represents a Photon Controller persistent disk resource. */ @ApiModel(description = "Represents a Photon Controller persistent disk resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PhotonPersistentDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) + @jakarta.annotation.Nullable private String fsType; public static final String SERIALIZED_NAME_PD_I_D = "pdID"; @SerializedName(SERIALIZED_NAME_PD_I_D) + @jakarta.annotation.Nonnull private String pdID; public V1PhotonPersistentDiskVolumeSource() { } - public V1PhotonPersistentDiskVolumeSource fsType(String fsType) { + public V1PhotonPersistentDiskVolumeSource fsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; return this; } - /** + /** * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. * @return fsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.") public String getFsType() { return fsType; } - public void setFsType(String fsType) { + public void setFsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; } - public V1PhotonPersistentDiskVolumeSource pdID(String pdID) { + public V1PhotonPersistentDiskVolumeSource pdID(@jakarta.annotation.Nonnull String pdID) { this.pdID = pdID; return this; } - /** + /** * pdID is the ID that identifies Photon Controller persistent disk * @return pdID - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "pdID is the ID that identifies Photon Controller persistent disk") public String getPdID() { return pdID; } - public void setPdID(String pdID) { + public void setPdID(@jakarta.annotation.Nonnull String pdID) { this.pdID = pdID; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("pdID"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PhotonPersistentDiskVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PhotonPersistentDiskVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PhotonPersistentDiskVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -224,22 +225,22 @@ public V1PhotonPersistentDiskVolumeSource read(JsonReader in) throws IOException } } - /** - * Create an instance of V1PhotonPersistentDiskVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PhotonPersistentDiskVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1PhotonPersistentDiskVolumeSource - */ + /** + * Create an instance of V1PhotonPersistentDiskVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PhotonPersistentDiskVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1PhotonPersistentDiskVolumeSource + */ public static V1PhotonPersistentDiskVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PhotonPersistentDiskVolumeSource.class); } - /** - * Convert an instance of V1PhotonPersistentDiskVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PhotonPersistentDiskVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Pod.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Pod.java index 275dd204bb..1c97fb0cef 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Pod.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Pod.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. */ @ApiModel(description = "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Pod implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1PodSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1PodStatus status; public V1Pod() { } - public V1Pod apiVersion(String apiVersion) { + public V1Pod apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1Pod kind(String kind) { + public V1Pod kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1Pod metadata(V1ObjectMeta metadata) { + public V1Pod metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1Pod spec(V1PodSpec spec) { + public V1Pod spec(@jakarta.annotation.Nullable V1PodSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PodSpec getSpec() { return spec; } - public void setSpec(V1PodSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1PodSpec spec) { this.spec = spec; } - public V1Pod status(V1PodStatus status) { + public V1Pod status(@jakarta.annotation.Nullable V1PodStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PodStatus getStatus() { return status; } - public void setStatus(V1PodStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1PodStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Pod - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Pod + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Pod.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1Pod read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Pod given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Pod - * @throws IOException if the JSON string is invalid with respect to V1Pod - */ + /** + * Create an instance of V1Pod given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Pod + * @throws IOException if the JSON string is invalid with respect to V1Pod + */ public static V1Pod fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Pod.class); } - /** - * Convert an instance of V1Pod to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Pod to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java index ca2ed4feee..3628dc0b0c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,20 +54,22 @@ * Pod affinity is a group of inter pod affinity scheduling rules. */ @ApiModel(description = "Pod affinity is a group of inter pod affinity scheduling rules.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) + @jakarta.annotation.Nullable private List preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); public static final String SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "requiredDuringSchedulingIgnoredDuringExecution"; @SerializedName(SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) + @jakarta.annotation.Nullable private List requiredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); public V1PodAffinity() { } - public V1PodAffinity preferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + public V1PodAffinity preferredDuringSchedulingIgnoredDuringExecution(@jakarta.annotation.Nullable List preferredDuringSchedulingIgnoredDuringExecution) { this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; return this; } @@ -81,22 +82,22 @@ public V1PodAffinity addPreferredDuringSchedulingIgnoredDuringExecutionItem(V1We return this; } - /** + /** * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. * @return preferredDuringSchedulingIgnoredDuringExecution - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.") public List getPreferredDuringSchedulingIgnoredDuringExecution() { return preferredDuringSchedulingIgnoredDuringExecution; } - public void setPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + public void setPreferredDuringSchedulingIgnoredDuringExecution(@jakarta.annotation.Nullable List preferredDuringSchedulingIgnoredDuringExecution) { this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; } - public V1PodAffinity requiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution) { + public V1PodAffinity requiredDuringSchedulingIgnoredDuringExecution(@jakarta.annotation.Nullable List requiredDuringSchedulingIgnoredDuringExecution) { this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; return this; } @@ -109,17 +110,17 @@ public V1PodAffinity addRequiredDuringSchedulingIgnoredDuringExecutionItem(V1Pod return this; } - /** + /** * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. * @return requiredDuringSchedulingIgnoredDuringExecution - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.") public List getRequiredDuringSchedulingIgnoredDuringExecution() { return requiredDuringSchedulingIgnoredDuringExecution; } - public void setRequiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution) { + public void setRequiredDuringSchedulingIgnoredDuringExecution(@jakarta.annotation.Nullable List requiredDuringSchedulingIgnoredDuringExecution) { this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; } @@ -178,12 +179,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodAffinity - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodAffinity + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodAffinity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -258,22 +259,22 @@ public V1PodAffinity read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodAffinity given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodAffinity - * @throws IOException if the JSON string is invalid with respect to V1PodAffinity - */ + /** + * Create an instance of V1PodAffinity given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodAffinity + * @throws IOException if the JSON string is invalid with respect to V1PodAffinity + */ public static V1PodAffinity fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodAffinity.class); } - /** - * Convert an instance of V1PodAffinity to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodAffinity to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java index b276324723..965a8c4983 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,56 +53,62 @@ * Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running */ @ApiModel(description = "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodAffinityTerm { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) + @jakarta.annotation.Nullable private V1LabelSelector labelSelector; public static final String SERIALIZED_NAME_MATCH_LABEL_KEYS = "matchLabelKeys"; @SerializedName(SERIALIZED_NAME_MATCH_LABEL_KEYS) + @jakarta.annotation.Nullable private List matchLabelKeys = new ArrayList<>(); public static final String SERIALIZED_NAME_MISMATCH_LABEL_KEYS = "mismatchLabelKeys"; @SerializedName(SERIALIZED_NAME_MISMATCH_LABEL_KEYS) + @jakarta.annotation.Nullable private List mismatchLabelKeys = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_SELECTOR = "namespaceSelector"; @SerializedName(SERIALIZED_NAME_NAMESPACE_SELECTOR) + @jakarta.annotation.Nullable private V1LabelSelector namespaceSelector; public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) + @jakarta.annotation.Nullable private List namespaces = new ArrayList<>(); public static final String SERIALIZED_NAME_TOPOLOGY_KEY = "topologyKey"; @SerializedName(SERIALIZED_NAME_TOPOLOGY_KEY) + @jakarta.annotation.Nonnull private String topologyKey; public V1PodAffinityTerm() { } - public V1PodAffinityTerm labelSelector(V1LabelSelector labelSelector) { + public V1PodAffinityTerm labelSelector(@jakarta.annotation.Nullable V1LabelSelector labelSelector) { this.labelSelector = labelSelector; return this; } - /** + /** * Get labelSelector * @return labelSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LabelSelector getLabelSelector() { return labelSelector; } - public void setLabelSelector(V1LabelSelector labelSelector) { + public void setLabelSelector(@jakarta.annotation.Nullable V1LabelSelector labelSelector) { this.labelSelector = labelSelector; } - public V1PodAffinityTerm matchLabelKeys(List matchLabelKeys) { + public V1PodAffinityTerm matchLabelKeys(@jakarta.annotation.Nullable List matchLabelKeys) { this.matchLabelKeys = matchLabelKeys; return this; } @@ -116,22 +121,22 @@ public V1PodAffinityTerm addMatchLabelKeysItem(String matchLabelKeysItem) { return this; } - /** - * MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + /** + * MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. * @return matchLabelKeys - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).") + @ApiModelProperty(value = "MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set.") public List getMatchLabelKeys() { return matchLabelKeys; } - public void setMatchLabelKeys(List matchLabelKeys) { + public void setMatchLabelKeys(@jakarta.annotation.Nullable List matchLabelKeys) { this.matchLabelKeys = matchLabelKeys; } - public V1PodAffinityTerm mismatchLabelKeys(List mismatchLabelKeys) { + public V1PodAffinityTerm mismatchLabelKeys(@jakarta.annotation.Nullable List mismatchLabelKeys) { this.mismatchLabelKeys = mismatchLabelKeys; return this; } @@ -144,42 +149,42 @@ public V1PodAffinityTerm addMismatchLabelKeysItem(String mismatchLabelKeysItem) return this; } - /** - * MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. * @return mismatchLabelKeys - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).") + @ApiModelProperty(value = "MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set.") public List getMismatchLabelKeys() { return mismatchLabelKeys; } - public void setMismatchLabelKeys(List mismatchLabelKeys) { + public void setMismatchLabelKeys(@jakarta.annotation.Nullable List mismatchLabelKeys) { this.mismatchLabelKeys = mismatchLabelKeys; } - public V1PodAffinityTerm namespaceSelector(V1LabelSelector namespaceSelector) { + public V1PodAffinityTerm namespaceSelector(@jakarta.annotation.Nullable V1LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; return this; } - /** + /** * Get namespaceSelector * @return namespaceSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LabelSelector getNamespaceSelector() { return namespaceSelector; } - public void setNamespaceSelector(V1LabelSelector namespaceSelector) { + public void setNamespaceSelector(@jakarta.annotation.Nullable V1LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; } - public V1PodAffinityTerm namespaces(List namespaces) { + public V1PodAffinityTerm namespaces(@jakarta.annotation.Nullable List namespaces) { this.namespaces = namespaces; return this; } @@ -192,37 +197,37 @@ public V1PodAffinityTerm addNamespacesItem(String namespacesItem) { return this; } - /** + /** * namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\". * @return namespaces - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\".") public List getNamespaces() { return namespaces; } - public void setNamespaces(List namespaces) { + public void setNamespaces(@jakarta.annotation.Nullable List namespaces) { this.namespaces = namespaces; } - public V1PodAffinityTerm topologyKey(String topologyKey) { + public V1PodAffinityTerm topologyKey(@jakarta.annotation.Nonnull String topologyKey) { this.topologyKey = topologyKey; return this; } - /** + /** * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. * @return topologyKey - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.") public String getTopologyKey() { return topologyKey; } - public void setTopologyKey(String topologyKey) { + public void setTopologyKey(@jakarta.annotation.Nonnull String topologyKey) { this.topologyKey = topologyKey; } @@ -294,12 +299,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("topologyKey"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodAffinityTerm - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodAffinityTerm + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodAffinityTerm.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -376,22 +381,22 @@ public V1PodAffinityTerm read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodAffinityTerm given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodAffinityTerm - * @throws IOException if the JSON string is invalid with respect to V1PodAffinityTerm - */ + /** + * Create an instance of V1PodAffinityTerm given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodAffinityTerm + * @throws IOException if the JSON string is invalid with respect to V1PodAffinityTerm + */ public static V1PodAffinityTerm fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodAffinityTerm.class); } - /** - * Convert an instance of V1PodAffinityTerm to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodAffinityTerm to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java index 56bcd7dccf..065e91f3f5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,20 +54,22 @@ * Pod anti affinity is a group of inter pod anti affinity scheduling rules. */ @ApiModel(description = "Pod anti affinity is a group of inter pod anti affinity scheduling rules.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodAntiAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) + @jakarta.annotation.Nullable private List preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); public static final String SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "requiredDuringSchedulingIgnoredDuringExecution"; @SerializedName(SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) + @jakarta.annotation.Nullable private List requiredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); public V1PodAntiAffinity() { } - public V1PodAntiAffinity preferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + public V1PodAntiAffinity preferredDuringSchedulingIgnoredDuringExecution(@jakarta.annotation.Nullable List preferredDuringSchedulingIgnoredDuringExecution) { this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; return this; } @@ -81,22 +82,22 @@ public V1PodAntiAffinity addPreferredDuringSchedulingIgnoredDuringExecutionItem( return this; } - /** + /** * The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. * @return preferredDuringSchedulingIgnoredDuringExecution - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.") public List getPreferredDuringSchedulingIgnoredDuringExecution() { return preferredDuringSchedulingIgnoredDuringExecution; } - public void setPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + public void setPreferredDuringSchedulingIgnoredDuringExecution(@jakarta.annotation.Nullable List preferredDuringSchedulingIgnoredDuringExecution) { this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; } - public V1PodAntiAffinity requiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution) { + public V1PodAntiAffinity requiredDuringSchedulingIgnoredDuringExecution(@jakarta.annotation.Nullable List requiredDuringSchedulingIgnoredDuringExecution) { this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; return this; } @@ -109,17 +110,17 @@ public V1PodAntiAffinity addRequiredDuringSchedulingIgnoredDuringExecutionItem(V return this; } - /** + /** * If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. * @return requiredDuringSchedulingIgnoredDuringExecution - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.") public List getRequiredDuringSchedulingIgnoredDuringExecution() { return requiredDuringSchedulingIgnoredDuringExecution; } - public void setRequiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution) { + public void setRequiredDuringSchedulingIgnoredDuringExecution(@jakarta.annotation.Nullable List requiredDuringSchedulingIgnoredDuringExecution) { this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; } @@ -178,12 +179,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodAntiAffinity - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodAntiAffinity + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodAntiAffinity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -258,22 +259,22 @@ public V1PodAntiAffinity read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodAntiAffinity given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodAntiAffinity - * @throws IOException if the JSON string is invalid with respect to V1PodAntiAffinity - */ + /** + * Create an instance of V1PodAntiAffinity given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodAntiAffinity + * @throws IOException if the JSON string is invalid with respect to V1PodAntiAffinity + */ public static V1PodAntiAffinity fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodAntiAffinity.class); } - /** - * Convert an instance of V1PodAntiAffinity to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodAntiAffinity to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java index 2483b8f0c3..b41b816ced 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,151 +51,182 @@ * PodCondition contains details for the current condition of this pod. */ @ApiModel(description = "PodCondition contains details for the current condition of this pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastProbeTime; public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + @jakarta.annotation.Nullable + private Long observedGeneration; + public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nonnull private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1PodCondition() { } - public V1PodCondition lastProbeTime(OffsetDateTime lastProbeTime) { + public V1PodCondition lastProbeTime(@jakarta.annotation.Nullable OffsetDateTime lastProbeTime) { this.lastProbeTime = lastProbeTime; return this; } - /** + /** * Last time we probed the condition. * @return lastProbeTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Last time we probed the condition.") public OffsetDateTime getLastProbeTime() { return lastProbeTime; } - public void setLastProbeTime(OffsetDateTime lastProbeTime) { + public void setLastProbeTime(@jakarta.annotation.Nullable OffsetDateTime lastProbeTime) { this.lastProbeTime = lastProbeTime; } - public V1PodCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { + public V1PodCondition lastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; } - /** + /** * Last time the condition transitioned from one status to another. * @return lastTransitionTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { + public void setLastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } - public V1PodCondition message(String message) { + public V1PodCondition message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * Human-readable message indicating details about last transition. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Human-readable message indicating details about last transition.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1PodCondition reason(String reason) { + public V1PodCondition observedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { + this.observedGeneration = observedGeneration; + return this; + } + + /** + * If set, this represents the .metadata.generation that the pod condition was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field. + * @return observedGeneration + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "If set, this represents the .metadata.generation that the pod condition was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field.") + public Long getObservedGeneration() { + return observedGeneration; + } + + public void setObservedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { + this.observedGeneration = observedGeneration; + } + + + public V1PodCondition reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * Unique, one-word, CamelCase reason for the condition's last transition. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Unique, one-word, CamelCase reason for the condition's last transition.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } - public V1PodCondition status(String status) { + public V1PodCondition status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } - /** + /** * Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions * @return status - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions") public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public V1PodCondition type(String type) { + public V1PodCondition type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -214,6 +244,7 @@ public boolean equals(Object o) { return Objects.equals(this.lastProbeTime, v1PodCondition.lastProbeTime) && Objects.equals(this.lastTransitionTime, v1PodCondition.lastTransitionTime) && Objects.equals(this.message, v1PodCondition.message) && + Objects.equals(this.observedGeneration, v1PodCondition.observedGeneration) && Objects.equals(this.reason, v1PodCondition.reason) && Objects.equals(this.status, v1PodCondition.status) && Objects.equals(this.type, v1PodCondition.type); @@ -221,7 +252,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type); + return Objects.hash(lastProbeTime, lastTransitionTime, message, observedGeneration, reason, status, type); } @Override @@ -231,6 +262,7 @@ public String toString() { sb.append(" lastProbeTime: ").append(toIndentedString(lastProbeTime)).append("\n"); sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); @@ -259,6 +291,7 @@ private String toIndentedString(Object o) { openapiFields.add("lastProbeTime"); openapiFields.add("lastTransitionTime"); openapiFields.add("message"); + openapiFields.add("observedGeneration"); openapiFields.add("reason"); openapiFields.add("status"); openapiFields.add("type"); @@ -269,12 +302,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodCondition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodCondition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -340,22 +373,22 @@ public V1PodCondition read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodCondition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodCondition - * @throws IOException if the JSON string is invalid with respect to V1PodCondition - */ + /** + * Create an instance of V1PodCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodCondition + * @throws IOException if the JSON string is invalid with respect to V1PodCondition + */ public static V1PodCondition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodCondition.class); } - /** - * Convert an instance of V1PodCondition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodCondition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java index 5eadc43c16..11f5c912e8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,24 +53,27 @@ * PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy. */ @ApiModel(description = "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodDNSConfig { public static final String SERIALIZED_NAME_NAMESERVERS = "nameservers"; @SerializedName(SERIALIZED_NAME_NAMESERVERS) + @jakarta.annotation.Nullable private List nameservers = new ArrayList<>(); public static final String SERIALIZED_NAME_OPTIONS = "options"; @SerializedName(SERIALIZED_NAME_OPTIONS) + @jakarta.annotation.Nullable private List options = new ArrayList<>(); public static final String SERIALIZED_NAME_SEARCHES = "searches"; @SerializedName(SERIALIZED_NAME_SEARCHES) + @jakarta.annotation.Nullable private List searches = new ArrayList<>(); public V1PodDNSConfig() { } - public V1PodDNSConfig nameservers(List nameservers) { + public V1PodDNSConfig nameservers(@jakarta.annotation.Nullable List nameservers) { this.nameservers = nameservers; return this; } @@ -84,22 +86,22 @@ public V1PodDNSConfig addNameserversItem(String nameserversItem) { return this; } - /** + /** * A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. * @return nameservers - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.") public List getNameservers() { return nameservers; } - public void setNameservers(List nameservers) { + public void setNameservers(@jakarta.annotation.Nullable List nameservers) { this.nameservers = nameservers; } - public V1PodDNSConfig options(List options) { + public V1PodDNSConfig options(@jakarta.annotation.Nullable List options) { this.options = options; return this; } @@ -112,22 +114,22 @@ public V1PodDNSConfig addOptionsItem(V1PodDNSConfigOption optionsItem) { return this; } - /** + /** * A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. * @return options - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.") public List getOptions() { return options; } - public void setOptions(List options) { + public void setOptions(@jakarta.annotation.Nullable List options) { this.options = options; } - public V1PodDNSConfig searches(List searches) { + public V1PodDNSConfig searches(@jakarta.annotation.Nullable List searches) { this.searches = searches; return this; } @@ -140,17 +142,17 @@ public V1PodDNSConfig addSearchesItem(String searchesItem) { return this; } - /** + /** * A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. * @return searches - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.") public List getSearches() { return searches; } - public void setSearches(List searches) { + public void setSearches(@jakarta.annotation.Nullable List searches) { this.searches = searches; } @@ -212,12 +214,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodDNSConfig - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodDNSConfig + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodDNSConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -286,22 +288,22 @@ public V1PodDNSConfig read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodDNSConfig given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodDNSConfig - * @throws IOException if the JSON string is invalid with respect to V1PodDNSConfig - */ + /** + * Create an instance of V1PodDNSConfig given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodDNSConfig + * @throws IOException if the JSON string is invalid with respect to V1PodDNSConfig + */ public static V1PodDNSConfig fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodDNSConfig.class); } - /** - * Convert an instance of V1PodDNSConfig to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodDNSConfig to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java index 9f7bc65f08..04f97bb81d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * PodDNSConfigOption defines DNS resolver options of a pod. */ @ApiModel(description = "PodDNSConfigOption defines DNS resolver options of a pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodDNSConfigOption { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) + @jakarta.annotation.Nullable private String value; public V1PodDNSConfigOption() { } - public V1PodDNSConfigOption name(String name) { + public V1PodDNSConfigOption name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * Name is this DNS resolver option's name. Required. * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Name is this DNS resolver option's name. Required.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public V1PodDNSConfigOption value(String value) { + public V1PodDNSConfigOption value(@jakarta.annotation.Nullable String value) { this.value = value; return this; } - /** + /** * Value is this DNS resolver option's value. * @return value - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Value is this DNS resolver option's value.") public String getValue() { return value; } - public void setValue(String value) { + public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; } @@ -158,12 +159,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodDNSConfigOption - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodDNSConfigOption + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodDNSConfigOption.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -216,22 +217,22 @@ public V1PodDNSConfigOption read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodDNSConfigOption given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodDNSConfigOption - * @throws IOException if the JSON string is invalid with respect to V1PodDNSConfigOption - */ + /** + * Create an instance of V1PodDNSConfigOption given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodDNSConfigOption + * @throws IOException if the JSON string is invalid with respect to V1PodDNSConfigOption + */ public static V1PodDNSConfigOption fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodDNSConfigOption.class); } - /** - * Convert an instance of V1PodDNSConfigOption to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodDNSConfigOption to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java index 52a30df2b9..3febe13390 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods */ @ApiModel(description = "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodDisruptionBudget implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1PodDisruptionBudgetSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1PodDisruptionBudgetStatus status; public V1PodDisruptionBudget() { } - public V1PodDisruptionBudget apiVersion(String apiVersion) { + public V1PodDisruptionBudget apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1PodDisruptionBudget kind(String kind) { + public V1PodDisruptionBudget kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1PodDisruptionBudget metadata(V1ObjectMeta metadata) { + public V1PodDisruptionBudget metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1PodDisruptionBudget spec(V1PodDisruptionBudgetSpec spec) { + public V1PodDisruptionBudget spec(@jakarta.annotation.Nullable V1PodDisruptionBudgetSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PodDisruptionBudgetSpec getSpec() { return spec; } - public void setSpec(V1PodDisruptionBudgetSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1PodDisruptionBudgetSpec spec) { this.spec = spec; } - public V1PodDisruptionBudget status(V1PodDisruptionBudgetStatus status) { + public V1PodDisruptionBudget status(@jakarta.annotation.Nullable V1PodDisruptionBudgetStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PodDisruptionBudgetStatus getStatus() { return status; } - public void setStatus(V1PodDisruptionBudgetStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1PodDisruptionBudgetStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodDisruptionBudget - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodDisruptionBudget + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodDisruptionBudget.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1PodDisruptionBudget read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodDisruptionBudget given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodDisruptionBudget - * @throws IOException if the JSON string is invalid with respect to V1PodDisruptionBudget - */ + /** + * Create an instance of V1PodDisruptionBudget given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodDisruptionBudget + * @throws IOException if the JSON string is invalid with respect to V1PodDisruptionBudget + */ public static V1PodDisruptionBudget fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodDisruptionBudget.class); } - /** - * Convert an instance of V1PodDisruptionBudget to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodDisruptionBudget to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java index 479661286d..46e8739cd7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * PodDisruptionBudgetList is a collection of PodDisruptionBudgets. */ @ApiModel(description = "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodDisruptionBudgetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1PodDisruptionBudgetList() { } - public V1PodDisruptionBudgetList apiVersion(String apiVersion) { + public V1PodDisruptionBudgetList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1PodDisruptionBudgetList items(List items) { + public V1PodDisruptionBudgetList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1PodDisruptionBudgetList addItemsItem(V1PodDisruptionBudget itemsItem) { return this; } - /** + /** * Items is a list of PodDisruptionBudgets * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items is a list of PodDisruptionBudgets") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1PodDisruptionBudgetList kind(String kind) { + public V1PodDisruptionBudgetList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1PodDisruptionBudgetList metadata(V1ListMeta metadata) { + public V1PodDisruptionBudgetList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodDisruptionBudgetList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodDisruptionBudgetList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodDisruptionBudgetList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1PodDisruptionBudgetList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodDisruptionBudgetList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodDisruptionBudgetList - * @throws IOException if the JSON string is invalid with respect to V1PodDisruptionBudgetList - */ + /** + * Create an instance of V1PodDisruptionBudgetList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodDisruptionBudgetList + * @throws IOException if the JSON string is invalid with respect to V1PodDisruptionBudgetList + */ public static V1PodDisruptionBudgetList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodDisruptionBudgetList.class); } - /** - * Convert an instance of V1PodDisruptionBudgetList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodDisruptionBudgetList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java index 1063ad2d5d..0bc45abce4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,103 +52,107 @@ * PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. */ @ApiModel(description = "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodDisruptionBudgetSpec { public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) + @jakarta.annotation.Nullable private IntOrString maxUnavailable; public static final String SERIALIZED_NAME_MIN_AVAILABLE = "minAvailable"; @SerializedName(SERIALIZED_NAME_MIN_AVAILABLE) + @jakarta.annotation.Nullable private IntOrString minAvailable; public static final String SERIALIZED_NAME_SELECTOR = "selector"; @SerializedName(SERIALIZED_NAME_SELECTOR) + @jakarta.annotation.Nullable private V1LabelSelector selector; public static final String SERIALIZED_NAME_UNHEALTHY_POD_EVICTION_POLICY = "unhealthyPodEvictionPolicy"; @SerializedName(SERIALIZED_NAME_UNHEALTHY_POD_EVICTION_POLICY) + @jakarta.annotation.Nullable private String unhealthyPodEvictionPolicy; public V1PodDisruptionBudgetSpec() { } - public V1PodDisruptionBudgetSpec maxUnavailable(IntOrString maxUnavailable) { + public V1PodDisruptionBudgetSpec maxUnavailable(@jakarta.annotation.Nullable IntOrString maxUnavailable) { this.maxUnavailable = maxUnavailable; return this; } - /** + /** * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return maxUnavailable - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") public IntOrString getMaxUnavailable() { return maxUnavailable; } - public void setMaxUnavailable(IntOrString maxUnavailable) { + public void setMaxUnavailable(@jakarta.annotation.Nullable IntOrString maxUnavailable) { this.maxUnavailable = maxUnavailable; } - public V1PodDisruptionBudgetSpec minAvailable(IntOrString minAvailable) { + public V1PodDisruptionBudgetSpec minAvailable(@jakarta.annotation.Nullable IntOrString minAvailable) { this.minAvailable = minAvailable; return this; } - /** + /** * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return minAvailable - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") public IntOrString getMinAvailable() { return minAvailable; } - public void setMinAvailable(IntOrString minAvailable) { + public void setMinAvailable(@jakarta.annotation.Nullable IntOrString minAvailable) { this.minAvailable = minAvailable; } - public V1PodDisruptionBudgetSpec selector(V1LabelSelector selector) { + public V1PodDisruptionBudgetSpec selector(@jakarta.annotation.Nullable V1LabelSelector selector) { this.selector = selector; return this; } - /** + /** * Get selector * @return selector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LabelSelector getSelector() { return selector; } - public void setSelector(V1LabelSelector selector) { + public void setSelector(@jakarta.annotation.Nullable V1LabelSelector selector) { this.selector = selector; } - public V1PodDisruptionBudgetSpec unhealthyPodEvictionPolicy(String unhealthyPodEvictionPolicy) { + public V1PodDisruptionBudgetSpec unhealthyPodEvictionPolicy(@jakarta.annotation.Nullable String unhealthyPodEvictionPolicy) { this.unhealthyPodEvictionPolicy = unhealthyPodEvictionPolicy; return this; } - /** - * UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\". Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. IfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. AlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field. This field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default). + /** + * UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\". Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. IfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. AlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field. * @return unhealthyPodEvictionPolicy - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\". Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. IfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. AlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field. This field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default).") + @ApiModelProperty(value = "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\". Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. IfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. AlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.") public String getUnhealthyPodEvictionPolicy() { return unhealthyPodEvictionPolicy; } - public void setUnhealthyPodEvictionPolicy(String unhealthyPodEvictionPolicy) { + public void setUnhealthyPodEvictionPolicy(@jakarta.annotation.Nullable String unhealthyPodEvictionPolicy) { this.unhealthyPodEvictionPolicy = unhealthyPodEvictionPolicy; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodDisruptionBudgetSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodDisruptionBudgetSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodDisruptionBudgetSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -279,22 +282,22 @@ public V1PodDisruptionBudgetSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodDisruptionBudgetSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodDisruptionBudgetSpec - * @throws IOException if the JSON string is invalid with respect to V1PodDisruptionBudgetSpec - */ + /** + * Create an instance of V1PodDisruptionBudgetSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodDisruptionBudgetSpec + * @throws IOException if the JSON string is invalid with respect to V1PodDisruptionBudgetSpec + */ public static V1PodDisruptionBudgetSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodDisruptionBudgetSpec.class); } - /** - * Convert an instance of V1PodDisruptionBudgetSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodDisruptionBudgetSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java index 7172a0d854..e0ef472e8c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java @@ -44,7 +44,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -57,40 +56,47 @@ * PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system. */ @ApiModel(description = "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodDisruptionBudgetStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); public static final String SERIALIZED_NAME_CURRENT_HEALTHY = "currentHealthy"; @SerializedName(SERIALIZED_NAME_CURRENT_HEALTHY) + @jakarta.annotation.Nonnull private Integer currentHealthy; public static final String SERIALIZED_NAME_DESIRED_HEALTHY = "desiredHealthy"; @SerializedName(SERIALIZED_NAME_DESIRED_HEALTHY) + @jakarta.annotation.Nonnull private Integer desiredHealthy; public static final String SERIALIZED_NAME_DISRUPTED_PODS = "disruptedPods"; @SerializedName(SERIALIZED_NAME_DISRUPTED_PODS) + @jakarta.annotation.Nullable private Map disruptedPods = new HashMap<>(); public static final String SERIALIZED_NAME_DISRUPTIONS_ALLOWED = "disruptionsAllowed"; @SerializedName(SERIALIZED_NAME_DISRUPTIONS_ALLOWED) + @jakarta.annotation.Nonnull private Integer disruptionsAllowed; public static final String SERIALIZED_NAME_EXPECTED_PODS = "expectedPods"; @SerializedName(SERIALIZED_NAME_EXPECTED_PODS) + @jakarta.annotation.Nonnull private Integer expectedPods; public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + @jakarta.annotation.Nullable private Long observedGeneration; public V1PodDisruptionBudgetStatus() { } - public V1PodDisruptionBudgetStatus conditions(List conditions) { + public V1PodDisruptionBudgetStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } @@ -103,62 +109,62 @@ public V1PodDisruptionBudgetStatus addConditionsItem(V1Condition conditionsItem) return this; } - /** + /** * Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute the number of allowed disruptions. Therefore no disruptions are allowed and the status of the condition will be False. - InsufficientPods: The number of pods are either at or below the number required by the PodDisruptionBudget. No disruptions are allowed and the status of the condition will be False. - SufficientPods: There are more pods than required by the PodDisruptionBudget. The condition will be True, and the number of allowed disruptions are provided by the disruptionsAllowed property. * @return conditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute the number of allowed disruptions. Therefore no disruptions are allowed and the status of the condition will be False. - InsufficientPods: The number of pods are either at or below the number required by the PodDisruptionBudget. No disruptions are allowed and the status of the condition will be False. - SufficientPods: There are more pods than required by the PodDisruptionBudget. The condition will be True, and the number of allowed disruptions are provided by the disruptionsAllowed property.") public List getConditions() { return conditions; } - public void setConditions(List conditions) { + public void setConditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; } - public V1PodDisruptionBudgetStatus currentHealthy(Integer currentHealthy) { + public V1PodDisruptionBudgetStatus currentHealthy(@jakarta.annotation.Nonnull Integer currentHealthy) { this.currentHealthy = currentHealthy; return this; } - /** + /** * current number of healthy pods * @return currentHealthy - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "current number of healthy pods") public Integer getCurrentHealthy() { return currentHealthy; } - public void setCurrentHealthy(Integer currentHealthy) { + public void setCurrentHealthy(@jakarta.annotation.Nonnull Integer currentHealthy) { this.currentHealthy = currentHealthy; } - public V1PodDisruptionBudgetStatus desiredHealthy(Integer desiredHealthy) { + public V1PodDisruptionBudgetStatus desiredHealthy(@jakarta.annotation.Nonnull Integer desiredHealthy) { this.desiredHealthy = desiredHealthy; return this; } - /** + /** * minimum desired number of healthy pods * @return desiredHealthy - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "minimum desired number of healthy pods") public Integer getDesiredHealthy() { return desiredHealthy; } - public void setDesiredHealthy(Integer desiredHealthy) { + public void setDesiredHealthy(@jakarta.annotation.Nonnull Integer desiredHealthy) { this.desiredHealthy = desiredHealthy; } - public V1PodDisruptionBudgetStatus disruptedPods(Map disruptedPods) { + public V1PodDisruptionBudgetStatus disruptedPods(@jakarta.annotation.Nullable Map disruptedPods) { this.disruptedPods = disruptedPods; return this; } @@ -171,77 +177,77 @@ public V1PodDisruptionBudgetStatus putDisruptedPodsItem(String key, OffsetDateTi return this; } - /** + /** * DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. * @return disruptedPods - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.") public Map getDisruptedPods() { return disruptedPods; } - public void setDisruptedPods(Map disruptedPods) { + public void setDisruptedPods(@jakarta.annotation.Nullable Map disruptedPods) { this.disruptedPods = disruptedPods; } - public V1PodDisruptionBudgetStatus disruptionsAllowed(Integer disruptionsAllowed) { + public V1PodDisruptionBudgetStatus disruptionsAllowed(@jakarta.annotation.Nonnull Integer disruptionsAllowed) { this.disruptionsAllowed = disruptionsAllowed; return this; } - /** + /** * Number of pod disruptions that are currently allowed. * @return disruptionsAllowed - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Number of pod disruptions that are currently allowed.") public Integer getDisruptionsAllowed() { return disruptionsAllowed; } - public void setDisruptionsAllowed(Integer disruptionsAllowed) { + public void setDisruptionsAllowed(@jakarta.annotation.Nonnull Integer disruptionsAllowed) { this.disruptionsAllowed = disruptionsAllowed; } - public V1PodDisruptionBudgetStatus expectedPods(Integer expectedPods) { + public V1PodDisruptionBudgetStatus expectedPods(@jakarta.annotation.Nonnull Integer expectedPods) { this.expectedPods = expectedPods; return this; } - /** + /** * total number of pods counted by this disruption budget * @return expectedPods - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "total number of pods counted by this disruption budget") public Integer getExpectedPods() { return expectedPods; } - public void setExpectedPods(Integer expectedPods) { + public void setExpectedPods(@jakarta.annotation.Nonnull Integer expectedPods) { this.expectedPods = expectedPods; } - public V1PodDisruptionBudgetStatus observedGeneration(Long observedGeneration) { + public V1PodDisruptionBudgetStatus observedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { this.observedGeneration = observedGeneration; return this; } - /** + /** * Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation. * @return observedGeneration - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation.") public Long getObservedGeneration() { return observedGeneration; } - public void setObservedGeneration(Long observedGeneration) { + public void setObservedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { this.observedGeneration = observedGeneration; } @@ -319,12 +325,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("expectedPods"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodDisruptionBudgetStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodDisruptionBudgetStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodDisruptionBudgetStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -392,22 +398,22 @@ public V1PodDisruptionBudgetStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodDisruptionBudgetStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodDisruptionBudgetStatus - * @throws IOException if the JSON string is invalid with respect to V1PodDisruptionBudgetStatus - */ + /** + * Create an instance of V1PodDisruptionBudgetStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodDisruptionBudgetStatus + * @throws IOException if the JSON string is invalid with respect to V1PodDisruptionBudgetStatus + */ public static V1PodDisruptionBudgetStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodDisruptionBudgetStatus.class); } - /** - * Convert an instance of V1PodDisruptionBudgetStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodDisruptionBudgetStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java index 21feef3f18..fdda1546b6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,16 +53,17 @@ * PodFailurePolicy describes how failed pods influence the backoffLimit. */ @ApiModel(description = "PodFailurePolicy describes how failed pods influence the backoffLimit.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodFailurePolicy { public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) + @jakarta.annotation.Nonnull private List rules = new ArrayList<>(); public V1PodFailurePolicy() { } - public V1PodFailurePolicy rules(List rules) { + public V1PodFailurePolicy rules(@jakarta.annotation.Nonnull List rules) { this.rules = rules; return this; } @@ -76,17 +76,17 @@ public V1PodFailurePolicy addRulesItem(V1PodFailurePolicyRule rulesItem) { return this; } - /** + /** * A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed. * @return rules - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.") public List getRules() { return rules; } - public void setRules(List rules) { + public void setRules(@jakarta.annotation.Nonnull List rules) { this.rules = rules; } @@ -143,12 +143,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("rules"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodFailurePolicy - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodFailurePolicy + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodFailurePolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -212,22 +212,22 @@ public V1PodFailurePolicy read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodFailurePolicy given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodFailurePolicy - * @throws IOException if the JSON string is invalid with respect to V1PodFailurePolicy - */ + /** + * Create an instance of V1PodFailurePolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodFailurePolicy + * @throws IOException if the JSON string is invalid with respect to V1PodFailurePolicy + */ public static V1PodFailurePolicy fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodFailurePolicy.class); } - /** - * Convert an instance of V1PodFailurePolicy to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodFailurePolicy to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java index 323469e09b..58229bd0df 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,64 +52,67 @@ * PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check. */ @ApiModel(description = "PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodFailurePolicyOnExitCodesRequirement { public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) + @jakarta.annotation.Nullable private String containerName; public static final String SERIALIZED_NAME_OPERATOR = "operator"; @SerializedName(SERIALIZED_NAME_OPERATOR) + @jakarta.annotation.Nonnull private String operator; public static final String SERIALIZED_NAME_VALUES = "values"; @SerializedName(SERIALIZED_NAME_VALUES) + @jakarta.annotation.Nonnull private List values = new ArrayList<>(); public V1PodFailurePolicyOnExitCodesRequirement() { } - public V1PodFailurePolicyOnExitCodesRequirement containerName(String containerName) { + public V1PodFailurePolicyOnExitCodesRequirement containerName(@jakarta.annotation.Nullable String containerName) { this.containerName = containerName; return this; } - /** + /** * Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template. * @return containerName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.") public String getContainerName() { return containerName; } - public void setContainerName(String containerName) { + public void setContainerName(@jakarta.annotation.Nullable String containerName) { this.containerName = containerName; } - public V1PodFailurePolicyOnExitCodesRequirement operator(String operator) { + public V1PodFailurePolicyOnExitCodesRequirement operator(@jakarta.annotation.Nonnull String operator) { this.operator = operator; return this; } - /** + /** * Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are: - In: the requirement is satisfied if at least one container exit code (might be multiple if there are multiple containers not restricted by the 'containerName' field) is in the set of specified values. - NotIn: the requirement is satisfied if at least one container exit code (might be multiple if there are multiple containers not restricted by the 'containerName' field) is not in the set of specified values. Additional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied. * @return operator - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are: - In: the requirement is satisfied if at least one container exit code (might be multiple if there are multiple containers not restricted by the 'containerName' field) is in the set of specified values. - NotIn: the requirement is satisfied if at least one container exit code (might be multiple if there are multiple containers not restricted by the 'containerName' field) is not in the set of specified values. Additional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.") public String getOperator() { return operator; } - public void setOperator(String operator) { + public void setOperator(@jakarta.annotation.Nonnull String operator) { this.operator = operator; } - public V1PodFailurePolicyOnExitCodesRequirement values(List values) { + public V1PodFailurePolicyOnExitCodesRequirement values(@jakarta.annotation.Nonnull List values) { this.values = values; return this; } @@ -123,17 +125,17 @@ public V1PodFailurePolicyOnExitCodesRequirement addValuesItem(Integer valuesItem return this; } - /** + /** * Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed. * @return values - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.") public List getValues() { return values; } - public void setValues(List values) { + public void setValues(@jakarta.annotation.Nonnull List values) { this.values = values; } @@ -197,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("values"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodFailurePolicyOnExitCodesRequirement - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodFailurePolicyOnExitCodesRequirement + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodFailurePolicyOnExitCodesRequirement.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -268,22 +270,22 @@ public V1PodFailurePolicyOnExitCodesRequirement read(JsonReader in) throws IOExc } } - /** - * Create an instance of V1PodFailurePolicyOnExitCodesRequirement given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodFailurePolicyOnExitCodesRequirement - * @throws IOException if the JSON string is invalid with respect to V1PodFailurePolicyOnExitCodesRequirement - */ + /** + * Create an instance of V1PodFailurePolicyOnExitCodesRequirement given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodFailurePolicyOnExitCodesRequirement + * @throws IOException if the JSON string is invalid with respect to V1PodFailurePolicyOnExitCodesRequirement + */ public static V1PodFailurePolicyOnExitCodesRequirement fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodFailurePolicyOnExitCodesRequirement.class); } - /** - * Convert an instance of V1PodFailurePolicyOnExitCodesRequirement to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodFailurePolicyOnExitCodesRequirement to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java index f45001ddd2..05c8a4e52c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type. */ @ApiModel(description = "PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodFailurePolicyOnPodConditionsPattern { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nonnull private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1PodFailurePolicyOnPodConditionsPattern() { } - public V1PodFailurePolicyOnPodConditionsPattern status(String status) { + public V1PodFailurePolicyOnPodConditionsPattern status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } - /** + /** * Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True. * @return status - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.") public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public V1PodFailurePolicyOnPodConditionsPattern type(String type) { + public V1PodFailurePolicyOnPodConditionsPattern type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodFailurePolicyOnPodConditionsPattern - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodFailurePolicyOnPodConditionsPattern + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodFailurePolicyOnPodConditionsPattern.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -225,22 +226,22 @@ public V1PodFailurePolicyOnPodConditionsPattern read(JsonReader in) throws IOExc } } - /** - * Create an instance of V1PodFailurePolicyOnPodConditionsPattern given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodFailurePolicyOnPodConditionsPattern - * @throws IOException if the JSON string is invalid with respect to V1PodFailurePolicyOnPodConditionsPattern - */ + /** + * Create an instance of V1PodFailurePolicyOnPodConditionsPattern given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodFailurePolicyOnPodConditionsPattern + * @throws IOException if the JSON string is invalid with respect to V1PodFailurePolicyOnPodConditionsPattern + */ public static V1PodFailurePolicyOnPodConditionsPattern fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodFailurePolicyOnPodConditionsPattern.class); } - /** - * Convert an instance of V1PodFailurePolicyOnPodConditionsPattern to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodFailurePolicyOnPodConditionsPattern to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java index 01f93da789..dd6e3b7195 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,64 +54,67 @@ * PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule. */ @ApiModel(description = "PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodFailurePolicyRule { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) + @jakarta.annotation.Nonnull private String action; public static final String SERIALIZED_NAME_ON_EXIT_CODES = "onExitCodes"; @SerializedName(SERIALIZED_NAME_ON_EXIT_CODES) + @jakarta.annotation.Nullable private V1PodFailurePolicyOnExitCodesRequirement onExitCodes; public static final String SERIALIZED_NAME_ON_POD_CONDITIONS = "onPodConditions"; @SerializedName(SERIALIZED_NAME_ON_POD_CONDITIONS) + @jakarta.annotation.Nullable private List onPodConditions = new ArrayList<>(); public V1PodFailurePolicyRule() { } - public V1PodFailurePolicyRule action(String action) { + public V1PodFailurePolicyRule action(@jakarta.annotation.Nonnull String action) { this.action = action; return this; } - /** - * Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all running pods are terminated. - FailIndex: indicates that the pod's index is marked as Failed and will not be restarted. This value is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). - Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created. - Count: indicates that the pod is handled in the default way - the counter towards the .backoffLimit is incremented. Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule. + /** + * Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all running pods are terminated. - FailIndex: indicates that the pod's index is marked as Failed and will not be restarted. - Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created. - Count: indicates that the pod is handled in the default way - the counter towards the .backoffLimit is incremented. Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule. * @return action - **/ + */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all running pods are terminated. - FailIndex: indicates that the pod's index is marked as Failed and will not be restarted. This value is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). - Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created. - Count: indicates that the pod is handled in the default way - the counter towards the .backoffLimit is incremented. Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.") + @ApiModelProperty(required = true, value = "Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all running pods are terminated. - FailIndex: indicates that the pod's index is marked as Failed and will not be restarted. - Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created. - Count: indicates that the pod is handled in the default way - the counter towards the .backoffLimit is incremented. Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.") public String getAction() { return action; } - public void setAction(String action) { + public void setAction(@jakarta.annotation.Nonnull String action) { this.action = action; } - public V1PodFailurePolicyRule onExitCodes(V1PodFailurePolicyOnExitCodesRequirement onExitCodes) { + public V1PodFailurePolicyRule onExitCodes(@jakarta.annotation.Nullable V1PodFailurePolicyOnExitCodesRequirement onExitCodes) { this.onExitCodes = onExitCodes; return this; } - /** + /** * Get onExitCodes * @return onExitCodes - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PodFailurePolicyOnExitCodesRequirement getOnExitCodes() { return onExitCodes; } - public void setOnExitCodes(V1PodFailurePolicyOnExitCodesRequirement onExitCodes) { + public void setOnExitCodes(@jakarta.annotation.Nullable V1PodFailurePolicyOnExitCodesRequirement onExitCodes) { this.onExitCodes = onExitCodes; } - public V1PodFailurePolicyRule onPodConditions(List onPodConditions) { + public V1PodFailurePolicyRule onPodConditions(@jakarta.annotation.Nullable List onPodConditions) { this.onPodConditions = onPodConditions; return this; } @@ -125,17 +127,17 @@ public V1PodFailurePolicyRule addOnPodConditionsItem(V1PodFailurePolicyOnPodCond return this; } - /** + /** * Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed. * @return onPodConditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed.") public List getOnPodConditions() { return onPodConditions; } - public void setOnPodConditions(List onPodConditions) { + public void setOnPodConditions(@jakarta.annotation.Nullable List onPodConditions) { this.onPodConditions = onPodConditions; } @@ -198,12 +200,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("action"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodFailurePolicyRule - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodFailurePolicyRule + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodFailurePolicyRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -278,22 +280,22 @@ public V1PodFailurePolicyRule read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodFailurePolicyRule given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodFailurePolicyRule - * @throws IOException if the JSON string is invalid with respect to V1PodFailurePolicyRule - */ + /** + * Create an instance of V1PodFailurePolicyRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodFailurePolicyRule + * @throws IOException if the JSON string is invalid with respect to V1PodFailurePolicyRule + */ public static V1PodFailurePolicyRule fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodFailurePolicyRule.class); } - /** - * Convert an instance of V1PodFailurePolicyRule to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodFailurePolicyRule to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodIP.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodIP.java index 746e2363e6..6ae3824741 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodIP.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodIP.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * PodIP represents a single IP address allocated to the pod. */ @ApiModel(description = "PodIP represents a single IP address allocated to the pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodIP { public static final String SERIALIZED_NAME_IP = "ip"; @SerializedName(SERIALIZED_NAME_IP) + @jakarta.annotation.Nonnull private String ip; public V1PodIP() { } - public V1PodIP ip(String ip) { + public V1PodIP ip(@jakarta.annotation.Nonnull String ip) { this.ip = ip; return this; } - /** + /** * IP is the IP address assigned to the pod * @return ip - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "IP is the IP address assigned to the pod") public String getIp() { return ip; } - public void setIp(String ip) { + public void setIp(@jakarta.annotation.Nonnull String ip) { this.ip = ip; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("ip"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodIP - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodIP + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodIP.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -194,22 +194,22 @@ public V1PodIP read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodIP given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodIP - * @throws IOException if the JSON string is invalid with respect to V1PodIP - */ + /** + * Create an instance of V1PodIP given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodIP + * @throws IOException if the JSON string is invalid with respect to V1PodIP + */ public static V1PodIP fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodIP.class); } - /** - * Convert an instance of V1PodIP to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodIP to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodList.java index 63af92c04c..ce73fbeb30 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * PodList is a list of Pods. */ @ApiModel(description = "PodList is a list of Pods.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1PodList() { } - public V1PodList apiVersion(String apiVersion) { + public V1PodList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1PodList items(List items) { + public V1PodList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1PodList addItemsItem(V1Pod itemsItem) { return this; } - /** + /** * List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1PodList kind(String kind) { + public V1PodList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1PodList metadata(V1ListMeta metadata) { + public V1PodList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1PodList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodList - * @throws IOException if the JSON string is invalid with respect to V1PodList - */ + /** + * Create an instance of V1PodList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodList + * @throws IOException if the JSON string is invalid with respect to V1PodList + */ public static V1PodList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodList.class); } - /** - * Convert an instance of V1PodList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodOS.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodOS.java index 0281816de3..f22d876889 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodOS.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodOS.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * PodOS defines the OS parameters of a pod. */ @ApiModel(description = "PodOS defines the OS parameters of a pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodOS { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public V1PodOS() { } - public V1PodOS name(String name) { + public V1PodOS name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodOS - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodOS + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodOS.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -194,22 +194,22 @@ public V1PodOS read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodOS given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodOS - * @throws IOException if the JSON string is invalid with respect to V1PodOS - */ + /** + * Create an instance of V1PodOS given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodOS + * @throws IOException if the JSON string is invalid with respect to V1PodOS + */ public static V1PodOS fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodOS.class); } - /** - * Convert an instance of V1PodOS to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodOS to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGate.java index b56d389096..4f9ba43127 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGate.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * PodReadinessGate contains the reference to a pod condition */ @ApiModel(description = "PodReadinessGate contains the reference to a pod condition") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodReadinessGate { public static final String SERIALIZED_NAME_CONDITION_TYPE = "conditionType"; @SerializedName(SERIALIZED_NAME_CONDITION_TYPE) + @jakarta.annotation.Nonnull private String conditionType; public V1PodReadinessGate() { } - public V1PodReadinessGate conditionType(String conditionType) { + public V1PodReadinessGate conditionType(@jakarta.annotation.Nonnull String conditionType) { this.conditionType = conditionType; return this; } - /** + /** * ConditionType refers to a condition in the pod's condition list with matching type. * @return conditionType - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "ConditionType refers to a condition in the pod's condition list with matching type.") public String getConditionType() { return conditionType; } - public void setConditionType(String conditionType) { + public void setConditionType(@jakarta.annotation.Nonnull String conditionType) { this.conditionType = conditionType; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("conditionType"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodReadinessGate - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodReadinessGate + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodReadinessGate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -194,22 +194,22 @@ public V1PodReadinessGate read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodReadinessGate given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodReadinessGate - * @throws IOException if the JSON string is invalid with respect to V1PodReadinessGate - */ + /** + * Create an instance of V1PodReadinessGate given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodReadinessGate + * @throws IOException if the JSON string is invalid with respect to V1PodReadinessGate + */ public static V1PodReadinessGate fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodReadinessGate.class); } - /** - * Convert an instance of V1PodReadinessGate to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodReadinessGate to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaim.java index d799fe96a4..9c8efa7c4f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaim.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,79 +50,82 @@ * PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name. */ @ApiModel(description = "PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodResourceClaim { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_RESOURCE_CLAIM_NAME = "resourceClaimName"; @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIM_NAME) + @jakarta.annotation.Nullable private String resourceClaimName; public static final String SERIALIZED_NAME_RESOURCE_CLAIM_TEMPLATE_NAME = "resourceClaimTemplateName"; @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIM_TEMPLATE_NAME) + @jakarta.annotation.Nullable private String resourceClaimTemplateName; public V1PodResourceClaim() { } - public V1PodResourceClaim name(String name) { + public V1PodResourceClaim name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1PodResourceClaim resourceClaimName(String resourceClaimName) { + public V1PodResourceClaim resourceClaimName(@jakarta.annotation.Nullable String resourceClaimName) { this.resourceClaimName = resourceClaimName; return this; } - /** + /** * ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. * @return resourceClaimName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set.") public String getResourceClaimName() { return resourceClaimName; } - public void setResourceClaimName(String resourceClaimName) { + public void setResourceClaimName(@jakarta.annotation.Nullable String resourceClaimName) { this.resourceClaimName = resourceClaimName; } - public V1PodResourceClaim resourceClaimTemplateName(String resourceClaimTemplateName) { + public V1PodResourceClaim resourceClaimTemplateName(@jakarta.annotation.Nullable String resourceClaimTemplateName) { this.resourceClaimTemplateName = resourceClaimTemplateName; return this; } - /** + /** * ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. * @return resourceClaimTemplateName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set.") public String getResourceClaimTemplateName() { return resourceClaimTemplateName; } - public void setResourceClaimTemplateName(String resourceClaimTemplateName) { + public void setResourceClaimTemplateName(@jakarta.annotation.Nullable String resourceClaimTemplateName) { this.resourceClaimTemplateName = resourceClaimTemplateName; } @@ -186,12 +188,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodResourceClaim - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodResourceClaim + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodResourceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -254,22 +256,22 @@ public V1PodResourceClaim read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodResourceClaim given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodResourceClaim - * @throws IOException if the JSON string is invalid with respect to V1PodResourceClaim - */ + /** + * Create an instance of V1PodResourceClaim given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodResourceClaim + * @throws IOException if the JSON string is invalid with respect to V1PodResourceClaim + */ public static V1PodResourceClaim fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodResourceClaim.class); } - /** - * Convert an instance of V1PodResourceClaim to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodResourceClaim to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatus.java index ac72948a1d..ed9ade0e97 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatus.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim. */ @ApiModel(description = "PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodResourceClaimStatus { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_RESOURCE_CLAIM_NAME = "resourceClaimName"; @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIM_NAME) + @jakarta.annotation.Nullable private String resourceClaimName; public V1PodResourceClaimStatus() { } - public V1PodResourceClaimStatus name(String name) { + public V1PodResourceClaimStatus name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1PodResourceClaimStatus resourceClaimName(String resourceClaimName) { + public V1PodResourceClaimStatus resourceClaimName(@jakarta.annotation.Nullable String resourceClaimName) { this.resourceClaimName = resourceClaimName; return this; } - /** + /** * ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case. * @return resourceClaimName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.") public String getResourceClaimName() { return resourceClaimName; } - public void setResourceClaimName(String resourceClaimName) { + public void setResourceClaimName(@jakarta.annotation.Nullable String resourceClaimName) { this.resourceClaimName = resourceClaimName; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodResourceClaimStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodResourceClaimStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodResourceClaimStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -224,22 +225,22 @@ public V1PodResourceClaimStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodResourceClaimStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodResourceClaimStatus - * @throws IOException if the JSON string is invalid with respect to V1PodResourceClaimStatus - */ + /** + * Create an instance of V1PodResourceClaimStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodResourceClaimStatus + * @throws IOException if the JSON string is invalid with respect to V1PodResourceClaimStatus + */ public static V1PodResourceClaimStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodResourceClaimStatus.class); } - /** - * Convert an instance of V1PodResourceClaimStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodResourceClaimStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGate.java index fd4baeb2e5..2feb14a3d9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGate.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * PodSchedulingGate is associated to a Pod to guard its scheduling. */ @ApiModel(description = "PodSchedulingGate is associated to a Pod to guard its scheduling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodSchedulingGate { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public V1PodSchedulingGate() { } - public V1PodSchedulingGate name(String name) { + public V1PodSchedulingGate name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name of the scheduling gate. Each scheduling gate must have a unique name field. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name of the scheduling gate. Each scheduling gate must have a unique name field.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodSchedulingGate - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodSchedulingGate + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodSchedulingGate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -194,22 +194,22 @@ public V1PodSchedulingGate read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodSchedulingGate given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodSchedulingGate - * @throws IOException if the JSON string is invalid with respect to V1PodSchedulingGate - */ + /** + * Create an instance of V1PodSchedulingGate given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodSchedulingGate + * @throws IOException if the JSON string is invalid with respect to V1PodSchedulingGate + */ public static V1PodSchedulingGate fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodSchedulingGate.class); } - /** - * Convert an instance of V1PodSchedulingGate to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodSchedulingGate to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java index 0bac2d1b15..bac3ae59ef 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java @@ -45,7 +45,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -58,244 +57,257 @@ * PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext. */ @ApiModel(description = "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodSecurityContext { public static final String SERIALIZED_NAME_APP_ARMOR_PROFILE = "appArmorProfile"; @SerializedName(SERIALIZED_NAME_APP_ARMOR_PROFILE) + @jakarta.annotation.Nullable private V1AppArmorProfile appArmorProfile; public static final String SERIALIZED_NAME_FS_GROUP = "fsGroup"; @SerializedName(SERIALIZED_NAME_FS_GROUP) + @jakarta.annotation.Nullable private Long fsGroup; public static final String SERIALIZED_NAME_FS_GROUP_CHANGE_POLICY = "fsGroupChangePolicy"; @SerializedName(SERIALIZED_NAME_FS_GROUP_CHANGE_POLICY) + @jakarta.annotation.Nullable private String fsGroupChangePolicy; public static final String SERIALIZED_NAME_RUN_AS_GROUP = "runAsGroup"; @SerializedName(SERIALIZED_NAME_RUN_AS_GROUP) + @jakarta.annotation.Nullable private Long runAsGroup; public static final String SERIALIZED_NAME_RUN_AS_NON_ROOT = "runAsNonRoot"; @SerializedName(SERIALIZED_NAME_RUN_AS_NON_ROOT) + @jakarta.annotation.Nullable private Boolean runAsNonRoot; public static final String SERIALIZED_NAME_RUN_AS_USER = "runAsUser"; @SerializedName(SERIALIZED_NAME_RUN_AS_USER) + @jakarta.annotation.Nullable private Long runAsUser; public static final String SERIALIZED_NAME_SE_LINUX_CHANGE_POLICY = "seLinuxChangePolicy"; @SerializedName(SERIALIZED_NAME_SE_LINUX_CHANGE_POLICY) + @jakarta.annotation.Nullable private String seLinuxChangePolicy; public static final String SERIALIZED_NAME_SE_LINUX_OPTIONS = "seLinuxOptions"; @SerializedName(SERIALIZED_NAME_SE_LINUX_OPTIONS) + @jakarta.annotation.Nullable private V1SELinuxOptions seLinuxOptions; public static final String SERIALIZED_NAME_SECCOMP_PROFILE = "seccompProfile"; @SerializedName(SERIALIZED_NAME_SECCOMP_PROFILE) + @jakarta.annotation.Nullable private V1SeccompProfile seccompProfile; public static final String SERIALIZED_NAME_SUPPLEMENTAL_GROUPS = "supplementalGroups"; @SerializedName(SERIALIZED_NAME_SUPPLEMENTAL_GROUPS) + @jakarta.annotation.Nullable private List supplementalGroups = new ArrayList<>(); public static final String SERIALIZED_NAME_SUPPLEMENTAL_GROUPS_POLICY = "supplementalGroupsPolicy"; @SerializedName(SERIALIZED_NAME_SUPPLEMENTAL_GROUPS_POLICY) + @jakarta.annotation.Nullable private String supplementalGroupsPolicy; public static final String SERIALIZED_NAME_SYSCTLS = "sysctls"; @SerializedName(SERIALIZED_NAME_SYSCTLS) + @jakarta.annotation.Nullable private List sysctls = new ArrayList<>(); public static final String SERIALIZED_NAME_WINDOWS_OPTIONS = "windowsOptions"; @SerializedName(SERIALIZED_NAME_WINDOWS_OPTIONS) + @jakarta.annotation.Nullable private V1WindowsSecurityContextOptions windowsOptions; public V1PodSecurityContext() { } - public V1PodSecurityContext appArmorProfile(V1AppArmorProfile appArmorProfile) { + public V1PodSecurityContext appArmorProfile(@jakarta.annotation.Nullable V1AppArmorProfile appArmorProfile) { this.appArmorProfile = appArmorProfile; return this; } - /** + /** * Get appArmorProfile * @return appArmorProfile - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1AppArmorProfile getAppArmorProfile() { return appArmorProfile; } - public void setAppArmorProfile(V1AppArmorProfile appArmorProfile) { + public void setAppArmorProfile(@jakarta.annotation.Nullable V1AppArmorProfile appArmorProfile) { this.appArmorProfile = appArmorProfile; } - public V1PodSecurityContext fsGroup(Long fsGroup) { + public V1PodSecurityContext fsGroup(@jakarta.annotation.Nullable Long fsGroup) { this.fsGroup = fsGroup; return this; } - /** + /** * A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows. * @return fsGroup - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.") public Long getFsGroup() { return fsGroup; } - public void setFsGroup(Long fsGroup) { + public void setFsGroup(@jakarta.annotation.Nullable Long fsGroup) { this.fsGroup = fsGroup; } - public V1PodSecurityContext fsGroupChangePolicy(String fsGroupChangePolicy) { + public V1PodSecurityContext fsGroupChangePolicy(@jakarta.annotation.Nullable String fsGroupChangePolicy) { this.fsGroupChangePolicy = fsGroupChangePolicy; return this; } - /** + /** * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used. Note that this field cannot be set when spec.os.name is windows. * @return fsGroupChangePolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used. Note that this field cannot be set when spec.os.name is windows.") public String getFsGroupChangePolicy() { return fsGroupChangePolicy; } - public void setFsGroupChangePolicy(String fsGroupChangePolicy) { + public void setFsGroupChangePolicy(@jakarta.annotation.Nullable String fsGroupChangePolicy) { this.fsGroupChangePolicy = fsGroupChangePolicy; } - public V1PodSecurityContext runAsGroup(Long runAsGroup) { + public V1PodSecurityContext runAsGroup(@jakarta.annotation.Nullable Long runAsGroup) { this.runAsGroup = runAsGroup; return this; } - /** + /** * The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. * @return runAsGroup - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.") public Long getRunAsGroup() { return runAsGroup; } - public void setRunAsGroup(Long runAsGroup) { + public void setRunAsGroup(@jakarta.annotation.Nullable Long runAsGroup) { this.runAsGroup = runAsGroup; } - public V1PodSecurityContext runAsNonRoot(Boolean runAsNonRoot) { + public V1PodSecurityContext runAsNonRoot(@jakarta.annotation.Nullable Boolean runAsNonRoot) { this.runAsNonRoot = runAsNonRoot; return this; } - /** + /** * Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. * @return runAsNonRoot - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.") public Boolean getRunAsNonRoot() { return runAsNonRoot; } - public void setRunAsNonRoot(Boolean runAsNonRoot) { + public void setRunAsNonRoot(@jakarta.annotation.Nullable Boolean runAsNonRoot) { this.runAsNonRoot = runAsNonRoot; } - public V1PodSecurityContext runAsUser(Long runAsUser) { + public V1PodSecurityContext runAsUser(@jakarta.annotation.Nullable Long runAsUser) { this.runAsUser = runAsUser; return this; } - /** + /** * The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. * @return runAsUser - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.") public Long getRunAsUser() { return runAsUser; } - public void setRunAsUser(Long runAsUser) { + public void setRunAsUser(@jakarta.annotation.Nullable Long runAsUser) { this.runAsUser = runAsUser; } - public V1PodSecurityContext seLinuxChangePolicy(String seLinuxChangePolicy) { + public V1PodSecurityContext seLinuxChangePolicy(@jakarta.annotation.Nullable String seLinuxChangePolicy) { this.seLinuxChangePolicy = seLinuxChangePolicy; return this; } - /** + /** * seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\". \"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. \"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their CSIDriver instance. Other volumes are always re-labelled recursively. \"MountOption\" value is allowed only when SELinuxMount feature gate is enabled. If not specified and SELinuxMount feature gate is enabled, \"MountOption\" is used. If not specified and SELinuxMount feature gate is disabled, \"MountOption\" is used for ReadWriteOncePod volumes and \"Recursive\" for all other volumes. This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. Note that this field cannot be set when spec.os.name is windows. * @return seLinuxChangePolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\". \"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. \"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their CSIDriver instance. Other volumes are always re-labelled recursively. \"MountOption\" value is allowed only when SELinuxMount feature gate is enabled. If not specified and SELinuxMount feature gate is enabled, \"MountOption\" is used. If not specified and SELinuxMount feature gate is disabled, \"MountOption\" is used for ReadWriteOncePod volumes and \"Recursive\" for all other volumes. This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. Note that this field cannot be set when spec.os.name is windows.") public String getSeLinuxChangePolicy() { return seLinuxChangePolicy; } - public void setSeLinuxChangePolicy(String seLinuxChangePolicy) { + public void setSeLinuxChangePolicy(@jakarta.annotation.Nullable String seLinuxChangePolicy) { this.seLinuxChangePolicy = seLinuxChangePolicy; } - public V1PodSecurityContext seLinuxOptions(V1SELinuxOptions seLinuxOptions) { + public V1PodSecurityContext seLinuxOptions(@jakarta.annotation.Nullable V1SELinuxOptions seLinuxOptions) { this.seLinuxOptions = seLinuxOptions; return this; } - /** + /** * Get seLinuxOptions * @return seLinuxOptions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SELinuxOptions getSeLinuxOptions() { return seLinuxOptions; } - public void setSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { + public void setSeLinuxOptions(@jakarta.annotation.Nullable V1SELinuxOptions seLinuxOptions) { this.seLinuxOptions = seLinuxOptions; } - public V1PodSecurityContext seccompProfile(V1SeccompProfile seccompProfile) { + public V1PodSecurityContext seccompProfile(@jakarta.annotation.Nullable V1SeccompProfile seccompProfile) { this.seccompProfile = seccompProfile; return this; } - /** + /** * Get seccompProfile * @return seccompProfile - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SeccompProfile getSeccompProfile() { return seccompProfile; } - public void setSeccompProfile(V1SeccompProfile seccompProfile) { + public void setSeccompProfile(@jakarta.annotation.Nullable V1SeccompProfile seccompProfile) { this.seccompProfile = seccompProfile; } - public V1PodSecurityContext supplementalGroups(List supplementalGroups) { + public V1PodSecurityContext supplementalGroups(@jakarta.annotation.Nullable List supplementalGroups) { this.supplementalGroups = supplementalGroups; return this; } @@ -308,42 +320,42 @@ public V1PodSecurityContext addSupplementalGroupsItem(Long supplementalGroupsIte return this; } - /** + /** * A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified). If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows. * @return supplementalGroups - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified). If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows.") public List getSupplementalGroups() { return supplementalGroups; } - public void setSupplementalGroups(List supplementalGroups) { + public void setSupplementalGroups(@jakarta.annotation.Nullable List supplementalGroups) { this.supplementalGroups = supplementalGroups; } - public V1PodSecurityContext supplementalGroupsPolicy(String supplementalGroupsPolicy) { + public V1PodSecurityContext supplementalGroupsPolicy(@jakarta.annotation.Nullable String supplementalGroupsPolicy) { this.supplementalGroupsPolicy = supplementalGroupsPolicy; return this; } - /** + /** * Defines how supplemental groups of the first container processes are calculated. Valid values are \"Merge\" and \"Strict\". If not specified, \"Merge\" is used. (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled and the container runtime must implement support for this feature. Note that this field cannot be set when spec.os.name is windows. * @return supplementalGroupsPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Defines how supplemental groups of the first container processes are calculated. Valid values are \"Merge\" and \"Strict\". If not specified, \"Merge\" is used. (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled and the container runtime must implement support for this feature. Note that this field cannot be set when spec.os.name is windows.") public String getSupplementalGroupsPolicy() { return supplementalGroupsPolicy; } - public void setSupplementalGroupsPolicy(String supplementalGroupsPolicy) { + public void setSupplementalGroupsPolicy(@jakarta.annotation.Nullable String supplementalGroupsPolicy) { this.supplementalGroupsPolicy = supplementalGroupsPolicy; } - public V1PodSecurityContext sysctls(List sysctls) { + public V1PodSecurityContext sysctls(@jakarta.annotation.Nullable List sysctls) { this.sysctls = sysctls; return this; } @@ -356,37 +368,37 @@ public V1PodSecurityContext addSysctlsItem(V1Sysctl sysctlsItem) { return this; } - /** + /** * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows. * @return sysctls - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows.") public List getSysctls() { return sysctls; } - public void setSysctls(List sysctls) { + public void setSysctls(@jakarta.annotation.Nullable List sysctls) { this.sysctls = sysctls; } - public V1PodSecurityContext windowsOptions(V1WindowsSecurityContextOptions windowsOptions) { + public V1PodSecurityContext windowsOptions(@jakarta.annotation.Nullable V1WindowsSecurityContextOptions windowsOptions) { this.windowsOptions = windowsOptions; return this; } - /** + /** * Get windowsOptions * @return windowsOptions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1WindowsSecurityContextOptions getWindowsOptions() { return windowsOptions; } - public void setWindowsOptions(V1WindowsSecurityContextOptions windowsOptions) { + public void setWindowsOptions(@jakarta.annotation.Nullable V1WindowsSecurityContextOptions windowsOptions) { this.windowsOptions = windowsOptions; } @@ -478,12 +490,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodSecurityContext - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodSecurityContext + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodSecurityContext.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -573,22 +585,22 @@ public V1PodSecurityContext read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodSecurityContext given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodSecurityContext - * @throws IOException if the JSON string is invalid with respect to V1PodSecurityContext - */ + /** + * Create an instance of V1PodSecurityContext given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodSecurityContext + * @throws IOException if the JSON string is invalid with respect to V1PodSecurityContext + */ public static V1PodSecurityContext fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodSecurityContext.class); } - /** - * Convert an instance of V1PodSecurityContext to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodSecurityContext to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSpec.java index c48b777f7a..bbfca6cd01 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSpec.java @@ -58,7 +58,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -71,232 +70,272 @@ * PodSpec is a description of a pod. */ @ApiModel(description = "PodSpec is a description of a pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodSpec { public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; @SerializedName(SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS) + @jakarta.annotation.Nullable private Long activeDeadlineSeconds; public static final String SERIALIZED_NAME_AFFINITY = "affinity"; @SerializedName(SERIALIZED_NAME_AFFINITY) + @jakarta.annotation.Nullable private V1Affinity affinity; public static final String SERIALIZED_NAME_AUTOMOUNT_SERVICE_ACCOUNT_TOKEN = "automountServiceAccountToken"; @SerializedName(SERIALIZED_NAME_AUTOMOUNT_SERVICE_ACCOUNT_TOKEN) + @jakarta.annotation.Nullable private Boolean automountServiceAccountToken; public static final String SERIALIZED_NAME_CONTAINERS = "containers"; @SerializedName(SERIALIZED_NAME_CONTAINERS) + @jakarta.annotation.Nonnull private List containers = new ArrayList<>(); public static final String SERIALIZED_NAME_DNS_CONFIG = "dnsConfig"; @SerializedName(SERIALIZED_NAME_DNS_CONFIG) + @jakarta.annotation.Nullable private V1PodDNSConfig dnsConfig; public static final String SERIALIZED_NAME_DNS_POLICY = "dnsPolicy"; @SerializedName(SERIALIZED_NAME_DNS_POLICY) + @jakarta.annotation.Nullable private String dnsPolicy; public static final String SERIALIZED_NAME_ENABLE_SERVICE_LINKS = "enableServiceLinks"; @SerializedName(SERIALIZED_NAME_ENABLE_SERVICE_LINKS) + @jakarta.annotation.Nullable private Boolean enableServiceLinks; public static final String SERIALIZED_NAME_EPHEMERAL_CONTAINERS = "ephemeralContainers"; @SerializedName(SERIALIZED_NAME_EPHEMERAL_CONTAINERS) + @jakarta.annotation.Nullable private List ephemeralContainers = new ArrayList<>(); public static final String SERIALIZED_NAME_HOST_ALIASES = "hostAliases"; @SerializedName(SERIALIZED_NAME_HOST_ALIASES) + @jakarta.annotation.Nullable private List hostAliases = new ArrayList<>(); public static final String SERIALIZED_NAME_HOST_I_P_C = "hostIPC"; @SerializedName(SERIALIZED_NAME_HOST_I_P_C) + @jakarta.annotation.Nullable private Boolean hostIPC; public static final String SERIALIZED_NAME_HOST_NETWORK = "hostNetwork"; @SerializedName(SERIALIZED_NAME_HOST_NETWORK) + @jakarta.annotation.Nullable private Boolean hostNetwork; public static final String SERIALIZED_NAME_HOST_P_I_D = "hostPID"; @SerializedName(SERIALIZED_NAME_HOST_P_I_D) + @jakarta.annotation.Nullable private Boolean hostPID; public static final String SERIALIZED_NAME_HOST_USERS = "hostUsers"; @SerializedName(SERIALIZED_NAME_HOST_USERS) + @jakarta.annotation.Nullable private Boolean hostUsers; public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) + @jakarta.annotation.Nullable private String hostname; public static final String SERIALIZED_NAME_IMAGE_PULL_SECRETS = "imagePullSecrets"; @SerializedName(SERIALIZED_NAME_IMAGE_PULL_SECRETS) + @jakarta.annotation.Nullable private List imagePullSecrets = new ArrayList<>(); public static final String SERIALIZED_NAME_INIT_CONTAINERS = "initContainers"; @SerializedName(SERIALIZED_NAME_INIT_CONTAINERS) + @jakarta.annotation.Nullable private List initContainers = new ArrayList<>(); public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; @SerializedName(SERIALIZED_NAME_NODE_NAME) + @jakarta.annotation.Nullable private String nodeName; public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) + @jakarta.annotation.Nullable private Map nodeSelector = new HashMap<>(); public static final String SERIALIZED_NAME_OS = "os"; @SerializedName(SERIALIZED_NAME_OS) + @jakarta.annotation.Nullable private V1PodOS os; public static final String SERIALIZED_NAME_OVERHEAD = "overhead"; @SerializedName(SERIALIZED_NAME_OVERHEAD) + @jakarta.annotation.Nullable private Map overhead = new HashMap<>(); public static final String SERIALIZED_NAME_PREEMPTION_POLICY = "preemptionPolicy"; @SerializedName(SERIALIZED_NAME_PREEMPTION_POLICY) + @jakarta.annotation.Nullable private String preemptionPolicy; public static final String SERIALIZED_NAME_PRIORITY = "priority"; @SerializedName(SERIALIZED_NAME_PRIORITY) + @jakarta.annotation.Nullable private Integer priority; public static final String SERIALIZED_NAME_PRIORITY_CLASS_NAME = "priorityClassName"; @SerializedName(SERIALIZED_NAME_PRIORITY_CLASS_NAME) + @jakarta.annotation.Nullable private String priorityClassName; public static final String SERIALIZED_NAME_READINESS_GATES = "readinessGates"; @SerializedName(SERIALIZED_NAME_READINESS_GATES) + @jakarta.annotation.Nullable private List readinessGates = new ArrayList<>(); public static final String SERIALIZED_NAME_RESOURCE_CLAIMS = "resourceClaims"; @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIMS) + @jakarta.annotation.Nullable private List resourceClaims = new ArrayList<>(); public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) + @jakarta.annotation.Nullable private V1ResourceRequirements resources; public static final String SERIALIZED_NAME_RESTART_POLICY = "restartPolicy"; @SerializedName(SERIALIZED_NAME_RESTART_POLICY) + @jakarta.annotation.Nullable private String restartPolicy; public static final String SERIALIZED_NAME_RUNTIME_CLASS_NAME = "runtimeClassName"; @SerializedName(SERIALIZED_NAME_RUNTIME_CLASS_NAME) + @jakarta.annotation.Nullable private String runtimeClassName; public static final String SERIALIZED_NAME_SCHEDULER_NAME = "schedulerName"; @SerializedName(SERIALIZED_NAME_SCHEDULER_NAME) + @jakarta.annotation.Nullable private String schedulerName; public static final String SERIALIZED_NAME_SCHEDULING_GATES = "schedulingGates"; @SerializedName(SERIALIZED_NAME_SCHEDULING_GATES) + @jakarta.annotation.Nullable private List schedulingGates = new ArrayList<>(); public static final String SERIALIZED_NAME_SECURITY_CONTEXT = "securityContext"; @SerializedName(SERIALIZED_NAME_SECURITY_CONTEXT) + @jakarta.annotation.Nullable private V1PodSecurityContext securityContext; public static final String SERIALIZED_NAME_SERVICE_ACCOUNT = "serviceAccount"; @SerializedName(SERIALIZED_NAME_SERVICE_ACCOUNT) + @jakarta.annotation.Nullable private String serviceAccount; public static final String SERIALIZED_NAME_SERVICE_ACCOUNT_NAME = "serviceAccountName"; @SerializedName(SERIALIZED_NAME_SERVICE_ACCOUNT_NAME) + @jakarta.annotation.Nullable private String serviceAccountName; public static final String SERIALIZED_NAME_SET_HOSTNAME_AS_F_Q_D_N = "setHostnameAsFQDN"; @SerializedName(SERIALIZED_NAME_SET_HOSTNAME_AS_F_Q_D_N) + @jakarta.annotation.Nullable private Boolean setHostnameAsFQDN; public static final String SERIALIZED_NAME_SHARE_PROCESS_NAMESPACE = "shareProcessNamespace"; @SerializedName(SERIALIZED_NAME_SHARE_PROCESS_NAMESPACE) + @jakarta.annotation.Nullable private Boolean shareProcessNamespace; public static final String SERIALIZED_NAME_SUBDOMAIN = "subdomain"; @SerializedName(SERIALIZED_NAME_SUBDOMAIN) + @jakarta.annotation.Nullable private String subdomain; public static final String SERIALIZED_NAME_TERMINATION_GRACE_PERIOD_SECONDS = "terminationGracePeriodSeconds"; @SerializedName(SERIALIZED_NAME_TERMINATION_GRACE_PERIOD_SECONDS) + @jakarta.annotation.Nullable private Long terminationGracePeriodSeconds; public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; @SerializedName(SERIALIZED_NAME_TOLERATIONS) + @jakarta.annotation.Nullable private List tolerations = new ArrayList<>(); public static final String SERIALIZED_NAME_TOPOLOGY_SPREAD_CONSTRAINTS = "topologySpreadConstraints"; @SerializedName(SERIALIZED_NAME_TOPOLOGY_SPREAD_CONSTRAINTS) + @jakarta.annotation.Nullable private List topologySpreadConstraints = new ArrayList<>(); public static final String SERIALIZED_NAME_VOLUMES = "volumes"; @SerializedName(SERIALIZED_NAME_VOLUMES) + @jakarta.annotation.Nullable private List volumes = new ArrayList<>(); public V1PodSpec() { } - public V1PodSpec activeDeadlineSeconds(Long activeDeadlineSeconds) { + public V1PodSpec activeDeadlineSeconds(@jakarta.annotation.Nullable Long activeDeadlineSeconds) { this.activeDeadlineSeconds = activeDeadlineSeconds; return this; } - /** + /** * Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. * @return activeDeadlineSeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.") public Long getActiveDeadlineSeconds() { return activeDeadlineSeconds; } - public void setActiveDeadlineSeconds(Long activeDeadlineSeconds) { + public void setActiveDeadlineSeconds(@jakarta.annotation.Nullable Long activeDeadlineSeconds) { this.activeDeadlineSeconds = activeDeadlineSeconds; } - public V1PodSpec affinity(V1Affinity affinity) { + public V1PodSpec affinity(@jakarta.annotation.Nullable V1Affinity affinity) { this.affinity = affinity; return this; } - /** + /** * Get affinity * @return affinity - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1Affinity getAffinity() { return affinity; } - public void setAffinity(V1Affinity affinity) { + public void setAffinity(@jakarta.annotation.Nullable V1Affinity affinity) { this.affinity = affinity; } - public V1PodSpec automountServiceAccountToken(Boolean automountServiceAccountToken) { + public V1PodSpec automountServiceAccountToken(@jakarta.annotation.Nullable Boolean automountServiceAccountToken) { this.automountServiceAccountToken = automountServiceAccountToken; return this; } - /** + /** * AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. * @return automountServiceAccountToken - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.") public Boolean getAutomountServiceAccountToken() { return automountServiceAccountToken; } - public void setAutomountServiceAccountToken(Boolean automountServiceAccountToken) { + public void setAutomountServiceAccountToken(@jakarta.annotation.Nullable Boolean automountServiceAccountToken) { this.automountServiceAccountToken = automountServiceAccountToken; } - public V1PodSpec containers(List containers) { + public V1PodSpec containers(@jakarta.annotation.Nonnull List containers) { this.containers = containers; return this; } @@ -309,82 +348,82 @@ public V1PodSpec addContainersItem(V1Container containersItem) { return this; } - /** + /** * List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. * @return containers - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated.") public List getContainers() { return containers; } - public void setContainers(List containers) { + public void setContainers(@jakarta.annotation.Nonnull List containers) { this.containers = containers; } - public V1PodSpec dnsConfig(V1PodDNSConfig dnsConfig) { + public V1PodSpec dnsConfig(@jakarta.annotation.Nullable V1PodDNSConfig dnsConfig) { this.dnsConfig = dnsConfig; return this; } - /** + /** * Get dnsConfig * @return dnsConfig - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PodDNSConfig getDnsConfig() { return dnsConfig; } - public void setDnsConfig(V1PodDNSConfig dnsConfig) { + public void setDnsConfig(@jakarta.annotation.Nullable V1PodDNSConfig dnsConfig) { this.dnsConfig = dnsConfig; } - public V1PodSpec dnsPolicy(String dnsPolicy) { + public V1PodSpec dnsPolicy(@jakarta.annotation.Nullable String dnsPolicy) { this.dnsPolicy = dnsPolicy; return this; } - /** + /** * Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. * @return dnsPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.") public String getDnsPolicy() { return dnsPolicy; } - public void setDnsPolicy(String dnsPolicy) { + public void setDnsPolicy(@jakarta.annotation.Nullable String dnsPolicy) { this.dnsPolicy = dnsPolicy; } - public V1PodSpec enableServiceLinks(Boolean enableServiceLinks) { + public V1PodSpec enableServiceLinks(@jakarta.annotation.Nullable Boolean enableServiceLinks) { this.enableServiceLinks = enableServiceLinks; return this; } - /** + /** * EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. * @return enableServiceLinks - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.") public Boolean getEnableServiceLinks() { return enableServiceLinks; } - public void setEnableServiceLinks(Boolean enableServiceLinks) { + public void setEnableServiceLinks(@jakarta.annotation.Nullable Boolean enableServiceLinks) { this.enableServiceLinks = enableServiceLinks; } - public V1PodSpec ephemeralContainers(List ephemeralContainers) { + public V1PodSpec ephemeralContainers(@jakarta.annotation.Nullable List ephemeralContainers) { this.ephemeralContainers = ephemeralContainers; return this; } @@ -397,22 +436,22 @@ public V1PodSpec addEphemeralContainersItem(V1EphemeralContainer ephemeralContai return this; } - /** + /** * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. * @return ephemeralContainers - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.") public List getEphemeralContainers() { return ephemeralContainers; } - public void setEphemeralContainers(List ephemeralContainers) { + public void setEphemeralContainers(@jakarta.annotation.Nullable List ephemeralContainers) { this.ephemeralContainers = ephemeralContainers; } - public V1PodSpec hostAliases(List hostAliases) { + public V1PodSpec hostAliases(@jakarta.annotation.Nullable List hostAliases) { this.hostAliases = hostAliases; return this; } @@ -425,122 +464,122 @@ public V1PodSpec addHostAliasesItem(V1HostAlias hostAliasesItem) { return this; } - /** + /** * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. * @return hostAliases - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.") public List getHostAliases() { return hostAliases; } - public void setHostAliases(List hostAliases) { + public void setHostAliases(@jakarta.annotation.Nullable List hostAliases) { this.hostAliases = hostAliases; } - public V1PodSpec hostIPC(Boolean hostIPC) { + public V1PodSpec hostIPC(@jakarta.annotation.Nullable Boolean hostIPC) { this.hostIPC = hostIPC; return this; } - /** + /** * Use the host's ipc namespace. Optional: Default to false. * @return hostIPC - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Use the host's ipc namespace. Optional: Default to false.") public Boolean getHostIPC() { return hostIPC; } - public void setHostIPC(Boolean hostIPC) { + public void setHostIPC(@jakarta.annotation.Nullable Boolean hostIPC) { this.hostIPC = hostIPC; } - public V1PodSpec hostNetwork(Boolean hostNetwork) { + public V1PodSpec hostNetwork(@jakarta.annotation.Nullable Boolean hostNetwork) { this.hostNetwork = hostNetwork; return this; } - /** + /** * Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. * @return hostNetwork - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.") public Boolean getHostNetwork() { return hostNetwork; } - public void setHostNetwork(Boolean hostNetwork) { + public void setHostNetwork(@jakarta.annotation.Nullable Boolean hostNetwork) { this.hostNetwork = hostNetwork; } - public V1PodSpec hostPID(Boolean hostPID) { + public V1PodSpec hostPID(@jakarta.annotation.Nullable Boolean hostPID) { this.hostPID = hostPID; return this; } - /** + /** * Use the host's pid namespace. Optional: Default to false. * @return hostPID - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Use the host's pid namespace. Optional: Default to false.") public Boolean getHostPID() { return hostPID; } - public void setHostPID(Boolean hostPID) { + public void setHostPID(@jakarta.annotation.Nullable Boolean hostPID) { this.hostPID = hostPID; } - public V1PodSpec hostUsers(Boolean hostUsers) { + public V1PodSpec hostUsers(@jakarta.annotation.Nullable Boolean hostUsers) { this.hostUsers = hostUsers; return this; } - /** + /** * Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. * @return hostUsers - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.") public Boolean getHostUsers() { return hostUsers; } - public void setHostUsers(Boolean hostUsers) { + public void setHostUsers(@jakarta.annotation.Nullable Boolean hostUsers) { this.hostUsers = hostUsers; } - public V1PodSpec hostname(String hostname) { + public V1PodSpec hostname(@jakarta.annotation.Nullable String hostname) { this.hostname = hostname; return this; } - /** + /** * Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. * @return hostname - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.") public String getHostname() { return hostname; } - public void setHostname(String hostname) { + public void setHostname(@jakarta.annotation.Nullable String hostname) { this.hostname = hostname; } - public V1PodSpec imagePullSecrets(List imagePullSecrets) { + public V1PodSpec imagePullSecrets(@jakarta.annotation.Nullable List imagePullSecrets) { this.imagePullSecrets = imagePullSecrets; return this; } @@ -553,22 +592,22 @@ public V1PodSpec addImagePullSecretsItem(V1LocalObjectReference imagePullSecrets return this; } - /** + /** * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod * @return imagePullSecrets - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod") public List getImagePullSecrets() { return imagePullSecrets; } - public void setImagePullSecrets(List imagePullSecrets) { + public void setImagePullSecrets(@jakarta.annotation.Nullable List imagePullSecrets) { this.imagePullSecrets = imagePullSecrets; } - public V1PodSpec initContainers(List initContainers) { + public V1PodSpec initContainers(@jakarta.annotation.Nullable List initContainers) { this.initContainers = initContainers; return this; } @@ -581,42 +620,42 @@ public V1PodSpec addInitContainersItem(V1Container initContainersItem) { return this; } - /** - * List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + /** + * List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ * @return initContainers - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/") + @ApiModelProperty(value = "List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/") public List getInitContainers() { return initContainers; } - public void setInitContainers(List initContainers) { + public void setInitContainers(@jakarta.annotation.Nullable List initContainers) { this.initContainers = initContainers; } - public V1PodSpec nodeName(String nodeName) { + public V1PodSpec nodeName(@jakarta.annotation.Nullable String nodeName) { this.nodeName = nodeName; return this; } - /** + /** * NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename * @return nodeName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename") public String getNodeName() { return nodeName; } - public void setNodeName(String nodeName) { + public void setNodeName(@jakarta.annotation.Nullable String nodeName) { this.nodeName = nodeName; } - public V1PodSpec nodeSelector(Map nodeSelector) { + public V1PodSpec nodeSelector(@jakarta.annotation.Nullable Map nodeSelector) { this.nodeSelector = nodeSelector; return this; } @@ -629,42 +668,42 @@ public V1PodSpec putNodeSelectorItem(String key, String nodeSelectorItem) { return this; } - /** + /** * NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ * @return nodeSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/") public Map getNodeSelector() { return nodeSelector; } - public void setNodeSelector(Map nodeSelector) { + public void setNodeSelector(@jakarta.annotation.Nullable Map nodeSelector) { this.nodeSelector = nodeSelector; } - public V1PodSpec os(V1PodOS os) { + public V1PodSpec os(@jakarta.annotation.Nullable V1PodOS os) { this.os = os; return this; } - /** + /** * Get os * @return os - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PodOS getOs() { return os; } - public void setOs(V1PodOS os) { + public void setOs(@jakarta.annotation.Nullable V1PodOS os) { this.os = os; } - public V1PodSpec overhead(Map overhead) { + public V1PodSpec overhead(@jakarta.annotation.Nullable Map overhead) { this.overhead = overhead; return this; } @@ -677,82 +716,82 @@ public V1PodSpec putOverheadItem(String key, Quantity overheadItem) { return this; } - /** + /** * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md * @return overhead - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md") public Map getOverhead() { return overhead; } - public void setOverhead(Map overhead) { + public void setOverhead(@jakarta.annotation.Nullable Map overhead) { this.overhead = overhead; } - public V1PodSpec preemptionPolicy(String preemptionPolicy) { + public V1PodSpec preemptionPolicy(@jakarta.annotation.Nullable String preemptionPolicy) { this.preemptionPolicy = preemptionPolicy; return this; } - /** + /** * PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. * @return preemptionPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.") public String getPreemptionPolicy() { return preemptionPolicy; } - public void setPreemptionPolicy(String preemptionPolicy) { + public void setPreemptionPolicy(@jakarta.annotation.Nullable String preemptionPolicy) { this.preemptionPolicy = preemptionPolicy; } - public V1PodSpec priority(Integer priority) { + public V1PodSpec priority(@jakarta.annotation.Nullable Integer priority) { this.priority = priority; return this; } - /** + /** * The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. * @return priority - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.") public Integer getPriority() { return priority; } - public void setPriority(Integer priority) { + public void setPriority(@jakarta.annotation.Nullable Integer priority) { this.priority = priority; } - public V1PodSpec priorityClassName(String priorityClassName) { + public V1PodSpec priorityClassName(@jakarta.annotation.Nullable String priorityClassName) { this.priorityClassName = priorityClassName; return this; } - /** + /** * If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. * @return priorityClassName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.") public String getPriorityClassName() { return priorityClassName; } - public void setPriorityClassName(String priorityClassName) { + public void setPriorityClassName(@jakarta.annotation.Nullable String priorityClassName) { this.priorityClassName = priorityClassName; } - public V1PodSpec readinessGates(List readinessGates) { + public V1PodSpec readinessGates(@jakarta.annotation.Nullable List readinessGates) { this.readinessGates = readinessGates; return this; } @@ -765,22 +804,22 @@ public V1PodSpec addReadinessGatesItem(V1PodReadinessGate readinessGatesItem) { return this; } - /** + /** * If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates * @return readinessGates - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates") public List getReadinessGates() { return readinessGates; } - public void setReadinessGates(List readinessGates) { + public void setReadinessGates(@jakarta.annotation.Nullable List readinessGates) { this.readinessGates = readinessGates; } - public V1PodSpec resourceClaims(List resourceClaims) { + public V1PodSpec resourceClaims(@jakarta.annotation.Nullable List resourceClaims) { this.resourceClaims = resourceClaims; return this; } @@ -793,102 +832,102 @@ public V1PodSpec addResourceClaimsItem(V1PodResourceClaim resourceClaimsItem) { return this; } - /** + /** * ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. * @return resourceClaims - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable.") public List getResourceClaims() { return resourceClaims; } - public void setResourceClaims(List resourceClaims) { + public void setResourceClaims(@jakarta.annotation.Nullable List resourceClaims) { this.resourceClaims = resourceClaims; } - public V1PodSpec resources(V1ResourceRequirements resources) { + public V1PodSpec resources(@jakarta.annotation.Nullable V1ResourceRequirements resources) { this.resources = resources; return this; } - /** + /** * Get resources * @return resources - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ResourceRequirements getResources() { return resources; } - public void setResources(V1ResourceRequirements resources) { + public void setResources(@jakarta.annotation.Nullable V1ResourceRequirements resources) { this.resources = resources; } - public V1PodSpec restartPolicy(String restartPolicy) { + public V1PodSpec restartPolicy(@jakarta.annotation.Nullable String restartPolicy) { this.restartPolicy = restartPolicy; return this; } - /** + /** * Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy * @return restartPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy") public String getRestartPolicy() { return restartPolicy; } - public void setRestartPolicy(String restartPolicy) { + public void setRestartPolicy(@jakarta.annotation.Nullable String restartPolicy) { this.restartPolicy = restartPolicy; } - public V1PodSpec runtimeClassName(String runtimeClassName) { + public V1PodSpec runtimeClassName(@jakarta.annotation.Nullable String runtimeClassName) { this.runtimeClassName = runtimeClassName; return this; } - /** + /** * RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class * @return runtimeClassName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class") public String getRuntimeClassName() { return runtimeClassName; } - public void setRuntimeClassName(String runtimeClassName) { + public void setRuntimeClassName(@jakarta.annotation.Nullable String runtimeClassName) { this.runtimeClassName = runtimeClassName; } - public V1PodSpec schedulerName(String schedulerName) { + public V1PodSpec schedulerName(@jakarta.annotation.Nullable String schedulerName) { this.schedulerName = schedulerName; return this; } - /** + /** * If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. * @return schedulerName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.") public String getSchedulerName() { return schedulerName; } - public void setSchedulerName(String schedulerName) { + public void setSchedulerName(@jakarta.annotation.Nullable String schedulerName) { this.schedulerName = schedulerName; } - public V1PodSpec schedulingGates(List schedulingGates) { + public V1PodSpec schedulingGates(@jakarta.annotation.Nullable List schedulingGates) { this.schedulingGates = schedulingGates; return this; } @@ -901,162 +940,162 @@ public V1PodSpec addSchedulingGatesItem(V1PodSchedulingGate schedulingGatesItem) return this; } - /** + /** * SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. * @return schedulingGates - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards.") public List getSchedulingGates() { return schedulingGates; } - public void setSchedulingGates(List schedulingGates) { + public void setSchedulingGates(@jakarta.annotation.Nullable List schedulingGates) { this.schedulingGates = schedulingGates; } - public V1PodSpec securityContext(V1PodSecurityContext securityContext) { + public V1PodSpec securityContext(@jakarta.annotation.Nullable V1PodSecurityContext securityContext) { this.securityContext = securityContext; return this; } - /** + /** * Get securityContext * @return securityContext - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PodSecurityContext getSecurityContext() { return securityContext; } - public void setSecurityContext(V1PodSecurityContext securityContext) { + public void setSecurityContext(@jakarta.annotation.Nullable V1PodSecurityContext securityContext) { this.securityContext = securityContext; } - public V1PodSpec serviceAccount(String serviceAccount) { + public V1PodSpec serviceAccount(@jakarta.annotation.Nullable String serviceAccount) { this.serviceAccount = serviceAccount; return this; } - /** + /** * DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. * @return serviceAccount - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.") public String getServiceAccount() { return serviceAccount; } - public void setServiceAccount(String serviceAccount) { + public void setServiceAccount(@jakarta.annotation.Nullable String serviceAccount) { this.serviceAccount = serviceAccount; } - public V1PodSpec serviceAccountName(String serviceAccountName) { + public V1PodSpec serviceAccountName(@jakarta.annotation.Nullable String serviceAccountName) { this.serviceAccountName = serviceAccountName; return this; } - /** + /** * ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ * @return serviceAccountName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/") public String getServiceAccountName() { return serviceAccountName; } - public void setServiceAccountName(String serviceAccountName) { + public void setServiceAccountName(@jakarta.annotation.Nullable String serviceAccountName) { this.serviceAccountName = serviceAccountName; } - public V1PodSpec setHostnameAsFQDN(Boolean setHostnameAsFQDN) { + public V1PodSpec setHostnameAsFQDN(@jakarta.annotation.Nullable Boolean setHostnameAsFQDN) { this.setHostnameAsFQDN = setHostnameAsFQDN; return this; } - /** + /** * If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. * @return setHostnameAsFQDN - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.") public Boolean getSetHostnameAsFQDN() { return setHostnameAsFQDN; } - public void setSetHostnameAsFQDN(Boolean setHostnameAsFQDN) { + public void setSetHostnameAsFQDN(@jakarta.annotation.Nullable Boolean setHostnameAsFQDN) { this.setHostnameAsFQDN = setHostnameAsFQDN; } - public V1PodSpec shareProcessNamespace(Boolean shareProcessNamespace) { + public V1PodSpec shareProcessNamespace(@jakarta.annotation.Nullable Boolean shareProcessNamespace) { this.shareProcessNamespace = shareProcessNamespace; return this; } - /** + /** * Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. * @return shareProcessNamespace - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false.") public Boolean getShareProcessNamespace() { return shareProcessNamespace; } - public void setShareProcessNamespace(Boolean shareProcessNamespace) { + public void setShareProcessNamespace(@jakarta.annotation.Nullable Boolean shareProcessNamespace) { this.shareProcessNamespace = shareProcessNamespace; } - public V1PodSpec subdomain(String subdomain) { + public V1PodSpec subdomain(@jakarta.annotation.Nullable String subdomain) { this.subdomain = subdomain; return this; } - /** + /** * If specified, the fully qualified Pod hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the pod will not have a domainname at all. * @return subdomain - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all.") public String getSubdomain() { return subdomain; } - public void setSubdomain(String subdomain) { + public void setSubdomain(@jakarta.annotation.Nullable String subdomain) { this.subdomain = subdomain; } - public V1PodSpec terminationGracePeriodSeconds(Long terminationGracePeriodSeconds) { + public V1PodSpec terminationGracePeriodSeconds(@jakarta.annotation.Nullable Long terminationGracePeriodSeconds) { this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; return this; } - /** + /** * Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. * @return terminationGracePeriodSeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.") public Long getTerminationGracePeriodSeconds() { return terminationGracePeriodSeconds; } - public void setTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds) { + public void setTerminationGracePeriodSeconds(@jakarta.annotation.Nullable Long terminationGracePeriodSeconds) { this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; } - public V1PodSpec tolerations(List tolerations) { + public V1PodSpec tolerations(@jakarta.annotation.Nullable List tolerations) { this.tolerations = tolerations; return this; } @@ -1069,22 +1108,22 @@ public V1PodSpec addTolerationsItem(V1Toleration tolerationsItem) { return this; } - /** + /** * If specified, the pod's tolerations. * @return tolerations - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "If specified, the pod's tolerations.") public List getTolerations() { return tolerations; } - public void setTolerations(List tolerations) { + public void setTolerations(@jakarta.annotation.Nullable List tolerations) { this.tolerations = tolerations; } - public V1PodSpec topologySpreadConstraints(List topologySpreadConstraints) { + public V1PodSpec topologySpreadConstraints(@jakarta.annotation.Nullable List topologySpreadConstraints) { this.topologySpreadConstraints = topologySpreadConstraints; return this; } @@ -1097,22 +1136,22 @@ public V1PodSpec addTopologySpreadConstraintsItem(V1TopologySpreadConstraint top return this; } - /** + /** * TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. * @return topologySpreadConstraints - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed.") public List getTopologySpreadConstraints() { return topologySpreadConstraints; } - public void setTopologySpreadConstraints(List topologySpreadConstraints) { + public void setTopologySpreadConstraints(@jakarta.annotation.Nullable List topologySpreadConstraints) { this.topologySpreadConstraints = topologySpreadConstraints; } - public V1PodSpec volumes(List volumes) { + public V1PodSpec volumes(@jakarta.annotation.Nullable List volumes) { this.volumes = volumes; return this; } @@ -1125,17 +1164,17 @@ public V1PodSpec addVolumesItem(V1Volume volumesItem) { return this; } - /** + /** * List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes * @return volumes - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes") public List getVolumes() { return volumes; } - public void setVolumes(List volumes) { + public void setVolumes(@jakarta.annotation.Nullable List volumes) { this.volumes = volumes; } @@ -1309,12 +1348,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("containers"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -1571,22 +1610,22 @@ public V1PodSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodSpec - * @throws IOException if the JSON string is invalid with respect to V1PodSpec - */ + /** + * Create an instance of V1PodSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodSpec + * @throws IOException if the JSON string is invalid with respect to V1PodSpec + */ public static V1PodSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodSpec.class); } - /** - * Convert an instance of V1PodSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java index 315ba5a094..f21f4cef14 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java @@ -46,7 +46,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -59,76 +58,97 @@ * PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane. */ @ApiModel(description = "PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); public static final String SERIALIZED_NAME_CONTAINER_STATUSES = "containerStatuses"; @SerializedName(SERIALIZED_NAME_CONTAINER_STATUSES) + @jakarta.annotation.Nullable private List containerStatuses = new ArrayList<>(); public static final String SERIALIZED_NAME_EPHEMERAL_CONTAINER_STATUSES = "ephemeralContainerStatuses"; @SerializedName(SERIALIZED_NAME_EPHEMERAL_CONTAINER_STATUSES) + @jakarta.annotation.Nullable private List ephemeralContainerStatuses = new ArrayList<>(); public static final String SERIALIZED_NAME_HOST_I_P = "hostIP"; @SerializedName(SERIALIZED_NAME_HOST_I_P) + @jakarta.annotation.Nullable private String hostIP; public static final String SERIALIZED_NAME_HOST_I_PS = "hostIPs"; @SerializedName(SERIALIZED_NAME_HOST_I_PS) + @jakarta.annotation.Nullable private List hostIPs = new ArrayList<>(); public static final String SERIALIZED_NAME_INIT_CONTAINER_STATUSES = "initContainerStatuses"; @SerializedName(SERIALIZED_NAME_INIT_CONTAINER_STATUSES) + @jakarta.annotation.Nullable private List initContainerStatuses = new ArrayList<>(); public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_NOMINATED_NODE_NAME = "nominatedNodeName"; @SerializedName(SERIALIZED_NAME_NOMINATED_NODE_NAME) + @jakarta.annotation.Nullable private String nominatedNodeName; + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + @jakarta.annotation.Nullable + private Long observedGeneration; + public static final String SERIALIZED_NAME_PHASE = "phase"; @SerializedName(SERIALIZED_NAME_PHASE) + @jakarta.annotation.Nullable private String phase; public static final String SERIALIZED_NAME_POD_I_P = "podIP"; @SerializedName(SERIALIZED_NAME_POD_I_P) + @jakarta.annotation.Nullable private String podIP; public static final String SERIALIZED_NAME_POD_I_PS = "podIPs"; @SerializedName(SERIALIZED_NAME_POD_I_PS) + @jakarta.annotation.Nullable private List podIPs = new ArrayList<>(); public static final String SERIALIZED_NAME_QOS_CLASS = "qosClass"; @SerializedName(SERIALIZED_NAME_QOS_CLASS) + @jakarta.annotation.Nullable private String qosClass; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_RESIZE = "resize"; @SerializedName(SERIALIZED_NAME_RESIZE) + @jakarta.annotation.Nullable private String resize; public static final String SERIALIZED_NAME_RESOURCE_CLAIM_STATUSES = "resourceClaimStatuses"; @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIM_STATUSES) + @jakarta.annotation.Nullable private List resourceClaimStatuses = new ArrayList<>(); public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) + @jakarta.annotation.Nullable private OffsetDateTime startTime; public V1PodStatus() { } - public V1PodStatus conditions(List conditions) { + public V1PodStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } @@ -141,22 +161,22 @@ public V1PodStatus addConditionsItem(V1PodCondition conditionsItem) { return this; } - /** + /** * Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions * @return conditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions") public List getConditions() { return conditions; } - public void setConditions(List conditions) { + public void setConditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; } - public V1PodStatus containerStatuses(List containerStatuses) { + public V1PodStatus containerStatuses(@jakarta.annotation.Nullable List containerStatuses) { this.containerStatuses = containerStatuses; return this; } @@ -169,22 +189,22 @@ public V1PodStatus addContainerStatusesItem(V1ContainerStatus containerStatusesI return this; } - /** + /** * Statuses of containers in this pod. Each container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status * @return containerStatuses - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Statuses of containers in this pod. Each container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status") public List getContainerStatuses() { return containerStatuses; } - public void setContainerStatuses(List containerStatuses) { + public void setContainerStatuses(@jakarta.annotation.Nullable List containerStatuses) { this.containerStatuses = containerStatuses; } - public V1PodStatus ephemeralContainerStatuses(List ephemeralContainerStatuses) { + public V1PodStatus ephemeralContainerStatuses(@jakarta.annotation.Nullable List ephemeralContainerStatuses) { this.ephemeralContainerStatuses = ephemeralContainerStatuses; return this; } @@ -197,42 +217,42 @@ public V1PodStatus addEphemeralContainerStatusesItem(V1ContainerStatus ephemeral return this; } - /** + /** * Statuses for any ephemeral containers that have run in this pod. Each ephemeral container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status * @return ephemeralContainerStatuses - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Statuses for any ephemeral containers that have run in this pod. Each ephemeral container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status") public List getEphemeralContainerStatuses() { return ephemeralContainerStatuses; } - public void setEphemeralContainerStatuses(List ephemeralContainerStatuses) { + public void setEphemeralContainerStatuses(@jakarta.annotation.Nullable List ephemeralContainerStatuses) { this.ephemeralContainerStatuses = ephemeralContainerStatuses; } - public V1PodStatus hostIP(String hostIP) { + public V1PodStatus hostIP(@jakarta.annotation.Nullable String hostIP) { this.hostIP = hostIP; return this; } - /** + /** * hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod * @return hostIP - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod") public String getHostIP() { return hostIP; } - public void setHostIP(String hostIP) { + public void setHostIP(@jakarta.annotation.Nullable String hostIP) { this.hostIP = hostIP; } - public V1PodStatus hostIPs(List hostIPs) { + public V1PodStatus hostIPs(@jakarta.annotation.Nullable List hostIPs) { this.hostIPs = hostIPs; return this; } @@ -245,22 +265,22 @@ public V1PodStatus addHostIPsItem(V1HostIP hostIPsItem) { return this; } - /** + /** * hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod. * @return hostIPs - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod.") public List getHostIPs() { return hostIPs; } - public void setHostIPs(List hostIPs) { + public void setHostIPs(@jakarta.annotation.Nullable List hostIPs) { this.hostIPs = hostIPs; } - public V1PodStatus initContainerStatuses(List initContainerStatuses) { + public V1PodStatus initContainerStatuses(@jakarta.annotation.Nullable List initContainerStatuses) { this.initContainerStatuses = initContainerStatuses; return this; } @@ -273,102 +293,122 @@ public V1PodStatus addInitContainerStatusesItem(V1ContainerStatus initContainerS return this; } - /** + /** * Statuses of init containers in this pod. The most recent successful non-restartable init container will have ready = true, the most recently started container will have startTime set. Each init container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status * @return initContainerStatuses - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Statuses of init containers in this pod. The most recent successful non-restartable init container will have ready = true, the most recently started container will have startTime set. Each init container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status") public List getInitContainerStatuses() { return initContainerStatuses; } - public void setInitContainerStatuses(List initContainerStatuses) { + public void setInitContainerStatuses(@jakarta.annotation.Nullable List initContainerStatuses) { this.initContainerStatuses = initContainerStatuses; } - public V1PodStatus message(String message) { + public V1PodStatus message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * A human readable message indicating details about why the pod is in this condition. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A human readable message indicating details about why the pod is in this condition.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1PodStatus nominatedNodeName(String nominatedNodeName) { + public V1PodStatus nominatedNodeName(@jakarta.annotation.Nullable String nominatedNodeName) { this.nominatedNodeName = nominatedNodeName; return this; } - /** + /** * nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled. * @return nominatedNodeName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled.") public String getNominatedNodeName() { return nominatedNodeName; } - public void setNominatedNodeName(String nominatedNodeName) { + public void setNominatedNodeName(@jakarta.annotation.Nullable String nominatedNodeName) { this.nominatedNodeName = nominatedNodeName; } - public V1PodStatus phase(String phase) { + public V1PodStatus observedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { + this.observedGeneration = observedGeneration; + return this; + } + + /** + * If set, this represents the .metadata.generation that the pod status was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field. + * @return observedGeneration + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "If set, this represents the .metadata.generation that the pod status was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field.") + public Long getObservedGeneration() { + return observedGeneration; + } + + public void setObservedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { + this.observedGeneration = observedGeneration; + } + + + public V1PodStatus phase(@jakarta.annotation.Nullable String phase) { this.phase = phase; return this; } - /** + /** * The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase * @return phase - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase") public String getPhase() { return phase; } - public void setPhase(String phase) { + public void setPhase(@jakarta.annotation.Nullable String phase) { this.phase = phase; } - public V1PodStatus podIP(String podIP) { + public V1PodStatus podIP(@jakarta.annotation.Nullable String podIP) { this.podIP = podIP; return this; } - /** + /** * podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. * @return podIP - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.") public String getPodIP() { return podIP; } - public void setPodIP(String podIP) { + public void setPodIP(@jakarta.annotation.Nullable String podIP) { this.podIP = podIP; } - public V1PodStatus podIPs(List podIPs) { + public V1PodStatus podIPs(@jakarta.annotation.Nullable List podIPs) { this.podIPs = podIPs; return this; } @@ -381,82 +421,82 @@ public V1PodStatus addPodIPsItem(V1PodIP podIPsItem) { return this; } - /** + /** * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet. * @return podIPs - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet.") public List getPodIPs() { return podIPs; } - public void setPodIPs(List podIPs) { + public void setPodIPs(@jakarta.annotation.Nullable List podIPs) { this.podIPs = podIPs; } - public V1PodStatus qosClass(String qosClass) { + public V1PodStatus qosClass(@jakarta.annotation.Nullable String qosClass) { this.qosClass = qosClass; return this; } - /** + /** * The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes * @return qosClass - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes") public String getQosClass() { return qosClass; } - public void setQosClass(String qosClass) { + public void setQosClass(@jakarta.annotation.Nullable String qosClass) { this.qosClass = qosClass; } - public V1PodStatus reason(String reason) { + public V1PodStatus reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } - public V1PodStatus resize(String resize) { + public V1PodStatus resize(@jakarta.annotation.Nullable String resize) { this.resize = resize; return this; } - /** - * Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\" + /** + * Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\" Deprecated: Resize status is moved to two pod conditions PodResizePending and PodResizeInProgress. PodResizePending will track states where the spec has been resized, but the Kubelet has not yet allocated the resources. PodResizeInProgress will track in-progress resizes, and should be present whenever allocated resources != acknowledged resources. * @return resize - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\"") + @ApiModelProperty(value = "Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\" Deprecated: Resize status is moved to two pod conditions PodResizePending and PodResizeInProgress. PodResizePending will track states where the spec has been resized, but the Kubelet has not yet allocated the resources. PodResizeInProgress will track in-progress resizes, and should be present whenever allocated resources != acknowledged resources.") public String getResize() { return resize; } - public void setResize(String resize) { + public void setResize(@jakarta.annotation.Nullable String resize) { this.resize = resize; } - public V1PodStatus resourceClaimStatuses(List resourceClaimStatuses) { + public V1PodStatus resourceClaimStatuses(@jakarta.annotation.Nullable List resourceClaimStatuses) { this.resourceClaimStatuses = resourceClaimStatuses; return this; } @@ -469,37 +509,37 @@ public V1PodStatus addResourceClaimStatusesItem(V1PodResourceClaimStatus resourc return this; } - /** + /** * Status of resource claims. * @return resourceClaimStatuses - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Status of resource claims.") public List getResourceClaimStatuses() { return resourceClaimStatuses; } - public void setResourceClaimStatuses(List resourceClaimStatuses) { + public void setResourceClaimStatuses(@jakarta.annotation.Nullable List resourceClaimStatuses) { this.resourceClaimStatuses = resourceClaimStatuses; } - public V1PodStatus startTime(OffsetDateTime startTime) { + public V1PodStatus startTime(@jakarta.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; return this; } - /** + /** * RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. * @return startTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.") public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { + public void setStartTime(@jakarta.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; } @@ -522,6 +562,7 @@ public boolean equals(Object o) { Objects.equals(this.initContainerStatuses, v1PodStatus.initContainerStatuses) && Objects.equals(this.message, v1PodStatus.message) && Objects.equals(this.nominatedNodeName, v1PodStatus.nominatedNodeName) && + Objects.equals(this.observedGeneration, v1PodStatus.observedGeneration) && Objects.equals(this.phase, v1PodStatus.phase) && Objects.equals(this.podIP, v1PodStatus.podIP) && Objects.equals(this.podIPs, v1PodStatus.podIPs) && @@ -534,7 +575,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(conditions, containerStatuses, ephemeralContainerStatuses, hostIP, hostIPs, initContainerStatuses, message, nominatedNodeName, phase, podIP, podIPs, qosClass, reason, resize, resourceClaimStatuses, startTime); + return Objects.hash(conditions, containerStatuses, ephemeralContainerStatuses, hostIP, hostIPs, initContainerStatuses, message, nominatedNodeName, observedGeneration, phase, podIP, podIPs, qosClass, reason, resize, resourceClaimStatuses, startTime); } @Override @@ -549,6 +590,7 @@ public String toString() { sb.append(" initContainerStatuses: ").append(toIndentedString(initContainerStatuses)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" nominatedNodeName: ").append(toIndentedString(nominatedNodeName)).append("\n"); + sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).append("\n"); sb.append(" phase: ").append(toIndentedString(phase)).append("\n"); sb.append(" podIP: ").append(toIndentedString(podIP)).append("\n"); sb.append(" podIPs: ").append(toIndentedString(podIPs)).append("\n"); @@ -587,6 +629,7 @@ private String toIndentedString(Object o) { openapiFields.add("initContainerStatuses"); openapiFields.add("message"); openapiFields.add("nominatedNodeName"); + openapiFields.add("observedGeneration"); openapiFields.add("phase"); openapiFields.add("podIP"); openapiFields.add("podIPs"); @@ -600,12 +643,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -774,22 +817,22 @@ public V1PodStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodStatus - * @throws IOException if the JSON string is invalid with respect to V1PodStatus - */ + /** + * Create an instance of V1PodStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodStatus + * @throws IOException if the JSON string is invalid with respect to V1PodStatus + */ public static V1PodStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodStatus.class); } - /** - * Convert an instance of V1PodStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java index c5efe1b84e..69dfce016f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,103 +52,107 @@ * PodTemplate describes a template for creating copies of a predefined pod. */ @ApiModel(description = "PodTemplate describes a template for creating copies of a predefined pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodTemplate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_TEMPLATE = "template"; @SerializedName(SERIALIZED_NAME_TEMPLATE) + @jakarta.annotation.Nullable private V1PodTemplateSpec template; public V1PodTemplate() { } - public V1PodTemplate apiVersion(String apiVersion) { + public V1PodTemplate apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1PodTemplate kind(String kind) { + public V1PodTemplate kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1PodTemplate metadata(V1ObjectMeta metadata) { + public V1PodTemplate metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1PodTemplate template(V1PodTemplateSpec template) { + public V1PodTemplate template(@jakarta.annotation.Nullable V1PodTemplateSpec template) { this.template = template; return this; } - /** + /** * Get template * @return template - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PodTemplateSpec getTemplate() { return template; } - public void setTemplate(V1PodTemplateSpec template) { + public void setTemplate(@jakarta.annotation.Nullable V1PodTemplateSpec template) { this.template = template; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodTemplate - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodTemplate + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodTemplate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -280,22 +283,22 @@ public V1PodTemplate read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodTemplate given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodTemplate - * @throws IOException if the JSON string is invalid with respect to V1PodTemplate - */ + /** + * Create an instance of V1PodTemplate given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodTemplate + * @throws IOException if the JSON string is invalid with respect to V1PodTemplate + */ public static V1PodTemplate fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodTemplate.class); } - /** - * Convert an instance of V1PodTemplate to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodTemplate to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java index c508dcccea..df906c46b8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * PodTemplateList is a list of PodTemplates. */ @ApiModel(description = "PodTemplateList is a list of PodTemplates.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodTemplateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1PodTemplateList() { } - public V1PodTemplateList apiVersion(String apiVersion) { + public V1PodTemplateList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1PodTemplateList items(List items) { + public V1PodTemplateList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1PodTemplateList addItemsItem(V1PodTemplate itemsItem) { return this; } - /** + /** * List of pod templates * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "List of pod templates") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1PodTemplateList kind(String kind) { + public V1PodTemplateList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1PodTemplateList metadata(V1ListMeta metadata) { + public V1PodTemplateList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodTemplateList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodTemplateList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodTemplateList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1PodTemplateList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodTemplateList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodTemplateList - * @throws IOException if the JSON string is invalid with respect to V1PodTemplateList - */ + /** + * Create an instance of V1PodTemplateList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodTemplateList + * @throws IOException if the JSON string is invalid with respect to V1PodTemplateList + */ public static V1PodTemplateList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodTemplateList.class); } - /** - * Convert an instance of V1PodTemplateList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodTemplateList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java index 19d60e5d06..d91ee34e72 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,55 +52,57 @@ * PodTemplateSpec describes the data a pod should have when created from a template */ @ApiModel(description = "PodTemplateSpec describes the data a pod should have when created from a template") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1PodSpec spec; public V1PodTemplateSpec() { } - public V1PodTemplateSpec metadata(V1ObjectMeta metadata) { + public V1PodTemplateSpec metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1PodTemplateSpec spec(V1PodSpec spec) { + public V1PodTemplateSpec spec(@jakarta.annotation.Nullable V1PodSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PodSpec getSpec() { return spec; } - public void setSpec(V1PodSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1PodSpec spec) { this.spec = spec; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PodTemplateSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodTemplateSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodTemplateSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -220,22 +221,22 @@ public V1PodTemplateSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PodTemplateSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PodTemplateSpec - * @throws IOException if the JSON string is invalid with respect to V1PodTemplateSpec - */ + /** + * Create an instance of V1PodTemplateSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodTemplateSpec + * @throws IOException if the JSON string is invalid with respect to V1PodTemplateSpec + */ public static V1PodTemplateSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PodTemplateSpec.class); } - /** - * Convert an instance of V1PodTemplateSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PodTemplateSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java index 00f9636aed..20e9d3191f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,32 +52,37 @@ * PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. */ @ApiModel(description = "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) + @jakarta.annotation.Nullable private List apiGroups = new ArrayList<>(); public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) + @jakarta.annotation.Nullable private List nonResourceURLs = new ArrayList<>(); public static final String SERIALIZED_NAME_RESOURCE_NAMES = "resourceNames"; @SerializedName(SERIALIZED_NAME_RESOURCE_NAMES) + @jakarta.annotation.Nullable private List resourceNames = new ArrayList<>(); public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) + @jakarta.annotation.Nullable private List resources = new ArrayList<>(); public static final String SERIALIZED_NAME_VERBS = "verbs"; @SerializedName(SERIALIZED_NAME_VERBS) + @jakarta.annotation.Nonnull private List verbs = new ArrayList<>(); public V1PolicyRule() { } - public V1PolicyRule apiGroups(List apiGroups) { + public V1PolicyRule apiGroups(@jakarta.annotation.Nullable List apiGroups) { this.apiGroups = apiGroups; return this; } @@ -91,22 +95,22 @@ public V1PolicyRule addApiGroupsItem(String apiGroupsItem) { return this; } - /** + /** * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"\" represents the core API group and \"*\" represents all API groups. * @return apiGroups - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"\" represents the core API group and \"*\" represents all API groups.") public List getApiGroups() { return apiGroups; } - public void setApiGroups(List apiGroups) { + public void setApiGroups(@jakarta.annotation.Nullable List apiGroups) { this.apiGroups = apiGroups; } - public V1PolicyRule nonResourceURLs(List nonResourceURLs) { + public V1PolicyRule nonResourceURLs(@jakarta.annotation.Nullable List nonResourceURLs) { this.nonResourceURLs = nonResourceURLs; return this; } @@ -119,22 +123,22 @@ public V1PolicyRule addNonResourceURLsItem(String nonResourceURLsItem) { return this; } - /** + /** * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. * @return nonResourceURLs - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.") public List getNonResourceURLs() { return nonResourceURLs; } - public void setNonResourceURLs(List nonResourceURLs) { + public void setNonResourceURLs(@jakarta.annotation.Nullable List nonResourceURLs) { this.nonResourceURLs = nonResourceURLs; } - public V1PolicyRule resourceNames(List resourceNames) { + public V1PolicyRule resourceNames(@jakarta.annotation.Nullable List resourceNames) { this.resourceNames = resourceNames; return this; } @@ -147,22 +151,22 @@ public V1PolicyRule addResourceNamesItem(String resourceNamesItem) { return this; } - /** + /** * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. * @return resourceNames - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.") public List getResourceNames() { return resourceNames; } - public void setResourceNames(List resourceNames) { + public void setResourceNames(@jakarta.annotation.Nullable List resourceNames) { this.resourceNames = resourceNames; } - public V1PolicyRule resources(List resources) { + public V1PolicyRule resources(@jakarta.annotation.Nullable List resources) { this.resources = resources; return this; } @@ -175,22 +179,22 @@ public V1PolicyRule addResourcesItem(String resourcesItem) { return this; } - /** + /** * Resources is a list of resources this rule applies to. '*' represents all resources. * @return resources - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Resources is a list of resources this rule applies to. '*' represents all resources.") public List getResources() { return resources; } - public void setResources(List resources) { + public void setResources(@jakarta.annotation.Nullable List resources) { this.resources = resources; } - public V1PolicyRule verbs(List verbs) { + public V1PolicyRule verbs(@jakarta.annotation.Nonnull List verbs) { this.verbs = verbs; return this; } @@ -203,17 +207,17 @@ public V1PolicyRule addVerbsItem(String verbsItem) { return this; } - /** + /** * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. * @return verbs - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.") public List getVerbs() { return verbs; } - public void setVerbs(List verbs) { + public void setVerbs(@jakarta.annotation.Nonnull List verbs) { this.verbs = verbs; } @@ -282,12 +286,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("verbs"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PolicyRule - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PolicyRule + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PolicyRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -363,22 +367,22 @@ public V1PolicyRule read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PolicyRule given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PolicyRule - * @throws IOException if the JSON string is invalid with respect to V1PolicyRule - */ + /** + * Create an instance of V1PolicyRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PolicyRule + * @throws IOException if the JSON string is invalid with respect to V1PolicyRule + */ public static V1PolicyRule fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PolicyRule.class); } - /** - * Convert an instance of V1PolicyRule to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PolicyRule to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java index 76933f2271..99a939a9d2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java @@ -43,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -56,24 +55,27 @@ * PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request. */ @ApiModel(description = "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PolicyRulesWithSubjects { public static final String SERIALIZED_NAME_NON_RESOURCE_RULES = "nonResourceRules"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_RULES) + @jakarta.annotation.Nullable private List nonResourceRules = new ArrayList<>(); public static final String SERIALIZED_NAME_RESOURCE_RULES = "resourceRules"; @SerializedName(SERIALIZED_NAME_RESOURCE_RULES) + @jakarta.annotation.Nullable private List resourceRules = new ArrayList<>(); public static final String SERIALIZED_NAME_SUBJECTS = "subjects"; @SerializedName(SERIALIZED_NAME_SUBJECTS) + @jakarta.annotation.Nonnull private List subjects = new ArrayList<>(); public V1PolicyRulesWithSubjects() { } - public V1PolicyRulesWithSubjects nonResourceRules(List nonResourceRules) { + public V1PolicyRulesWithSubjects nonResourceRules(@jakarta.annotation.Nullable List nonResourceRules) { this.nonResourceRules = nonResourceRules; return this; } @@ -86,22 +88,22 @@ public V1PolicyRulesWithSubjects addNonResourceRulesItem(V1NonResourcePolicyRule return this; } - /** + /** * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. * @return nonResourceRules - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.") public List getNonResourceRules() { return nonResourceRules; } - public void setNonResourceRules(List nonResourceRules) { + public void setNonResourceRules(@jakarta.annotation.Nullable List nonResourceRules) { this.nonResourceRules = nonResourceRules; } - public V1PolicyRulesWithSubjects resourceRules(List resourceRules) { + public V1PolicyRulesWithSubjects resourceRules(@jakarta.annotation.Nullable List resourceRules) { this.resourceRules = resourceRules; return this; } @@ -114,22 +116,22 @@ public V1PolicyRulesWithSubjects addResourceRulesItem(V1ResourcePolicyRule resou return this; } - /** + /** * `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty. * @return resourceRules - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.") public List getResourceRules() { return resourceRules; } - public void setResourceRules(List resourceRules) { + public void setResourceRules(@jakarta.annotation.Nullable List resourceRules) { this.resourceRules = resourceRules; } - public V1PolicyRulesWithSubjects subjects(List subjects) { + public V1PolicyRulesWithSubjects subjects(@jakarta.annotation.Nonnull List subjects) { this.subjects = subjects; return this; } @@ -142,17 +144,17 @@ public V1PolicyRulesWithSubjects addSubjectsItem(FlowcontrolV1Subject subjectsIt return this; } - /** + /** * subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required. * @return subjects - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.") public List getSubjects() { return subjects; } - public void setSubjects(List subjects) { + public void setSubjects(@jakarta.annotation.Nonnull List subjects) { this.subjects = subjects; } @@ -215,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("subjects"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PolicyRulesWithSubjects - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PolicyRulesWithSubjects + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PolicyRulesWithSubjects.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +314,22 @@ public V1PolicyRulesWithSubjects read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PolicyRulesWithSubjects given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PolicyRulesWithSubjects - * @throws IOException if the JSON string is invalid with respect to V1PolicyRulesWithSubjects - */ + /** + * Create an instance of V1PolicyRulesWithSubjects given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PolicyRulesWithSubjects + * @throws IOException if the JSON string is invalid with respect to V1PolicyRulesWithSubjects + */ public static V1PolicyRulesWithSubjects fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PolicyRulesWithSubjects.class); } - /** - * Convert an instance of V1PolicyRulesWithSubjects to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PolicyRulesWithSubjects to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java index e6fd277d89..8d15e8512e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,79 +50,82 @@ * PortStatus represents the error condition of a service port */ @ApiModel(description = "PortStatus represents the error condition of a service port") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PortStatus { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) + @jakarta.annotation.Nullable private String error; public static final String SERIALIZED_NAME_PORT = "port"; @SerializedName(SERIALIZED_NAME_PORT) + @jakarta.annotation.Nonnull private Integer port; public static final String SERIALIZED_NAME_PROTOCOL = "protocol"; @SerializedName(SERIALIZED_NAME_PROTOCOL) + @jakarta.annotation.Nonnull private String protocol; public V1PortStatus() { } - public V1PortStatus error(String error) { + public V1PortStatus error(@jakarta.annotation.Nullable String error) { this.error = error; return this; } - /** + /** * Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use CamelCase names - cloud provider specific error values must have names that comply with the format foo.example.com/CamelCase. * @return error - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use CamelCase names - cloud provider specific error values must have names that comply with the format foo.example.com/CamelCase.") public String getError() { return error; } - public void setError(String error) { + public void setError(@jakarta.annotation.Nullable String error) { this.error = error; } - public V1PortStatus port(Integer port) { + public V1PortStatus port(@jakarta.annotation.Nonnull Integer port) { this.port = port; return this; } - /** + /** * Port is the port number of the service port of which status is recorded here * @return port - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Port is the port number of the service port of which status is recorded here") public Integer getPort() { return port; } - public void setPort(Integer port) { + public void setPort(@jakarta.annotation.Nonnull Integer port) { this.port = port; } - public V1PortStatus protocol(String protocol) { + public V1PortStatus protocol(@jakarta.annotation.Nonnull String protocol) { this.protocol = protocol; return this; } - /** + /** * Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\" * @return protocol - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\"") public String getProtocol() { return protocol; } - public void setProtocol(String protocol) { + public void setProtocol(@jakarta.annotation.Nonnull String protocol) { this.protocol = protocol; } @@ -187,12 +189,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("protocol"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PortStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PortStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PortStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -252,22 +254,22 @@ public V1PortStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PortStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PortStatus - * @throws IOException if the JSON string is invalid with respect to V1PortStatus - */ + /** + * Create an instance of V1PortStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PortStatus + * @throws IOException if the JSON string is invalid with respect to V1PortStatus + */ public static V1PortStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PortStatus.class); } - /** - * Convert an instance of V1PortStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PortStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java index 96f958e4c7..c470807b52 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,79 +50,82 @@ * PortworxVolumeSource represents a Portworx volume resource. */ @ApiModel(description = "PortworxVolumeSource represents a Portworx volume resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PortworxVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) + @jakarta.annotation.Nullable private String fsType; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_VOLUME_I_D = "volumeID"; @SerializedName(SERIALIZED_NAME_VOLUME_I_D) + @jakarta.annotation.Nonnull private String volumeID; public V1PortworxVolumeSource() { } - public V1PortworxVolumeSource fsType(String fsType) { + public V1PortworxVolumeSource fsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; return this; } - /** + /** * fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. * @return fsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.") public String getFsType() { return fsType; } - public void setFsType(String fsType) { + public void setFsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; } - public V1PortworxVolumeSource readOnly(Boolean readOnly) { + public V1PortworxVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1PortworxVolumeSource volumeID(String volumeID) { + public V1PortworxVolumeSource volumeID(@jakarta.annotation.Nonnull String volumeID) { this.volumeID = volumeID; return this; } - /** + /** * volumeID uniquely identifies a Portworx volume * @return volumeID - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "volumeID uniquely identifies a Portworx volume") public String getVolumeID() { return volumeID; } - public void setVolumeID(String volumeID) { + public void setVolumeID(@jakarta.annotation.Nonnull String volumeID) { this.volumeID = volumeID; } @@ -186,12 +188,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("volumeID"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PortworxVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PortworxVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PortworxVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -251,22 +253,22 @@ public V1PortworxVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PortworxVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PortworxVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1PortworxVolumeSource - */ + /** + * Create an instance of V1PortworxVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PortworxVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1PortworxVolumeSource + */ public static V1PortworxVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PortworxVolumeSource.class); } - /** - * Convert an instance of V1PortworxVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PortworxVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java index 0e27e18451..4db0befe8b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. */ @ApiModel(description = "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Preconditions { public static final String SERIALIZED_NAME_RESOURCE_VERSION = "resourceVersion"; @SerializedName(SERIALIZED_NAME_RESOURCE_VERSION) + @jakarta.annotation.Nullable private String resourceVersion; public static final String SERIALIZED_NAME_UID = "uid"; @SerializedName(SERIALIZED_NAME_UID) + @jakarta.annotation.Nullable private String uid; public V1Preconditions() { } - public V1Preconditions resourceVersion(String resourceVersion) { + public V1Preconditions resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } - /** + /** * Specifies the target ResourceVersion * @return resourceVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Specifies the target ResourceVersion") public String getResourceVersion() { return resourceVersion; } - public void setResourceVersion(String resourceVersion) { + public void setResourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; } - public V1Preconditions uid(String uid) { + public V1Preconditions uid(@jakarta.annotation.Nullable String uid) { this.uid = uid; return this; } - /** + /** * Specifies the target UID. * @return uid - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Specifies the target UID.") public String getUid() { return uid; } - public void setUid(String uid) { + public void setUid(@jakarta.annotation.Nullable String uid) { this.uid = uid; } @@ -158,12 +159,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Preconditions - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Preconditions + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Preconditions.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -216,22 +217,22 @@ public V1Preconditions read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Preconditions given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Preconditions - * @throws IOException if the JSON string is invalid with respect to V1Preconditions - */ + /** + * Create an instance of V1Preconditions given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Preconditions + * @throws IOException if the JSON string is invalid with respect to V1Preconditions + */ public static V1Preconditions fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Preconditions.class); } - /** - * Convert an instance of V1Preconditions to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Preconditions to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java index d7162b2cae..d0427afa21 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). */ @ApiModel(description = "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PreferredSchedulingTerm { public static final String SERIALIZED_NAME_PREFERENCE = "preference"; @SerializedName(SERIALIZED_NAME_PREFERENCE) + @jakarta.annotation.Nonnull private V1NodeSelectorTerm preference; public static final String SERIALIZED_NAME_WEIGHT = "weight"; @SerializedName(SERIALIZED_NAME_WEIGHT) + @jakarta.annotation.Nonnull private Integer weight; public V1PreferredSchedulingTerm() { } - public V1PreferredSchedulingTerm preference(V1NodeSelectorTerm preference) { + public V1PreferredSchedulingTerm preference(@jakarta.annotation.Nonnull V1NodeSelectorTerm preference) { this.preference = preference; return this; } - /** + /** * Get preference * @return preference - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1NodeSelectorTerm getPreference() { return preference; } - public void setPreference(V1NodeSelectorTerm preference) { + public void setPreference(@jakarta.annotation.Nonnull V1NodeSelectorTerm preference) { this.preference = preference; } - public V1PreferredSchedulingTerm weight(Integer weight) { + public V1PreferredSchedulingTerm weight(@jakarta.annotation.Nonnull Integer weight) { this.weight = weight; return this; } - /** + /** * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. * @return weight - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.") public Integer getWeight() { return weight; } - public void setWeight(Integer weight) { + public void setWeight(@jakarta.annotation.Nonnull Integer weight) { this.weight = weight; } @@ -161,12 +162,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("weight"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PreferredSchedulingTerm - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PreferredSchedulingTerm + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PreferredSchedulingTerm.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -222,22 +223,22 @@ public V1PreferredSchedulingTerm read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PreferredSchedulingTerm given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PreferredSchedulingTerm - * @throws IOException if the JSON string is invalid with respect to V1PreferredSchedulingTerm - */ + /** + * Create an instance of V1PreferredSchedulingTerm given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PreferredSchedulingTerm + * @throws IOException if the JSON string is invalid with respect to V1PreferredSchedulingTerm + */ public static V1PreferredSchedulingTerm fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PreferredSchedulingTerm.class); } - /** - * Convert an instance of V1PreferredSchedulingTerm to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PreferredSchedulingTerm to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java index df66d21077..ae637a7f46 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,175 +51,182 @@ * PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. */ @ApiModel(description = "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PriorityClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @jakarta.annotation.Nullable private String description; public static final String SERIALIZED_NAME_GLOBAL_DEFAULT = "globalDefault"; @SerializedName(SERIALIZED_NAME_GLOBAL_DEFAULT) + @jakarta.annotation.Nullable private Boolean globalDefault; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_PREEMPTION_POLICY = "preemptionPolicy"; @SerializedName(SERIALIZED_NAME_PREEMPTION_POLICY) + @jakarta.annotation.Nullable private String preemptionPolicy; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) + @jakarta.annotation.Nonnull private Integer value; public V1PriorityClass() { } - public V1PriorityClass apiVersion(String apiVersion) { + public V1PriorityClass apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1PriorityClass description(String description) { + public V1PriorityClass description(@jakarta.annotation.Nullable String description) { this.description = description; return this; } - /** + /** * description is an arbitrary string that usually provides guidelines on when this priority class should be used. * @return description - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "description is an arbitrary string that usually provides guidelines on when this priority class should be used.") public String getDescription() { return description; } - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nullable String description) { this.description = description; } - public V1PriorityClass globalDefault(Boolean globalDefault) { + public V1PriorityClass globalDefault(@jakarta.annotation.Nullable Boolean globalDefault) { this.globalDefault = globalDefault; return this; } - /** + /** * globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. * @return globalDefault - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.") public Boolean getGlobalDefault() { return globalDefault; } - public void setGlobalDefault(Boolean globalDefault) { + public void setGlobalDefault(@jakarta.annotation.Nullable Boolean globalDefault) { this.globalDefault = globalDefault; } - public V1PriorityClass kind(String kind) { + public V1PriorityClass kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1PriorityClass metadata(V1ObjectMeta metadata) { + public V1PriorityClass metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1PriorityClass preemptionPolicy(String preemptionPolicy) { + public V1PriorityClass preemptionPolicy(@jakarta.annotation.Nullable String preemptionPolicy) { this.preemptionPolicy = preemptionPolicy; return this; } - /** + /** * preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. * @return preemptionPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.") public String getPreemptionPolicy() { return preemptionPolicy; } - public void setPreemptionPolicy(String preemptionPolicy) { + public void setPreemptionPolicy(@jakarta.annotation.Nullable String preemptionPolicy) { this.preemptionPolicy = preemptionPolicy; } - public V1PriorityClass value(Integer value) { + public V1PriorityClass value(@jakarta.annotation.Nonnull Integer value) { this.value = value; return this; } - /** + /** * value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. * @return value - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.") public Integer getValue() { return value; } - public void setValue(Integer value) { + public void setValue(@jakarta.annotation.Nonnull Integer value) { this.value = value; } @@ -295,12 +301,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("value"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PriorityClass - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PriorityClass + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PriorityClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -370,22 +376,22 @@ public V1PriorityClass read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PriorityClass given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PriorityClass - * @throws IOException if the JSON string is invalid with respect to V1PriorityClass - */ + /** + * Create an instance of V1PriorityClass given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PriorityClass + * @throws IOException if the JSON string is invalid with respect to V1PriorityClass + */ public static V1PriorityClass fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PriorityClass.class); } - /** - * Convert an instance of V1PriorityClass to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PriorityClass to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java index ad75983a6c..9cb67042ce 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * PriorityClassList is a collection of priority classes. */ @ApiModel(description = "PriorityClassList is a collection of priority classes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PriorityClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1PriorityClassList() { } - public V1PriorityClassList apiVersion(String apiVersion) { + public V1PriorityClassList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1PriorityClassList items(List items) { + public V1PriorityClassList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1PriorityClassList addItemsItem(V1PriorityClass itemsItem) { return this; } - /** + /** * items is the list of PriorityClasses * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is the list of PriorityClasses") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1PriorityClassList kind(String kind) { + public V1PriorityClassList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1PriorityClassList metadata(V1ListMeta metadata) { + public V1PriorityClassList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PriorityClassList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PriorityClassList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PriorityClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1PriorityClassList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PriorityClassList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PriorityClassList - * @throws IOException if the JSON string is invalid with respect to V1PriorityClassList - */ + /** + * Create an instance of V1PriorityClassList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PriorityClassList + * @throws IOException if the JSON string is invalid with respect to V1PriorityClassList + */ public static V1PriorityClassList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PriorityClassList.class); } - /** - * Convert an instance of V1PriorityClassList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PriorityClassList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java index b7feaa5121..2d9f04760d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * PriorityLevelConfiguration represents the configuration of a priority level. */ @ApiModel(description = "PriorityLevelConfiguration represents the configuration of a priority level.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PriorityLevelConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1PriorityLevelConfigurationSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1PriorityLevelConfigurationStatus status; public V1PriorityLevelConfiguration() { } - public V1PriorityLevelConfiguration apiVersion(String apiVersion) { + public V1PriorityLevelConfiguration apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1PriorityLevelConfiguration kind(String kind) { + public V1PriorityLevelConfiguration kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1PriorityLevelConfiguration metadata(V1ObjectMeta metadata) { + public V1PriorityLevelConfiguration metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1PriorityLevelConfiguration spec(V1PriorityLevelConfigurationSpec spec) { + public V1PriorityLevelConfiguration spec(@jakarta.annotation.Nullable V1PriorityLevelConfigurationSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PriorityLevelConfigurationSpec getSpec() { return spec; } - public void setSpec(V1PriorityLevelConfigurationSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1PriorityLevelConfigurationSpec spec) { this.spec = spec; } - public V1PriorityLevelConfiguration status(V1PriorityLevelConfigurationStatus status) { + public V1PriorityLevelConfiguration status(@jakarta.annotation.Nullable V1PriorityLevelConfigurationStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PriorityLevelConfigurationStatus getStatus() { return status; } - public void setStatus(V1PriorityLevelConfigurationStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1PriorityLevelConfigurationStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PriorityLevelConfiguration - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PriorityLevelConfiguration + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PriorityLevelConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1PriorityLevelConfiguration read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PriorityLevelConfiguration given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PriorityLevelConfiguration - * @throws IOException if the JSON string is invalid with respect to V1PriorityLevelConfiguration - */ + /** + * Create an instance of V1PriorityLevelConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PriorityLevelConfiguration + * @throws IOException if the JSON string is invalid with respect to V1PriorityLevelConfiguration + */ public static V1PriorityLevelConfiguration fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PriorityLevelConfiguration.class); } - /** - * Convert an instance of V1PriorityLevelConfiguration to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PriorityLevelConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java index b2601fb2ec..1bcae20964 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,127 +51,132 @@ * PriorityLevelConfigurationCondition defines the condition of priority level. */ @ApiModel(description = "PriorityLevelConfigurationCondition defines the condition of priority level.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PriorityLevelConfigurationCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nullable private String type; public V1PriorityLevelConfigurationCondition() { } - public V1PriorityLevelConfigurationCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { + public V1PriorityLevelConfigurationCondition lastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; } - /** + /** * `lastTransitionTime` is the last time the condition transitioned from one status to another. * @return lastTransitionTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`lastTransitionTime` is the last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { + public void setLastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } - public V1PriorityLevelConfigurationCondition message(String message) { + public V1PriorityLevelConfigurationCondition message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * `message` is a human-readable message indicating details about last transition. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`message` is a human-readable message indicating details about last transition.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1PriorityLevelConfigurationCondition reason(String reason) { + public V1PriorityLevelConfigurationCondition reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * `reason` is a unique, one-word, CamelCase reason for the condition's last transition. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } - public V1PriorityLevelConfigurationCondition status(String status) { + public V1PriorityLevelConfigurationCondition status(@jakarta.annotation.Nullable String status) { this.status = status; return this; } - /** + /** * `status` is the status of the condition. Can be True, False, Unknown. Required. * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`status` is the status of the condition. Can be True, False, Unknown. Required.") public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nullable String status) { this.status = status; } - public V1PriorityLevelConfigurationCondition type(String type) { + public V1PriorityLevelConfigurationCondition type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } - /** + /** * `type` is the type of the condition. Required. * @return type - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`type` is the type of the condition. Required.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } @@ -240,12 +244,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PriorityLevelConfigurationCondition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PriorityLevelConfigurationCondition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PriorityLevelConfigurationCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +308,22 @@ public V1PriorityLevelConfigurationCondition read(JsonReader in) throws IOExcept } } - /** - * Create an instance of V1PriorityLevelConfigurationCondition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PriorityLevelConfigurationCondition - * @throws IOException if the JSON string is invalid with respect to V1PriorityLevelConfigurationCondition - */ + /** + * Create an instance of V1PriorityLevelConfigurationCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PriorityLevelConfigurationCondition + * @throws IOException if the JSON string is invalid with respect to V1PriorityLevelConfigurationCondition + */ public static V1PriorityLevelConfigurationCondition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PriorityLevelConfigurationCondition.class); } - /** - * Convert an instance of V1PriorityLevelConfigurationCondition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PriorityLevelConfigurationCondition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java index 6d845d201c..3d74674c99 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. */ @ApiModel(description = "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PriorityLevelConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1PriorityLevelConfigurationList() { } - public V1PriorityLevelConfigurationList apiVersion(String apiVersion) { + public V1PriorityLevelConfigurationList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1PriorityLevelConfigurationList items(List items) { + public V1PriorityLevelConfigurationList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1PriorityLevelConfigurationList addItemsItem(V1PriorityLevelConfiguratio return this; } - /** + /** * `items` is a list of request-priorities. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "`items` is a list of request-priorities.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1PriorityLevelConfigurationList kind(String kind) { + public V1PriorityLevelConfigurationList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1PriorityLevelConfigurationList metadata(V1ListMeta metadata) { + public V1PriorityLevelConfigurationList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PriorityLevelConfigurationList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PriorityLevelConfigurationList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PriorityLevelConfigurationList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1PriorityLevelConfigurationList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PriorityLevelConfigurationList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PriorityLevelConfigurationList - * @throws IOException if the JSON string is invalid with respect to V1PriorityLevelConfigurationList - */ + /** + * Create an instance of V1PriorityLevelConfigurationList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PriorityLevelConfigurationList + * @throws IOException if the JSON string is invalid with respect to V1PriorityLevelConfigurationList + */ public static V1PriorityLevelConfigurationList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PriorityLevelConfigurationList.class); } - /** - * Convert an instance of V1PriorityLevelConfigurationList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PriorityLevelConfigurationList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java index e34401cbac..6e6b745e69 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used. */ @ApiModel(description = "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PriorityLevelConfigurationReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public V1PriorityLevelConfigurationReference() { } - public V1PriorityLevelConfigurationReference name(String name) { + public V1PriorityLevelConfigurationReference name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * `name` is the name of the priority level configuration being referenced Required. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "`name` is the name of the priority level configuration being referenced Required.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PriorityLevelConfigurationReference - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PriorityLevelConfigurationReference + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PriorityLevelConfigurationReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -194,22 +194,22 @@ public V1PriorityLevelConfigurationReference read(JsonReader in) throws IOExcept } } - /** - * Create an instance of V1PriorityLevelConfigurationReference given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PriorityLevelConfigurationReference - * @throws IOException if the JSON string is invalid with respect to V1PriorityLevelConfigurationReference - */ + /** + * Create an instance of V1PriorityLevelConfigurationReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PriorityLevelConfigurationReference + * @throws IOException if the JSON string is invalid with respect to V1PriorityLevelConfigurationReference + */ public static V1PriorityLevelConfigurationReference fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PriorityLevelConfigurationReference.class); } - /** - * Convert an instance of V1PriorityLevelConfigurationReference to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PriorityLevelConfigurationReference to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java index 29b8137181..5dd663957c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,79 +52,82 @@ * PriorityLevelConfigurationSpec specifies the configuration of a priority level. */ @ApiModel(description = "PriorityLevelConfigurationSpec specifies the configuration of a priority level.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PriorityLevelConfigurationSpec { public static final String SERIALIZED_NAME_EXEMPT = "exempt"; @SerializedName(SERIALIZED_NAME_EXEMPT) + @jakarta.annotation.Nullable private V1ExemptPriorityLevelConfiguration exempt; public static final String SERIALIZED_NAME_LIMITED = "limited"; @SerializedName(SERIALIZED_NAME_LIMITED) + @jakarta.annotation.Nullable private V1LimitedPriorityLevelConfiguration limited; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1PriorityLevelConfigurationSpec() { } - public V1PriorityLevelConfigurationSpec exempt(V1ExemptPriorityLevelConfiguration exempt) { + public V1PriorityLevelConfigurationSpec exempt(@jakarta.annotation.Nullable V1ExemptPriorityLevelConfiguration exempt) { this.exempt = exempt; return this; } - /** + /** * Get exempt * @return exempt - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ExemptPriorityLevelConfiguration getExempt() { return exempt; } - public void setExempt(V1ExemptPriorityLevelConfiguration exempt) { + public void setExempt(@jakarta.annotation.Nullable V1ExemptPriorityLevelConfiguration exempt) { this.exempt = exempt; } - public V1PriorityLevelConfigurationSpec limited(V1LimitedPriorityLevelConfiguration limited) { + public V1PriorityLevelConfigurationSpec limited(@jakarta.annotation.Nullable V1LimitedPriorityLevelConfiguration limited) { this.limited = limited; return this; } - /** + /** * Get limited * @return limited - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LimitedPriorityLevelConfiguration getLimited() { return limited; } - public void setLimited(V1LimitedPriorityLevelConfiguration limited) { + public void setLimited(@jakarta.annotation.Nullable V1LimitedPriorityLevelConfiguration limited) { this.limited = limited; } - public V1PriorityLevelConfigurationSpec type(String type) { + public V1PriorityLevelConfigurationSpec type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * `type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "`type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -188,12 +190,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PriorityLevelConfigurationSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PriorityLevelConfigurationSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PriorityLevelConfigurationSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -258,22 +260,22 @@ public V1PriorityLevelConfigurationSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1PriorityLevelConfigurationSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PriorityLevelConfigurationSpec - * @throws IOException if the JSON string is invalid with respect to V1PriorityLevelConfigurationSpec - */ + /** + * Create an instance of V1PriorityLevelConfigurationSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PriorityLevelConfigurationSpec + * @throws IOException if the JSON string is invalid with respect to V1PriorityLevelConfigurationSpec + */ public static V1PriorityLevelConfigurationSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PriorityLevelConfigurationSpec.class); } - /** - * Convert an instance of V1PriorityLevelConfigurationSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PriorityLevelConfigurationSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java index 688ee9cc0d..bf6e36dff3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,16 +53,17 @@ * PriorityLevelConfigurationStatus represents the current state of a \"request-priority\". */ @ApiModel(description = "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PriorityLevelConfigurationStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); public V1PriorityLevelConfigurationStatus() { } - public V1PriorityLevelConfigurationStatus conditions(List conditions) { + public V1PriorityLevelConfigurationStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } @@ -76,17 +76,17 @@ public V1PriorityLevelConfigurationStatus addConditionsItem(V1PriorityLevelConfi return this; } - /** + /** * `conditions` is the current state of \"request-priority\". * @return conditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`conditions` is the current state of \"request-priority\".") public List getConditions() { return conditions; } - public void setConditions(List conditions) { + public void setConditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; } @@ -142,12 +142,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1PriorityLevelConfigurationStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PriorityLevelConfigurationStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PriorityLevelConfigurationStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -208,22 +208,22 @@ public V1PriorityLevelConfigurationStatus read(JsonReader in) throws IOException } } - /** - * Create an instance of V1PriorityLevelConfigurationStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1PriorityLevelConfigurationStatus - * @throws IOException if the JSON string is invalid with respect to V1PriorityLevelConfigurationStatus - */ + /** + * Create an instance of V1PriorityLevelConfigurationStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PriorityLevelConfigurationStatus + * @throws IOException if the JSON string is invalid with respect to V1PriorityLevelConfigurationStatus + */ public static V1PriorityLevelConfigurationStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1PriorityLevelConfigurationStatus.class); } - /** - * Convert an instance of V1PriorityLevelConfigurationStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1PriorityLevelConfigurationStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java index ded15f2bd0..d1bfe2e6de 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,247 +54,257 @@ * Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. */ @ApiModel(description = "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Probe { public static final String SERIALIZED_NAME_EXEC = "exec"; @SerializedName(SERIALIZED_NAME_EXEC) + @jakarta.annotation.Nullable private V1ExecAction exec; public static final String SERIALIZED_NAME_FAILURE_THRESHOLD = "failureThreshold"; @SerializedName(SERIALIZED_NAME_FAILURE_THRESHOLD) + @jakarta.annotation.Nullable private Integer failureThreshold; public static final String SERIALIZED_NAME_GRPC = "grpc"; @SerializedName(SERIALIZED_NAME_GRPC) + @jakarta.annotation.Nullable private V1GRPCAction grpc; public static final String SERIALIZED_NAME_HTTP_GET = "httpGet"; @SerializedName(SERIALIZED_NAME_HTTP_GET) + @jakarta.annotation.Nullable private V1HTTPGetAction httpGet; public static final String SERIALIZED_NAME_INITIAL_DELAY_SECONDS = "initialDelaySeconds"; @SerializedName(SERIALIZED_NAME_INITIAL_DELAY_SECONDS) + @jakarta.annotation.Nullable private Integer initialDelaySeconds; public static final String SERIALIZED_NAME_PERIOD_SECONDS = "periodSeconds"; @SerializedName(SERIALIZED_NAME_PERIOD_SECONDS) + @jakarta.annotation.Nullable private Integer periodSeconds; public static final String SERIALIZED_NAME_SUCCESS_THRESHOLD = "successThreshold"; @SerializedName(SERIALIZED_NAME_SUCCESS_THRESHOLD) + @jakarta.annotation.Nullable private Integer successThreshold; public static final String SERIALIZED_NAME_TCP_SOCKET = "tcpSocket"; @SerializedName(SERIALIZED_NAME_TCP_SOCKET) + @jakarta.annotation.Nullable private V1TCPSocketAction tcpSocket; public static final String SERIALIZED_NAME_TERMINATION_GRACE_PERIOD_SECONDS = "terminationGracePeriodSeconds"; @SerializedName(SERIALIZED_NAME_TERMINATION_GRACE_PERIOD_SECONDS) + @jakarta.annotation.Nullable private Long terminationGracePeriodSeconds; public static final String SERIALIZED_NAME_TIMEOUT_SECONDS = "timeoutSeconds"; @SerializedName(SERIALIZED_NAME_TIMEOUT_SECONDS) + @jakarta.annotation.Nullable private Integer timeoutSeconds; public V1Probe() { } - public V1Probe exec(V1ExecAction exec) { + public V1Probe exec(@jakarta.annotation.Nullable V1ExecAction exec) { this.exec = exec; return this; } - /** + /** * Get exec * @return exec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ExecAction getExec() { return exec; } - public void setExec(V1ExecAction exec) { + public void setExec(@jakarta.annotation.Nullable V1ExecAction exec) { this.exec = exec; } - public V1Probe failureThreshold(Integer failureThreshold) { + public V1Probe failureThreshold(@jakarta.annotation.Nullable Integer failureThreshold) { this.failureThreshold = failureThreshold; return this; } - /** + /** * Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. * @return failureThreshold - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.") public Integer getFailureThreshold() { return failureThreshold; } - public void setFailureThreshold(Integer failureThreshold) { + public void setFailureThreshold(@jakarta.annotation.Nullable Integer failureThreshold) { this.failureThreshold = failureThreshold; } - public V1Probe grpc(V1GRPCAction grpc) { + public V1Probe grpc(@jakarta.annotation.Nullable V1GRPCAction grpc) { this.grpc = grpc; return this; } - /** + /** * Get grpc * @return grpc - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1GRPCAction getGrpc() { return grpc; } - public void setGrpc(V1GRPCAction grpc) { + public void setGrpc(@jakarta.annotation.Nullable V1GRPCAction grpc) { this.grpc = grpc; } - public V1Probe httpGet(V1HTTPGetAction httpGet) { + public V1Probe httpGet(@jakarta.annotation.Nullable V1HTTPGetAction httpGet) { this.httpGet = httpGet; return this; } - /** + /** * Get httpGet * @return httpGet - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1HTTPGetAction getHttpGet() { return httpGet; } - public void setHttpGet(V1HTTPGetAction httpGet) { + public void setHttpGet(@jakarta.annotation.Nullable V1HTTPGetAction httpGet) { this.httpGet = httpGet; } - public V1Probe initialDelaySeconds(Integer initialDelaySeconds) { + public V1Probe initialDelaySeconds(@jakarta.annotation.Nullable Integer initialDelaySeconds) { this.initialDelaySeconds = initialDelaySeconds; return this; } - /** + /** * Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes * @return initialDelaySeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes") public Integer getInitialDelaySeconds() { return initialDelaySeconds; } - public void setInitialDelaySeconds(Integer initialDelaySeconds) { + public void setInitialDelaySeconds(@jakarta.annotation.Nullable Integer initialDelaySeconds) { this.initialDelaySeconds = initialDelaySeconds; } - public V1Probe periodSeconds(Integer periodSeconds) { + public V1Probe periodSeconds(@jakarta.annotation.Nullable Integer periodSeconds) { this.periodSeconds = periodSeconds; return this; } - /** + /** * How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. * @return periodSeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.") public Integer getPeriodSeconds() { return periodSeconds; } - public void setPeriodSeconds(Integer periodSeconds) { + public void setPeriodSeconds(@jakarta.annotation.Nullable Integer periodSeconds) { this.periodSeconds = periodSeconds; } - public V1Probe successThreshold(Integer successThreshold) { + public V1Probe successThreshold(@jakarta.annotation.Nullable Integer successThreshold) { this.successThreshold = successThreshold; return this; } - /** + /** * Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. * @return successThreshold - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.") public Integer getSuccessThreshold() { return successThreshold; } - public void setSuccessThreshold(Integer successThreshold) { + public void setSuccessThreshold(@jakarta.annotation.Nullable Integer successThreshold) { this.successThreshold = successThreshold; } - public V1Probe tcpSocket(V1TCPSocketAction tcpSocket) { + public V1Probe tcpSocket(@jakarta.annotation.Nullable V1TCPSocketAction tcpSocket) { this.tcpSocket = tcpSocket; return this; } - /** + /** * Get tcpSocket * @return tcpSocket - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1TCPSocketAction getTcpSocket() { return tcpSocket; } - public void setTcpSocket(V1TCPSocketAction tcpSocket) { + public void setTcpSocket(@jakarta.annotation.Nullable V1TCPSocketAction tcpSocket) { this.tcpSocket = tcpSocket; } - public V1Probe terminationGracePeriodSeconds(Long terminationGracePeriodSeconds) { + public V1Probe terminationGracePeriodSeconds(@jakarta.annotation.Nullable Long terminationGracePeriodSeconds) { this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; return this; } - /** + /** * Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. * @return terminationGracePeriodSeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.") public Long getTerminationGracePeriodSeconds() { return terminationGracePeriodSeconds; } - public void setTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds) { + public void setTerminationGracePeriodSeconds(@jakarta.annotation.Nullable Long terminationGracePeriodSeconds) { this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; } - public V1Probe timeoutSeconds(Integer timeoutSeconds) { + public V1Probe timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } - /** + /** * Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes * @return timeoutSeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes") public Integer getTimeoutSeconds() { return timeoutSeconds; } - public void setTimeoutSeconds(Integer timeoutSeconds) { + public void setTimeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; } @@ -378,12 +387,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Probe - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Probe + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Probe.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -446,22 +455,22 @@ public V1Probe read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Probe given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Probe - * @throws IOException if the JSON string is invalid with respect to V1Probe - */ + /** + * Create an instance of V1Probe given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Probe + * @throws IOException if the JSON string is invalid with respect to V1Probe + */ public static V1Probe fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Probe.class); } - /** - * Convert an instance of V1Probe to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Probe to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java index 243a115fcf..c59db3d8eb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,40 +53,42 @@ * Represents a projected volume source */ @ApiModel(description = "Represents a projected volume source") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ProjectedVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) + @jakarta.annotation.Nullable private Integer defaultMode; public static final String SERIALIZED_NAME_SOURCES = "sources"; @SerializedName(SERIALIZED_NAME_SOURCES) + @jakarta.annotation.Nullable private List sources = new ArrayList<>(); public V1ProjectedVolumeSource() { } - public V1ProjectedVolumeSource defaultMode(Integer defaultMode) { + public V1ProjectedVolumeSource defaultMode(@jakarta.annotation.Nullable Integer defaultMode) { this.defaultMode = defaultMode; return this; } - /** + /** * defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. * @return defaultMode - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") public Integer getDefaultMode() { return defaultMode; } - public void setDefaultMode(Integer defaultMode) { + public void setDefaultMode(@jakarta.annotation.Nullable Integer defaultMode) { this.defaultMode = defaultMode; } - public V1ProjectedVolumeSource sources(List sources) { + public V1ProjectedVolumeSource sources(@jakarta.annotation.Nullable List sources) { this.sources = sources; return this; } @@ -100,17 +101,17 @@ public V1ProjectedVolumeSource addSourcesItem(V1VolumeProjection sourcesItem) { return this; } - /** + /** * sources is the list of volume projections. Each entry in this list handles one source. * @return sources - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "sources is the list of volume projections. Each entry in this list handles one source.") public List getSources() { return sources; } - public void setSources(List sources) { + public void setSources(@jakarta.annotation.Nullable List sources) { this.sources = sources; } @@ -169,12 +170,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ProjectedVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ProjectedVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ProjectedVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -235,22 +236,22 @@ public V1ProjectedVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ProjectedVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ProjectedVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1ProjectedVolumeSource - */ + /** + * Create an instance of V1ProjectedVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ProjectedVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1ProjectedVolumeSource + */ public static V1ProjectedVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ProjectedVolumeSource.class); } - /** - * Convert an instance of V1ProjectedVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ProjectedVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java index f953123981..4ac8a4a009 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,79 +50,82 @@ * QueuingConfiguration holds the configuration parameters for queuing */ @ApiModel(description = "QueuingConfiguration holds the configuration parameters for queuing") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1QueuingConfiguration { public static final String SERIALIZED_NAME_HAND_SIZE = "handSize"; @SerializedName(SERIALIZED_NAME_HAND_SIZE) + @jakarta.annotation.Nullable private Integer handSize; public static final String SERIALIZED_NAME_QUEUE_LENGTH_LIMIT = "queueLengthLimit"; @SerializedName(SERIALIZED_NAME_QUEUE_LENGTH_LIMIT) + @jakarta.annotation.Nullable private Integer queueLengthLimit; public static final String SERIALIZED_NAME_QUEUES = "queues"; @SerializedName(SERIALIZED_NAME_QUEUES) + @jakarta.annotation.Nullable private Integer queues; public V1QueuingConfiguration() { } - public V1QueuingConfiguration handSize(Integer handSize) { + public V1QueuingConfiguration handSize(@jakarta.annotation.Nullable Integer handSize) { this.handSize = handSize; return this; } - /** + /** * `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. * @return handSize - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.") public Integer getHandSize() { return handSize; } - public void setHandSize(Integer handSize) { + public void setHandSize(@jakarta.annotation.Nullable Integer handSize) { this.handSize = handSize; } - public V1QueuingConfiguration queueLengthLimit(Integer queueLengthLimit) { + public V1QueuingConfiguration queueLengthLimit(@jakarta.annotation.Nullable Integer queueLengthLimit) { this.queueLengthLimit = queueLengthLimit; return this; } - /** + /** * `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. * @return queueLengthLimit - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.") public Integer getQueueLengthLimit() { return queueLengthLimit; } - public void setQueueLengthLimit(Integer queueLengthLimit) { + public void setQueueLengthLimit(@jakarta.annotation.Nullable Integer queueLengthLimit) { this.queueLengthLimit = queueLengthLimit; } - public V1QueuingConfiguration queues(Integer queues) { + public V1QueuingConfiguration queues(@jakarta.annotation.Nullable Integer queues) { this.queues = queues; return this; } - /** + /** * `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. * @return queues - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.") public Integer getQueues() { return queues; } - public void setQueues(Integer queues) { + public void setQueues(@jakarta.annotation.Nullable Integer queues) { this.queues = queues; } @@ -185,12 +187,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1QueuingConfiguration - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1QueuingConfiguration + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1QueuingConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -237,22 +239,22 @@ public V1QueuingConfiguration read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1QueuingConfiguration given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1QueuingConfiguration - * @throws IOException if the JSON string is invalid with respect to V1QueuingConfiguration - */ + /** + * Create an instance of V1QueuingConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1QueuingConfiguration + * @throws IOException if the JSON string is invalid with respect to V1QueuingConfiguration + */ public static V1QueuingConfiguration fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1QueuingConfiguration.class); } - /** - * Convert an instance of V1QueuingConfiguration to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1QueuingConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java index 1259f982c5..7ed00c2786 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,151 +50,157 @@ * Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1QuobyteVolumeSource { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) + @jakarta.annotation.Nullable private String group; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_REGISTRY = "registry"; @SerializedName(SERIALIZED_NAME_REGISTRY) + @jakarta.annotation.Nonnull private String registry; public static final String SERIALIZED_NAME_TENANT = "tenant"; @SerializedName(SERIALIZED_NAME_TENANT) + @jakarta.annotation.Nullable private String tenant; public static final String SERIALIZED_NAME_USER = "user"; @SerializedName(SERIALIZED_NAME_USER) + @jakarta.annotation.Nullable private String user; public static final String SERIALIZED_NAME_VOLUME = "volume"; @SerializedName(SERIALIZED_NAME_VOLUME) + @jakarta.annotation.Nonnull private String volume; public V1QuobyteVolumeSource() { } - public V1QuobyteVolumeSource group(String group) { + public V1QuobyteVolumeSource group(@jakarta.annotation.Nullable String group) { this.group = group; return this; } - /** + /** * group to map volume access to Default is no group * @return group - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "group to map volume access to Default is no group") public String getGroup() { return group; } - public void setGroup(String group) { + public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; } - public V1QuobyteVolumeSource readOnly(Boolean readOnly) { + public V1QuobyteVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1QuobyteVolumeSource registry(String registry) { + public V1QuobyteVolumeSource registry(@jakarta.annotation.Nonnull String registry) { this.registry = registry; return this; } - /** + /** * registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes * @return registry - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes") public String getRegistry() { return registry; } - public void setRegistry(String registry) { + public void setRegistry(@jakarta.annotation.Nonnull String registry) { this.registry = registry; } - public V1QuobyteVolumeSource tenant(String tenant) { + public V1QuobyteVolumeSource tenant(@jakarta.annotation.Nullable String tenant) { this.tenant = tenant; return this; } - /** + /** * tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin * @return tenant - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin") public String getTenant() { return tenant; } - public void setTenant(String tenant) { + public void setTenant(@jakarta.annotation.Nullable String tenant) { this.tenant = tenant; } - public V1QuobyteVolumeSource user(String user) { + public V1QuobyteVolumeSource user(@jakarta.annotation.Nullable String user) { this.user = user; return this; } - /** + /** * user to map volume access to Defaults to serivceaccount user * @return user - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "user to map volume access to Defaults to serivceaccount user") public String getUser() { return user; } - public void setUser(String user) { + public void setUser(@jakarta.annotation.Nullable String user) { this.user = user; } - public V1QuobyteVolumeSource volume(String volume) { + public V1QuobyteVolumeSource volume(@jakarta.annotation.Nonnull String volume) { this.volume = volume; return this; } - /** + /** * volume is a string that references an already created Quobyte volume by name. * @return volume - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "volume is a string that references an already created Quobyte volume by name.") public String getVolume() { return volume; } - public void setVolume(String volume) { + public void setVolume(@jakarta.annotation.Nonnull String volume) { this.volume = volume; } @@ -268,12 +273,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("volume"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1QuobyteVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1QuobyteVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1QuobyteVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -342,22 +347,22 @@ public V1QuobyteVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1QuobyteVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1QuobyteVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1QuobyteVolumeSource - */ + /** + * Create an instance of V1QuobyteVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1QuobyteVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1QuobyteVolumeSource + */ public static V1QuobyteVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1QuobyteVolumeSource.class); } - /** - * Convert an instance of V1QuobyteVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1QuobyteVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java index fc19f3b325..88ccdf161b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,104 +53,112 @@ * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1RBDPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) + @jakarta.annotation.Nullable private String fsType; public static final String SERIALIZED_NAME_IMAGE = "image"; @SerializedName(SERIALIZED_NAME_IMAGE) + @jakarta.annotation.Nonnull private String image; public static final String SERIALIZED_NAME_KEYRING = "keyring"; @SerializedName(SERIALIZED_NAME_KEYRING) + @jakarta.annotation.Nullable private String keyring; public static final String SERIALIZED_NAME_MONITORS = "monitors"; @SerializedName(SERIALIZED_NAME_MONITORS) + @jakarta.annotation.Nonnull private List monitors = new ArrayList<>(); public static final String SERIALIZED_NAME_POOL = "pool"; @SerializedName(SERIALIZED_NAME_POOL) + @jakarta.annotation.Nullable private String pool; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; @SerializedName(SERIALIZED_NAME_SECRET_REF) + @jakarta.annotation.Nullable private V1SecretReference secretRef; public static final String SERIALIZED_NAME_USER = "user"; @SerializedName(SERIALIZED_NAME_USER) + @jakarta.annotation.Nullable private String user; public V1RBDPersistentVolumeSource() { } - public V1RBDPersistentVolumeSource fsType(String fsType) { + public V1RBDPersistentVolumeSource fsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; return this; } - /** + /** * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd * @return fsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd") public String getFsType() { return fsType; } - public void setFsType(String fsType) { + public void setFsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; } - public V1RBDPersistentVolumeSource image(String image) { + public V1RBDPersistentVolumeSource image(@jakarta.annotation.Nonnull String image) { this.image = image; return this; } - /** + /** * image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it * @return image - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public String getImage() { return image; } - public void setImage(String image) { + public void setImage(@jakarta.annotation.Nonnull String image) { this.image = image; } - public V1RBDPersistentVolumeSource keyring(String keyring) { + public V1RBDPersistentVolumeSource keyring(@jakarta.annotation.Nullable String keyring) { this.keyring = keyring; return this; } - /** + /** * keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it * @return keyring - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public String getKeyring() { return keyring; } - public void setKeyring(String keyring) { + public void setKeyring(@jakarta.annotation.Nullable String keyring) { this.keyring = keyring; } - public V1RBDPersistentVolumeSource monitors(List monitors) { + public V1RBDPersistentVolumeSource monitors(@jakarta.annotation.Nonnull List monitors) { this.monitors = monitors; return this; } @@ -164,97 +171,97 @@ public V1RBDPersistentVolumeSource addMonitorsItem(String monitorsItem) { return this; } - /** + /** * monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it * @return monitors - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public List getMonitors() { return monitors; } - public void setMonitors(List monitors) { + public void setMonitors(@jakarta.annotation.Nonnull List monitors) { this.monitors = monitors; } - public V1RBDPersistentVolumeSource pool(String pool) { + public V1RBDPersistentVolumeSource pool(@jakarta.annotation.Nullable String pool) { this.pool = pool; return this; } - /** + /** * pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it * @return pool - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public String getPool() { return pool; } - public void setPool(String pool) { + public void setPool(@jakarta.annotation.Nullable String pool) { this.pool = pool; } - public V1RBDPersistentVolumeSource readOnly(Boolean readOnly) { + public V1RBDPersistentVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1RBDPersistentVolumeSource secretRef(V1SecretReference secretRef) { + public V1RBDPersistentVolumeSource secretRef(@jakarta.annotation.Nullable V1SecretReference secretRef) { this.secretRef = secretRef; return this; } - /** + /** * Get secretRef * @return secretRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SecretReference getSecretRef() { return secretRef; } - public void setSecretRef(V1SecretReference secretRef) { + public void setSecretRef(@jakarta.annotation.Nullable V1SecretReference secretRef) { this.secretRef = secretRef; } - public V1RBDPersistentVolumeSource user(String user) { + public V1RBDPersistentVolumeSource user(@jakarta.annotation.Nullable String user) { this.user = user; return this; } - /** + /** * user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it * @return user - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public String getUser() { return user; } - public void setUser(String user) { + public void setUser(@jakarta.annotation.Nullable String user) { this.user = user; } @@ -333,12 +340,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("monitors"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1RBDPersistentVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1RBDPersistentVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RBDPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -417,22 +424,22 @@ public V1RBDPersistentVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1RBDPersistentVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1RBDPersistentVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1RBDPersistentVolumeSource - */ + /** + * Create an instance of V1RBDPersistentVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RBDPersistentVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1RBDPersistentVolumeSource + */ public static V1RBDPersistentVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1RBDPersistentVolumeSource.class); } - /** - * Convert an instance of V1RBDPersistentVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1RBDPersistentVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java index 5cff562dd6..c119f75de6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,104 +53,112 @@ * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1RBDVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) + @jakarta.annotation.Nullable private String fsType; public static final String SERIALIZED_NAME_IMAGE = "image"; @SerializedName(SERIALIZED_NAME_IMAGE) + @jakarta.annotation.Nonnull private String image; public static final String SERIALIZED_NAME_KEYRING = "keyring"; @SerializedName(SERIALIZED_NAME_KEYRING) + @jakarta.annotation.Nullable private String keyring; public static final String SERIALIZED_NAME_MONITORS = "monitors"; @SerializedName(SERIALIZED_NAME_MONITORS) + @jakarta.annotation.Nonnull private List monitors = new ArrayList<>(); public static final String SERIALIZED_NAME_POOL = "pool"; @SerializedName(SERIALIZED_NAME_POOL) + @jakarta.annotation.Nullable private String pool; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; @SerializedName(SERIALIZED_NAME_SECRET_REF) + @jakarta.annotation.Nullable private V1LocalObjectReference secretRef; public static final String SERIALIZED_NAME_USER = "user"; @SerializedName(SERIALIZED_NAME_USER) + @jakarta.annotation.Nullable private String user; public V1RBDVolumeSource() { } - public V1RBDVolumeSource fsType(String fsType) { + public V1RBDVolumeSource fsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; return this; } - /** + /** * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd * @return fsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd") public String getFsType() { return fsType; } - public void setFsType(String fsType) { + public void setFsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; } - public V1RBDVolumeSource image(String image) { + public V1RBDVolumeSource image(@jakarta.annotation.Nonnull String image) { this.image = image; return this; } - /** + /** * image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it * @return image - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public String getImage() { return image; } - public void setImage(String image) { + public void setImage(@jakarta.annotation.Nonnull String image) { this.image = image; } - public V1RBDVolumeSource keyring(String keyring) { + public V1RBDVolumeSource keyring(@jakarta.annotation.Nullable String keyring) { this.keyring = keyring; return this; } - /** + /** * keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it * @return keyring - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public String getKeyring() { return keyring; } - public void setKeyring(String keyring) { + public void setKeyring(@jakarta.annotation.Nullable String keyring) { this.keyring = keyring; } - public V1RBDVolumeSource monitors(List monitors) { + public V1RBDVolumeSource monitors(@jakarta.annotation.Nonnull List monitors) { this.monitors = monitors; return this; } @@ -164,97 +171,97 @@ public V1RBDVolumeSource addMonitorsItem(String monitorsItem) { return this; } - /** + /** * monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it * @return monitors - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public List getMonitors() { return monitors; } - public void setMonitors(List monitors) { + public void setMonitors(@jakarta.annotation.Nonnull List monitors) { this.monitors = monitors; } - public V1RBDVolumeSource pool(String pool) { + public V1RBDVolumeSource pool(@jakarta.annotation.Nullable String pool) { this.pool = pool; return this; } - /** + /** * pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it * @return pool - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public String getPool() { return pool; } - public void setPool(String pool) { + public void setPool(@jakarta.annotation.Nullable String pool) { this.pool = pool; } - public V1RBDVolumeSource readOnly(Boolean readOnly) { + public V1RBDVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1RBDVolumeSource secretRef(V1LocalObjectReference secretRef) { + public V1RBDVolumeSource secretRef(@jakarta.annotation.Nullable V1LocalObjectReference secretRef) { this.secretRef = secretRef; return this; } - /** + /** * Get secretRef * @return secretRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LocalObjectReference getSecretRef() { return secretRef; } - public void setSecretRef(V1LocalObjectReference secretRef) { + public void setSecretRef(@jakarta.annotation.Nullable V1LocalObjectReference secretRef) { this.secretRef = secretRef; } - public V1RBDVolumeSource user(String user) { + public V1RBDVolumeSource user(@jakarta.annotation.Nullable String user) { this.user = user; return this; } - /** + /** * user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it * @return user - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public String getUser() { return user; } - public void setUser(String user) { + public void setUser(@jakarta.annotation.Nullable String user) { this.user = user; } @@ -333,12 +340,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("monitors"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1RBDVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1RBDVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RBDVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -417,22 +424,22 @@ public V1RBDVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1RBDVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1RBDVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1RBDVolumeSource - */ + /** + * Create an instance of V1RBDVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RBDVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1RBDVolumeSource + */ public static V1RBDVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1RBDVolumeSource.class); } - /** - * Convert an instance of V1RBDVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1RBDVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java index c99d0ae788..c1305b985d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * ReplicaSet ensures that a specified number of pod replicas are running at any given time. */ @ApiModel(description = "ReplicaSet ensures that a specified number of pod replicas are running at any given time.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ReplicaSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1ReplicaSetSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1ReplicaSetStatus status; public V1ReplicaSet() { } - public V1ReplicaSet apiVersion(String apiVersion) { + public V1ReplicaSet apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ReplicaSet kind(String kind) { + public V1ReplicaSet kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ReplicaSet metadata(V1ObjectMeta metadata) { + public V1ReplicaSet metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1ReplicaSet spec(V1ReplicaSetSpec spec) { + public V1ReplicaSet spec(@jakarta.annotation.Nullable V1ReplicaSetSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ReplicaSetSpec getSpec() { return spec; } - public void setSpec(V1ReplicaSetSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1ReplicaSetSpec spec) { this.spec = spec; } - public V1ReplicaSet status(V1ReplicaSetStatus status) { + public V1ReplicaSet status(@jakarta.annotation.Nullable V1ReplicaSetStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ReplicaSetStatus getStatus() { return status; } - public void setStatus(V1ReplicaSetStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1ReplicaSetStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ReplicaSet - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ReplicaSet + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ReplicaSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1ReplicaSet read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ReplicaSet given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ReplicaSet - * @throws IOException if the JSON string is invalid with respect to V1ReplicaSet - */ + /** + * Create an instance of V1ReplicaSet given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ReplicaSet + * @throws IOException if the JSON string is invalid with respect to V1ReplicaSet + */ public static V1ReplicaSet fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ReplicaSet.class); } - /** - * Convert an instance of V1ReplicaSet to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ReplicaSet to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java index f3765f2113..9b470cbbb6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,127 +51,132 @@ * ReplicaSetCondition describes the state of a replica set at a certain point. */ @ApiModel(description = "ReplicaSetCondition describes the state of a replica set at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ReplicaSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nonnull private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1ReplicaSetCondition() { } - public V1ReplicaSetCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { + public V1ReplicaSetCondition lastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; } - /** + /** * The last time the condition transitioned from one status to another. * @return lastTransitionTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { + public void setLastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } - public V1ReplicaSetCondition message(String message) { + public V1ReplicaSetCondition message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * A human readable message indicating details about the transition. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A human readable message indicating details about the transition.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1ReplicaSetCondition reason(String reason) { + public V1ReplicaSetCondition reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * The reason for the condition's last transition. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The reason for the condition's last transition.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } - public V1ReplicaSetCondition status(String status) { + public V1ReplicaSetCondition status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } - /** + /** * Status of the condition, one of True, False, Unknown. * @return status - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public V1ReplicaSetCondition type(String type) { + public V1ReplicaSetCondition type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * Type of replica set condition. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Type of replica set condition.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ReplicaSetCondition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ReplicaSetCondition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ReplicaSetCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -313,22 +317,22 @@ public V1ReplicaSetCondition read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ReplicaSetCondition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ReplicaSetCondition - * @throws IOException if the JSON string is invalid with respect to V1ReplicaSetCondition - */ + /** + * Create an instance of V1ReplicaSetCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ReplicaSetCondition + * @throws IOException if the JSON string is invalid with respect to V1ReplicaSetCondition + */ public static V1ReplicaSetCondition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ReplicaSetCondition.class); } - /** - * Convert an instance of V1ReplicaSetCondition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ReplicaSetCondition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java index b6d358ea70..5d09813658 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * ReplicaSetList is a collection of ReplicaSets. */ @ApiModel(description = "ReplicaSetList is a collection of ReplicaSets.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ReplicaSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1ReplicaSetList() { } - public V1ReplicaSetList apiVersion(String apiVersion) { + public V1ReplicaSetList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ReplicaSetList items(List items) { + public V1ReplicaSetList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1ReplicaSetList addItemsItem(V1ReplicaSet itemsItem) { return this; } - /** - * List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + /** + * List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset * @return items - **/ + */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller") + @ApiModelProperty(required = true, value = "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1ReplicaSetList kind(String kind) { + public V1ReplicaSetList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ReplicaSetList metadata(V1ListMeta metadata) { + public V1ReplicaSetList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ReplicaSetList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ReplicaSetList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ReplicaSetList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1ReplicaSetList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ReplicaSetList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ReplicaSetList - * @throws IOException if the JSON string is invalid with respect to V1ReplicaSetList - */ + /** + * Create an instance of V1ReplicaSetList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ReplicaSetList + * @throws IOException if the JSON string is invalid with respect to V1ReplicaSetList + */ public static V1ReplicaSetList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ReplicaSetList.class); } - /** - * Convert an instance of V1ReplicaSetList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ReplicaSetList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java index 828bbec5b2..66275a6a94 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,103 +52,107 @@ * ReplicaSetSpec is the specification of a ReplicaSet. */ @ApiModel(description = "ReplicaSetSpec is the specification of a ReplicaSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ReplicaSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) + @jakarta.annotation.Nullable private Integer minReadySeconds; public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_REPLICAS) + @jakarta.annotation.Nullable private Integer replicas; public static final String SERIALIZED_NAME_SELECTOR = "selector"; @SerializedName(SERIALIZED_NAME_SELECTOR) + @jakarta.annotation.Nonnull private V1LabelSelector selector; public static final String SERIALIZED_NAME_TEMPLATE = "template"; @SerializedName(SERIALIZED_NAME_TEMPLATE) + @jakarta.annotation.Nullable private V1PodTemplateSpec template; public V1ReplicaSetSpec() { } - public V1ReplicaSetSpec minReadySeconds(Integer minReadySeconds) { + public V1ReplicaSetSpec minReadySeconds(@jakarta.annotation.Nullable Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; return this; } - /** + /** * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) * @return minReadySeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)") public Integer getMinReadySeconds() { return minReadySeconds; } - public void setMinReadySeconds(Integer minReadySeconds) { + public void setMinReadySeconds(@jakarta.annotation.Nullable Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; } - public V1ReplicaSetSpec replicas(Integer replicas) { + public V1ReplicaSetSpec replicas(@jakarta.annotation.Nullable Integer replicas) { this.replicas = replicas; return this; } - /** - * Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + /** + * Replicas is the number of desired pods. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset * @return replicas - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller") + @ApiModelProperty(value = "Replicas is the number of desired pods. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset") public Integer getReplicas() { return replicas; } - public void setReplicas(Integer replicas) { + public void setReplicas(@jakarta.annotation.Nullable Integer replicas) { this.replicas = replicas; } - public V1ReplicaSetSpec selector(V1LabelSelector selector) { + public V1ReplicaSetSpec selector(@jakarta.annotation.Nonnull V1LabelSelector selector) { this.selector = selector; return this; } - /** + /** * Get selector * @return selector - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1LabelSelector getSelector() { return selector; } - public void setSelector(V1LabelSelector selector) { + public void setSelector(@jakarta.annotation.Nonnull V1LabelSelector selector) { this.selector = selector; } - public V1ReplicaSetSpec template(V1PodTemplateSpec template) { + public V1ReplicaSetSpec template(@jakarta.annotation.Nullable V1PodTemplateSpec template) { this.template = template; return this; } - /** + /** * Get template * @return template - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PodTemplateSpec getTemplate() { return template; } - public void setTemplate(V1PodTemplateSpec template) { + public void setTemplate(@jakarta.annotation.Nullable V1PodTemplateSpec template) { this.template = template; } @@ -215,12 +218,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("selector"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ReplicaSetSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ReplicaSetSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ReplicaSetSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -280,22 +283,22 @@ public V1ReplicaSetSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ReplicaSetSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ReplicaSetSpec - * @throws IOException if the JSON string is invalid with respect to V1ReplicaSetSpec - */ + /** + * Create an instance of V1ReplicaSetSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ReplicaSetSpec + * @throws IOException if the JSON string is invalid with respect to V1ReplicaSetSpec + */ public static V1ReplicaSetSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ReplicaSetSpec.class); } - /** - * Convert an instance of V1ReplicaSetSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ReplicaSetSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java index 165379ff1d..6df91831f7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,56 +53,67 @@ * ReplicaSetStatus represents the current status of a ReplicaSet. */ @ApiModel(description = "ReplicaSetStatus represents the current status of a ReplicaSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ReplicaSetStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) + @jakarta.annotation.Nullable private Integer availableReplicas; public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); public static final String SERIALIZED_NAME_FULLY_LABELED_REPLICAS = "fullyLabeledReplicas"; @SerializedName(SERIALIZED_NAME_FULLY_LABELED_REPLICAS) + @jakarta.annotation.Nullable private Integer fullyLabeledReplicas; public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + @jakarta.annotation.Nullable private Long observedGeneration; public static final String SERIALIZED_NAME_READY_REPLICAS = "readyReplicas"; @SerializedName(SERIALIZED_NAME_READY_REPLICAS) + @jakarta.annotation.Nullable private Integer readyReplicas; public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_REPLICAS) + @jakarta.annotation.Nonnull private Integer replicas; + public static final String SERIALIZED_NAME_TERMINATING_REPLICAS = "terminatingReplicas"; + @SerializedName(SERIALIZED_NAME_TERMINATING_REPLICAS) + @jakarta.annotation.Nullable + private Integer terminatingReplicas; + public V1ReplicaSetStatus() { } - public V1ReplicaSetStatus availableReplicas(Integer availableReplicas) { + public V1ReplicaSetStatus availableReplicas(@jakarta.annotation.Nullable Integer availableReplicas) { this.availableReplicas = availableReplicas; return this; } - /** - * The number of available replicas (ready for at least minReadySeconds) for this replica set. + /** + * The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set. * @return availableReplicas - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "The number of available replicas (ready for at least minReadySeconds) for this replica set.") + @ApiModelProperty(value = "The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set.") public Integer getAvailableReplicas() { return availableReplicas; } - public void setAvailableReplicas(Integer availableReplicas) { + public void setAvailableReplicas(@jakarta.annotation.Nullable Integer availableReplicas) { this.availableReplicas = availableReplicas; } - public V1ReplicaSetStatus conditions(List conditions) { + public V1ReplicaSetStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } @@ -116,101 +126,121 @@ public V1ReplicaSetStatus addConditionsItem(V1ReplicaSetCondition conditionsItem return this; } - /** + /** * Represents the latest available observations of a replica set's current state. * @return conditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Represents the latest available observations of a replica set's current state.") public List getConditions() { return conditions; } - public void setConditions(List conditions) { + public void setConditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; } - public V1ReplicaSetStatus fullyLabeledReplicas(Integer fullyLabeledReplicas) { + public V1ReplicaSetStatus fullyLabeledReplicas(@jakarta.annotation.Nullable Integer fullyLabeledReplicas) { this.fullyLabeledReplicas = fullyLabeledReplicas; return this; } - /** - * The number of pods that have labels matching the labels of the pod template of the replicaset. + /** + * The number of non-terminating pods that have labels matching the labels of the pod template of the replicaset. * @return fullyLabeledReplicas - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "The number of pods that have labels matching the labels of the pod template of the replicaset.") + @ApiModelProperty(value = "The number of non-terminating pods that have labels matching the labels of the pod template of the replicaset.") public Integer getFullyLabeledReplicas() { return fullyLabeledReplicas; } - public void setFullyLabeledReplicas(Integer fullyLabeledReplicas) { + public void setFullyLabeledReplicas(@jakarta.annotation.Nullable Integer fullyLabeledReplicas) { this.fullyLabeledReplicas = fullyLabeledReplicas; } - public V1ReplicaSetStatus observedGeneration(Long observedGeneration) { + public V1ReplicaSetStatus observedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { this.observedGeneration = observedGeneration; return this; } - /** + /** * ObservedGeneration reflects the generation of the most recently observed ReplicaSet. * @return observedGeneration - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.") public Long getObservedGeneration() { return observedGeneration; } - public void setObservedGeneration(Long observedGeneration) { + public void setObservedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { this.observedGeneration = observedGeneration; } - public V1ReplicaSetStatus readyReplicas(Integer readyReplicas) { + public V1ReplicaSetStatus readyReplicas(@jakarta.annotation.Nullable Integer readyReplicas) { this.readyReplicas = readyReplicas; return this; } - /** - * readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition. + /** + * The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition. * @return readyReplicas - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.") + @ApiModelProperty(value = "The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition.") public Integer getReadyReplicas() { return readyReplicas; } - public void setReadyReplicas(Integer readyReplicas) { + public void setReadyReplicas(@jakarta.annotation.Nullable Integer readyReplicas) { this.readyReplicas = readyReplicas; } - public V1ReplicaSetStatus replicas(Integer replicas) { + public V1ReplicaSetStatus replicas(@jakarta.annotation.Nonnull Integer replicas) { this.replicas = replicas; return this; } - /** - * Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + /** + * Replicas is the most recently observed number of non-terminating pods. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset * @return replicas - **/ + */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller") + @ApiModelProperty(required = true, value = "Replicas is the most recently observed number of non-terminating pods. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset") public Integer getReplicas() { return replicas; } - public void setReplicas(Integer replicas) { + public void setReplicas(@jakarta.annotation.Nonnull Integer replicas) { this.replicas = replicas; } + public V1ReplicaSetStatus terminatingReplicas(@jakarta.annotation.Nullable Integer terminatingReplicas) { + this.terminatingReplicas = terminatingReplicas; + return this; + } + + /** + * The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase. This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field. + * @return terminatingReplicas + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase. This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.") + public Integer getTerminatingReplicas() { + return terminatingReplicas; + } + + public void setTerminatingReplicas(@jakarta.annotation.Nullable Integer terminatingReplicas) { + this.terminatingReplicas = terminatingReplicas; + } + + @Override public boolean equals(Object o) { @@ -226,12 +256,13 @@ public boolean equals(Object o) { Objects.equals(this.fullyLabeledReplicas, v1ReplicaSetStatus.fullyLabeledReplicas) && Objects.equals(this.observedGeneration, v1ReplicaSetStatus.observedGeneration) && Objects.equals(this.readyReplicas, v1ReplicaSetStatus.readyReplicas) && - Objects.equals(this.replicas, v1ReplicaSetStatus.replicas); + Objects.equals(this.replicas, v1ReplicaSetStatus.replicas) && + Objects.equals(this.terminatingReplicas, v1ReplicaSetStatus.terminatingReplicas); } @Override public int hashCode() { - return Objects.hash(availableReplicas, conditions, fullyLabeledReplicas, observedGeneration, readyReplicas, replicas); + return Objects.hash(availableReplicas, conditions, fullyLabeledReplicas, observedGeneration, readyReplicas, replicas, terminatingReplicas); } @Override @@ -244,6 +275,7 @@ public String toString() { sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).append("\n"); sb.append(" readyReplicas: ").append(toIndentedString(readyReplicas)).append("\n"); sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n"); + sb.append(" terminatingReplicas: ").append(toIndentedString(terminatingReplicas)).append("\n"); sb.append("}"); return sb.toString(); } @@ -272,18 +304,19 @@ private String toIndentedString(Object o) { openapiFields.add("observedGeneration"); openapiFields.add("readyReplicas"); openapiFields.add("replicas"); + openapiFields.add("terminatingReplicas"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); openapiRequiredFields.add("replicas"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ReplicaSetStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ReplicaSetStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ReplicaSetStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -351,22 +384,22 @@ public V1ReplicaSetStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ReplicaSetStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ReplicaSetStatus - * @throws IOException if the JSON string is invalid with respect to V1ReplicaSetStatus - */ + /** + * Create an instance of V1ReplicaSetStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ReplicaSetStatus + * @throws IOException if the JSON string is invalid with respect to V1ReplicaSetStatus + */ public static V1ReplicaSetStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ReplicaSetStatus.class); } - /** - * Convert an instance of V1ReplicaSetStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ReplicaSetStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java index dda6165ee8..62dc820bed 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * ReplicationController represents the configuration of a replication controller. */ @ApiModel(description = "ReplicationController represents the configuration of a replication controller.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ReplicationController implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1ReplicationControllerSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1ReplicationControllerStatus status; public V1ReplicationController() { } - public V1ReplicationController apiVersion(String apiVersion) { + public V1ReplicationController apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ReplicationController kind(String kind) { + public V1ReplicationController kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ReplicationController metadata(V1ObjectMeta metadata) { + public V1ReplicationController metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1ReplicationController spec(V1ReplicationControllerSpec spec) { + public V1ReplicationController spec(@jakarta.annotation.Nullable V1ReplicationControllerSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ReplicationControllerSpec getSpec() { return spec; } - public void setSpec(V1ReplicationControllerSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1ReplicationControllerSpec spec) { this.spec = spec; } - public V1ReplicationController status(V1ReplicationControllerStatus status) { + public V1ReplicationController status(@jakarta.annotation.Nullable V1ReplicationControllerStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ReplicationControllerStatus getStatus() { return status; } - public void setStatus(V1ReplicationControllerStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1ReplicationControllerStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ReplicationController - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ReplicationController + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ReplicationController.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1ReplicationController read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ReplicationController given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ReplicationController - * @throws IOException if the JSON string is invalid with respect to V1ReplicationController - */ + /** + * Create an instance of V1ReplicationController given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ReplicationController + * @throws IOException if the JSON string is invalid with respect to V1ReplicationController + */ public static V1ReplicationController fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ReplicationController.class); } - /** - * Convert an instance of V1ReplicationController to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ReplicationController to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java index 4656aacf04..3e97f0c502 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,127 +51,132 @@ * ReplicationControllerCondition describes the state of a replication controller at a certain point. */ @ApiModel(description = "ReplicationControllerCondition describes the state of a replication controller at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ReplicationControllerCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nonnull private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1ReplicationControllerCondition() { } - public V1ReplicationControllerCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { + public V1ReplicationControllerCondition lastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; } - /** + /** * The last time the condition transitioned from one status to another. * @return lastTransitionTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { + public void setLastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } - public V1ReplicationControllerCondition message(String message) { + public V1ReplicationControllerCondition message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * A human readable message indicating details about the transition. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A human readable message indicating details about the transition.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1ReplicationControllerCondition reason(String reason) { + public V1ReplicationControllerCondition reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * The reason for the condition's last transition. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The reason for the condition's last transition.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } - public V1ReplicationControllerCondition status(String status) { + public V1ReplicationControllerCondition status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } - /** + /** * Status of the condition, one of True, False, Unknown. * @return status - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public V1ReplicationControllerCondition type(String type) { + public V1ReplicationControllerCondition type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * Type of replication controller condition. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Type of replication controller condition.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ReplicationControllerCondition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ReplicationControllerCondition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ReplicationControllerCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -313,22 +317,22 @@ public V1ReplicationControllerCondition read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ReplicationControllerCondition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ReplicationControllerCondition - * @throws IOException if the JSON string is invalid with respect to V1ReplicationControllerCondition - */ + /** + * Create an instance of V1ReplicationControllerCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ReplicationControllerCondition + * @throws IOException if the JSON string is invalid with respect to V1ReplicationControllerCondition + */ public static V1ReplicationControllerCondition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ReplicationControllerCondition.class); } - /** - * Convert an instance of V1ReplicationControllerCondition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ReplicationControllerCondition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java index 97e959e485..0bbb527f92 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * ReplicationControllerList is a collection of replication controllers. */ @ApiModel(description = "ReplicationControllerList is a collection of replication controllers.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ReplicationControllerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1ReplicationControllerList() { } - public V1ReplicationControllerList apiVersion(String apiVersion) { + public V1ReplicationControllerList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ReplicationControllerList items(List items) { + public V1ReplicationControllerList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1ReplicationControllerList addItemsItem(V1ReplicationController itemsIte return this; } - /** + /** * List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1ReplicationControllerList kind(String kind) { + public V1ReplicationControllerList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ReplicationControllerList metadata(V1ListMeta metadata) { + public V1ReplicationControllerList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ReplicationControllerList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ReplicationControllerList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ReplicationControllerList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1ReplicationControllerList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ReplicationControllerList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ReplicationControllerList - * @throws IOException if the JSON string is invalid with respect to V1ReplicationControllerList - */ + /** + * Create an instance of V1ReplicationControllerList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ReplicationControllerList + * @throws IOException if the JSON string is invalid with respect to V1ReplicationControllerList + */ public static V1ReplicationControllerList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ReplicationControllerList.class); } - /** - * Convert an instance of V1ReplicationControllerList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ReplicationControllerList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java index f7491eca92..2835703d5f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,68 +53,72 @@ * ReplicationControllerSpec is the specification of a replication controller. */ @ApiModel(description = "ReplicationControllerSpec is the specification of a replication controller.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ReplicationControllerSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) + @jakarta.annotation.Nullable private Integer minReadySeconds; public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_REPLICAS) + @jakarta.annotation.Nullable private Integer replicas; public static final String SERIALIZED_NAME_SELECTOR = "selector"; @SerializedName(SERIALIZED_NAME_SELECTOR) + @jakarta.annotation.Nullable private Map selector = new HashMap<>(); public static final String SERIALIZED_NAME_TEMPLATE = "template"; @SerializedName(SERIALIZED_NAME_TEMPLATE) + @jakarta.annotation.Nullable private V1PodTemplateSpec template; public V1ReplicationControllerSpec() { } - public V1ReplicationControllerSpec minReadySeconds(Integer minReadySeconds) { + public V1ReplicationControllerSpec minReadySeconds(@jakarta.annotation.Nullable Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; return this; } - /** + /** * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) * @return minReadySeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)") public Integer getMinReadySeconds() { return minReadySeconds; } - public void setMinReadySeconds(Integer minReadySeconds) { + public void setMinReadySeconds(@jakarta.annotation.Nullable Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; } - public V1ReplicationControllerSpec replicas(Integer replicas) { + public V1ReplicationControllerSpec replicas(@jakarta.annotation.Nullable Integer replicas) { this.replicas = replicas; return this; } - /** + /** * Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller * @return replicas - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller") public Integer getReplicas() { return replicas; } - public void setReplicas(Integer replicas) { + public void setReplicas(@jakarta.annotation.Nullable Integer replicas) { this.replicas = replicas; } - public V1ReplicationControllerSpec selector(Map selector) { + public V1ReplicationControllerSpec selector(@jakarta.annotation.Nullable Map selector) { this.selector = selector; return this; } @@ -128,37 +131,37 @@ public V1ReplicationControllerSpec putSelectorItem(String key, String selectorIt return this; } - /** + /** * Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors * @return selector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors") public Map getSelector() { return selector; } - public void setSelector(Map selector) { + public void setSelector(@jakarta.annotation.Nullable Map selector) { this.selector = selector; } - public V1ReplicationControllerSpec template(V1PodTemplateSpec template) { + public V1ReplicationControllerSpec template(@jakarta.annotation.Nullable V1PodTemplateSpec template) { this.template = template; return this; } - /** + /** * Get template * @return template - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PodTemplateSpec getTemplate() { return template; } - public void setTemplate(V1PodTemplateSpec template) { + public void setTemplate(@jakarta.annotation.Nullable V1PodTemplateSpec template) { this.template = template; } @@ -223,12 +226,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ReplicationControllerSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ReplicationControllerSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ReplicationControllerSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -279,22 +282,22 @@ public V1ReplicationControllerSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ReplicationControllerSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ReplicationControllerSpec - * @throws IOException if the JSON string is invalid with respect to V1ReplicationControllerSpec - */ + /** + * Create an instance of V1ReplicationControllerSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ReplicationControllerSpec + * @throws IOException if the JSON string is invalid with respect to V1ReplicationControllerSpec + */ public static V1ReplicationControllerSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ReplicationControllerSpec.class); } - /** - * Convert an instance of V1ReplicationControllerSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ReplicationControllerSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java index 97de4ced48..a3672530bb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,56 +53,62 @@ * ReplicationControllerStatus represents the current status of a replication controller. */ @ApiModel(description = "ReplicationControllerStatus represents the current status of a replication controller.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ReplicationControllerStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) + @jakarta.annotation.Nullable private Integer availableReplicas; public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); public static final String SERIALIZED_NAME_FULLY_LABELED_REPLICAS = "fullyLabeledReplicas"; @SerializedName(SERIALIZED_NAME_FULLY_LABELED_REPLICAS) + @jakarta.annotation.Nullable private Integer fullyLabeledReplicas; public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + @jakarta.annotation.Nullable private Long observedGeneration; public static final String SERIALIZED_NAME_READY_REPLICAS = "readyReplicas"; @SerializedName(SERIALIZED_NAME_READY_REPLICAS) + @jakarta.annotation.Nullable private Integer readyReplicas; public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_REPLICAS) + @jakarta.annotation.Nonnull private Integer replicas; public V1ReplicationControllerStatus() { } - public V1ReplicationControllerStatus availableReplicas(Integer availableReplicas) { + public V1ReplicationControllerStatus availableReplicas(@jakarta.annotation.Nullable Integer availableReplicas) { this.availableReplicas = availableReplicas; return this; } - /** + /** * The number of available replicas (ready for at least minReadySeconds) for this replication controller. * @return availableReplicas - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The number of available replicas (ready for at least minReadySeconds) for this replication controller.") public Integer getAvailableReplicas() { return availableReplicas; } - public void setAvailableReplicas(Integer availableReplicas) { + public void setAvailableReplicas(@jakarta.annotation.Nullable Integer availableReplicas) { this.availableReplicas = availableReplicas; } - public V1ReplicationControllerStatus conditions(List conditions) { + public V1ReplicationControllerStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } @@ -116,97 +121,97 @@ public V1ReplicationControllerStatus addConditionsItem(V1ReplicationControllerCo return this; } - /** + /** * Represents the latest available observations of a replication controller's current state. * @return conditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Represents the latest available observations of a replication controller's current state.") public List getConditions() { return conditions; } - public void setConditions(List conditions) { + public void setConditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; } - public V1ReplicationControllerStatus fullyLabeledReplicas(Integer fullyLabeledReplicas) { + public V1ReplicationControllerStatus fullyLabeledReplicas(@jakarta.annotation.Nullable Integer fullyLabeledReplicas) { this.fullyLabeledReplicas = fullyLabeledReplicas; return this; } - /** + /** * The number of pods that have labels matching the labels of the pod template of the replication controller. * @return fullyLabeledReplicas - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The number of pods that have labels matching the labels of the pod template of the replication controller.") public Integer getFullyLabeledReplicas() { return fullyLabeledReplicas; } - public void setFullyLabeledReplicas(Integer fullyLabeledReplicas) { + public void setFullyLabeledReplicas(@jakarta.annotation.Nullable Integer fullyLabeledReplicas) { this.fullyLabeledReplicas = fullyLabeledReplicas; } - public V1ReplicationControllerStatus observedGeneration(Long observedGeneration) { + public V1ReplicationControllerStatus observedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { this.observedGeneration = observedGeneration; return this; } - /** + /** * ObservedGeneration reflects the generation of the most recently observed replication controller. * @return observedGeneration - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ObservedGeneration reflects the generation of the most recently observed replication controller.") public Long getObservedGeneration() { return observedGeneration; } - public void setObservedGeneration(Long observedGeneration) { + public void setObservedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { this.observedGeneration = observedGeneration; } - public V1ReplicationControllerStatus readyReplicas(Integer readyReplicas) { + public V1ReplicationControllerStatus readyReplicas(@jakarta.annotation.Nullable Integer readyReplicas) { this.readyReplicas = readyReplicas; return this; } - /** + /** * The number of ready replicas for this replication controller. * @return readyReplicas - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The number of ready replicas for this replication controller.") public Integer getReadyReplicas() { return readyReplicas; } - public void setReadyReplicas(Integer readyReplicas) { + public void setReadyReplicas(@jakarta.annotation.Nullable Integer readyReplicas) { this.readyReplicas = readyReplicas; } - public V1ReplicationControllerStatus replicas(Integer replicas) { + public V1ReplicationControllerStatus replicas(@jakarta.annotation.Nonnull Integer replicas) { this.replicas = replicas; return this; } - /** + /** * Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller * @return replicas - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller") public Integer getReplicas() { return replicas; } - public void setReplicas(Integer replicas) { + public void setReplicas(@jakarta.annotation.Nonnull Integer replicas) { this.replicas = replicas; } @@ -278,12 +283,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("replicas"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ReplicationControllerStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ReplicationControllerStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ReplicationControllerStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -351,22 +356,22 @@ public V1ReplicationControllerStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ReplicationControllerStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ReplicationControllerStatus - * @throws IOException if the JSON string is invalid with respect to V1ReplicationControllerStatus - */ + /** + * Create an instance of V1ReplicationControllerStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ReplicationControllerStatus + * @throws IOException if the JSON string is invalid with respect to V1ReplicationControllerStatus + */ public static V1ReplicationControllerStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ReplicationControllerStatus.class); } - /** - * Convert an instance of V1ReplicationControllerStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ReplicationControllerStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java index 448d11a1a7..7b1b199e98 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,223 +52,232 @@ * ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface */ @ApiModel(description = "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ResourceAttributes { public static final String SERIALIZED_NAME_FIELD_SELECTOR = "fieldSelector"; @SerializedName(SERIALIZED_NAME_FIELD_SELECTOR) + @jakarta.annotation.Nullable private V1FieldSelectorAttributes fieldSelector; public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) + @jakarta.annotation.Nullable private String group; public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) + @jakarta.annotation.Nullable private V1LabelSelectorAttributes labelSelector; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) + @jakarta.annotation.Nullable private String namespace; public static final String SERIALIZED_NAME_RESOURCE = "resource"; @SerializedName(SERIALIZED_NAME_RESOURCE) + @jakarta.annotation.Nullable private String resource; public static final String SERIALIZED_NAME_SUBRESOURCE = "subresource"; @SerializedName(SERIALIZED_NAME_SUBRESOURCE) + @jakarta.annotation.Nullable private String subresource; public static final String SERIALIZED_NAME_VERB = "verb"; @SerializedName(SERIALIZED_NAME_VERB) + @jakarta.annotation.Nullable private String verb; public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) + @jakarta.annotation.Nullable private String version; public V1ResourceAttributes() { } - public V1ResourceAttributes fieldSelector(V1FieldSelectorAttributes fieldSelector) { + public V1ResourceAttributes fieldSelector(@jakarta.annotation.Nullable V1FieldSelectorAttributes fieldSelector) { this.fieldSelector = fieldSelector; return this; } - /** + /** * Get fieldSelector * @return fieldSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1FieldSelectorAttributes getFieldSelector() { return fieldSelector; } - public void setFieldSelector(V1FieldSelectorAttributes fieldSelector) { + public void setFieldSelector(@jakarta.annotation.Nullable V1FieldSelectorAttributes fieldSelector) { this.fieldSelector = fieldSelector; } - public V1ResourceAttributes group(String group) { + public V1ResourceAttributes group(@jakarta.annotation.Nullable String group) { this.group = group; return this; } - /** + /** * Group is the API Group of the Resource. \"*\" means all. * @return group - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Group is the API Group of the Resource. \"*\" means all.") public String getGroup() { return group; } - public void setGroup(String group) { + public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; } - public V1ResourceAttributes labelSelector(V1LabelSelectorAttributes labelSelector) { + public V1ResourceAttributes labelSelector(@jakarta.annotation.Nullable V1LabelSelectorAttributes labelSelector) { this.labelSelector = labelSelector; return this; } - /** + /** * Get labelSelector * @return labelSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LabelSelectorAttributes getLabelSelector() { return labelSelector; } - public void setLabelSelector(V1LabelSelectorAttributes labelSelector) { + public void setLabelSelector(@jakarta.annotation.Nullable V1LabelSelectorAttributes labelSelector) { this.labelSelector = labelSelector; } - public V1ResourceAttributes name(String name) { + public V1ResourceAttributes name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public V1ResourceAttributes namespace(String namespace) { + public V1ResourceAttributes namespace(@jakarta.annotation.Nullable String namespace) { this.namespace = namespace; return this; } - /** + /** * Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview * @return namespace - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview") public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { + public void setNamespace(@jakarta.annotation.Nullable String namespace) { this.namespace = namespace; } - public V1ResourceAttributes resource(String resource) { + public V1ResourceAttributes resource(@jakarta.annotation.Nullable String resource) { this.resource = resource; return this; } - /** + /** * Resource is one of the existing resource types. \"*\" means all. * @return resource - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Resource is one of the existing resource types. \"*\" means all.") public String getResource() { return resource; } - public void setResource(String resource) { + public void setResource(@jakarta.annotation.Nullable String resource) { this.resource = resource; } - public V1ResourceAttributes subresource(String subresource) { + public V1ResourceAttributes subresource(@jakarta.annotation.Nullable String subresource) { this.subresource = subresource; return this; } - /** + /** * Subresource is one of the existing resource types. \"\" means none. * @return subresource - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Subresource is one of the existing resource types. \"\" means none.") public String getSubresource() { return subresource; } - public void setSubresource(String subresource) { + public void setSubresource(@jakarta.annotation.Nullable String subresource) { this.subresource = subresource; } - public V1ResourceAttributes verb(String verb) { + public V1ResourceAttributes verb(@jakarta.annotation.Nullable String verb) { this.verb = verb; return this; } - /** + /** * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. * @return verb - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.") public String getVerb() { return verb; } - public void setVerb(String verb) { + public void setVerb(@jakarta.annotation.Nullable String verb) { this.verb = verb; } - public V1ResourceAttributes version(String version) { + public V1ResourceAttributes version(@jakarta.annotation.Nullable String version) { this.version = version; return this; } - /** + /** * Version is the API Version of the Resource. \"*\" means all. * @return version - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Version is the API Version of the Resource. \"*\" means all.") public String getVersion() { return version; } - public void setVersion(String version) { + public void setVersion(@jakarta.annotation.Nullable String version) { this.version = version; } @@ -349,12 +357,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ResourceAttributes - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ResourceAttributes + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -430,22 +438,22 @@ public V1ResourceAttributes read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ResourceAttributes given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ResourceAttributes - * @throws IOException if the JSON string is invalid with respect to V1ResourceAttributes - */ + /** + * Create an instance of V1ResourceAttributes given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ResourceAttributes + * @throws IOException if the JSON string is invalid with respect to V1ResourceAttributes + */ public static V1ResourceAttributes fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ResourceAttributes.class); } - /** - * Convert an instance of V1ResourceAttributes to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ResourceAttributes to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaim.java index eec002d4cb..a806fb638f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaim.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * ResourceClaim references one entry in PodSpec.ResourceClaims. */ @ApiModel(description = "ResourceClaim references one entry in PodSpec.ResourceClaims.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ResourceClaim { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_REQUEST = "request"; @SerializedName(SERIALIZED_NAME_REQUEST) + @jakarta.annotation.Nullable private String request; public V1ResourceClaim() { } - public V1ResourceClaim name(String name) { + public V1ResourceClaim name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1ResourceClaim request(String request) { + public V1ResourceClaim request(@jakarta.annotation.Nullable String request) { this.request = request; return this; } - /** + /** * Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request. * @return request - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request.") public String getRequest() { return request; } - public void setRequest(String request) { + public void setRequest(@jakarta.annotation.Nullable String request) { this.request = request; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ResourceClaim - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ResourceClaim + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -224,22 +225,22 @@ public V1ResourceClaim read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ResourceClaim given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ResourceClaim - * @throws IOException if the JSON string is invalid with respect to V1ResourceClaim - */ + /** + * Create an instance of V1ResourceClaim given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ResourceClaim + * @throws IOException if the JSON string is invalid with respect to V1ResourceClaim + */ public static V1ResourceClaim fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ResourceClaim.class); } - /** - * Convert an instance of V1ResourceClaim to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ResourceClaim to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java index 3014c8cb12..bc4a59621b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,79 +51,82 @@ * ResourceFieldSelector represents container resources (cpu, memory) and their output format */ @ApiModel(description = "ResourceFieldSelector represents container resources (cpu, memory) and their output format") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ResourceFieldSelector { public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) + @jakarta.annotation.Nullable private String containerName; public static final String SERIALIZED_NAME_DIVISOR = "divisor"; @SerializedName(SERIALIZED_NAME_DIVISOR) + @jakarta.annotation.Nullable private Quantity divisor; public static final String SERIALIZED_NAME_RESOURCE = "resource"; @SerializedName(SERIALIZED_NAME_RESOURCE) + @jakarta.annotation.Nonnull private String resource; public V1ResourceFieldSelector() { } - public V1ResourceFieldSelector containerName(String containerName) { + public V1ResourceFieldSelector containerName(@jakarta.annotation.Nullable String containerName) { this.containerName = containerName; return this; } - /** + /** * Container name: required for volumes, optional for env vars * @return containerName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Container name: required for volumes, optional for env vars") public String getContainerName() { return containerName; } - public void setContainerName(String containerName) { + public void setContainerName(@jakarta.annotation.Nullable String containerName) { this.containerName = containerName; } - public V1ResourceFieldSelector divisor(Quantity divisor) { + public V1ResourceFieldSelector divisor(@jakarta.annotation.Nullable Quantity divisor) { this.divisor = divisor; return this; } - /** + /** * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return divisor - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") public Quantity getDivisor() { return divisor; } - public void setDivisor(Quantity divisor) { + public void setDivisor(@jakarta.annotation.Nullable Quantity divisor) { this.divisor = divisor; } - public V1ResourceFieldSelector resource(String resource) { + public V1ResourceFieldSelector resource(@jakarta.annotation.Nonnull String resource) { this.resource = resource; return this; } - /** + /** * Required: resource to select * @return resource - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Required: resource to select") public String getResource() { return resource; } - public void setResource(String resource) { + public void setResource(@jakarta.annotation.Nonnull String resource) { this.resource = resource; } @@ -187,12 +189,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("resource"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ResourceFieldSelector - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ResourceFieldSelector + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceFieldSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -255,22 +257,22 @@ public V1ResourceFieldSelector read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ResourceFieldSelector given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ResourceFieldSelector - * @throws IOException if the JSON string is invalid with respect to V1ResourceFieldSelector - */ + /** + * Create an instance of V1ResourceFieldSelector given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ResourceFieldSelector + * @throws IOException if the JSON string is invalid with respect to V1ResourceFieldSelector + */ public static V1ResourceFieldSelector fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ResourceFieldSelector.class); } - /** - * Convert an instance of V1ResourceFieldSelector to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ResourceFieldSelector to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java index 42e988fa37..084e544246 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680. */ @ApiModel(description = "ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ResourceHealth { public static final String SERIALIZED_NAME_HEALTH = "health"; @SerializedName(SERIALIZED_NAME_HEALTH) + @jakarta.annotation.Nullable private String health; public static final String SERIALIZED_NAME_RESOURCE_I_D = "resourceID"; @SerializedName(SERIALIZED_NAME_RESOURCE_I_D) + @jakarta.annotation.Nonnull private String resourceID; public V1ResourceHealth() { } - public V1ResourceHealth health(String health) { + public V1ResourceHealth health(@jakarta.annotation.Nullable String health) { this.health = health; return this; } - /** + /** * Health of the resource. can be one of: - Healthy: operates as normal - Unhealthy: reported unhealthy. We consider this a temporary health issue since we do not have a mechanism today to distinguish temporary and permanent issues. - Unknown: The status cannot be determined. For example, Device Plugin got unregistered and hasn't been re-registered since. In future we may want to introduce the PermanentlyUnhealthy Status. * @return health - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Health of the resource. can be one of: - Healthy: operates as normal - Unhealthy: reported unhealthy. We consider this a temporary health issue since we do not have a mechanism today to distinguish temporary and permanent issues. - Unknown: The status cannot be determined. For example, Device Plugin got unregistered and hasn't been re-registered since. In future we may want to introduce the PermanentlyUnhealthy Status.") public String getHealth() { return health; } - public void setHealth(String health) { + public void setHealth(@jakarta.annotation.Nullable String health) { this.health = health; } - public V1ResourceHealth resourceID(String resourceID) { + public V1ResourceHealth resourceID(@jakarta.annotation.Nonnull String resourceID) { this.resourceID = resourceID; return this; } - /** + /** * ResourceID is the unique identifier of the resource. See the ResourceID type for more information. * @return resourceID - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "ResourceID is the unique identifier of the resource. See the ResourceID type for more information.") public String getResourceID() { return resourceID; } - public void setResourceID(String resourceID) { + public void setResourceID(@jakarta.annotation.Nonnull String resourceID) { this.resourceID = resourceID; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("resourceID"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ResourceHealth - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ResourceHealth + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceHealth.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -224,22 +225,22 @@ public V1ResourceHealth read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ResourceHealth given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ResourceHealth - * @throws IOException if the JSON string is invalid with respect to V1ResourceHealth - */ + /** + * Create an instance of V1ResourceHealth given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ResourceHealth + * @throws IOException if the JSON string is invalid with respect to V1ResourceHealth + */ public static V1ResourceHealth fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ResourceHealth.class); } - /** - * Convert an instance of V1ResourceHealth to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ResourceHealth to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java index 6da800390f..1152fc44e6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,32 +52,37 @@ * ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace. */ @ApiModel(description = "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ResourcePolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) + @jakarta.annotation.Nonnull private List apiGroups = new ArrayList<>(); public static final String SERIALIZED_NAME_CLUSTER_SCOPE = "clusterScope"; @SerializedName(SERIALIZED_NAME_CLUSTER_SCOPE) + @jakarta.annotation.Nullable private Boolean clusterScope; public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) + @jakarta.annotation.Nullable private List namespaces = new ArrayList<>(); public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) + @jakarta.annotation.Nonnull private List resources = new ArrayList<>(); public static final String SERIALIZED_NAME_VERBS = "verbs"; @SerializedName(SERIALIZED_NAME_VERBS) + @jakarta.annotation.Nonnull private List verbs = new ArrayList<>(); public V1ResourcePolicyRule() { } - public V1ResourcePolicyRule apiGroups(List apiGroups) { + public V1ResourcePolicyRule apiGroups(@jakarta.annotation.Nonnull List apiGroups) { this.apiGroups = apiGroups; return this; } @@ -91,42 +95,42 @@ public V1ResourcePolicyRule addApiGroupsItem(String apiGroupsItem) { return this; } - /** + /** * `apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required. * @return apiGroups - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.") public List getApiGroups() { return apiGroups; } - public void setApiGroups(List apiGroups) { + public void setApiGroups(@jakarta.annotation.Nonnull List apiGroups) { this.apiGroups = apiGroups; } - public V1ResourcePolicyRule clusterScope(Boolean clusterScope) { + public V1ResourcePolicyRule clusterScope(@jakarta.annotation.Nullable Boolean clusterScope) { this.clusterScope = clusterScope; return this; } - /** + /** * `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. * @return clusterScope - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.") public Boolean getClusterScope() { return clusterScope; } - public void setClusterScope(Boolean clusterScope) { + public void setClusterScope(@jakarta.annotation.Nullable Boolean clusterScope) { this.clusterScope = clusterScope; } - public V1ResourcePolicyRule namespaces(List namespaces) { + public V1ResourcePolicyRule namespaces(@jakarta.annotation.Nullable List namespaces) { this.namespaces = namespaces; return this; } @@ -139,22 +143,22 @@ public V1ResourcePolicyRule addNamespacesItem(String namespacesItem) { return this; } - /** + /** * `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. * @return namespaces - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.") public List getNamespaces() { return namespaces; } - public void setNamespaces(List namespaces) { + public void setNamespaces(@jakarta.annotation.Nullable List namespaces) { this.namespaces = namespaces; } - public V1ResourcePolicyRule resources(List resources) { + public V1ResourcePolicyRule resources(@jakarta.annotation.Nonnull List resources) { this.resources = resources; return this; } @@ -167,22 +171,22 @@ public V1ResourcePolicyRule addResourcesItem(String resourcesItem) { return this; } - /** + /** * `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required. * @return resources - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.") public List getResources() { return resources; } - public void setResources(List resources) { + public void setResources(@jakarta.annotation.Nonnull List resources) { this.resources = resources; } - public V1ResourcePolicyRule verbs(List verbs) { + public V1ResourcePolicyRule verbs(@jakarta.annotation.Nonnull List verbs) { this.verbs = verbs; return this; } @@ -195,17 +199,17 @@ public V1ResourcePolicyRule addVerbsItem(String verbsItem) { return this; } - /** + /** * `verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required. * @return verbs - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.") public List getVerbs() { return verbs; } - public void setVerbs(List verbs) { + public void setVerbs(@jakarta.annotation.Nonnull List verbs) { this.verbs = verbs; } @@ -276,12 +280,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("verbs"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ResourcePolicyRule - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ResourcePolicyRule + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourcePolicyRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -357,22 +361,22 @@ public V1ResourcePolicyRule read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ResourcePolicyRule given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ResourcePolicyRule - * @throws IOException if the JSON string is invalid with respect to V1ResourcePolicyRule - */ + /** + * Create an instance of V1ResourcePolicyRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ResourcePolicyRule + * @throws IOException if the JSON string is invalid with respect to V1ResourcePolicyRule + */ public static V1ResourcePolicyRule fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ResourcePolicyRule.class); } - /** - * Convert an instance of V1ResourcePolicyRule to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ResourcePolicyRule to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java index f54762c471..f5002c80b4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * ResourceQuota sets aggregate quota restrictions enforced per namespace */ @ApiModel(description = "ResourceQuota sets aggregate quota restrictions enforced per namespace") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ResourceQuota implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1ResourceQuotaSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1ResourceQuotaStatus status; public V1ResourceQuota() { } - public V1ResourceQuota apiVersion(String apiVersion) { + public V1ResourceQuota apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ResourceQuota kind(String kind) { + public V1ResourceQuota kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ResourceQuota metadata(V1ObjectMeta metadata) { + public V1ResourceQuota metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1ResourceQuota spec(V1ResourceQuotaSpec spec) { + public V1ResourceQuota spec(@jakarta.annotation.Nullable V1ResourceQuotaSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ResourceQuotaSpec getSpec() { return spec; } - public void setSpec(V1ResourceQuotaSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1ResourceQuotaSpec spec) { this.spec = spec; } - public V1ResourceQuota status(V1ResourceQuotaStatus status) { + public V1ResourceQuota status(@jakarta.annotation.Nullable V1ResourceQuotaStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ResourceQuotaStatus getStatus() { return status; } - public void setStatus(V1ResourceQuotaStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1ResourceQuotaStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ResourceQuota - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ResourceQuota + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceQuota.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1ResourceQuota read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ResourceQuota given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ResourceQuota - * @throws IOException if the JSON string is invalid with respect to V1ResourceQuota - */ + /** + * Create an instance of V1ResourceQuota given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ResourceQuota + * @throws IOException if the JSON string is invalid with respect to V1ResourceQuota + */ public static V1ResourceQuota fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ResourceQuota.class); } - /** - * Convert an instance of V1ResourceQuota to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ResourceQuota to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java index b5f0427759..2d04c36e88 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * ResourceQuotaList is a list of ResourceQuota items. */ @ApiModel(description = "ResourceQuotaList is a list of ResourceQuota items.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ResourceQuotaList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1ResourceQuotaList() { } - public V1ResourceQuotaList apiVersion(String apiVersion) { + public V1ResourceQuotaList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ResourceQuotaList items(List items) { + public V1ResourceQuotaList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1ResourceQuotaList addItemsItem(V1ResourceQuota itemsItem) { return this; } - /** + /** * Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1ResourceQuotaList kind(String kind) { + public V1ResourceQuotaList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ResourceQuotaList metadata(V1ListMeta metadata) { + public V1ResourceQuotaList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ResourceQuotaList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ResourceQuotaList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceQuotaList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1ResourceQuotaList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ResourceQuotaList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ResourceQuotaList - * @throws IOException if the JSON string is invalid with respect to V1ResourceQuotaList - */ + /** + * Create an instance of V1ResourceQuotaList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ResourceQuotaList + * @throws IOException if the JSON string is invalid with respect to V1ResourceQuotaList + */ public static V1ResourceQuotaList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ResourceQuotaList.class); } - /** - * Convert an instance of V1ResourceQuotaList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ResourceQuotaList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java index 93533180d3..aa1d1584af 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java @@ -44,7 +44,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -57,24 +56,27 @@ * ResourceQuotaSpec defines the desired hard limits to enforce for Quota. */ @ApiModel(description = "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ResourceQuotaSpec { public static final String SERIALIZED_NAME_HARD = "hard"; @SerializedName(SERIALIZED_NAME_HARD) + @jakarta.annotation.Nullable private Map hard = new HashMap<>(); public static final String SERIALIZED_NAME_SCOPE_SELECTOR = "scopeSelector"; @SerializedName(SERIALIZED_NAME_SCOPE_SELECTOR) + @jakarta.annotation.Nullable private V1ScopeSelector scopeSelector; public static final String SERIALIZED_NAME_SCOPES = "scopes"; @SerializedName(SERIALIZED_NAME_SCOPES) + @jakarta.annotation.Nullable private List scopes = new ArrayList<>(); public V1ResourceQuotaSpec() { } - public V1ResourceQuotaSpec hard(Map hard) { + public V1ResourceQuotaSpec hard(@jakarta.annotation.Nullable Map hard) { this.hard = hard; return this; } @@ -87,42 +89,42 @@ public V1ResourceQuotaSpec putHardItem(String key, Quantity hardItem) { return this; } - /** + /** * hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ * @return hard - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/") public Map getHard() { return hard; } - public void setHard(Map hard) { + public void setHard(@jakarta.annotation.Nullable Map hard) { this.hard = hard; } - public V1ResourceQuotaSpec scopeSelector(V1ScopeSelector scopeSelector) { + public V1ResourceQuotaSpec scopeSelector(@jakarta.annotation.Nullable V1ScopeSelector scopeSelector) { this.scopeSelector = scopeSelector; return this; } - /** + /** * Get scopeSelector * @return scopeSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ScopeSelector getScopeSelector() { return scopeSelector; } - public void setScopeSelector(V1ScopeSelector scopeSelector) { + public void setScopeSelector(@jakarta.annotation.Nullable V1ScopeSelector scopeSelector) { this.scopeSelector = scopeSelector; } - public V1ResourceQuotaSpec scopes(List scopes) { + public V1ResourceQuotaSpec scopes(@jakarta.annotation.Nullable List scopes) { this.scopes = scopes; return this; } @@ -135,17 +137,17 @@ public V1ResourceQuotaSpec addScopesItem(String scopesItem) { return this; } - /** + /** * A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. * @return scopes - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.") public List getScopes() { return scopes; } - public void setScopes(List scopes) { + public void setScopes(@jakarta.annotation.Nullable List scopes) { this.scopes = scopes; } @@ -207,12 +209,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ResourceQuotaSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ResourceQuotaSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceQuotaSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -267,22 +269,22 @@ public V1ResourceQuotaSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ResourceQuotaSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ResourceQuotaSpec - * @throws IOException if the JSON string is invalid with respect to V1ResourceQuotaSpec - */ + /** + * Create an instance of V1ResourceQuotaSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ResourceQuotaSpec + * @throws IOException if the JSON string is invalid with respect to V1ResourceQuotaSpec + */ public static V1ResourceQuotaSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ResourceQuotaSpec.class); } - /** - * Convert an instance of V1ResourceQuotaSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ResourceQuotaSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java index c342fccf15..b967fc024e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,20 +53,22 @@ * ResourceQuotaStatus defines the enforced hard limits and observed use. */ @ApiModel(description = "ResourceQuotaStatus defines the enforced hard limits and observed use.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ResourceQuotaStatus { public static final String SERIALIZED_NAME_HARD = "hard"; @SerializedName(SERIALIZED_NAME_HARD) + @jakarta.annotation.Nullable private Map hard = new HashMap<>(); public static final String SERIALIZED_NAME_USED = "used"; @SerializedName(SERIALIZED_NAME_USED) + @jakarta.annotation.Nullable private Map used = new HashMap<>(); public V1ResourceQuotaStatus() { } - public V1ResourceQuotaStatus hard(Map hard) { + public V1ResourceQuotaStatus hard(@jakarta.annotation.Nullable Map hard) { this.hard = hard; return this; } @@ -80,22 +81,22 @@ public V1ResourceQuotaStatus putHardItem(String key, Quantity hardItem) { return this; } - /** + /** * Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ * @return hard - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/") public Map getHard() { return hard; } - public void setHard(Map hard) { + public void setHard(@jakarta.annotation.Nullable Map hard) { this.hard = hard; } - public V1ResourceQuotaStatus used(Map used) { + public V1ResourceQuotaStatus used(@jakarta.annotation.Nullable Map used) { this.used = used; return this; } @@ -108,17 +109,17 @@ public V1ResourceQuotaStatus putUsedItem(String key, Quantity usedItem) { return this; } - /** + /** * Used is the current observed total usage of the resource in the namespace. * @return used - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Used is the current observed total usage of the resource in the namespace.") public Map getUsed() { return used; } - public void setUsed(Map used) { + public void setUsed(@jakarta.annotation.Nullable Map used) { this.used = used; } @@ -177,12 +178,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ResourceQuotaStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ResourceQuotaStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceQuotaStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -229,22 +230,22 @@ public V1ResourceQuotaStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ResourceQuotaStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ResourceQuotaStatus - * @throws IOException if the JSON string is invalid with respect to V1ResourceQuotaStatus - */ + /** + * Create an instance of V1ResourceQuotaStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ResourceQuotaStatus + * @throws IOException if the JSON string is invalid with respect to V1ResourceQuotaStatus + */ public static V1ResourceQuotaStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ResourceQuotaStatus.class); } - /** - * Convert an instance of V1ResourceQuotaStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ResourceQuotaStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java index 2b429970d1..1cf3efba53 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java @@ -44,7 +44,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -57,24 +56,27 @@ * ResourceRequirements describes the compute resource requirements. */ @ApiModel(description = "ResourceRequirements describes the compute resource requirements.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ResourceRequirements { public static final String SERIALIZED_NAME_CLAIMS = "claims"; @SerializedName(SERIALIZED_NAME_CLAIMS) + @jakarta.annotation.Nullable private List claims = new ArrayList<>(); public static final String SERIALIZED_NAME_LIMITS = "limits"; @SerializedName(SERIALIZED_NAME_LIMITS) + @jakarta.annotation.Nullable private Map limits = new HashMap<>(); public static final String SERIALIZED_NAME_REQUESTS = "requests"; @SerializedName(SERIALIZED_NAME_REQUESTS) + @jakarta.annotation.Nullable private Map requests = new HashMap<>(); public V1ResourceRequirements() { } - public V1ResourceRequirements claims(List claims) { + public V1ResourceRequirements claims(@jakarta.annotation.Nullable List claims) { this.claims = claims; return this; } @@ -87,22 +89,22 @@ public V1ResourceRequirements addClaimsItem(V1ResourceClaim claimsItem) { return this; } - /** + /** * Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. * @return claims - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers.") public List getClaims() { return claims; } - public void setClaims(List claims) { + public void setClaims(@jakarta.annotation.Nullable List claims) { this.claims = claims; } - public V1ResourceRequirements limits(Map limits) { + public V1ResourceRequirements limits(@jakarta.annotation.Nullable Map limits) { this.limits = limits; return this; } @@ -115,22 +117,22 @@ public V1ResourceRequirements putLimitsItem(String key, Quantity limitsItem) { return this; } - /** + /** * Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ * @return limits - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/") public Map getLimits() { return limits; } - public void setLimits(Map limits) { + public void setLimits(@jakarta.annotation.Nullable Map limits) { this.limits = limits; } - public V1ResourceRequirements requests(Map requests) { + public V1ResourceRequirements requests(@jakarta.annotation.Nullable Map requests) { this.requests = requests; return this; } @@ -143,17 +145,17 @@ public V1ResourceRequirements putRequestsItem(String key, Quantity requestsItem) return this; } - /** + /** * Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ * @return requests - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/") public Map getRequests() { return requests; } - public void setRequests(Map requests) { + public void setRequests(@jakarta.annotation.Nullable Map requests) { this.requests = requests; } @@ -215,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ResourceRequirements - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ResourceRequirements + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceRequirements.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -281,22 +283,22 @@ public V1ResourceRequirements read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ResourceRequirements given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ResourceRequirements - * @throws IOException if the JSON string is invalid with respect to V1ResourceRequirements - */ + /** + * Create an instance of V1ResourceRequirements given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ResourceRequirements + * @throws IOException if the JSON string is invalid with respect to V1ResourceRequirements + */ public static V1ResourceRequirements fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ResourceRequirements.class); } - /** - * Convert an instance of V1ResourceRequirements to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ResourceRequirements to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java index 2f0a89bc82..b2d6bc38a1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,28 +52,32 @@ * ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. */ @ApiModel(description = "ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ResourceRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) + @jakarta.annotation.Nullable private List apiGroups = new ArrayList<>(); public static final String SERIALIZED_NAME_RESOURCE_NAMES = "resourceNames"; @SerializedName(SERIALIZED_NAME_RESOURCE_NAMES) + @jakarta.annotation.Nullable private List resourceNames = new ArrayList<>(); public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) + @jakarta.annotation.Nullable private List resources = new ArrayList<>(); public static final String SERIALIZED_NAME_VERBS = "verbs"; @SerializedName(SERIALIZED_NAME_VERBS) + @jakarta.annotation.Nonnull private List verbs = new ArrayList<>(); public V1ResourceRule() { } - public V1ResourceRule apiGroups(List apiGroups) { + public V1ResourceRule apiGroups(@jakarta.annotation.Nullable List apiGroups) { this.apiGroups = apiGroups; return this; } @@ -87,22 +90,22 @@ public V1ResourceRule addApiGroupsItem(String apiGroupsItem) { return this; } - /** + /** * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. * @return apiGroups - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all.") public List getApiGroups() { return apiGroups; } - public void setApiGroups(List apiGroups) { + public void setApiGroups(@jakarta.annotation.Nullable List apiGroups) { this.apiGroups = apiGroups; } - public V1ResourceRule resourceNames(List resourceNames) { + public V1ResourceRule resourceNames(@jakarta.annotation.Nullable List resourceNames) { this.resourceNames = resourceNames; return this; } @@ -115,22 +118,22 @@ public V1ResourceRule addResourceNamesItem(String resourceNamesItem) { return this; } - /** + /** * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. * @return resourceNames - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.") public List getResourceNames() { return resourceNames; } - public void setResourceNames(List resourceNames) { + public void setResourceNames(@jakarta.annotation.Nullable List resourceNames) { this.resourceNames = resourceNames; } - public V1ResourceRule resources(List resources) { + public V1ResourceRule resources(@jakarta.annotation.Nullable List resources) { this.resources = resources; return this; } @@ -143,22 +146,22 @@ public V1ResourceRule addResourcesItem(String resourcesItem) { return this; } - /** + /** * Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*_/foo\" represents the subresource 'foo' for all resources in the specified apiGroups. * @return resources - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*_/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.") public List getResources() { return resources; } - public void setResources(List resources) { + public void setResources(@jakarta.annotation.Nullable List resources) { this.resources = resources; } - public V1ResourceRule verbs(List verbs) { + public V1ResourceRule verbs(@jakarta.annotation.Nonnull List verbs) { this.verbs = verbs; return this; } @@ -171,17 +174,17 @@ public V1ResourceRule addVerbsItem(String verbsItem) { return this; } - /** + /** * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all. * @return verbs - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.") public List getVerbs() { return verbs; } - public void setVerbs(List verbs) { + public void setVerbs(@jakarta.annotation.Nonnull List verbs) { this.verbs = verbs; } @@ -247,12 +250,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("verbs"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ResourceRule - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ResourceRule + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -324,22 +327,22 @@ public V1ResourceRule read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ResourceRule given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ResourceRule - * @throws IOException if the JSON string is invalid with respect to V1ResourceRule - */ + /** + * Create an instance of V1ResourceRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ResourceRule + * @throws IOException if the JSON string is invalid with respect to V1ResourceRule + */ public static V1ResourceRule fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ResourceRule.class); } - /** - * Convert an instance of V1ResourceRule to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ResourceRule to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java index 79b406fdc5..ce9314bf95 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,40 +53,42 @@ * ResourceStatus represents the status of a single resource allocated to a Pod. */ @ApiModel(description = "ResourceStatus represents the status of a single resource allocated to a Pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ResourceStatus { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) + @jakarta.annotation.Nullable private List resources = new ArrayList<>(); public V1ResourceStatus() { } - public V1ResourceStatus name(String name) { + public V1ResourceStatus name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:<claim_name>/<request>\". When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:/\". When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1ResourceStatus resources(List resources) { + public V1ResourceStatus resources(@jakarta.annotation.Nullable List resources) { this.resources = resources; return this; } @@ -100,17 +101,17 @@ public V1ResourceStatus addResourcesItem(V1ResourceHealth resourcesItem) { return this; } - /** + /** * List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. * @return resources - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases.") public List getResources() { return resources; } - public void setResources(List resources) { + public void setResources(@jakarta.annotation.Nullable List resources) { this.resources = resources; } @@ -170,12 +171,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ResourceStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ResourceStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -246,22 +247,22 @@ public V1ResourceStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ResourceStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ResourceStatus - * @throws IOException if the JSON string is invalid with respect to V1ResourceStatus - */ + /** + * Create an instance of V1ResourceStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ResourceStatus + * @throws IOException if the JSON string is invalid with respect to V1ResourceStatus + */ public static V1ResourceStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ResourceStatus.class); } - /** - * Convert an instance of V1ResourceStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ResourceStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Role.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Role.java index cb3d48f16e..1a1e1a4799 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Role.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Role.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,88 +54,92 @@ * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. */ @ApiModel(description = "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Role implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) + @jakarta.annotation.Nullable private List rules = new ArrayList<>(); public V1Role() { } - public V1Role apiVersion(String apiVersion) { + public V1Role apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1Role kind(String kind) { + public V1Role kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1Role metadata(V1ObjectMeta metadata) { + public V1Role metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1Role rules(List rules) { + public V1Role rules(@jakarta.annotation.Nullable List rules) { this.rules = rules; return this; } @@ -149,17 +152,17 @@ public V1Role addRulesItem(V1PolicyRule rulesItem) { return this; } - /** + /** * Rules holds all the PolicyRules for this Role * @return rules - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Rules holds all the PolicyRules for this Role") public List getRules() { return rules; } - public void setRules(List rules) { + public void setRules(@jakarta.annotation.Nullable List rules) { this.rules = rules; } @@ -224,12 +227,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Role - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Role + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Role.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -300,22 +303,22 @@ public V1Role read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Role given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Role - * @throws IOException if the JSON string is invalid with respect to V1Role - */ + /** + * Create an instance of V1Role given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Role + * @throws IOException if the JSON string is invalid with respect to V1Role + */ public static V1Role fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Role.class); } - /** - * Convert an instance of V1Role to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Role to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java index 03857f5d51..2b44f0b3ab 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java @@ -43,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -56,112 +55,117 @@ * RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. */ @ApiModel(description = "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1RoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_ROLE_REF = "roleRef"; @SerializedName(SERIALIZED_NAME_ROLE_REF) + @jakarta.annotation.Nonnull private V1RoleRef roleRef; public static final String SERIALIZED_NAME_SUBJECTS = "subjects"; @SerializedName(SERIALIZED_NAME_SUBJECTS) + @jakarta.annotation.Nullable private List subjects = new ArrayList<>(); public V1RoleBinding() { } - public V1RoleBinding apiVersion(String apiVersion) { + public V1RoleBinding apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1RoleBinding kind(String kind) { + public V1RoleBinding kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1RoleBinding metadata(V1ObjectMeta metadata) { + public V1RoleBinding metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1RoleBinding roleRef(V1RoleRef roleRef) { + public V1RoleBinding roleRef(@jakarta.annotation.Nonnull V1RoleRef roleRef) { this.roleRef = roleRef; return this; } - /** + /** * Get roleRef * @return roleRef - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1RoleRef getRoleRef() { return roleRef; } - public void setRoleRef(V1RoleRef roleRef) { + public void setRoleRef(@jakarta.annotation.Nonnull V1RoleRef roleRef) { this.roleRef = roleRef; } - public V1RoleBinding subjects(List subjects) { + public V1RoleBinding subjects(@jakarta.annotation.Nullable List subjects) { this.subjects = subjects; return this; } @@ -174,17 +178,17 @@ public V1RoleBinding addSubjectsItem(RbacV1Subject subjectsItem) { return this; } - /** + /** * Subjects holds references to the objects the role applies to. * @return subjects - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Subjects holds references to the objects the role applies to.") public List getSubjects() { return subjects; } - public void setSubjects(List subjects) { + public void setSubjects(@jakarta.annotation.Nullable List subjects) { this.subjects = subjects; } @@ -253,12 +257,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("roleRef"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1RoleBinding - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1RoleBinding + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RoleBinding.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -338,22 +342,22 @@ public V1RoleBinding read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1RoleBinding given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1RoleBinding - * @throws IOException if the JSON string is invalid with respect to V1RoleBinding - */ + /** + * Create an instance of V1RoleBinding given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RoleBinding + * @throws IOException if the JSON string is invalid with respect to V1RoleBinding + */ public static V1RoleBinding fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1RoleBinding.class); } - /** - * Convert an instance of V1RoleBinding to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1RoleBinding to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingList.java index 1312fa6e1e..bad39080bb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * RoleBindingList is a collection of RoleBindings */ @ApiModel(description = "RoleBindingList is a collection of RoleBindings") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1RoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1RoleBindingList() { } - public V1RoleBindingList apiVersion(String apiVersion) { + public V1RoleBindingList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1RoleBindingList items(List items) { + public V1RoleBindingList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1RoleBindingList addItemsItem(V1RoleBinding itemsItem) { return this; } - /** + /** * Items is a list of RoleBindings * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items is a list of RoleBindings") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1RoleBindingList kind(String kind) { + public V1RoleBindingList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1RoleBindingList metadata(V1ListMeta metadata) { + public V1RoleBindingList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1RoleBindingList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1RoleBindingList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RoleBindingList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1RoleBindingList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1RoleBindingList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1RoleBindingList - * @throws IOException if the JSON string is invalid with respect to V1RoleBindingList - */ + /** + * Create an instance of V1RoleBindingList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RoleBindingList + * @throws IOException if the JSON string is invalid with respect to V1RoleBindingList + */ public static V1RoleBindingList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1RoleBindingList.class); } - /** - * Convert an instance of V1RoleBindingList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1RoleBindingList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleList.java index d62b395a58..5cec637929 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * RoleList is a collection of Roles */ @ApiModel(description = "RoleList is a collection of Roles") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1RoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1RoleList() { } - public V1RoleList apiVersion(String apiVersion) { + public V1RoleList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1RoleList items(List items) { + public V1RoleList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1RoleList addItemsItem(V1Role itemsItem) { return this; } - /** + /** * Items is a list of Roles * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items is a list of Roles") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1RoleList kind(String kind) { + public V1RoleList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1RoleList metadata(V1ListMeta metadata) { + public V1RoleList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1RoleList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1RoleList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RoleList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1RoleList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1RoleList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1RoleList - * @throws IOException if the JSON string is invalid with respect to V1RoleList - */ + /** + * Create an instance of V1RoleList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RoleList + * @throws IOException if the JSON string is invalid with respect to V1RoleList + */ public static V1RoleList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1RoleList.class); } - /** - * Convert an instance of V1RoleList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1RoleList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleRef.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleRef.java index a37b367d7c..84f974f567 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleRef.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,79 +50,82 @@ * RoleRef contains information that points to the role being used */ @ApiModel(description = "RoleRef contains information that points to the role being used") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1RoleRef { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) + @jakarta.annotation.Nonnull private String apiGroup; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nonnull private String kind; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public V1RoleRef() { } - public V1RoleRef apiGroup(String apiGroup) { + public V1RoleRef apiGroup(@jakarta.annotation.Nonnull String apiGroup) { this.apiGroup = apiGroup; return this; } - /** + /** * APIGroup is the group for the resource being referenced * @return apiGroup - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "APIGroup is the group for the resource being referenced") public String getApiGroup() { return apiGroup; } - public void setApiGroup(String apiGroup) { + public void setApiGroup(@jakarta.annotation.Nonnull String apiGroup) { this.apiGroup = apiGroup; } - public V1RoleRef kind(String kind) { + public V1RoleRef kind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; return this; } - /** + /** * Kind is the type of resource being referenced * @return kind - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Kind is the type of resource being referenced") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; } - public V1RoleRef name(String name) { + public V1RoleRef name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name is the name of resource being referenced * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name is the name of resource being referenced") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -188,12 +190,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1RoleRef - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1RoleRef + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RoleRef.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -256,22 +258,22 @@ public V1RoleRef read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1RoleRef given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1RoleRef - * @throws IOException if the JSON string is invalid with respect to V1RoleRef - */ + /** + * Create an instance of V1RoleRef given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RoleRef + * @throws IOException if the JSON string is invalid with respect to V1RoleRef + */ public static V1RoleRef fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1RoleRef.class); } - /** - * Convert an instance of V1RoleRef to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1RoleRef to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSet.java index d1d0724197..f5776f5e12 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSet.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * Spec to control the desired behavior of daemon set rolling update. */ @ApiModel(description = "Spec to control the desired behavior of daemon set rolling update.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1RollingUpdateDaemonSet { public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; @SerializedName(SERIALIZED_NAME_MAX_SURGE) + @jakarta.annotation.Nullable private IntOrString maxSurge; public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) + @jakarta.annotation.Nullable private IntOrString maxUnavailable; public V1RollingUpdateDaemonSet() { } - public V1RollingUpdateDaemonSet maxSurge(IntOrString maxSurge) { + public V1RollingUpdateDaemonSet maxSurge(@jakarta.annotation.Nullable IntOrString maxSurge) { this.maxSurge = maxSurge; return this; } - /** + /** * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return maxSurge - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") public IntOrString getMaxSurge() { return maxSurge; } - public void setMaxSurge(IntOrString maxSurge) { + public void setMaxSurge(@jakarta.annotation.Nullable IntOrString maxSurge) { this.maxSurge = maxSurge; } - public V1RollingUpdateDaemonSet maxUnavailable(IntOrString maxUnavailable) { + public V1RollingUpdateDaemonSet maxUnavailable(@jakarta.annotation.Nullable IntOrString maxUnavailable) { this.maxUnavailable = maxUnavailable; return this; } - /** + /** * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return maxUnavailable - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") public IntOrString getMaxUnavailable() { return maxUnavailable; } - public void setMaxUnavailable(IntOrString maxUnavailable) { + public void setMaxUnavailable(@jakarta.annotation.Nullable IntOrString maxUnavailable) { this.maxUnavailable = maxUnavailable; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1RollingUpdateDaemonSet - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1RollingUpdateDaemonSet + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RollingUpdateDaemonSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -217,22 +218,22 @@ public V1RollingUpdateDaemonSet read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1RollingUpdateDaemonSet given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1RollingUpdateDaemonSet - * @throws IOException if the JSON string is invalid with respect to V1RollingUpdateDaemonSet - */ + /** + * Create an instance of V1RollingUpdateDaemonSet given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RollingUpdateDaemonSet + * @throws IOException if the JSON string is invalid with respect to V1RollingUpdateDaemonSet + */ public static V1RollingUpdateDaemonSet fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1RollingUpdateDaemonSet.class); } - /** - * Convert an instance of V1RollingUpdateDaemonSet to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1RollingUpdateDaemonSet to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeployment.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeployment.java index 0b25cde0e1..85bd8d587b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeployment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeployment.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * Spec to control the desired behavior of rolling update. */ @ApiModel(description = "Spec to control the desired behavior of rolling update.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1RollingUpdateDeployment { public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; @SerializedName(SERIALIZED_NAME_MAX_SURGE) + @jakarta.annotation.Nullable private IntOrString maxSurge; public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) + @jakarta.annotation.Nullable private IntOrString maxUnavailable; public V1RollingUpdateDeployment() { } - public V1RollingUpdateDeployment maxSurge(IntOrString maxSurge) { + public V1RollingUpdateDeployment maxSurge(@jakarta.annotation.Nullable IntOrString maxSurge) { this.maxSurge = maxSurge; return this; } - /** + /** * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return maxSurge - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") public IntOrString getMaxSurge() { return maxSurge; } - public void setMaxSurge(IntOrString maxSurge) { + public void setMaxSurge(@jakarta.annotation.Nullable IntOrString maxSurge) { this.maxSurge = maxSurge; } - public V1RollingUpdateDeployment maxUnavailable(IntOrString maxUnavailable) { + public V1RollingUpdateDeployment maxUnavailable(@jakarta.annotation.Nullable IntOrString maxUnavailable) { this.maxUnavailable = maxUnavailable; return this; } - /** + /** * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return maxUnavailable - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") public IntOrString getMaxUnavailable() { return maxUnavailable; } - public void setMaxUnavailable(IntOrString maxUnavailable) { + public void setMaxUnavailable(@jakarta.annotation.Nullable IntOrString maxUnavailable) { this.maxUnavailable = maxUnavailable; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1RollingUpdateDeployment - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1RollingUpdateDeployment + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RollingUpdateDeployment.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -217,22 +218,22 @@ public V1RollingUpdateDeployment read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1RollingUpdateDeployment given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1RollingUpdateDeployment - * @throws IOException if the JSON string is invalid with respect to V1RollingUpdateDeployment - */ + /** + * Create an instance of V1RollingUpdateDeployment given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RollingUpdateDeployment + * @throws IOException if the JSON string is invalid with respect to V1RollingUpdateDeployment + */ public static V1RollingUpdateDeployment fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1RollingUpdateDeployment.class); } - /** - * Convert an instance of V1RollingUpdateDeployment to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1RollingUpdateDeployment to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategy.java index cfa55b32ea..9eec4d9a5b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategy.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. */ @ApiModel(description = "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1RollingUpdateStatefulSetStrategy { public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) + @jakarta.annotation.Nullable private IntOrString maxUnavailable; public static final String SERIALIZED_NAME_PARTITION = "partition"; @SerializedName(SERIALIZED_NAME_PARTITION) + @jakarta.annotation.Nullable private Integer partition; public V1RollingUpdateStatefulSetStrategy() { } - public V1RollingUpdateStatefulSetStrategy maxUnavailable(IntOrString maxUnavailable) { + public V1RollingUpdateStatefulSetStrategy maxUnavailable(@jakarta.annotation.Nullable IntOrString maxUnavailable) { this.maxUnavailable = maxUnavailable; return this; } - /** + /** * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return maxUnavailable - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") public IntOrString getMaxUnavailable() { return maxUnavailable; } - public void setMaxUnavailable(IntOrString maxUnavailable) { + public void setMaxUnavailable(@jakarta.annotation.Nullable IntOrString maxUnavailable) { this.maxUnavailable = maxUnavailable; } - public V1RollingUpdateStatefulSetStrategy partition(Integer partition) { + public V1RollingUpdateStatefulSetStrategy partition(@jakarta.annotation.Nullable Integer partition) { this.partition = partition; return this; } - /** + /** * Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0. * @return partition - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.") public Integer getPartition() { return partition; } - public void setPartition(Integer partition) { + public void setPartition(@jakarta.annotation.Nullable Integer partition) { this.partition = partition; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1RollingUpdateStatefulSetStrategy - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1RollingUpdateStatefulSetStrategy + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RollingUpdateStatefulSetStrategy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -214,22 +215,22 @@ public V1RollingUpdateStatefulSetStrategy read(JsonReader in) throws IOException } } - /** - * Create an instance of V1RollingUpdateStatefulSetStrategy given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1RollingUpdateStatefulSetStrategy - * @throws IOException if the JSON string is invalid with respect to V1RollingUpdateStatefulSetStrategy - */ + /** + * Create an instance of V1RollingUpdateStatefulSetStrategy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RollingUpdateStatefulSetStrategy + * @throws IOException if the JSON string is invalid with respect to V1RollingUpdateStatefulSetStrategy + */ public static V1RollingUpdateStatefulSetStrategy fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1RollingUpdateStatefulSetStrategy.class); } - /** - * Convert an instance of V1RollingUpdateStatefulSetStrategy to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1RollingUpdateStatefulSetStrategy to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperations.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperations.java index cce2861bda..a3f0891a52 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperations.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperations.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,32 +52,37 @@ * RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid. */ @ApiModel(description = "RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1RuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) + @jakarta.annotation.Nullable private List apiGroups = new ArrayList<>(); public static final String SERIALIZED_NAME_API_VERSIONS = "apiVersions"; @SerializedName(SERIALIZED_NAME_API_VERSIONS) + @jakarta.annotation.Nullable private List apiVersions = new ArrayList<>(); public static final String SERIALIZED_NAME_OPERATIONS = "operations"; @SerializedName(SERIALIZED_NAME_OPERATIONS) + @jakarta.annotation.Nullable private List operations = new ArrayList<>(); public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) + @jakarta.annotation.Nullable private List resources = new ArrayList<>(); public static final String SERIALIZED_NAME_SCOPE = "scope"; @SerializedName(SERIALIZED_NAME_SCOPE) + @jakarta.annotation.Nullable private String scope; public V1RuleWithOperations() { } - public V1RuleWithOperations apiGroups(List apiGroups) { + public V1RuleWithOperations apiGroups(@jakarta.annotation.Nullable List apiGroups) { this.apiGroups = apiGroups; return this; } @@ -91,22 +95,22 @@ public V1RuleWithOperations addApiGroupsItem(String apiGroupsItem) { return this; } - /** + /** * APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. * @return apiGroups - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.") public List getApiGroups() { return apiGroups; } - public void setApiGroups(List apiGroups) { + public void setApiGroups(@jakarta.annotation.Nullable List apiGroups) { this.apiGroups = apiGroups; } - public V1RuleWithOperations apiVersions(List apiVersions) { + public V1RuleWithOperations apiVersions(@jakarta.annotation.Nullable List apiVersions) { this.apiVersions = apiVersions; return this; } @@ -119,22 +123,22 @@ public V1RuleWithOperations addApiVersionsItem(String apiVersionsItem) { return this; } - /** + /** * APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. * @return apiVersions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.") public List getApiVersions() { return apiVersions; } - public void setApiVersions(List apiVersions) { + public void setApiVersions(@jakarta.annotation.Nullable List apiVersions) { this.apiVersions = apiVersions; } - public V1RuleWithOperations operations(List operations) { + public V1RuleWithOperations operations(@jakarta.annotation.Nullable List operations) { this.operations = operations; return this; } @@ -147,22 +151,22 @@ public V1RuleWithOperations addOperationsItem(String operationsItem) { return this; } - /** + /** * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. * @return operations - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.") public List getOperations() { return operations; } - public void setOperations(List operations) { + public void setOperations(@jakarta.annotation.Nullable List operations) { this.operations = operations; } - public V1RuleWithOperations resources(List resources) { + public V1RuleWithOperations resources(@jakarta.annotation.Nullable List resources) { this.resources = resources; return this; } @@ -175,37 +179,37 @@ public V1RuleWithOperations addResourcesItem(String resourcesItem) { return this; } - /** + /** * Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. * @return resources - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.") public List getResources() { return resources; } - public void setResources(List resources) { + public void setResources(@jakarta.annotation.Nullable List resources) { this.resources = resources; } - public V1RuleWithOperations scope(String scope) { + public V1RuleWithOperations scope(@jakarta.annotation.Nullable String scope) { this.scope = scope; return this; } - /** + /** * scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". * @return scope - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".") public String getScope() { return scope; } - public void setScope(String scope) { + public void setScope(@jakarta.annotation.Nullable String scope) { this.scope = scope; } @@ -273,12 +277,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1RuleWithOperations - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1RuleWithOperations + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RuleWithOperations.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -344,22 +348,22 @@ public V1RuleWithOperations read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1RuleWithOperations given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1RuleWithOperations - * @throws IOException if the JSON string is invalid with respect to V1RuleWithOperations - */ + /** + * Create an instance of V1RuleWithOperations given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RuleWithOperations + * @throws IOException if the JSON string is invalid with respect to V1RuleWithOperations + */ public static V1RuleWithOperations fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1RuleWithOperations.class); } - /** - * Convert an instance of V1RuleWithOperations to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1RuleWithOperations to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClass.java index 53e59ee91a..36f924dcc2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClass.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,151 +53,157 @@ * RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/ */ @ApiModel(description = "RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1RuntimeClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_HANDLER = "handler"; @SerializedName(SERIALIZED_NAME_HANDLER) + @jakarta.annotation.Nonnull private String handler; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_OVERHEAD = "overhead"; @SerializedName(SERIALIZED_NAME_OVERHEAD) + @jakarta.annotation.Nullable private V1Overhead overhead; public static final String SERIALIZED_NAME_SCHEDULING = "scheduling"; @SerializedName(SERIALIZED_NAME_SCHEDULING) + @jakarta.annotation.Nullable private V1Scheduling scheduling; public V1RuntimeClass() { } - public V1RuntimeClass apiVersion(String apiVersion) { + public V1RuntimeClass apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1RuntimeClass handler(String handler) { + public V1RuntimeClass handler(@jakarta.annotation.Nonnull String handler) { this.handler = handler; return this; } - /** + /** * handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable. * @return handler - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.") public String getHandler() { return handler; } - public void setHandler(String handler) { + public void setHandler(@jakarta.annotation.Nonnull String handler) { this.handler = handler; } - public V1RuntimeClass kind(String kind) { + public V1RuntimeClass kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1RuntimeClass metadata(V1ObjectMeta metadata) { + public V1RuntimeClass metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1RuntimeClass overhead(V1Overhead overhead) { + public V1RuntimeClass overhead(@jakarta.annotation.Nullable V1Overhead overhead) { this.overhead = overhead; return this; } - /** + /** * Get overhead * @return overhead - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1Overhead getOverhead() { return overhead; } - public void setOverhead(V1Overhead overhead) { + public void setOverhead(@jakarta.annotation.Nullable V1Overhead overhead) { this.overhead = overhead; } - public V1RuntimeClass scheduling(V1Scheduling scheduling) { + public V1RuntimeClass scheduling(@jakarta.annotation.Nullable V1Scheduling scheduling) { this.scheduling = scheduling; return this; } - /** + /** * Get scheduling * @return scheduling - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1Scheduling getScheduling() { return scheduling; } - public void setScheduling(V1Scheduling scheduling) { + public void setScheduling(@jakarta.annotation.Nullable V1Scheduling scheduling) { this.scheduling = scheduling; } @@ -270,12 +275,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("handler"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1RuntimeClass - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1RuntimeClass + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RuntimeClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -350,22 +355,22 @@ public V1RuntimeClass read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1RuntimeClass given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1RuntimeClass - * @throws IOException if the JSON string is invalid with respect to V1RuntimeClass - */ + /** + * Create an instance of V1RuntimeClass given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RuntimeClass + * @throws IOException if the JSON string is invalid with respect to V1RuntimeClass + */ public static V1RuntimeClass fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1RuntimeClass.class); } - /** - * Convert an instance of V1RuntimeClass to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1RuntimeClass to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassList.java index 8e7d96d0fb..9aee79e264 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * RuntimeClassList is a list of RuntimeClass objects. */ @ApiModel(description = "RuntimeClassList is a list of RuntimeClass objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1RuntimeClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1RuntimeClassList() { } - public V1RuntimeClassList apiVersion(String apiVersion) { + public V1RuntimeClassList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1RuntimeClassList items(List items) { + public V1RuntimeClassList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1RuntimeClassList addItemsItem(V1RuntimeClass itemsItem) { return this; } - /** + /** * items is a list of schema objects. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is a list of schema objects.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1RuntimeClassList kind(String kind) { + public V1RuntimeClassList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1RuntimeClassList metadata(V1ListMeta metadata) { + public V1RuntimeClassList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1RuntimeClassList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1RuntimeClassList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RuntimeClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1RuntimeClassList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1RuntimeClassList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1RuntimeClassList - * @throws IOException if the JSON string is invalid with respect to V1RuntimeClassList - */ + /** + * Create an instance of V1RuntimeClassList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RuntimeClassList + * @throws IOException if the JSON string is invalid with respect to V1RuntimeClassList + */ public static V1RuntimeClassList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1RuntimeClassList.class); } - /** - * Convert an instance of V1RuntimeClassList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1RuntimeClassList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptions.java index 56da185583..65dee0e846 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptions.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,103 +50,107 @@ * SELinuxOptions are the labels to be applied to the container */ @ApiModel(description = "SELinuxOptions are the labels to be applied to the container") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SELinuxOptions { public static final String SERIALIZED_NAME_LEVEL = "level"; @SerializedName(SERIALIZED_NAME_LEVEL) + @jakarta.annotation.Nullable private String level; public static final String SERIALIZED_NAME_ROLE = "role"; @SerializedName(SERIALIZED_NAME_ROLE) + @jakarta.annotation.Nullable private String role; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nullable private String type; public static final String SERIALIZED_NAME_USER = "user"; @SerializedName(SERIALIZED_NAME_USER) + @jakarta.annotation.Nullable private String user; public V1SELinuxOptions() { } - public V1SELinuxOptions level(String level) { + public V1SELinuxOptions level(@jakarta.annotation.Nullable String level) { this.level = level; return this; } - /** + /** * Level is SELinux level label that applies to the container. * @return level - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Level is SELinux level label that applies to the container.") public String getLevel() { return level; } - public void setLevel(String level) { + public void setLevel(@jakarta.annotation.Nullable String level) { this.level = level; } - public V1SELinuxOptions role(String role) { + public V1SELinuxOptions role(@jakarta.annotation.Nullable String role) { this.role = role; return this; } - /** + /** * Role is a SELinux role label that applies to the container. * @return role - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Role is a SELinux role label that applies to the container.") public String getRole() { return role; } - public void setRole(String role) { + public void setRole(@jakarta.annotation.Nullable String role) { this.role = role; } - public V1SELinuxOptions type(String type) { + public V1SELinuxOptions type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } - /** + /** * Type is a SELinux type label that applies to the container. * @return type - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Type is a SELinux type label that applies to the container.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public V1SELinuxOptions user(String user) { + public V1SELinuxOptions user(@jakarta.annotation.Nullable String user) { this.user = user; return this; } - /** + /** * User is a SELinux user label that applies to the container. * @return user - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "User is a SELinux user label that applies to the container.") public String getUser() { return user; } - public void setUser(String user) { + public void setUser(@jakarta.annotation.Nullable String user) { this.user = user; } @@ -212,12 +215,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SELinuxOptions - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SELinuxOptions + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SELinuxOptions.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -276,22 +279,22 @@ public V1SELinuxOptions read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SELinuxOptions given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SELinuxOptions - * @throws IOException if the JSON string is invalid with respect to V1SELinuxOptions - */ + /** + * Create an instance of V1SELinuxOptions given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SELinuxOptions + * @throws IOException if the JSON string is invalid with respect to V1SELinuxOptions + */ public static V1SELinuxOptions fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SELinuxOptions.class); } - /** - * Convert an instance of V1SELinuxOptions to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SELinuxOptions to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scale.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scale.java index c57b7a50cb..cd32c1e9f4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scale.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scale.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * Scale represents a scaling request for a resource. */ @ApiModel(description = "Scale represents a scaling request for a resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Scale implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1ScaleSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1ScaleStatus status; public V1Scale() { } - public V1Scale apiVersion(String apiVersion) { + public V1Scale apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1Scale kind(String kind) { + public V1Scale kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1Scale metadata(V1ObjectMeta metadata) { + public V1Scale metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1Scale spec(V1ScaleSpec spec) { + public V1Scale spec(@jakarta.annotation.Nullable V1ScaleSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ScaleSpec getSpec() { return spec; } - public void setSpec(V1ScaleSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1ScaleSpec spec) { this.spec = spec; } - public V1Scale status(V1ScaleStatus status) { + public V1Scale status(@jakarta.annotation.Nullable V1ScaleStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ScaleStatus getStatus() { return status; } - public void setStatus(V1ScaleStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1ScaleStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Scale - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Scale + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Scale.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1Scale read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Scale given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Scale - * @throws IOException if the JSON string is invalid with respect to V1Scale - */ + /** + * Create an instance of V1Scale given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Scale + * @throws IOException if the JSON string is invalid with respect to V1Scale + */ public static V1Scale fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Scale.class); } - /** - * Convert an instance of V1Scale to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Scale to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSource.java index 3902277ff8..79e1080be0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSource.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,247 +51,257 @@ * ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume */ @ApiModel(description = "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ScaleIOPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) + @jakarta.annotation.Nullable private String fsType; public static final String SERIALIZED_NAME_GATEWAY = "gateway"; @SerializedName(SERIALIZED_NAME_GATEWAY) + @jakarta.annotation.Nonnull private String gateway; public static final String SERIALIZED_NAME_PROTECTION_DOMAIN = "protectionDomain"; @SerializedName(SERIALIZED_NAME_PROTECTION_DOMAIN) + @jakarta.annotation.Nullable private String protectionDomain; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; @SerializedName(SERIALIZED_NAME_SECRET_REF) + @jakarta.annotation.Nonnull private V1SecretReference secretRef; public static final String SERIALIZED_NAME_SSL_ENABLED = "sslEnabled"; @SerializedName(SERIALIZED_NAME_SSL_ENABLED) + @jakarta.annotation.Nullable private Boolean sslEnabled; public static final String SERIALIZED_NAME_STORAGE_MODE = "storageMode"; @SerializedName(SERIALIZED_NAME_STORAGE_MODE) + @jakarta.annotation.Nullable private String storageMode; public static final String SERIALIZED_NAME_STORAGE_POOL = "storagePool"; @SerializedName(SERIALIZED_NAME_STORAGE_POOL) + @jakarta.annotation.Nullable private String storagePool; public static final String SERIALIZED_NAME_SYSTEM = "system"; @SerializedName(SERIALIZED_NAME_SYSTEM) + @jakarta.annotation.Nonnull private String system; public static final String SERIALIZED_NAME_VOLUME_NAME = "volumeName"; @SerializedName(SERIALIZED_NAME_VOLUME_NAME) + @jakarta.annotation.Nullable private String volumeName; public V1ScaleIOPersistentVolumeSource() { } - public V1ScaleIOPersistentVolumeSource fsType(String fsType) { + public V1ScaleIOPersistentVolumeSource fsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; return this; } - /** + /** * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\" * @return fsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\"") public String getFsType() { return fsType; } - public void setFsType(String fsType) { + public void setFsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; } - public V1ScaleIOPersistentVolumeSource gateway(String gateway) { + public V1ScaleIOPersistentVolumeSource gateway(@jakarta.annotation.Nonnull String gateway) { this.gateway = gateway; return this; } - /** + /** * gateway is the host address of the ScaleIO API Gateway. * @return gateway - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "gateway is the host address of the ScaleIO API Gateway.") public String getGateway() { return gateway; } - public void setGateway(String gateway) { + public void setGateway(@jakarta.annotation.Nonnull String gateway) { this.gateway = gateway; } - public V1ScaleIOPersistentVolumeSource protectionDomain(String protectionDomain) { + public V1ScaleIOPersistentVolumeSource protectionDomain(@jakarta.annotation.Nullable String protectionDomain) { this.protectionDomain = protectionDomain; return this; } - /** + /** * protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. * @return protectionDomain - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.") public String getProtectionDomain() { return protectionDomain; } - public void setProtectionDomain(String protectionDomain) { + public void setProtectionDomain(@jakarta.annotation.Nullable String protectionDomain) { this.protectionDomain = protectionDomain; } - public V1ScaleIOPersistentVolumeSource readOnly(Boolean readOnly) { + public V1ScaleIOPersistentVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1ScaleIOPersistentVolumeSource secretRef(V1SecretReference secretRef) { + public V1ScaleIOPersistentVolumeSource secretRef(@jakarta.annotation.Nonnull V1SecretReference secretRef) { this.secretRef = secretRef; return this; } - /** + /** * Get secretRef * @return secretRef - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1SecretReference getSecretRef() { return secretRef; } - public void setSecretRef(V1SecretReference secretRef) { + public void setSecretRef(@jakarta.annotation.Nonnull V1SecretReference secretRef) { this.secretRef = secretRef; } - public V1ScaleIOPersistentVolumeSource sslEnabled(Boolean sslEnabled) { + public V1ScaleIOPersistentVolumeSource sslEnabled(@jakarta.annotation.Nullable Boolean sslEnabled) { this.sslEnabled = sslEnabled; return this; } - /** + /** * sslEnabled is the flag to enable/disable SSL communication with Gateway, default false * @return sslEnabled - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "sslEnabled is the flag to enable/disable SSL communication with Gateway, default false") public Boolean getSslEnabled() { return sslEnabled; } - public void setSslEnabled(Boolean sslEnabled) { + public void setSslEnabled(@jakarta.annotation.Nullable Boolean sslEnabled) { this.sslEnabled = sslEnabled; } - public V1ScaleIOPersistentVolumeSource storageMode(String storageMode) { + public V1ScaleIOPersistentVolumeSource storageMode(@jakarta.annotation.Nullable String storageMode) { this.storageMode = storageMode; return this; } - /** + /** * storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. * @return storageMode - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.") public String getStorageMode() { return storageMode; } - public void setStorageMode(String storageMode) { + public void setStorageMode(@jakarta.annotation.Nullable String storageMode) { this.storageMode = storageMode; } - public V1ScaleIOPersistentVolumeSource storagePool(String storagePool) { + public V1ScaleIOPersistentVolumeSource storagePool(@jakarta.annotation.Nullable String storagePool) { this.storagePool = storagePool; return this; } - /** + /** * storagePool is the ScaleIO Storage Pool associated with the protection domain. * @return storagePool - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "storagePool is the ScaleIO Storage Pool associated with the protection domain.") public String getStoragePool() { return storagePool; } - public void setStoragePool(String storagePool) { + public void setStoragePool(@jakarta.annotation.Nullable String storagePool) { this.storagePool = storagePool; } - public V1ScaleIOPersistentVolumeSource system(String system) { + public V1ScaleIOPersistentVolumeSource system(@jakarta.annotation.Nonnull String system) { this.system = system; return this; } - /** + /** * system is the name of the storage system as configured in ScaleIO. * @return system - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "system is the name of the storage system as configured in ScaleIO.") public String getSystem() { return system; } - public void setSystem(String system) { + public void setSystem(@jakarta.annotation.Nonnull String system) { this.system = system; } - public V1ScaleIOPersistentVolumeSource volumeName(String volumeName) { + public V1ScaleIOPersistentVolumeSource volumeName(@jakarta.annotation.Nullable String volumeName) { this.volumeName = volumeName; return this; } - /** + /** * volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. * @return volumeName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.") public String getVolumeName() { return volumeName; } - public void setVolumeName(String volumeName) { + public void setVolumeName(@jakarta.annotation.Nullable String volumeName) { this.volumeName = volumeName; } @@ -378,12 +387,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("system"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ScaleIOPersistentVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ScaleIOPersistentVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ScaleIOPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -460,22 +469,22 @@ public V1ScaleIOPersistentVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ScaleIOPersistentVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ScaleIOPersistentVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1ScaleIOPersistentVolumeSource - */ + /** + * Create an instance of V1ScaleIOPersistentVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ScaleIOPersistentVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1ScaleIOPersistentVolumeSource + */ public static V1ScaleIOPersistentVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ScaleIOPersistentVolumeSource.class); } - /** - * Convert an instance of V1ScaleIOPersistentVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ScaleIOPersistentVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSource.java index ebb0a8766c..a18d4a23c7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSource.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,247 +51,257 @@ * ScaleIOVolumeSource represents a persistent ScaleIO volume */ @ApiModel(description = "ScaleIOVolumeSource represents a persistent ScaleIO volume") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ScaleIOVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) + @jakarta.annotation.Nullable private String fsType; public static final String SERIALIZED_NAME_GATEWAY = "gateway"; @SerializedName(SERIALIZED_NAME_GATEWAY) + @jakarta.annotation.Nonnull private String gateway; public static final String SERIALIZED_NAME_PROTECTION_DOMAIN = "protectionDomain"; @SerializedName(SERIALIZED_NAME_PROTECTION_DOMAIN) + @jakarta.annotation.Nullable private String protectionDomain; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; @SerializedName(SERIALIZED_NAME_SECRET_REF) + @jakarta.annotation.Nonnull private V1LocalObjectReference secretRef; public static final String SERIALIZED_NAME_SSL_ENABLED = "sslEnabled"; @SerializedName(SERIALIZED_NAME_SSL_ENABLED) + @jakarta.annotation.Nullable private Boolean sslEnabled; public static final String SERIALIZED_NAME_STORAGE_MODE = "storageMode"; @SerializedName(SERIALIZED_NAME_STORAGE_MODE) + @jakarta.annotation.Nullable private String storageMode; public static final String SERIALIZED_NAME_STORAGE_POOL = "storagePool"; @SerializedName(SERIALIZED_NAME_STORAGE_POOL) + @jakarta.annotation.Nullable private String storagePool; public static final String SERIALIZED_NAME_SYSTEM = "system"; @SerializedName(SERIALIZED_NAME_SYSTEM) + @jakarta.annotation.Nonnull private String system; public static final String SERIALIZED_NAME_VOLUME_NAME = "volumeName"; @SerializedName(SERIALIZED_NAME_VOLUME_NAME) + @jakarta.annotation.Nullable private String volumeName; public V1ScaleIOVolumeSource() { } - public V1ScaleIOVolumeSource fsType(String fsType) { + public V1ScaleIOVolumeSource fsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; return this; } - /** + /** * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\". * @return fsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\".") public String getFsType() { return fsType; } - public void setFsType(String fsType) { + public void setFsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; } - public V1ScaleIOVolumeSource gateway(String gateway) { + public V1ScaleIOVolumeSource gateway(@jakarta.annotation.Nonnull String gateway) { this.gateway = gateway; return this; } - /** + /** * gateway is the host address of the ScaleIO API Gateway. * @return gateway - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "gateway is the host address of the ScaleIO API Gateway.") public String getGateway() { return gateway; } - public void setGateway(String gateway) { + public void setGateway(@jakarta.annotation.Nonnull String gateway) { this.gateway = gateway; } - public V1ScaleIOVolumeSource protectionDomain(String protectionDomain) { + public V1ScaleIOVolumeSource protectionDomain(@jakarta.annotation.Nullable String protectionDomain) { this.protectionDomain = protectionDomain; return this; } - /** + /** * protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. * @return protectionDomain - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.") public String getProtectionDomain() { return protectionDomain; } - public void setProtectionDomain(String protectionDomain) { + public void setProtectionDomain(@jakarta.annotation.Nullable String protectionDomain) { this.protectionDomain = protectionDomain; } - public V1ScaleIOVolumeSource readOnly(Boolean readOnly) { + public V1ScaleIOVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1ScaleIOVolumeSource secretRef(V1LocalObjectReference secretRef) { + public V1ScaleIOVolumeSource secretRef(@jakarta.annotation.Nonnull V1LocalObjectReference secretRef) { this.secretRef = secretRef; return this; } - /** + /** * Get secretRef * @return secretRef - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1LocalObjectReference getSecretRef() { return secretRef; } - public void setSecretRef(V1LocalObjectReference secretRef) { + public void setSecretRef(@jakarta.annotation.Nonnull V1LocalObjectReference secretRef) { this.secretRef = secretRef; } - public V1ScaleIOVolumeSource sslEnabled(Boolean sslEnabled) { + public V1ScaleIOVolumeSource sslEnabled(@jakarta.annotation.Nullable Boolean sslEnabled) { this.sslEnabled = sslEnabled; return this; } - /** + /** * sslEnabled Flag enable/disable SSL communication with Gateway, default false * @return sslEnabled - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "sslEnabled Flag enable/disable SSL communication with Gateway, default false") public Boolean getSslEnabled() { return sslEnabled; } - public void setSslEnabled(Boolean sslEnabled) { + public void setSslEnabled(@jakarta.annotation.Nullable Boolean sslEnabled) { this.sslEnabled = sslEnabled; } - public V1ScaleIOVolumeSource storageMode(String storageMode) { + public V1ScaleIOVolumeSource storageMode(@jakarta.annotation.Nullable String storageMode) { this.storageMode = storageMode; return this; } - /** + /** * storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. * @return storageMode - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.") public String getStorageMode() { return storageMode; } - public void setStorageMode(String storageMode) { + public void setStorageMode(@jakarta.annotation.Nullable String storageMode) { this.storageMode = storageMode; } - public V1ScaleIOVolumeSource storagePool(String storagePool) { + public V1ScaleIOVolumeSource storagePool(@jakarta.annotation.Nullable String storagePool) { this.storagePool = storagePool; return this; } - /** + /** * storagePool is the ScaleIO Storage Pool associated with the protection domain. * @return storagePool - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "storagePool is the ScaleIO Storage Pool associated with the protection domain.") public String getStoragePool() { return storagePool; } - public void setStoragePool(String storagePool) { + public void setStoragePool(@jakarta.annotation.Nullable String storagePool) { this.storagePool = storagePool; } - public V1ScaleIOVolumeSource system(String system) { + public V1ScaleIOVolumeSource system(@jakarta.annotation.Nonnull String system) { this.system = system; return this; } - /** + /** * system is the name of the storage system as configured in ScaleIO. * @return system - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "system is the name of the storage system as configured in ScaleIO.") public String getSystem() { return system; } - public void setSystem(String system) { + public void setSystem(@jakarta.annotation.Nonnull String system) { this.system = system; } - public V1ScaleIOVolumeSource volumeName(String volumeName) { + public V1ScaleIOVolumeSource volumeName(@jakarta.annotation.Nullable String volumeName) { this.volumeName = volumeName; return this; } - /** + /** * volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. * @return volumeName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.") public String getVolumeName() { return volumeName; } - public void setVolumeName(String volumeName) { + public void setVolumeName(@jakarta.annotation.Nullable String volumeName) { this.volumeName = volumeName; } @@ -378,12 +387,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("system"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ScaleIOVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ScaleIOVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ScaleIOVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -460,22 +469,22 @@ public V1ScaleIOVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ScaleIOVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ScaleIOVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1ScaleIOVolumeSource - */ + /** + * Create an instance of V1ScaleIOVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ScaleIOVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1ScaleIOVolumeSource + */ public static V1ScaleIOVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ScaleIOVolumeSource.class); } - /** - * Convert an instance of V1ScaleIOVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ScaleIOVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpec.java index c5baaef79f..3a212070dc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpec.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * ScaleSpec describes the attributes of a scale subresource. */ @ApiModel(description = "ScaleSpec describes the attributes of a scale subresource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ScaleSpec { public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_REPLICAS) + @jakarta.annotation.Nullable private Integer replicas; public V1ScaleSpec() { } - public V1ScaleSpec replicas(Integer replicas) { + public V1ScaleSpec replicas(@jakarta.annotation.Nullable Integer replicas) { this.replicas = replicas; return this; } - /** + /** * replicas is the desired number of instances for the scaled object. * @return replicas - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "replicas is the desired number of instances for the scaled object.") public Integer getReplicas() { return replicas; } - public void setReplicas(Integer replicas) { + public void setReplicas(@jakarta.annotation.Nullable Integer replicas) { this.replicas = replicas; } @@ -131,12 +131,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ScaleSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ScaleSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ScaleSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -183,22 +183,22 @@ public V1ScaleSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ScaleSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ScaleSpec - * @throws IOException if the JSON string is invalid with respect to V1ScaleSpec - */ + /** + * Create an instance of V1ScaleSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ScaleSpec + * @throws IOException if the JSON string is invalid with respect to V1ScaleSpec + */ public static V1ScaleSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ScaleSpec.class); } - /** - * Convert an instance of V1ScaleSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ScaleSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatus.java index 71c49cf2fb..1a300e5bc6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatus.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * ScaleStatus represents the current status of a scale subresource. */ @ApiModel(description = "ScaleStatus represents the current status of a scale subresource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ScaleStatus { public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_REPLICAS) + @jakarta.annotation.Nonnull private Integer replicas; public static final String SERIALIZED_NAME_SELECTOR = "selector"; @SerializedName(SERIALIZED_NAME_SELECTOR) + @jakarta.annotation.Nullable private String selector; public V1ScaleStatus() { } - public V1ScaleStatus replicas(Integer replicas) { + public V1ScaleStatus replicas(@jakarta.annotation.Nonnull Integer replicas) { this.replicas = replicas; return this; } - /** + /** * replicas is the actual number of observed instances of the scaled object. * @return replicas - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "replicas is the actual number of observed instances of the scaled object.") public Integer getReplicas() { return replicas; } - public void setReplicas(Integer replicas) { + public void setReplicas(@jakarta.annotation.Nonnull Integer replicas) { this.replicas = replicas; } - public V1ScaleStatus selector(String selector) { + public V1ScaleStatus selector(@jakarta.annotation.Nullable String selector) { this.selector = selector; return this; } - /** + /** * selector is the label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ * @return selector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "selector is the label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/") public String getSelector() { return selector; } - public void setSelector(String selector) { + public void setSelector(@jakarta.annotation.Nullable String selector) { this.selector = selector; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("replicas"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ScaleStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ScaleStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ScaleStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -221,22 +222,22 @@ public V1ScaleStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ScaleStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ScaleStatus - * @throws IOException if the JSON string is invalid with respect to V1ScaleStatus - */ + /** + * Create an instance of V1ScaleStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ScaleStatus + * @throws IOException if the JSON string is invalid with respect to V1ScaleStatus + */ public static V1ScaleStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ScaleStatus.class); } - /** - * Convert an instance of V1ScaleStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ScaleStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scheduling.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scheduling.java index 95117b4c88..89ebe0c40e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scheduling.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scheduling.java @@ -43,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -56,20 +55,22 @@ * Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass. */ @ApiModel(description = "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Scheduling { public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) + @jakarta.annotation.Nullable private Map nodeSelector = new HashMap<>(); public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; @SerializedName(SERIALIZED_NAME_TOLERATIONS) + @jakarta.annotation.Nullable private List tolerations = new ArrayList<>(); public V1Scheduling() { } - public V1Scheduling nodeSelector(Map nodeSelector) { + public V1Scheduling nodeSelector(@jakarta.annotation.Nullable Map nodeSelector) { this.nodeSelector = nodeSelector; return this; } @@ -82,22 +83,22 @@ public V1Scheduling putNodeSelectorItem(String key, String nodeSelectorItem) { return this; } - /** + /** * nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. * @return nodeSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.") public Map getNodeSelector() { return nodeSelector; } - public void setNodeSelector(Map nodeSelector) { + public void setNodeSelector(@jakarta.annotation.Nullable Map nodeSelector) { this.nodeSelector = nodeSelector; } - public V1Scheduling tolerations(List tolerations) { + public V1Scheduling tolerations(@jakarta.annotation.Nullable List tolerations) { this.tolerations = tolerations; return this; } @@ -110,17 +111,17 @@ public V1Scheduling addTolerationsItem(V1Toleration tolerationsItem) { return this; } - /** + /** * tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. * @return tolerations - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.") public List getTolerations() { return tolerations; } - public void setTolerations(List tolerations) { + public void setTolerations(@jakarta.annotation.Nullable List tolerations) { this.tolerations = tolerations; } @@ -179,12 +180,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Scheduling - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Scheduling + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Scheduling.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -245,22 +246,22 @@ public V1Scheduling read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Scheduling given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Scheduling - * @throws IOException if the JSON string is invalid with respect to V1Scheduling - */ + /** + * Create an instance of V1Scheduling given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Scheduling + * @throws IOException if the JSON string is invalid with respect to V1Scheduling + */ public static V1Scheduling fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Scheduling.class); } - /** - * Convert an instance of V1Scheduling to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Scheduling to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelector.java index c9274defe2..c1d88809de 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelector.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,16 +53,17 @@ * A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements. */ @ApiModel(description = "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ScopeSelector { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) + @jakarta.annotation.Nullable private List matchExpressions = new ArrayList<>(); public V1ScopeSelector() { } - public V1ScopeSelector matchExpressions(List matchExpressions) { + public V1ScopeSelector matchExpressions(@jakarta.annotation.Nullable List matchExpressions) { this.matchExpressions = matchExpressions; return this; } @@ -76,17 +76,17 @@ public V1ScopeSelector addMatchExpressionsItem(V1ScopedResourceSelectorRequireme return this; } - /** + /** * A list of scope selector requirements by scope of the resources. * @return matchExpressions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A list of scope selector requirements by scope of the resources.") public List getMatchExpressions() { return matchExpressions; } - public void setMatchExpressions(List matchExpressions) { + public void setMatchExpressions(@jakarta.annotation.Nullable List matchExpressions) { this.matchExpressions = matchExpressions; } @@ -142,12 +142,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ScopeSelector - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ScopeSelector + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ScopeSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -208,22 +208,22 @@ public V1ScopeSelector read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ScopeSelector given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ScopeSelector - * @throws IOException if the JSON string is invalid with respect to V1ScopeSelector - */ + /** + * Create an instance of V1ScopeSelector given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ScopeSelector + * @throws IOException if the JSON string is invalid with respect to V1ScopeSelector + */ public static V1ScopeSelector fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ScopeSelector.class); } - /** - * Convert an instance of V1ScopeSelector to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ScopeSelector to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirement.java index b053be0617..ca8ed2913d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirement.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,64 +52,67 @@ * A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values. */ @ApiModel(description = "A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ScopedResourceSelectorRequirement { public static final String SERIALIZED_NAME_OPERATOR = "operator"; @SerializedName(SERIALIZED_NAME_OPERATOR) + @jakarta.annotation.Nonnull private String operator; public static final String SERIALIZED_NAME_SCOPE_NAME = "scopeName"; @SerializedName(SERIALIZED_NAME_SCOPE_NAME) + @jakarta.annotation.Nonnull private String scopeName; public static final String SERIALIZED_NAME_VALUES = "values"; @SerializedName(SERIALIZED_NAME_VALUES) + @jakarta.annotation.Nullable private List values = new ArrayList<>(); public V1ScopedResourceSelectorRequirement() { } - public V1ScopedResourceSelectorRequirement operator(String operator) { + public V1ScopedResourceSelectorRequirement operator(@jakarta.annotation.Nonnull String operator) { this.operator = operator; return this; } - /** + /** * Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. * @return operator - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.") public String getOperator() { return operator; } - public void setOperator(String operator) { + public void setOperator(@jakarta.annotation.Nonnull String operator) { this.operator = operator; } - public V1ScopedResourceSelectorRequirement scopeName(String scopeName) { + public V1ScopedResourceSelectorRequirement scopeName(@jakarta.annotation.Nonnull String scopeName) { this.scopeName = scopeName; return this; } - /** + /** * The name of the scope that the selector applies to. * @return scopeName - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The name of the scope that the selector applies to.") public String getScopeName() { return scopeName; } - public void setScopeName(String scopeName) { + public void setScopeName(@jakarta.annotation.Nonnull String scopeName) { this.scopeName = scopeName; } - public V1ScopedResourceSelectorRequirement values(List values) { + public V1ScopedResourceSelectorRequirement values(@jakarta.annotation.Nullable List values) { this.values = values; return this; } @@ -123,17 +125,17 @@ public V1ScopedResourceSelectorRequirement addValuesItem(String valuesItem) { return this; } - /** + /** * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. * @return values - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.") public List getValues() { return values; } - public void setValues(List values) { + public void setValues(@jakarta.annotation.Nullable List values) { this.values = values; } @@ -197,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("scopeName"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ScopedResourceSelectorRequirement - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ScopedResourceSelectorRequirement + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ScopedResourceSelectorRequirement.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -266,22 +268,22 @@ public V1ScopedResourceSelectorRequirement read(JsonReader in) throws IOExceptio } } - /** - * Create an instance of V1ScopedResourceSelectorRequirement given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ScopedResourceSelectorRequirement - * @throws IOException if the JSON string is invalid with respect to V1ScopedResourceSelectorRequirement - */ + /** + * Create an instance of V1ScopedResourceSelectorRequirement given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ScopedResourceSelectorRequirement + * @throws IOException if the JSON string is invalid with respect to V1ScopedResourceSelectorRequirement + */ public static V1ScopedResourceSelectorRequirement fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ScopedResourceSelectorRequirement.class); } - /** - * Convert an instance of V1ScopedResourceSelectorRequirement to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ScopedResourceSelectorRequirement to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfile.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfile.java index ecd49209b6..79e113c830 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfile.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfile.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set. */ @ApiModel(description = "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SeccompProfile { public static final String SERIALIZED_NAME_LOCALHOST_PROFILE = "localhostProfile"; @SerializedName(SERIALIZED_NAME_LOCALHOST_PROFILE) + @jakarta.annotation.Nullable private String localhostProfile; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1SeccompProfile() { } - public V1SeccompProfile localhostProfile(String localhostProfile) { + public V1SeccompProfile localhostProfile(@jakarta.annotation.Nullable String localhostProfile) { this.localhostProfile = localhostProfile; return this; } - /** + /** * localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type. * @return localhostProfile - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type.") public String getLocalhostProfile() { return localhostProfile; } - public void setLocalhostProfile(String localhostProfile) { + public void setLocalhostProfile(@jakarta.annotation.Nullable String localhostProfile) { this.localhostProfile = localhostProfile; } - public V1SeccompProfile type(String type) { + public V1SeccompProfile type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * type indicates which kind of seccomp profile will be applied. Valid options are: Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "type indicates which kind of seccomp profile will be applied. Valid options are: Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SeccompProfile - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SeccompProfile + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SeccompProfile.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -224,22 +225,22 @@ public V1SeccompProfile read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SeccompProfile given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SeccompProfile - * @throws IOException if the JSON string is invalid with respect to V1SeccompProfile - */ + /** + * Create an instance of V1SeccompProfile given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SeccompProfile + * @throws IOException if the JSON string is invalid with respect to V1SeccompProfile + */ public static V1SeccompProfile fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SeccompProfile.class); } - /** - * Convert an instance of V1SeccompProfile to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SeccompProfile to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Secret.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Secret.java index bbddc01703..e5850aee29 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Secret.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Secret.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,60 +54,67 @@ * Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. */ @ApiModel(description = "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Secret implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) + @jakarta.annotation.Nullable private Map data = new HashMap<>(); public static final String SERIALIZED_NAME_IMMUTABLE = "immutable"; @SerializedName(SERIALIZED_NAME_IMMUTABLE) + @jakarta.annotation.Nullable private Boolean immutable; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_STRING_DATA = "stringData"; @SerializedName(SERIALIZED_NAME_STRING_DATA) + @jakarta.annotation.Nullable private Map stringData = new HashMap<>(); public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nullable private String type; public V1Secret() { } - public V1Secret apiVersion(String apiVersion) { + public V1Secret apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1Secret data(Map data) { + public V1Secret data(@jakarta.annotation.Nullable Map data) { this.data = data; return this; } @@ -121,82 +127,82 @@ public V1Secret putDataItem(String key, byte[] dataItem) { return this; } - /** + /** * Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 * @return data - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4") public Map getData() { return data; } - public void setData(Map data) { + public void setData(@jakarta.annotation.Nullable Map data) { this.data = data; } - public V1Secret immutable(Boolean immutable) { + public V1Secret immutable(@jakarta.annotation.Nullable Boolean immutable) { this.immutable = immutable; return this; } - /** + /** * Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. * @return immutable - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.") public Boolean getImmutable() { return immutable; } - public void setImmutable(Boolean immutable) { + public void setImmutable(@jakarta.annotation.Nullable Boolean immutable) { this.immutable = immutable; } - public V1Secret kind(String kind) { + public V1Secret kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1Secret metadata(V1ObjectMeta metadata) { + public V1Secret metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1Secret stringData(Map stringData) { + public V1Secret stringData(@jakarta.annotation.Nullable Map stringData) { this.stringData = stringData; return this; } @@ -209,37 +215,37 @@ public V1Secret putStringDataItem(String key, String stringDataItem) { return this; } - /** + /** * stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. * @return stringData - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API.") public Map getStringData() { return stringData; } - public void setStringData(Map stringData) { + public void setStringData(@jakarta.annotation.Nullable Map stringData) { this.stringData = stringData; } - public V1Secret type(String type) { + public V1Secret type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } - /** + /** * Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types * @return type - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } @@ -313,12 +319,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Secret - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Secret + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Secret.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -378,22 +384,22 @@ public V1Secret read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Secret given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Secret - * @throws IOException if the JSON string is invalid with respect to V1Secret - */ + /** + * Create an instance of V1Secret given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Secret + * @throws IOException if the JSON string is invalid with respect to V1Secret + */ public static V1Secret fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Secret.class); } - /** - * Convert an instance of V1Secret to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Secret to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSource.java index 29a809c23f..69bcd4bbea 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the key-value pairs as environment variables. */ @ApiModel(description = "SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the key-value pairs as environment variables.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SecretEnvSource { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_OPTIONAL = "optional"; @SerializedName(SERIALIZED_NAME_OPTIONAL) + @jakarta.annotation.Nullable private Boolean optional; public V1SecretEnvSource() { } - public V1SecretEnvSource name(String name) { + public V1SecretEnvSource name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public V1SecretEnvSource optional(Boolean optional) { + public V1SecretEnvSource optional(@jakarta.annotation.Nullable Boolean optional) { this.optional = optional; return this; } - /** + /** * Specify whether the Secret must be defined * @return optional - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the Secret must be defined") public Boolean getOptional() { return optional; } - public void setOptional(Boolean optional) { + public void setOptional(@jakarta.annotation.Nullable Boolean optional) { this.optional = optional; } @@ -158,12 +159,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SecretEnvSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SecretEnvSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SecretEnvSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -213,22 +214,22 @@ public V1SecretEnvSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SecretEnvSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SecretEnvSource - * @throws IOException if the JSON string is invalid with respect to V1SecretEnvSource - */ + /** + * Create an instance of V1SecretEnvSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SecretEnvSource + * @throws IOException if the JSON string is invalid with respect to V1SecretEnvSource + */ public static V1SecretEnvSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SecretEnvSource.class); } - /** - * Convert an instance of V1SecretEnvSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SecretEnvSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelector.java index c20d213abd..d45172dc7f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelector.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,79 +50,82 @@ * SecretKeySelector selects a key of a Secret. */ @ApiModel(description = "SecretKeySelector selects a key of a Secret.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SecretKeySelector { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) + @jakarta.annotation.Nonnull private String key; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_OPTIONAL = "optional"; @SerializedName(SERIALIZED_NAME_OPTIONAL) + @jakarta.annotation.Nullable private Boolean optional; public V1SecretKeySelector() { } - public V1SecretKeySelector key(String key) { + public V1SecretKeySelector key(@jakarta.annotation.Nonnull String key) { this.key = key; return this; } - /** + /** * The key of the secret to select from. Must be a valid secret key. * @return key - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The key of the secret to select from. Must be a valid secret key.") public String getKey() { return key; } - public void setKey(String key) { + public void setKey(@jakarta.annotation.Nonnull String key) { this.key = key; } - public V1SecretKeySelector name(String name) { + public V1SecretKeySelector name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public V1SecretKeySelector optional(Boolean optional) { + public V1SecretKeySelector optional(@jakarta.annotation.Nullable Boolean optional) { this.optional = optional; return this; } - /** + /** * Specify whether the Secret or its key must be defined * @return optional - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the Secret or its key must be defined") public Boolean getOptional() { return optional; } - public void setOptional(Boolean optional) { + public void setOptional(@jakarta.annotation.Nullable Boolean optional) { this.optional = optional; } @@ -186,12 +188,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("key"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SecretKeySelector - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SecretKeySelector + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SecretKeySelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -251,22 +253,22 @@ public V1SecretKeySelector read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SecretKeySelector given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SecretKeySelector - * @throws IOException if the JSON string is invalid with respect to V1SecretKeySelector - */ + /** + * Create an instance of V1SecretKeySelector given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SecretKeySelector + * @throws IOException if the JSON string is invalid with respect to V1SecretKeySelector + */ public static V1SecretKeySelector fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SecretKeySelector.class); } - /** - * Convert an instance of V1SecretKeySelector to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SecretKeySelector to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretList.java index fd76a521f0..ab1a22211c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * SecretList is a list of Secret. */ @ApiModel(description = "SecretList is a list of Secret.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SecretList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1SecretList() { } - public V1SecretList apiVersion(String apiVersion) { + public V1SecretList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1SecretList items(List items) { + public V1SecretList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1SecretList addItemsItem(V1Secret itemsItem) { return this; } - /** + /** * Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1SecretList kind(String kind) { + public V1SecretList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1SecretList metadata(V1ListMeta metadata) { + public V1SecretList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SecretList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SecretList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SecretList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1SecretList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SecretList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SecretList - * @throws IOException if the JSON string is invalid with respect to V1SecretList - */ + /** + * Create an instance of V1SecretList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SecretList + * @throws IOException if the JSON string is invalid with respect to V1SecretList + */ public static V1SecretList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SecretList.class); } - /** - * Convert an instance of V1SecretList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SecretList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjection.java index a0e0e39dd2..4c9fede95f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjection.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,24 +53,27 @@ * Adapts a secret into a projected volume. The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode. */ @ApiModel(description = "Adapts a secret into a projected volume. The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SecretProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nullable private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_OPTIONAL = "optional"; @SerializedName(SERIALIZED_NAME_OPTIONAL) + @jakarta.annotation.Nullable private Boolean optional; public V1SecretProjection() { } - public V1SecretProjection items(List items) { + public V1SecretProjection items(@jakarta.annotation.Nullable List items) { this.items = items; return this; } @@ -84,57 +86,57 @@ public V1SecretProjection addItemsItem(V1KeyToPath itemsItem) { return this; } - /** + /** * items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. * @return items - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nullable List items) { this.items = items; } - public V1SecretProjection name(String name) { + public V1SecretProjection name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public V1SecretProjection optional(Boolean optional) { + public V1SecretProjection optional(@jakarta.annotation.Nullable Boolean optional) { this.optional = optional; return this; } - /** + /** * optional field specify whether the Secret or its key must be defined * @return optional - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "optional field specify whether the Secret or its key must be defined") public Boolean getOptional() { return optional; } - public void setOptional(Boolean optional) { + public void setOptional(@jakarta.annotation.Nullable Boolean optional) { this.optional = optional; } @@ -196,12 +198,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SecretProjection - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SecretProjection + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SecretProjection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -265,22 +267,22 @@ public V1SecretProjection read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SecretProjection given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SecretProjection - * @throws IOException if the JSON string is invalid with respect to V1SecretProjection - */ + /** + * Create an instance of V1SecretProjection given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SecretProjection + * @throws IOException if the JSON string is invalid with respect to V1SecretProjection + */ public static V1SecretProjection fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SecretProjection.class); } - /** - * Convert an instance of V1SecretProjection to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SecretProjection to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretReference.java index e6d3ae7210..ad98fe5da3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretReference.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace */ @ApiModel(description = "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SecretReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) + @jakarta.annotation.Nullable private String namespace; public V1SecretReference() { } - public V1SecretReference name(String name) { + public V1SecretReference name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * name is unique within a namespace to reference a secret resource. * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "name is unique within a namespace to reference a secret resource.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public V1SecretReference namespace(String namespace) { + public V1SecretReference namespace(@jakarta.annotation.Nullable String namespace) { this.namespace = namespace; return this; } - /** + /** * namespace defines the space within which the secret name must be unique. * @return namespace - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "namespace defines the space within which the secret name must be unique.") public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { + public void setNamespace(@jakarta.annotation.Nullable String namespace) { this.namespace = namespace; } @@ -158,12 +159,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SecretReference - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SecretReference + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SecretReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -216,22 +217,22 @@ public V1SecretReference read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SecretReference given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SecretReference - * @throws IOException if the JSON string is invalid with respect to V1SecretReference - */ + /** + * Create an instance of V1SecretReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SecretReference + * @throws IOException if the JSON string is invalid with respect to V1SecretReference + */ public static V1SecretReference fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SecretReference.class); } - /** - * Convert an instance of V1SecretReference to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SecretReference to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java index cd49502d43..a374f035c1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,48 +53,52 @@ * Adapts a Secret into a volume. The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Adapts a Secret into a volume. The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SecretVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) + @jakarta.annotation.Nullable private Integer defaultMode; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nullable private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_OPTIONAL = "optional"; @SerializedName(SERIALIZED_NAME_OPTIONAL) + @jakarta.annotation.Nullable private Boolean optional; public static final String SERIALIZED_NAME_SECRET_NAME = "secretName"; @SerializedName(SERIALIZED_NAME_SECRET_NAME) + @jakarta.annotation.Nullable private String secretName; public V1SecretVolumeSource() { } - public V1SecretVolumeSource defaultMode(Integer defaultMode) { + public V1SecretVolumeSource defaultMode(@jakarta.annotation.Nullable Integer defaultMode) { this.defaultMode = defaultMode; return this; } - /** + /** * defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. * @return defaultMode - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") public Integer getDefaultMode() { return defaultMode; } - public void setDefaultMode(Integer defaultMode) { + public void setDefaultMode(@jakarta.annotation.Nullable Integer defaultMode) { this.defaultMode = defaultMode; } - public V1SecretVolumeSource items(List items) { + public V1SecretVolumeSource items(@jakarta.annotation.Nullable List items) { this.items = items; return this; } @@ -108,57 +111,57 @@ public V1SecretVolumeSource addItemsItem(V1KeyToPath itemsItem) { return this; } - /** + /** * items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. * @return items - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nullable List items) { this.items = items; } - public V1SecretVolumeSource optional(Boolean optional) { + public V1SecretVolumeSource optional(@jakarta.annotation.Nullable Boolean optional) { this.optional = optional; return this; } - /** + /** * optional field specify whether the Secret or its keys must be defined * @return optional - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "optional field specify whether the Secret or its keys must be defined") public Boolean getOptional() { return optional; } - public void setOptional(Boolean optional) { + public void setOptional(@jakarta.annotation.Nullable Boolean optional) { this.optional = optional; } - public V1SecretVolumeSource secretName(String secretName) { + public V1SecretVolumeSource secretName(@jakarta.annotation.Nullable String secretName) { this.secretName = secretName; return this; } - /** + /** * secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret * @return secretName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret") public String getSecretName() { return secretName; } - public void setSecretName(String secretName) { + public void setSecretName(@jakarta.annotation.Nullable String secretName) { this.secretName = secretName; } @@ -223,12 +226,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SecretVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SecretVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SecretVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -292,22 +295,22 @@ public V1SecretVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SecretVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SecretVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1SecretVolumeSource - */ + /** + * Create an instance of V1SecretVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SecretVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1SecretVolumeSource + */ public static V1SecretVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SecretVolumeSource.class); } - /** - * Convert an instance of V1SecretVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SecretVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContext.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContext.java index 45e936ad5f..b9aee4e43d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContext.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContext.java @@ -43,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -56,295 +55,307 @@ * SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence. */ @ApiModel(description = "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SecurityContext { public static final String SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION = "allowPrivilegeEscalation"; @SerializedName(SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION) + @jakarta.annotation.Nullable private Boolean allowPrivilegeEscalation; public static final String SERIALIZED_NAME_APP_ARMOR_PROFILE = "appArmorProfile"; @SerializedName(SERIALIZED_NAME_APP_ARMOR_PROFILE) + @jakarta.annotation.Nullable private V1AppArmorProfile appArmorProfile; public static final String SERIALIZED_NAME_CAPABILITIES = "capabilities"; @SerializedName(SERIALIZED_NAME_CAPABILITIES) + @jakarta.annotation.Nullable private V1Capabilities capabilities; public static final String SERIALIZED_NAME_PRIVILEGED = "privileged"; @SerializedName(SERIALIZED_NAME_PRIVILEGED) + @jakarta.annotation.Nullable private Boolean privileged; public static final String SERIALIZED_NAME_PROC_MOUNT = "procMount"; @SerializedName(SERIALIZED_NAME_PROC_MOUNT) + @jakarta.annotation.Nullable private String procMount; public static final String SERIALIZED_NAME_READ_ONLY_ROOT_FILESYSTEM = "readOnlyRootFilesystem"; @SerializedName(SERIALIZED_NAME_READ_ONLY_ROOT_FILESYSTEM) + @jakarta.annotation.Nullable private Boolean readOnlyRootFilesystem; public static final String SERIALIZED_NAME_RUN_AS_GROUP = "runAsGroup"; @SerializedName(SERIALIZED_NAME_RUN_AS_GROUP) + @jakarta.annotation.Nullable private Long runAsGroup; public static final String SERIALIZED_NAME_RUN_AS_NON_ROOT = "runAsNonRoot"; @SerializedName(SERIALIZED_NAME_RUN_AS_NON_ROOT) + @jakarta.annotation.Nullable private Boolean runAsNonRoot; public static final String SERIALIZED_NAME_RUN_AS_USER = "runAsUser"; @SerializedName(SERIALIZED_NAME_RUN_AS_USER) + @jakarta.annotation.Nullable private Long runAsUser; public static final String SERIALIZED_NAME_SE_LINUX_OPTIONS = "seLinuxOptions"; @SerializedName(SERIALIZED_NAME_SE_LINUX_OPTIONS) + @jakarta.annotation.Nullable private V1SELinuxOptions seLinuxOptions; public static final String SERIALIZED_NAME_SECCOMP_PROFILE = "seccompProfile"; @SerializedName(SERIALIZED_NAME_SECCOMP_PROFILE) + @jakarta.annotation.Nullable private V1SeccompProfile seccompProfile; public static final String SERIALIZED_NAME_WINDOWS_OPTIONS = "windowsOptions"; @SerializedName(SERIALIZED_NAME_WINDOWS_OPTIONS) + @jakarta.annotation.Nullable private V1WindowsSecurityContextOptions windowsOptions; public V1SecurityContext() { } - public V1SecurityContext allowPrivilegeEscalation(Boolean allowPrivilegeEscalation) { + public V1SecurityContext allowPrivilegeEscalation(@jakarta.annotation.Nullable Boolean allowPrivilegeEscalation) { this.allowPrivilegeEscalation = allowPrivilegeEscalation; return this; } - /** + /** * AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows. * @return allowPrivilegeEscalation - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows.") public Boolean getAllowPrivilegeEscalation() { return allowPrivilegeEscalation; } - public void setAllowPrivilegeEscalation(Boolean allowPrivilegeEscalation) { + public void setAllowPrivilegeEscalation(@jakarta.annotation.Nullable Boolean allowPrivilegeEscalation) { this.allowPrivilegeEscalation = allowPrivilegeEscalation; } - public V1SecurityContext appArmorProfile(V1AppArmorProfile appArmorProfile) { + public V1SecurityContext appArmorProfile(@jakarta.annotation.Nullable V1AppArmorProfile appArmorProfile) { this.appArmorProfile = appArmorProfile; return this; } - /** + /** * Get appArmorProfile * @return appArmorProfile - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1AppArmorProfile getAppArmorProfile() { return appArmorProfile; } - public void setAppArmorProfile(V1AppArmorProfile appArmorProfile) { + public void setAppArmorProfile(@jakarta.annotation.Nullable V1AppArmorProfile appArmorProfile) { this.appArmorProfile = appArmorProfile; } - public V1SecurityContext capabilities(V1Capabilities capabilities) { + public V1SecurityContext capabilities(@jakarta.annotation.Nullable V1Capabilities capabilities) { this.capabilities = capabilities; return this; } - /** + /** * Get capabilities * @return capabilities - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1Capabilities getCapabilities() { return capabilities; } - public void setCapabilities(V1Capabilities capabilities) { + public void setCapabilities(@jakarta.annotation.Nullable V1Capabilities capabilities) { this.capabilities = capabilities; } - public V1SecurityContext privileged(Boolean privileged) { + public V1SecurityContext privileged(@jakarta.annotation.Nullable Boolean privileged) { this.privileged = privileged; return this; } - /** + /** * Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows. * @return privileged - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows.") public Boolean getPrivileged() { return privileged; } - public void setPrivileged(Boolean privileged) { + public void setPrivileged(@jakarta.annotation.Nullable Boolean privileged) { this.privileged = privileged; } - public V1SecurityContext procMount(String procMount) { + public V1SecurityContext procMount(@jakarta.annotation.Nullable String procMount) { this.procMount = procMount; return this; } - /** + /** * procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows. * @return procMount - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows.") public String getProcMount() { return procMount; } - public void setProcMount(String procMount) { + public void setProcMount(@jakarta.annotation.Nullable String procMount) { this.procMount = procMount; } - public V1SecurityContext readOnlyRootFilesystem(Boolean readOnlyRootFilesystem) { + public V1SecurityContext readOnlyRootFilesystem(@jakarta.annotation.Nullable Boolean readOnlyRootFilesystem) { this.readOnlyRootFilesystem = readOnlyRootFilesystem; return this; } - /** + /** * Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows. * @return readOnlyRootFilesystem - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows.") public Boolean getReadOnlyRootFilesystem() { return readOnlyRootFilesystem; } - public void setReadOnlyRootFilesystem(Boolean readOnlyRootFilesystem) { + public void setReadOnlyRootFilesystem(@jakarta.annotation.Nullable Boolean readOnlyRootFilesystem) { this.readOnlyRootFilesystem = readOnlyRootFilesystem; } - public V1SecurityContext runAsGroup(Long runAsGroup) { + public V1SecurityContext runAsGroup(@jakarta.annotation.Nullable Long runAsGroup) { this.runAsGroup = runAsGroup; return this; } - /** + /** * The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. * @return runAsGroup - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.") public Long getRunAsGroup() { return runAsGroup; } - public void setRunAsGroup(Long runAsGroup) { + public void setRunAsGroup(@jakarta.annotation.Nullable Long runAsGroup) { this.runAsGroup = runAsGroup; } - public V1SecurityContext runAsNonRoot(Boolean runAsNonRoot) { + public V1SecurityContext runAsNonRoot(@jakarta.annotation.Nullable Boolean runAsNonRoot) { this.runAsNonRoot = runAsNonRoot; return this; } - /** + /** * Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. * @return runAsNonRoot - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.") public Boolean getRunAsNonRoot() { return runAsNonRoot; } - public void setRunAsNonRoot(Boolean runAsNonRoot) { + public void setRunAsNonRoot(@jakarta.annotation.Nullable Boolean runAsNonRoot) { this.runAsNonRoot = runAsNonRoot; } - public V1SecurityContext runAsUser(Long runAsUser) { + public V1SecurityContext runAsUser(@jakarta.annotation.Nullable Long runAsUser) { this.runAsUser = runAsUser; return this; } - /** + /** * The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. * @return runAsUser - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.") public Long getRunAsUser() { return runAsUser; } - public void setRunAsUser(Long runAsUser) { + public void setRunAsUser(@jakarta.annotation.Nullable Long runAsUser) { this.runAsUser = runAsUser; } - public V1SecurityContext seLinuxOptions(V1SELinuxOptions seLinuxOptions) { + public V1SecurityContext seLinuxOptions(@jakarta.annotation.Nullable V1SELinuxOptions seLinuxOptions) { this.seLinuxOptions = seLinuxOptions; return this; } - /** + /** * Get seLinuxOptions * @return seLinuxOptions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SELinuxOptions getSeLinuxOptions() { return seLinuxOptions; } - public void setSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { + public void setSeLinuxOptions(@jakarta.annotation.Nullable V1SELinuxOptions seLinuxOptions) { this.seLinuxOptions = seLinuxOptions; } - public V1SecurityContext seccompProfile(V1SeccompProfile seccompProfile) { + public V1SecurityContext seccompProfile(@jakarta.annotation.Nullable V1SeccompProfile seccompProfile) { this.seccompProfile = seccompProfile; return this; } - /** + /** * Get seccompProfile * @return seccompProfile - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SeccompProfile getSeccompProfile() { return seccompProfile; } - public void setSeccompProfile(V1SeccompProfile seccompProfile) { + public void setSeccompProfile(@jakarta.annotation.Nullable V1SeccompProfile seccompProfile) { this.seccompProfile = seccompProfile; } - public V1SecurityContext windowsOptions(V1WindowsSecurityContextOptions windowsOptions) { + public V1SecurityContext windowsOptions(@jakarta.annotation.Nullable V1WindowsSecurityContextOptions windowsOptions) { this.windowsOptions = windowsOptions; return this; } - /** + /** * Get windowsOptions * @return windowsOptions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1WindowsSecurityContextOptions getWindowsOptions() { return windowsOptions; } - public void setWindowsOptions(V1WindowsSecurityContextOptions windowsOptions) { + public void setWindowsOptions(@jakarta.annotation.Nullable V1WindowsSecurityContextOptions windowsOptions) { this.windowsOptions = windowsOptions; } @@ -433,12 +444,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SecurityContext - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SecurityContext + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SecurityContext.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -508,22 +519,22 @@ public V1SecurityContext read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SecurityContext given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SecurityContext - * @throws IOException if the JSON string is invalid with respect to V1SecurityContext - */ + /** + * Create an instance of V1SecurityContext given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SecurityContext + * @throws IOException if the JSON string is invalid with respect to V1SecurityContext + */ public static V1SecurityContext fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SecurityContext.class); } - /** - * Convert an instance of V1SecurityContext to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SecurityContext to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelectableField.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelectableField.java index 72d5b1e373..ff5675f631 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelectableField.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelectableField.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * SelectableField specifies the JSON path of a field that may be used with field selectors. */ @ApiModel(description = "SelectableField specifies the JSON path of a field that may be used with field selectors.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SelectableField { public static final String SERIALIZED_NAME_JSON_PATH = "jsonPath"; @SerializedName(SERIALIZED_NAME_JSON_PATH) + @jakarta.annotation.Nonnull private String jsonPath; public V1SelectableField() { } - public V1SelectableField jsonPath(String jsonPath) { + public V1SelectableField jsonPath(@jakarta.annotation.Nonnull String jsonPath) { this.jsonPath = jsonPath; return this; } - /** + /** * jsonPath is a simple JSON path which is evaluated against each custom resource to produce a field selector value. Only JSON paths without the array notation are allowed. Must point to a field of type string, boolean or integer. Types with enum values and strings with formats are allowed. If jsonPath refers to absent field in a resource, the jsonPath evaluates to an empty string. Must not point to metdata fields. Required. * @return jsonPath - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "jsonPath is a simple JSON path which is evaluated against each custom resource to produce a field selector value. Only JSON paths without the array notation are allowed. Must point to a field of type string, boolean or integer. Types with enum values and strings with formats are allowed. If jsonPath refers to absent field in a resource, the jsonPath evaluates to an empty string. Must not point to metdata fields. Required.") public String getJsonPath() { return jsonPath; } - public void setJsonPath(String jsonPath) { + public void setJsonPath(@jakarta.annotation.Nonnull String jsonPath) { this.jsonPath = jsonPath; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("jsonPath"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SelectableField - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SelectableField + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SelectableField.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -194,22 +194,22 @@ public V1SelectableField read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SelectableField given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SelectableField - * @throws IOException if the JSON string is invalid with respect to V1SelectableField - */ + /** + * Create an instance of V1SelectableField given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SelectableField + * @throws IOException if the JSON string is invalid with respect to V1SelectableField + */ public static V1SelectableField fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SelectableField.class); } - /** - * Convert an instance of V1SelectableField to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SelectableField to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReview.java index 4c222ccece..b6a02cf45d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReview.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action */ @ApiModel(description = "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SelfSubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nonnull private V1SelfSubjectAccessReviewSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1SubjectAccessReviewStatus status; public V1SelfSubjectAccessReview() { } - public V1SelfSubjectAccessReview apiVersion(String apiVersion) { + public V1SelfSubjectAccessReview apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1SelfSubjectAccessReview kind(String kind) { + public V1SelfSubjectAccessReview kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1SelfSubjectAccessReview metadata(V1ObjectMeta metadata) { + public V1SelfSubjectAccessReview metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1SelfSubjectAccessReview spec(V1SelfSubjectAccessReviewSpec spec) { + public V1SelfSubjectAccessReview spec(@jakarta.annotation.Nonnull V1SelfSubjectAccessReviewSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1SelfSubjectAccessReviewSpec getSpec() { return spec; } - public void setSpec(V1SelfSubjectAccessReviewSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1SelfSubjectAccessReviewSpec spec) { this.spec = spec; } - public V1SelfSubjectAccessReview status(V1SubjectAccessReviewStatus status) { + public V1SelfSubjectAccessReview status(@jakarta.annotation.Nullable V1SubjectAccessReviewStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SubjectAccessReviewStatus getStatus() { return status; } - public void setStatus(V1SubjectAccessReviewStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1SubjectAccessReviewStatus status) { this.status = status; } @@ -243,12 +247,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("spec"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SelfSubjectAccessReview - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SelfSubjectAccessReview + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SelfSubjectAccessReview.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -318,22 +322,22 @@ public V1SelfSubjectAccessReview read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SelfSubjectAccessReview given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SelfSubjectAccessReview - * @throws IOException if the JSON string is invalid with respect to V1SelfSubjectAccessReview - */ + /** + * Create an instance of V1SelfSubjectAccessReview given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SelfSubjectAccessReview + * @throws IOException if the JSON string is invalid with respect to V1SelfSubjectAccessReview + */ public static V1SelfSubjectAccessReview fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SelfSubjectAccessReview.class); } - /** - * Convert an instance of V1SelfSubjectAccessReview to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SelfSubjectAccessReview to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpec.java index 1645fda335..ea51dded33 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpec.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,55 +52,57 @@ * SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set */ @ApiModel(description = "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SelfSubjectAccessReviewSpec { public static final String SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES = "nonResourceAttributes"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES) + @jakarta.annotation.Nullable private V1NonResourceAttributes nonResourceAttributes; public static final String SERIALIZED_NAME_RESOURCE_ATTRIBUTES = "resourceAttributes"; @SerializedName(SERIALIZED_NAME_RESOURCE_ATTRIBUTES) + @jakarta.annotation.Nullable private V1ResourceAttributes resourceAttributes; public V1SelfSubjectAccessReviewSpec() { } - public V1SelfSubjectAccessReviewSpec nonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) { + public V1SelfSubjectAccessReviewSpec nonResourceAttributes(@jakarta.annotation.Nullable V1NonResourceAttributes nonResourceAttributes) { this.nonResourceAttributes = nonResourceAttributes; return this; } - /** + /** * Get nonResourceAttributes * @return nonResourceAttributes - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1NonResourceAttributes getNonResourceAttributes() { return nonResourceAttributes; } - public void setNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) { + public void setNonResourceAttributes(@jakarta.annotation.Nullable V1NonResourceAttributes nonResourceAttributes) { this.nonResourceAttributes = nonResourceAttributes; } - public V1SelfSubjectAccessReviewSpec resourceAttributes(V1ResourceAttributes resourceAttributes) { + public V1SelfSubjectAccessReviewSpec resourceAttributes(@jakarta.annotation.Nullable V1ResourceAttributes resourceAttributes) { this.resourceAttributes = resourceAttributes; return this; } - /** + /** * Get resourceAttributes * @return resourceAttributes - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ResourceAttributes getResourceAttributes() { return resourceAttributes; } - public void setResourceAttributes(V1ResourceAttributes resourceAttributes) { + public void setResourceAttributes(@jakarta.annotation.Nullable V1ResourceAttributes resourceAttributes) { this.resourceAttributes = resourceAttributes; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SelfSubjectAccessReviewSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SelfSubjectAccessReviewSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SelfSubjectAccessReviewSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -220,22 +221,22 @@ public V1SelfSubjectAccessReviewSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SelfSubjectAccessReviewSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SelfSubjectAccessReviewSpec - * @throws IOException if the JSON string is invalid with respect to V1SelfSubjectAccessReviewSpec - */ + /** + * Create an instance of V1SelfSubjectAccessReviewSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SelfSubjectAccessReviewSpec + * @throws IOException if the JSON string is invalid with respect to V1SelfSubjectAccessReviewSpec + */ public static V1SelfSubjectAccessReviewSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SelfSubjectAccessReviewSpec.class); } - /** - * Convert an instance of V1SelfSubjectAccessReviewSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SelfSubjectAccessReviewSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReview.java index 23e5a29930..bf7f7f2949 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReview.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,103 +52,107 @@ * SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase. */ @ApiModel(description = "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SelfSubjectReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1SelfSubjectReviewStatus status; public V1SelfSubjectReview() { } - public V1SelfSubjectReview apiVersion(String apiVersion) { + public V1SelfSubjectReview apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1SelfSubjectReview kind(String kind) { + public V1SelfSubjectReview kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1SelfSubjectReview metadata(V1ObjectMeta metadata) { + public V1SelfSubjectReview metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1SelfSubjectReview status(V1SelfSubjectReviewStatus status) { + public V1SelfSubjectReview status(@jakarta.annotation.Nullable V1SelfSubjectReviewStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SelfSubjectReviewStatus getStatus() { return status; } - public void setStatus(V1SelfSubjectReviewStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1SelfSubjectReviewStatus status) { this.status = status; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SelfSubjectReview - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SelfSubjectReview + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SelfSubjectReview.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -280,22 +283,22 @@ public V1SelfSubjectReview read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SelfSubjectReview given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SelfSubjectReview - * @throws IOException if the JSON string is invalid with respect to V1SelfSubjectReview - */ + /** + * Create an instance of V1SelfSubjectReview given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SelfSubjectReview + * @throws IOException if the JSON string is invalid with respect to V1SelfSubjectReview + */ public static V1SelfSubjectReview fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SelfSubjectReview.class); } - /** - * Convert an instance of V1SelfSubjectReview to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SelfSubjectReview to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatus.java index a64c3333ca..18e7078158 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatus.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,31 +51,32 @@ * SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. */ @ApiModel(description = "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SelfSubjectReviewStatus { public static final String SERIALIZED_NAME_USER_INFO = "userInfo"; @SerializedName(SERIALIZED_NAME_USER_INFO) + @jakarta.annotation.Nullable private V1UserInfo userInfo; public V1SelfSubjectReviewStatus() { } - public V1SelfSubjectReviewStatus userInfo(V1UserInfo userInfo) { + public V1SelfSubjectReviewStatus userInfo(@jakarta.annotation.Nullable V1UserInfo userInfo) { this.userInfo = userInfo; return this; } - /** + /** * Get userInfo * @return userInfo - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1UserInfo getUserInfo() { return userInfo; } - public void setUserInfo(V1UserInfo userInfo) { + public void setUserInfo(@jakarta.annotation.Nullable V1UserInfo userInfo) { this.userInfo = userInfo; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SelfSubjectReviewStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SelfSubjectReviewStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SelfSubjectReviewStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -188,22 +188,22 @@ public V1SelfSubjectReviewStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SelfSubjectReviewStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SelfSubjectReviewStatus - * @throws IOException if the JSON string is invalid with respect to V1SelfSubjectReviewStatus - */ + /** + * Create an instance of V1SelfSubjectReviewStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SelfSubjectReviewStatus + * @throws IOException if the JSON string is invalid with respect to V1SelfSubjectReviewStatus + */ public static V1SelfSubjectReviewStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SelfSubjectReviewStatus.class); } - /** - * Convert an instance of V1SelfSubjectReviewStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SelfSubjectReviewStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReview.java index be18bd1297..b1b571758b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReview.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. */ @ApiModel(description = "SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SelfSubjectRulesReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nonnull private V1SelfSubjectRulesReviewSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1SubjectRulesReviewStatus status; public V1SelfSubjectRulesReview() { } - public V1SelfSubjectRulesReview apiVersion(String apiVersion) { + public V1SelfSubjectRulesReview apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1SelfSubjectRulesReview kind(String kind) { + public V1SelfSubjectRulesReview kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1SelfSubjectRulesReview metadata(V1ObjectMeta metadata) { + public V1SelfSubjectRulesReview metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1SelfSubjectRulesReview spec(V1SelfSubjectRulesReviewSpec spec) { + public V1SelfSubjectRulesReview spec(@jakarta.annotation.Nonnull V1SelfSubjectRulesReviewSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1SelfSubjectRulesReviewSpec getSpec() { return spec; } - public void setSpec(V1SelfSubjectRulesReviewSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1SelfSubjectRulesReviewSpec spec) { this.spec = spec; } - public V1SelfSubjectRulesReview status(V1SubjectRulesReviewStatus status) { + public V1SelfSubjectRulesReview status(@jakarta.annotation.Nullable V1SubjectRulesReviewStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SubjectRulesReviewStatus getStatus() { return status; } - public void setStatus(V1SubjectRulesReviewStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1SubjectRulesReviewStatus status) { this.status = status; } @@ -243,12 +247,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("spec"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SelfSubjectRulesReview - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SelfSubjectRulesReview + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SelfSubjectRulesReview.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -318,22 +322,22 @@ public V1SelfSubjectRulesReview read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SelfSubjectRulesReview given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SelfSubjectRulesReview - * @throws IOException if the JSON string is invalid with respect to V1SelfSubjectRulesReview - */ + /** + * Create an instance of V1SelfSubjectRulesReview given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SelfSubjectRulesReview + * @throws IOException if the JSON string is invalid with respect to V1SelfSubjectRulesReview + */ public static V1SelfSubjectRulesReview fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SelfSubjectRulesReview.class); } - /** - * Convert an instance of V1SelfSubjectRulesReview to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SelfSubjectRulesReview to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpec.java index fb0a4cb32e..1a76781b50 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpec.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. */ @ApiModel(description = "SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SelfSubjectRulesReviewSpec { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) + @jakarta.annotation.Nullable private String namespace; public V1SelfSubjectRulesReviewSpec() { } - public V1SelfSubjectRulesReviewSpec namespace(String namespace) { + public V1SelfSubjectRulesReviewSpec namespace(@jakarta.annotation.Nullable String namespace) { this.namespace = namespace; return this; } - /** + /** * Namespace to evaluate rules for. Required. * @return namespace - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Namespace to evaluate rules for. Required.") public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { + public void setNamespace(@jakarta.annotation.Nullable String namespace) { this.namespace = namespace; } @@ -131,12 +131,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SelfSubjectRulesReviewSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SelfSubjectRulesReviewSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SelfSubjectRulesReviewSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -186,22 +186,22 @@ public V1SelfSubjectRulesReviewSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SelfSubjectRulesReviewSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SelfSubjectRulesReviewSpec - * @throws IOException if the JSON string is invalid with respect to V1SelfSubjectRulesReviewSpec - */ + /** + * Create an instance of V1SelfSubjectRulesReviewSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SelfSubjectRulesReviewSpec + * @throws IOException if the JSON string is invalid with respect to V1SelfSubjectRulesReviewSpec + */ public static V1SelfSubjectRulesReviewSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SelfSubjectRulesReviewSpec.class); } - /** - * Convert an instance of V1SelfSubjectRulesReviewSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SelfSubjectRulesReviewSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDR.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDR.java index dfbe14c453..dc45c29c57 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDR.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDR.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match. */ @ApiModel(description = "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ServerAddressByClientCIDR { public static final String SERIALIZED_NAME_CLIENT_C_I_D_R = "clientCIDR"; @SerializedName(SERIALIZED_NAME_CLIENT_C_I_D_R) + @jakarta.annotation.Nonnull private String clientCIDR; public static final String SERIALIZED_NAME_SERVER_ADDRESS = "serverAddress"; @SerializedName(SERIALIZED_NAME_SERVER_ADDRESS) + @jakarta.annotation.Nonnull private String serverAddress; public V1ServerAddressByClientCIDR() { } - public V1ServerAddressByClientCIDR clientCIDR(String clientCIDR) { + public V1ServerAddressByClientCIDR clientCIDR(@jakarta.annotation.Nonnull String clientCIDR) { this.clientCIDR = clientCIDR; return this; } - /** + /** * The CIDR with which clients can match their IP to figure out the server address that they should use. * @return clientCIDR - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The CIDR with which clients can match their IP to figure out the server address that they should use.") public String getClientCIDR() { return clientCIDR; } - public void setClientCIDR(String clientCIDR) { + public void setClientCIDR(@jakarta.annotation.Nonnull String clientCIDR) { this.clientCIDR = clientCIDR; } - public V1ServerAddressByClientCIDR serverAddress(String serverAddress) { + public V1ServerAddressByClientCIDR serverAddress(@jakarta.annotation.Nonnull String serverAddress) { this.serverAddress = serverAddress; return this; } - /** + /** * Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. * @return serverAddress - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.") public String getServerAddress() { return serverAddress; } - public void setServerAddress(String serverAddress) { + public void setServerAddress(@jakarta.annotation.Nonnull String serverAddress) { this.serverAddress = serverAddress; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("serverAddress"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ServerAddressByClientCIDR - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ServerAddressByClientCIDR + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServerAddressByClientCIDR.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -225,22 +226,22 @@ public V1ServerAddressByClientCIDR read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ServerAddressByClientCIDR given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ServerAddressByClientCIDR - * @throws IOException if the JSON string is invalid with respect to V1ServerAddressByClientCIDR - */ + /** + * Create an instance of V1ServerAddressByClientCIDR given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServerAddressByClientCIDR + * @throws IOException if the JSON string is invalid with respect to V1ServerAddressByClientCIDR + */ public static V1ServerAddressByClientCIDR fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ServerAddressByClientCIDR.class); } - /** - * Convert an instance of V1ServerAddressByClientCIDR to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ServerAddressByClientCIDR to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Service.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Service.java index d182094418..a7df76adc0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Service.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Service.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. */ @ApiModel(description = "Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Service implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1ServiceSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1ServiceStatus status; public V1Service() { } - public V1Service apiVersion(String apiVersion) { + public V1Service apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1Service kind(String kind) { + public V1Service kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1Service metadata(V1ObjectMeta metadata) { + public V1Service metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1Service spec(V1ServiceSpec spec) { + public V1Service spec(@jakarta.annotation.Nullable V1ServiceSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceSpec getSpec() { return spec; } - public void setSpec(V1ServiceSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1ServiceSpec spec) { this.spec = spec; } - public V1Service status(V1ServiceStatus status) { + public V1Service status(@jakarta.annotation.Nullable V1ServiceStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceStatus getStatus() { return status; } - public void setStatus(V1ServiceStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1ServiceStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Service - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Service + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Service.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1Service read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Service given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Service - * @throws IOException if the JSON string is invalid with respect to V1Service - */ + /** + * Create an instance of V1Service given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Service + * @throws IOException if the JSON string is invalid with respect to V1Service + */ public static V1Service fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Service.class); } - /** - * Convert an instance of V1Service to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Service to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccount.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccount.java index 480b48ec28..16055d421e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccount.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccount.java @@ -43,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -56,76 +55,82 @@ * ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets */ @ApiModel(description = "ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ServiceAccount implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_AUTOMOUNT_SERVICE_ACCOUNT_TOKEN = "automountServiceAccountToken"; @SerializedName(SERIALIZED_NAME_AUTOMOUNT_SERVICE_ACCOUNT_TOKEN) + @jakarta.annotation.Nullable private Boolean automountServiceAccountToken; public static final String SERIALIZED_NAME_IMAGE_PULL_SECRETS = "imagePullSecrets"; @SerializedName(SERIALIZED_NAME_IMAGE_PULL_SECRETS) + @jakarta.annotation.Nullable private List imagePullSecrets = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SECRETS = "secrets"; @SerializedName(SERIALIZED_NAME_SECRETS) + @jakarta.annotation.Nullable private List secrets = new ArrayList<>(); public V1ServiceAccount() { } - public V1ServiceAccount apiVersion(String apiVersion) { + public V1ServiceAccount apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ServiceAccount automountServiceAccountToken(Boolean automountServiceAccountToken) { + public V1ServiceAccount automountServiceAccountToken(@jakarta.annotation.Nullable Boolean automountServiceAccountToken) { this.automountServiceAccountToken = automountServiceAccountToken; return this; } - /** + /** * AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. * @return automountServiceAccountToken - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.") public Boolean getAutomountServiceAccountToken() { return automountServiceAccountToken; } - public void setAutomountServiceAccountToken(Boolean automountServiceAccountToken) { + public void setAutomountServiceAccountToken(@jakarta.annotation.Nullable Boolean automountServiceAccountToken) { this.automountServiceAccountToken = automountServiceAccountToken; } - public V1ServiceAccount imagePullSecrets(List imagePullSecrets) { + public V1ServiceAccount imagePullSecrets(@jakarta.annotation.Nullable List imagePullSecrets) { this.imagePullSecrets = imagePullSecrets; return this; } @@ -138,62 +143,62 @@ public V1ServiceAccount addImagePullSecretsItem(V1LocalObjectReference imagePull return this; } - /** + /** * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod * @return imagePullSecrets - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod") public List getImagePullSecrets() { return imagePullSecrets; } - public void setImagePullSecrets(List imagePullSecrets) { + public void setImagePullSecrets(@jakarta.annotation.Nullable List imagePullSecrets) { this.imagePullSecrets = imagePullSecrets; } - public V1ServiceAccount kind(String kind) { + public V1ServiceAccount kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ServiceAccount metadata(V1ObjectMeta metadata) { + public V1ServiceAccount metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1ServiceAccount secrets(List secrets) { + public V1ServiceAccount secrets(@jakarta.annotation.Nullable List secrets) { this.secrets = secrets; return this; } @@ -206,17 +211,17 @@ public V1ServiceAccount addSecretsItem(V1ObjectReference secretsItem) { return this; } - /** + /** * Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a \"kubernetes.io/enforce-mountable-secrets\" annotation set to \"true\". The \"kubernetes.io/enforce-mountable-secrets\" annotation is deprecated since v1.32. Prefer separate namespaces to isolate access to mounted secrets. This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret * @return secrets - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a \"kubernetes.io/enforce-mountable-secrets\" annotation set to \"true\". The \"kubernetes.io/enforce-mountable-secrets\" annotation is deprecated since v1.32. Prefer separate namespaces to isolate access to mounted secrets. This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret") public List getSecrets() { return secrets; } - public void setSecrets(List secrets) { + public void setSecrets(@jakarta.annotation.Nullable List secrets) { this.secrets = secrets; } @@ -287,12 +292,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ServiceAccount - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ServiceAccount + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServiceAccount.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -377,22 +382,22 @@ public V1ServiceAccount read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ServiceAccount given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ServiceAccount - * @throws IOException if the JSON string is invalid with respect to V1ServiceAccount - */ + /** + * Create an instance of V1ServiceAccount given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServiceAccount + * @throws IOException if the JSON string is invalid with respect to V1ServiceAccount + */ public static V1ServiceAccount fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ServiceAccount.class); } - /** - * Convert an instance of V1ServiceAccount to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ServiceAccount to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java index e72922ebf0..b8deb3f231 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * ServiceAccountList is a list of ServiceAccount objects */ @ApiModel(description = "ServiceAccountList is a list of ServiceAccount objects") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ServiceAccountList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1ServiceAccountList() { } - public V1ServiceAccountList apiVersion(String apiVersion) { + public V1ServiceAccountList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ServiceAccountList items(List items) { + public V1ServiceAccountList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1ServiceAccountList addItemsItem(V1ServiceAccount itemsItem) { return this; } - /** + /** * List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1ServiceAccountList kind(String kind) { + public V1ServiceAccountList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ServiceAccountList metadata(V1ListMeta metadata) { + public V1ServiceAccountList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ServiceAccountList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ServiceAccountList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServiceAccountList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1ServiceAccountList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ServiceAccountList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ServiceAccountList - * @throws IOException if the JSON string is invalid with respect to V1ServiceAccountList - */ + /** + * Create an instance of V1ServiceAccountList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServiceAccountList + * @throws IOException if the JSON string is invalid with respect to V1ServiceAccountList + */ public static V1ServiceAccountList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ServiceAccountList.class); } - /** - * Convert an instance of V1ServiceAccountList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ServiceAccountList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java index 9a13986b29..a500edc876 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * ServiceAccountSubject holds detailed information for service-account-kind subject. */ @ApiModel(description = "ServiceAccountSubject holds detailed information for service-account-kind subject.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ServiceAccountSubject { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) + @jakarta.annotation.Nonnull private String namespace; public V1ServiceAccountSubject() { } - public V1ServiceAccountSubject name(String name) { + public V1ServiceAccountSubject name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * `name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1ServiceAccountSubject namespace(String namespace) { + public V1ServiceAccountSubject namespace(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; return this; } - /** + /** * `namespace` is the namespace of matching ServiceAccount objects. Required. * @return namespace - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "`namespace` is the namespace of matching ServiceAccount objects. Required.") public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { + public void setNamespace(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("namespace"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ServiceAccountSubject - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ServiceAccountSubject + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServiceAccountSubject.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -225,22 +226,22 @@ public V1ServiceAccountSubject read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ServiceAccountSubject given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ServiceAccountSubject - * @throws IOException if the JSON string is invalid with respect to V1ServiceAccountSubject - */ + /** + * Create an instance of V1ServiceAccountSubject given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServiceAccountSubject + * @throws IOException if the JSON string is invalid with respect to V1ServiceAccountSubject + */ public static V1ServiceAccountSubject fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ServiceAccountSubject.class); } - /** - * Convert an instance of V1ServiceAccountSubject to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ServiceAccountSubject to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java index cfb62b4c3b..006bee830b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,79 +50,82 @@ * ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise). */ @ApiModel(description = "ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ServiceAccountTokenProjection { public static final String SERIALIZED_NAME_AUDIENCE = "audience"; @SerializedName(SERIALIZED_NAME_AUDIENCE) + @jakarta.annotation.Nullable private String audience; public static final String SERIALIZED_NAME_EXPIRATION_SECONDS = "expirationSeconds"; @SerializedName(SERIALIZED_NAME_EXPIRATION_SECONDS) + @jakarta.annotation.Nullable private Long expirationSeconds; public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) + @jakarta.annotation.Nonnull private String path; public V1ServiceAccountTokenProjection() { } - public V1ServiceAccountTokenProjection audience(String audience) { + public V1ServiceAccountTokenProjection audience(@jakarta.annotation.Nullable String audience) { this.audience = audience; return this; } - /** + /** * audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. * @return audience - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.") public String getAudience() { return audience; } - public void setAudience(String audience) { + public void setAudience(@jakarta.annotation.Nullable String audience) { this.audience = audience; } - public V1ServiceAccountTokenProjection expirationSeconds(Long expirationSeconds) { + public V1ServiceAccountTokenProjection expirationSeconds(@jakarta.annotation.Nullable Long expirationSeconds) { this.expirationSeconds = expirationSeconds; return this; } - /** + /** * expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. * @return expirationSeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.") public Long getExpirationSeconds() { return expirationSeconds; } - public void setExpirationSeconds(Long expirationSeconds) { + public void setExpirationSeconds(@jakarta.annotation.Nullable Long expirationSeconds) { this.expirationSeconds = expirationSeconds; } - public V1ServiceAccountTokenProjection path(String path) { + public V1ServiceAccountTokenProjection path(@jakarta.annotation.Nonnull String path) { this.path = path; return this; } - /** + /** * path is the path relative to the mount point of the file to project the token into. * @return path - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "path is the path relative to the mount point of the file to project the token into.") public String getPath() { return path; } - public void setPath(String path) { + public void setPath(@jakarta.annotation.Nonnull String path) { this.path = path; } @@ -186,12 +188,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("path"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ServiceAccountTokenProjection - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ServiceAccountTokenProjection + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServiceAccountTokenProjection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -251,22 +253,22 @@ public V1ServiceAccountTokenProjection read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ServiceAccountTokenProjection given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ServiceAccountTokenProjection - * @throws IOException if the JSON string is invalid with respect to V1ServiceAccountTokenProjection - */ + /** + * Create an instance of V1ServiceAccountTokenProjection given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServiceAccountTokenProjection + * @throws IOException if the JSON string is invalid with respect to V1ServiceAccountTokenProjection + */ public static V1ServiceAccountTokenProjection fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ServiceAccountTokenProjection.class); } - /** - * Convert an instance of V1ServiceAccountTokenProjection to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ServiceAccountTokenProjection to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java index 6871b642fe..782b7900d5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * ServiceBackendPort is the service port being referenced. */ @ApiModel(description = "ServiceBackendPort is the service port being referenced.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ServiceBackendPort { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) + @jakarta.annotation.Nullable private Integer number; public V1ServiceBackendPort() { } - public V1ServiceBackendPort name(String name) { + public V1ServiceBackendPort name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\". * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\".") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public V1ServiceBackendPort number(Integer number) { + public V1ServiceBackendPort number(@jakarta.annotation.Nullable Integer number) { this.number = number; return this; } - /** + /** * number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \"Name\". * @return number - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \"Name\".") public Integer getNumber() { return number; } - public void setNumber(Integer number) { + public void setNumber(@jakarta.annotation.Nullable Integer number) { this.number = number; } @@ -158,12 +159,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ServiceBackendPort - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ServiceBackendPort + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServiceBackendPort.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -213,22 +214,22 @@ public V1ServiceBackendPort read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ServiceBackendPort given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ServiceBackendPort - * @throws IOException if the JSON string is invalid with respect to V1ServiceBackendPort - */ + /** + * Create an instance of V1ServiceBackendPort given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServiceBackendPort + * @throws IOException if the JSON string is invalid with respect to V1ServiceBackendPort + */ public static V1ServiceBackendPort fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ServiceBackendPort.class); } - /** - * Convert an instance of V1ServiceBackendPort to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ServiceBackendPort to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java similarity index 64% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReview.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java index a5089ebff5..1140c8f15a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java @@ -19,7 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.openapi.models.V1beta1SelfSubjectReviewStatus; +import io.kubernetes.client.openapi.models.V1ServiceCIDRSpec; +import io.kubernetes.client.openapi.models.V1ServiceCIDRStatus; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -40,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -50,106 +50,135 @@ import io.kubernetes.client.openapi.JSON; /** - * SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase. + * ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects. */ -@ApiModel(description = "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") -public class V1beta1SelfSubjectReview implements io.kubernetes.client.common.KubernetesObject { +@ApiModel(description = "ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1ServiceCIDR implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable + private V1ServiceCIDRSpec spec; + public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - private V1beta1SelfSubjectReviewStatus status; + @jakarta.annotation.Nullable + private V1ServiceCIDRStatus status; - public V1beta1SelfSubjectReview() { + public V1ServiceCIDR() { } - public V1beta1SelfSubjectReview apiVersion(String apiVersion) { + public V1ServiceCIDR apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1beta1SelfSubjectReview kind(String kind) { + public V1ServiceCIDR kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1beta1SelfSubjectReview metadata(V1ObjectMeta metadata) { + public V1ServiceCIDR metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1beta1SelfSubjectReview status(V1beta1SelfSubjectReviewStatus status) { + public V1ServiceCIDR spec(@jakarta.annotation.Nullable V1ServiceCIDRSpec spec) { + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ServiceCIDRSpec getSpec() { + return spec; + } + + public void setSpec(@jakarta.annotation.Nullable V1ServiceCIDRSpec spec) { + this.spec = spec; + } + + + public V1ServiceCIDR status(@jakarta.annotation.Nullable V1ServiceCIDRStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") - public V1beta1SelfSubjectReviewStatus getStatus() { + public V1ServiceCIDRStatus getStatus() { return status; } - public void setStatus(V1beta1SelfSubjectReviewStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1ServiceCIDRStatus status) { this.status = status; } @@ -163,25 +192,27 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1beta1SelfSubjectReview v1beta1SelfSubjectReview = (V1beta1SelfSubjectReview) o; - return Objects.equals(this.apiVersion, v1beta1SelfSubjectReview.apiVersion) && - Objects.equals(this.kind, v1beta1SelfSubjectReview.kind) && - Objects.equals(this.metadata, v1beta1SelfSubjectReview.metadata) && - Objects.equals(this.status, v1beta1SelfSubjectReview.status); + V1ServiceCIDR v1ServiceCIDR = (V1ServiceCIDR) o; + return Objects.equals(this.apiVersion, v1ServiceCIDR.apiVersion) && + Objects.equals(this.kind, v1ServiceCIDR.kind) && + Objects.equals(this.metadata, v1ServiceCIDR.metadata) && + Objects.equals(this.spec, v1ServiceCIDR.spec) && + Objects.equals(this.status, v1ServiceCIDR.status); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, status); + return Objects.hash(apiVersion, kind, metadata, spec, status); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1SelfSubjectReview {\n"); + sb.append("class V1ServiceCIDR {\n"); sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append("}"); return sb.toString(); @@ -208,30 +239,31 @@ private String toIndentedString(Object o) { openapiFields.add("apiVersion"); openapiFields.add("kind"); openapiFields.add("metadata"); + openapiFields.add("spec"); openapiFields.add("status"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1beta1SelfSubjectReview - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ServiceCIDR + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1beta1SelfSubjectReview.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1SelfSubjectReview is not found in the empty JSON string", V1beta1SelfSubjectReview.openapiRequiredFields.toString())); + if (!V1ServiceCIDR.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ServiceCIDR is not found in the empty JSON string", V1ServiceCIDR.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1beta1SelfSubjectReview.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1SelfSubjectReview` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1ServiceCIDR.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ServiceCIDR` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -245,9 +277,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1ServiceCIDRSpec.validateJsonElement(jsonObj.get("spec")); + } // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - V1beta1SelfSubjectReviewStatus.validateJsonElement(jsonObj.get("status")); + V1ServiceCIDRStatus.validateJsonElement(jsonObj.get("status")); } } @@ -255,22 +291,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1beta1SelfSubjectReview.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1SelfSubjectReview' and its subtypes + if (!V1ServiceCIDR.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ServiceCIDR' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1SelfSubjectReview.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ServiceCIDR.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1beta1SelfSubjectReview value) throws IOException { + public void write(JsonWriter out, V1ServiceCIDR value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1beta1SelfSubjectReview read(JsonReader in) throws IOException { + public V1ServiceCIDR read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -280,22 +316,22 @@ public V1beta1SelfSubjectReview read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1beta1SelfSubjectReview given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1beta1SelfSubjectReview - * @throws IOException if the JSON string is invalid with respect to V1beta1SelfSubjectReview - */ - public static V1beta1SelfSubjectReview fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1SelfSubjectReview.class); + /** + * Create an instance of V1ServiceCIDR given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServiceCIDR + * @throws IOException if the JSON string is invalid with respect to V1ServiceCIDR + */ + public static V1ServiceCIDR fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ServiceCIDR.class); } - /** - * Convert an instance of V1beta1SelfSubjectReview to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ServiceCIDR to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRList.java new file mode 100644 index 0000000000..52ad0d02c9 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRList.java @@ -0,0 +1,329 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ListMeta; +import io.kubernetes.client.openapi.models.V1ServiceCIDR; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * ServiceCIDRList contains a list of ServiceCIDR objects. + */ +@ApiModel(description = "ServiceCIDRList contains a list of ServiceCIDR objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1ServiceCIDRList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable + private V1ListMeta metadata; + + public V1ServiceCIDRList() { + } + + public V1ServiceCIDRList apiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @return apiVersion + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") + public String getApiVersion() { + return apiVersion; + } + + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1ServiceCIDRList items(@jakarta.annotation.Nonnull List items) { + this.items = items; + return this; + } + + public V1ServiceCIDRList addItemsItem(V1ServiceCIDR itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + /** + * items is the list of ServiceCIDRs. + * @return items + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is the list of ServiceCIDRs.") + public List getItems() { + return items; + } + + public void setItems(@jakarta.annotation.Nonnull List items) { + this.items = items; + } + + + public V1ServiceCIDRList kind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + return this; + } + + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @return kind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") + public String getKind() { + return kind; + } + + public void setKind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + } + + + public V1ServiceCIDRList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { + return metadata; + } + + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + this.metadata = metadata; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ServiceCIDRList v1ServiceCIDRList = (V1ServiceCIDRList) o; + return Objects.equals(this.apiVersion, v1ServiceCIDRList.apiVersion) && + Objects.equals(this.items, v1ServiceCIDRList.items) && + Objects.equals(this.kind, v1ServiceCIDRList.kind) && + Objects.equals(this.metadata, v1ServiceCIDRList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ServiceCIDRList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ServiceCIDRList + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1ServiceCIDRList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ServiceCIDRList is not found in the empty JSON string", V1ServiceCIDRList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1ServiceCIDRList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ServiceCIDRList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ServiceCIDRList.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1ServiceCIDR.validateJsonElement(jsonArrayitems.get(i)); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonElement(jsonObj.get("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ServiceCIDRList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ServiceCIDRList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ServiceCIDRList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ServiceCIDRList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ServiceCIDRList read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ServiceCIDRList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServiceCIDRList + * @throws IOException if the JSON string is invalid with respect to V1ServiceCIDRList + */ + public static V1ServiceCIDRList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ServiceCIDRList.class); + } + + /** + * Convert an instance of V1ServiceCIDRList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpec.java new file mode 100644 index 0000000000..b2573ad75f --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpec.java @@ -0,0 +1,219 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services. + */ +@ApiModel(description = "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1ServiceCIDRSpec { + public static final String SERIALIZED_NAME_CIDRS = "cidrs"; + @SerializedName(SERIALIZED_NAME_CIDRS) + @jakarta.annotation.Nullable + private List cidrs = new ArrayList<>(); + + public V1ServiceCIDRSpec() { + } + + public V1ServiceCIDRSpec cidrs(@jakarta.annotation.Nullable List cidrs) { + this.cidrs = cidrs; + return this; + } + + public V1ServiceCIDRSpec addCidrsItem(String cidrsItem) { + if (this.cidrs == null) { + this.cidrs = new ArrayList<>(); + } + this.cidrs.add(cidrsItem); + return this; + } + + /** + * CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable. + * @return cidrs + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.") + public List getCidrs() { + return cidrs; + } + + public void setCidrs(@jakarta.annotation.Nullable List cidrs) { + this.cidrs = cidrs; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ServiceCIDRSpec v1ServiceCIDRSpec = (V1ServiceCIDRSpec) o; + return Objects.equals(this.cidrs, v1ServiceCIDRSpec.cidrs); + } + + @Override + public int hashCode() { + return Objects.hash(cidrs); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ServiceCIDRSpec {\n"); + sb.append(" cidrs: ").append(toIndentedString(cidrs)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("cidrs"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ServiceCIDRSpec + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1ServiceCIDRSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ServiceCIDRSpec is not found in the empty JSON string", V1ServiceCIDRSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1ServiceCIDRSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ServiceCIDRSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("cidrs") != null && !jsonObj.get("cidrs").isJsonNull() && !jsonObj.get("cidrs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `cidrs` to be an array in the JSON string but got `%s`", jsonObj.get("cidrs").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ServiceCIDRSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ServiceCIDRSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ServiceCIDRSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ServiceCIDRSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ServiceCIDRSpec read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ServiceCIDRSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServiceCIDRSpec + * @throws IOException if the JSON string is invalid with respect to V1ServiceCIDRSpec + */ + public static V1ServiceCIDRSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ServiceCIDRSpec.class); + } + + /** + * Convert an instance of V1ServiceCIDRSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatus.java new file mode 100644 index 0000000000..d24268d635 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatus.java @@ -0,0 +1,230 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1Condition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * ServiceCIDRStatus describes the current state of the ServiceCIDR. + */ +@ApiModel(description = "ServiceCIDRStatus describes the current state of the ServiceCIDR.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1ServiceCIDRStatus { + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable + private List conditions = new ArrayList<>(); + + public V1ServiceCIDRStatus() { + } + + public V1ServiceCIDRStatus conditions(@jakarta.annotation.Nullable List conditions) { + this.conditions = conditions; + return this; + } + + public V1ServiceCIDRStatus addConditionsItem(V1Condition conditionsItem) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + this.conditions.add(conditionsItem); + return this; + } + + /** + * conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state + * @return conditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state") + public List getConditions() { + return conditions; + } + + public void setConditions(@jakarta.annotation.Nullable List conditions) { + this.conditions = conditions; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ServiceCIDRStatus v1ServiceCIDRStatus = (V1ServiceCIDRStatus) o; + return Objects.equals(this.conditions, v1ServiceCIDRStatus.conditions); + } + + @Override + public int hashCode() { + return Objects.hash(conditions); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ServiceCIDRStatus {\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("conditions"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ServiceCIDRStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1ServiceCIDRStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ServiceCIDRStatus is not found in the empty JSON string", V1ServiceCIDRStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1ServiceCIDRStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ServiceCIDRStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1Condition.validateJsonElement(jsonArrayconditions.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ServiceCIDRStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ServiceCIDRStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ServiceCIDRStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ServiceCIDRStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ServiceCIDRStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ServiceCIDRStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServiceCIDRStatus + * @throws IOException if the JSON string is invalid with respect to V1ServiceCIDRStatus + */ + public static V1ServiceCIDRStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ServiceCIDRStatus.class); + } + + /** + * Convert an instance of V1ServiceCIDRStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java index bef93819f8..805b81a7ae 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * ServiceList holds a list of services. */ @ApiModel(description = "ServiceList holds a list of services.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ServiceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1ServiceList() { } - public V1ServiceList apiVersion(String apiVersion) { + public V1ServiceList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ServiceList items(List items) { + public V1ServiceList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1ServiceList addItemsItem(V1Service itemsItem) { return this; } - /** + /** * List of services * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "List of services") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1ServiceList kind(String kind) { + public V1ServiceList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ServiceList metadata(V1ListMeta metadata) { + public V1ServiceList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ServiceList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ServiceList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServiceList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1ServiceList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ServiceList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ServiceList - * @throws IOException if the JSON string is invalid with respect to V1ServiceList - */ + /** + * Create an instance of V1ServiceList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServiceList + * @throws IOException if the JSON string is invalid with respect to V1ServiceList + */ public static V1ServiceList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ServiceList.class); } - /** - * Convert an instance of V1ServiceList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ServiceList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java index 6932c87843..f3c4be9f26 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,151 +51,157 @@ * ServicePort contains information on service's port. */ @ApiModel(description = "ServicePort contains information on service's port.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ServicePort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; @SerializedName(SERIALIZED_NAME_APP_PROTOCOL) + @jakarta.annotation.Nullable private String appProtocol; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_NODE_PORT = "nodePort"; @SerializedName(SERIALIZED_NAME_NODE_PORT) + @jakarta.annotation.Nullable private Integer nodePort; public static final String SERIALIZED_NAME_PORT = "port"; @SerializedName(SERIALIZED_NAME_PORT) + @jakarta.annotation.Nonnull private Integer port; public static final String SERIALIZED_NAME_PROTOCOL = "protocol"; @SerializedName(SERIALIZED_NAME_PROTOCOL) + @jakarta.annotation.Nullable private String protocol; public static final String SERIALIZED_NAME_TARGET_PORT = "targetPort"; @SerializedName(SERIALIZED_NAME_TARGET_PORT) + @jakarta.annotation.Nullable private IntOrString targetPort; public V1ServicePort() { } - public V1ServicePort appProtocol(String appProtocol) { + public V1ServicePort appProtocol(@jakarta.annotation.Nullable String appProtocol) { this.appProtocol = appProtocol; return this; } - /** + /** * The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. * @return appProtocol - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.") public String getAppProtocol() { return appProtocol; } - public void setAppProtocol(String appProtocol) { + public void setAppProtocol(@jakarta.annotation.Nullable String appProtocol) { this.appProtocol = appProtocol; } - public V1ServicePort name(String name) { + public V1ServicePort name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public V1ServicePort nodePort(Integer nodePort) { + public V1ServicePort nodePort(@jakarta.annotation.Nullable Integer nodePort) { this.nodePort = nodePort; return this; } - /** + /** * The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport * @return nodePort - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport") public Integer getNodePort() { return nodePort; } - public void setNodePort(Integer nodePort) { + public void setNodePort(@jakarta.annotation.Nullable Integer nodePort) { this.nodePort = nodePort; } - public V1ServicePort port(Integer port) { + public V1ServicePort port(@jakarta.annotation.Nonnull Integer port) { this.port = port; return this; } - /** + /** * The port that will be exposed by this service. * @return port - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The port that will be exposed by this service.") public Integer getPort() { return port; } - public void setPort(Integer port) { + public void setPort(@jakarta.annotation.Nonnull Integer port) { this.port = port; } - public V1ServicePort protocol(String protocol) { + public V1ServicePort protocol(@jakarta.annotation.Nullable String protocol) { this.protocol = protocol; return this; } - /** + /** * The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP. * @return protocol - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.") public String getProtocol() { return protocol; } - public void setProtocol(String protocol) { + public void setProtocol(@jakarta.annotation.Nullable String protocol) { this.protocol = protocol; } - public V1ServicePort targetPort(IntOrString targetPort) { + public V1ServicePort targetPort(@jakarta.annotation.Nullable IntOrString targetPort) { this.targetPort = targetPort; return this; } - /** + /** * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return targetPort - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") public IntOrString getTargetPort() { return targetPort; } - public void setTargetPort(IntOrString targetPort) { + public void setTargetPort(@jakarta.annotation.Nullable IntOrString targetPort) { this.targetPort = targetPort; } @@ -268,12 +273,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("port"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ServicePort - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ServicePort + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServicePort.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -339,22 +344,22 @@ public V1ServicePort read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ServicePort given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ServicePort - * @throws IOException if the JSON string is invalid with respect to V1ServicePort - */ + /** + * Create an instance of V1ServicePort given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServicePort + * @throws IOException if the JSON string is invalid with respect to V1ServicePort + */ public static V1ServicePort fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ServicePort.class); } - /** - * Convert an instance of V1ServicePort to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ServicePort to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java index b1203e0e2f..d663729a65 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java @@ -44,7 +44,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -57,132 +56,152 @@ * ServiceSpec describes the attributes that a user creates on a service. */ @ApiModel(description = "ServiceSpec describes the attributes that a user creates on a service.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ServiceSpec { public static final String SERIALIZED_NAME_ALLOCATE_LOAD_BALANCER_NODE_PORTS = "allocateLoadBalancerNodePorts"; @SerializedName(SERIALIZED_NAME_ALLOCATE_LOAD_BALANCER_NODE_PORTS) + @jakarta.annotation.Nullable private Boolean allocateLoadBalancerNodePorts; public static final String SERIALIZED_NAME_CLUSTER_I_P = "clusterIP"; @SerializedName(SERIALIZED_NAME_CLUSTER_I_P) + @jakarta.annotation.Nullable private String clusterIP; public static final String SERIALIZED_NAME_CLUSTER_I_PS = "clusterIPs"; @SerializedName(SERIALIZED_NAME_CLUSTER_I_PS) + @jakarta.annotation.Nullable private List clusterIPs = new ArrayList<>(); public static final String SERIALIZED_NAME_EXTERNAL_I_PS = "externalIPs"; @SerializedName(SERIALIZED_NAME_EXTERNAL_I_PS) + @jakarta.annotation.Nullable private List externalIPs = new ArrayList<>(); public static final String SERIALIZED_NAME_EXTERNAL_NAME = "externalName"; @SerializedName(SERIALIZED_NAME_EXTERNAL_NAME) + @jakarta.annotation.Nullable private String externalName; public static final String SERIALIZED_NAME_EXTERNAL_TRAFFIC_POLICY = "externalTrafficPolicy"; @SerializedName(SERIALIZED_NAME_EXTERNAL_TRAFFIC_POLICY) + @jakarta.annotation.Nullable private String externalTrafficPolicy; public static final String SERIALIZED_NAME_HEALTH_CHECK_NODE_PORT = "healthCheckNodePort"; @SerializedName(SERIALIZED_NAME_HEALTH_CHECK_NODE_PORT) + @jakarta.annotation.Nullable private Integer healthCheckNodePort; public static final String SERIALIZED_NAME_INTERNAL_TRAFFIC_POLICY = "internalTrafficPolicy"; @SerializedName(SERIALIZED_NAME_INTERNAL_TRAFFIC_POLICY) + @jakarta.annotation.Nullable private String internalTrafficPolicy; public static final String SERIALIZED_NAME_IP_FAMILIES = "ipFamilies"; @SerializedName(SERIALIZED_NAME_IP_FAMILIES) + @jakarta.annotation.Nullable private List ipFamilies = new ArrayList<>(); public static final String SERIALIZED_NAME_IP_FAMILY_POLICY = "ipFamilyPolicy"; @SerializedName(SERIALIZED_NAME_IP_FAMILY_POLICY) + @jakarta.annotation.Nullable private String ipFamilyPolicy; public static final String SERIALIZED_NAME_LOAD_BALANCER_CLASS = "loadBalancerClass"; @SerializedName(SERIALIZED_NAME_LOAD_BALANCER_CLASS) + @jakarta.annotation.Nullable private String loadBalancerClass; public static final String SERIALIZED_NAME_LOAD_BALANCER_I_P = "loadBalancerIP"; @SerializedName(SERIALIZED_NAME_LOAD_BALANCER_I_P) + @jakarta.annotation.Nullable private String loadBalancerIP; public static final String SERIALIZED_NAME_LOAD_BALANCER_SOURCE_RANGES = "loadBalancerSourceRanges"; @SerializedName(SERIALIZED_NAME_LOAD_BALANCER_SOURCE_RANGES) + @jakarta.annotation.Nullable private List loadBalancerSourceRanges = new ArrayList<>(); public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) + @jakarta.annotation.Nullable private List ports = new ArrayList<>(); public static final String SERIALIZED_NAME_PUBLISH_NOT_READY_ADDRESSES = "publishNotReadyAddresses"; @SerializedName(SERIALIZED_NAME_PUBLISH_NOT_READY_ADDRESSES) + @jakarta.annotation.Nullable private Boolean publishNotReadyAddresses; public static final String SERIALIZED_NAME_SELECTOR = "selector"; @SerializedName(SERIALIZED_NAME_SELECTOR) + @jakarta.annotation.Nullable private Map selector = new HashMap<>(); public static final String SERIALIZED_NAME_SESSION_AFFINITY = "sessionAffinity"; @SerializedName(SERIALIZED_NAME_SESSION_AFFINITY) + @jakarta.annotation.Nullable private String sessionAffinity; public static final String SERIALIZED_NAME_SESSION_AFFINITY_CONFIG = "sessionAffinityConfig"; @SerializedName(SERIALIZED_NAME_SESSION_AFFINITY_CONFIG) + @jakarta.annotation.Nullable private V1SessionAffinityConfig sessionAffinityConfig; public static final String SERIALIZED_NAME_TRAFFIC_DISTRIBUTION = "trafficDistribution"; @SerializedName(SERIALIZED_NAME_TRAFFIC_DISTRIBUTION) + @jakarta.annotation.Nullable private String trafficDistribution; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nullable private String type; public V1ServiceSpec() { } - public V1ServiceSpec allocateLoadBalancerNodePorts(Boolean allocateLoadBalancerNodePorts) { + public V1ServiceSpec allocateLoadBalancerNodePorts(@jakarta.annotation.Nullable Boolean allocateLoadBalancerNodePorts) { this.allocateLoadBalancerNodePorts = allocateLoadBalancerNodePorts; return this; } - /** + /** * allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \"true\". It may be set to \"false\" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type. * @return allocateLoadBalancerNodePorts - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \"true\". It may be set to \"false\" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type.") public Boolean getAllocateLoadBalancerNodePorts() { return allocateLoadBalancerNodePorts; } - public void setAllocateLoadBalancerNodePorts(Boolean allocateLoadBalancerNodePorts) { + public void setAllocateLoadBalancerNodePorts(@jakarta.annotation.Nullable Boolean allocateLoadBalancerNodePorts) { this.allocateLoadBalancerNodePorts = allocateLoadBalancerNodePorts; } - public V1ServiceSpec clusterIP(String clusterIP) { + public V1ServiceSpec clusterIP(@jakarta.annotation.Nullable String clusterIP) { this.clusterIP = clusterIP; return this; } - /** + /** * clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies * @return clusterIP - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies") public String getClusterIP() { return clusterIP; } - public void setClusterIP(String clusterIP) { + public void setClusterIP(@jakarta.annotation.Nullable String clusterIP) { this.clusterIP = clusterIP; } - public V1ServiceSpec clusterIPs(List clusterIPs) { + public V1ServiceSpec clusterIPs(@jakarta.annotation.Nullable List clusterIPs) { this.clusterIPs = clusterIPs; return this; } @@ -195,22 +214,22 @@ public V1ServiceSpec addClusterIPsItem(String clusterIPsItem) { return this; } - /** + /** * ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value. This field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies * @return clusterIPs - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value. This field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies") public List getClusterIPs() { return clusterIPs; } - public void setClusterIPs(List clusterIPs) { + public void setClusterIPs(@jakarta.annotation.Nullable List clusterIPs) { this.clusterIPs = clusterIPs; } - public V1ServiceSpec externalIPs(List externalIPs) { + public V1ServiceSpec externalIPs(@jakarta.annotation.Nullable List externalIPs) { this.externalIPs = externalIPs; return this; } @@ -223,102 +242,102 @@ public V1ServiceSpec addExternalIPsItem(String externalIPsItem) { return this; } - /** + /** * externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. * @return externalIPs - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system.") public List getExternalIPs() { return externalIPs; } - public void setExternalIPs(List externalIPs) { + public void setExternalIPs(@jakarta.annotation.Nullable List externalIPs) { this.externalIPs = externalIPs; } - public V1ServiceSpec externalName(String externalName) { + public V1ServiceSpec externalName(@jakarta.annotation.Nullable String externalName) { this.externalName = externalName; return this; } - /** + /** * externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\". * @return externalName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\".") public String getExternalName() { return externalName; } - public void setExternalName(String externalName) { + public void setExternalName(@jakarta.annotation.Nullable String externalName) { this.externalName = externalName; } - public V1ServiceSpec externalTrafficPolicy(String externalTrafficPolicy) { + public V1ServiceSpec externalTrafficPolicy(@jakarta.annotation.Nullable String externalTrafficPolicy) { this.externalTrafficPolicy = externalTrafficPolicy; return this; } - /** + /** * externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node. * @return externalTrafficPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node.") public String getExternalTrafficPolicy() { return externalTrafficPolicy; } - public void setExternalTrafficPolicy(String externalTrafficPolicy) { + public void setExternalTrafficPolicy(@jakarta.annotation.Nullable String externalTrafficPolicy) { this.externalTrafficPolicy = externalTrafficPolicy; } - public V1ServiceSpec healthCheckNodePort(Integer healthCheckNodePort) { + public V1ServiceSpec healthCheckNodePort(@jakarta.annotation.Nullable Integer healthCheckNodePort) { this.healthCheckNodePort = healthCheckNodePort; return this; } - /** + /** * healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set. * @return healthCheckNodePort - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set.") public Integer getHealthCheckNodePort() { return healthCheckNodePort; } - public void setHealthCheckNodePort(Integer healthCheckNodePort) { + public void setHealthCheckNodePort(@jakarta.annotation.Nullable Integer healthCheckNodePort) { this.healthCheckNodePort = healthCheckNodePort; } - public V1ServiceSpec internalTrafficPolicy(String internalTrafficPolicy) { + public V1ServiceSpec internalTrafficPolicy(@jakarta.annotation.Nullable String internalTrafficPolicy) { this.internalTrafficPolicy = internalTrafficPolicy; return this; } - /** + /** * InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). * @return internalTrafficPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features).") public String getInternalTrafficPolicy() { return internalTrafficPolicy; } - public void setInternalTrafficPolicy(String internalTrafficPolicy) { + public void setInternalTrafficPolicy(@jakarta.annotation.Nullable String internalTrafficPolicy) { this.internalTrafficPolicy = internalTrafficPolicy; } - public V1ServiceSpec ipFamilies(List ipFamilies) { + public V1ServiceSpec ipFamilies(@jakarta.annotation.Nullable List ipFamilies) { this.ipFamilies = ipFamilies; return this; } @@ -331,82 +350,82 @@ public V1ServiceSpec addIpFamiliesItem(String ipFamiliesItem) { return this; } - /** + /** * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName. This field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. * @return ipFamilies - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName. This field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.") public List getIpFamilies() { return ipFamilies; } - public void setIpFamilies(List ipFamilies) { + public void setIpFamilies(@jakarta.annotation.Nullable List ipFamilies) { this.ipFamilies = ipFamilies; } - public V1ServiceSpec ipFamilyPolicy(String ipFamilyPolicy) { + public V1ServiceSpec ipFamilyPolicy(@jakarta.annotation.Nullable String ipFamilyPolicy) { this.ipFamilyPolicy = ipFamilyPolicy; return this; } - /** + /** * IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be \"SingleStack\" (a single IP family), \"PreferDualStack\" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \"RequireDualStack\" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName. * @return ipFamilyPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be \"SingleStack\" (a single IP family), \"PreferDualStack\" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \"RequireDualStack\" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName.") public String getIpFamilyPolicy() { return ipFamilyPolicy; } - public void setIpFamilyPolicy(String ipFamilyPolicy) { + public void setIpFamilyPolicy(@jakarta.annotation.Nullable String ipFamilyPolicy) { this.ipFamilyPolicy = ipFamilyPolicy; } - public V1ServiceSpec loadBalancerClass(String loadBalancerClass) { + public V1ServiceSpec loadBalancerClass(@jakarta.annotation.Nullable String loadBalancerClass) { this.loadBalancerClass = loadBalancerClass; return this; } - /** + /** * loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type. * @return loadBalancerClass - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.") public String getLoadBalancerClass() { return loadBalancerClass; } - public void setLoadBalancerClass(String loadBalancerClass) { + public void setLoadBalancerClass(@jakarta.annotation.Nullable String loadBalancerClass) { this.loadBalancerClass = loadBalancerClass; } - public V1ServiceSpec loadBalancerIP(String loadBalancerIP) { + public V1ServiceSpec loadBalancerIP(@jakarta.annotation.Nullable String loadBalancerIP) { this.loadBalancerIP = loadBalancerIP; return this; } - /** + /** * Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available. * @return loadBalancerIP - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available.") public String getLoadBalancerIP() { return loadBalancerIP; } - public void setLoadBalancerIP(String loadBalancerIP) { + public void setLoadBalancerIP(@jakarta.annotation.Nullable String loadBalancerIP) { this.loadBalancerIP = loadBalancerIP; } - public V1ServiceSpec loadBalancerSourceRanges(List loadBalancerSourceRanges) { + public V1ServiceSpec loadBalancerSourceRanges(@jakarta.annotation.Nullable List loadBalancerSourceRanges) { this.loadBalancerSourceRanges = loadBalancerSourceRanges; return this; } @@ -419,22 +438,22 @@ public V1ServiceSpec addLoadBalancerSourceRangesItem(String loadBalancerSourceRa return this; } - /** + /** * If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/ * @return loadBalancerSourceRanges - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/") public List getLoadBalancerSourceRanges() { return loadBalancerSourceRanges; } - public void setLoadBalancerSourceRanges(List loadBalancerSourceRanges) { + public void setLoadBalancerSourceRanges(@jakarta.annotation.Nullable List loadBalancerSourceRanges) { this.loadBalancerSourceRanges = loadBalancerSourceRanges; } - public V1ServiceSpec ports(List ports) { + public V1ServiceSpec ports(@jakarta.annotation.Nullable List ports) { this.ports = ports; return this; } @@ -447,42 +466,42 @@ public V1ServiceSpec addPortsItem(V1ServicePort portsItem) { return this; } - /** + /** * The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies * @return ports - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies") public List getPorts() { return ports; } - public void setPorts(List ports) { + public void setPorts(@jakarta.annotation.Nullable List ports) { this.ports = ports; } - public V1ServiceSpec publishNotReadyAddresses(Boolean publishNotReadyAddresses) { + public V1ServiceSpec publishNotReadyAddresses(@jakarta.annotation.Nullable Boolean publishNotReadyAddresses) { this.publishNotReadyAddresses = publishNotReadyAddresses; return this; } - /** + /** * publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered \"ready\" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior. * @return publishNotReadyAddresses - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered \"ready\" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior.") public Boolean getPublishNotReadyAddresses() { return publishNotReadyAddresses; } - public void setPublishNotReadyAddresses(Boolean publishNotReadyAddresses) { + public void setPublishNotReadyAddresses(@jakarta.annotation.Nullable Boolean publishNotReadyAddresses) { this.publishNotReadyAddresses = publishNotReadyAddresses; } - public V1ServiceSpec selector(Map selector) { + public V1ServiceSpec selector(@jakarta.annotation.Nullable Map selector) { this.selector = selector; return this; } @@ -495,97 +514,97 @@ public V1ServiceSpec putSelectorItem(String key, String selectorItem) { return this; } - /** + /** * Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ * @return selector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/") public Map getSelector() { return selector; } - public void setSelector(Map selector) { + public void setSelector(@jakarta.annotation.Nullable Map selector) { this.selector = selector; } - public V1ServiceSpec sessionAffinity(String sessionAffinity) { + public V1ServiceSpec sessionAffinity(@jakarta.annotation.Nullable String sessionAffinity) { this.sessionAffinity = sessionAffinity; return this; } - /** + /** * Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies * @return sessionAffinity - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies") public String getSessionAffinity() { return sessionAffinity; } - public void setSessionAffinity(String sessionAffinity) { + public void setSessionAffinity(@jakarta.annotation.Nullable String sessionAffinity) { this.sessionAffinity = sessionAffinity; } - public V1ServiceSpec sessionAffinityConfig(V1SessionAffinityConfig sessionAffinityConfig) { + public V1ServiceSpec sessionAffinityConfig(@jakarta.annotation.Nullable V1SessionAffinityConfig sessionAffinityConfig) { this.sessionAffinityConfig = sessionAffinityConfig; return this; } - /** + /** * Get sessionAffinityConfig * @return sessionAffinityConfig - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SessionAffinityConfig getSessionAffinityConfig() { return sessionAffinityConfig; } - public void setSessionAffinityConfig(V1SessionAffinityConfig sessionAffinityConfig) { + public void setSessionAffinityConfig(@jakarta.annotation.Nullable V1SessionAffinityConfig sessionAffinityConfig) { this.sessionAffinityConfig = sessionAffinityConfig; } - public V1ServiceSpec trafficDistribution(String trafficDistribution) { + public V1ServiceSpec trafficDistribution(@jakarta.annotation.Nullable String trafficDistribution) { this.trafficDistribution = trafficDistribution; return this; } - /** - * TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to \"PreferClose\", implementations should prioritize endpoints that are topologically close (e.g., same zone). This is a beta field and requires enabling ServiceTrafficDistribution feature. + /** + * TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to \"PreferClose\", implementations should prioritize endpoints that are in the same zone. * @return trafficDistribution - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to \"PreferClose\", implementations should prioritize endpoints that are topologically close (e.g., same zone). This is a beta field and requires enabling ServiceTrafficDistribution feature.") + @ApiModelProperty(value = "TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to \"PreferClose\", implementations should prioritize endpoints that are in the same zone.") public String getTrafficDistribution() { return trafficDistribution; } - public void setTrafficDistribution(String trafficDistribution) { + public void setTrafficDistribution(@jakarta.annotation.Nullable String trafficDistribution) { this.trafficDistribution = trafficDistribution; } - public V1ServiceSpec type(String type) { + public V1ServiceSpec type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } - /** + /** * type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. \"ExternalName\" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types * @return type - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. \"ExternalName\" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } @@ -698,12 +717,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ServiceSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ServiceSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServiceSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -814,22 +833,22 @@ public V1ServiceSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ServiceSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ServiceSpec - * @throws IOException if the JSON string is invalid with respect to V1ServiceSpec - */ + /** + * Create an instance of V1ServiceSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServiceSpec + * @throws IOException if the JSON string is invalid with respect to V1ServiceSpec + */ public static V1ServiceSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ServiceSpec.class); } - /** - * Convert an instance of V1ServiceSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ServiceSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatus.java index a49dfe111e..fc19e9e5a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatus.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,20 +54,22 @@ * ServiceStatus represents the current status of a service. */ @ApiModel(description = "ServiceStatus represents the current status of a service.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ServiceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); public static final String SERIALIZED_NAME_LOAD_BALANCER = "loadBalancer"; @SerializedName(SERIALIZED_NAME_LOAD_BALANCER) + @jakarta.annotation.Nullable private V1LoadBalancerStatus loadBalancer; public V1ServiceStatus() { } - public V1ServiceStatus conditions(List conditions) { + public V1ServiceStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } @@ -81,37 +82,37 @@ public V1ServiceStatus addConditionsItem(V1Condition conditionsItem) { return this; } - /** + /** * Current service state * @return conditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Current service state") public List getConditions() { return conditions; } - public void setConditions(List conditions) { + public void setConditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; } - public V1ServiceStatus loadBalancer(V1LoadBalancerStatus loadBalancer) { + public V1ServiceStatus loadBalancer(@jakarta.annotation.Nullable V1LoadBalancerStatus loadBalancer) { this.loadBalancer = loadBalancer; return this; } - /** + /** * Get loadBalancer * @return loadBalancer - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LoadBalancerStatus getLoadBalancer() { return loadBalancer; } - public void setLoadBalancer(V1LoadBalancerStatus loadBalancer) { + public void setLoadBalancer(@jakarta.annotation.Nullable V1LoadBalancerStatus loadBalancer) { this.loadBalancer = loadBalancer; } @@ -170,12 +171,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ServiceStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ServiceStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServiceStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -240,22 +241,22 @@ public V1ServiceStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ServiceStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ServiceStatus - * @throws IOException if the JSON string is invalid with respect to V1ServiceStatus - */ + /** + * Create an instance of V1ServiceStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServiceStatus + * @throws IOException if the JSON string is invalid with respect to V1ServiceStatus + */ public static V1ServiceStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ServiceStatus.class); } - /** - * Convert an instance of V1ServiceStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ServiceStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfig.java index d0352190f9..8b1abd9dda 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfig.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,31 +51,32 @@ * SessionAffinityConfig represents the configurations of session affinity. */ @ApiModel(description = "SessionAffinityConfig represents the configurations of session affinity.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SessionAffinityConfig { public static final String SERIALIZED_NAME_CLIENT_I_P = "clientIP"; @SerializedName(SERIALIZED_NAME_CLIENT_I_P) + @jakarta.annotation.Nullable private V1ClientIPConfig clientIP; public V1SessionAffinityConfig() { } - public V1SessionAffinityConfig clientIP(V1ClientIPConfig clientIP) { + public V1SessionAffinityConfig clientIP(@jakarta.annotation.Nullable V1ClientIPConfig clientIP) { this.clientIP = clientIP; return this; } - /** + /** * Get clientIP * @return clientIP - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ClientIPConfig getClientIP() { return clientIP; } - public void setClientIP(V1ClientIPConfig clientIP) { + public void setClientIP(@jakarta.annotation.Nullable V1ClientIPConfig clientIP) { this.clientIP = clientIP; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SessionAffinityConfig - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SessionAffinityConfig + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SessionAffinityConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -188,22 +188,22 @@ public V1SessionAffinityConfig read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SessionAffinityConfig given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SessionAffinityConfig - * @throws IOException if the JSON string is invalid with respect to V1SessionAffinityConfig - */ + /** + * Create an instance of V1SessionAffinityConfig given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SessionAffinityConfig + * @throws IOException if the JSON string is invalid with respect to V1SessionAffinityConfig + */ public static V1SessionAffinityConfig fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SessionAffinityConfig.class); } - /** - * Convert an instance of V1SessionAffinityConfig to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SessionAffinityConfig to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SleepAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SleepAction.java index 0e4567430b..8919464ac2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SleepAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SleepAction.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * SleepAction describes a \"sleep\" action. */ @ApiModel(description = "SleepAction describes a \"sleep\" action.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SleepAction { public static final String SERIALIZED_NAME_SECONDS = "seconds"; @SerializedName(SERIALIZED_NAME_SECONDS) + @jakarta.annotation.Nonnull private Long seconds; public V1SleepAction() { } - public V1SleepAction seconds(Long seconds) { + public V1SleepAction seconds(@jakarta.annotation.Nonnull Long seconds) { this.seconds = seconds; return this; } - /** + /** * Seconds is the number of seconds to sleep. * @return seconds - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Seconds is the number of seconds to sleep.") public Long getSeconds() { return seconds; } - public void setSeconds(Long seconds) { + public void setSeconds(@jakarta.annotation.Nonnull Long seconds) { this.seconds = seconds; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("seconds"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SleepAction - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SleepAction + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SleepAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -191,22 +191,22 @@ public V1SleepAction read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SleepAction given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SleepAction - * @throws IOException if the JSON string is invalid with respect to V1SleepAction - */ + /** + * Create an instance of V1SleepAction given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SleepAction + * @throws IOException if the JSON string is invalid with respect to V1SleepAction + */ public static V1SleepAction fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SleepAction.class); } - /** - * Convert an instance of V1SleepAction to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SleepAction to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSet.java index 0815a024ed..b039988f92 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSet.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. The StatefulSet guarantees that a given network identity will always map to the same storage identity. */ @ApiModel(description = "StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. The StatefulSet guarantees that a given network identity will always map to the same storage identity.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StatefulSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1StatefulSetSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1StatefulSetStatus status; public V1StatefulSet() { } - public V1StatefulSet apiVersion(String apiVersion) { + public V1StatefulSet apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1StatefulSet kind(String kind) { + public V1StatefulSet kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1StatefulSet metadata(V1ObjectMeta metadata) { + public V1StatefulSet metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1StatefulSet spec(V1StatefulSetSpec spec) { + public V1StatefulSet spec(@jakarta.annotation.Nullable V1StatefulSetSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1StatefulSetSpec getSpec() { return spec; } - public void setSpec(V1StatefulSetSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1StatefulSetSpec spec) { this.spec = spec; } - public V1StatefulSet status(V1StatefulSetStatus status) { + public V1StatefulSet status(@jakarta.annotation.Nullable V1StatefulSetStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1StatefulSetStatus getStatus() { return status; } - public void setStatus(V1StatefulSetStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1StatefulSetStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1StatefulSet - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1StatefulSet + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StatefulSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1StatefulSet read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1StatefulSet given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1StatefulSet - * @throws IOException if the JSON string is invalid with respect to V1StatefulSet - */ + /** + * Create an instance of V1StatefulSet given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StatefulSet + * @throws IOException if the JSON string is invalid with respect to V1StatefulSet + */ public static V1StatefulSet fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1StatefulSet.class); } - /** - * Convert an instance of V1StatefulSet to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1StatefulSet to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetCondition.java index c9c19b0e38..4facc7fb40 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetCondition.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,127 +51,132 @@ * StatefulSetCondition describes the state of a statefulset at a certain point. */ @ApiModel(description = "StatefulSetCondition describes the state of a statefulset at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StatefulSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nonnull private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1StatefulSetCondition() { } - public V1StatefulSetCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { + public V1StatefulSetCondition lastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; } - /** + /** * Last time the condition transitioned from one status to another. * @return lastTransitionTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { + public void setLastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } - public V1StatefulSetCondition message(String message) { + public V1StatefulSetCondition message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * A human readable message indicating details about the transition. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A human readable message indicating details about the transition.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1StatefulSetCondition reason(String reason) { + public V1StatefulSetCondition reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * The reason for the condition's last transition. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The reason for the condition's last transition.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } - public V1StatefulSetCondition status(String status) { + public V1StatefulSetCondition status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } - /** + /** * Status of the condition, one of True, False, Unknown. * @return status - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public V1StatefulSetCondition type(String type) { + public V1StatefulSetCondition type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * Type of statefulset condition. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Type of statefulset condition.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1StatefulSetCondition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1StatefulSetCondition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StatefulSetCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -313,22 +317,22 @@ public V1StatefulSetCondition read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1StatefulSetCondition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1StatefulSetCondition - * @throws IOException if the JSON string is invalid with respect to V1StatefulSetCondition - */ + /** + * Create an instance of V1StatefulSetCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StatefulSetCondition + * @throws IOException if the JSON string is invalid with respect to V1StatefulSetCondition + */ public static V1StatefulSetCondition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1StatefulSetCondition.class); } - /** - * Convert an instance of V1StatefulSetCondition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1StatefulSetCondition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetList.java index 7ac1ac7fbe..0d47e03570 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * StatefulSetList is a collection of StatefulSets. */ @ApiModel(description = "StatefulSetList is a collection of StatefulSets.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StatefulSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1StatefulSetList() { } - public V1StatefulSetList apiVersion(String apiVersion) { + public V1StatefulSetList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1StatefulSetList items(List items) { + public V1StatefulSetList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1StatefulSetList addItemsItem(V1StatefulSet itemsItem) { return this; } - /** + /** * Items is the list of stateful sets. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items is the list of stateful sets.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1StatefulSetList kind(String kind) { + public V1StatefulSetList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1StatefulSetList metadata(V1ListMeta metadata) { + public V1StatefulSetList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1StatefulSetList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1StatefulSetList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StatefulSetList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1StatefulSetList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1StatefulSetList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1StatefulSetList - * @throws IOException if the JSON string is invalid with respect to V1StatefulSetList - */ + /** + * Create an instance of V1StatefulSetList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StatefulSetList + * @throws IOException if the JSON string is invalid with respect to V1StatefulSetList + */ public static V1StatefulSetList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1StatefulSetList.class); } - /** - * Convert an instance of V1StatefulSetList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1StatefulSetList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinals.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinals.java index ac20e55201..978449c73c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinals.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinals.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet. */ @ApiModel(description = "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StatefulSetOrdinals { public static final String SERIALIZED_NAME_START = "start"; @SerializedName(SERIALIZED_NAME_START) + @jakarta.annotation.Nullable private Integer start; public V1StatefulSetOrdinals() { } - public V1StatefulSetOrdinals start(Integer start) { + public V1StatefulSetOrdinals start(@jakarta.annotation.Nullable Integer start) { this.start = start; return this; } - /** + /** * start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range: [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). If unset, defaults to 0. Replica indices will be in the range: [0, .spec.replicas). * @return start - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range: [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). If unset, defaults to 0. Replica indices will be in the range: [0, .spec.replicas).") public Integer getStart() { return start; } - public void setStart(Integer start) { + public void setStart(@jakarta.annotation.Nullable Integer start) { this.start = start; } @@ -131,12 +131,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1StatefulSetOrdinals - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1StatefulSetOrdinals + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StatefulSetOrdinals.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -183,22 +183,22 @@ public V1StatefulSetOrdinals read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1StatefulSetOrdinals given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1StatefulSetOrdinals - * @throws IOException if the JSON string is invalid with respect to V1StatefulSetOrdinals - */ + /** + * Create an instance of V1StatefulSetOrdinals given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StatefulSetOrdinals + * @throws IOException if the JSON string is invalid with respect to V1StatefulSetOrdinals + */ public static V1StatefulSetOrdinals fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1StatefulSetOrdinals.class); } - /** - * Convert an instance of V1StatefulSetOrdinals to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1StatefulSetOrdinals to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicy.java index a1ce85268a..adce0fdf26 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicy.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. */ @ApiModel(description = "StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StatefulSetPersistentVolumeClaimRetentionPolicy { public static final String SERIALIZED_NAME_WHEN_DELETED = "whenDeleted"; @SerializedName(SERIALIZED_NAME_WHEN_DELETED) + @jakarta.annotation.Nullable private String whenDeleted; public static final String SERIALIZED_NAME_WHEN_SCALED = "whenScaled"; @SerializedName(SERIALIZED_NAME_WHEN_SCALED) + @jakarta.annotation.Nullable private String whenScaled; public V1StatefulSetPersistentVolumeClaimRetentionPolicy() { } - public V1StatefulSetPersistentVolumeClaimRetentionPolicy whenDeleted(String whenDeleted) { + public V1StatefulSetPersistentVolumeClaimRetentionPolicy whenDeleted(@jakarta.annotation.Nullable String whenDeleted) { this.whenDeleted = whenDeleted; return this; } - /** + /** * WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted. * @return whenDeleted - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.") public String getWhenDeleted() { return whenDeleted; } - public void setWhenDeleted(String whenDeleted) { + public void setWhenDeleted(@jakarta.annotation.Nullable String whenDeleted) { this.whenDeleted = whenDeleted; } - public V1StatefulSetPersistentVolumeClaimRetentionPolicy whenScaled(String whenScaled) { + public V1StatefulSetPersistentVolumeClaimRetentionPolicy whenScaled(@jakarta.annotation.Nullable String whenScaled) { this.whenScaled = whenScaled; return this; } - /** + /** * WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted. * @return whenScaled - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted.") public String getWhenScaled() { return whenScaled; } - public void setWhenScaled(String whenScaled) { + public void setWhenScaled(@jakarta.annotation.Nullable String whenScaled) { this.whenScaled = whenScaled; } @@ -158,12 +159,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1StatefulSetPersistentVolumeClaimRetentionPolicy - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1StatefulSetPersistentVolumeClaimRetentionPolicy + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StatefulSetPersistentVolumeClaimRetentionPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -216,22 +217,22 @@ public V1StatefulSetPersistentVolumeClaimRetentionPolicy read(JsonReader in) thr } } - /** - * Create an instance of V1StatefulSetPersistentVolumeClaimRetentionPolicy given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1StatefulSetPersistentVolumeClaimRetentionPolicy - * @throws IOException if the JSON string is invalid with respect to V1StatefulSetPersistentVolumeClaimRetentionPolicy - */ + /** + * Create an instance of V1StatefulSetPersistentVolumeClaimRetentionPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StatefulSetPersistentVolumeClaimRetentionPolicy + * @throws IOException if the JSON string is invalid with respect to V1StatefulSetPersistentVolumeClaimRetentionPolicy + */ public static V1StatefulSetPersistentVolumeClaimRetentionPolicy fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1StatefulSetPersistentVolumeClaimRetentionPolicy.class); } - /** - * Convert an instance of V1StatefulSetPersistentVolumeClaimRetentionPolicy to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1StatefulSetPersistentVolumeClaimRetentionPolicy to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpec.java index 523203c09a..29318bcd33 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpec.java @@ -46,7 +46,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -59,256 +58,267 @@ * A StatefulSetSpec is the specification of a StatefulSet. */ @ApiModel(description = "A StatefulSetSpec is the specification of a StatefulSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StatefulSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) + @jakarta.annotation.Nullable private Integer minReadySeconds; public static final String SERIALIZED_NAME_ORDINALS = "ordinals"; @SerializedName(SERIALIZED_NAME_ORDINALS) + @jakarta.annotation.Nullable private V1StatefulSetOrdinals ordinals; public static final String SERIALIZED_NAME_PERSISTENT_VOLUME_CLAIM_RETENTION_POLICY = "persistentVolumeClaimRetentionPolicy"; @SerializedName(SERIALIZED_NAME_PERSISTENT_VOLUME_CLAIM_RETENTION_POLICY) + @jakarta.annotation.Nullable private V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy; public static final String SERIALIZED_NAME_POD_MANAGEMENT_POLICY = "podManagementPolicy"; @SerializedName(SERIALIZED_NAME_POD_MANAGEMENT_POLICY) + @jakarta.annotation.Nullable private String podManagementPolicy; public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_REPLICAS) + @jakarta.annotation.Nullable private Integer replicas; public static final String SERIALIZED_NAME_REVISION_HISTORY_LIMIT = "revisionHistoryLimit"; @SerializedName(SERIALIZED_NAME_REVISION_HISTORY_LIMIT) + @jakarta.annotation.Nullable private Integer revisionHistoryLimit; public static final String SERIALIZED_NAME_SELECTOR = "selector"; @SerializedName(SERIALIZED_NAME_SELECTOR) + @jakarta.annotation.Nonnull private V1LabelSelector selector; public static final String SERIALIZED_NAME_SERVICE_NAME = "serviceName"; @SerializedName(SERIALIZED_NAME_SERVICE_NAME) + @jakarta.annotation.Nullable private String serviceName; public static final String SERIALIZED_NAME_TEMPLATE = "template"; @SerializedName(SERIALIZED_NAME_TEMPLATE) + @jakarta.annotation.Nonnull private V1PodTemplateSpec template; public static final String SERIALIZED_NAME_UPDATE_STRATEGY = "updateStrategy"; @SerializedName(SERIALIZED_NAME_UPDATE_STRATEGY) + @jakarta.annotation.Nullable private V1StatefulSetUpdateStrategy updateStrategy; public static final String SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATES = "volumeClaimTemplates"; @SerializedName(SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATES) + @jakarta.annotation.Nullable private List volumeClaimTemplates = new ArrayList<>(); public V1StatefulSetSpec() { } - public V1StatefulSetSpec minReadySeconds(Integer minReadySeconds) { + public V1StatefulSetSpec minReadySeconds(@jakarta.annotation.Nullable Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; return this; } - /** + /** * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) * @return minReadySeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)") public Integer getMinReadySeconds() { return minReadySeconds; } - public void setMinReadySeconds(Integer minReadySeconds) { + public void setMinReadySeconds(@jakarta.annotation.Nullable Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; } - public V1StatefulSetSpec ordinals(V1StatefulSetOrdinals ordinals) { + public V1StatefulSetSpec ordinals(@jakarta.annotation.Nullable V1StatefulSetOrdinals ordinals) { this.ordinals = ordinals; return this; } - /** + /** * Get ordinals * @return ordinals - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1StatefulSetOrdinals getOrdinals() { return ordinals; } - public void setOrdinals(V1StatefulSetOrdinals ordinals) { + public void setOrdinals(@jakarta.annotation.Nullable V1StatefulSetOrdinals ordinals) { this.ordinals = ordinals; } - public V1StatefulSetSpec persistentVolumeClaimRetentionPolicy(V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy) { + public V1StatefulSetSpec persistentVolumeClaimRetentionPolicy(@jakarta.annotation.Nullable V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy) { this.persistentVolumeClaimRetentionPolicy = persistentVolumeClaimRetentionPolicy; return this; } - /** + /** * Get persistentVolumeClaimRetentionPolicy * @return persistentVolumeClaimRetentionPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1StatefulSetPersistentVolumeClaimRetentionPolicy getPersistentVolumeClaimRetentionPolicy() { return persistentVolumeClaimRetentionPolicy; } - public void setPersistentVolumeClaimRetentionPolicy(V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy) { + public void setPersistentVolumeClaimRetentionPolicy(@jakarta.annotation.Nullable V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy) { this.persistentVolumeClaimRetentionPolicy = persistentVolumeClaimRetentionPolicy; } - public V1StatefulSetSpec podManagementPolicy(String podManagementPolicy) { + public V1StatefulSetSpec podManagementPolicy(@jakarta.annotation.Nullable String podManagementPolicy) { this.podManagementPolicy = podManagementPolicy; return this; } - /** + /** * podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. * @return podManagementPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.") public String getPodManagementPolicy() { return podManagementPolicy; } - public void setPodManagementPolicy(String podManagementPolicy) { + public void setPodManagementPolicy(@jakarta.annotation.Nullable String podManagementPolicy) { this.podManagementPolicy = podManagementPolicy; } - public V1StatefulSetSpec replicas(Integer replicas) { + public V1StatefulSetSpec replicas(@jakarta.annotation.Nullable Integer replicas) { this.replicas = replicas; return this; } - /** + /** * replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. * @return replicas - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.") public Integer getReplicas() { return replicas; } - public void setReplicas(Integer replicas) { + public void setReplicas(@jakarta.annotation.Nullable Integer replicas) { this.replicas = replicas; } - public V1StatefulSetSpec revisionHistoryLimit(Integer revisionHistoryLimit) { + public V1StatefulSetSpec revisionHistoryLimit(@jakarta.annotation.Nullable Integer revisionHistoryLimit) { this.revisionHistoryLimit = revisionHistoryLimit; return this; } - /** + /** * revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. * @return revisionHistoryLimit - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.") public Integer getRevisionHistoryLimit() { return revisionHistoryLimit; } - public void setRevisionHistoryLimit(Integer revisionHistoryLimit) { + public void setRevisionHistoryLimit(@jakarta.annotation.Nullable Integer revisionHistoryLimit) { this.revisionHistoryLimit = revisionHistoryLimit; } - public V1StatefulSetSpec selector(V1LabelSelector selector) { + public V1StatefulSetSpec selector(@jakarta.annotation.Nonnull V1LabelSelector selector) { this.selector = selector; return this; } - /** + /** * Get selector * @return selector - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1LabelSelector getSelector() { return selector; } - public void setSelector(V1LabelSelector selector) { + public void setSelector(@jakarta.annotation.Nonnull V1LabelSelector selector) { this.selector = selector; } - public V1StatefulSetSpec serviceName(String serviceName) { + public V1StatefulSetSpec serviceName(@jakarta.annotation.Nullable String serviceName) { this.serviceName = serviceName; return this; } - /** + /** * serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. * @return serviceName - **/ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.") + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.") public String getServiceName() { return serviceName; } - public void setServiceName(String serviceName) { + public void setServiceName(@jakarta.annotation.Nullable String serviceName) { this.serviceName = serviceName; } - public V1StatefulSetSpec template(V1PodTemplateSpec template) { + public V1StatefulSetSpec template(@jakarta.annotation.Nonnull V1PodTemplateSpec template) { this.template = template; return this; } - /** + /** * Get template * @return template - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1PodTemplateSpec getTemplate() { return template; } - public void setTemplate(V1PodTemplateSpec template) { + public void setTemplate(@jakarta.annotation.Nonnull V1PodTemplateSpec template) { this.template = template; } - public V1StatefulSetSpec updateStrategy(V1StatefulSetUpdateStrategy updateStrategy) { + public V1StatefulSetSpec updateStrategy(@jakarta.annotation.Nullable V1StatefulSetUpdateStrategy updateStrategy) { this.updateStrategy = updateStrategy; return this; } - /** + /** * Get updateStrategy * @return updateStrategy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1StatefulSetUpdateStrategy getUpdateStrategy() { return updateStrategy; } - public void setUpdateStrategy(V1StatefulSetUpdateStrategy updateStrategy) { + public void setUpdateStrategy(@jakarta.annotation.Nullable V1StatefulSetUpdateStrategy updateStrategy) { this.updateStrategy = updateStrategy; } - public V1StatefulSetSpec volumeClaimTemplates(List volumeClaimTemplates) { + public V1StatefulSetSpec volumeClaimTemplates(@jakarta.annotation.Nullable List volumeClaimTemplates) { this.volumeClaimTemplates = volumeClaimTemplates; return this; } @@ -321,17 +331,17 @@ public V1StatefulSetSpec addVolumeClaimTemplatesItem(V1PersistentVolumeClaim vol return this; } - /** + /** * volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. * @return volumeClaimTemplates - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.") public List getVolumeClaimTemplates() { return volumeClaimTemplates; } - public void setVolumeClaimTemplates(List volumeClaimTemplates) { + public void setVolumeClaimTemplates(@jakarta.annotation.Nullable List volumeClaimTemplates) { this.volumeClaimTemplates = volumeClaimTemplates; } @@ -416,16 +426,15 @@ private String toIndentedString(Object o) { // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); openapiRequiredFields.add("selector"); - openapiRequiredFields.add("serviceName"); openapiRequiredFields.add("template"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1StatefulSetSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1StatefulSetSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StatefulSetSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -461,7 +470,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // validate the required field `selector` V1LabelSelector.validateJsonElement(jsonObj.get("selector")); - if (!jsonObj.get("serviceName").isJsonPrimitive()) { + if ((jsonObj.get("serviceName") != null && !jsonObj.get("serviceName").isJsonNull()) && !jsonObj.get("serviceName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `serviceName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("serviceName").toString())); } // validate the required field `template` @@ -515,22 +524,22 @@ public V1StatefulSetSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1StatefulSetSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1StatefulSetSpec - * @throws IOException if the JSON string is invalid with respect to V1StatefulSetSpec - */ + /** + * Create an instance of V1StatefulSetSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StatefulSetSpec + * @throws IOException if the JSON string is invalid with respect to V1StatefulSetSpec + */ public static V1StatefulSetSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1StatefulSetSpec.class); } - /** - * Convert an instance of V1StatefulSetSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1StatefulSetSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatus.java index e7a03d8ac3..22f0a1f132 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatus.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,92 +53,102 @@ * StatefulSetStatus represents the current state of a StatefulSet. */ @ApiModel(description = "StatefulSetStatus represents the current state of a StatefulSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StatefulSetStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) + @jakarta.annotation.Nullable private Integer availableReplicas; public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; @SerializedName(SERIALIZED_NAME_COLLISION_COUNT) + @jakarta.annotation.Nullable private Integer collisionCount; public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); public static final String SERIALIZED_NAME_CURRENT_REPLICAS = "currentReplicas"; @SerializedName(SERIALIZED_NAME_CURRENT_REPLICAS) + @jakarta.annotation.Nullable private Integer currentReplicas; public static final String SERIALIZED_NAME_CURRENT_REVISION = "currentRevision"; @SerializedName(SERIALIZED_NAME_CURRENT_REVISION) + @jakarta.annotation.Nullable private String currentRevision; public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + @jakarta.annotation.Nullable private Long observedGeneration; public static final String SERIALIZED_NAME_READY_REPLICAS = "readyReplicas"; @SerializedName(SERIALIZED_NAME_READY_REPLICAS) + @jakarta.annotation.Nullable private Integer readyReplicas; public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_REPLICAS) + @jakarta.annotation.Nonnull private Integer replicas; public static final String SERIALIZED_NAME_UPDATE_REVISION = "updateRevision"; @SerializedName(SERIALIZED_NAME_UPDATE_REVISION) + @jakarta.annotation.Nullable private String updateRevision; public static final String SERIALIZED_NAME_UPDATED_REPLICAS = "updatedReplicas"; @SerializedName(SERIALIZED_NAME_UPDATED_REPLICAS) + @jakarta.annotation.Nullable private Integer updatedReplicas; public V1StatefulSetStatus() { } - public V1StatefulSetStatus availableReplicas(Integer availableReplicas) { + public V1StatefulSetStatus availableReplicas(@jakarta.annotation.Nullable Integer availableReplicas) { this.availableReplicas = availableReplicas; return this; } - /** + /** * Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. * @return availableReplicas - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.") public Integer getAvailableReplicas() { return availableReplicas; } - public void setAvailableReplicas(Integer availableReplicas) { + public void setAvailableReplicas(@jakarta.annotation.Nullable Integer availableReplicas) { this.availableReplicas = availableReplicas; } - public V1StatefulSetStatus collisionCount(Integer collisionCount) { + public V1StatefulSetStatus collisionCount(@jakarta.annotation.Nullable Integer collisionCount) { this.collisionCount = collisionCount; return this; } - /** + /** * collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. * @return collisionCount - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.") public Integer getCollisionCount() { return collisionCount; } - public void setCollisionCount(Integer collisionCount) { + public void setCollisionCount(@jakarta.annotation.Nullable Integer collisionCount) { this.collisionCount = collisionCount; } - public V1StatefulSetStatus conditions(List conditions) { + public V1StatefulSetStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } @@ -152,157 +161,157 @@ public V1StatefulSetStatus addConditionsItem(V1StatefulSetCondition conditionsIt return this; } - /** + /** * Represents the latest available observations of a statefulset's current state. * @return conditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Represents the latest available observations of a statefulset's current state.") public List getConditions() { return conditions; } - public void setConditions(List conditions) { + public void setConditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; } - public V1StatefulSetStatus currentReplicas(Integer currentReplicas) { + public V1StatefulSetStatus currentReplicas(@jakarta.annotation.Nullable Integer currentReplicas) { this.currentReplicas = currentReplicas; return this; } - /** + /** * currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. * @return currentReplicas - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.") public Integer getCurrentReplicas() { return currentReplicas; } - public void setCurrentReplicas(Integer currentReplicas) { + public void setCurrentReplicas(@jakarta.annotation.Nullable Integer currentReplicas) { this.currentReplicas = currentReplicas; } - public V1StatefulSetStatus currentRevision(String currentRevision) { + public V1StatefulSetStatus currentRevision(@jakarta.annotation.Nullable String currentRevision) { this.currentRevision = currentRevision; return this; } - /** + /** * currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). * @return currentRevision - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).") public String getCurrentRevision() { return currentRevision; } - public void setCurrentRevision(String currentRevision) { + public void setCurrentRevision(@jakarta.annotation.Nullable String currentRevision) { this.currentRevision = currentRevision; } - public V1StatefulSetStatus observedGeneration(Long observedGeneration) { + public V1StatefulSetStatus observedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { this.observedGeneration = observedGeneration; return this; } - /** + /** * observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. * @return observedGeneration - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.") public Long getObservedGeneration() { return observedGeneration; } - public void setObservedGeneration(Long observedGeneration) { + public void setObservedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { this.observedGeneration = observedGeneration; } - public V1StatefulSetStatus readyReplicas(Integer readyReplicas) { + public V1StatefulSetStatus readyReplicas(@jakarta.annotation.Nullable Integer readyReplicas) { this.readyReplicas = readyReplicas; return this; } - /** + /** * readyReplicas is the number of pods created for this StatefulSet with a Ready Condition. * @return readyReplicas - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readyReplicas is the number of pods created for this StatefulSet with a Ready Condition.") public Integer getReadyReplicas() { return readyReplicas; } - public void setReadyReplicas(Integer readyReplicas) { + public void setReadyReplicas(@jakarta.annotation.Nullable Integer readyReplicas) { this.readyReplicas = readyReplicas; } - public V1StatefulSetStatus replicas(Integer replicas) { + public V1StatefulSetStatus replicas(@jakarta.annotation.Nonnull Integer replicas) { this.replicas = replicas; return this; } - /** + /** * replicas is the number of Pods created by the StatefulSet controller. * @return replicas - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "replicas is the number of Pods created by the StatefulSet controller.") public Integer getReplicas() { return replicas; } - public void setReplicas(Integer replicas) { + public void setReplicas(@jakarta.annotation.Nonnull Integer replicas) { this.replicas = replicas; } - public V1StatefulSetStatus updateRevision(String updateRevision) { + public V1StatefulSetStatus updateRevision(@jakarta.annotation.Nullable String updateRevision) { this.updateRevision = updateRevision; return this; } - /** + /** * updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) * @return updateRevision - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)") public String getUpdateRevision() { return updateRevision; } - public void setUpdateRevision(String updateRevision) { + public void setUpdateRevision(@jakarta.annotation.Nullable String updateRevision) { this.updateRevision = updateRevision; } - public V1StatefulSetStatus updatedReplicas(Integer updatedReplicas) { + public V1StatefulSetStatus updatedReplicas(@jakarta.annotation.Nullable Integer updatedReplicas) { this.updatedReplicas = updatedReplicas; return this; } - /** + /** * updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. * @return updatedReplicas - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.") public Integer getUpdatedReplicas() { return updatedReplicas; } - public void setUpdatedReplicas(Integer updatedReplicas) { + public void setUpdatedReplicas(@jakarta.annotation.Nullable Integer updatedReplicas) { this.updatedReplicas = updatedReplicas; } @@ -386,12 +395,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("replicas"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1StatefulSetStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1StatefulSetStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StatefulSetStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -465,22 +474,22 @@ public V1StatefulSetStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1StatefulSetStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1StatefulSetStatus - * @throws IOException if the JSON string is invalid with respect to V1StatefulSetStatus - */ + /** + * Create an instance of V1StatefulSetStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StatefulSetStatus + * @throws IOException if the JSON string is invalid with respect to V1StatefulSetStatus + */ public static V1StatefulSetStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1StatefulSetStatus.class); } - /** - * Convert an instance of V1StatefulSetStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1StatefulSetStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategy.java index ab739d1546..ed2ac96156 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategy.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy. */ @ApiModel(description = "StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StatefulSetUpdateStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) + @jakarta.annotation.Nullable private V1RollingUpdateStatefulSetStrategy rollingUpdate; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nullable private String type; public V1StatefulSetUpdateStrategy() { } - public V1StatefulSetUpdateStrategy rollingUpdate(V1RollingUpdateStatefulSetStrategy rollingUpdate) { + public V1StatefulSetUpdateStrategy rollingUpdate(@jakarta.annotation.Nullable V1RollingUpdateStatefulSetStrategy rollingUpdate) { this.rollingUpdate = rollingUpdate; return this; } - /** + /** * Get rollingUpdate * @return rollingUpdate - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1RollingUpdateStatefulSetStrategy getRollingUpdate() { return rollingUpdate; } - public void setRollingUpdate(V1RollingUpdateStatefulSetStrategy rollingUpdate) { + public void setRollingUpdate(@jakarta.annotation.Nullable V1RollingUpdateStatefulSetStrategy rollingUpdate) { this.rollingUpdate = rollingUpdate; } - public V1StatefulSetUpdateStrategy type(String type) { + public V1StatefulSetUpdateStrategy type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } - /** + /** * Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. * @return type - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1StatefulSetUpdateStrategy - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1StatefulSetUpdateStrategy + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StatefulSetUpdateStrategy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -218,22 +219,22 @@ public V1StatefulSetUpdateStrategy read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1StatefulSetUpdateStrategy given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1StatefulSetUpdateStrategy - * @throws IOException if the JSON string is invalid with respect to V1StatefulSetUpdateStrategy - */ + /** + * Create an instance of V1StatefulSetUpdateStrategy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StatefulSetUpdateStrategy + * @throws IOException if the JSON string is invalid with respect to V1StatefulSetUpdateStrategy + */ public static V1StatefulSetUpdateStrategy fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1StatefulSetUpdateStrategy.class); } - /** - * Convert an instance of V1StatefulSetUpdateStrategy to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1StatefulSetUpdateStrategy to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Status.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Status.java index f12e8e2044..2780b3a756 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Status.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Status.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,199 +52,207 @@ * Status is a return value for calls that don't return other objects. */ @ApiModel(description = "Status is a return value for calls that don't return other objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Status { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) + @jakarta.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_DETAILS = "details"; @SerializedName(SERIALIZED_NAME_DETAILS) + @jakarta.annotation.Nullable private V1StatusDetails details; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private String status; public V1Status() { } - public V1Status apiVersion(String apiVersion) { + public V1Status apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1Status code(Integer code) { + public V1Status code(@jakarta.annotation.Nullable Integer code) { this.code = code; return this; } - /** + /** * Suggested HTTP return code for this status, 0 if not set. * @return code - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Suggested HTTP return code for this status, 0 if not set.") public Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@jakarta.annotation.Nullable Integer code) { this.code = code; } - public V1Status details(V1StatusDetails details) { + public V1Status details(@jakarta.annotation.Nullable V1StatusDetails details) { this.details = details; return this; } - /** + /** * Get details * @return details - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1StatusDetails getDetails() { return details; } - public void setDetails(V1StatusDetails details) { + public void setDetails(@jakarta.annotation.Nullable V1StatusDetails details) { this.details = details; } - public V1Status kind(String kind) { + public V1Status kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1Status message(String message) { + public V1Status message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * A human-readable description of the status of this operation. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A human-readable description of the status of this operation.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1Status metadata(V1ListMeta metadata) { + public V1Status metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } - public V1Status reason(String reason) { + public V1Status reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } - public V1Status status(String status) { + public V1Status status(@jakarta.annotation.Nullable String status) { this.status = status; return this; } - /** + /** * Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status") public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nullable String status) { this.status = status; } @@ -322,12 +329,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Status - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Status + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Status.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -398,22 +405,22 @@ public V1Status read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Status given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Status - * @throws IOException if the JSON string is invalid with respect to V1Status - */ + /** + * Create an instance of V1Status given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Status + * @throws IOException if the JSON string is invalid with respect to V1Status + */ public static V1Status fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Status.class); } - /** - * Convert an instance of V1Status to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Status to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusCause.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusCause.java index b4fc5622a8..36e41291e7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusCause.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusCause.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,79 +50,82 @@ * StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered. */ @ApiModel(description = "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StatusCause { public static final String SERIALIZED_NAME_FIELD = "field"; @SerializedName(SERIALIZED_NAME_FIELD) + @jakarta.annotation.Nullable private String field; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public V1StatusCause() { } - public V1StatusCause field(String field) { + public V1StatusCause field(@jakarta.annotation.Nullable String field) { this.field = field; return this; } - /** + /** * The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" * @return field - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\"") public String getField() { return field; } - public void setField(String field) { + public void setField(@jakarta.annotation.Nullable String field) { this.field = field; } - public V1StatusCause message(String message) { + public V1StatusCause message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * A human-readable description of the cause of the error. This field may be presented as-is to a reader. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A human-readable description of the cause of the error. This field may be presented as-is to a reader.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1StatusCause reason(String reason) { + public V1StatusCause reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * A machine-readable description of the cause of the error. If this value is empty there is no information available. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A machine-readable description of the cause of the error. If this value is empty there is no information available.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } @@ -185,12 +187,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1StatusCause - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1StatusCause + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StatusCause.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -246,22 +248,22 @@ public V1StatusCause read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1StatusCause given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1StatusCause - * @throws IOException if the JSON string is invalid with respect to V1StatusCause - */ + /** + * Create an instance of V1StatusCause given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StatusCause + * @throws IOException if the JSON string is invalid with respect to V1StatusCause + */ public static V1StatusCause fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1StatusCause.class); } - /** - * Convert an instance of V1StatusCause to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1StatusCause to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java index 7929ec2719..799eff9c0e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,36 +53,42 @@ * StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined. */ @ApiModel(description = "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StatusDetails { public static final String SERIALIZED_NAME_CAUSES = "causes"; @SerializedName(SERIALIZED_NAME_CAUSES) + @jakarta.annotation.Nullable private List causes = new ArrayList<>(); public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) + @jakarta.annotation.Nullable private String group; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_RETRY_AFTER_SECONDS = "retryAfterSeconds"; @SerializedName(SERIALIZED_NAME_RETRY_AFTER_SECONDS) + @jakarta.annotation.Nullable private Integer retryAfterSeconds; public static final String SERIALIZED_NAME_UID = "uid"; @SerializedName(SERIALIZED_NAME_UID) + @jakarta.annotation.Nullable private String uid; public V1StatusDetails() { } - public V1StatusDetails causes(List causes) { + public V1StatusDetails causes(@jakarta.annotation.Nullable List causes) { this.causes = causes; return this; } @@ -96,117 +101,117 @@ public V1StatusDetails addCausesItem(V1StatusCause causesItem) { return this; } - /** + /** * The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. * @return causes - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.") public List getCauses() { return causes; } - public void setCauses(List causes) { + public void setCauses(@jakarta.annotation.Nullable List causes) { this.causes = causes; } - public V1StatusDetails group(String group) { + public V1StatusDetails group(@jakarta.annotation.Nullable String group) { this.group = group; return this; } - /** + /** * The group attribute of the resource associated with the status StatusReason. * @return group - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The group attribute of the resource associated with the status StatusReason.") public String getGroup() { return group; } - public void setGroup(String group) { + public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; } - public V1StatusDetails kind(String kind) { + public V1StatusDetails kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1StatusDetails name(String name) { + public V1StatusDetails name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public V1StatusDetails retryAfterSeconds(Integer retryAfterSeconds) { + public V1StatusDetails retryAfterSeconds(@jakarta.annotation.Nullable Integer retryAfterSeconds) { this.retryAfterSeconds = retryAfterSeconds; return this; } - /** + /** * If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. * @return retryAfterSeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.") public Integer getRetryAfterSeconds() { return retryAfterSeconds; } - public void setRetryAfterSeconds(Integer retryAfterSeconds) { + public void setRetryAfterSeconds(@jakarta.annotation.Nullable Integer retryAfterSeconds) { this.retryAfterSeconds = retryAfterSeconds; } - public V1StatusDetails uid(String uid) { + public V1StatusDetails uid(@jakarta.annotation.Nullable String uid) { this.uid = uid; return this; } - /** + /** * UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids * @return uid - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids") public String getUid() { return uid; } - public void setUid(String uid) { + public void setUid(@jakarta.annotation.Nullable String uid) { this.uid = uid; } @@ -277,12 +282,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1StatusDetails - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1StatusDetails + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StatusDetails.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -355,22 +360,22 @@ public V1StatusDetails read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1StatusDetails given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1StatusDetails - * @throws IOException if the JSON string is invalid with respect to V1StatusDetails - */ + /** + * Create an instance of V1StatusDetails given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StatusDetails + * @throws IOException if the JSON string is invalid with respect to V1StatusDetails + */ public static V1StatusDetails fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1StatusDetails.class); } - /** - * Convert an instance of V1StatusDetails to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1StatusDetails to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClass.java index 4040b5f6a3..c785aa454e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClass.java @@ -44,7 +44,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -57,72 +56,82 @@ * StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. */ @ApiModel(description = "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StorageClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ALLOW_VOLUME_EXPANSION = "allowVolumeExpansion"; @SerializedName(SERIALIZED_NAME_ALLOW_VOLUME_EXPANSION) + @jakarta.annotation.Nullable private Boolean allowVolumeExpansion; public static final String SERIALIZED_NAME_ALLOWED_TOPOLOGIES = "allowedTopologies"; @SerializedName(SERIALIZED_NAME_ALLOWED_TOPOLOGIES) + @jakarta.annotation.Nullable private List allowedTopologies = new ArrayList<>(); public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_MOUNT_OPTIONS = "mountOptions"; @SerializedName(SERIALIZED_NAME_MOUNT_OPTIONS) + @jakarta.annotation.Nullable private List mountOptions = new ArrayList<>(); public static final String SERIALIZED_NAME_PARAMETERS = "parameters"; @SerializedName(SERIALIZED_NAME_PARAMETERS) + @jakarta.annotation.Nullable private Map parameters = new HashMap<>(); public static final String SERIALIZED_NAME_PROVISIONER = "provisioner"; @SerializedName(SERIALIZED_NAME_PROVISIONER) + @jakarta.annotation.Nonnull private String provisioner; public static final String SERIALIZED_NAME_RECLAIM_POLICY = "reclaimPolicy"; @SerializedName(SERIALIZED_NAME_RECLAIM_POLICY) + @jakarta.annotation.Nullable private String reclaimPolicy; public static final String SERIALIZED_NAME_VOLUME_BINDING_MODE = "volumeBindingMode"; @SerializedName(SERIALIZED_NAME_VOLUME_BINDING_MODE) + @jakarta.annotation.Nullable private String volumeBindingMode; public V1StorageClass() { } - public V1StorageClass allowVolumeExpansion(Boolean allowVolumeExpansion) { + public V1StorageClass allowVolumeExpansion(@jakarta.annotation.Nullable Boolean allowVolumeExpansion) { this.allowVolumeExpansion = allowVolumeExpansion; return this; } - /** + /** * allowVolumeExpansion shows whether the storage class allow volume expand. * @return allowVolumeExpansion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "allowVolumeExpansion shows whether the storage class allow volume expand.") public Boolean getAllowVolumeExpansion() { return allowVolumeExpansion; } - public void setAllowVolumeExpansion(Boolean allowVolumeExpansion) { + public void setAllowVolumeExpansion(@jakarta.annotation.Nullable Boolean allowVolumeExpansion) { this.allowVolumeExpansion = allowVolumeExpansion; } - public V1StorageClass allowedTopologies(List allowedTopologies) { + public V1StorageClass allowedTopologies(@jakarta.annotation.Nullable List allowedTopologies) { this.allowedTopologies = allowedTopologies; return this; } @@ -135,82 +144,82 @@ public V1StorageClass addAllowedTopologiesItem(V1TopologySelectorTerm allowedTop return this; } - /** + /** * allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. * @return allowedTopologies - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.") public List getAllowedTopologies() { return allowedTopologies; } - public void setAllowedTopologies(List allowedTopologies) { + public void setAllowedTopologies(@jakarta.annotation.Nullable List allowedTopologies) { this.allowedTopologies = allowedTopologies; } - public V1StorageClass apiVersion(String apiVersion) { + public V1StorageClass apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1StorageClass kind(String kind) { + public V1StorageClass kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1StorageClass metadata(V1ObjectMeta metadata) { + public V1StorageClass metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1StorageClass mountOptions(List mountOptions) { + public V1StorageClass mountOptions(@jakarta.annotation.Nullable List mountOptions) { this.mountOptions = mountOptions; return this; } @@ -223,22 +232,22 @@ public V1StorageClass addMountOptionsItem(String mountOptionsItem) { return this; } - /** + /** * mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid. * @return mountOptions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.") public List getMountOptions() { return mountOptions; } - public void setMountOptions(List mountOptions) { + public void setMountOptions(@jakarta.annotation.Nullable List mountOptions) { this.mountOptions = mountOptions; } - public V1StorageClass parameters(Map parameters) { + public V1StorageClass parameters(@jakarta.annotation.Nullable Map parameters) { this.parameters = parameters; return this; } @@ -251,77 +260,77 @@ public V1StorageClass putParametersItem(String key, String parametersItem) { return this; } - /** + /** * parameters holds the parameters for the provisioner that should create volumes of this storage class. * @return parameters - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "parameters holds the parameters for the provisioner that should create volumes of this storage class.") public Map getParameters() { return parameters; } - public void setParameters(Map parameters) { + public void setParameters(@jakarta.annotation.Nullable Map parameters) { this.parameters = parameters; } - public V1StorageClass provisioner(String provisioner) { + public V1StorageClass provisioner(@jakarta.annotation.Nonnull String provisioner) { this.provisioner = provisioner; return this; } - /** + /** * provisioner indicates the type of the provisioner. * @return provisioner - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "provisioner indicates the type of the provisioner.") public String getProvisioner() { return provisioner; } - public void setProvisioner(String provisioner) { + public void setProvisioner(@jakarta.annotation.Nonnull String provisioner) { this.provisioner = provisioner; } - public V1StorageClass reclaimPolicy(String reclaimPolicy) { + public V1StorageClass reclaimPolicy(@jakarta.annotation.Nullable String reclaimPolicy) { this.reclaimPolicy = reclaimPolicy; return this; } - /** + /** * reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete. * @return reclaimPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.") public String getReclaimPolicy() { return reclaimPolicy; } - public void setReclaimPolicy(String reclaimPolicy) { + public void setReclaimPolicy(@jakarta.annotation.Nullable String reclaimPolicy) { this.reclaimPolicy = reclaimPolicy; } - public V1StorageClass volumeBindingMode(String volumeBindingMode) { + public V1StorageClass volumeBindingMode(@jakarta.annotation.Nullable String volumeBindingMode) { this.volumeBindingMode = volumeBindingMode; return this; } - /** + /** * volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. * @return volumeBindingMode - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.") public String getVolumeBindingMode() { return volumeBindingMode; } - public void setVolumeBindingMode(String volumeBindingMode) { + public void setVolumeBindingMode(@jakarta.annotation.Nullable String volumeBindingMode) { this.volumeBindingMode = volumeBindingMode; } @@ -405,12 +414,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("provisioner"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1StorageClass - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1StorageClass + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StorageClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -501,22 +510,22 @@ public V1StorageClass read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1StorageClass given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1StorageClass - * @throws IOException if the JSON string is invalid with respect to V1StorageClass - */ + /** + * Create an instance of V1StorageClass given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StorageClass + * @throws IOException if the JSON string is invalid with respect to V1StorageClass + */ public static V1StorageClass fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1StorageClass.class); } - /** - * Convert an instance of V1StorageClass to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1StorageClass to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassList.java index 1da598ee81..b9f8a9a8b7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * StorageClassList is a collection of storage classes. */ @ApiModel(description = "StorageClassList is a collection of storage classes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StorageClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1StorageClassList() { } - public V1StorageClassList apiVersion(String apiVersion) { + public V1StorageClassList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1StorageClassList items(List items) { + public V1StorageClassList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1StorageClassList addItemsItem(V1StorageClass itemsItem) { return this; } - /** + /** * items is the list of StorageClasses * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is the list of StorageClasses") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1StorageClassList kind(String kind) { + public V1StorageClassList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1StorageClassList metadata(V1ListMeta metadata) { + public V1StorageClassList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1StorageClassList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1StorageClassList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StorageClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1StorageClassList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1StorageClassList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1StorageClassList - * @throws IOException if the JSON string is invalid with respect to V1StorageClassList - */ + /** + * Create an instance of V1StorageClassList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StorageClassList + * @throws IOException if the JSON string is invalid with respect to V1StorageClassList + */ public static V1StorageClassList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1StorageClassList.class); } - /** - * Convert an instance of V1StorageClassList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1StorageClassList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSource.java index 3c2e56a305..65388cbab5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSource.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,127 +51,132 @@ * Represents a StorageOS persistent volume resource. */ @ApiModel(description = "Represents a StorageOS persistent volume resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StorageOSPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) + @jakarta.annotation.Nullable private String fsType; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; @SerializedName(SERIALIZED_NAME_SECRET_REF) + @jakarta.annotation.Nullable private V1ObjectReference secretRef; public static final String SERIALIZED_NAME_VOLUME_NAME = "volumeName"; @SerializedName(SERIALIZED_NAME_VOLUME_NAME) + @jakarta.annotation.Nullable private String volumeName; public static final String SERIALIZED_NAME_VOLUME_NAMESPACE = "volumeNamespace"; @SerializedName(SERIALIZED_NAME_VOLUME_NAMESPACE) + @jakarta.annotation.Nullable private String volumeNamespace; public V1StorageOSPersistentVolumeSource() { } - public V1StorageOSPersistentVolumeSource fsType(String fsType) { + public V1StorageOSPersistentVolumeSource fsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; return this; } - /** + /** * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. * @return fsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.") public String getFsType() { return fsType; } - public void setFsType(String fsType) { + public void setFsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; } - public V1StorageOSPersistentVolumeSource readOnly(Boolean readOnly) { + public V1StorageOSPersistentVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1StorageOSPersistentVolumeSource secretRef(V1ObjectReference secretRef) { + public V1StorageOSPersistentVolumeSource secretRef(@jakarta.annotation.Nullable V1ObjectReference secretRef) { this.secretRef = secretRef; return this; } - /** + /** * Get secretRef * @return secretRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectReference getSecretRef() { return secretRef; } - public void setSecretRef(V1ObjectReference secretRef) { + public void setSecretRef(@jakarta.annotation.Nullable V1ObjectReference secretRef) { this.secretRef = secretRef; } - public V1StorageOSPersistentVolumeSource volumeName(String volumeName) { + public V1StorageOSPersistentVolumeSource volumeName(@jakarta.annotation.Nullable String volumeName) { this.volumeName = volumeName; return this; } - /** + /** * volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. * @return volumeName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.") public String getVolumeName() { return volumeName; } - public void setVolumeName(String volumeName) { + public void setVolumeName(@jakarta.annotation.Nullable String volumeName) { this.volumeName = volumeName; } - public V1StorageOSPersistentVolumeSource volumeNamespace(String volumeNamespace) { + public V1StorageOSPersistentVolumeSource volumeNamespace(@jakarta.annotation.Nullable String volumeNamespace) { this.volumeNamespace = volumeNamespace; return this; } - /** + /** * volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. * @return volumeNamespace - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.") public String getVolumeNamespace() { return volumeNamespace; } - public void setVolumeNamespace(String volumeNamespace) { + public void setVolumeNamespace(@jakarta.annotation.Nullable String volumeNamespace) { this.volumeNamespace = volumeNamespace; } @@ -240,12 +244,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1StorageOSPersistentVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1StorageOSPersistentVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StorageOSPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -305,22 +309,22 @@ public V1StorageOSPersistentVolumeSource read(JsonReader in) throws IOException } } - /** - * Create an instance of V1StorageOSPersistentVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1StorageOSPersistentVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1StorageOSPersistentVolumeSource - */ + /** + * Create an instance of V1StorageOSPersistentVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StorageOSPersistentVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1StorageOSPersistentVolumeSource + */ public static V1StorageOSPersistentVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1StorageOSPersistentVolumeSource.class); } - /** - * Convert an instance of V1StorageOSPersistentVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1StorageOSPersistentVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSource.java index 8e6ecfcb1f..f54291440a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSource.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,127 +51,132 @@ * Represents a StorageOS persistent volume resource. */ @ApiModel(description = "Represents a StorageOS persistent volume resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StorageOSVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) + @jakarta.annotation.Nullable private String fsType; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; @SerializedName(SERIALIZED_NAME_SECRET_REF) + @jakarta.annotation.Nullable private V1LocalObjectReference secretRef; public static final String SERIALIZED_NAME_VOLUME_NAME = "volumeName"; @SerializedName(SERIALIZED_NAME_VOLUME_NAME) + @jakarta.annotation.Nullable private String volumeName; public static final String SERIALIZED_NAME_VOLUME_NAMESPACE = "volumeNamespace"; @SerializedName(SERIALIZED_NAME_VOLUME_NAMESPACE) + @jakarta.annotation.Nullable private String volumeNamespace; public V1StorageOSVolumeSource() { } - public V1StorageOSVolumeSource fsType(String fsType) { + public V1StorageOSVolumeSource fsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; return this; } - /** + /** * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. * @return fsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.") public String getFsType() { return fsType; } - public void setFsType(String fsType) { + public void setFsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; } - public V1StorageOSVolumeSource readOnly(Boolean readOnly) { + public V1StorageOSVolumeSource readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1StorageOSVolumeSource secretRef(V1LocalObjectReference secretRef) { + public V1StorageOSVolumeSource secretRef(@jakarta.annotation.Nullable V1LocalObjectReference secretRef) { this.secretRef = secretRef; return this; } - /** + /** * Get secretRef * @return secretRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LocalObjectReference getSecretRef() { return secretRef; } - public void setSecretRef(V1LocalObjectReference secretRef) { + public void setSecretRef(@jakarta.annotation.Nullable V1LocalObjectReference secretRef) { this.secretRef = secretRef; } - public V1StorageOSVolumeSource volumeName(String volumeName) { + public V1StorageOSVolumeSource volumeName(@jakarta.annotation.Nullable String volumeName) { this.volumeName = volumeName; return this; } - /** + /** * volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. * @return volumeName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.") public String getVolumeName() { return volumeName; } - public void setVolumeName(String volumeName) { + public void setVolumeName(@jakarta.annotation.Nullable String volumeName) { this.volumeName = volumeName; } - public V1StorageOSVolumeSource volumeNamespace(String volumeNamespace) { + public V1StorageOSVolumeSource volumeNamespace(@jakarta.annotation.Nullable String volumeNamespace) { this.volumeNamespace = volumeNamespace; return this; } - /** + /** * volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. * @return volumeNamespace - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.") public String getVolumeNamespace() { return volumeNamespace; } - public void setVolumeNamespace(String volumeNamespace) { + public void setVolumeNamespace(@jakarta.annotation.Nullable String volumeNamespace) { this.volumeNamespace = volumeNamespace; } @@ -240,12 +244,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1StorageOSVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1StorageOSVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StorageOSVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -305,22 +309,22 @@ public V1StorageOSVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1StorageOSVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1StorageOSVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1StorageOSVolumeSource - */ + /** + * Create an instance of V1StorageOSVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StorageOSVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1StorageOSVolumeSource + */ public static V1StorageOSVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1StorageOSVolumeSource.class); } - /** - * Convert an instance of V1StorageOSVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1StorageOSVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReview.java index 927b5a17ae..f7feb1370e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReview.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * SubjectAccessReview checks whether or not a user or group can perform an action. */ @ApiModel(description = "SubjectAccessReview checks whether or not a user or group can perform an action.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nonnull private V1SubjectAccessReviewSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1SubjectAccessReviewStatus status; public V1SubjectAccessReview() { } - public V1SubjectAccessReview apiVersion(String apiVersion) { + public V1SubjectAccessReview apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1SubjectAccessReview kind(String kind) { + public V1SubjectAccessReview kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1SubjectAccessReview metadata(V1ObjectMeta metadata) { + public V1SubjectAccessReview metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1SubjectAccessReview spec(V1SubjectAccessReviewSpec spec) { + public V1SubjectAccessReview spec(@jakarta.annotation.Nonnull V1SubjectAccessReviewSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1SubjectAccessReviewSpec getSpec() { return spec; } - public void setSpec(V1SubjectAccessReviewSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1SubjectAccessReviewSpec spec) { this.spec = spec; } - public V1SubjectAccessReview status(V1SubjectAccessReviewStatus status) { + public V1SubjectAccessReview status(@jakarta.annotation.Nullable V1SubjectAccessReviewStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SubjectAccessReviewStatus getStatus() { return status; } - public void setStatus(V1SubjectAccessReviewStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1SubjectAccessReviewStatus status) { this.status = status; } @@ -243,12 +247,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("spec"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SubjectAccessReview - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SubjectAccessReview + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SubjectAccessReview.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -318,22 +322,22 @@ public V1SubjectAccessReview read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SubjectAccessReview given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SubjectAccessReview - * @throws IOException if the JSON string is invalid with respect to V1SubjectAccessReview - */ + /** + * Create an instance of V1SubjectAccessReview given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SubjectAccessReview + * @throws IOException if the JSON string is invalid with respect to V1SubjectAccessReview + */ public static V1SubjectAccessReview fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SubjectAccessReview.class); } - /** - * Convert an instance of V1SubjectAccessReview to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SubjectAccessReview to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpec.java index 7adfb8d395..3e7462040d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpec.java @@ -44,7 +44,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -57,36 +56,42 @@ * SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set */ @ApiModel(description = "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SubjectAccessReviewSpec { public static final String SERIALIZED_NAME_EXTRA = "extra"; @SerializedName(SERIALIZED_NAME_EXTRA) + @jakarta.annotation.Nullable private Map> extra = new HashMap<>(); public static final String SERIALIZED_NAME_GROUPS = "groups"; @SerializedName(SERIALIZED_NAME_GROUPS) + @jakarta.annotation.Nullable private List groups = new ArrayList<>(); public static final String SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES = "nonResourceAttributes"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES) + @jakarta.annotation.Nullable private V1NonResourceAttributes nonResourceAttributes; public static final String SERIALIZED_NAME_RESOURCE_ATTRIBUTES = "resourceAttributes"; @SerializedName(SERIALIZED_NAME_RESOURCE_ATTRIBUTES) + @jakarta.annotation.Nullable private V1ResourceAttributes resourceAttributes; public static final String SERIALIZED_NAME_UID = "uid"; @SerializedName(SERIALIZED_NAME_UID) + @jakarta.annotation.Nullable private String uid; public static final String SERIALIZED_NAME_USER = "user"; @SerializedName(SERIALIZED_NAME_USER) + @jakarta.annotation.Nullable private String user; public V1SubjectAccessReviewSpec() { } - public V1SubjectAccessReviewSpec extra(Map> extra) { + public V1SubjectAccessReviewSpec extra(@jakarta.annotation.Nullable Map> extra) { this.extra = extra; return this; } @@ -99,22 +104,22 @@ public V1SubjectAccessReviewSpec putExtraItem(String key, List extraItem return this; } - /** + /** * Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. * @return extra - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.") public Map> getExtra() { return extra; } - public void setExtra(Map> extra) { + public void setExtra(@jakarta.annotation.Nullable Map> extra) { this.extra = extra; } - public V1SubjectAccessReviewSpec groups(List groups) { + public V1SubjectAccessReviewSpec groups(@jakarta.annotation.Nullable List groups) { this.groups = groups; return this; } @@ -127,97 +132,97 @@ public V1SubjectAccessReviewSpec addGroupsItem(String groupsItem) { return this; } - /** + /** * Groups is the groups you're testing for. * @return groups - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Groups is the groups you're testing for.") public List getGroups() { return groups; } - public void setGroups(List groups) { + public void setGroups(@jakarta.annotation.Nullable List groups) { this.groups = groups; } - public V1SubjectAccessReviewSpec nonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) { + public V1SubjectAccessReviewSpec nonResourceAttributes(@jakarta.annotation.Nullable V1NonResourceAttributes nonResourceAttributes) { this.nonResourceAttributes = nonResourceAttributes; return this; } - /** + /** * Get nonResourceAttributes * @return nonResourceAttributes - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1NonResourceAttributes getNonResourceAttributes() { return nonResourceAttributes; } - public void setNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) { + public void setNonResourceAttributes(@jakarta.annotation.Nullable V1NonResourceAttributes nonResourceAttributes) { this.nonResourceAttributes = nonResourceAttributes; } - public V1SubjectAccessReviewSpec resourceAttributes(V1ResourceAttributes resourceAttributes) { + public V1SubjectAccessReviewSpec resourceAttributes(@jakarta.annotation.Nullable V1ResourceAttributes resourceAttributes) { this.resourceAttributes = resourceAttributes; return this; } - /** + /** * Get resourceAttributes * @return resourceAttributes - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ResourceAttributes getResourceAttributes() { return resourceAttributes; } - public void setResourceAttributes(V1ResourceAttributes resourceAttributes) { + public void setResourceAttributes(@jakarta.annotation.Nullable V1ResourceAttributes resourceAttributes) { this.resourceAttributes = resourceAttributes; } - public V1SubjectAccessReviewSpec uid(String uid) { + public V1SubjectAccessReviewSpec uid(@jakarta.annotation.Nullable String uid) { this.uid = uid; return this; } - /** + /** * UID information about the requesting user. * @return uid - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "UID information about the requesting user.") public String getUid() { return uid; } - public void setUid(String uid) { + public void setUid(@jakarta.annotation.Nullable String uid) { this.uid = uid; } - public V1SubjectAccessReviewSpec user(String user) { + public V1SubjectAccessReviewSpec user(@jakarta.annotation.Nullable String user) { this.user = user; return this; } - /** + /** * User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups * @return user - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups") public String getUser() { return user; } - public void setUser(String user) { + public void setUser(@jakarta.annotation.Nullable String user) { this.user = user; } @@ -288,12 +293,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SubjectAccessReviewSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SubjectAccessReviewSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SubjectAccessReviewSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -358,22 +363,22 @@ public V1SubjectAccessReviewSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SubjectAccessReviewSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SubjectAccessReviewSpec - * @throws IOException if the JSON string is invalid with respect to V1SubjectAccessReviewSpec - */ + /** + * Create an instance of V1SubjectAccessReviewSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SubjectAccessReviewSpec + * @throws IOException if the JSON string is invalid with respect to V1SubjectAccessReviewSpec + */ public static V1SubjectAccessReviewSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SubjectAccessReviewSpec.class); } - /** - * Convert an instance of V1SubjectAccessReviewSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SubjectAccessReviewSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatus.java index 0eff14cbff..7d342e8800 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatus.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,103 +50,107 @@ * SubjectAccessReviewStatus */ @ApiModel(description = "SubjectAccessReviewStatus") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SubjectAccessReviewStatus { public static final String SERIALIZED_NAME_ALLOWED = "allowed"; @SerializedName(SERIALIZED_NAME_ALLOWED) + @jakarta.annotation.Nonnull private Boolean allowed; public static final String SERIALIZED_NAME_DENIED = "denied"; @SerializedName(SERIALIZED_NAME_DENIED) + @jakarta.annotation.Nullable private Boolean denied; public static final String SERIALIZED_NAME_EVALUATION_ERROR = "evaluationError"; @SerializedName(SERIALIZED_NAME_EVALUATION_ERROR) + @jakarta.annotation.Nullable private String evaluationError; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public V1SubjectAccessReviewStatus() { } - public V1SubjectAccessReviewStatus allowed(Boolean allowed) { + public V1SubjectAccessReviewStatus allowed(@jakarta.annotation.Nonnull Boolean allowed) { this.allowed = allowed; return this; } - /** + /** * Allowed is required. True if the action would be allowed, false otherwise. * @return allowed - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Allowed is required. True if the action would be allowed, false otherwise.") public Boolean getAllowed() { return allowed; } - public void setAllowed(Boolean allowed) { + public void setAllowed(@jakarta.annotation.Nonnull Boolean allowed) { this.allowed = allowed; } - public V1SubjectAccessReviewStatus denied(Boolean denied) { + public V1SubjectAccessReviewStatus denied(@jakarta.annotation.Nullable Boolean denied) { this.denied = denied; return this; } - /** + /** * Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. * @return denied - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.") public Boolean getDenied() { return denied; } - public void setDenied(Boolean denied) { + public void setDenied(@jakarta.annotation.Nullable Boolean denied) { this.denied = denied; } - public V1SubjectAccessReviewStatus evaluationError(String evaluationError) { + public V1SubjectAccessReviewStatus evaluationError(@jakarta.annotation.Nullable String evaluationError) { this.evaluationError = evaluationError; return this; } - /** + /** * EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. * @return evaluationError - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.") public String getEvaluationError() { return evaluationError; } - public void setEvaluationError(String evaluationError) { + public void setEvaluationError(@jakarta.annotation.Nullable String evaluationError) { this.evaluationError = evaluationError; } - public V1SubjectAccessReviewStatus reason(String reason) { + public V1SubjectAccessReviewStatus reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * Reason is optional. It indicates why a request was allowed or denied. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Reason is optional. It indicates why a request was allowed or denied.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } @@ -213,12 +216,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("allowed"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SubjectAccessReviewStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SubjectAccessReviewStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SubjectAccessReviewStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -278,22 +281,22 @@ public V1SubjectAccessReviewStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SubjectAccessReviewStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SubjectAccessReviewStatus - * @throws IOException if the JSON string is invalid with respect to V1SubjectAccessReviewStatus - */ + /** + * Create an instance of V1SubjectAccessReviewStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SubjectAccessReviewStatus + * @throws IOException if the JSON string is invalid with respect to V1SubjectAccessReviewStatus + */ public static V1SubjectAccessReviewStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SubjectAccessReviewStatus.class); } - /** - * Convert an instance of V1SubjectAccessReviewStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SubjectAccessReviewStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java index d6ab24d92a..664aa1968e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,68 +54,72 @@ * SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete. */ @ApiModel(description = "SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SubjectRulesReviewStatus { public static final String SERIALIZED_NAME_EVALUATION_ERROR = "evaluationError"; @SerializedName(SERIALIZED_NAME_EVALUATION_ERROR) + @jakarta.annotation.Nullable private String evaluationError; public static final String SERIALIZED_NAME_INCOMPLETE = "incomplete"; @SerializedName(SERIALIZED_NAME_INCOMPLETE) + @jakarta.annotation.Nonnull private Boolean incomplete; public static final String SERIALIZED_NAME_NON_RESOURCE_RULES = "nonResourceRules"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_RULES) + @jakarta.annotation.Nonnull private List nonResourceRules = new ArrayList<>(); public static final String SERIALIZED_NAME_RESOURCE_RULES = "resourceRules"; @SerializedName(SERIALIZED_NAME_RESOURCE_RULES) + @jakarta.annotation.Nonnull private List resourceRules = new ArrayList<>(); public V1SubjectRulesReviewStatus() { } - public V1SubjectRulesReviewStatus evaluationError(String evaluationError) { + public V1SubjectRulesReviewStatus evaluationError(@jakarta.annotation.Nullable String evaluationError) { this.evaluationError = evaluationError; return this; } - /** + /** * EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. * @return evaluationError - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.") public String getEvaluationError() { return evaluationError; } - public void setEvaluationError(String evaluationError) { + public void setEvaluationError(@jakarta.annotation.Nullable String evaluationError) { this.evaluationError = evaluationError; } - public V1SubjectRulesReviewStatus incomplete(Boolean incomplete) { + public V1SubjectRulesReviewStatus incomplete(@jakarta.annotation.Nonnull Boolean incomplete) { this.incomplete = incomplete; return this; } - /** + /** * Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. * @return incomplete - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.") public Boolean getIncomplete() { return incomplete; } - public void setIncomplete(Boolean incomplete) { + public void setIncomplete(@jakarta.annotation.Nonnull Boolean incomplete) { this.incomplete = incomplete; } - public V1SubjectRulesReviewStatus nonResourceRules(List nonResourceRules) { + public V1SubjectRulesReviewStatus nonResourceRules(@jakarta.annotation.Nonnull List nonResourceRules) { this.nonResourceRules = nonResourceRules; return this; } @@ -129,22 +132,22 @@ public V1SubjectRulesReviewStatus addNonResourceRulesItem(V1NonResourceRule nonR return this; } - /** + /** * NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. * @return nonResourceRules - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.") public List getNonResourceRules() { return nonResourceRules; } - public void setNonResourceRules(List nonResourceRules) { + public void setNonResourceRules(@jakarta.annotation.Nonnull List nonResourceRules) { this.nonResourceRules = nonResourceRules; } - public V1SubjectRulesReviewStatus resourceRules(List resourceRules) { + public V1SubjectRulesReviewStatus resourceRules(@jakarta.annotation.Nonnull List resourceRules) { this.resourceRules = resourceRules; return this; } @@ -157,17 +160,17 @@ public V1SubjectRulesReviewStatus addResourceRulesItem(V1ResourceRule resourceRu return this; } - /** + /** * ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. * @return resourceRules - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.") public List getResourceRules() { return resourceRules; } - public void setResourceRules(List resourceRules) { + public void setResourceRules(@jakarta.annotation.Nonnull List resourceRules) { this.resourceRules = resourceRules; } @@ -235,12 +238,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("resourceRules"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SubjectRulesReviewStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SubjectRulesReviewStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SubjectRulesReviewStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -317,22 +320,22 @@ public V1SubjectRulesReviewStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SubjectRulesReviewStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SubjectRulesReviewStatus - * @throws IOException if the JSON string is invalid with respect to V1SubjectRulesReviewStatus - */ + /** + * Create an instance of V1SubjectRulesReviewStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SubjectRulesReviewStatus + * @throws IOException if the JSON string is invalid with respect to V1SubjectRulesReviewStatus + */ public static V1SubjectRulesReviewStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SubjectRulesReviewStatus.class); } - /** - * Convert an instance of V1SubjectRulesReviewStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SubjectRulesReviewStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicy.java index e26535c3fd..aebd7c23cb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicy.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,16 +53,17 @@ * SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes. */ @ApiModel(description = "SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SuccessPolicy { public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) + @jakarta.annotation.Nonnull private List rules = new ArrayList<>(); public V1SuccessPolicy() { } - public V1SuccessPolicy rules(List rules) { + public V1SuccessPolicy rules(@jakarta.annotation.Nonnull List rules) { this.rules = rules; return this; } @@ -76,17 +76,17 @@ public V1SuccessPolicy addRulesItem(V1SuccessPolicyRule rulesItem) { return this; } - /** + /** * rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SucceededCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed. * @return rules - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SucceededCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.") public List getRules() { return rules; } - public void setRules(List rules) { + public void setRules(@jakarta.annotation.Nonnull List rules) { this.rules = rules; } @@ -143,12 +143,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("rules"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SuccessPolicy - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SuccessPolicy + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SuccessPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -212,22 +212,22 @@ public V1SuccessPolicy read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SuccessPolicy given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SuccessPolicy - * @throws IOException if the JSON string is invalid with respect to V1SuccessPolicy - */ + /** + * Create an instance of V1SuccessPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SuccessPolicy + * @throws IOException if the JSON string is invalid with respect to V1SuccessPolicy + */ public static V1SuccessPolicy fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SuccessPolicy.class); } - /** - * Convert an instance of V1SuccessPolicy to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SuccessPolicy to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRule.java index 4da7a06e86..8c52d49611 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRule.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the \"succeededIndexes\" or \"succeededCount\" specified. */ @ApiModel(description = "SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the \"succeededIndexes\" or \"succeededCount\" specified.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SuccessPolicyRule { public static final String SERIALIZED_NAME_SUCCEEDED_COUNT = "succeededCount"; @SerializedName(SERIALIZED_NAME_SUCCEEDED_COUNT) + @jakarta.annotation.Nullable private Integer succeededCount; public static final String SERIALIZED_NAME_SUCCEEDED_INDEXES = "succeededIndexes"; @SerializedName(SERIALIZED_NAME_SUCCEEDED_INDEXES) + @jakarta.annotation.Nullable private String succeededIndexes; public V1SuccessPolicyRule() { } - public V1SuccessPolicyRule succeededCount(Integer succeededCount) { + public V1SuccessPolicyRule succeededCount(@jakarta.annotation.Nullable Integer succeededCount) { this.succeededCount = succeededCount; return this; } - /** + /** * succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is \"1-4\", succeededCount is \"3\", and completed indexes are \"1\", \"3\", and \"5\", the Job isn't declared as succeeded because only \"1\" and \"3\" indexes are considered in that rules. When this field is null, this doesn't default to any value and is never evaluated at any time. When specified it needs to be a positive integer. * @return succeededCount - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is \"1-4\", succeededCount is \"3\", and completed indexes are \"1\", \"3\", and \"5\", the Job isn't declared as succeeded because only \"1\" and \"3\" indexes are considered in that rules. When this field is null, this doesn't default to any value and is never evaluated at any time. When specified it needs to be a positive integer.") public Integer getSucceededCount() { return succeededCount; } - public void setSucceededCount(Integer succeededCount) { + public void setSucceededCount(@jakarta.annotation.Nullable Integer succeededCount) { this.succeededCount = succeededCount; } - public V1SuccessPolicyRule succeededIndexes(String succeededIndexes) { + public V1SuccessPolicyRule succeededIndexes(@jakarta.annotation.Nullable String succeededIndexes) { this.succeededIndexes = succeededIndexes; return this; } - /** + /** * succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to \".spec.completions-1\" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". When this field is null, this field doesn't default to any value and is never evaluated at any time. * @return succeededIndexes - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to \".spec.completions-1\" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". When this field is null, this field doesn't default to any value and is never evaluated at any time.") public String getSucceededIndexes() { return succeededIndexes; } - public void setSucceededIndexes(String succeededIndexes) { + public void setSucceededIndexes(@jakarta.annotation.Nullable String succeededIndexes) { this.succeededIndexes = succeededIndexes; } @@ -158,12 +159,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1SuccessPolicyRule - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1SuccessPolicyRule + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SuccessPolicyRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -213,22 +214,22 @@ public V1SuccessPolicyRule read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1SuccessPolicyRule given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1SuccessPolicyRule - * @throws IOException if the JSON string is invalid with respect to V1SuccessPolicyRule - */ + /** + * Create an instance of V1SuccessPolicyRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SuccessPolicyRule + * @throws IOException if the JSON string is invalid with respect to V1SuccessPolicyRule + */ public static V1SuccessPolicyRule fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1SuccessPolicyRule.class); } - /** - * Convert an instance of V1SuccessPolicyRule to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1SuccessPolicyRule to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Sysctl.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Sysctl.java index 94d713301f..77216ca272 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Sysctl.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Sysctl.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * Sysctl defines a kernel parameter to be set */ @ApiModel(description = "Sysctl defines a kernel parameter to be set") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Sysctl { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) + @jakarta.annotation.Nonnull private String value; public V1Sysctl() { } - public V1Sysctl name(String name) { + public V1Sysctl name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name of a property to set * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name of a property to set") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1Sysctl value(String value) { + public V1Sysctl value(@jakarta.annotation.Nonnull String value) { this.value = value; return this; } - /** + /** * Value of a property to set * @return value - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Value of a property to set") public String getValue() { return value; } - public void setValue(String value) { + public void setValue(@jakarta.annotation.Nonnull String value) { this.value = value; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("value"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Sysctl - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Sysctl + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Sysctl.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -225,22 +226,22 @@ public V1Sysctl read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Sysctl given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Sysctl - * @throws IOException if the JSON string is invalid with respect to V1Sysctl - */ + /** + * Create an instance of V1Sysctl given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Sysctl + * @throws IOException if the JSON string is invalid with respect to V1Sysctl + */ public static V1Sysctl fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Sysctl.class); } - /** - * Convert an instance of V1Sysctl to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Sysctl to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java index 805ac0226f..a81f8b1d2e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * TCPSocketAction describes an action based on opening a socket */ @ApiModel(description = "TCPSocketAction describes an action based on opening a socket") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1TCPSocketAction { public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) + @jakarta.annotation.Nullable private String host; public static final String SERIALIZED_NAME_PORT = "port"; @SerializedName(SERIALIZED_NAME_PORT) + @jakarta.annotation.Nonnull private IntOrString port; public V1TCPSocketAction() { } - public V1TCPSocketAction host(String host) { + public V1TCPSocketAction host(@jakarta.annotation.Nullable String host) { this.host = host; return this; } - /** + /** * Optional: Host name to connect to, defaults to the pod IP. * @return host - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Optional: Host name to connect to, defaults to the pod IP.") public String getHost() { return host; } - public void setHost(String host) { + public void setHost(@jakarta.annotation.Nullable String host) { this.host = host; } - public V1TCPSocketAction port(IntOrString port) { + public V1TCPSocketAction port(@jakarta.annotation.Nonnull IntOrString port) { this.port = port; return this; } - /** + /** * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return port - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") public IntOrString getPort() { return port; } - public void setPort(IntOrString port) { + public void setPort(@jakarta.annotation.Nonnull IntOrString port) { this.port = port; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("port"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1TCPSocketAction - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1TCPSocketAction + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TCPSocketAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -225,22 +226,22 @@ public V1TCPSocketAction read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1TCPSocketAction given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1TCPSocketAction - * @throws IOException if the JSON string is invalid with respect to V1TCPSocketAction - */ + /** + * Create an instance of V1TCPSocketAction given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TCPSocketAction + * @throws IOException if the JSON string is invalid with respect to V1TCPSocketAction + */ public static V1TCPSocketAction fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1TCPSocketAction.class); } - /** - * Convert an instance of V1TCPSocketAction to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1TCPSocketAction to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Taint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Taint.java index 12a702c4ae..240dbe6cac 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Taint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Taint.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,103 +51,107 @@ * The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint. */ @ApiModel(description = "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Taint { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) + @jakarta.annotation.Nonnull private String effect; public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) + @jakarta.annotation.Nonnull private String key; public static final String SERIALIZED_NAME_TIME_ADDED = "timeAdded"; @SerializedName(SERIALIZED_NAME_TIME_ADDED) + @jakarta.annotation.Nullable private OffsetDateTime timeAdded; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) + @jakarta.annotation.Nullable private String value; public V1Taint() { } - public V1Taint effect(String effect) { + public V1Taint effect(@jakarta.annotation.Nonnull String effect) { this.effect = effect; return this; } - /** + /** * Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. * @return effect - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.") public String getEffect() { return effect; } - public void setEffect(String effect) { + public void setEffect(@jakarta.annotation.Nonnull String effect) { this.effect = effect; } - public V1Taint key(String key) { + public V1Taint key(@jakarta.annotation.Nonnull String key) { this.key = key; return this; } - /** + /** * Required. The taint key to be applied to a node. * @return key - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Required. The taint key to be applied to a node.") public String getKey() { return key; } - public void setKey(String key) { + public void setKey(@jakarta.annotation.Nonnull String key) { this.key = key; } - public V1Taint timeAdded(OffsetDateTime timeAdded) { + public V1Taint timeAdded(@jakarta.annotation.Nullable OffsetDateTime timeAdded) { this.timeAdded = timeAdded; return this; } - /** + /** * TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. * @return timeAdded - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.") public OffsetDateTime getTimeAdded() { return timeAdded; } - public void setTimeAdded(OffsetDateTime timeAdded) { + public void setTimeAdded(@jakarta.annotation.Nullable OffsetDateTime timeAdded) { this.timeAdded = timeAdded; } - public V1Taint value(String value) { + public V1Taint value(@jakarta.annotation.Nullable String value) { this.value = value; return this; } - /** + /** * The taint value corresponding to the taint key. * @return value - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The taint value corresponding to the taint key.") public String getValue() { return value; } - public void setValue(String value) { + public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; } @@ -215,12 +218,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("key"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Taint - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Taint + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Taint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -283,22 +286,22 @@ public V1Taint read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Taint given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Taint - * @throws IOException if the JSON string is invalid with respect to V1Taint - */ + /** + * Create an instance of V1Taint given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Taint + * @throws IOException if the JSON string is invalid with respect to V1Taint + */ public static V1Taint fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Taint.class); } - /** - * Convert an instance of V1Taint to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Taint to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java index 5dc9deba50..d9de2d7a2b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,24 +53,27 @@ * TokenRequestSpec contains client provided parameters of a token request. */ @ApiModel(description = "TokenRequestSpec contains client provided parameters of a token request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1TokenRequestSpec { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) + @jakarta.annotation.Nonnull private List audiences = new ArrayList<>(); public static final String SERIALIZED_NAME_BOUND_OBJECT_REF = "boundObjectRef"; @SerializedName(SERIALIZED_NAME_BOUND_OBJECT_REF) + @jakarta.annotation.Nullable private V1BoundObjectReference boundObjectRef; public static final String SERIALIZED_NAME_EXPIRATION_SECONDS = "expirationSeconds"; @SerializedName(SERIALIZED_NAME_EXPIRATION_SECONDS) + @jakarta.annotation.Nullable private Long expirationSeconds; public V1TokenRequestSpec() { } - public V1TokenRequestSpec audiences(List audiences) { + public V1TokenRequestSpec audiences(@jakarta.annotation.Nonnull List audiences) { this.audiences = audiences; return this; } @@ -84,57 +86,57 @@ public V1TokenRequestSpec addAudiencesItem(String audiencesItem) { return this; } - /** + /** * Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences. * @return audiences - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.") public List getAudiences() { return audiences; } - public void setAudiences(List audiences) { + public void setAudiences(@jakarta.annotation.Nonnull List audiences) { this.audiences = audiences; } - public V1TokenRequestSpec boundObjectRef(V1BoundObjectReference boundObjectRef) { + public V1TokenRequestSpec boundObjectRef(@jakarta.annotation.Nullable V1BoundObjectReference boundObjectRef) { this.boundObjectRef = boundObjectRef; return this; } - /** + /** * Get boundObjectRef * @return boundObjectRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1BoundObjectReference getBoundObjectRef() { return boundObjectRef; } - public void setBoundObjectRef(V1BoundObjectReference boundObjectRef) { + public void setBoundObjectRef(@jakarta.annotation.Nullable V1BoundObjectReference boundObjectRef) { this.boundObjectRef = boundObjectRef; } - public V1TokenRequestSpec expirationSeconds(Long expirationSeconds) { + public V1TokenRequestSpec expirationSeconds(@jakarta.annotation.Nullable Long expirationSeconds) { this.expirationSeconds = expirationSeconds; return this; } - /** + /** * ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response. * @return expirationSeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.") public Long getExpirationSeconds() { return expirationSeconds; } - public void setExpirationSeconds(Long expirationSeconds) { + public void setExpirationSeconds(@jakarta.annotation.Nullable Long expirationSeconds) { this.expirationSeconds = expirationSeconds; } @@ -197,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("audiences"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1TokenRequestSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1TokenRequestSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TokenRequestSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -266,22 +268,22 @@ public V1TokenRequestSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1TokenRequestSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1TokenRequestSpec - * @throws IOException if the JSON string is invalid with respect to V1TokenRequestSpec - */ + /** + * Create an instance of V1TokenRequestSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TokenRequestSpec + * @throws IOException if the JSON string is invalid with respect to V1TokenRequestSpec + */ public static V1TokenRequestSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1TokenRequestSpec.class); } - /** - * Convert an instance of V1TokenRequestSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1TokenRequestSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatus.java index cd25088027..0254e3678d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatus.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * TokenRequestStatus is the result of a token request. */ @ApiModel(description = "TokenRequestStatus is the result of a token request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1TokenRequestStatus { public static final String SERIALIZED_NAME_EXPIRATION_TIMESTAMP = "expirationTimestamp"; @SerializedName(SERIALIZED_NAME_EXPIRATION_TIMESTAMP) + @jakarta.annotation.Nonnull private OffsetDateTime expirationTimestamp; public static final String SERIALIZED_NAME_TOKEN = "token"; @SerializedName(SERIALIZED_NAME_TOKEN) + @jakarta.annotation.Nonnull private String token; public V1TokenRequestStatus() { } - public V1TokenRequestStatus expirationTimestamp(OffsetDateTime expirationTimestamp) { + public V1TokenRequestStatus expirationTimestamp(@jakarta.annotation.Nonnull OffsetDateTime expirationTimestamp) { this.expirationTimestamp = expirationTimestamp; return this; } - /** + /** * ExpirationTimestamp is the time of expiration of the returned token. * @return expirationTimestamp - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "ExpirationTimestamp is the time of expiration of the returned token.") public OffsetDateTime getExpirationTimestamp() { return expirationTimestamp; } - public void setExpirationTimestamp(OffsetDateTime expirationTimestamp) { + public void setExpirationTimestamp(@jakarta.annotation.Nonnull OffsetDateTime expirationTimestamp) { this.expirationTimestamp = expirationTimestamp; } - public V1TokenRequestStatus token(String token) { + public V1TokenRequestStatus token(@jakarta.annotation.Nonnull String token) { this.token = token; return this; } - /** + /** * Token is the opaque bearer token. * @return token - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Token is the opaque bearer token.") public String getToken() { return token; } - public void setToken(String token) { + public void setToken(@jakarta.annotation.Nonnull String token) { this.token = token; } @@ -161,12 +162,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("token"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1TokenRequestStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1TokenRequestStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TokenRequestStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -223,22 +224,22 @@ public V1TokenRequestStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1TokenRequestStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1TokenRequestStatus - * @throws IOException if the JSON string is invalid with respect to V1TokenRequestStatus - */ + /** + * Create an instance of V1TokenRequestStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TokenRequestStatus + * @throws IOException if the JSON string is invalid with respect to V1TokenRequestStatus + */ public static V1TokenRequestStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1TokenRequestStatus.class); } - /** - * Convert an instance of V1TokenRequestStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1TokenRequestStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReview.java index 3146530834..6e80585eaf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReview.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. */ @ApiModel(description = "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1TokenReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nonnull private V1TokenReviewSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1TokenReviewStatus status; public V1TokenReview() { } - public V1TokenReview apiVersion(String apiVersion) { + public V1TokenReview apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1TokenReview kind(String kind) { + public V1TokenReview kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1TokenReview metadata(V1ObjectMeta metadata) { + public V1TokenReview metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1TokenReview spec(V1TokenReviewSpec spec) { + public V1TokenReview spec(@jakarta.annotation.Nonnull V1TokenReviewSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1TokenReviewSpec getSpec() { return spec; } - public void setSpec(V1TokenReviewSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1TokenReviewSpec spec) { this.spec = spec; } - public V1TokenReview status(V1TokenReviewStatus status) { + public V1TokenReview status(@jakarta.annotation.Nullable V1TokenReviewStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1TokenReviewStatus getStatus() { return status; } - public void setStatus(V1TokenReviewStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1TokenReviewStatus status) { this.status = status; } @@ -243,12 +247,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("spec"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1TokenReview - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1TokenReview + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TokenReview.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -318,22 +322,22 @@ public V1TokenReview read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1TokenReview given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1TokenReview - * @throws IOException if the JSON string is invalid with respect to V1TokenReview - */ + /** + * Create an instance of V1TokenReview given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TokenReview + * @throws IOException if the JSON string is invalid with respect to V1TokenReview + */ public static V1TokenReview fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1TokenReview.class); } - /** - * Convert an instance of V1TokenReview to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1TokenReview to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpec.java index e318c78d69..68a8f9473b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpec.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,20 +52,22 @@ * TokenReviewSpec is a description of the token authentication request. */ @ApiModel(description = "TokenReviewSpec is a description of the token authentication request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1TokenReviewSpec { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) + @jakarta.annotation.Nullable private List audiences = new ArrayList<>(); public static final String SERIALIZED_NAME_TOKEN = "token"; @SerializedName(SERIALIZED_NAME_TOKEN) + @jakarta.annotation.Nullable private String token; public V1TokenReviewSpec() { } - public V1TokenReviewSpec audiences(List audiences) { + public V1TokenReviewSpec audiences(@jakarta.annotation.Nullable List audiences) { this.audiences = audiences; return this; } @@ -79,37 +80,37 @@ public V1TokenReviewSpec addAudiencesItem(String audiencesItem) { return this; } - /** + /** * Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. * @return audiences - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.") public List getAudiences() { return audiences; } - public void setAudiences(List audiences) { + public void setAudiences(@jakarta.annotation.Nullable List audiences) { this.audiences = audiences; } - public V1TokenReviewSpec token(String token) { + public V1TokenReviewSpec token(@jakarta.annotation.Nullable String token) { this.token = token; return this; } - /** + /** * Token is the opaque bearer token. * @return token - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Token is the opaque bearer token.") public String getToken() { return token; } - public void setToken(String token) { + public void setToken(@jakarta.annotation.Nullable String token) { this.token = token; } @@ -168,12 +169,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1TokenReviewSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1TokenReviewSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TokenReviewSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -227,22 +228,22 @@ public V1TokenReviewSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1TokenReviewSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1TokenReviewSpec - * @throws IOException if the JSON string is invalid with respect to V1TokenReviewSpec - */ + /** + * Create an instance of V1TokenReviewSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TokenReviewSpec + * @throws IOException if the JSON string is invalid with respect to V1TokenReviewSpec + */ public static V1TokenReviewSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1TokenReviewSpec.class); } - /** - * Convert an instance of V1TokenReviewSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1TokenReviewSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatus.java index 7ea5476ba7..164c231ec6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatus.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,28 +53,32 @@ * TokenReviewStatus is the result of the token authentication request. */ @ApiModel(description = "TokenReviewStatus is the result of the token authentication request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1TokenReviewStatus { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) + @jakarta.annotation.Nullable private List audiences = new ArrayList<>(); public static final String SERIALIZED_NAME_AUTHENTICATED = "authenticated"; @SerializedName(SERIALIZED_NAME_AUTHENTICATED) + @jakarta.annotation.Nullable private Boolean authenticated; public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) + @jakarta.annotation.Nullable private String error; public static final String SERIALIZED_NAME_USER = "user"; @SerializedName(SERIALIZED_NAME_USER) + @jakarta.annotation.Nullable private V1UserInfo user; public V1TokenReviewStatus() { } - public V1TokenReviewStatus audiences(List audiences) { + public V1TokenReviewStatus audiences(@jakarta.annotation.Nullable List audiences) { this.audiences = audiences; return this; } @@ -88,77 +91,77 @@ public V1TokenReviewStatus addAudiencesItem(String audiencesItem) { return this; } - /** + /** * Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. * @return audiences - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server.") public List getAudiences() { return audiences; } - public void setAudiences(List audiences) { + public void setAudiences(@jakarta.annotation.Nullable List audiences) { this.audiences = audiences; } - public V1TokenReviewStatus authenticated(Boolean authenticated) { + public V1TokenReviewStatus authenticated(@jakarta.annotation.Nullable Boolean authenticated) { this.authenticated = authenticated; return this; } - /** + /** * Authenticated indicates that the token was associated with a known user. * @return authenticated - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Authenticated indicates that the token was associated with a known user.") public Boolean getAuthenticated() { return authenticated; } - public void setAuthenticated(Boolean authenticated) { + public void setAuthenticated(@jakarta.annotation.Nullable Boolean authenticated) { this.authenticated = authenticated; } - public V1TokenReviewStatus error(String error) { + public V1TokenReviewStatus error(@jakarta.annotation.Nullable String error) { this.error = error; return this; } - /** + /** * Error indicates that the token couldn't be checked * @return error - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Error indicates that the token couldn't be checked") public String getError() { return error; } - public void setError(String error) { + public void setError(@jakarta.annotation.Nullable String error) { this.error = error; } - public V1TokenReviewStatus user(V1UserInfo user) { + public V1TokenReviewStatus user(@jakarta.annotation.Nullable V1UserInfo user) { this.user = user; return this; } - /** + /** * Get user * @return user - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1UserInfo getUser() { return user; } - public void setUser(V1UserInfo user) { + public void setUser(@jakarta.annotation.Nullable V1UserInfo user) { this.user = user; } @@ -223,12 +226,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1TokenReviewStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1TokenReviewStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TokenReviewStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -286,22 +289,22 @@ public V1TokenReviewStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1TokenReviewStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1TokenReviewStatus - * @throws IOException if the JSON string is invalid with respect to V1TokenReviewStatus - */ + /** + * Create an instance of V1TokenReviewStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TokenReviewStatus + * @throws IOException if the JSON string is invalid with respect to V1TokenReviewStatus + */ public static V1TokenReviewStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1TokenReviewStatus.class); } - /** - * Convert an instance of V1TokenReviewStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1TokenReviewStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Toleration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Toleration.java index f830344414..d8e20b2ead 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Toleration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Toleration.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,127 +50,132 @@ * The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>. */ @ApiModel(description = "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Toleration { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) + @jakarta.annotation.Nullable private String effect; public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) + @jakarta.annotation.Nullable private String key; public static final String SERIALIZED_NAME_OPERATOR = "operator"; @SerializedName(SERIALIZED_NAME_OPERATOR) + @jakarta.annotation.Nullable private String operator; public static final String SERIALIZED_NAME_TOLERATION_SECONDS = "tolerationSeconds"; @SerializedName(SERIALIZED_NAME_TOLERATION_SECONDS) + @jakarta.annotation.Nullable private Long tolerationSeconds; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) + @jakarta.annotation.Nullable private String value; public V1Toleration() { } - public V1Toleration effect(String effect) { + public V1Toleration effect(@jakarta.annotation.Nullable String effect) { this.effect = effect; return this; } - /** + /** * Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. * @return effect - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.") public String getEffect() { return effect; } - public void setEffect(String effect) { + public void setEffect(@jakarta.annotation.Nullable String effect) { this.effect = effect; } - public V1Toleration key(String key) { + public V1Toleration key(@jakarta.annotation.Nullable String key) { this.key = key; return this; } - /** + /** * Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. * @return key - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.") public String getKey() { return key; } - public void setKey(String key) { + public void setKey(@jakarta.annotation.Nullable String key) { this.key = key; } - public V1Toleration operator(String operator) { + public V1Toleration operator(@jakarta.annotation.Nullable String operator) { this.operator = operator; return this; } - /** + /** * Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. * @return operator - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.") public String getOperator() { return operator; } - public void setOperator(String operator) { + public void setOperator(@jakarta.annotation.Nullable String operator) { this.operator = operator; } - public V1Toleration tolerationSeconds(Long tolerationSeconds) { + public V1Toleration tolerationSeconds(@jakarta.annotation.Nullable Long tolerationSeconds) { this.tolerationSeconds = tolerationSeconds; return this; } - /** + /** * TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. * @return tolerationSeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.") public Long getTolerationSeconds() { return tolerationSeconds; } - public void setTolerationSeconds(Long tolerationSeconds) { + public void setTolerationSeconds(@jakarta.annotation.Nullable Long tolerationSeconds) { this.tolerationSeconds = tolerationSeconds; } - public V1Toleration value(String value) { + public V1Toleration value(@jakarta.annotation.Nullable String value) { this.value = value; return this; } - /** + /** * Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. * @return value - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.") public String getValue() { return value; } - public void setValue(String value) { + public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; } @@ -239,12 +243,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Toleration - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Toleration + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Toleration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -303,22 +307,22 @@ public V1Toleration read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Toleration given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Toleration - * @throws IOException if the JSON string is invalid with respect to V1Toleration - */ + /** + * Create an instance of V1Toleration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Toleration + * @throws IOException if the JSON string is invalid with respect to V1Toleration + */ public static V1Toleration fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Toleration.class); } - /** - * Convert an instance of V1Toleration to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Toleration to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java index baaa724ab7..4c2623d1ad 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,40 +52,42 @@ * A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future. */ @ApiModel(description = "A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1TopologySelectorLabelRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) + @jakarta.annotation.Nonnull private String key; public static final String SERIALIZED_NAME_VALUES = "values"; @SerializedName(SERIALIZED_NAME_VALUES) + @jakarta.annotation.Nonnull private List values = new ArrayList<>(); public V1TopologySelectorLabelRequirement() { } - public V1TopologySelectorLabelRequirement key(String key) { + public V1TopologySelectorLabelRequirement key(@jakarta.annotation.Nonnull String key) { this.key = key; return this; } - /** + /** * The label key that the selector applies to. * @return key - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The label key that the selector applies to.") public String getKey() { return key; } - public void setKey(String key) { + public void setKey(@jakarta.annotation.Nonnull String key) { this.key = key; } - public V1TopologySelectorLabelRequirement values(List values) { + public V1TopologySelectorLabelRequirement values(@jakarta.annotation.Nonnull List values) { this.values = values; return this; } @@ -99,17 +100,17 @@ public V1TopologySelectorLabelRequirement addValuesItem(String valuesItem) { return this; } - /** + /** * An array of string values. One value must match the label to be selected. Each entry in Values is ORed. * @return values - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "An array of string values. One value must match the label to be selected. Each entry in Values is ORed.") public List getValues() { return values; } - public void setValues(List values) { + public void setValues(@jakarta.annotation.Nonnull List values) { this.values = values; } @@ -170,12 +171,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("values"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1TopologySelectorLabelRequirement - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1TopologySelectorLabelRequirement + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TopologySelectorLabelRequirement.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -238,22 +239,22 @@ public V1TopologySelectorLabelRequirement read(JsonReader in) throws IOException } } - /** - * Create an instance of V1TopologySelectorLabelRequirement given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1TopologySelectorLabelRequirement - * @throws IOException if the JSON string is invalid with respect to V1TopologySelectorLabelRequirement - */ + /** + * Create an instance of V1TopologySelectorLabelRequirement given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TopologySelectorLabelRequirement + * @throws IOException if the JSON string is invalid with respect to V1TopologySelectorLabelRequirement + */ public static V1TopologySelectorLabelRequirement fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1TopologySelectorLabelRequirement.class); } - /** - * Convert an instance of V1TopologySelectorLabelRequirement to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1TopologySelectorLabelRequirement to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java index 2084fbfe4d..b1ff35619a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,16 +53,17 @@ * A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future. */ @ApiModel(description = "A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1TopologySelectorTerm { public static final String SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS = "matchLabelExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS) + @jakarta.annotation.Nullable private List matchLabelExpressions = new ArrayList<>(); public V1TopologySelectorTerm() { } - public V1TopologySelectorTerm matchLabelExpressions(List matchLabelExpressions) { + public V1TopologySelectorTerm matchLabelExpressions(@jakarta.annotation.Nullable List matchLabelExpressions) { this.matchLabelExpressions = matchLabelExpressions; return this; } @@ -76,17 +76,17 @@ public V1TopologySelectorTerm addMatchLabelExpressionsItem(V1TopologySelectorLab return this; } - /** + /** * A list of topology selector requirements by labels. * @return matchLabelExpressions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A list of topology selector requirements by labels.") public List getMatchLabelExpressions() { return matchLabelExpressions; } - public void setMatchLabelExpressions(List matchLabelExpressions) { + public void setMatchLabelExpressions(@jakarta.annotation.Nullable List matchLabelExpressions) { this.matchLabelExpressions = matchLabelExpressions; } @@ -142,12 +142,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1TopologySelectorTerm - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1TopologySelectorTerm + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TopologySelectorTerm.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -208,22 +208,22 @@ public V1TopologySelectorTerm read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1TopologySelectorTerm given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1TopologySelectorTerm - * @throws IOException if the JSON string is invalid with respect to V1TopologySelectorTerm - */ + /** + * Create an instance of V1TopologySelectorTerm given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TopologySelectorTerm + * @throws IOException if the JSON string is invalid with respect to V1TopologySelectorTerm + */ public static V1TopologySelectorTerm fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1TopologySelectorTerm.class); } - /** - * Convert an instance of V1TopologySelectorTerm to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1TopologySelectorTerm to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraint.java index 267bd79e96..a3902e7238 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraint.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,64 +53,72 @@ * TopologySpreadConstraint specifies how to spread matching pods among the given topology. */ @ApiModel(description = "TopologySpreadConstraint specifies how to spread matching pods among the given topology.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1TopologySpreadConstraint { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) + @jakarta.annotation.Nullable private V1LabelSelector labelSelector; public static final String SERIALIZED_NAME_MATCH_LABEL_KEYS = "matchLabelKeys"; @SerializedName(SERIALIZED_NAME_MATCH_LABEL_KEYS) + @jakarta.annotation.Nullable private List matchLabelKeys = new ArrayList<>(); public static final String SERIALIZED_NAME_MAX_SKEW = "maxSkew"; @SerializedName(SERIALIZED_NAME_MAX_SKEW) + @jakarta.annotation.Nonnull private Integer maxSkew; public static final String SERIALIZED_NAME_MIN_DOMAINS = "minDomains"; @SerializedName(SERIALIZED_NAME_MIN_DOMAINS) + @jakarta.annotation.Nullable private Integer minDomains; public static final String SERIALIZED_NAME_NODE_AFFINITY_POLICY = "nodeAffinityPolicy"; @SerializedName(SERIALIZED_NAME_NODE_AFFINITY_POLICY) + @jakarta.annotation.Nullable private String nodeAffinityPolicy; public static final String SERIALIZED_NAME_NODE_TAINTS_POLICY = "nodeTaintsPolicy"; @SerializedName(SERIALIZED_NAME_NODE_TAINTS_POLICY) + @jakarta.annotation.Nullable private String nodeTaintsPolicy; public static final String SERIALIZED_NAME_TOPOLOGY_KEY = "topologyKey"; @SerializedName(SERIALIZED_NAME_TOPOLOGY_KEY) + @jakarta.annotation.Nonnull private String topologyKey; public static final String SERIALIZED_NAME_WHEN_UNSATISFIABLE = "whenUnsatisfiable"; @SerializedName(SERIALIZED_NAME_WHEN_UNSATISFIABLE) + @jakarta.annotation.Nonnull private String whenUnsatisfiable; public V1TopologySpreadConstraint() { } - public V1TopologySpreadConstraint labelSelector(V1LabelSelector labelSelector) { + public V1TopologySpreadConstraint labelSelector(@jakarta.annotation.Nullable V1LabelSelector labelSelector) { this.labelSelector = labelSelector; return this; } - /** + /** * Get labelSelector * @return labelSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LabelSelector getLabelSelector() { return labelSelector; } - public void setLabelSelector(V1LabelSelector labelSelector) { + public void setLabelSelector(@jakarta.annotation.Nullable V1LabelSelector labelSelector) { this.labelSelector = labelSelector; } - public V1TopologySpreadConstraint matchLabelKeys(List matchLabelKeys) { + public V1TopologySpreadConstraint matchLabelKeys(@jakarta.annotation.Nullable List matchLabelKeys) { this.matchLabelKeys = matchLabelKeys; return this; } @@ -124,137 +131,137 @@ public V1TopologySpreadConstraint addMatchLabelKeysItem(String matchLabelKeysIte return this; } - /** + /** * MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). * @return matchLabelKeys - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).") public List getMatchLabelKeys() { return matchLabelKeys; } - public void setMatchLabelKeys(List matchLabelKeys) { + public void setMatchLabelKeys(@jakarta.annotation.Nullable List matchLabelKeys) { this.matchLabelKeys = matchLabelKeys; } - public V1TopologySpreadConstraint maxSkew(Integer maxSkew) { + public V1TopologySpreadConstraint maxSkew(@jakarta.annotation.Nonnull Integer maxSkew) { this.maxSkew = maxSkew; return this; } - /** + /** * MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. * @return maxSkew - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed.") public Integer getMaxSkew() { return maxSkew; } - public void setMaxSkew(Integer maxSkew) { + public void setMaxSkew(@jakarta.annotation.Nonnull Integer maxSkew) { this.maxSkew = maxSkew; } - public V1TopologySpreadConstraint minDomains(Integer minDomains) { + public V1TopologySpreadConstraint minDomains(@jakarta.annotation.Nullable Integer minDomains) { this.minDomains = minDomains; return this; } - /** + /** * MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. * @return minDomains - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew.") public Integer getMinDomains() { return minDomains; } - public void setMinDomains(Integer minDomains) { + public void setMinDomains(@jakarta.annotation.Nullable Integer minDomains) { this.minDomains = minDomains; } - public V1TopologySpreadConstraint nodeAffinityPolicy(String nodeAffinityPolicy) { + public V1TopologySpreadConstraint nodeAffinityPolicy(@jakarta.annotation.Nullable String nodeAffinityPolicy) { this.nodeAffinityPolicy = nodeAffinityPolicy; return this; } - /** - * NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. + /** + * NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. * @return nodeAffinityPolicy - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.") + @ApiModelProperty(value = "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy.") public String getNodeAffinityPolicy() { return nodeAffinityPolicy; } - public void setNodeAffinityPolicy(String nodeAffinityPolicy) { + public void setNodeAffinityPolicy(@jakarta.annotation.Nullable String nodeAffinityPolicy) { this.nodeAffinityPolicy = nodeAffinityPolicy; } - public V1TopologySpreadConstraint nodeTaintsPolicy(String nodeTaintsPolicy) { + public V1TopologySpreadConstraint nodeTaintsPolicy(@jakarta.annotation.Nullable String nodeTaintsPolicy) { this.nodeTaintsPolicy = nodeTaintsPolicy; return this; } - /** - * NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. + /** + * NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. * @return nodeTaintsPolicy - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.") + @ApiModelProperty(value = "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy.") public String getNodeTaintsPolicy() { return nodeTaintsPolicy; } - public void setNodeTaintsPolicy(String nodeTaintsPolicy) { + public void setNodeTaintsPolicy(@jakarta.annotation.Nullable String nodeTaintsPolicy) { this.nodeTaintsPolicy = nodeTaintsPolicy; } - public V1TopologySpreadConstraint topologyKey(String topologyKey) { + public V1TopologySpreadConstraint topologyKey(@jakarta.annotation.Nonnull String topologyKey) { this.topologyKey = topologyKey; return this; } - /** + /** * TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each <key, value> as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field. * @return topologyKey - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field.") public String getTopologyKey() { return topologyKey; } - public void setTopologyKey(String topologyKey) { + public void setTopologyKey(@jakarta.annotation.Nonnull String topologyKey) { this.topologyKey = topologyKey; } - public V1TopologySpreadConstraint whenUnsatisfiable(String whenUnsatisfiable) { + public V1TopologySpreadConstraint whenUnsatisfiable(@jakarta.annotation.Nonnull String whenUnsatisfiable) { this.whenUnsatisfiable = whenUnsatisfiable; return this; } - /** + /** * WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, but giving higher precedence to topologies that would help reduce the skew. A constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. * @return whenUnsatisfiable - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, but giving higher precedence to topologies that would help reduce the skew. A constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field.") public String getWhenUnsatisfiable() { return whenUnsatisfiable; } - public void setWhenUnsatisfiable(String whenUnsatisfiable) { + public void setWhenUnsatisfiable(@jakarta.annotation.Nonnull String whenUnsatisfiable) { this.whenUnsatisfiable = whenUnsatisfiable; } @@ -334,12 +341,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("whenUnsatisfiable"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1TopologySpreadConstraint - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1TopologySpreadConstraint + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TopologySpreadConstraint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -413,22 +420,22 @@ public V1TopologySpreadConstraint read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1TopologySpreadConstraint given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1TopologySpreadConstraint - * @throws IOException if the JSON string is invalid with respect to V1TopologySpreadConstraint - */ + /** + * Create an instance of V1TopologySpreadConstraint given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TopologySpreadConstraint + * @throws IOException if the JSON string is invalid with respect to V1TopologySpreadConstraint + */ public static V1TopologySpreadConstraint fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1TopologySpreadConstraint.class); } - /** - * Convert an instance of V1TopologySpreadConstraint to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1TopologySpreadConstraint to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypeChecking.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypeChecking.java index 24eeb02e19..88805dcf56 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypeChecking.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypeChecking.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,16 +53,17 @@ * TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy */ @ApiModel(description = "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1TypeChecking { public static final String SERIALIZED_NAME_EXPRESSION_WARNINGS = "expressionWarnings"; @SerializedName(SERIALIZED_NAME_EXPRESSION_WARNINGS) + @jakarta.annotation.Nullable private List expressionWarnings = new ArrayList<>(); public V1TypeChecking() { } - public V1TypeChecking expressionWarnings(List expressionWarnings) { + public V1TypeChecking expressionWarnings(@jakarta.annotation.Nullable List expressionWarnings) { this.expressionWarnings = expressionWarnings; return this; } @@ -76,17 +76,17 @@ public V1TypeChecking addExpressionWarningsItem(V1ExpressionWarning expressionWa return this; } - /** + /** * The type checking warnings for each expression. * @return expressionWarnings - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The type checking warnings for each expression.") public List getExpressionWarnings() { return expressionWarnings; } - public void setExpressionWarnings(List expressionWarnings) { + public void setExpressionWarnings(@jakarta.annotation.Nullable List expressionWarnings) { this.expressionWarnings = expressionWarnings; } @@ -142,12 +142,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1TypeChecking - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1TypeChecking + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TypeChecking.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -208,22 +208,22 @@ public V1TypeChecking read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1TypeChecking given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1TypeChecking - * @throws IOException if the JSON string is invalid with respect to V1TypeChecking - */ + /** + * Create an instance of V1TypeChecking given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TypeChecking + * @throws IOException if the JSON string is invalid with respect to V1TypeChecking + */ public static V1TypeChecking fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1TypeChecking.class); } - /** - * Convert an instance of V1TypeChecking to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1TypeChecking to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReference.java index 272fc5d5ed..70e9a17104 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReference.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,79 +50,82 @@ * TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace. */ @ApiModel(description = "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1TypedLocalObjectReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) + @jakarta.annotation.Nullable private String apiGroup; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nonnull private String kind; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public V1TypedLocalObjectReference() { } - public V1TypedLocalObjectReference apiGroup(String apiGroup) { + public V1TypedLocalObjectReference apiGroup(@jakarta.annotation.Nullable String apiGroup) { this.apiGroup = apiGroup; return this; } - /** + /** * APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. * @return apiGroup - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.") public String getApiGroup() { return apiGroup; } - public void setApiGroup(String apiGroup) { + public void setApiGroup(@jakarta.annotation.Nullable String apiGroup) { this.apiGroup = apiGroup; } - public V1TypedLocalObjectReference kind(String kind) { + public V1TypedLocalObjectReference kind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; return this; } - /** + /** * Kind is the type of resource being referenced * @return kind - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Kind is the type of resource being referenced") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; } - public V1TypedLocalObjectReference name(String name) { + public V1TypedLocalObjectReference name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name is the name of resource being referenced * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name is the name of resource being referenced") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -187,12 +189,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1TypedLocalObjectReference - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1TypedLocalObjectReference + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TypedLocalObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -255,22 +257,22 @@ public V1TypedLocalObjectReference read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1TypedLocalObjectReference given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1TypedLocalObjectReference - * @throws IOException if the JSON string is invalid with respect to V1TypedLocalObjectReference - */ + /** + * Create an instance of V1TypedLocalObjectReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TypedLocalObjectReference + * @throws IOException if the JSON string is invalid with respect to V1TypedLocalObjectReference + */ public static V1TypedLocalObjectReference fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1TypedLocalObjectReference.class); } - /** - * Convert an instance of V1TypedLocalObjectReference to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1TypedLocalObjectReference to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReference.java index 4d8addadcd..1322ed822f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReference.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,103 +50,107 @@ * TypedObjectReference contains enough information to let you locate the typed referenced object */ @ApiModel(description = "TypedObjectReference contains enough information to let you locate the typed referenced object") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1TypedObjectReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) + @jakarta.annotation.Nullable private String apiGroup; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nonnull private String kind; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) + @jakarta.annotation.Nullable private String namespace; public V1TypedObjectReference() { } - public V1TypedObjectReference apiGroup(String apiGroup) { + public V1TypedObjectReference apiGroup(@jakarta.annotation.Nullable String apiGroup) { this.apiGroup = apiGroup; return this; } - /** + /** * APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. * @return apiGroup - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.") public String getApiGroup() { return apiGroup; } - public void setApiGroup(String apiGroup) { + public void setApiGroup(@jakarta.annotation.Nullable String apiGroup) { this.apiGroup = apiGroup; } - public V1TypedObjectReference kind(String kind) { + public V1TypedObjectReference kind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; return this; } - /** + /** * Kind is the type of resource being referenced * @return kind - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Kind is the type of resource being referenced") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; } - public V1TypedObjectReference name(String name) { + public V1TypedObjectReference name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name is the name of resource being referenced * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name is the name of resource being referenced") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1TypedObjectReference namespace(String namespace) { + public V1TypedObjectReference namespace(@jakarta.annotation.Nullable String namespace) { this.namespace = namespace; return this; } - /** + /** * Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled. * @return namespace - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.") public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { + public void setNamespace(@jakarta.annotation.Nullable String namespace) { this.namespace = namespace; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1TypedObjectReference - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1TypedObjectReference + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TypedObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -285,22 +288,22 @@ public V1TypedObjectReference read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1TypedObjectReference given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1TypedObjectReference - * @throws IOException if the JSON string is invalid with respect to V1TypedObjectReference - */ + /** + * Create an instance of V1TypedObjectReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TypedObjectReference + * @throws IOException if the JSON string is invalid with respect to V1TypedObjectReference + */ public static V1TypedObjectReference fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1TypedObjectReference.class); } - /** - * Convert an instance of V1TypedObjectReference to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1TypedObjectReference to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPods.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPods.java index 6db613c5d9..39319dfba1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPods.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPods.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,20 +52,22 @@ * UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters. */ @ApiModel(description = "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1UncountedTerminatedPods { public static final String SERIALIZED_NAME_FAILED = "failed"; @SerializedName(SERIALIZED_NAME_FAILED) + @jakarta.annotation.Nullable private List failed = new ArrayList<>(); public static final String SERIALIZED_NAME_SUCCEEDED = "succeeded"; @SerializedName(SERIALIZED_NAME_SUCCEEDED) + @jakarta.annotation.Nullable private List succeeded = new ArrayList<>(); public V1UncountedTerminatedPods() { } - public V1UncountedTerminatedPods failed(List failed) { + public V1UncountedTerminatedPods failed(@jakarta.annotation.Nullable List failed) { this.failed = failed; return this; } @@ -79,22 +80,22 @@ public V1UncountedTerminatedPods addFailedItem(String failedItem) { return this; } - /** + /** * failed holds UIDs of failed Pods. * @return failed - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "failed holds UIDs of failed Pods.") public List getFailed() { return failed; } - public void setFailed(List failed) { + public void setFailed(@jakarta.annotation.Nullable List failed) { this.failed = failed; } - public V1UncountedTerminatedPods succeeded(List succeeded) { + public V1UncountedTerminatedPods succeeded(@jakarta.annotation.Nullable List succeeded) { this.succeeded = succeeded; return this; } @@ -107,17 +108,17 @@ public V1UncountedTerminatedPods addSucceededItem(String succeededItem) { return this; } - /** + /** * succeeded holds UIDs of succeeded Pods. * @return succeeded - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "succeeded holds UIDs of succeeded Pods.") public List getSucceeded() { return succeeded; } - public void setSucceeded(List succeeded) { + public void setSucceeded(@jakarta.annotation.Nullable List succeeded) { this.succeeded = succeeded; } @@ -176,12 +177,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1UncountedTerminatedPods - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1UncountedTerminatedPods + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1UncountedTerminatedPods.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -236,22 +237,22 @@ public V1UncountedTerminatedPods read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1UncountedTerminatedPods given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1UncountedTerminatedPods - * @throws IOException if the JSON string is invalid with respect to V1UncountedTerminatedPods - */ + /** + * Create an instance of V1UncountedTerminatedPods given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1UncountedTerminatedPods + * @throws IOException if the JSON string is invalid with respect to V1UncountedTerminatedPods + */ public static V1UncountedTerminatedPods fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1UncountedTerminatedPods.class); } - /** - * Convert an instance of V1UncountedTerminatedPods to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1UncountedTerminatedPods to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserInfo.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserInfo.java index 7a676583c3..01eeb1ac4b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserInfo.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserInfo.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,28 +54,32 @@ * UserInfo holds the information about the user needed to implement the user.Info interface. */ @ApiModel(description = "UserInfo holds the information about the user needed to implement the user.Info interface.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1UserInfo { public static final String SERIALIZED_NAME_EXTRA = "extra"; @SerializedName(SERIALIZED_NAME_EXTRA) + @jakarta.annotation.Nullable private Map> extra = new HashMap<>(); public static final String SERIALIZED_NAME_GROUPS = "groups"; @SerializedName(SERIALIZED_NAME_GROUPS) + @jakarta.annotation.Nullable private List groups = new ArrayList<>(); public static final String SERIALIZED_NAME_UID = "uid"; @SerializedName(SERIALIZED_NAME_UID) + @jakarta.annotation.Nullable private String uid; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) + @jakarta.annotation.Nullable private String username; public V1UserInfo() { } - public V1UserInfo extra(Map> extra) { + public V1UserInfo extra(@jakarta.annotation.Nullable Map> extra) { this.extra = extra; return this; } @@ -89,22 +92,22 @@ public V1UserInfo putExtraItem(String key, List extraItem) { return this; } - /** + /** * Any additional information provided by the authenticator. * @return extra - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Any additional information provided by the authenticator.") public Map> getExtra() { return extra; } - public void setExtra(Map> extra) { + public void setExtra(@jakarta.annotation.Nullable Map> extra) { this.extra = extra; } - public V1UserInfo groups(List groups) { + public V1UserInfo groups(@jakarta.annotation.Nullable List groups) { this.groups = groups; return this; } @@ -117,57 +120,57 @@ public V1UserInfo addGroupsItem(String groupsItem) { return this; } - /** + /** * The names of groups this user is a part of. * @return groups - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The names of groups this user is a part of.") public List getGroups() { return groups; } - public void setGroups(List groups) { + public void setGroups(@jakarta.annotation.Nullable List groups) { this.groups = groups; } - public V1UserInfo uid(String uid) { + public V1UserInfo uid(@jakarta.annotation.Nullable String uid) { this.uid = uid; return this; } - /** + /** * A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. * @return uid - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.") public String getUid() { return uid; } - public void setUid(String uid) { + public void setUid(@jakarta.annotation.Nullable String uid) { this.uid = uid; } - public V1UserInfo username(String username) { + public V1UserInfo username(@jakarta.annotation.Nullable String username) { this.username = username; return this; } - /** + /** * The name that uniquely identifies this user among all active users. * @return username - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The name that uniquely identifies this user among all active users.") public String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; } @@ -232,12 +235,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1UserInfo - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1UserInfo + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1UserInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -294,22 +297,22 @@ public V1UserInfo read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1UserInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1UserInfo - * @throws IOException if the JSON string is invalid with respect to V1UserInfo - */ + /** + * Create an instance of V1UserInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1UserInfo + * @throws IOException if the JSON string is invalid with respect to V1UserInfo + */ public static V1UserInfo fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1UserInfo.class); } - /** - * Convert an instance of V1UserInfo to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1UserInfo to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserSubject.java index 4bd3dd2276..603451545b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserSubject.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * UserSubject holds detailed information for user-kind subject. */ @ApiModel(description = "UserSubject holds detailed information for user-kind subject.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1UserSubject { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public V1UserSubject() { } - public V1UserSubject name(String name) { + public V1UserSubject name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * `name` is the username that matches, or \"*\" to match all usernames. Required. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "`name` is the username that matches, or \"*\" to match all usernames. Required.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1UserSubject - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1UserSubject + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1UserSubject.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -194,22 +194,22 @@ public V1UserSubject read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1UserSubject given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1UserSubject - * @throws IOException if the JSON string is invalid with respect to V1UserSubject - */ + /** + * Create an instance of V1UserSubject given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1UserSubject + * @throws IOException if the JSON string is invalid with respect to V1UserSubject + */ public static V1UserSubject fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1UserSubject.class); } - /** - * Convert an instance of V1UserSubject to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1UserSubject to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicy.java index 42eb2ab58d..6f0e53fc76 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicy.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. */ @ApiModel(description = "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ValidatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1ValidatingAdmissionPolicySpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1ValidatingAdmissionPolicyStatus status; public V1ValidatingAdmissionPolicy() { } - public V1ValidatingAdmissionPolicy apiVersion(String apiVersion) { + public V1ValidatingAdmissionPolicy apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ValidatingAdmissionPolicy kind(String kind) { + public V1ValidatingAdmissionPolicy kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ValidatingAdmissionPolicy metadata(V1ObjectMeta metadata) { + public V1ValidatingAdmissionPolicy metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1ValidatingAdmissionPolicy spec(V1ValidatingAdmissionPolicySpec spec) { + public V1ValidatingAdmissionPolicy spec(@jakarta.annotation.Nullable V1ValidatingAdmissionPolicySpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ValidatingAdmissionPolicySpec getSpec() { return spec; } - public void setSpec(V1ValidatingAdmissionPolicySpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1ValidatingAdmissionPolicySpec spec) { this.spec = spec; } - public V1ValidatingAdmissionPolicy status(V1ValidatingAdmissionPolicyStatus status) { + public V1ValidatingAdmissionPolicy status(@jakarta.annotation.Nullable V1ValidatingAdmissionPolicyStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ValidatingAdmissionPolicyStatus getStatus() { return status; } - public void setStatus(V1ValidatingAdmissionPolicyStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1ValidatingAdmissionPolicyStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ValidatingAdmissionPolicy - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ValidatingAdmissionPolicy + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ValidatingAdmissionPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1ValidatingAdmissionPolicy read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ValidatingAdmissionPolicy given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ValidatingAdmissionPolicy - * @throws IOException if the JSON string is invalid with respect to V1ValidatingAdmissionPolicy - */ + /** + * Create an instance of V1ValidatingAdmissionPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ValidatingAdmissionPolicy + * @throws IOException if the JSON string is invalid with respect to V1ValidatingAdmissionPolicy + */ public static V1ValidatingAdmissionPolicy fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ValidatingAdmissionPolicy.class); } - /** - * Convert an instance of V1ValidatingAdmissionPolicy to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ValidatingAdmissionPolicy to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBinding.java index 54259e5617..fd0af7d692 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBinding.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,103 +52,107 @@ * ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. */ @ApiModel(description = "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ValidatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1ValidatingAdmissionPolicyBindingSpec spec; public V1ValidatingAdmissionPolicyBinding() { } - public V1ValidatingAdmissionPolicyBinding apiVersion(String apiVersion) { + public V1ValidatingAdmissionPolicyBinding apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ValidatingAdmissionPolicyBinding kind(String kind) { + public V1ValidatingAdmissionPolicyBinding kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ValidatingAdmissionPolicyBinding metadata(V1ObjectMeta metadata) { + public V1ValidatingAdmissionPolicyBinding metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1ValidatingAdmissionPolicyBinding spec(V1ValidatingAdmissionPolicyBindingSpec spec) { + public V1ValidatingAdmissionPolicyBinding spec(@jakarta.annotation.Nullable V1ValidatingAdmissionPolicyBindingSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ValidatingAdmissionPolicyBindingSpec getSpec() { return spec; } - public void setSpec(V1ValidatingAdmissionPolicyBindingSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1ValidatingAdmissionPolicyBindingSpec spec) { this.spec = spec; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ValidatingAdmissionPolicyBinding - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ValidatingAdmissionPolicyBinding + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ValidatingAdmissionPolicyBinding.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -280,22 +283,22 @@ public V1ValidatingAdmissionPolicyBinding read(JsonReader in) throws IOException } } - /** - * Create an instance of V1ValidatingAdmissionPolicyBinding given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ValidatingAdmissionPolicyBinding - * @throws IOException if the JSON string is invalid with respect to V1ValidatingAdmissionPolicyBinding - */ + /** + * Create an instance of V1ValidatingAdmissionPolicyBinding given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ValidatingAdmissionPolicyBinding + * @throws IOException if the JSON string is invalid with respect to V1ValidatingAdmissionPolicyBinding + */ public static V1ValidatingAdmissionPolicyBinding fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ValidatingAdmissionPolicyBinding.class); } - /** - * Convert an instance of V1ValidatingAdmissionPolicyBinding to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ValidatingAdmissionPolicyBinding to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingList.java index d9bf560d69..769b037f48 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. */ @ApiModel(description = "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ValidatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1ValidatingAdmissionPolicyBindingList() { } - public V1ValidatingAdmissionPolicyBindingList apiVersion(String apiVersion) { + public V1ValidatingAdmissionPolicyBindingList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ValidatingAdmissionPolicyBindingList items(List items) { + public V1ValidatingAdmissionPolicyBindingList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1ValidatingAdmissionPolicyBindingList addItemsItem(V1ValidatingAdmission return this; } - /** + /** * List of PolicyBinding. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "List of PolicyBinding.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1ValidatingAdmissionPolicyBindingList kind(String kind) { + public V1ValidatingAdmissionPolicyBindingList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ValidatingAdmissionPolicyBindingList metadata(V1ListMeta metadata) { + public V1ValidatingAdmissionPolicyBindingList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ValidatingAdmissionPolicyBindingList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ValidatingAdmissionPolicyBindingList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ValidatingAdmissionPolicyBindingList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1ValidatingAdmissionPolicyBindingList read(JsonReader in) throws IOExcep } } - /** - * Create an instance of V1ValidatingAdmissionPolicyBindingList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ValidatingAdmissionPolicyBindingList - * @throws IOException if the JSON string is invalid with respect to V1ValidatingAdmissionPolicyBindingList - */ + /** + * Create an instance of V1ValidatingAdmissionPolicyBindingList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ValidatingAdmissionPolicyBindingList + * @throws IOException if the JSON string is invalid with respect to V1ValidatingAdmissionPolicyBindingList + */ public static V1ValidatingAdmissionPolicyBindingList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ValidatingAdmissionPolicyBindingList.class); } - /** - * Convert an instance of V1ValidatingAdmissionPolicyBindingList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ValidatingAdmissionPolicyBindingList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpec.java index 49f91913dd..039708f54b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpec.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,88 +54,92 @@ * ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. */ @ApiModel(description = "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ValidatingAdmissionPolicyBindingSpec { public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) + @jakarta.annotation.Nullable private V1MatchResources matchResources; public static final String SERIALIZED_NAME_PARAM_REF = "paramRef"; @SerializedName(SERIALIZED_NAME_PARAM_REF) + @jakarta.annotation.Nullable private V1ParamRef paramRef; public static final String SERIALIZED_NAME_POLICY_NAME = "policyName"; @SerializedName(SERIALIZED_NAME_POLICY_NAME) + @jakarta.annotation.Nullable private String policyName; public static final String SERIALIZED_NAME_VALIDATION_ACTIONS = "validationActions"; @SerializedName(SERIALIZED_NAME_VALIDATION_ACTIONS) + @jakarta.annotation.Nullable private List validationActions = new ArrayList<>(); public V1ValidatingAdmissionPolicyBindingSpec() { } - public V1ValidatingAdmissionPolicyBindingSpec matchResources(V1MatchResources matchResources) { + public V1ValidatingAdmissionPolicyBindingSpec matchResources(@jakarta.annotation.Nullable V1MatchResources matchResources) { this.matchResources = matchResources; return this; } - /** + /** * Get matchResources * @return matchResources - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1MatchResources getMatchResources() { return matchResources; } - public void setMatchResources(V1MatchResources matchResources) { + public void setMatchResources(@jakarta.annotation.Nullable V1MatchResources matchResources) { this.matchResources = matchResources; } - public V1ValidatingAdmissionPolicyBindingSpec paramRef(V1ParamRef paramRef) { + public V1ValidatingAdmissionPolicyBindingSpec paramRef(@jakarta.annotation.Nullable V1ParamRef paramRef) { this.paramRef = paramRef; return this; } - /** + /** * Get paramRef * @return paramRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ParamRef getParamRef() { return paramRef; } - public void setParamRef(V1ParamRef paramRef) { + public void setParamRef(@jakarta.annotation.Nullable V1ParamRef paramRef) { this.paramRef = paramRef; } - public V1ValidatingAdmissionPolicyBindingSpec policyName(String policyName) { + public V1ValidatingAdmissionPolicyBindingSpec policyName(@jakarta.annotation.Nullable String policyName) { this.policyName = policyName; return this; } - /** + /** * PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. * @return policyName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.") public String getPolicyName() { return policyName; } - public void setPolicyName(String policyName) { + public void setPolicyName(@jakarta.annotation.Nullable String policyName) { this.policyName = policyName; } - public V1ValidatingAdmissionPolicyBindingSpec validationActions(List validationActions) { + public V1ValidatingAdmissionPolicyBindingSpec validationActions(@jakarta.annotation.Nullable List validationActions) { this.validationActions = validationActions; return this; } @@ -149,17 +152,17 @@ public V1ValidatingAdmissionPolicyBindingSpec addValidationActionsItem(String va return this; } - /** + /** * validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: \"Deny\" specifies that a validation failure results in a denied request. \"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. \"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\"` Clients should expect to handle additional values by ignoring any values not recognized. \"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required. * @return validationActions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: \"Deny\" specifies that a validation failure results in a denied request. \"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. \"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\"` Clients should expect to handle additional values by ignoring any values not recognized. \"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required.") public List getValidationActions() { return validationActions; } - public void setValidationActions(List validationActions) { + public void setValidationActions(@jakarta.annotation.Nullable List validationActions) { this.validationActions = validationActions; } @@ -224,12 +227,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ValidatingAdmissionPolicyBindingSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ValidatingAdmissionPolicyBindingSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ValidatingAdmissionPolicyBindingSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -291,22 +294,22 @@ public V1ValidatingAdmissionPolicyBindingSpec read(JsonReader in) throws IOExcep } } - /** - * Create an instance of V1ValidatingAdmissionPolicyBindingSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ValidatingAdmissionPolicyBindingSpec - * @throws IOException if the JSON string is invalid with respect to V1ValidatingAdmissionPolicyBindingSpec - */ + /** + * Create an instance of V1ValidatingAdmissionPolicyBindingSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ValidatingAdmissionPolicyBindingSpec + * @throws IOException if the JSON string is invalid with respect to V1ValidatingAdmissionPolicyBindingSpec + */ public static V1ValidatingAdmissionPolicyBindingSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ValidatingAdmissionPolicyBindingSpec.class); } - /** - * Convert an instance of V1ValidatingAdmissionPolicyBindingSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ValidatingAdmissionPolicyBindingSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyList.java index d56e9111cc..89b9b96e1a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. */ @ApiModel(description = "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ValidatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1ValidatingAdmissionPolicyList() { } - public V1ValidatingAdmissionPolicyList apiVersion(String apiVersion) { + public V1ValidatingAdmissionPolicyList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ValidatingAdmissionPolicyList items(List items) { + public V1ValidatingAdmissionPolicyList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1ValidatingAdmissionPolicyList addItemsItem(V1ValidatingAdmissionPolicy return this; } - /** + /** * List of ValidatingAdmissionPolicy. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "List of ValidatingAdmissionPolicy.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1ValidatingAdmissionPolicyList kind(String kind) { + public V1ValidatingAdmissionPolicyList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ValidatingAdmissionPolicyList metadata(V1ListMeta metadata) { + public V1ValidatingAdmissionPolicyList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ValidatingAdmissionPolicyList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ValidatingAdmissionPolicyList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ValidatingAdmissionPolicyList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1ValidatingAdmissionPolicyList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ValidatingAdmissionPolicyList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ValidatingAdmissionPolicyList - * @throws IOException if the JSON string is invalid with respect to V1ValidatingAdmissionPolicyList - */ + /** + * Create an instance of V1ValidatingAdmissionPolicyList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ValidatingAdmissionPolicyList + * @throws IOException if the JSON string is invalid with respect to V1ValidatingAdmissionPolicyList + */ public static V1ValidatingAdmissionPolicyList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ValidatingAdmissionPolicyList.class); } - /** - * Convert an instance of V1ValidatingAdmissionPolicyList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ValidatingAdmissionPolicyList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpec.java index afe9555513..3310c79802 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpec.java @@ -46,7 +46,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -59,40 +58,47 @@ * ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. */ @ApiModel(description = "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ValidatingAdmissionPolicySpec { public static final String SERIALIZED_NAME_AUDIT_ANNOTATIONS = "auditAnnotations"; @SerializedName(SERIALIZED_NAME_AUDIT_ANNOTATIONS) + @jakarta.annotation.Nullable private List auditAnnotations = new ArrayList<>(); public static final String SERIALIZED_NAME_FAILURE_POLICY = "failurePolicy"; @SerializedName(SERIALIZED_NAME_FAILURE_POLICY) + @jakarta.annotation.Nullable private String failurePolicy; public static final String SERIALIZED_NAME_MATCH_CONDITIONS = "matchConditions"; @SerializedName(SERIALIZED_NAME_MATCH_CONDITIONS) + @jakarta.annotation.Nullable private List matchConditions = new ArrayList<>(); public static final String SERIALIZED_NAME_MATCH_CONSTRAINTS = "matchConstraints"; @SerializedName(SERIALIZED_NAME_MATCH_CONSTRAINTS) + @jakarta.annotation.Nullable private V1MatchResources matchConstraints; public static final String SERIALIZED_NAME_PARAM_KIND = "paramKind"; @SerializedName(SERIALIZED_NAME_PARAM_KIND) + @jakarta.annotation.Nullable private V1ParamKind paramKind; public static final String SERIALIZED_NAME_VALIDATIONS = "validations"; @SerializedName(SERIALIZED_NAME_VALIDATIONS) + @jakarta.annotation.Nullable private List validations = new ArrayList<>(); public static final String SERIALIZED_NAME_VARIABLES = "variables"; @SerializedName(SERIALIZED_NAME_VARIABLES) + @jakarta.annotation.Nullable private List variables = new ArrayList<>(); public V1ValidatingAdmissionPolicySpec() { } - public V1ValidatingAdmissionPolicySpec auditAnnotations(List auditAnnotations) { + public V1ValidatingAdmissionPolicySpec auditAnnotations(@jakarta.annotation.Nullable List auditAnnotations) { this.auditAnnotations = auditAnnotations; return this; } @@ -105,42 +111,42 @@ public V1ValidatingAdmissionPolicySpec addAuditAnnotationsItem(V1AuditAnnotation return this; } - /** + /** * auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required. * @return auditAnnotations - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.") public List getAuditAnnotations() { return auditAnnotations; } - public void setAuditAnnotations(List auditAnnotations) { + public void setAuditAnnotations(@jakarta.annotation.Nullable List auditAnnotations) { this.auditAnnotations = auditAnnotations; } - public V1ValidatingAdmissionPolicySpec failurePolicy(String failurePolicy) { + public V1ValidatingAdmissionPolicySpec failurePolicy(@jakarta.annotation.Nullable String failurePolicy) { this.failurePolicy = failurePolicy; return this; } - /** + /** * failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. Allowed values are Ignore or Fail. Defaults to Fail. * @return failurePolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. Allowed values are Ignore or Fail. Defaults to Fail.") public String getFailurePolicy() { return failurePolicy; } - public void setFailurePolicy(String failurePolicy) { + public void setFailurePolicy(@jakarta.annotation.Nullable String failurePolicy) { this.failurePolicy = failurePolicy; } - public V1ValidatingAdmissionPolicySpec matchConditions(List matchConditions) { + public V1ValidatingAdmissionPolicySpec matchConditions(@jakarta.annotation.Nullable List matchConditions) { this.matchConditions = matchConditions; return this; } @@ -153,62 +159,62 @@ public V1ValidatingAdmissionPolicySpec addMatchConditionsItem(V1MatchCondition m return this; } - /** + /** * MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped * @return matchConditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped") public List getMatchConditions() { return matchConditions; } - public void setMatchConditions(List matchConditions) { + public void setMatchConditions(@jakarta.annotation.Nullable List matchConditions) { this.matchConditions = matchConditions; } - public V1ValidatingAdmissionPolicySpec matchConstraints(V1MatchResources matchConstraints) { + public V1ValidatingAdmissionPolicySpec matchConstraints(@jakarta.annotation.Nullable V1MatchResources matchConstraints) { this.matchConstraints = matchConstraints; return this; } - /** + /** * Get matchConstraints * @return matchConstraints - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1MatchResources getMatchConstraints() { return matchConstraints; } - public void setMatchConstraints(V1MatchResources matchConstraints) { + public void setMatchConstraints(@jakarta.annotation.Nullable V1MatchResources matchConstraints) { this.matchConstraints = matchConstraints; } - public V1ValidatingAdmissionPolicySpec paramKind(V1ParamKind paramKind) { + public V1ValidatingAdmissionPolicySpec paramKind(@jakarta.annotation.Nullable V1ParamKind paramKind) { this.paramKind = paramKind; return this; } - /** + /** * Get paramKind * @return paramKind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ParamKind getParamKind() { return paramKind; } - public void setParamKind(V1ParamKind paramKind) { + public void setParamKind(@jakarta.annotation.Nullable V1ParamKind paramKind) { this.paramKind = paramKind; } - public V1ValidatingAdmissionPolicySpec validations(List validations) { + public V1ValidatingAdmissionPolicySpec validations(@jakarta.annotation.Nullable List validations) { this.validations = validations; return this; } @@ -221,22 +227,22 @@ public V1ValidatingAdmissionPolicySpec addValidationsItem(V1Validation validatio return this; } - /** + /** * Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required. * @return validations - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.") public List getValidations() { return validations; } - public void setValidations(List validations) { + public void setValidations(@jakarta.annotation.Nullable List validations) { this.validations = validations; } - public V1ValidatingAdmissionPolicySpec variables(List variables) { + public V1ValidatingAdmissionPolicySpec variables(@jakarta.annotation.Nullable List variables) { this.variables = variables; return this; } @@ -249,17 +255,17 @@ public V1ValidatingAdmissionPolicySpec addVariablesItem(V1Variable variablesItem return this; } - /** + /** * Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. * @return variables - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.") public List getVariables() { return variables; } - public void setVariables(List variables) { + public void setVariables(@jakarta.annotation.Nullable List variables) { this.variables = variables; } @@ -333,12 +339,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ValidatingAdmissionPolicySpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ValidatingAdmissionPolicySpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ValidatingAdmissionPolicySpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -452,22 +458,22 @@ public V1ValidatingAdmissionPolicySpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ValidatingAdmissionPolicySpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ValidatingAdmissionPolicySpec - * @throws IOException if the JSON string is invalid with respect to V1ValidatingAdmissionPolicySpec - */ + /** + * Create an instance of V1ValidatingAdmissionPolicySpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ValidatingAdmissionPolicySpec + * @throws IOException if the JSON string is invalid with respect to V1ValidatingAdmissionPolicySpec + */ public static V1ValidatingAdmissionPolicySpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ValidatingAdmissionPolicySpec.class); } - /** - * Convert an instance of V1ValidatingAdmissionPolicySpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ValidatingAdmissionPolicySpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatus.java index a48ca59bb8..85ac5da726 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatus.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,24 +54,27 @@ * ValidatingAdmissionPolicyStatus represents the status of an admission validation policy. */ @ApiModel(description = "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ValidatingAdmissionPolicyStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + @jakarta.annotation.Nullable private Long observedGeneration; public static final String SERIALIZED_NAME_TYPE_CHECKING = "typeChecking"; @SerializedName(SERIALIZED_NAME_TYPE_CHECKING) + @jakarta.annotation.Nullable private V1TypeChecking typeChecking; public V1ValidatingAdmissionPolicyStatus() { } - public V1ValidatingAdmissionPolicyStatus conditions(List conditions) { + public V1ValidatingAdmissionPolicyStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } @@ -85,57 +87,57 @@ public V1ValidatingAdmissionPolicyStatus addConditionsItem(V1Condition condition return this; } - /** + /** * The conditions represent the latest available observations of a policy's current state. * @return conditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The conditions represent the latest available observations of a policy's current state.") public List getConditions() { return conditions; } - public void setConditions(List conditions) { + public void setConditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; } - public V1ValidatingAdmissionPolicyStatus observedGeneration(Long observedGeneration) { + public V1ValidatingAdmissionPolicyStatus observedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { this.observedGeneration = observedGeneration; return this; } - /** + /** * The generation observed by the controller. * @return observedGeneration - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The generation observed by the controller.") public Long getObservedGeneration() { return observedGeneration; } - public void setObservedGeneration(Long observedGeneration) { + public void setObservedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { this.observedGeneration = observedGeneration; } - public V1ValidatingAdmissionPolicyStatus typeChecking(V1TypeChecking typeChecking) { + public V1ValidatingAdmissionPolicyStatus typeChecking(@jakarta.annotation.Nullable V1TypeChecking typeChecking) { this.typeChecking = typeChecking; return this; } - /** + /** * Get typeChecking * @return typeChecking - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1TypeChecking getTypeChecking() { return typeChecking; } - public void setTypeChecking(V1TypeChecking typeChecking) { + public void setTypeChecking(@jakarta.annotation.Nullable V1TypeChecking typeChecking) { this.typeChecking = typeChecking; } @@ -197,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ValidatingAdmissionPolicyStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ValidatingAdmissionPolicyStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ValidatingAdmissionPolicyStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -267,22 +269,22 @@ public V1ValidatingAdmissionPolicyStatus read(JsonReader in) throws IOException } } - /** - * Create an instance of V1ValidatingAdmissionPolicyStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ValidatingAdmissionPolicyStatus - * @throws IOException if the JSON string is invalid with respect to V1ValidatingAdmissionPolicyStatus - */ + /** + * Create an instance of V1ValidatingAdmissionPolicyStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ValidatingAdmissionPolicyStatus + * @throws IOException if the JSON string is invalid with respect to V1ValidatingAdmissionPolicyStatus + */ public static V1ValidatingAdmissionPolicyStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ValidatingAdmissionPolicyStatus.class); } - /** - * Convert an instance of V1ValidatingAdmissionPolicyStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ValidatingAdmissionPolicyStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhook.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhook.java index ce77889efb..2366a5cc73 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhook.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhook.java @@ -44,7 +44,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -57,56 +56,67 @@ * ValidatingWebhook describes an admission webhook and the resources and operations it applies to. */ @ApiModel(description = "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ValidatingWebhook { public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; @SerializedName(SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS) + @jakarta.annotation.Nonnull private List admissionReviewVersions = new ArrayList<>(); public static final String SERIALIZED_NAME_CLIENT_CONFIG = "clientConfig"; @SerializedName(SERIALIZED_NAME_CLIENT_CONFIG) + @jakarta.annotation.Nonnull private AdmissionregistrationV1WebhookClientConfig clientConfig; public static final String SERIALIZED_NAME_FAILURE_POLICY = "failurePolicy"; @SerializedName(SERIALIZED_NAME_FAILURE_POLICY) + @jakarta.annotation.Nullable private String failurePolicy; public static final String SERIALIZED_NAME_MATCH_CONDITIONS = "matchConditions"; @SerializedName(SERIALIZED_NAME_MATCH_CONDITIONS) + @jakarta.annotation.Nullable private List matchConditions = new ArrayList<>(); public static final String SERIALIZED_NAME_MATCH_POLICY = "matchPolicy"; @SerializedName(SERIALIZED_NAME_MATCH_POLICY) + @jakarta.annotation.Nullable private String matchPolicy; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_NAMESPACE_SELECTOR = "namespaceSelector"; @SerializedName(SERIALIZED_NAME_NAMESPACE_SELECTOR) + @jakarta.annotation.Nullable private V1LabelSelector namespaceSelector; public static final String SERIALIZED_NAME_OBJECT_SELECTOR = "objectSelector"; @SerializedName(SERIALIZED_NAME_OBJECT_SELECTOR) + @jakarta.annotation.Nullable private V1LabelSelector objectSelector; public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) + @jakarta.annotation.Nullable private List rules = new ArrayList<>(); public static final String SERIALIZED_NAME_SIDE_EFFECTS = "sideEffects"; @SerializedName(SERIALIZED_NAME_SIDE_EFFECTS) + @jakarta.annotation.Nonnull private String sideEffects; public static final String SERIALIZED_NAME_TIMEOUT_SECONDS = "timeoutSeconds"; @SerializedName(SERIALIZED_NAME_TIMEOUT_SECONDS) + @jakarta.annotation.Nullable private Integer timeoutSeconds; public V1ValidatingWebhook() { } - public V1ValidatingWebhook admissionReviewVersions(List admissionReviewVersions) { + public V1ValidatingWebhook admissionReviewVersions(@jakarta.annotation.Nonnull List admissionReviewVersions) { this.admissionReviewVersions = admissionReviewVersions; return this; } @@ -119,62 +129,62 @@ public V1ValidatingWebhook addAdmissionReviewVersionsItem(String admissionReview return this; } - /** + /** * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. * @return admissionReviewVersions - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.") public List getAdmissionReviewVersions() { return admissionReviewVersions; } - public void setAdmissionReviewVersions(List admissionReviewVersions) { + public void setAdmissionReviewVersions(@jakarta.annotation.Nonnull List admissionReviewVersions) { this.admissionReviewVersions = admissionReviewVersions; } - public V1ValidatingWebhook clientConfig(AdmissionregistrationV1WebhookClientConfig clientConfig) { + public V1ValidatingWebhook clientConfig(@jakarta.annotation.Nonnull AdmissionregistrationV1WebhookClientConfig clientConfig) { this.clientConfig = clientConfig; return this; } - /** + /** * Get clientConfig * @return clientConfig - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public AdmissionregistrationV1WebhookClientConfig getClientConfig() { return clientConfig; } - public void setClientConfig(AdmissionregistrationV1WebhookClientConfig clientConfig) { + public void setClientConfig(@jakarta.annotation.Nonnull AdmissionregistrationV1WebhookClientConfig clientConfig) { this.clientConfig = clientConfig; } - public V1ValidatingWebhook failurePolicy(String failurePolicy) { + public V1ValidatingWebhook failurePolicy(@jakarta.annotation.Nullable String failurePolicy) { this.failurePolicy = failurePolicy; return this; } - /** + /** * FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. * @return failurePolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.") public String getFailurePolicy() { return failurePolicy; } - public void setFailurePolicy(String failurePolicy) { + public void setFailurePolicy(@jakarta.annotation.Nullable String failurePolicy) { this.failurePolicy = failurePolicy; } - public V1ValidatingWebhook matchConditions(List matchConditions) { + public V1ValidatingWebhook matchConditions(@jakarta.annotation.Nullable List matchConditions) { this.matchConditions = matchConditions; return this; } @@ -187,102 +197,102 @@ public V1ValidatingWebhook addMatchConditionsItem(V1MatchCondition matchConditio return this; } - /** + /** * MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped * @return matchConditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped") public List getMatchConditions() { return matchConditions; } - public void setMatchConditions(List matchConditions) { + public void setMatchConditions(@jakarta.annotation.Nullable List matchConditions) { this.matchConditions = matchConditions; } - public V1ValidatingWebhook matchPolicy(String matchPolicy) { + public V1ValidatingWebhook matchPolicy(@jakarta.annotation.Nullable String matchPolicy) { this.matchPolicy = matchPolicy; return this; } - /** + /** * matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Equivalent\" * @return matchPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Equivalent\"") public String getMatchPolicy() { return matchPolicy; } - public void setMatchPolicy(String matchPolicy) { + public void setMatchPolicy(@jakarta.annotation.Nullable String matchPolicy) { this.matchPolicy = matchPolicy; } - public V1ValidatingWebhook name(String name) { + public V1ValidatingWebhook name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1ValidatingWebhook namespaceSelector(V1LabelSelector namespaceSelector) { + public V1ValidatingWebhook namespaceSelector(@jakarta.annotation.Nullable V1LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; return this; } - /** + /** * Get namespaceSelector * @return namespaceSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LabelSelector getNamespaceSelector() { return namespaceSelector; } - public void setNamespaceSelector(V1LabelSelector namespaceSelector) { + public void setNamespaceSelector(@jakarta.annotation.Nullable V1LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; } - public V1ValidatingWebhook objectSelector(V1LabelSelector objectSelector) { + public V1ValidatingWebhook objectSelector(@jakarta.annotation.Nullable V1LabelSelector objectSelector) { this.objectSelector = objectSelector; return this; } - /** + /** * Get objectSelector * @return objectSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LabelSelector getObjectSelector() { return objectSelector; } - public void setObjectSelector(V1LabelSelector objectSelector) { + public void setObjectSelector(@jakarta.annotation.Nullable V1LabelSelector objectSelector) { this.objectSelector = objectSelector; } - public V1ValidatingWebhook rules(List rules) { + public V1ValidatingWebhook rules(@jakarta.annotation.Nullable List rules) { this.rules = rules; return this; } @@ -295,57 +305,57 @@ public V1ValidatingWebhook addRulesItem(V1RuleWithOperations rulesItem) { return this; } - /** + /** * Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. * @return rules - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.") public List getRules() { return rules; } - public void setRules(List rules) { + public void setRules(@jakarta.annotation.Nullable List rules) { this.rules = rules; } - public V1ValidatingWebhook sideEffects(String sideEffects) { + public V1ValidatingWebhook sideEffects(@jakarta.annotation.Nonnull String sideEffects) { this.sideEffects = sideEffects; return this; } - /** + /** * SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. * @return sideEffects - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.") public String getSideEffects() { return sideEffects; } - public void setSideEffects(String sideEffects) { + public void setSideEffects(@jakarta.annotation.Nonnull String sideEffects) { this.sideEffects = sideEffects; } - public V1ValidatingWebhook timeoutSeconds(Integer timeoutSeconds) { + public V1ValidatingWebhook timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } - /** + /** * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. * @return timeoutSeconds - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.") public Integer getTimeoutSeconds() { return timeoutSeconds; } - public void setTimeoutSeconds(Integer timeoutSeconds) { + public void setTimeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; } @@ -435,12 +445,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("sideEffects"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ValidatingWebhook - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ValidatingWebhook + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ValidatingWebhook.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -550,22 +560,22 @@ public V1ValidatingWebhook read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ValidatingWebhook given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ValidatingWebhook - * @throws IOException if the JSON string is invalid with respect to V1ValidatingWebhook - */ + /** + * Create an instance of V1ValidatingWebhook given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ValidatingWebhook + * @throws IOException if the JSON string is invalid with respect to V1ValidatingWebhook + */ public static V1ValidatingWebhook fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ValidatingWebhook.class); } - /** - * Convert an instance of V1ValidatingWebhook to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ValidatingWebhook to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfiguration.java index 29e350dbda..ec44b0ac4d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfiguration.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,88 +54,92 @@ * ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. */ @ApiModel(description = "ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ValidatingWebhookConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_WEBHOOKS = "webhooks"; @SerializedName(SERIALIZED_NAME_WEBHOOKS) + @jakarta.annotation.Nullable private List webhooks = new ArrayList<>(); public V1ValidatingWebhookConfiguration() { } - public V1ValidatingWebhookConfiguration apiVersion(String apiVersion) { + public V1ValidatingWebhookConfiguration apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ValidatingWebhookConfiguration kind(String kind) { + public V1ValidatingWebhookConfiguration kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ValidatingWebhookConfiguration metadata(V1ObjectMeta metadata) { + public V1ValidatingWebhookConfiguration metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1ValidatingWebhookConfiguration webhooks(List webhooks) { + public V1ValidatingWebhookConfiguration webhooks(@jakarta.annotation.Nullable List webhooks) { this.webhooks = webhooks; return this; } @@ -149,17 +152,17 @@ public V1ValidatingWebhookConfiguration addWebhooksItem(V1ValidatingWebhook webh return this; } - /** + /** * Webhooks is a list of webhooks and the affected resources and operations. * @return webhooks - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Webhooks is a list of webhooks and the affected resources and operations.") public List getWebhooks() { return webhooks; } - public void setWebhooks(List webhooks) { + public void setWebhooks(@jakarta.annotation.Nullable List webhooks) { this.webhooks = webhooks; } @@ -224,12 +227,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ValidatingWebhookConfiguration - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ValidatingWebhookConfiguration + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ValidatingWebhookConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -300,22 +303,22 @@ public V1ValidatingWebhookConfiguration read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ValidatingWebhookConfiguration given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ValidatingWebhookConfiguration - * @throws IOException if the JSON string is invalid with respect to V1ValidatingWebhookConfiguration - */ + /** + * Create an instance of V1ValidatingWebhookConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ValidatingWebhookConfiguration + * @throws IOException if the JSON string is invalid with respect to V1ValidatingWebhookConfiguration + */ public static V1ValidatingWebhookConfiguration fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ValidatingWebhookConfiguration.class); } - /** - * Convert an instance of V1ValidatingWebhookConfiguration to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ValidatingWebhookConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationList.java index e62efddbc1..6ab1073156 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. */ @ApiModel(description = "ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ValidatingWebhookConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1ValidatingWebhookConfigurationList() { } - public V1ValidatingWebhookConfigurationList apiVersion(String apiVersion) { + public V1ValidatingWebhookConfigurationList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1ValidatingWebhookConfigurationList items(List items) { + public V1ValidatingWebhookConfigurationList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1ValidatingWebhookConfigurationList addItemsItem(V1ValidatingWebhookConf return this; } - /** + /** * List of ValidatingWebhookConfiguration. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "List of ValidatingWebhookConfiguration.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1ValidatingWebhookConfigurationList kind(String kind) { + public V1ValidatingWebhookConfigurationList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1ValidatingWebhookConfigurationList metadata(V1ListMeta metadata) { + public V1ValidatingWebhookConfigurationList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ValidatingWebhookConfigurationList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ValidatingWebhookConfigurationList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ValidatingWebhookConfigurationList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1ValidatingWebhookConfigurationList read(JsonReader in) throws IOExcepti } } - /** - * Create an instance of V1ValidatingWebhookConfigurationList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ValidatingWebhookConfigurationList - * @throws IOException if the JSON string is invalid with respect to V1ValidatingWebhookConfigurationList - */ + /** + * Create an instance of V1ValidatingWebhookConfigurationList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ValidatingWebhookConfigurationList + * @throws IOException if the JSON string is invalid with respect to V1ValidatingWebhookConfigurationList + */ public static V1ValidatingWebhookConfigurationList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ValidatingWebhookConfigurationList.class); } - /** - * Convert an instance of V1ValidatingWebhookConfigurationList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ValidatingWebhookConfigurationList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Validation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Validation.java index d54d11b7a4..94930bc9e6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Validation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Validation.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,103 +50,107 @@ * Validation specifies the CEL expression which is used to apply the validation. */ @ApiModel(description = "Validation specifies the CEL expression which is used to apply the validation.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Validation { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) + @jakarta.annotation.Nonnull private String expression; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_MESSAGE_EXPRESSION = "messageExpression"; @SerializedName(SERIALIZED_NAME_MESSAGE_EXPRESSION) + @jakarta.annotation.Nullable private String messageExpression; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public V1Validation() { } - public V1Validation expression(String expression) { + public V1Validation expression(@jakarta.annotation.Nonnull String expression) { this.expression = expression; return this; } - /** + /** * Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"} - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"} - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required. * @return expression - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"} - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"} - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required.") public String getExpression() { return expression; } - public void setExpression(String expression) { + public void setExpression(@jakarta.annotation.Nonnull String expression) { this.expression = expression; } - public V1Validation message(String message) { + public V1Validation message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\". * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1Validation messageExpression(String messageExpression) { + public V1Validation messageExpression(@jakarta.annotation.Nullable String messageExpression) { this.messageExpression = messageExpression; return this; } - /** + /** * messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\" * @return messageExpression - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"") public String getMessageExpression() { return messageExpression; } - public void setMessageExpression(String messageExpression) { + public void setMessageExpression(@jakarta.annotation.Nullable String messageExpression) { this.messageExpression = messageExpression; } - public V1Validation reason(String reason) { + public V1Validation reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } @@ -213,12 +216,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("expression"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Validation - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Validation + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Validation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -284,22 +287,22 @@ public V1Validation read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Validation given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Validation - * @throws IOException if the JSON string is invalid with respect to V1Validation - */ + /** + * Create an instance of V1Validation given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Validation + * @throws IOException if the JSON string is invalid with respect to V1Validation + */ public static V1Validation fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Validation.class); } - /** - * Convert an instance of V1Validation to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Validation to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRule.java index 223dde8ec0..ecd4230efc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRule.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,151 +50,157 @@ * ValidationRule describes a validation rule written in the CEL expression language. */ @ApiModel(description = "ValidationRule describes a validation rule written in the CEL expression language.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ValidationRule { public static final String SERIALIZED_NAME_FIELD_PATH = "fieldPath"; @SerializedName(SERIALIZED_NAME_FIELD_PATH) + @jakarta.annotation.Nullable private String fieldPath; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_MESSAGE_EXPRESSION = "messageExpression"; @SerializedName(SERIALIZED_NAME_MESSAGE_EXPRESSION) + @jakarta.annotation.Nullable private String messageExpression; public static final String SERIALIZED_NAME_OPTIONAL_OLD_SELF = "optionalOldSelf"; @SerializedName(SERIALIZED_NAME_OPTIONAL_OLD_SELF) + @jakarta.annotation.Nullable private Boolean optionalOldSelf; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_RULE = "rule"; @SerializedName(SERIALIZED_NAME_RULE) + @jakarta.annotation.Nonnull private String rule; public V1ValidationRule() { } - public V1ValidationRule fieldPath(String fieldPath) { + public V1ValidationRule fieldPath(@jakarta.annotation.Nullable String fieldPath) { this.fieldPath = fieldPath; return this; } - /** + /** * fieldPath represents the field path returned when the validation fails. It must be a relative JSON path (i.e. with array notation) scoped to the location of this x-kubernetes-validations extension in the schema and refer to an existing field. e.g. when validation checks if a specific attribute `foo` under a map `testMap`, the fieldPath could be set to `.testMap.foo` If the validation checks two lists must have unique attributes, the fieldPath could be set to either of the list: e.g. `.testList` It does not support list numeric index. It supports child operation to refer to an existing field currently. Refer to [JSONPath support in Kubernetes](https://kubernetes.io/docs/reference/kubectl/jsonpath/) for more info. Numeric index of array is not supported. For field name which contains special characters, use `['specialName']` to refer the field name. e.g. for attribute `foo.34$` appears in a list `testList`, the fieldPath could be set to `.testList['foo.34$']` * @return fieldPath - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fieldPath represents the field path returned when the validation fails. It must be a relative JSON path (i.e. with array notation) scoped to the location of this x-kubernetes-validations extension in the schema and refer to an existing field. e.g. when validation checks if a specific attribute `foo` under a map `testMap`, the fieldPath could be set to `.testMap.foo` If the validation checks two lists must have unique attributes, the fieldPath could be set to either of the list: e.g. `.testList` It does not support list numeric index. It supports child operation to refer to an existing field currently. Refer to [JSONPath support in Kubernetes](https://kubernetes.io/docs/reference/kubectl/jsonpath/) for more info. Numeric index of array is not supported. For field name which contains special characters, use `['specialName']` to refer the field name. e.g. for attribute `foo.34$` appears in a list `testList`, the fieldPath could be set to `.testList['foo.34$']`") public String getFieldPath() { return fieldPath; } - public void setFieldPath(String fieldPath) { + public void setFieldPath(@jakarta.annotation.Nullable String fieldPath) { this.fieldPath = fieldPath; } - public V1ValidationRule message(String message) { + public V1ValidationRule message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * Message represents the message displayed when validation fails. The message is required if the Rule contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Message represents the message displayed when validation fails. The message is required if the Rule contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\"") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1ValidationRule messageExpression(String messageExpression) { + public V1ValidationRule messageExpression(@jakarta.annotation.Nullable String messageExpression) { this.messageExpression = messageExpression; return this; } - /** + /** * MessageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a rule, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the rule; the only difference is the return type. Example: \"x must be less than max (\"+string(self.max)+\")\" * @return messageExpression - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "MessageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a rule, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the rule; the only difference is the return type. Example: \"x must be less than max (\"+string(self.max)+\")\"") public String getMessageExpression() { return messageExpression; } - public void setMessageExpression(String messageExpression) { + public void setMessageExpression(@jakarta.annotation.Nullable String messageExpression) { this.messageExpression = messageExpression; } - public V1ValidationRule optionalOldSelf(Boolean optionalOldSelf) { + public V1ValidationRule optionalOldSelf(@jakarta.annotation.Nullable Boolean optionalOldSelf) { this.optionalOldSelf = optionalOldSelf; return this; } - /** + /** * optionalOldSelf is used to opt a transition rule into evaluation even when the object is first created, or if the old object is missing the value. When enabled `oldSelf` will be a CEL optional whose value will be `None` if there is no old value, or when the object is initially created. You may check for presence of oldSelf using `oldSelf.hasValue()` and unwrap it after checking using `oldSelf.value()`. Check the CEL documentation for Optional types for more information: https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes May not be set unless `oldSelf` is used in `rule`. * @return optionalOldSelf - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "optionalOldSelf is used to opt a transition rule into evaluation even when the object is first created, or if the old object is missing the value. When enabled `oldSelf` will be a CEL optional whose value will be `None` if there is no old value, or when the object is initially created. You may check for presence of oldSelf using `oldSelf.hasValue()` and unwrap it after checking using `oldSelf.value()`. Check the CEL documentation for Optional types for more information: https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes May not be set unless `oldSelf` is used in `rule`.") public Boolean getOptionalOldSelf() { return optionalOldSelf; } - public void setOptionalOldSelf(Boolean optionalOldSelf) { + public void setOptionalOldSelf(@jakarta.annotation.Nullable Boolean optionalOldSelf) { this.optionalOldSelf = optionalOldSelf; } - public V1ValidationRule reason(String reason) { + public V1ValidationRule reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * reason provides a machine-readable validation failure reason that is returned to the caller when a request fails this validation rule. The HTTP status code returned to the caller will match the reason of the reason of the first failed validation rule. The currently supported reasons are: \"FieldValueInvalid\", \"FieldValueForbidden\", \"FieldValueRequired\", \"FieldValueDuplicate\". If not set, default to use \"FieldValueInvalid\". All future added reasons must be accepted by clients when reading this value and unknown reasons should be treated as FieldValueInvalid. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "reason provides a machine-readable validation failure reason that is returned to the caller when a request fails this validation rule. The HTTP status code returned to the caller will match the reason of the reason of the first failed validation rule. The currently supported reasons are: \"FieldValueInvalid\", \"FieldValueForbidden\", \"FieldValueRequired\", \"FieldValueDuplicate\". If not set, default to use \"FieldValueInvalid\". All future added reasons must be accepted by clients when reading this value and unknown reasons should be treated as FieldValueInvalid.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } - public V1ValidationRule rule(String rule) { + public V1ValidationRule rule(@jakarta.annotation.Nonnull String rule) { this.rule = rule; return this; } - /** + /** * Rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the x-kubernetes-validations extension in the schema. The `self` variable in the CEL expression is bound to the scoped value. Example: - Rule scoped to the root of a resource with a status subresource: {\"rule\": \"self.status.actual <= self.spec.maxDesired\"} If the Rule is scoped to an object with properties, the accessible properties of the object are field selectable via `self.field` and field presence can be checked via `has(self.field)`. Null valued fields are treated as absent fields in CEL expressions. If the Rule is scoped to an object with additionalProperties (i.e. a map) the value of the map are accessible via `self[mapKey]`, map containment can be checked via `mapKey in self` and all entries of the map are accessible via CEL macros and functions such as `self.all(...)`. If the Rule is scoped to an array, the elements of the array are accessible via `self[i]` and also by macros and functions. If the Rule is scoped to a scalar, `self` is bound to the scalar value. Examples: - Rule scoped to a map of objects: {\"rule\": \"self.components['Widget'].priority < 10\"} - Rule scoped to a list of integers: {\"rule\": \"self.values.all(value, value >= 0 && value < 100)\"} - Rule scoped to a string value: {\"rule\": \"self.startsWith('kube')\"} The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object and from any x-kubernetes-embedded-resource annotated objects. No other metadata properties are accessible. Unknown data preserved in custom resources via x-kubernetes-preserve-unknown-fields is not accessible in CEL expressions. This includes: - Unknown field values that are preserved by object schemas with x-kubernetes-preserve-unknown-fields. - Object properties where the property schema is of an \"unknown type\". An \"unknown type\" is recursively defined as: - A schema with no type and x-kubernetes-preserve-unknown-fields set to true - An array where the items schema is of an \"unknown type\" - An object where the additionalProperties schema is of an \"unknown type\" Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Rule accessing a property named \"namespace\": {\"rule\": \"self.__namespace__ > 0\"} - Rule accessing a property named \"x-prop\": {\"rule\": \"self.x__dash__prop > 0\"} - Rule accessing a property named \"redact__d\": {\"rule\": \"self.redact__underscores__d > 0\"} Equality on arrays with x-kubernetes-list-type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. If `rule` makes use of the `oldSelf` variable it is implicitly a `transition rule`. By default, the `oldSelf` variable is the same type as `self`. When `optionalOldSelf` is true, the `oldSelf` variable is a CEL optional variable whose value() is the same type as `self`. See the documentation for the `optionalOldSelf` field for details. Transition rules by default are applied only on UPDATE requests and are skipped if an old value could not be found. You can opt a transition rule into unconditional evaluation by setting `optionalOldSelf` to true. * @return rule - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the x-kubernetes-validations extension in the schema. The `self` variable in the CEL expression is bound to the scoped value. Example: - Rule scoped to the root of a resource with a status subresource: {\"rule\": \"self.status.actual <= self.spec.maxDesired\"} If the Rule is scoped to an object with properties, the accessible properties of the object are field selectable via `self.field` and field presence can be checked via `has(self.field)`. Null valued fields are treated as absent fields in CEL expressions. If the Rule is scoped to an object with additionalProperties (i.e. a map) the value of the map are accessible via `self[mapKey]`, map containment can be checked via `mapKey in self` and all entries of the map are accessible via CEL macros and functions such as `self.all(...)`. If the Rule is scoped to an array, the elements of the array are accessible via `self[i]` and also by macros and functions. If the Rule is scoped to a scalar, `self` is bound to the scalar value. Examples: - Rule scoped to a map of objects: {\"rule\": \"self.components['Widget'].priority < 10\"} - Rule scoped to a list of integers: {\"rule\": \"self.values.all(value, value >= 0 && value < 100)\"} - Rule scoped to a string value: {\"rule\": \"self.startsWith('kube')\"} The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object and from any x-kubernetes-embedded-resource annotated objects. No other metadata properties are accessible. Unknown data preserved in custom resources via x-kubernetes-preserve-unknown-fields is not accessible in CEL expressions. This includes: - Unknown field values that are preserved by object schemas with x-kubernetes-preserve-unknown-fields. - Object properties where the property schema is of an \"unknown type\". An \"unknown type\" is recursively defined as: - A schema with no type and x-kubernetes-preserve-unknown-fields set to true - An array where the items schema is of an \"unknown type\" - An object where the additionalProperties schema is of an \"unknown type\" Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Rule accessing a property named \"namespace\": {\"rule\": \"self.__namespace__ > 0\"} - Rule accessing a property named \"x-prop\": {\"rule\": \"self.x__dash__prop > 0\"} - Rule accessing a property named \"redact__d\": {\"rule\": \"self.redact__underscores__d > 0\"} Equality on arrays with x-kubernetes-list-type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. If `rule` makes use of the `oldSelf` variable it is implicitly a `transition rule`. By default, the `oldSelf` variable is the same type as `self`. When `optionalOldSelf` is true, the `oldSelf` variable is a CEL optional variable whose value() is the same type as `self`. See the documentation for the `optionalOldSelf` field for details. Transition rules by default are applied only on UPDATE requests and are skipped if an old value could not be found. You can opt a transition rule into unconditional evaluation by setting `optionalOldSelf` to true.") public String getRule() { return rule; } - public void setRule(String rule) { + public void setRule(@jakarta.annotation.Nonnull String rule) { this.rule = rule; } @@ -267,12 +272,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("rule"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1ValidationRule - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ValidationRule + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ValidationRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -341,22 +346,22 @@ public V1ValidationRule read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1ValidationRule given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1ValidationRule - * @throws IOException if the JSON string is invalid with respect to V1ValidationRule - */ + /** + * Create an instance of V1ValidationRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ValidationRule + * @throws IOException if the JSON string is invalid with respect to V1ValidationRule + */ public static V1ValidationRule fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1ValidationRule.class); } - /** - * Convert an instance of V1ValidationRule to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1ValidationRule to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Variable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Variable.java index 5199f5729b..8cd38d08e8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Variable.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Variable.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * Variable is the definition of a variable that is used for composition. A variable is defined as a named expression. */ @ApiModel(description = "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Variable { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) + @jakarta.annotation.Nonnull private String expression; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public V1Variable() { } - public V1Variable expression(String expression) { + public V1Variable expression(@jakarta.annotation.Nonnull String expression) { this.expression = expression; return this; } - /** + /** * Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. * @return expression - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.") public String getExpression() { return expression; } - public void setExpression(String expression) { + public void setExpression(@jakarta.annotation.Nonnull String expression) { this.expression = expression; } - public V1Variable name(String name) { + public V1Variable name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo` * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Variable - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Variable + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Variable.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -225,22 +226,22 @@ public V1Variable read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Variable given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Variable - * @throws IOException if the JSON string is invalid with respect to V1Variable - */ + /** + * Create an instance of V1Variable given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Variable + * @throws IOException if the JSON string is invalid with respect to V1Variable + */ public static V1Variable fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Variable.class); } - /** - * Convert an instance of V1Variable to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Variable to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Volume.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Volume.java index 982a2f49f6..a0095d9faa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Volume.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Volume.java @@ -68,7 +68,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -81,751 +80,782 @@ * Volume represents a named volume in a pod that may be accessed by any container in the pod. */ @ApiModel(description = "Volume represents a named volume in a pod that may be accessed by any container in the pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Volume { public static final String SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE = "awsElasticBlockStore"; @SerializedName(SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE) + @jakarta.annotation.Nullable private V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore; public static final String SERIALIZED_NAME_AZURE_DISK = "azureDisk"; @SerializedName(SERIALIZED_NAME_AZURE_DISK) + @jakarta.annotation.Nullable private V1AzureDiskVolumeSource azureDisk; public static final String SERIALIZED_NAME_AZURE_FILE = "azureFile"; @SerializedName(SERIALIZED_NAME_AZURE_FILE) + @jakarta.annotation.Nullable private V1AzureFileVolumeSource azureFile; public static final String SERIALIZED_NAME_CEPHFS = "cephfs"; @SerializedName(SERIALIZED_NAME_CEPHFS) + @jakarta.annotation.Nullable private V1CephFSVolumeSource cephfs; public static final String SERIALIZED_NAME_CINDER = "cinder"; @SerializedName(SERIALIZED_NAME_CINDER) + @jakarta.annotation.Nullable private V1CinderVolumeSource cinder; public static final String SERIALIZED_NAME_CONFIG_MAP = "configMap"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP) + @jakarta.annotation.Nullable private V1ConfigMapVolumeSource configMap; public static final String SERIALIZED_NAME_CSI = "csi"; @SerializedName(SERIALIZED_NAME_CSI) + @jakarta.annotation.Nullable private V1CSIVolumeSource csi; public static final String SERIALIZED_NAME_DOWNWARD_A_P_I = "downwardAPI"; @SerializedName(SERIALIZED_NAME_DOWNWARD_A_P_I) + @jakarta.annotation.Nullable private V1DownwardAPIVolumeSource downwardAPI; public static final String SERIALIZED_NAME_EMPTY_DIR = "emptyDir"; @SerializedName(SERIALIZED_NAME_EMPTY_DIR) + @jakarta.annotation.Nullable private V1EmptyDirVolumeSource emptyDir; public static final String SERIALIZED_NAME_EPHEMERAL = "ephemeral"; @SerializedName(SERIALIZED_NAME_EPHEMERAL) + @jakarta.annotation.Nullable private V1EphemeralVolumeSource ephemeral; public static final String SERIALIZED_NAME_FC = "fc"; @SerializedName(SERIALIZED_NAME_FC) + @jakarta.annotation.Nullable private V1FCVolumeSource fc; public static final String SERIALIZED_NAME_FLEX_VOLUME = "flexVolume"; @SerializedName(SERIALIZED_NAME_FLEX_VOLUME) + @jakarta.annotation.Nullable private V1FlexVolumeSource flexVolume; public static final String SERIALIZED_NAME_FLOCKER = "flocker"; @SerializedName(SERIALIZED_NAME_FLOCKER) + @jakarta.annotation.Nullable private V1FlockerVolumeSource flocker; public static final String SERIALIZED_NAME_GCE_PERSISTENT_DISK = "gcePersistentDisk"; @SerializedName(SERIALIZED_NAME_GCE_PERSISTENT_DISK) + @jakarta.annotation.Nullable private V1GCEPersistentDiskVolumeSource gcePersistentDisk; public static final String SERIALIZED_NAME_GIT_REPO = "gitRepo"; @SerializedName(SERIALIZED_NAME_GIT_REPO) + @jakarta.annotation.Nullable private V1GitRepoVolumeSource gitRepo; public static final String SERIALIZED_NAME_GLUSTERFS = "glusterfs"; @SerializedName(SERIALIZED_NAME_GLUSTERFS) + @jakarta.annotation.Nullable private V1GlusterfsVolumeSource glusterfs; public static final String SERIALIZED_NAME_HOST_PATH = "hostPath"; @SerializedName(SERIALIZED_NAME_HOST_PATH) + @jakarta.annotation.Nullable private V1HostPathVolumeSource hostPath; public static final String SERIALIZED_NAME_IMAGE = "image"; @SerializedName(SERIALIZED_NAME_IMAGE) + @jakarta.annotation.Nullable private V1ImageVolumeSource image; public static final String SERIALIZED_NAME_ISCSI = "iscsi"; @SerializedName(SERIALIZED_NAME_ISCSI) + @jakarta.annotation.Nullable private V1ISCSIVolumeSource iscsi; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_NFS = "nfs"; @SerializedName(SERIALIZED_NAME_NFS) + @jakarta.annotation.Nullable private V1NFSVolumeSource nfs; public static final String SERIALIZED_NAME_PERSISTENT_VOLUME_CLAIM = "persistentVolumeClaim"; @SerializedName(SERIALIZED_NAME_PERSISTENT_VOLUME_CLAIM) + @jakarta.annotation.Nullable private V1PersistentVolumeClaimVolumeSource persistentVolumeClaim; public static final String SERIALIZED_NAME_PHOTON_PERSISTENT_DISK = "photonPersistentDisk"; @SerializedName(SERIALIZED_NAME_PHOTON_PERSISTENT_DISK) + @jakarta.annotation.Nullable private V1PhotonPersistentDiskVolumeSource photonPersistentDisk; public static final String SERIALIZED_NAME_PORTWORX_VOLUME = "portworxVolume"; @SerializedName(SERIALIZED_NAME_PORTWORX_VOLUME) + @jakarta.annotation.Nullable private V1PortworxVolumeSource portworxVolume; public static final String SERIALIZED_NAME_PROJECTED = "projected"; @SerializedName(SERIALIZED_NAME_PROJECTED) + @jakarta.annotation.Nullable private V1ProjectedVolumeSource projected; public static final String SERIALIZED_NAME_QUOBYTE = "quobyte"; @SerializedName(SERIALIZED_NAME_QUOBYTE) + @jakarta.annotation.Nullable private V1QuobyteVolumeSource quobyte; public static final String SERIALIZED_NAME_RBD = "rbd"; @SerializedName(SERIALIZED_NAME_RBD) + @jakarta.annotation.Nullable private V1RBDVolumeSource rbd; public static final String SERIALIZED_NAME_SCALE_I_O = "scaleIO"; @SerializedName(SERIALIZED_NAME_SCALE_I_O) + @jakarta.annotation.Nullable private V1ScaleIOVolumeSource scaleIO; public static final String SERIALIZED_NAME_SECRET = "secret"; @SerializedName(SERIALIZED_NAME_SECRET) + @jakarta.annotation.Nullable private V1SecretVolumeSource secret; public static final String SERIALIZED_NAME_STORAGEOS = "storageos"; @SerializedName(SERIALIZED_NAME_STORAGEOS) + @jakarta.annotation.Nullable private V1StorageOSVolumeSource storageos; public static final String SERIALIZED_NAME_VSPHERE_VOLUME = "vsphereVolume"; @SerializedName(SERIALIZED_NAME_VSPHERE_VOLUME) + @jakarta.annotation.Nullable private V1VsphereVirtualDiskVolumeSource vsphereVolume; public V1Volume() { } - public V1Volume awsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { + public V1Volume awsElasticBlockStore(@jakarta.annotation.Nullable V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { this.awsElasticBlockStore = awsElasticBlockStore; return this; } - /** + /** * Get awsElasticBlockStore * @return awsElasticBlockStore - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore() { return awsElasticBlockStore; } - public void setAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { + public void setAwsElasticBlockStore(@jakarta.annotation.Nullable V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { this.awsElasticBlockStore = awsElasticBlockStore; } - public V1Volume azureDisk(V1AzureDiskVolumeSource azureDisk) { + public V1Volume azureDisk(@jakarta.annotation.Nullable V1AzureDiskVolumeSource azureDisk) { this.azureDisk = azureDisk; return this; } - /** + /** * Get azureDisk * @return azureDisk - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1AzureDiskVolumeSource getAzureDisk() { return azureDisk; } - public void setAzureDisk(V1AzureDiskVolumeSource azureDisk) { + public void setAzureDisk(@jakarta.annotation.Nullable V1AzureDiskVolumeSource azureDisk) { this.azureDisk = azureDisk; } - public V1Volume azureFile(V1AzureFileVolumeSource azureFile) { + public V1Volume azureFile(@jakarta.annotation.Nullable V1AzureFileVolumeSource azureFile) { this.azureFile = azureFile; return this; } - /** + /** * Get azureFile * @return azureFile - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1AzureFileVolumeSource getAzureFile() { return azureFile; } - public void setAzureFile(V1AzureFileVolumeSource azureFile) { + public void setAzureFile(@jakarta.annotation.Nullable V1AzureFileVolumeSource azureFile) { this.azureFile = azureFile; } - public V1Volume cephfs(V1CephFSVolumeSource cephfs) { + public V1Volume cephfs(@jakarta.annotation.Nullable V1CephFSVolumeSource cephfs) { this.cephfs = cephfs; return this; } - /** + /** * Get cephfs * @return cephfs - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1CephFSVolumeSource getCephfs() { return cephfs; } - public void setCephfs(V1CephFSVolumeSource cephfs) { + public void setCephfs(@jakarta.annotation.Nullable V1CephFSVolumeSource cephfs) { this.cephfs = cephfs; } - public V1Volume cinder(V1CinderVolumeSource cinder) { + public V1Volume cinder(@jakarta.annotation.Nullable V1CinderVolumeSource cinder) { this.cinder = cinder; return this; } - /** + /** * Get cinder * @return cinder - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1CinderVolumeSource getCinder() { return cinder; } - public void setCinder(V1CinderVolumeSource cinder) { + public void setCinder(@jakarta.annotation.Nullable V1CinderVolumeSource cinder) { this.cinder = cinder; } - public V1Volume configMap(V1ConfigMapVolumeSource configMap) { + public V1Volume configMap(@jakarta.annotation.Nullable V1ConfigMapVolumeSource configMap) { this.configMap = configMap; return this; } - /** + /** * Get configMap * @return configMap - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ConfigMapVolumeSource getConfigMap() { return configMap; } - public void setConfigMap(V1ConfigMapVolumeSource configMap) { + public void setConfigMap(@jakarta.annotation.Nullable V1ConfigMapVolumeSource configMap) { this.configMap = configMap; } - public V1Volume csi(V1CSIVolumeSource csi) { + public V1Volume csi(@jakarta.annotation.Nullable V1CSIVolumeSource csi) { this.csi = csi; return this; } - /** + /** * Get csi * @return csi - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1CSIVolumeSource getCsi() { return csi; } - public void setCsi(V1CSIVolumeSource csi) { + public void setCsi(@jakarta.annotation.Nullable V1CSIVolumeSource csi) { this.csi = csi; } - public V1Volume downwardAPI(V1DownwardAPIVolumeSource downwardAPI) { + public V1Volume downwardAPI(@jakarta.annotation.Nullable V1DownwardAPIVolumeSource downwardAPI) { this.downwardAPI = downwardAPI; return this; } - /** + /** * Get downwardAPI * @return downwardAPI - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1DownwardAPIVolumeSource getDownwardAPI() { return downwardAPI; } - public void setDownwardAPI(V1DownwardAPIVolumeSource downwardAPI) { + public void setDownwardAPI(@jakarta.annotation.Nullable V1DownwardAPIVolumeSource downwardAPI) { this.downwardAPI = downwardAPI; } - public V1Volume emptyDir(V1EmptyDirVolumeSource emptyDir) { + public V1Volume emptyDir(@jakarta.annotation.Nullable V1EmptyDirVolumeSource emptyDir) { this.emptyDir = emptyDir; return this; } - /** + /** * Get emptyDir * @return emptyDir - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1EmptyDirVolumeSource getEmptyDir() { return emptyDir; } - public void setEmptyDir(V1EmptyDirVolumeSource emptyDir) { + public void setEmptyDir(@jakarta.annotation.Nullable V1EmptyDirVolumeSource emptyDir) { this.emptyDir = emptyDir; } - public V1Volume ephemeral(V1EphemeralVolumeSource ephemeral) { + public V1Volume ephemeral(@jakarta.annotation.Nullable V1EphemeralVolumeSource ephemeral) { this.ephemeral = ephemeral; return this; } - /** + /** * Get ephemeral * @return ephemeral - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1EphemeralVolumeSource getEphemeral() { return ephemeral; } - public void setEphemeral(V1EphemeralVolumeSource ephemeral) { + public void setEphemeral(@jakarta.annotation.Nullable V1EphemeralVolumeSource ephemeral) { this.ephemeral = ephemeral; } - public V1Volume fc(V1FCVolumeSource fc) { + public V1Volume fc(@jakarta.annotation.Nullable V1FCVolumeSource fc) { this.fc = fc; return this; } - /** + /** * Get fc * @return fc - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1FCVolumeSource getFc() { return fc; } - public void setFc(V1FCVolumeSource fc) { + public void setFc(@jakarta.annotation.Nullable V1FCVolumeSource fc) { this.fc = fc; } - public V1Volume flexVolume(V1FlexVolumeSource flexVolume) { + public V1Volume flexVolume(@jakarta.annotation.Nullable V1FlexVolumeSource flexVolume) { this.flexVolume = flexVolume; return this; } - /** + /** * Get flexVolume * @return flexVolume - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1FlexVolumeSource getFlexVolume() { return flexVolume; } - public void setFlexVolume(V1FlexVolumeSource flexVolume) { + public void setFlexVolume(@jakarta.annotation.Nullable V1FlexVolumeSource flexVolume) { this.flexVolume = flexVolume; } - public V1Volume flocker(V1FlockerVolumeSource flocker) { + public V1Volume flocker(@jakarta.annotation.Nullable V1FlockerVolumeSource flocker) { this.flocker = flocker; return this; } - /** + /** * Get flocker * @return flocker - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1FlockerVolumeSource getFlocker() { return flocker; } - public void setFlocker(V1FlockerVolumeSource flocker) { + public void setFlocker(@jakarta.annotation.Nullable V1FlockerVolumeSource flocker) { this.flocker = flocker; } - public V1Volume gcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) { + public V1Volume gcePersistentDisk(@jakarta.annotation.Nullable V1GCEPersistentDiskVolumeSource gcePersistentDisk) { this.gcePersistentDisk = gcePersistentDisk; return this; } - /** + /** * Get gcePersistentDisk * @return gcePersistentDisk - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1GCEPersistentDiskVolumeSource getGcePersistentDisk() { return gcePersistentDisk; } - public void setGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) { + public void setGcePersistentDisk(@jakarta.annotation.Nullable V1GCEPersistentDiskVolumeSource gcePersistentDisk) { this.gcePersistentDisk = gcePersistentDisk; } - public V1Volume gitRepo(V1GitRepoVolumeSource gitRepo) { + public V1Volume gitRepo(@jakarta.annotation.Nullable V1GitRepoVolumeSource gitRepo) { this.gitRepo = gitRepo; return this; } - /** + /** * Get gitRepo * @return gitRepo - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1GitRepoVolumeSource getGitRepo() { return gitRepo; } - public void setGitRepo(V1GitRepoVolumeSource gitRepo) { + public void setGitRepo(@jakarta.annotation.Nullable V1GitRepoVolumeSource gitRepo) { this.gitRepo = gitRepo; } - public V1Volume glusterfs(V1GlusterfsVolumeSource glusterfs) { + public V1Volume glusterfs(@jakarta.annotation.Nullable V1GlusterfsVolumeSource glusterfs) { this.glusterfs = glusterfs; return this; } - /** + /** * Get glusterfs * @return glusterfs - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1GlusterfsVolumeSource getGlusterfs() { return glusterfs; } - public void setGlusterfs(V1GlusterfsVolumeSource glusterfs) { + public void setGlusterfs(@jakarta.annotation.Nullable V1GlusterfsVolumeSource glusterfs) { this.glusterfs = glusterfs; } - public V1Volume hostPath(V1HostPathVolumeSource hostPath) { + public V1Volume hostPath(@jakarta.annotation.Nullable V1HostPathVolumeSource hostPath) { this.hostPath = hostPath; return this; } - /** + /** * Get hostPath * @return hostPath - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1HostPathVolumeSource getHostPath() { return hostPath; } - public void setHostPath(V1HostPathVolumeSource hostPath) { + public void setHostPath(@jakarta.annotation.Nullable V1HostPathVolumeSource hostPath) { this.hostPath = hostPath; } - public V1Volume image(V1ImageVolumeSource image) { + public V1Volume image(@jakarta.annotation.Nullable V1ImageVolumeSource image) { this.image = image; return this; } - /** + /** * Get image * @return image - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ImageVolumeSource getImage() { return image; } - public void setImage(V1ImageVolumeSource image) { + public void setImage(@jakarta.annotation.Nullable V1ImageVolumeSource image) { this.image = image; } - public V1Volume iscsi(V1ISCSIVolumeSource iscsi) { + public V1Volume iscsi(@jakarta.annotation.Nullable V1ISCSIVolumeSource iscsi) { this.iscsi = iscsi; return this; } - /** + /** * Get iscsi * @return iscsi - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ISCSIVolumeSource getIscsi() { return iscsi; } - public void setIscsi(V1ISCSIVolumeSource iscsi) { + public void setIscsi(@jakarta.annotation.Nullable V1ISCSIVolumeSource iscsi) { this.iscsi = iscsi; } - public V1Volume name(String name) { + public V1Volume name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1Volume nfs(V1NFSVolumeSource nfs) { + public V1Volume nfs(@jakarta.annotation.Nullable V1NFSVolumeSource nfs) { this.nfs = nfs; return this; } - /** + /** * Get nfs * @return nfs - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1NFSVolumeSource getNfs() { return nfs; } - public void setNfs(V1NFSVolumeSource nfs) { + public void setNfs(@jakarta.annotation.Nullable V1NFSVolumeSource nfs) { this.nfs = nfs; } - public V1Volume persistentVolumeClaim(V1PersistentVolumeClaimVolumeSource persistentVolumeClaim) { + public V1Volume persistentVolumeClaim(@jakarta.annotation.Nullable V1PersistentVolumeClaimVolumeSource persistentVolumeClaim) { this.persistentVolumeClaim = persistentVolumeClaim; return this; } - /** + /** * Get persistentVolumeClaim * @return persistentVolumeClaim - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PersistentVolumeClaimVolumeSource getPersistentVolumeClaim() { return persistentVolumeClaim; } - public void setPersistentVolumeClaim(V1PersistentVolumeClaimVolumeSource persistentVolumeClaim) { + public void setPersistentVolumeClaim(@jakarta.annotation.Nullable V1PersistentVolumeClaimVolumeSource persistentVolumeClaim) { this.persistentVolumeClaim = persistentVolumeClaim; } - public V1Volume photonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { + public V1Volume photonPersistentDisk(@jakarta.annotation.Nullable V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { this.photonPersistentDisk = photonPersistentDisk; return this; } - /** + /** * Get photonPersistentDisk * @return photonPersistentDisk - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PhotonPersistentDiskVolumeSource getPhotonPersistentDisk() { return photonPersistentDisk; } - public void setPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { + public void setPhotonPersistentDisk(@jakarta.annotation.Nullable V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { this.photonPersistentDisk = photonPersistentDisk; } - public V1Volume portworxVolume(V1PortworxVolumeSource portworxVolume) { + public V1Volume portworxVolume(@jakarta.annotation.Nullable V1PortworxVolumeSource portworxVolume) { this.portworxVolume = portworxVolume; return this; } - /** + /** * Get portworxVolume * @return portworxVolume - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PortworxVolumeSource getPortworxVolume() { return portworxVolume; } - public void setPortworxVolume(V1PortworxVolumeSource portworxVolume) { + public void setPortworxVolume(@jakarta.annotation.Nullable V1PortworxVolumeSource portworxVolume) { this.portworxVolume = portworxVolume; } - public V1Volume projected(V1ProjectedVolumeSource projected) { + public V1Volume projected(@jakarta.annotation.Nullable V1ProjectedVolumeSource projected) { this.projected = projected; return this; } - /** + /** * Get projected * @return projected - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ProjectedVolumeSource getProjected() { return projected; } - public void setProjected(V1ProjectedVolumeSource projected) { + public void setProjected(@jakarta.annotation.Nullable V1ProjectedVolumeSource projected) { this.projected = projected; } - public V1Volume quobyte(V1QuobyteVolumeSource quobyte) { + public V1Volume quobyte(@jakarta.annotation.Nullable V1QuobyteVolumeSource quobyte) { this.quobyte = quobyte; return this; } - /** + /** * Get quobyte * @return quobyte - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1QuobyteVolumeSource getQuobyte() { return quobyte; } - public void setQuobyte(V1QuobyteVolumeSource quobyte) { + public void setQuobyte(@jakarta.annotation.Nullable V1QuobyteVolumeSource quobyte) { this.quobyte = quobyte; } - public V1Volume rbd(V1RBDVolumeSource rbd) { + public V1Volume rbd(@jakarta.annotation.Nullable V1RBDVolumeSource rbd) { this.rbd = rbd; return this; } - /** + /** * Get rbd * @return rbd - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1RBDVolumeSource getRbd() { return rbd; } - public void setRbd(V1RBDVolumeSource rbd) { + public void setRbd(@jakarta.annotation.Nullable V1RBDVolumeSource rbd) { this.rbd = rbd; } - public V1Volume scaleIO(V1ScaleIOVolumeSource scaleIO) { + public V1Volume scaleIO(@jakarta.annotation.Nullable V1ScaleIOVolumeSource scaleIO) { this.scaleIO = scaleIO; return this; } - /** + /** * Get scaleIO * @return scaleIO - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ScaleIOVolumeSource getScaleIO() { return scaleIO; } - public void setScaleIO(V1ScaleIOVolumeSource scaleIO) { + public void setScaleIO(@jakarta.annotation.Nullable V1ScaleIOVolumeSource scaleIO) { this.scaleIO = scaleIO; } - public V1Volume secret(V1SecretVolumeSource secret) { + public V1Volume secret(@jakarta.annotation.Nullable V1SecretVolumeSource secret) { this.secret = secret; return this; } - /** + /** * Get secret * @return secret - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SecretVolumeSource getSecret() { return secret; } - public void setSecret(V1SecretVolumeSource secret) { + public void setSecret(@jakarta.annotation.Nullable V1SecretVolumeSource secret) { this.secret = secret; } - public V1Volume storageos(V1StorageOSVolumeSource storageos) { + public V1Volume storageos(@jakarta.annotation.Nullable V1StorageOSVolumeSource storageos) { this.storageos = storageos; return this; } - /** + /** * Get storageos * @return storageos - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1StorageOSVolumeSource getStorageos() { return storageos; } - public void setStorageos(V1StorageOSVolumeSource storageos) { + public void setStorageos(@jakarta.annotation.Nullable V1StorageOSVolumeSource storageos) { this.storageos = storageos; } - public V1Volume vsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { + public V1Volume vsphereVolume(@jakarta.annotation.Nullable V1VsphereVirtualDiskVolumeSource vsphereVolume) { this.vsphereVolume = vsphereVolume; return this; } - /** + /** * Get vsphereVolume * @return vsphereVolume - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1VsphereVirtualDiskVolumeSource getVsphereVolume() { return vsphereVolume; } - public void setVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { + public void setVsphereVolume(@jakarta.annotation.Nullable V1VsphereVirtualDiskVolumeSource vsphereVolume) { this.vsphereVolume = vsphereVolume; } @@ -972,12 +1002,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1Volume - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Volume + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Volume.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -1154,22 +1184,22 @@ public V1Volume read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1Volume given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1Volume - * @throws IOException if the JSON string is invalid with respect to V1Volume - */ + /** + * Create an instance of V1Volume given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Volume + * @throws IOException if the JSON string is invalid with respect to V1Volume + */ public static V1Volume fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1Volume.class); } - /** - * Convert an instance of V1Volume to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1Volume to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachment.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachment.java index bc04ffacf8..f951494072 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachment.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced. */ @ApiModel(description = "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VolumeAttachment implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nonnull private V1VolumeAttachmentSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1VolumeAttachmentStatus status; public V1VolumeAttachment() { } - public V1VolumeAttachment apiVersion(String apiVersion) { + public V1VolumeAttachment apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1VolumeAttachment kind(String kind) { + public V1VolumeAttachment kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1VolumeAttachment metadata(V1ObjectMeta metadata) { + public V1VolumeAttachment metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1VolumeAttachment spec(V1VolumeAttachmentSpec spec) { + public V1VolumeAttachment spec(@jakarta.annotation.Nonnull V1VolumeAttachmentSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1VolumeAttachmentSpec getSpec() { return spec; } - public void setSpec(V1VolumeAttachmentSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1VolumeAttachmentSpec spec) { this.spec = spec; } - public V1VolumeAttachment status(V1VolumeAttachmentStatus status) { + public V1VolumeAttachment status(@jakarta.annotation.Nullable V1VolumeAttachmentStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1VolumeAttachmentStatus getStatus() { return status; } - public void setStatus(V1VolumeAttachmentStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1VolumeAttachmentStatus status) { this.status = status; } @@ -243,12 +247,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("spec"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1VolumeAttachment - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1VolumeAttachment + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeAttachment.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -318,22 +322,22 @@ public V1VolumeAttachment read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1VolumeAttachment given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1VolumeAttachment - * @throws IOException if the JSON string is invalid with respect to V1VolumeAttachment - */ + /** + * Create an instance of V1VolumeAttachment given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeAttachment + * @throws IOException if the JSON string is invalid with respect to V1VolumeAttachment + */ public static V1VolumeAttachment fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1VolumeAttachment.class); } - /** - * Convert an instance of V1VolumeAttachment to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1VolumeAttachment to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java index 92c1eee9bb..57b84f7ab2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * VolumeAttachmentList is a collection of VolumeAttachment objects. */ @ApiModel(description = "VolumeAttachmentList is a collection of VolumeAttachment objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VolumeAttachmentList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1VolumeAttachmentList() { } - public V1VolumeAttachmentList apiVersion(String apiVersion) { + public V1VolumeAttachmentList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1VolumeAttachmentList items(List items) { + public V1VolumeAttachmentList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1VolumeAttachmentList addItemsItem(V1VolumeAttachment itemsItem) { return this; } - /** + /** * items is the list of VolumeAttachments * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is the list of VolumeAttachments") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1VolumeAttachmentList kind(String kind) { + public V1VolumeAttachmentList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1VolumeAttachmentList metadata(V1ListMeta metadata) { + public V1VolumeAttachmentList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1VolumeAttachmentList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1VolumeAttachmentList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeAttachmentList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1VolumeAttachmentList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1VolumeAttachmentList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1VolumeAttachmentList - * @throws IOException if the JSON string is invalid with respect to V1VolumeAttachmentList - */ + /** + * Create an instance of V1VolumeAttachmentList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeAttachmentList + * @throws IOException if the JSON string is invalid with respect to V1VolumeAttachmentList + */ public static V1VolumeAttachmentList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1VolumeAttachmentList.class); } - /** - * Convert an instance of V1VolumeAttachmentList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1VolumeAttachmentList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java index 252730eb66..169bc8ebe3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * VolumeAttachmentSource represents a volume that should be attached. Right now only PersistentVolumes can be attached via external attacher, in the future we may allow also inline volumes in pods. Exactly one member can be set. */ @ApiModel(description = "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistentVolumes can be attached via external attacher, in the future we may allow also inline volumes in pods. Exactly one member can be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VolumeAttachmentSource { public static final String SERIALIZED_NAME_INLINE_VOLUME_SPEC = "inlineVolumeSpec"; @SerializedName(SERIALIZED_NAME_INLINE_VOLUME_SPEC) + @jakarta.annotation.Nullable private V1PersistentVolumeSpec inlineVolumeSpec; public static final String SERIALIZED_NAME_PERSISTENT_VOLUME_NAME = "persistentVolumeName"; @SerializedName(SERIALIZED_NAME_PERSISTENT_VOLUME_NAME) + @jakarta.annotation.Nullable private String persistentVolumeName; public V1VolumeAttachmentSource() { } - public V1VolumeAttachmentSource inlineVolumeSpec(V1PersistentVolumeSpec inlineVolumeSpec) { + public V1VolumeAttachmentSource inlineVolumeSpec(@jakarta.annotation.Nullable V1PersistentVolumeSpec inlineVolumeSpec) { this.inlineVolumeSpec = inlineVolumeSpec; return this; } - /** + /** * Get inlineVolumeSpec * @return inlineVolumeSpec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PersistentVolumeSpec getInlineVolumeSpec() { return inlineVolumeSpec; } - public void setInlineVolumeSpec(V1PersistentVolumeSpec inlineVolumeSpec) { + public void setInlineVolumeSpec(@jakarta.annotation.Nullable V1PersistentVolumeSpec inlineVolumeSpec) { this.inlineVolumeSpec = inlineVolumeSpec; } - public V1VolumeAttachmentSource persistentVolumeName(String persistentVolumeName) { + public V1VolumeAttachmentSource persistentVolumeName(@jakarta.annotation.Nullable String persistentVolumeName) { this.persistentVolumeName = persistentVolumeName; return this; } - /** + /** * persistentVolumeName represents the name of the persistent volume to attach. * @return persistentVolumeName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "persistentVolumeName represents the name of the persistent volume to attach.") public String getPersistentVolumeName() { return persistentVolumeName; } - public void setPersistentVolumeName(String persistentVolumeName) { + public void setPersistentVolumeName(@jakarta.annotation.Nullable String persistentVolumeName) { this.persistentVolumeName = persistentVolumeName; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1VolumeAttachmentSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1VolumeAttachmentSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeAttachmentSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -218,22 +219,22 @@ public V1VolumeAttachmentSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1VolumeAttachmentSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1VolumeAttachmentSource - * @throws IOException if the JSON string is invalid with respect to V1VolumeAttachmentSource - */ + /** + * Create an instance of V1VolumeAttachmentSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeAttachmentSource + * @throws IOException if the JSON string is invalid with respect to V1VolumeAttachmentSource + */ public static V1VolumeAttachmentSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1VolumeAttachmentSource.class); } - /** - * Convert an instance of V1VolumeAttachmentSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1VolumeAttachmentSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java index b8ed1bc29c..b2abeddb70 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,79 +51,82 @@ * VolumeAttachmentSpec is the specification of a VolumeAttachment request. */ @ApiModel(description = "VolumeAttachmentSpec is the specification of a VolumeAttachment request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VolumeAttachmentSpec { public static final String SERIALIZED_NAME_ATTACHER = "attacher"; @SerializedName(SERIALIZED_NAME_ATTACHER) + @jakarta.annotation.Nonnull private String attacher; public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; @SerializedName(SERIALIZED_NAME_NODE_NAME) + @jakarta.annotation.Nonnull private String nodeName; public static final String SERIALIZED_NAME_SOURCE = "source"; @SerializedName(SERIALIZED_NAME_SOURCE) + @jakarta.annotation.Nonnull private V1VolumeAttachmentSource source; public V1VolumeAttachmentSpec() { } - public V1VolumeAttachmentSpec attacher(String attacher) { + public V1VolumeAttachmentSpec attacher(@jakarta.annotation.Nonnull String attacher) { this.attacher = attacher; return this; } - /** + /** * attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). * @return attacher - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().") public String getAttacher() { return attacher; } - public void setAttacher(String attacher) { + public void setAttacher(@jakarta.annotation.Nonnull String attacher) { this.attacher = attacher; } - public V1VolumeAttachmentSpec nodeName(String nodeName) { + public V1VolumeAttachmentSpec nodeName(@jakarta.annotation.Nonnull String nodeName) { this.nodeName = nodeName; return this; } - /** + /** * nodeName represents the node that the volume should be attached to. * @return nodeName - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "nodeName represents the node that the volume should be attached to.") public String getNodeName() { return nodeName; } - public void setNodeName(String nodeName) { + public void setNodeName(@jakarta.annotation.Nonnull String nodeName) { this.nodeName = nodeName; } - public V1VolumeAttachmentSpec source(V1VolumeAttachmentSource source) { + public V1VolumeAttachmentSpec source(@jakarta.annotation.Nonnull V1VolumeAttachmentSource source) { this.source = source; return this; } - /** + /** * Get source * @return source - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1VolumeAttachmentSource getSource() { return source; } - public void setSource(V1VolumeAttachmentSource source) { + public void setSource(@jakarta.annotation.Nonnull V1VolumeAttachmentSource source) { this.source = source; } @@ -189,12 +191,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("source"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1VolumeAttachmentSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1VolumeAttachmentSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeAttachmentSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -256,22 +258,22 @@ public V1VolumeAttachmentSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1VolumeAttachmentSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1VolumeAttachmentSpec - * @throws IOException if the JSON string is invalid with respect to V1VolumeAttachmentSpec - */ + /** + * Create an instance of V1VolumeAttachmentSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeAttachmentSpec + * @throws IOException if the JSON string is invalid with respect to V1VolumeAttachmentSpec + */ public static V1VolumeAttachmentSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1VolumeAttachmentSpec.class); } - /** - * Convert an instance of V1VolumeAttachmentSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1VolumeAttachmentSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java index d3b3ea6e63..99762b11cc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,68 +53,72 @@ * VolumeAttachmentStatus is the status of a VolumeAttachment request. */ @ApiModel(description = "VolumeAttachmentStatus is the status of a VolumeAttachment request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VolumeAttachmentStatus { public static final String SERIALIZED_NAME_ATTACH_ERROR = "attachError"; @SerializedName(SERIALIZED_NAME_ATTACH_ERROR) + @jakarta.annotation.Nullable private V1VolumeError attachError; public static final String SERIALIZED_NAME_ATTACHED = "attached"; @SerializedName(SERIALIZED_NAME_ATTACHED) + @jakarta.annotation.Nonnull private Boolean attached; public static final String SERIALIZED_NAME_ATTACHMENT_METADATA = "attachmentMetadata"; @SerializedName(SERIALIZED_NAME_ATTACHMENT_METADATA) + @jakarta.annotation.Nullable private Map attachmentMetadata = new HashMap<>(); public static final String SERIALIZED_NAME_DETACH_ERROR = "detachError"; @SerializedName(SERIALIZED_NAME_DETACH_ERROR) + @jakarta.annotation.Nullable private V1VolumeError detachError; public V1VolumeAttachmentStatus() { } - public V1VolumeAttachmentStatus attachError(V1VolumeError attachError) { + public V1VolumeAttachmentStatus attachError(@jakarta.annotation.Nullable V1VolumeError attachError) { this.attachError = attachError; return this; } - /** + /** * Get attachError * @return attachError - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1VolumeError getAttachError() { return attachError; } - public void setAttachError(V1VolumeError attachError) { + public void setAttachError(@jakarta.annotation.Nullable V1VolumeError attachError) { this.attachError = attachError; } - public V1VolumeAttachmentStatus attached(Boolean attached) { + public V1VolumeAttachmentStatus attached(@jakarta.annotation.Nonnull Boolean attached) { this.attached = attached; return this; } - /** + /** * attached indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. * @return attached - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "attached indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.") public Boolean getAttached() { return attached; } - public void setAttached(Boolean attached) { + public void setAttached(@jakarta.annotation.Nonnull Boolean attached) { this.attached = attached; } - public V1VolumeAttachmentStatus attachmentMetadata(Map attachmentMetadata) { + public V1VolumeAttachmentStatus attachmentMetadata(@jakarta.annotation.Nullable Map attachmentMetadata) { this.attachmentMetadata = attachmentMetadata; return this; } @@ -128,37 +131,37 @@ public V1VolumeAttachmentStatus putAttachmentMetadataItem(String key, String att return this; } - /** + /** * attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. * @return attachmentMetadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.") public Map getAttachmentMetadata() { return attachmentMetadata; } - public void setAttachmentMetadata(Map attachmentMetadata) { + public void setAttachmentMetadata(@jakarta.annotation.Nullable Map attachmentMetadata) { this.attachmentMetadata = attachmentMetadata; } - public V1VolumeAttachmentStatus detachError(V1VolumeError detachError) { + public V1VolumeAttachmentStatus detachError(@jakarta.annotation.Nullable V1VolumeError detachError) { this.detachError = detachError; return this; } - /** + /** * Get detachError * @return detachError - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1VolumeError getDetachError() { return detachError; } - public void setDetachError(V1VolumeError detachError) { + public void setDetachError(@jakarta.annotation.Nullable V1VolumeError detachError) { this.detachError = detachError; } @@ -224,12 +227,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("attached"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1VolumeAttachmentStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1VolumeAttachmentStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeAttachmentStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -291,22 +294,22 @@ public V1VolumeAttachmentStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1VolumeAttachmentStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1VolumeAttachmentStatus - * @throws IOException if the JSON string is invalid with respect to V1VolumeAttachmentStatus - */ + /** + * Create an instance of V1VolumeAttachmentStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeAttachmentStatus + * @throws IOException if the JSON string is invalid with respect to V1VolumeAttachmentStatus + */ public static V1VolumeAttachmentStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1VolumeAttachmentStatus.class); } - /** - * Convert an instance of V1VolumeAttachmentStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1VolumeAttachmentStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java index af840ee44a..9f15f77f1b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * volumeDevice describes a mapping of a raw block device within a container. */ @ApiModel(description = "volumeDevice describes a mapping of a raw block device within a container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VolumeDevice { public static final String SERIALIZED_NAME_DEVICE_PATH = "devicePath"; @SerializedName(SERIALIZED_NAME_DEVICE_PATH) + @jakarta.annotation.Nonnull private String devicePath; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public V1VolumeDevice() { } - public V1VolumeDevice devicePath(String devicePath) { + public V1VolumeDevice devicePath(@jakarta.annotation.Nonnull String devicePath) { this.devicePath = devicePath; return this; } - /** + /** * devicePath is the path inside of the container that the device will be mapped to. * @return devicePath - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "devicePath is the path inside of the container that the device will be mapped to.") public String getDevicePath() { return devicePath; } - public void setDevicePath(String devicePath) { + public void setDevicePath(@jakarta.annotation.Nonnull String devicePath) { this.devicePath = devicePath; } - public V1VolumeDevice name(String name) { + public V1VolumeDevice name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * name must match the name of a persistentVolumeClaim in the pod * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "name must match the name of a persistentVolumeClaim in the pod") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1VolumeDevice - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1VolumeDevice + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeDevice.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -225,22 +226,22 @@ public V1VolumeDevice read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1VolumeDevice given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1VolumeDevice - * @throws IOException if the JSON string is invalid with respect to V1VolumeDevice - */ + /** + * Create an instance of V1VolumeDevice given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeDevice + * @throws IOException if the JSON string is invalid with respect to V1VolumeDevice + */ public static V1VolumeDevice fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1VolumeDevice.class); } - /** - * Convert an instance of V1VolumeDevice to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1VolumeDevice to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java index f44c489d6f..0060856ffa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,82 @@ * VolumeError captures an error encountered during a volume operation. */ @ApiModel(description = "VolumeError captures an error encountered during a volume operation.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VolumeError { + public static final String SERIALIZED_NAME_ERROR_CODE = "errorCode"; + @SerializedName(SERIALIZED_NAME_ERROR_CODE) + @jakarta.annotation.Nullable + private Integer errorCode; + public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) + @jakarta.annotation.Nullable private OffsetDateTime time; public V1VolumeError() { } - public V1VolumeError message(String message) { + public V1VolumeError errorCode(@jakarta.annotation.Nullable Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. This is an optional, alpha field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set. + * @return errorCode + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. This is an optional, alpha field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(@jakarta.annotation.Nullable Integer errorCode) { + this.errorCode = errorCode; + } + + + public V1VolumeError message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1VolumeError time(OffsetDateTime time) { + public V1VolumeError time(@jakarta.annotation.Nullable OffsetDateTime time) { this.time = time; return this; } - /** + /** * time represents the time the error was encountered. * @return time - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "time represents the time the error was encountered.") public OffsetDateTime getTime() { return time; } - public void setTime(OffsetDateTime time) { + public void setTime(@jakarta.annotation.Nullable OffsetDateTime time) { this.time = time; } @@ -115,19 +141,21 @@ public boolean equals(Object o) { return false; } V1VolumeError v1VolumeError = (V1VolumeError) o; - return Objects.equals(this.message, v1VolumeError.message) && + return Objects.equals(this.errorCode, v1VolumeError.errorCode) && + Objects.equals(this.message, v1VolumeError.message) && Objects.equals(this.time, v1VolumeError.time); } @Override public int hashCode() { - return Objects.hash(message, time); + return Objects.hash(errorCode, message, time); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1VolumeError {\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); sb.append("}"); @@ -152,6 +180,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); + openapiFields.add("errorCode"); openapiFields.add("message"); openapiFields.add("time"); @@ -159,12 +188,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1VolumeError - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1VolumeError + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -214,22 +243,22 @@ public V1VolumeError read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1VolumeError given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1VolumeError - * @throws IOException if the JSON string is invalid with respect to V1VolumeError - */ + /** + * Create an instance of V1VolumeError given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeError + * @throws IOException if the JSON string is invalid with respect to V1VolumeError + */ public static V1VolumeError fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1VolumeError.class); } - /** - * Convert an instance of V1VolumeError to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1VolumeError to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java index cf51a5f393..cde99fd47d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,175 +50,182 @@ * VolumeMount describes a mounting of a Volume within a container. */ @ApiModel(description = "VolumeMount describes a mounting of a Volume within a container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VolumeMount { public static final String SERIALIZED_NAME_MOUNT_PATH = "mountPath"; @SerializedName(SERIALIZED_NAME_MOUNT_PATH) + @jakarta.annotation.Nonnull private String mountPath; public static final String SERIALIZED_NAME_MOUNT_PROPAGATION = "mountPropagation"; @SerializedName(SERIALIZED_NAME_MOUNT_PROPAGATION) + @jakarta.annotation.Nullable private String mountPropagation; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_RECURSIVE_READ_ONLY = "recursiveReadOnly"; @SerializedName(SERIALIZED_NAME_RECURSIVE_READ_ONLY) + @jakarta.annotation.Nullable private String recursiveReadOnly; public static final String SERIALIZED_NAME_SUB_PATH = "subPath"; @SerializedName(SERIALIZED_NAME_SUB_PATH) + @jakarta.annotation.Nullable private String subPath; public static final String SERIALIZED_NAME_SUB_PATH_EXPR = "subPathExpr"; @SerializedName(SERIALIZED_NAME_SUB_PATH_EXPR) + @jakarta.annotation.Nullable private String subPathExpr; public V1VolumeMount() { } - public V1VolumeMount mountPath(String mountPath) { + public V1VolumeMount mountPath(@jakarta.annotation.Nonnull String mountPath) { this.mountPath = mountPath; return this; } - /** + /** * Path within the container at which the volume should be mounted. Must not contain ':'. * @return mountPath - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Path within the container at which the volume should be mounted. Must not contain ':'.") public String getMountPath() { return mountPath; } - public void setMountPath(String mountPath) { + public void setMountPath(@jakarta.annotation.Nonnull String mountPath) { this.mountPath = mountPath; } - public V1VolumeMount mountPropagation(String mountPropagation) { + public V1VolumeMount mountPropagation(@jakarta.annotation.Nullable String mountPropagation) { this.mountPropagation = mountPropagation; return this; } - /** + /** * mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). * @return mountPropagation - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None).") public String getMountPropagation() { return mountPropagation; } - public void setMountPropagation(String mountPropagation) { + public void setMountPropagation(@jakarta.annotation.Nullable String mountPropagation) { this.mountPropagation = mountPropagation; } - public V1VolumeMount name(String name) { + public V1VolumeMount name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * This must match the Name of a Volume. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "This must match the Name of a Volume.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1VolumeMount readOnly(Boolean readOnly) { + public V1VolumeMount readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1VolumeMount recursiveReadOnly(String recursiveReadOnly) { + public V1VolumeMount recursiveReadOnly(@jakarta.annotation.Nullable String recursiveReadOnly) { this.recursiveReadOnly = recursiveReadOnly; return this; } - /** + /** * RecursiveReadOnly specifies whether read-only mounts should be handled recursively. If ReadOnly is false, this field has no meaning and must be unspecified. If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). If this field is not specified, it is treated as an equivalent of Disabled. * @return recursiveReadOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "RecursiveReadOnly specifies whether read-only mounts should be handled recursively. If ReadOnly is false, this field has no meaning and must be unspecified. If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). If this field is not specified, it is treated as an equivalent of Disabled.") public String getRecursiveReadOnly() { return recursiveReadOnly; } - public void setRecursiveReadOnly(String recursiveReadOnly) { + public void setRecursiveReadOnly(@jakarta.annotation.Nullable String recursiveReadOnly) { this.recursiveReadOnly = recursiveReadOnly; } - public V1VolumeMount subPath(String subPath) { + public V1VolumeMount subPath(@jakarta.annotation.Nullable String subPath) { this.subPath = subPath; return this; } - /** + /** * Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root). * @return subPath - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).") public String getSubPath() { return subPath; } - public void setSubPath(String subPath) { + public void setSubPath(@jakarta.annotation.Nullable String subPath) { this.subPath = subPath; } - public V1VolumeMount subPathExpr(String subPathExpr) { + public V1VolumeMount subPathExpr(@jakarta.annotation.Nullable String subPathExpr) { this.subPathExpr = subPathExpr; return this; } - /** + /** * Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive. * @return subPathExpr - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive.") public String getSubPathExpr() { return subPathExpr; } - public void setSubPathExpr(String subPathExpr) { + public void setSubPathExpr(@jakarta.annotation.Nullable String subPathExpr) { this.subPathExpr = subPathExpr; } @@ -295,12 +301,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1VolumeMount - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1VolumeMount + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeMount.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -372,22 +378,22 @@ public V1VolumeMount read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1VolumeMount given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1VolumeMount - * @throws IOException if the JSON string is invalid with respect to V1VolumeMount - */ + /** + * Create an instance of V1VolumeMount given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeMount + * @throws IOException if the JSON string is invalid with respect to V1VolumeMount + */ public static V1VolumeMount fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1VolumeMount.class); } - /** - * Convert an instance of V1VolumeMount to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1VolumeMount to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatus.java index 9ee84d155b..4f93661a94 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatus.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,103 +50,107 @@ * VolumeMountStatus shows status of volume mounts. */ @ApiModel(description = "VolumeMountStatus shows status of volume mounts.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VolumeMountStatus { public static final String SERIALIZED_NAME_MOUNT_PATH = "mountPath"; @SerializedName(SERIALIZED_NAME_MOUNT_PATH) + @jakarta.annotation.Nonnull private String mountPath; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) + @jakarta.annotation.Nullable private Boolean readOnly; public static final String SERIALIZED_NAME_RECURSIVE_READ_ONLY = "recursiveReadOnly"; @SerializedName(SERIALIZED_NAME_RECURSIVE_READ_ONLY) + @jakarta.annotation.Nullable private String recursiveReadOnly; public V1VolumeMountStatus() { } - public V1VolumeMountStatus mountPath(String mountPath) { + public V1VolumeMountStatus mountPath(@jakarta.annotation.Nonnull String mountPath) { this.mountPath = mountPath; return this; } - /** + /** * MountPath corresponds to the original VolumeMount. * @return mountPath - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "MountPath corresponds to the original VolumeMount.") public String getMountPath() { return mountPath; } - public void setMountPath(String mountPath) { + public void setMountPath(@jakarta.annotation.Nonnull String mountPath) { this.mountPath = mountPath; } - public V1VolumeMountStatus name(String name) { + public V1VolumeMountStatus name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name corresponds to the name of the original VolumeMount. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name corresponds to the name of the original VolumeMount.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1VolumeMountStatus readOnly(Boolean readOnly) { + public V1VolumeMountStatus readOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } - /** + /** * ReadOnly corresponds to the original VolumeMount. * @return readOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ReadOnly corresponds to the original VolumeMount.") public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { + public void setReadOnly(@jakarta.annotation.Nullable Boolean readOnly) { this.readOnly = readOnly; } - public V1VolumeMountStatus recursiveReadOnly(String recursiveReadOnly) { + public V1VolumeMountStatus recursiveReadOnly(@jakarta.annotation.Nullable String recursiveReadOnly) { this.recursiveReadOnly = recursiveReadOnly; return this; } - /** + /** * RecursiveReadOnly must be set to Disabled, Enabled, or unspecified (for non-readonly mounts). An IfPossible value in the original VolumeMount must be translated to Disabled or Enabled, depending on the mount result. * @return recursiveReadOnly - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "RecursiveReadOnly must be set to Disabled, Enabled, or unspecified (for non-readonly mounts). An IfPossible value in the original VolumeMount must be translated to Disabled or Enabled, depending on the mount result.") public String getRecursiveReadOnly() { return recursiveReadOnly; } - public void setRecursiveReadOnly(String recursiveReadOnly) { + public void setRecursiveReadOnly(@jakarta.annotation.Nullable String recursiveReadOnly) { this.recursiveReadOnly = recursiveReadOnly; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1VolumeMountStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1VolumeMountStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeMountStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -282,22 +285,22 @@ public V1VolumeMountStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1VolumeMountStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1VolumeMountStatus - * @throws IOException if the JSON string is invalid with respect to V1VolumeMountStatus - */ + /** + * Create an instance of V1VolumeMountStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeMountStatus + * @throws IOException if the JSON string is invalid with respect to V1VolumeMountStatus + */ public static V1VolumeMountStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1VolumeMountStatus.class); } - /** - * Convert an instance of V1VolumeMountStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1VolumeMountStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java index 6f2c7ea543..832d37a508 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,31 +51,32 @@ * VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from. */ @ApiModel(description = "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VolumeNodeAffinity { public static final String SERIALIZED_NAME_REQUIRED = "required"; @SerializedName(SERIALIZED_NAME_REQUIRED) + @jakarta.annotation.Nullable private V1NodeSelector required; public V1VolumeNodeAffinity() { } - public V1VolumeNodeAffinity required(V1NodeSelector required) { + public V1VolumeNodeAffinity required(@jakarta.annotation.Nullable V1NodeSelector required) { this.required = required; return this; } - /** + /** * Get required * @return required - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1NodeSelector getRequired() { return required; } - public void setRequired(V1NodeSelector required) { + public void setRequired(@jakarta.annotation.Nullable V1NodeSelector required) { this.required = required; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1VolumeNodeAffinity - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1VolumeNodeAffinity + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeNodeAffinity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -188,22 +188,22 @@ public V1VolumeNodeAffinity read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1VolumeNodeAffinity given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1VolumeNodeAffinity - * @throws IOException if the JSON string is invalid with respect to V1VolumeNodeAffinity - */ + /** + * Create an instance of V1VolumeNodeAffinity given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeNodeAffinity + * @throws IOException if the JSON string is invalid with respect to V1VolumeNodeAffinity + */ public static V1VolumeNodeAffinity fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1VolumeNodeAffinity.class); } - /** - * Convert an instance of V1VolumeNodeAffinity to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1VolumeNodeAffinity to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResources.java index 46769377da..1647aaa18c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResources.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * VolumeNodeResources is a set of resource limits for scheduling of volumes. */ @ApiModel(description = "VolumeNodeResources is a set of resource limits for scheduling of volumes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VolumeNodeResources { public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) + @jakarta.annotation.Nullable private Integer count; public V1VolumeNodeResources() { } - public V1VolumeNodeResources count(Integer count) { + public V1VolumeNodeResources count(@jakarta.annotation.Nullable Integer count) { this.count = count; return this; } - /** + /** * count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded. * @return count - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded.") public Integer getCount() { return count; } - public void setCount(Integer count) { + public void setCount(@jakarta.annotation.Nullable Integer count) { this.count = count; } @@ -131,12 +131,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1VolumeNodeResources - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1VolumeNodeResources + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeNodeResources.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -183,22 +183,22 @@ public V1VolumeNodeResources read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1VolumeNodeResources given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1VolumeNodeResources - * @throws IOException if the JSON string is invalid with respect to V1VolumeNodeResources - */ + /** + * Create an instance of V1VolumeNodeResources given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeNodeResources + * @throws IOException if the JSON string is invalid with respect to V1VolumeNodeResources + */ public static V1VolumeNodeResources fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1VolumeNodeResources.class); } - /** - * Convert an instance of V1VolumeNodeResources to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1VolumeNodeResources to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java index 424d15b099..87ecf98c66 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java @@ -43,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -56,127 +55,132 @@ * Projection that may be projected along with other supported volume types. Exactly one of these fields must be set. */ @ApiModel(description = "Projection that may be projected along with other supported volume types. Exactly one of these fields must be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VolumeProjection { public static final String SERIALIZED_NAME_CLUSTER_TRUST_BUNDLE = "clusterTrustBundle"; @SerializedName(SERIALIZED_NAME_CLUSTER_TRUST_BUNDLE) + @jakarta.annotation.Nullable private V1ClusterTrustBundleProjection clusterTrustBundle; public static final String SERIALIZED_NAME_CONFIG_MAP = "configMap"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP) + @jakarta.annotation.Nullable private V1ConfigMapProjection configMap; public static final String SERIALIZED_NAME_DOWNWARD_A_P_I = "downwardAPI"; @SerializedName(SERIALIZED_NAME_DOWNWARD_A_P_I) + @jakarta.annotation.Nullable private V1DownwardAPIProjection downwardAPI; public static final String SERIALIZED_NAME_SECRET = "secret"; @SerializedName(SERIALIZED_NAME_SECRET) + @jakarta.annotation.Nullable private V1SecretProjection secret; public static final String SERIALIZED_NAME_SERVICE_ACCOUNT_TOKEN = "serviceAccountToken"; @SerializedName(SERIALIZED_NAME_SERVICE_ACCOUNT_TOKEN) + @jakarta.annotation.Nullable private V1ServiceAccountTokenProjection serviceAccountToken; public V1VolumeProjection() { } - public V1VolumeProjection clusterTrustBundle(V1ClusterTrustBundleProjection clusterTrustBundle) { + public V1VolumeProjection clusterTrustBundle(@jakarta.annotation.Nullable V1ClusterTrustBundleProjection clusterTrustBundle) { this.clusterTrustBundle = clusterTrustBundle; return this; } - /** + /** * Get clusterTrustBundle * @return clusterTrustBundle - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ClusterTrustBundleProjection getClusterTrustBundle() { return clusterTrustBundle; } - public void setClusterTrustBundle(V1ClusterTrustBundleProjection clusterTrustBundle) { + public void setClusterTrustBundle(@jakarta.annotation.Nullable V1ClusterTrustBundleProjection clusterTrustBundle) { this.clusterTrustBundle = clusterTrustBundle; } - public V1VolumeProjection configMap(V1ConfigMapProjection configMap) { + public V1VolumeProjection configMap(@jakarta.annotation.Nullable V1ConfigMapProjection configMap) { this.configMap = configMap; return this; } - /** + /** * Get configMap * @return configMap - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ConfigMapProjection getConfigMap() { return configMap; } - public void setConfigMap(V1ConfigMapProjection configMap) { + public void setConfigMap(@jakarta.annotation.Nullable V1ConfigMapProjection configMap) { this.configMap = configMap; } - public V1VolumeProjection downwardAPI(V1DownwardAPIProjection downwardAPI) { + public V1VolumeProjection downwardAPI(@jakarta.annotation.Nullable V1DownwardAPIProjection downwardAPI) { this.downwardAPI = downwardAPI; return this; } - /** + /** * Get downwardAPI * @return downwardAPI - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1DownwardAPIProjection getDownwardAPI() { return downwardAPI; } - public void setDownwardAPI(V1DownwardAPIProjection downwardAPI) { + public void setDownwardAPI(@jakarta.annotation.Nullable V1DownwardAPIProjection downwardAPI) { this.downwardAPI = downwardAPI; } - public V1VolumeProjection secret(V1SecretProjection secret) { + public V1VolumeProjection secret(@jakarta.annotation.Nullable V1SecretProjection secret) { this.secret = secret; return this; } - /** + /** * Get secret * @return secret - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1SecretProjection getSecret() { return secret; } - public void setSecret(V1SecretProjection secret) { + public void setSecret(@jakarta.annotation.Nullable V1SecretProjection secret) { this.secret = secret; } - public V1VolumeProjection serviceAccountToken(V1ServiceAccountTokenProjection serviceAccountToken) { + public V1VolumeProjection serviceAccountToken(@jakarta.annotation.Nullable V1ServiceAccountTokenProjection serviceAccountToken) { this.serviceAccountToken = serviceAccountToken; return this; } - /** + /** * Get serviceAccountToken * @return serviceAccountToken - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceAccountTokenProjection getServiceAccountToken() { return serviceAccountToken; } - public void setServiceAccountToken(V1ServiceAccountTokenProjection serviceAccountToken) { + public void setServiceAccountToken(@jakarta.annotation.Nullable V1ServiceAccountTokenProjection serviceAccountToken) { this.serviceAccountToken = serviceAccountToken; } @@ -244,12 +248,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1VolumeProjection - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1VolumeProjection + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeProjection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -316,22 +320,22 @@ public V1VolumeProjection read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1VolumeProjection given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1VolumeProjection - * @throws IOException if the JSON string is invalid with respect to V1VolumeProjection - */ + /** + * Create an instance of V1VolumeProjection given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeProjection + * @throws IOException if the JSON string is invalid with respect to V1VolumeProjection + */ public static V1VolumeProjection fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1VolumeProjection.class); } - /** - * Convert an instance of V1VolumeProjection to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1VolumeProjection to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirements.java index 8b685a706b..3acfea9954 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirements.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,20 +53,22 @@ * VolumeResourceRequirements describes the storage resource requirements for a volume. */ @ApiModel(description = "VolumeResourceRequirements describes the storage resource requirements for a volume.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VolumeResourceRequirements { public static final String SERIALIZED_NAME_LIMITS = "limits"; @SerializedName(SERIALIZED_NAME_LIMITS) + @jakarta.annotation.Nullable private Map limits = new HashMap<>(); public static final String SERIALIZED_NAME_REQUESTS = "requests"; @SerializedName(SERIALIZED_NAME_REQUESTS) + @jakarta.annotation.Nullable private Map requests = new HashMap<>(); public V1VolumeResourceRequirements() { } - public V1VolumeResourceRequirements limits(Map limits) { + public V1VolumeResourceRequirements limits(@jakarta.annotation.Nullable Map limits) { this.limits = limits; return this; } @@ -80,22 +81,22 @@ public V1VolumeResourceRequirements putLimitsItem(String key, Quantity limitsIte return this; } - /** + /** * Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ * @return limits - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/") public Map getLimits() { return limits; } - public void setLimits(Map limits) { + public void setLimits(@jakarta.annotation.Nullable Map limits) { this.limits = limits; } - public V1VolumeResourceRequirements requests(Map requests) { + public V1VolumeResourceRequirements requests(@jakarta.annotation.Nullable Map requests) { this.requests = requests; return this; } @@ -108,17 +109,17 @@ public V1VolumeResourceRequirements putRequestsItem(String key, Quantity request return this; } - /** + /** * Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ * @return requests - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/") public Map getRequests() { return requests; } - public void setRequests(Map requests) { + public void setRequests(@jakarta.annotation.Nullable Map requests) { this.requests = requests; } @@ -177,12 +178,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1VolumeResourceRequirements - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1VolumeResourceRequirements + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeResourceRequirements.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -229,22 +230,22 @@ public V1VolumeResourceRequirements read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1VolumeResourceRequirements given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1VolumeResourceRequirements - * @throws IOException if the JSON string is invalid with respect to V1VolumeResourceRequirements - */ + /** + * Create an instance of V1VolumeResourceRequirements given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeResourceRequirements + * @throws IOException if the JSON string is invalid with respect to V1VolumeResourceRequirements + */ public static V1VolumeResourceRequirements fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1VolumeResourceRequirements.class); } - /** - * Convert an instance of V1VolumeResourceRequirements to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1VolumeResourceRequirements to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java index d5e011345f..de088559d0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,103 +50,107 @@ * Represents a vSphere volume resource. */ @ApiModel(description = "Represents a vSphere volume resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VsphereVirtualDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) + @jakarta.annotation.Nullable private String fsType; public static final String SERIALIZED_NAME_STORAGE_POLICY_I_D = "storagePolicyID"; @SerializedName(SERIALIZED_NAME_STORAGE_POLICY_I_D) + @jakarta.annotation.Nullable private String storagePolicyID; public static final String SERIALIZED_NAME_STORAGE_POLICY_NAME = "storagePolicyName"; @SerializedName(SERIALIZED_NAME_STORAGE_POLICY_NAME) + @jakarta.annotation.Nullable private String storagePolicyName; public static final String SERIALIZED_NAME_VOLUME_PATH = "volumePath"; @SerializedName(SERIALIZED_NAME_VOLUME_PATH) + @jakarta.annotation.Nonnull private String volumePath; public V1VsphereVirtualDiskVolumeSource() { } - public V1VsphereVirtualDiskVolumeSource fsType(String fsType) { + public V1VsphereVirtualDiskVolumeSource fsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; return this; } - /** + /** * fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. * @return fsType - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.") public String getFsType() { return fsType; } - public void setFsType(String fsType) { + public void setFsType(@jakarta.annotation.Nullable String fsType) { this.fsType = fsType; } - public V1VsphereVirtualDiskVolumeSource storagePolicyID(String storagePolicyID) { + public V1VsphereVirtualDiskVolumeSource storagePolicyID(@jakarta.annotation.Nullable String storagePolicyID) { this.storagePolicyID = storagePolicyID; return this; } - /** + /** * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. * @return storagePolicyID - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.") public String getStoragePolicyID() { return storagePolicyID; } - public void setStoragePolicyID(String storagePolicyID) { + public void setStoragePolicyID(@jakarta.annotation.Nullable String storagePolicyID) { this.storagePolicyID = storagePolicyID; } - public V1VsphereVirtualDiskVolumeSource storagePolicyName(String storagePolicyName) { + public V1VsphereVirtualDiskVolumeSource storagePolicyName(@jakarta.annotation.Nullable String storagePolicyName) { this.storagePolicyName = storagePolicyName; return this; } - /** + /** * storagePolicyName is the storage Policy Based Management (SPBM) profile name. * @return storagePolicyName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "storagePolicyName is the storage Policy Based Management (SPBM) profile name.") public String getStoragePolicyName() { return storagePolicyName; } - public void setStoragePolicyName(String storagePolicyName) { + public void setStoragePolicyName(@jakarta.annotation.Nullable String storagePolicyName) { this.storagePolicyName = storagePolicyName; } - public V1VsphereVirtualDiskVolumeSource volumePath(String volumePath) { + public V1VsphereVirtualDiskVolumeSource volumePath(@jakarta.annotation.Nonnull String volumePath) { this.volumePath = volumePath; return this; } - /** + /** * volumePath is the path that identifies vSphere volume vmdk * @return volumePath - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "volumePath is the path that identifies vSphere volume vmdk") public String getVolumePath() { return volumePath; } - public void setVolumePath(String volumePath) { + public void setVolumePath(@jakarta.annotation.Nonnull String volumePath) { this.volumePath = volumePath; } @@ -213,12 +216,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("volumePath"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1VsphereVirtualDiskVolumeSource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1VsphereVirtualDiskVolumeSource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VsphereVirtualDiskVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -284,22 +287,22 @@ public V1VsphereVirtualDiskVolumeSource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1VsphereVirtualDiskVolumeSource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1VsphereVirtualDiskVolumeSource - * @throws IOException if the JSON string is invalid with respect to V1VsphereVirtualDiskVolumeSource - */ + /** + * Create an instance of V1VsphereVirtualDiskVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VsphereVirtualDiskVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1VsphereVirtualDiskVolumeSource + */ public static V1VsphereVirtualDiskVolumeSource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1VsphereVirtualDiskVolumeSource.class); } - /** - * Convert an instance of V1VsphereVirtualDiskVolumeSource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1VsphereVirtualDiskVolumeSource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java index bdf93e92cf..3743b19151 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * Event represents a single event to a watched resource. */ @ApiModel(description = "Event represents a single event to a watched resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1WatchEvent { public static final String SERIALIZED_NAME_OBJECT = "object"; @SerializedName(SERIALIZED_NAME_OBJECT) + @jakarta.annotation.Nonnull private Object _object; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1WatchEvent() { } - public V1WatchEvent _object(Object _object) { + public V1WatchEvent _object(@jakarta.annotation.Nonnull Object _object) { this._object = _object; return this; } - /** + /** * Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. * @return _object - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context.") public Object getObject() { return _object; } - public void setObject(Object _object) { + public void setObject(@jakarta.annotation.Nonnull Object _object) { this._object = _object; } - public V1WatchEvent type(String type) { + public V1WatchEvent type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1WatchEvent - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1WatchEvent + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1WatchEvent.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -222,22 +223,22 @@ public V1WatchEvent read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1WatchEvent given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1WatchEvent - * @throws IOException if the JSON string is invalid with respect to V1WatchEvent - */ + /** + * Create an instance of V1WatchEvent given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1WatchEvent + * @throws IOException if the JSON string is invalid with respect to V1WatchEvent + */ public static V1WatchEvent fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1WatchEvent.class); } - /** - * Convert an instance of V1WatchEvent to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1WatchEvent to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java index 373e2ca09a..002df88f06 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,40 +53,42 @@ * WebhookConversion describes how to call a conversion webhook */ @ApiModel(description = "WebhookConversion describes how to call a conversion webhook") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1WebhookConversion { public static final String SERIALIZED_NAME_CLIENT_CONFIG = "clientConfig"; @SerializedName(SERIALIZED_NAME_CLIENT_CONFIG) + @jakarta.annotation.Nullable private ApiextensionsV1WebhookClientConfig clientConfig; public static final String SERIALIZED_NAME_CONVERSION_REVIEW_VERSIONS = "conversionReviewVersions"; @SerializedName(SERIALIZED_NAME_CONVERSION_REVIEW_VERSIONS) + @jakarta.annotation.Nonnull private List conversionReviewVersions = new ArrayList<>(); public V1WebhookConversion() { } - public V1WebhookConversion clientConfig(ApiextensionsV1WebhookClientConfig clientConfig) { + public V1WebhookConversion clientConfig(@jakarta.annotation.Nullable ApiextensionsV1WebhookClientConfig clientConfig) { this.clientConfig = clientConfig; return this; } - /** + /** * Get clientConfig * @return clientConfig - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public ApiextensionsV1WebhookClientConfig getClientConfig() { return clientConfig; } - public void setClientConfig(ApiextensionsV1WebhookClientConfig clientConfig) { + public void setClientConfig(@jakarta.annotation.Nullable ApiextensionsV1WebhookClientConfig clientConfig) { this.clientConfig = clientConfig; } - public V1WebhookConversion conversionReviewVersions(List conversionReviewVersions) { + public V1WebhookConversion conversionReviewVersions(@jakarta.annotation.Nonnull List conversionReviewVersions) { this.conversionReviewVersions = conversionReviewVersions; return this; } @@ -100,17 +101,17 @@ public V1WebhookConversion addConversionReviewVersionsItem(String conversionRevi return this; } - /** + /** * conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. * @return conversionReviewVersions - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail.") public List getConversionReviewVersions() { return conversionReviewVersions; } - public void setConversionReviewVersions(List conversionReviewVersions) { + public void setConversionReviewVersions(@jakarta.annotation.Nonnull List conversionReviewVersions) { this.conversionReviewVersions = conversionReviewVersions; } @@ -170,12 +171,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("conversionReviewVersions"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1WebhookConversion - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1WebhookConversion + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1WebhookConversion.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -239,22 +240,22 @@ public V1WebhookConversion read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1WebhookConversion given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1WebhookConversion - * @throws IOException if the JSON string is invalid with respect to V1WebhookConversion - */ + /** + * Create an instance of V1WebhookConversion given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1WebhookConversion + * @throws IOException if the JSON string is invalid with respect to V1WebhookConversion + */ public static V1WebhookConversion fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1WebhookConversion.class); } - /** - * Convert an instance of V1WebhookConversion to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1WebhookConversion to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java index 6d9961f17c..20d62c24cc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) */ @ApiModel(description = "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1WeightedPodAffinityTerm { public static final String SERIALIZED_NAME_POD_AFFINITY_TERM = "podAffinityTerm"; @SerializedName(SERIALIZED_NAME_POD_AFFINITY_TERM) + @jakarta.annotation.Nonnull private V1PodAffinityTerm podAffinityTerm; public static final String SERIALIZED_NAME_WEIGHT = "weight"; @SerializedName(SERIALIZED_NAME_WEIGHT) + @jakarta.annotation.Nonnull private Integer weight; public V1WeightedPodAffinityTerm() { } - public V1WeightedPodAffinityTerm podAffinityTerm(V1PodAffinityTerm podAffinityTerm) { + public V1WeightedPodAffinityTerm podAffinityTerm(@jakarta.annotation.Nonnull V1PodAffinityTerm podAffinityTerm) { this.podAffinityTerm = podAffinityTerm; return this; } - /** + /** * Get podAffinityTerm * @return podAffinityTerm - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1PodAffinityTerm getPodAffinityTerm() { return podAffinityTerm; } - public void setPodAffinityTerm(V1PodAffinityTerm podAffinityTerm) { + public void setPodAffinityTerm(@jakarta.annotation.Nonnull V1PodAffinityTerm podAffinityTerm) { this.podAffinityTerm = podAffinityTerm; } - public V1WeightedPodAffinityTerm weight(Integer weight) { + public V1WeightedPodAffinityTerm weight(@jakarta.annotation.Nonnull Integer weight) { this.weight = weight; return this; } - /** + /** * weight associated with matching the corresponding podAffinityTerm, in the range 1-100. * @return weight - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.") public Integer getWeight() { return weight; } - public void setWeight(Integer weight) { + public void setWeight(@jakarta.annotation.Nonnull Integer weight) { this.weight = weight; } @@ -161,12 +162,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("weight"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1WeightedPodAffinityTerm - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1WeightedPodAffinityTerm + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1WeightedPodAffinityTerm.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -222,22 +223,22 @@ public V1WeightedPodAffinityTerm read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1WeightedPodAffinityTerm given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1WeightedPodAffinityTerm - * @throws IOException if the JSON string is invalid with respect to V1WeightedPodAffinityTerm - */ + /** + * Create an instance of V1WeightedPodAffinityTerm given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1WeightedPodAffinityTerm + * @throws IOException if the JSON string is invalid with respect to V1WeightedPodAffinityTerm + */ public static V1WeightedPodAffinityTerm fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1WeightedPodAffinityTerm.class); } - /** - * Convert an instance of V1WeightedPodAffinityTerm to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1WeightedPodAffinityTerm to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java index 1b7f83bfc9..7150b0fb1b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,103 +50,107 @@ * WindowsSecurityContextOptions contain Windows-specific options and credentials. */ @ApiModel(description = "WindowsSecurityContextOptions contain Windows-specific options and credentials.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1WindowsSecurityContextOptions { public static final String SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC = "gmsaCredentialSpec"; @SerializedName(SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC) + @jakarta.annotation.Nullable private String gmsaCredentialSpec; public static final String SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC_NAME = "gmsaCredentialSpecName"; @SerializedName(SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC_NAME) + @jakarta.annotation.Nullable private String gmsaCredentialSpecName; public static final String SERIALIZED_NAME_HOST_PROCESS = "hostProcess"; @SerializedName(SERIALIZED_NAME_HOST_PROCESS) + @jakarta.annotation.Nullable private Boolean hostProcess; public static final String SERIALIZED_NAME_RUN_AS_USER_NAME = "runAsUserName"; @SerializedName(SERIALIZED_NAME_RUN_AS_USER_NAME) + @jakarta.annotation.Nullable private String runAsUserName; public V1WindowsSecurityContextOptions() { } - public V1WindowsSecurityContextOptions gmsaCredentialSpec(String gmsaCredentialSpec) { + public V1WindowsSecurityContextOptions gmsaCredentialSpec(@jakarta.annotation.Nullable String gmsaCredentialSpec) { this.gmsaCredentialSpec = gmsaCredentialSpec; return this; } - /** + /** * GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. * @return gmsaCredentialSpec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.") public String getGmsaCredentialSpec() { return gmsaCredentialSpec; } - public void setGmsaCredentialSpec(String gmsaCredentialSpec) { + public void setGmsaCredentialSpec(@jakarta.annotation.Nullable String gmsaCredentialSpec) { this.gmsaCredentialSpec = gmsaCredentialSpec; } - public V1WindowsSecurityContextOptions gmsaCredentialSpecName(String gmsaCredentialSpecName) { + public V1WindowsSecurityContextOptions gmsaCredentialSpecName(@jakarta.annotation.Nullable String gmsaCredentialSpecName) { this.gmsaCredentialSpecName = gmsaCredentialSpecName; return this; } - /** + /** * GMSACredentialSpecName is the name of the GMSA credential spec to use. * @return gmsaCredentialSpecName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "GMSACredentialSpecName is the name of the GMSA credential spec to use.") public String getGmsaCredentialSpecName() { return gmsaCredentialSpecName; } - public void setGmsaCredentialSpecName(String gmsaCredentialSpecName) { + public void setGmsaCredentialSpecName(@jakarta.annotation.Nullable String gmsaCredentialSpecName) { this.gmsaCredentialSpecName = gmsaCredentialSpecName; } - public V1WindowsSecurityContextOptions hostProcess(Boolean hostProcess) { + public V1WindowsSecurityContextOptions hostProcess(@jakarta.annotation.Nullable Boolean hostProcess) { this.hostProcess = hostProcess; return this; } - /** + /** * HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true. * @return hostProcess - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.") public Boolean getHostProcess() { return hostProcess; } - public void setHostProcess(Boolean hostProcess) { + public void setHostProcess(@jakarta.annotation.Nullable Boolean hostProcess) { this.hostProcess = hostProcess; } - public V1WindowsSecurityContextOptions runAsUserName(String runAsUserName) { + public V1WindowsSecurityContextOptions runAsUserName(@jakarta.annotation.Nullable String runAsUserName) { this.runAsUserName = runAsUserName; return this; } - /** + /** * The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. * @return runAsUserName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.") public String getRunAsUserName() { return runAsUserName; } - public void setRunAsUserName(String runAsUserName) { + public void setRunAsUserName(@jakarta.annotation.Nullable String runAsUserName) { this.runAsUserName = runAsUserName; } @@ -212,12 +215,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1WindowsSecurityContextOptions - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1WindowsSecurityContextOptions + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1WindowsSecurityContextOptions.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -273,22 +276,22 @@ public V1WindowsSecurityContextOptions read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1WindowsSecurityContextOptions given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1WindowsSecurityContextOptions - * @throws IOException if the JSON string is invalid with respect to V1WindowsSecurityContextOptions - */ + /** + * Create an instance of V1WindowsSecurityContextOptions given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1WindowsSecurityContextOptions + * @throws IOException if the JSON string is invalid with respect to V1WindowsSecurityContextOptions + */ public static V1WindowsSecurityContextOptions fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1WindowsSecurityContextOptions.class); } - /** - * Convert an instance of V1WindowsSecurityContextOptions to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1WindowsSecurityContextOptions to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfiguration.java index ac82ea9d79..cb7c84cd1d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfiguration.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * ApplyConfiguration defines the desired configuration values of an object. */ @ApiModel(description = "ApplyConfiguration defines the desired configuration values of an object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1ApplyConfiguration { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) + @jakarta.annotation.Nullable private String expression; public V1alpha1ApplyConfiguration() { } - public V1alpha1ApplyConfiguration expression(String expression) { + public V1alpha1ApplyConfiguration expression(@jakarta.annotation.Nullable String expression) { this.expression = expression; return this; } - /** + /** * expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field: Object{ spec: Object.spec{ serviceAccountName: \"example\" } } Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration. CEL expressions have access to the object types needed to create apply configurations: - 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required. * @return expression - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field: Object{ spec: Object.spec{ serviceAccountName: \"example\" } } Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration. CEL expressions have access to the object types needed to create apply configurations: - 'Object' - CEL type of the resource object. - 'Object.' - CEL type of object field (such as 'Object.spec') - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.") public String getExpression() { return expression; } - public void setExpression(String expression) { + public void setExpression(@jakarta.annotation.Nullable String expression) { this.expression = expression; } @@ -131,12 +131,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1ApplyConfiguration - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1ApplyConfiguration + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1ApplyConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -186,22 +186,22 @@ public V1alpha1ApplyConfiguration read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha1ApplyConfiguration given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1ApplyConfiguration - * @throws IOException if the JSON string is invalid with respect to V1alpha1ApplyConfiguration - */ + /** + * Create an instance of V1alpha1ApplyConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ApplyConfiguration + * @throws IOException if the JSON string is invalid with respect to V1alpha1ApplyConfiguration + */ public static V1alpha1ApplyConfiguration fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1ApplyConfiguration.class); } - /** - * Convert an instance of V1alpha1ApplyConfiguration to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1ApplyConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java index 64be36a36e..6538f07dd4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,103 +52,107 @@ * ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates). ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to. It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle. */ @ApiModel(description = "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates). ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to. It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1ClusterTrustBundle implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nonnull private V1alpha1ClusterTrustBundleSpec spec; public V1alpha1ClusterTrustBundle() { } - public V1alpha1ClusterTrustBundle apiVersion(String apiVersion) { + public V1alpha1ClusterTrustBundle apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1alpha1ClusterTrustBundle kind(String kind) { + public V1alpha1ClusterTrustBundle kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1alpha1ClusterTrustBundle metadata(V1ObjectMeta metadata) { + public V1alpha1ClusterTrustBundle metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1alpha1ClusterTrustBundle spec(V1alpha1ClusterTrustBundleSpec spec) { + public V1alpha1ClusterTrustBundle spec(@jakarta.annotation.Nonnull V1alpha1ClusterTrustBundleSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1alpha1ClusterTrustBundleSpec getSpec() { return spec; } - public void setSpec(V1alpha1ClusterTrustBundleSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1alpha1ClusterTrustBundleSpec spec) { this.spec = spec; } @@ -215,12 +218,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("spec"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1ClusterTrustBundle - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1ClusterTrustBundle + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1ClusterTrustBundle.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -286,22 +289,22 @@ public V1alpha1ClusterTrustBundle read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha1ClusterTrustBundle given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1ClusterTrustBundle - * @throws IOException if the JSON string is invalid with respect to V1alpha1ClusterTrustBundle - */ + /** + * Create an instance of V1alpha1ClusterTrustBundle given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ClusterTrustBundle + * @throws IOException if the JSON string is invalid with respect to V1alpha1ClusterTrustBundle + */ public static V1alpha1ClusterTrustBundle fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1ClusterTrustBundle.class); } - /** - * Convert an instance of V1alpha1ClusterTrustBundle to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1ClusterTrustBundle to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java index 2db8206dae..b94a708a35 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * ClusterTrustBundleList is a collection of ClusterTrustBundle objects */ @ApiModel(description = "ClusterTrustBundleList is a collection of ClusterTrustBundle objects") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1ClusterTrustBundleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1alpha1ClusterTrustBundleList() { } - public V1alpha1ClusterTrustBundleList apiVersion(String apiVersion) { + public V1alpha1ClusterTrustBundleList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1alpha1ClusterTrustBundleList items(List items) { + public V1alpha1ClusterTrustBundleList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1alpha1ClusterTrustBundleList addItemsItem(V1alpha1ClusterTrustBundle it return this; } - /** + /** * items is a collection of ClusterTrustBundle objects * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is a collection of ClusterTrustBundle objects") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1alpha1ClusterTrustBundleList kind(String kind) { + public V1alpha1ClusterTrustBundleList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1alpha1ClusterTrustBundleList metadata(V1ListMeta metadata) { + public V1alpha1ClusterTrustBundleList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1ClusterTrustBundleList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1ClusterTrustBundleList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1ClusterTrustBundleList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1alpha1ClusterTrustBundleList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha1ClusterTrustBundleList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1ClusterTrustBundleList - * @throws IOException if the JSON string is invalid with respect to V1alpha1ClusterTrustBundleList - */ + /** + * Create an instance of V1alpha1ClusterTrustBundleList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ClusterTrustBundleList + * @throws IOException if the JSON string is invalid with respect to V1alpha1ClusterTrustBundleList + */ public static V1alpha1ClusterTrustBundleList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1ClusterTrustBundleList.class); } - /** - * Convert an instance of V1alpha1ClusterTrustBundleList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1ClusterTrustBundleList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java index af04c3671d..d8726dfa65 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * ClusterTrustBundleSpec contains the signer and trust anchors. */ @ApiModel(description = "ClusterTrustBundleSpec contains the signer and trust anchors.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1ClusterTrustBundleSpec { public static final String SERIALIZED_NAME_SIGNER_NAME = "signerName"; @SerializedName(SERIALIZED_NAME_SIGNER_NAME) + @jakarta.annotation.Nullable private String signerName; public static final String SERIALIZED_NAME_TRUST_BUNDLE = "trustBundle"; @SerializedName(SERIALIZED_NAME_TRUST_BUNDLE) + @jakarta.annotation.Nonnull private String trustBundle; public V1alpha1ClusterTrustBundleSpec() { } - public V1alpha1ClusterTrustBundleSpec signerName(String signerName) { + public V1alpha1ClusterTrustBundleSpec signerName(@jakarta.annotation.Nullable String signerName) { this.signerName = signerName; return this; } - /** + /** * signerName indicates the associated signer, if any. In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName=<the signer name> verb=attest. If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`. If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix. List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector. * @return signerName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "signerName indicates the associated signer, if any. In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName= verb=attest. If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`. If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix. List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.") public String getSignerName() { return signerName; } - public void setSignerName(String signerName) { + public void setSignerName(@jakarta.annotation.Nullable String signerName) { this.signerName = signerName; } - public V1alpha1ClusterTrustBundleSpec trustBundle(String trustBundle) { + public V1alpha1ClusterTrustBundleSpec trustBundle(@jakarta.annotation.Nonnull String trustBundle) { this.trustBundle = trustBundle; return this; } - /** + /** * trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates. The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers. Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data. * @return trustBundle - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates. The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers. Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.") public String getTrustBundle() { return trustBundle; } - public void setTrustBundle(String trustBundle) { + public void setTrustBundle(@jakarta.annotation.Nonnull String trustBundle) { this.trustBundle = trustBundle; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("trustBundle"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1ClusterTrustBundleSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1ClusterTrustBundleSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1ClusterTrustBundleSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -224,22 +225,22 @@ public V1alpha1ClusterTrustBundleSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha1ClusterTrustBundleSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1ClusterTrustBundleSpec - * @throws IOException if the JSON string is invalid with respect to V1alpha1ClusterTrustBundleSpec - */ + /** + * Create an instance of V1alpha1ClusterTrustBundleSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ClusterTrustBundleSpec + * @throws IOException if the JSON string is invalid with respect to V1alpha1ClusterTrustBundleSpec + */ public static V1alpha1ClusterTrustBundleSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1ClusterTrustBundleSpec.class); } - /** - * Convert an instance of V1alpha1ClusterTrustBundleSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1ClusterTrustBundleSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResource.java index e2ff6af07b..15fc695700 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResource.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,79 +50,82 @@ * The names of the group, the version, and the resource. */ @ApiModel(description = "The names of the group, the version, and the resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1GroupVersionResource { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) + @jakarta.annotation.Nullable private String group; public static final String SERIALIZED_NAME_RESOURCE = "resource"; @SerializedName(SERIALIZED_NAME_RESOURCE) + @jakarta.annotation.Nullable private String resource; public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) + @jakarta.annotation.Nullable private String version; public V1alpha1GroupVersionResource() { } - public V1alpha1GroupVersionResource group(String group) { + public V1alpha1GroupVersionResource group(@jakarta.annotation.Nullable String group) { this.group = group; return this; } - /** + /** * The name of the group. * @return group - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The name of the group.") public String getGroup() { return group; } - public void setGroup(String group) { + public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; } - public V1alpha1GroupVersionResource resource(String resource) { + public V1alpha1GroupVersionResource resource(@jakarta.annotation.Nullable String resource) { this.resource = resource; return this; } - /** + /** * The name of the resource. * @return resource - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The name of the resource.") public String getResource() { return resource; } - public void setResource(String resource) { + public void setResource(@jakarta.annotation.Nullable String resource) { this.resource = resource; } - public V1alpha1GroupVersionResource version(String version) { + public V1alpha1GroupVersionResource version(@jakarta.annotation.Nullable String version) { this.version = version; return this; } - /** + /** * The name of the version. * @return version - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The name of the version.") public String getVersion() { return version; } - public void setVersion(String version) { + public void setVersion(@jakarta.annotation.Nullable String version) { this.version = version; } @@ -185,12 +187,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1GroupVersionResource - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1GroupVersionResource + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1GroupVersionResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -246,22 +248,22 @@ public V1alpha1GroupVersionResource read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha1GroupVersionResource given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1GroupVersionResource - * @throws IOException if the JSON string is invalid with respect to V1alpha1GroupVersionResource - */ + /** + * Create an instance of V1alpha1GroupVersionResource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1GroupVersionResource + * @throws IOException if the JSON string is invalid with respect to V1alpha1GroupVersionResource + */ public static V1alpha1GroupVersionResource fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1GroupVersionResource.class); } - /** - * Convert an instance of V1alpha1GroupVersionResource to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1GroupVersionResource to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatch.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatch.java index 0af8a065f5..2b02b130e9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatch.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatch.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * JSONPatch defines a JSON Patch. */ @ApiModel(description = "JSONPatch defines a JSON Patch.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1JSONPatch { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) + @jakarta.annotation.Nullable private String expression; public V1alpha1JSONPatch() { } - public V1alpha1JSONPatch expression(String expression) { + public V1alpha1JSONPatch expression(@jakarta.annotation.Nullable String expression) { this.expression = expression; return this; } - /** + /** * expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec expression must return an array of JSONPatch values. For example, this CEL expression returns a JSON patch to conditionally modify a value: [ JSONPatch{op: \"test\", path: \"/spec/example\", value: \"Red\"}, JSONPatch{op: \"replace\", path: \"/spec/example\", value: \"Green\"} ] To define an object for the patch value, use Object types. For example: [ JSONPatch{ op: \"add\", path: \"/spec/selector\", value: Object.spec.selector{matchLabels: {\"environment\": \"test\"}} } ] To use strings containing '/' and '~' as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example: [ JSONPatch{ op: \"add\", path: \"/metadata/labels/\" + jsonpatch.escapeKey(\"example.com/environment\"), value: \"test\" }, ] CEL expressions have access to the types needed to create JSON patches and objects: - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'. See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string, integer, array, map or object. If set, the 'path' and 'from' fields must be set to a [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL function may be used to escape path keys containing '/' and '~'. - 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as: - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively). Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required. * @return expression - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec expression must return an array of JSONPatch values. For example, this CEL expression returns a JSON patch to conditionally modify a value: [ JSONPatch{op: \"test\", path: \"/spec/example\", value: \"Red\"}, JSONPatch{op: \"replace\", path: \"/spec/example\", value: \"Green\"} ] To define an object for the patch value, use Object types. For example: [ JSONPatch{ op: \"add\", path: \"/spec/selector\", value: Object.spec.selector{matchLabels: {\"environment\": \"test\"}} } ] To use strings containing '/' and '~' as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example: [ JSONPatch{ op: \"add\", path: \"/metadata/labels/\" + jsonpatch.escapeKey(\"example.com/environment\"), value: \"test\" }, ] CEL expressions have access to the types needed to create JSON patches and objects: - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'. See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string, integer, array, map or object. If set, the 'path' and 'from' fields must be set to a [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL function may be used to escape path keys containing '/' and '~'. - 'Object' - CEL type of the resource object. - 'Object.' - CEL type of object field (such as 'Object.spec') - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as: - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively). Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.") public String getExpression() { return expression; } - public void setExpression(String expression) { + public void setExpression(@jakarta.annotation.Nullable String expression) { this.expression = expression; } @@ -131,12 +131,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1JSONPatch - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1JSONPatch + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1JSONPatch.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -186,22 +186,22 @@ public V1alpha1JSONPatch read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha1JSONPatch given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1JSONPatch - * @throws IOException if the JSON string is invalid with respect to V1alpha1JSONPatch - */ + /** + * Create an instance of V1alpha1JSONPatch given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1JSONPatch + * @throws IOException if the JSON string is invalid with respect to V1alpha1JSONPatch + */ public static V1alpha1JSONPatch fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1JSONPatch.class); } - /** - * Convert an instance of V1alpha1JSONPatch to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1JSONPatch to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchCondition.java index 876631da00..5c78896ca3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchCondition.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -50,55 +49,57 @@ /** * V1alpha1MatchCondition */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1MatchCondition { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) + @jakarta.annotation.Nonnull private String expression; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public V1alpha1MatchCondition() { } - public V1alpha1MatchCondition expression(String expression) { + public V1alpha1MatchCondition expression(@jakarta.annotation.Nonnull String expression) { this.expression = expression; return this; } - /** + /** * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. * @return expression - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required.") public String getExpression() { return expression; } - public void setExpression(String expression) { + public void setExpression(@jakarta.annotation.Nonnull String expression) { this.expression = expression; } - public V1alpha1MatchCondition name(String name) { + public V1alpha1MatchCondition name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -159,12 +160,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1MatchCondition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1MatchCondition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1MatchCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -224,22 +225,22 @@ public V1alpha1MatchCondition read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha1MatchCondition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1MatchCondition - * @throws IOException if the JSON string is invalid with respect to V1alpha1MatchCondition - */ + /** + * Create an instance of V1alpha1MatchCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1MatchCondition + * @throws IOException if the JSON string is invalid with respect to V1alpha1MatchCondition + */ public static V1alpha1MatchCondition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1MatchCondition.class); } - /** - * Convert an instance of V1alpha1MatchCondition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1MatchCondition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResources.java index 64ef197cc6..c60a2ec8fe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResources.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,32 +54,37 @@ * MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) */ @ApiModel(description = "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1MatchResources { public static final String SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES = "excludeResourceRules"; @SerializedName(SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES) + @jakarta.annotation.Nullable private List excludeResourceRules = new ArrayList<>(); public static final String SERIALIZED_NAME_MATCH_POLICY = "matchPolicy"; @SerializedName(SERIALIZED_NAME_MATCH_POLICY) + @jakarta.annotation.Nullable private String matchPolicy; public static final String SERIALIZED_NAME_NAMESPACE_SELECTOR = "namespaceSelector"; @SerializedName(SERIALIZED_NAME_NAMESPACE_SELECTOR) + @jakarta.annotation.Nullable private V1LabelSelector namespaceSelector; public static final String SERIALIZED_NAME_OBJECT_SELECTOR = "objectSelector"; @SerializedName(SERIALIZED_NAME_OBJECT_SELECTOR) + @jakarta.annotation.Nullable private V1LabelSelector objectSelector; public static final String SERIALIZED_NAME_RESOURCE_RULES = "resourceRules"; @SerializedName(SERIALIZED_NAME_RESOURCE_RULES) + @jakarta.annotation.Nullable private List resourceRules = new ArrayList<>(); public V1alpha1MatchResources() { } - public V1alpha1MatchResources excludeResourceRules(List excludeResourceRules) { + public V1alpha1MatchResources excludeResourceRules(@jakarta.annotation.Nullable List excludeResourceRules) { this.excludeResourceRules = excludeResourceRules; return this; } @@ -93,82 +97,82 @@ public V1alpha1MatchResources addExcludeResourceRulesItem(V1alpha1NamedRuleWithO return this; } - /** - * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) + /** + * ExcludeResourceRules describes what operations on what resources/subresources the policy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) * @return excludeResourceRules - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)") + @ApiModelProperty(value = "ExcludeResourceRules describes what operations on what resources/subresources the policy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)") public List getExcludeResourceRules() { return excludeResourceRules; } - public void setExcludeResourceRules(List excludeResourceRules) { + public void setExcludeResourceRules(@jakarta.annotation.Nullable List excludeResourceRules) { this.excludeResourceRules = excludeResourceRules; } - public V1alpha1MatchResources matchPolicy(String matchPolicy) { + public V1alpha1MatchResources matchPolicy(@jakarta.annotation.Nullable String matchPolicy) { this.matchPolicy = matchPolicy; return this; } - /** - * matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to \"Equivalent\" + /** + * matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, the admission policy does not consider requests to apps/v1beta1 or extensions/v1beta1 API groups. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, the admission policy **does** consider requests made to apps/v1beta1 or extensions/v1beta1 API groups. The API server translates the request to a matched resource API if necessary. Defaults to \"Equivalent\" * @return matchPolicy - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to \"Equivalent\"") + @ApiModelProperty(value = "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, the admission policy does not consider requests to apps/v1beta1 or extensions/v1beta1 API groups. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, the admission policy **does** consider requests made to apps/v1beta1 or extensions/v1beta1 API groups. The API server translates the request to a matched resource API if necessary. Defaults to \"Equivalent\"") public String getMatchPolicy() { return matchPolicy; } - public void setMatchPolicy(String matchPolicy) { + public void setMatchPolicy(@jakarta.annotation.Nullable String matchPolicy) { this.matchPolicy = matchPolicy; } - public V1alpha1MatchResources namespaceSelector(V1LabelSelector namespaceSelector) { + public V1alpha1MatchResources namespaceSelector(@jakarta.annotation.Nullable V1LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; return this; } - /** + /** * Get namespaceSelector * @return namespaceSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LabelSelector getNamespaceSelector() { return namespaceSelector; } - public void setNamespaceSelector(V1LabelSelector namespaceSelector) { + public void setNamespaceSelector(@jakarta.annotation.Nullable V1LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; } - public V1alpha1MatchResources objectSelector(V1LabelSelector objectSelector) { + public V1alpha1MatchResources objectSelector(@jakarta.annotation.Nullable V1LabelSelector objectSelector) { this.objectSelector = objectSelector; return this; } - /** + /** * Get objectSelector * @return objectSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LabelSelector getObjectSelector() { return objectSelector; } - public void setObjectSelector(V1LabelSelector objectSelector) { + public void setObjectSelector(@jakarta.annotation.Nullable V1LabelSelector objectSelector) { this.objectSelector = objectSelector; } - public V1alpha1MatchResources resourceRules(List resourceRules) { + public V1alpha1MatchResources resourceRules(@jakarta.annotation.Nullable List resourceRules) { this.resourceRules = resourceRules; return this; } @@ -181,17 +185,17 @@ public V1alpha1MatchResources addResourceRulesItem(V1alpha1NamedRuleWithOperatio return this; } - /** - * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. + /** + * ResourceRules describes what operations on what resources/subresources the admission policy matches. The policy cares about an operation if it matches _any_ Rule. * @return resourceRules - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.") + @ApiModelProperty(value = "ResourceRules describes what operations on what resources/subresources the admission policy matches. The policy cares about an operation if it matches _any_ Rule.") public List getResourceRules() { return resourceRules; } - public void setResourceRules(List resourceRules) { + public void setResourceRules(@jakarta.annotation.Nullable List resourceRules) { this.resourceRules = resourceRules; } @@ -259,12 +263,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1MatchResources - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1MatchResources + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1MatchResources.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -350,22 +354,22 @@ public V1alpha1MatchResources read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha1MatchResources given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1MatchResources - * @throws IOException if the JSON string is invalid with respect to V1alpha1MatchResources - */ + /** + * Create an instance of V1alpha1MatchResources given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1MatchResources + * @throws IOException if the JSON string is invalid with respect to V1alpha1MatchResources + */ public static V1alpha1MatchResources fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1MatchResources.class); } - /** - * Convert an instance of V1alpha1MatchResources to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1MatchResources to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationCondition.java index 11c1451eb6..7520ae519f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationCondition.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,127 +51,132 @@ * Describes the state of a migration at a certain point. */ @ApiModel(description = "Describes the state of a migration at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1MigrationCondition { public static final String SERIALIZED_NAME_LAST_UPDATE_TIME = "lastUpdateTime"; @SerializedName(SERIALIZED_NAME_LAST_UPDATE_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastUpdateTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable private String message; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nonnull private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1alpha1MigrationCondition() { } - public V1alpha1MigrationCondition lastUpdateTime(OffsetDateTime lastUpdateTime) { + public V1alpha1MigrationCondition lastUpdateTime(@jakarta.annotation.Nullable OffsetDateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; return this; } - /** + /** * The last time this condition was updated. * @return lastUpdateTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The last time this condition was updated.") public OffsetDateTime getLastUpdateTime() { return lastUpdateTime; } - public void setLastUpdateTime(OffsetDateTime lastUpdateTime) { + public void setLastUpdateTime(@jakarta.annotation.Nullable OffsetDateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } - public V1alpha1MigrationCondition message(String message) { + public V1alpha1MigrationCondition message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } - /** + /** * A human readable message indicating details about the transition. * @return message - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A human readable message indicating details about the transition.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public V1alpha1MigrationCondition reason(String reason) { + public V1alpha1MigrationCondition reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; } - /** + /** * The reason for the condition's last transition. * @return reason - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The reason for the condition's last transition.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nullable String reason) { this.reason = reason; } - public V1alpha1MigrationCondition status(String status) { + public V1alpha1MigrationCondition status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } - /** + /** * Status of the condition, one of True, False, Unknown. * @return status - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public V1alpha1MigrationCondition type(String type) { + public V1alpha1MigrationCondition type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * Type of the condition. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Type of the condition.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1MigrationCondition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1MigrationCondition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1MigrationCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -313,22 +317,22 @@ public V1alpha1MigrationCondition read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha1MigrationCondition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1MigrationCondition - * @throws IOException if the JSON string is invalid with respect to V1alpha1MigrationCondition - */ + /** + * Create an instance of V1alpha1MigrationCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1MigrationCondition + * @throws IOException if the JSON string is invalid with respect to V1alpha1MigrationCondition + */ public static V1alpha1MigrationCondition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1MigrationCondition.class); } - /** - * Convert an instance of V1alpha1MigrationCondition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1MigrationCondition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicy.java index 30b07e5334..b9b5768d17 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicy.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,103 +52,107 @@ * MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain. */ @ApiModel(description = "MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1MutatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1alpha1MutatingAdmissionPolicySpec spec; public V1alpha1MutatingAdmissionPolicy() { } - public V1alpha1MutatingAdmissionPolicy apiVersion(String apiVersion) { + public V1alpha1MutatingAdmissionPolicy apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1alpha1MutatingAdmissionPolicy kind(String kind) { + public V1alpha1MutatingAdmissionPolicy kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1alpha1MutatingAdmissionPolicy metadata(V1ObjectMeta metadata) { + public V1alpha1MutatingAdmissionPolicy metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1alpha1MutatingAdmissionPolicy spec(V1alpha1MutatingAdmissionPolicySpec spec) { + public V1alpha1MutatingAdmissionPolicy spec(@jakarta.annotation.Nullable V1alpha1MutatingAdmissionPolicySpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1alpha1MutatingAdmissionPolicySpec getSpec() { return spec; } - public void setSpec(V1alpha1MutatingAdmissionPolicySpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1alpha1MutatingAdmissionPolicySpec spec) { this.spec = spec; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1MutatingAdmissionPolicy - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1MutatingAdmissionPolicy + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1MutatingAdmissionPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -280,22 +283,22 @@ public V1alpha1MutatingAdmissionPolicy read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha1MutatingAdmissionPolicy given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1MutatingAdmissionPolicy - * @throws IOException if the JSON string is invalid with respect to V1alpha1MutatingAdmissionPolicy - */ + /** + * Create an instance of V1alpha1MutatingAdmissionPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1MutatingAdmissionPolicy + * @throws IOException if the JSON string is invalid with respect to V1alpha1MutatingAdmissionPolicy + */ public static V1alpha1MutatingAdmissionPolicy fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1MutatingAdmissionPolicy.class); } - /** - * Convert an instance of V1alpha1MutatingAdmissionPolicy to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1MutatingAdmissionPolicy to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBinding.java index accda36b9d..0f20f0935f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBinding.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,103 +52,107 @@ * MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. */ @ApiModel(description = "MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1MutatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1alpha1MutatingAdmissionPolicyBindingSpec spec; public V1alpha1MutatingAdmissionPolicyBinding() { } - public V1alpha1MutatingAdmissionPolicyBinding apiVersion(String apiVersion) { + public V1alpha1MutatingAdmissionPolicyBinding apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1alpha1MutatingAdmissionPolicyBinding kind(String kind) { + public V1alpha1MutatingAdmissionPolicyBinding kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1alpha1MutatingAdmissionPolicyBinding metadata(V1ObjectMeta metadata) { + public V1alpha1MutatingAdmissionPolicyBinding metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1alpha1MutatingAdmissionPolicyBinding spec(V1alpha1MutatingAdmissionPolicyBindingSpec spec) { + public V1alpha1MutatingAdmissionPolicyBinding spec(@jakarta.annotation.Nullable V1alpha1MutatingAdmissionPolicyBindingSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1alpha1MutatingAdmissionPolicyBindingSpec getSpec() { return spec; } - public void setSpec(V1alpha1MutatingAdmissionPolicyBindingSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1alpha1MutatingAdmissionPolicyBindingSpec spec) { this.spec = spec; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1MutatingAdmissionPolicyBinding - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1MutatingAdmissionPolicyBinding + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1MutatingAdmissionPolicyBinding.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -280,22 +283,22 @@ public V1alpha1MutatingAdmissionPolicyBinding read(JsonReader in) throws IOExcep } } - /** - * Create an instance of V1alpha1MutatingAdmissionPolicyBinding given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1MutatingAdmissionPolicyBinding - * @throws IOException if the JSON string is invalid with respect to V1alpha1MutatingAdmissionPolicyBinding - */ + /** + * Create an instance of V1alpha1MutatingAdmissionPolicyBinding given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1MutatingAdmissionPolicyBinding + * @throws IOException if the JSON string is invalid with respect to V1alpha1MutatingAdmissionPolicyBinding + */ public static V1alpha1MutatingAdmissionPolicyBinding fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1MutatingAdmissionPolicyBinding.class); } - /** - * Convert an instance of V1alpha1MutatingAdmissionPolicyBinding to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1MutatingAdmissionPolicyBinding to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingList.java index cb5a79d168..d44301afeb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. */ @ApiModel(description = "MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1MutatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1alpha1MutatingAdmissionPolicyBindingList() { } - public V1alpha1MutatingAdmissionPolicyBindingList apiVersion(String apiVersion) { + public V1alpha1MutatingAdmissionPolicyBindingList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1alpha1MutatingAdmissionPolicyBindingList items(List items) { + public V1alpha1MutatingAdmissionPolicyBindingList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1alpha1MutatingAdmissionPolicyBindingList addItemsItem(V1alpha1MutatingA return this; } - /** + /** * List of PolicyBinding. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "List of PolicyBinding.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1alpha1MutatingAdmissionPolicyBindingList kind(String kind) { + public V1alpha1MutatingAdmissionPolicyBindingList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1alpha1MutatingAdmissionPolicyBindingList metadata(V1ListMeta metadata) { + public V1alpha1MutatingAdmissionPolicyBindingList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1MutatingAdmissionPolicyBindingList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1MutatingAdmissionPolicyBindingList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1MutatingAdmissionPolicyBindingList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1alpha1MutatingAdmissionPolicyBindingList read(JsonReader in) throws IOE } } - /** - * Create an instance of V1alpha1MutatingAdmissionPolicyBindingList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1MutatingAdmissionPolicyBindingList - * @throws IOException if the JSON string is invalid with respect to V1alpha1MutatingAdmissionPolicyBindingList - */ + /** + * Create an instance of V1alpha1MutatingAdmissionPolicyBindingList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1MutatingAdmissionPolicyBindingList + * @throws IOException if the JSON string is invalid with respect to V1alpha1MutatingAdmissionPolicyBindingList + */ public static V1alpha1MutatingAdmissionPolicyBindingList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1MutatingAdmissionPolicyBindingList.class); } - /** - * Convert an instance of V1alpha1MutatingAdmissionPolicyBindingList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1MutatingAdmissionPolicyBindingList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpec.java index cfe9abdc1d..99382ab463 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpec.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,79 +52,82 @@ * MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding. */ @ApiModel(description = "MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1MutatingAdmissionPolicyBindingSpec { public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) + @jakarta.annotation.Nullable private V1alpha1MatchResources matchResources; public static final String SERIALIZED_NAME_PARAM_REF = "paramRef"; @SerializedName(SERIALIZED_NAME_PARAM_REF) + @jakarta.annotation.Nullable private V1alpha1ParamRef paramRef; public static final String SERIALIZED_NAME_POLICY_NAME = "policyName"; @SerializedName(SERIALIZED_NAME_POLICY_NAME) + @jakarta.annotation.Nullable private String policyName; public V1alpha1MutatingAdmissionPolicyBindingSpec() { } - public V1alpha1MutatingAdmissionPolicyBindingSpec matchResources(V1alpha1MatchResources matchResources) { + public V1alpha1MutatingAdmissionPolicyBindingSpec matchResources(@jakarta.annotation.Nullable V1alpha1MatchResources matchResources) { this.matchResources = matchResources; return this; } - /** + /** * Get matchResources * @return matchResources - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1alpha1MatchResources getMatchResources() { return matchResources; } - public void setMatchResources(V1alpha1MatchResources matchResources) { + public void setMatchResources(@jakarta.annotation.Nullable V1alpha1MatchResources matchResources) { this.matchResources = matchResources; } - public V1alpha1MutatingAdmissionPolicyBindingSpec paramRef(V1alpha1ParamRef paramRef) { + public V1alpha1MutatingAdmissionPolicyBindingSpec paramRef(@jakarta.annotation.Nullable V1alpha1ParamRef paramRef) { this.paramRef = paramRef; return this; } - /** + /** * Get paramRef * @return paramRef - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1alpha1ParamRef getParamRef() { return paramRef; } - public void setParamRef(V1alpha1ParamRef paramRef) { + public void setParamRef(@jakarta.annotation.Nullable V1alpha1ParamRef paramRef) { this.paramRef = paramRef; } - public V1alpha1MutatingAdmissionPolicyBindingSpec policyName(String policyName) { + public V1alpha1MutatingAdmissionPolicyBindingSpec policyName(@jakarta.annotation.Nullable String policyName) { this.policyName = policyName; return this; } - /** + /** * policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. * @return policyName - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.") public String getPolicyName() { return policyName; } - public void setPolicyName(String policyName) { + public void setPolicyName(@jakarta.annotation.Nullable String policyName) { this.policyName = policyName; } @@ -187,12 +189,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1MutatingAdmissionPolicyBindingSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1MutatingAdmissionPolicyBindingSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1MutatingAdmissionPolicyBindingSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -250,22 +252,22 @@ public V1alpha1MutatingAdmissionPolicyBindingSpec read(JsonReader in) throws IOE } } - /** - * Create an instance of V1alpha1MutatingAdmissionPolicyBindingSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1MutatingAdmissionPolicyBindingSpec - * @throws IOException if the JSON string is invalid with respect to V1alpha1MutatingAdmissionPolicyBindingSpec - */ + /** + * Create an instance of V1alpha1MutatingAdmissionPolicyBindingSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1MutatingAdmissionPolicyBindingSpec + * @throws IOException if the JSON string is invalid with respect to V1alpha1MutatingAdmissionPolicyBindingSpec + */ public static V1alpha1MutatingAdmissionPolicyBindingSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1MutatingAdmissionPolicyBindingSpec.class); } - /** - * Convert an instance of V1alpha1MutatingAdmissionPolicyBindingSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1MutatingAdmissionPolicyBindingSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyList.java index 61b26948d7..0d58a86802 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. */ @ApiModel(description = "MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1MutatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1alpha1MutatingAdmissionPolicyList() { } - public V1alpha1MutatingAdmissionPolicyList apiVersion(String apiVersion) { + public V1alpha1MutatingAdmissionPolicyList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1alpha1MutatingAdmissionPolicyList items(List items) { + public V1alpha1MutatingAdmissionPolicyList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1alpha1MutatingAdmissionPolicyList addItemsItem(V1alpha1MutatingAdmissio return this; } - /** + /** * List of ValidatingAdmissionPolicy. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "List of ValidatingAdmissionPolicy.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1alpha1MutatingAdmissionPolicyList kind(String kind) { + public V1alpha1MutatingAdmissionPolicyList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1alpha1MutatingAdmissionPolicyList metadata(V1ListMeta metadata) { + public V1alpha1MutatingAdmissionPolicyList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1MutatingAdmissionPolicyList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1MutatingAdmissionPolicyList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1MutatingAdmissionPolicyList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1alpha1MutatingAdmissionPolicyList read(JsonReader in) throws IOExceptio } } - /** - * Create an instance of V1alpha1MutatingAdmissionPolicyList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1MutatingAdmissionPolicyList - * @throws IOException if the JSON string is invalid with respect to V1alpha1MutatingAdmissionPolicyList - */ + /** + * Create an instance of V1alpha1MutatingAdmissionPolicyList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1MutatingAdmissionPolicyList + * @throws IOException if the JSON string is invalid with respect to V1alpha1MutatingAdmissionPolicyList + */ public static V1alpha1MutatingAdmissionPolicyList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1MutatingAdmissionPolicyList.class); } - /** - * Convert an instance of V1alpha1MutatingAdmissionPolicyList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1MutatingAdmissionPolicyList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpec.java index 5248d454db..55f0dda9a7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpec.java @@ -45,7 +45,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -58,60 +57,67 @@ * MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy. */ @ApiModel(description = "MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1MutatingAdmissionPolicySpec { public static final String SERIALIZED_NAME_FAILURE_POLICY = "failurePolicy"; @SerializedName(SERIALIZED_NAME_FAILURE_POLICY) + @jakarta.annotation.Nullable private String failurePolicy; public static final String SERIALIZED_NAME_MATCH_CONDITIONS = "matchConditions"; @SerializedName(SERIALIZED_NAME_MATCH_CONDITIONS) + @jakarta.annotation.Nullable private List matchConditions = new ArrayList<>(); public static final String SERIALIZED_NAME_MATCH_CONSTRAINTS = "matchConstraints"; @SerializedName(SERIALIZED_NAME_MATCH_CONSTRAINTS) + @jakarta.annotation.Nullable private V1alpha1MatchResources matchConstraints; public static final String SERIALIZED_NAME_MUTATIONS = "mutations"; @SerializedName(SERIALIZED_NAME_MUTATIONS) + @jakarta.annotation.Nullable private List mutations = new ArrayList<>(); public static final String SERIALIZED_NAME_PARAM_KIND = "paramKind"; @SerializedName(SERIALIZED_NAME_PARAM_KIND) + @jakarta.annotation.Nullable private V1alpha1ParamKind paramKind; public static final String SERIALIZED_NAME_REINVOCATION_POLICY = "reinvocationPolicy"; @SerializedName(SERIALIZED_NAME_REINVOCATION_POLICY) + @jakarta.annotation.Nullable private String reinvocationPolicy; public static final String SERIALIZED_NAME_VARIABLES = "variables"; @SerializedName(SERIALIZED_NAME_VARIABLES) + @jakarta.annotation.Nullable private List variables = new ArrayList<>(); public V1alpha1MutatingAdmissionPolicySpec() { } - public V1alpha1MutatingAdmissionPolicySpec failurePolicy(String failurePolicy) { + public V1alpha1MutatingAdmissionPolicySpec failurePolicy(@jakarta.annotation.Nullable String failurePolicy) { this.failurePolicy = failurePolicy; return this; } - /** + /** * failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. Allowed values are Ignore or Fail. Defaults to Fail. * @return failurePolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. Allowed values are Ignore or Fail. Defaults to Fail.") public String getFailurePolicy() { return failurePolicy; } - public void setFailurePolicy(String failurePolicy) { + public void setFailurePolicy(@jakarta.annotation.Nullable String failurePolicy) { this.failurePolicy = failurePolicy; } - public V1alpha1MutatingAdmissionPolicySpec matchConditions(List matchConditions) { + public V1alpha1MutatingAdmissionPolicySpec matchConditions(@jakarta.annotation.Nullable List matchConditions) { this.matchConditions = matchConditions; return this; } @@ -124,42 +130,42 @@ public V1alpha1MutatingAdmissionPolicySpec addMatchConditionsItem(V1alpha1MatchC return this; } - /** + /** * matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped * @return matchConditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped") public List getMatchConditions() { return matchConditions; } - public void setMatchConditions(List matchConditions) { + public void setMatchConditions(@jakarta.annotation.Nullable List matchConditions) { this.matchConditions = matchConditions; } - public V1alpha1MutatingAdmissionPolicySpec matchConstraints(V1alpha1MatchResources matchConstraints) { + public V1alpha1MutatingAdmissionPolicySpec matchConstraints(@jakarta.annotation.Nullable V1alpha1MatchResources matchConstraints) { this.matchConstraints = matchConstraints; return this; } - /** + /** * Get matchConstraints * @return matchConstraints - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1alpha1MatchResources getMatchConstraints() { return matchConstraints; } - public void setMatchConstraints(V1alpha1MatchResources matchConstraints) { + public void setMatchConstraints(@jakarta.annotation.Nullable V1alpha1MatchResources matchConstraints) { this.matchConstraints = matchConstraints; } - public V1alpha1MutatingAdmissionPolicySpec mutations(List mutations) { + public V1alpha1MutatingAdmissionPolicySpec mutations(@jakarta.annotation.Nullable List mutations) { this.mutations = mutations; return this; } @@ -172,62 +178,62 @@ public V1alpha1MutatingAdmissionPolicySpec addMutationsItem(V1alpha1Mutation mut return this; } - /** + /** * mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis. * @return mutations - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis.") public List getMutations() { return mutations; } - public void setMutations(List mutations) { + public void setMutations(@jakarta.annotation.Nullable List mutations) { this.mutations = mutations; } - public V1alpha1MutatingAdmissionPolicySpec paramKind(V1alpha1ParamKind paramKind) { + public V1alpha1MutatingAdmissionPolicySpec paramKind(@jakarta.annotation.Nullable V1alpha1ParamKind paramKind) { this.paramKind = paramKind; return this; } - /** + /** * Get paramKind * @return paramKind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1alpha1ParamKind getParamKind() { return paramKind; } - public void setParamKind(V1alpha1ParamKind paramKind) { + public void setParamKind(@jakarta.annotation.Nullable V1alpha1ParamKind paramKind) { this.paramKind = paramKind; } - public V1alpha1MutatingAdmissionPolicySpec reinvocationPolicy(String reinvocationPolicy) { + public V1alpha1MutatingAdmissionPolicySpec reinvocationPolicy(@jakarta.annotation.Nullable String reinvocationPolicy) { this.reinvocationPolicy = reinvocationPolicy; return this; } - /** + /** * reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: These mutations will not be called more than once per binding in a single admission evaluation. IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required. * @return reinvocationPolicy - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: These mutations will not be called more than once per binding in a single admission evaluation. IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required.") public String getReinvocationPolicy() { return reinvocationPolicy; } - public void setReinvocationPolicy(String reinvocationPolicy) { + public void setReinvocationPolicy(@jakarta.annotation.Nullable String reinvocationPolicy) { this.reinvocationPolicy = reinvocationPolicy; } - public V1alpha1MutatingAdmissionPolicySpec variables(List variables) { + public V1alpha1MutatingAdmissionPolicySpec variables(@jakarta.annotation.Nullable List variables) { this.variables = variables; return this; } @@ -240,17 +246,17 @@ public V1alpha1MutatingAdmissionPolicySpec addVariablesItem(V1alpha1Variable var return this; } - /** + /** * variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except matchConditions because matchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, variables must be sorted by the order of first appearance and acyclic. * @return variables - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except matchConditions because matchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, variables must be sorted by the order of first appearance and acyclic.") public List getVariables() { return variables; } - public void setVariables(List variables) { + public void setVariables(@jakarta.annotation.Nullable List variables) { this.variables = variables; } @@ -324,12 +330,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1MutatingAdmissionPolicySpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1MutatingAdmissionPolicySpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1MutatingAdmissionPolicySpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -432,22 +438,22 @@ public V1alpha1MutatingAdmissionPolicySpec read(JsonReader in) throws IOExceptio } } - /** - * Create an instance of V1alpha1MutatingAdmissionPolicySpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1MutatingAdmissionPolicySpec - * @throws IOException if the JSON string is invalid with respect to V1alpha1MutatingAdmissionPolicySpec - */ + /** + * Create an instance of V1alpha1MutatingAdmissionPolicySpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1MutatingAdmissionPolicySpec + * @throws IOException if the JSON string is invalid with respect to V1alpha1MutatingAdmissionPolicySpec + */ public static V1alpha1MutatingAdmissionPolicySpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1MutatingAdmissionPolicySpec.class); } - /** - * Convert an instance of V1alpha1MutatingAdmissionPolicySpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1MutatingAdmissionPolicySpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Mutation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Mutation.java index 7e60df4b65..28d8bb45b7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Mutation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Mutation.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,79 +52,82 @@ * Mutation specifies the CEL expression which is used to apply the Mutation. */ @ApiModel(description = "Mutation specifies the CEL expression which is used to apply the Mutation.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1Mutation { public static final String SERIALIZED_NAME_APPLY_CONFIGURATION = "applyConfiguration"; @SerializedName(SERIALIZED_NAME_APPLY_CONFIGURATION) + @jakarta.annotation.Nullable private V1alpha1ApplyConfiguration applyConfiguration; public static final String SERIALIZED_NAME_JSON_PATCH = "jsonPatch"; @SerializedName(SERIALIZED_NAME_JSON_PATCH) + @jakarta.annotation.Nullable private V1alpha1JSONPatch jsonPatch; public static final String SERIALIZED_NAME_PATCH_TYPE = "patchType"; @SerializedName(SERIALIZED_NAME_PATCH_TYPE) + @jakarta.annotation.Nonnull private String patchType; public V1alpha1Mutation() { } - public V1alpha1Mutation applyConfiguration(V1alpha1ApplyConfiguration applyConfiguration) { + public V1alpha1Mutation applyConfiguration(@jakarta.annotation.Nullable V1alpha1ApplyConfiguration applyConfiguration) { this.applyConfiguration = applyConfiguration; return this; } - /** + /** * Get applyConfiguration * @return applyConfiguration - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1alpha1ApplyConfiguration getApplyConfiguration() { return applyConfiguration; } - public void setApplyConfiguration(V1alpha1ApplyConfiguration applyConfiguration) { + public void setApplyConfiguration(@jakarta.annotation.Nullable V1alpha1ApplyConfiguration applyConfiguration) { this.applyConfiguration = applyConfiguration; } - public V1alpha1Mutation jsonPatch(V1alpha1JSONPatch jsonPatch) { + public V1alpha1Mutation jsonPatch(@jakarta.annotation.Nullable V1alpha1JSONPatch jsonPatch) { this.jsonPatch = jsonPatch; return this; } - /** + /** * Get jsonPatch * @return jsonPatch - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1alpha1JSONPatch getJsonPatch() { return jsonPatch; } - public void setJsonPatch(V1alpha1JSONPatch jsonPatch) { + public void setJsonPatch(@jakarta.annotation.Nullable V1alpha1JSONPatch jsonPatch) { this.jsonPatch = jsonPatch; } - public V1alpha1Mutation patchType(String patchType) { + public V1alpha1Mutation patchType(@jakarta.annotation.Nonnull String patchType) { this.patchType = patchType; return this; } - /** + /** * patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required. * @return patchType - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required.") public String getPatchType() { return patchType; } - public void setPatchType(String patchType) { + public void setPatchType(@jakarta.annotation.Nonnull String patchType) { this.patchType = patchType; } @@ -188,12 +190,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("patchType"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1Mutation - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1Mutation + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1Mutation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -258,22 +260,22 @@ public V1alpha1Mutation read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha1Mutation given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1Mutation - * @throws IOException if the JSON string is invalid with respect to V1alpha1Mutation - */ + /** + * Create an instance of V1alpha1Mutation given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1Mutation + * @throws IOException if the JSON string is invalid with respect to V1alpha1Mutation + */ public static V1alpha1Mutation fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1Mutation.class); } - /** - * Convert an instance of V1alpha1Mutation to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1Mutation to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperations.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperations.java index df27592462..ba8cd1b14d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperations.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperations.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,36 +52,42 @@ * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. */ @ApiModel(description = "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1NamedRuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) + @jakarta.annotation.Nullable private List apiGroups = new ArrayList<>(); public static final String SERIALIZED_NAME_API_VERSIONS = "apiVersions"; @SerializedName(SERIALIZED_NAME_API_VERSIONS) + @jakarta.annotation.Nullable private List apiVersions = new ArrayList<>(); public static final String SERIALIZED_NAME_OPERATIONS = "operations"; @SerializedName(SERIALIZED_NAME_OPERATIONS) + @jakarta.annotation.Nullable private List operations = new ArrayList<>(); public static final String SERIALIZED_NAME_RESOURCE_NAMES = "resourceNames"; @SerializedName(SERIALIZED_NAME_RESOURCE_NAMES) + @jakarta.annotation.Nullable private List resourceNames = new ArrayList<>(); public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) + @jakarta.annotation.Nullable private List resources = new ArrayList<>(); public static final String SERIALIZED_NAME_SCOPE = "scope"; @SerializedName(SERIALIZED_NAME_SCOPE) + @jakarta.annotation.Nullable private String scope; public V1alpha1NamedRuleWithOperations() { } - public V1alpha1NamedRuleWithOperations apiGroups(List apiGroups) { + public V1alpha1NamedRuleWithOperations apiGroups(@jakarta.annotation.Nullable List apiGroups) { this.apiGroups = apiGroups; return this; } @@ -95,22 +100,22 @@ public V1alpha1NamedRuleWithOperations addApiGroupsItem(String apiGroupsItem) { return this; } - /** + /** * APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. * @return apiGroups - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.") public List getApiGroups() { return apiGroups; } - public void setApiGroups(List apiGroups) { + public void setApiGroups(@jakarta.annotation.Nullable List apiGroups) { this.apiGroups = apiGroups; } - public V1alpha1NamedRuleWithOperations apiVersions(List apiVersions) { + public V1alpha1NamedRuleWithOperations apiVersions(@jakarta.annotation.Nullable List apiVersions) { this.apiVersions = apiVersions; return this; } @@ -123,22 +128,22 @@ public V1alpha1NamedRuleWithOperations addApiVersionsItem(String apiVersionsItem return this; } - /** + /** * APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. * @return apiVersions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.") public List getApiVersions() { return apiVersions; } - public void setApiVersions(List apiVersions) { + public void setApiVersions(@jakarta.annotation.Nullable List apiVersions) { this.apiVersions = apiVersions; } - public V1alpha1NamedRuleWithOperations operations(List operations) { + public V1alpha1NamedRuleWithOperations operations(@jakarta.annotation.Nullable List operations) { this.operations = operations; return this; } @@ -151,22 +156,22 @@ public V1alpha1NamedRuleWithOperations addOperationsItem(String operationsItem) return this; } - /** + /** * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. * @return operations - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.") public List getOperations() { return operations; } - public void setOperations(List operations) { + public void setOperations(@jakarta.annotation.Nullable List operations) { this.operations = operations; } - public V1alpha1NamedRuleWithOperations resourceNames(List resourceNames) { + public V1alpha1NamedRuleWithOperations resourceNames(@jakarta.annotation.Nullable List resourceNames) { this.resourceNames = resourceNames; return this; } @@ -179,22 +184,22 @@ public V1alpha1NamedRuleWithOperations addResourceNamesItem(String resourceNames return this; } - /** + /** * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. * @return resourceNames - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.") public List getResourceNames() { return resourceNames; } - public void setResourceNames(List resourceNames) { + public void setResourceNames(@jakarta.annotation.Nullable List resourceNames) { this.resourceNames = resourceNames; } - public V1alpha1NamedRuleWithOperations resources(List resources) { + public V1alpha1NamedRuleWithOperations resources(@jakarta.annotation.Nullable List resources) { this.resources = resources; return this; } @@ -207,37 +212,37 @@ public V1alpha1NamedRuleWithOperations addResourcesItem(String resourcesItem) { return this; } - /** + /** * Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. * @return resources - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.") public List getResources() { return resources; } - public void setResources(List resources) { + public void setResources(@jakarta.annotation.Nullable List resources) { this.resources = resources; } - public V1alpha1NamedRuleWithOperations scope(String scope) { + public V1alpha1NamedRuleWithOperations scope(@jakarta.annotation.Nullable String scope) { this.scope = scope; return this; } - /** + /** * scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". * @return scope - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".") public String getScope() { return scope; } - public void setScope(String scope) { + public void setScope(@jakarta.annotation.Nullable String scope) { this.scope = scope; } @@ -308,12 +313,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1NamedRuleWithOperations - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1NamedRuleWithOperations + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1NamedRuleWithOperations.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -383,22 +388,22 @@ public V1alpha1NamedRuleWithOperations read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha1NamedRuleWithOperations given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1NamedRuleWithOperations - * @throws IOException if the JSON string is invalid with respect to V1alpha1NamedRuleWithOperations - */ + /** + * Create an instance of V1alpha1NamedRuleWithOperations given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1NamedRuleWithOperations + * @throws IOException if the JSON string is invalid with respect to V1alpha1NamedRuleWithOperations + */ public static V1alpha1NamedRuleWithOperations fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1NamedRuleWithOperations.class); } - /** - * Convert an instance of V1alpha1NamedRuleWithOperations to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1NamedRuleWithOperations to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKind.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKind.java index 21d803536d..619ea75392 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKind.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKind.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * ParamKind is a tuple of Group Kind and Version. */ @ApiModel(description = "ParamKind is a tuple of Group Kind and Version.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1ParamKind { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public V1alpha1ParamKind() { } - public V1alpha1ParamKind apiVersion(String apiVersion) { + public V1alpha1ParamKind apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion is the API group version the resources belong to. In format of \"group/version\". Required. * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1alpha1ParamKind kind(String kind) { + public V1alpha1ParamKind kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is the API kind the resources belong to. Required. * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is the API kind the resources belong to. Required.") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } @@ -158,12 +159,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1ParamKind - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1ParamKind + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1ParamKind.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -216,22 +217,22 @@ public V1alpha1ParamKind read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha1ParamKind given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1ParamKind - * @throws IOException if the JSON string is invalid with respect to V1alpha1ParamKind - */ + /** + * Create an instance of V1alpha1ParamKind given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ParamKind + * @throws IOException if the JSON string is invalid with respect to V1alpha1ParamKind + */ public static V1alpha1ParamKind fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1ParamKind.class); } - /** - * Convert an instance of V1alpha1ParamKind to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1ParamKind to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRef.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRef.java index 6e7176343e..84d855b37f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRef.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,103 +51,107 @@ * ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. */ @ApiModel(description = "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1ParamRef { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nullable private String name; public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) + @jakarta.annotation.Nullable private String namespace; public static final String SERIALIZED_NAME_PARAMETER_NOT_FOUND_ACTION = "parameterNotFoundAction"; @SerializedName(SERIALIZED_NAME_PARAMETER_NOT_FOUND_ACTION) + @jakarta.annotation.Nullable private String parameterNotFoundAction; public static final String SERIALIZED_NAME_SELECTOR = "selector"; @SerializedName(SERIALIZED_NAME_SELECTOR) + @jakarta.annotation.Nullable private V1LabelSelector selector; public V1alpha1ParamRef() { } - public V1alpha1ParamRef name(String name) { + public V1alpha1ParamRef name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } - /** + /** * `name` is the name of the resource being referenced. `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. * @return name - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`name` is the name of the resource being referenced. `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public V1alpha1ParamRef namespace(String namespace) { + public V1alpha1ParamRef namespace(@jakarta.annotation.Nullable String namespace) { this.namespace = namespace; return this; } - /** + /** * namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. * @return namespace - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.") public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { + public void setNamespace(@jakarta.annotation.Nullable String namespace) { this.namespace = namespace; } - public V1alpha1ParamRef parameterNotFoundAction(String parameterNotFoundAction) { + public V1alpha1ParamRef parameterNotFoundAction(@jakarta.annotation.Nullable String parameterNotFoundAction) { this.parameterNotFoundAction = parameterNotFoundAction; return this; } - /** + /** * `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Default to `Deny` * @return parameterNotFoundAction - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Default to `Deny`") public String getParameterNotFoundAction() { return parameterNotFoundAction; } - public void setParameterNotFoundAction(String parameterNotFoundAction) { + public void setParameterNotFoundAction(@jakarta.annotation.Nullable String parameterNotFoundAction) { this.parameterNotFoundAction = parameterNotFoundAction; } - public V1alpha1ParamRef selector(V1LabelSelector selector) { + public V1alpha1ParamRef selector(@jakarta.annotation.Nullable V1LabelSelector selector) { this.selector = selector; return this; } - /** + /** * Get selector * @return selector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1LabelSelector getSelector() { return selector; } - public void setSelector(V1LabelSelector selector) { + public void setSelector(@jakarta.annotation.Nullable V1LabelSelector selector) { this.selector = selector; } @@ -213,12 +216,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1ParamRef - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1ParamRef + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1ParamRef.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -278,22 +281,22 @@ public V1alpha1ParamRef read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha1ParamRef given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1ParamRef - * @throws IOException if the JSON string is invalid with respect to V1alpha1ParamRef - */ + /** + * Create an instance of V1alpha1ParamRef given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ParamRef + * @throws IOException if the JSON string is invalid with respect to V1alpha1ParamRef + */ public static V1alpha1ParamRef fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1ParamRef.class); } - /** - * Convert an instance of V1alpha1ParamRef to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1ParamRef to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java index a354c671b4..cec5086d9a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,48 +52,52 @@ * An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend. */ @ApiModel(description = "An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1ServerStorageVersion { public static final String SERIALIZED_NAME_API_SERVER_I_D = "apiServerID"; @SerializedName(SERIALIZED_NAME_API_SERVER_I_D) + @jakarta.annotation.Nullable private String apiServerID; public static final String SERIALIZED_NAME_DECODABLE_VERSIONS = "decodableVersions"; @SerializedName(SERIALIZED_NAME_DECODABLE_VERSIONS) + @jakarta.annotation.Nullable private List decodableVersions = new ArrayList<>(); public static final String SERIALIZED_NAME_ENCODING_VERSION = "encodingVersion"; @SerializedName(SERIALIZED_NAME_ENCODING_VERSION) + @jakarta.annotation.Nullable private String encodingVersion; public static final String SERIALIZED_NAME_SERVED_VERSIONS = "servedVersions"; @SerializedName(SERIALIZED_NAME_SERVED_VERSIONS) + @jakarta.annotation.Nullable private List servedVersions = new ArrayList<>(); public V1alpha1ServerStorageVersion() { } - public V1alpha1ServerStorageVersion apiServerID(String apiServerID) { + public V1alpha1ServerStorageVersion apiServerID(@jakarta.annotation.Nullable String apiServerID) { this.apiServerID = apiServerID; return this; } - /** + /** * The ID of the reporting API server. * @return apiServerID - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The ID of the reporting API server.") public String getApiServerID() { return apiServerID; } - public void setApiServerID(String apiServerID) { + public void setApiServerID(@jakarta.annotation.Nullable String apiServerID) { this.apiServerID = apiServerID; } - public V1alpha1ServerStorageVersion decodableVersions(List decodableVersions) { + public V1alpha1ServerStorageVersion decodableVersions(@jakarta.annotation.Nullable List decodableVersions) { this.decodableVersions = decodableVersions; return this; } @@ -107,42 +110,42 @@ public V1alpha1ServerStorageVersion addDecodableVersionsItem(String decodableVer return this; } - /** + /** * The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions. * @return decodableVersions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.") public List getDecodableVersions() { return decodableVersions; } - public void setDecodableVersions(List decodableVersions) { + public void setDecodableVersions(@jakarta.annotation.Nullable List decodableVersions) { this.decodableVersions = decodableVersions; } - public V1alpha1ServerStorageVersion encodingVersion(String encodingVersion) { + public V1alpha1ServerStorageVersion encodingVersion(@jakarta.annotation.Nullable String encodingVersion) { this.encodingVersion = encodingVersion; return this; } - /** + /** * The API server encodes the object to this version when persisting it in the backend (e.g., etcd). * @return encodingVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The API server encodes the object to this version when persisting it in the backend (e.g., etcd).") public String getEncodingVersion() { return encodingVersion; } - public void setEncodingVersion(String encodingVersion) { + public void setEncodingVersion(@jakarta.annotation.Nullable String encodingVersion) { this.encodingVersion = encodingVersion; } - public V1alpha1ServerStorageVersion servedVersions(List servedVersions) { + public V1alpha1ServerStorageVersion servedVersions(@jakarta.annotation.Nullable List servedVersions) { this.servedVersions = servedVersions; return this; } @@ -155,17 +158,17 @@ public V1alpha1ServerStorageVersion addServedVersionsItem(String servedVersionsI return this; } - /** + /** * The API server can serve these versions. DecodableVersions must include all ServedVersions. * @return servedVersions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The API server can serve these versions. DecodableVersions must include all ServedVersions.") public List getServedVersions() { return servedVersions; } - public void setServedVersions(List servedVersions) { + public void setServedVersions(@jakarta.annotation.Nullable List servedVersions) { this.servedVersions = servedVersions; } @@ -230,12 +233,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1ServerStorageVersion - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1ServerStorageVersion + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1ServerStorageVersion.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -296,22 +299,22 @@ public V1alpha1ServerStorageVersion read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha1ServerStorageVersion given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1ServerStorageVersion - * @throws IOException if the JSON string is invalid with respect to V1alpha1ServerStorageVersion - */ + /** + * Create an instance of V1alpha1ServerStorageVersion given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ServerStorageVersion + * @throws IOException if the JSON string is invalid with respect to V1alpha1ServerStorageVersion + */ public static V1alpha1ServerStorageVersion fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1ServerStorageVersion.class); } - /** - * Convert an instance of V1alpha1ServerStorageVersion to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1ServerStorageVersion to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java index 5aeebbc3dc..83ee89fcce 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,127 +52,132 @@ * Storage version of a specific resource. */ @ApiModel(description = "Storage version of a specific resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1StorageVersion implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nonnull private Object spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nonnull private V1alpha1StorageVersionStatus status; public V1alpha1StorageVersion() { } - public V1alpha1StorageVersion apiVersion(String apiVersion) { + public V1alpha1StorageVersion apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1alpha1StorageVersion kind(String kind) { + public V1alpha1StorageVersion kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1alpha1StorageVersion metadata(V1ObjectMeta metadata) { + public V1alpha1StorageVersion metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1alpha1StorageVersion spec(Object spec) { + public V1alpha1StorageVersion spec(@jakarta.annotation.Nonnull Object spec) { this.spec = spec; return this; } - /** + /** * Spec is an empty spec. It is here to comply with Kubernetes API style. * @return spec - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Spec is an empty spec. It is here to comply with Kubernetes API style.") public Object getSpec() { return spec; } - public void setSpec(Object spec) { + public void setSpec(@jakarta.annotation.Nonnull Object spec) { this.spec = spec; } - public V1alpha1StorageVersion status(V1alpha1StorageVersionStatus status) { + public V1alpha1StorageVersion status(@jakarta.annotation.Nonnull V1alpha1StorageVersionStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1alpha1StorageVersionStatus getStatus() { return status; } - public void setStatus(V1alpha1StorageVersionStatus status) { + public void setStatus(@jakarta.annotation.Nonnull V1alpha1StorageVersionStatus status) { this.status = status; } @@ -243,12 +247,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("status"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1StorageVersion - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1StorageVersion + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1StorageVersion.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -314,22 +318,22 @@ public V1alpha1StorageVersion read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha1StorageVersion given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1StorageVersion - * @throws IOException if the JSON string is invalid with respect to V1alpha1StorageVersion - */ + /** + * Create an instance of V1alpha1StorageVersion given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1StorageVersion + * @throws IOException if the JSON string is invalid with respect to V1alpha1StorageVersion + */ public static V1alpha1StorageVersion fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1StorageVersion.class); } - /** - * Convert an instance of V1alpha1StorageVersion to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1StorageVersion to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java index bbcac1d61c..f9c06ee1a5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,151 +51,157 @@ * Describes the state of the storageVersion at a certain point. */ @ApiModel(description = "Describes the state of the storageVersion at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1StorageVersionCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + @jakarta.annotation.Nullable private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nonnull private String message; public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + @jakarta.annotation.Nullable private Long observedGeneration; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @jakarta.annotation.Nonnull private String reason; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nonnull private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull private String type; public V1alpha1StorageVersionCondition() { } - public V1alpha1StorageVersionCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { + public V1alpha1StorageVersionCondition lastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; } - /** + /** * Last time the condition transitioned from one status to another. * @return lastTransitionTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { + public void setLastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } - public V1alpha1StorageVersionCondition message(String message) { + public V1alpha1StorageVersionCondition message(@jakarta.annotation.Nonnull String message) { this.message = message; return this; } - /** + /** * A human readable message indicating details about the transition. * @return message - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "A human readable message indicating details about the transition.") public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public V1alpha1StorageVersionCondition observedGeneration(Long observedGeneration) { + public V1alpha1StorageVersionCondition observedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { this.observedGeneration = observedGeneration; return this; } - /** + /** * If set, this represents the .metadata.generation that the condition was set based upon. * @return observedGeneration - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "If set, this represents the .metadata.generation that the condition was set based upon.") public Long getObservedGeneration() { return observedGeneration; } - public void setObservedGeneration(Long observedGeneration) { + public void setObservedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { this.observedGeneration = observedGeneration; } - public V1alpha1StorageVersionCondition reason(String reason) { + public V1alpha1StorageVersionCondition reason(@jakarta.annotation.Nonnull String reason) { this.reason = reason; return this; } - /** + /** * The reason for the condition's last transition. * @return reason - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "The reason for the condition's last transition.") public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nonnull String reason) { this.reason = reason; } - public V1alpha1StorageVersionCondition status(String status) { + public V1alpha1StorageVersionCondition status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } - /** + /** * Status of the condition, one of True, False, Unknown. * @return status - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public V1alpha1StorageVersionCondition type(String type) { + public V1alpha1StorageVersionCondition type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } - /** + /** * Type of the condition. * @return type - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Type of the condition.") public String getType() { return type; } - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -271,12 +276,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1StorageVersionCondition - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1StorageVersionCondition + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1StorageVersionCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -342,22 +347,22 @@ public V1alpha1StorageVersionCondition read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha1StorageVersionCondition given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1StorageVersionCondition - * @throws IOException if the JSON string is invalid with respect to V1alpha1StorageVersionCondition - */ + /** + * Create an instance of V1alpha1StorageVersionCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1StorageVersionCondition + * @throws IOException if the JSON string is invalid with respect to V1alpha1StorageVersionCondition + */ public static V1alpha1StorageVersionCondition fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1StorageVersionCondition.class); } - /** - * Convert an instance of V1alpha1StorageVersionCondition to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1StorageVersionCondition to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java index 26a490a83c..96773daa96 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * A list of StorageVersions. */ @ApiModel(description = "A list of StorageVersions.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1StorageVersionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1alpha1StorageVersionList() { } - public V1alpha1StorageVersionList apiVersion(String apiVersion) { + public V1alpha1StorageVersionList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1alpha1StorageVersionList items(List items) { + public V1alpha1StorageVersionList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1alpha1StorageVersionList addItemsItem(V1alpha1StorageVersion itemsItem) return this; } - /** + /** * Items holds a list of StorageVersion * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items holds a list of StorageVersion") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1alpha1StorageVersionList kind(String kind) { + public V1alpha1StorageVersionList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1alpha1StorageVersionList metadata(V1ListMeta metadata) { + public V1alpha1StorageVersionList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1StorageVersionList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1StorageVersionList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1StorageVersionList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1alpha1StorageVersionList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha1StorageVersionList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1StorageVersionList - * @throws IOException if the JSON string is invalid with respect to V1alpha1StorageVersionList - */ + /** + * Create an instance of V1alpha1StorageVersionList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1StorageVersionList + * @throws IOException if the JSON string is invalid with respect to V1alpha1StorageVersionList + */ public static V1alpha1StorageVersionList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1StorageVersionList.class); } - /** - * Convert an instance of V1alpha1StorageVersionList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1StorageVersionList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigration.java index a37a68bf37..63356b0ed8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigration.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,127 +53,132 @@ * StorageVersionMigration represents a migration of stored data to the latest storage version. */ @ApiModel(description = "StorageVersionMigration represents a migration of stored data to the latest storage version.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1StorageVersionMigration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1alpha1StorageVersionMigrationSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable private V1alpha1StorageVersionMigrationStatus status; public V1alpha1StorageVersionMigration() { } - public V1alpha1StorageVersionMigration apiVersion(String apiVersion) { + public V1alpha1StorageVersionMigration apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1alpha1StorageVersionMigration kind(String kind) { + public V1alpha1StorageVersionMigration kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1alpha1StorageVersionMigration metadata(V1ObjectMeta metadata) { + public V1alpha1StorageVersionMigration metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1alpha1StorageVersionMigration spec(V1alpha1StorageVersionMigrationSpec spec) { + public V1alpha1StorageVersionMigration spec(@jakarta.annotation.Nullable V1alpha1StorageVersionMigrationSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1alpha1StorageVersionMigrationSpec getSpec() { return spec; } - public void setSpec(V1alpha1StorageVersionMigrationSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1alpha1StorageVersionMigrationSpec spec) { this.spec = spec; } - public V1alpha1StorageVersionMigration status(V1alpha1StorageVersionMigrationStatus status) { + public V1alpha1StorageVersionMigration status(@jakarta.annotation.Nullable V1alpha1StorageVersionMigrationStatus status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1alpha1StorageVersionMigrationStatus getStatus() { return status; } - public void setStatus(V1alpha1StorageVersionMigrationStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1alpha1StorageVersionMigrationStatus status) { this.status = status; } @@ -242,12 +246,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1StorageVersionMigration - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1StorageVersionMigration + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1StorageVersionMigration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -312,22 +316,22 @@ public V1alpha1StorageVersionMigration read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha1StorageVersionMigration given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1StorageVersionMigration - * @throws IOException if the JSON string is invalid with respect to V1alpha1StorageVersionMigration - */ + /** + * Create an instance of V1alpha1StorageVersionMigration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1StorageVersionMigration + * @throws IOException if the JSON string is invalid with respect to V1alpha1StorageVersionMigration + */ public static V1alpha1StorageVersionMigration fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1StorageVersionMigration.class); } - /** - * Convert an instance of V1alpha1StorageVersionMigration to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1StorageVersionMigration to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationList.java index ea84e61015..08c7c30b85 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * StorageVersionMigrationList is a collection of storage version migrations. */ @ApiModel(description = "StorageVersionMigrationList is a collection of storage version migrations.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1StorageVersionMigrationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1alpha1StorageVersionMigrationList() { } - public V1alpha1StorageVersionMigrationList apiVersion(String apiVersion) { + public V1alpha1StorageVersionMigrationList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1alpha1StorageVersionMigrationList items(List items) { + public V1alpha1StorageVersionMigrationList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1alpha1StorageVersionMigrationList addItemsItem(V1alpha1StorageVersionMi return this; } - /** + /** * Items is the list of StorageVersionMigration * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items is the list of StorageVersionMigration") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1alpha1StorageVersionMigrationList kind(String kind) { + public V1alpha1StorageVersionMigrationList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1alpha1StorageVersionMigrationList metadata(V1ListMeta metadata) { + public V1alpha1StorageVersionMigrationList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1StorageVersionMigrationList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1StorageVersionMigrationList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1StorageVersionMigrationList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1alpha1StorageVersionMigrationList read(JsonReader in) throws IOExceptio } } - /** - * Create an instance of V1alpha1StorageVersionMigrationList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1StorageVersionMigrationList - * @throws IOException if the JSON string is invalid with respect to V1alpha1StorageVersionMigrationList - */ + /** + * Create an instance of V1alpha1StorageVersionMigrationList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1StorageVersionMigrationList + * @throws IOException if the JSON string is invalid with respect to V1alpha1StorageVersionMigrationList + */ public static V1alpha1StorageVersionMigrationList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1StorageVersionMigrationList.class); } - /** - * Convert an instance of V1alpha1StorageVersionMigrationList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1StorageVersionMigrationList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpec.java index 392b61f2de..20137b1d44 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpec.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * Spec of the storage version migration. */ @ApiModel(description = "Spec of the storage version migration.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1StorageVersionMigrationSpec { public static final String SERIALIZED_NAME_CONTINUE_TOKEN = "continueToken"; @SerializedName(SERIALIZED_NAME_CONTINUE_TOKEN) + @jakarta.annotation.Nullable private String continueToken; public static final String SERIALIZED_NAME_RESOURCE = "resource"; @SerializedName(SERIALIZED_NAME_RESOURCE) + @jakarta.annotation.Nonnull private V1alpha1GroupVersionResource resource; public V1alpha1StorageVersionMigrationSpec() { } - public V1alpha1StorageVersionMigrationSpec continueToken(String continueToken) { + public V1alpha1StorageVersionMigrationSpec continueToken(@jakarta.annotation.Nullable String continueToken) { this.continueToken = continueToken; return this; } - /** + /** * The token used in the list options to get the next chunk of objects to migrate. When the .status.conditions indicates the migration is \"Running\", users can use this token to check the progress of the migration. * @return continueToken - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The token used in the list options to get the next chunk of objects to migrate. When the .status.conditions indicates the migration is \"Running\", users can use this token to check the progress of the migration.") public String getContinueToken() { return continueToken; } - public void setContinueToken(String continueToken) { + public void setContinueToken(@jakarta.annotation.Nullable String continueToken) { this.continueToken = continueToken; } - public V1alpha1StorageVersionMigrationSpec resource(V1alpha1GroupVersionResource resource) { + public V1alpha1StorageVersionMigrationSpec resource(@jakarta.annotation.Nonnull V1alpha1GroupVersionResource resource) { this.resource = resource; return this; } - /** + /** * Get resource * @return resource - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1alpha1GroupVersionResource getResource() { return resource; } - public void setResource(V1alpha1GroupVersionResource resource) { + public void setResource(@jakarta.annotation.Nonnull V1alpha1GroupVersionResource resource) { this.resource = resource; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("resource"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1StorageVersionMigrationSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1StorageVersionMigrationSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1StorageVersionMigrationSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -224,22 +225,22 @@ public V1alpha1StorageVersionMigrationSpec read(JsonReader in) throws IOExceptio } } - /** - * Create an instance of V1alpha1StorageVersionMigrationSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1StorageVersionMigrationSpec - * @throws IOException if the JSON string is invalid with respect to V1alpha1StorageVersionMigrationSpec - */ + /** + * Create an instance of V1alpha1StorageVersionMigrationSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1StorageVersionMigrationSpec + * @throws IOException if the JSON string is invalid with respect to V1alpha1StorageVersionMigrationSpec + */ public static V1alpha1StorageVersionMigrationSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1StorageVersionMigrationSpec.class); } - /** - * Convert an instance of V1alpha1StorageVersionMigrationSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1StorageVersionMigrationSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatus.java index c66b25ba64..28e03ba4f5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatus.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,20 +53,22 @@ * Status of the storage version migration. */ @ApiModel(description = "Status of the storage version migration.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1StorageVersionMigrationStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); public static final String SERIALIZED_NAME_RESOURCE_VERSION = "resourceVersion"; @SerializedName(SERIALIZED_NAME_RESOURCE_VERSION) + @jakarta.annotation.Nullable private String resourceVersion; public V1alpha1StorageVersionMigrationStatus() { } - public V1alpha1StorageVersionMigrationStatus conditions(List conditions) { + public V1alpha1StorageVersionMigrationStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } @@ -80,37 +81,37 @@ public V1alpha1StorageVersionMigrationStatus addConditionsItem(V1alpha1Migration return this; } - /** + /** * The latest available observations of the migration's current state. * @return conditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The latest available observations of the migration's current state.") public List getConditions() { return conditions; } - public void setConditions(List conditions) { + public void setConditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; } - public V1alpha1StorageVersionMigrationStatus resourceVersion(String resourceVersion) { + public V1alpha1StorageVersionMigrationStatus resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } - /** + /** * ResourceVersion to compare with the GC cache for performing the migration. This is the current resource version of given group, version and resource when kube-controller-manager first observes this StorageVersionMigration resource. * @return resourceVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ResourceVersion to compare with the GC cache for performing the migration. This is the current resource version of given group, version and resource when kube-controller-manager first observes this StorageVersionMigration resource.") public String getResourceVersion() { return resourceVersion; } - public void setResourceVersion(String resourceVersion) { + public void setResourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; } @@ -169,12 +170,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1StorageVersionMigrationStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1StorageVersionMigrationStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1StorageVersionMigrationStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -238,22 +239,22 @@ public V1alpha1StorageVersionMigrationStatus read(JsonReader in) throws IOExcept } } - /** - * Create an instance of V1alpha1StorageVersionMigrationStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1StorageVersionMigrationStatus - * @throws IOException if the JSON string is invalid with respect to V1alpha1StorageVersionMigrationStatus - */ + /** + * Create an instance of V1alpha1StorageVersionMigrationStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1StorageVersionMigrationStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha1StorageVersionMigrationStatus + */ public static V1alpha1StorageVersionMigrationStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1StorageVersionMigrationStatus.class); } - /** - * Convert an instance of V1alpha1StorageVersionMigrationStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1StorageVersionMigrationStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java index 8c6ebbdb6f..1d70eccd4c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,44 +54,47 @@ * API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend. */ @ApiModel(description = "API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1StorageVersionStatus { public static final String SERIALIZED_NAME_COMMON_ENCODING_VERSION = "commonEncodingVersion"; @SerializedName(SERIALIZED_NAME_COMMON_ENCODING_VERSION) + @jakarta.annotation.Nullable private String commonEncodingVersion; public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); public static final String SERIALIZED_NAME_STORAGE_VERSIONS = "storageVersions"; @SerializedName(SERIALIZED_NAME_STORAGE_VERSIONS) + @jakarta.annotation.Nullable private List storageVersions = new ArrayList<>(); public V1alpha1StorageVersionStatus() { } - public V1alpha1StorageVersionStatus commonEncodingVersion(String commonEncodingVersion) { + public V1alpha1StorageVersionStatus commonEncodingVersion(@jakarta.annotation.Nullable String commonEncodingVersion) { this.commonEncodingVersion = commonEncodingVersion; return this; } - /** + /** * If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality. * @return commonEncodingVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality.") public String getCommonEncodingVersion() { return commonEncodingVersion; } - public void setCommonEncodingVersion(String commonEncodingVersion) { + public void setCommonEncodingVersion(@jakarta.annotation.Nullable String commonEncodingVersion) { this.commonEncodingVersion = commonEncodingVersion; } - public V1alpha1StorageVersionStatus conditions(List conditions) { + public V1alpha1StorageVersionStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } @@ -105,22 +107,22 @@ public V1alpha1StorageVersionStatus addConditionsItem(V1alpha1StorageVersionCond return this; } - /** + /** * The latest available observations of the storageVersion's state. * @return conditions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The latest available observations of the storageVersion's state.") public List getConditions() { return conditions; } - public void setConditions(List conditions) { + public void setConditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; } - public V1alpha1StorageVersionStatus storageVersions(List storageVersions) { + public V1alpha1StorageVersionStatus storageVersions(@jakarta.annotation.Nullable List storageVersions) { this.storageVersions = storageVersions; return this; } @@ -133,17 +135,17 @@ public V1alpha1StorageVersionStatus addStorageVersionsItem(V1alpha1ServerStorage return this; } - /** + /** * The reported versions per API server instance. * @return storageVersions - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "The reported versions per API server instance.") public List getStorageVersions() { return storageVersions; } - public void setStorageVersions(List storageVersions) { + public void setStorageVersions(@jakarta.annotation.Nullable List storageVersions) { this.storageVersions = storageVersions; } @@ -205,12 +207,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1StorageVersionStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1StorageVersionStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1StorageVersionStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -288,22 +290,22 @@ public V1alpha1StorageVersionStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha1StorageVersionStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1StorageVersionStatus - * @throws IOException if the JSON string is invalid with respect to V1alpha1StorageVersionStatus - */ + /** + * Create an instance of V1alpha1StorageVersionStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1StorageVersionStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha1StorageVersionStatus + */ public static V1alpha1StorageVersionStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1StorageVersionStatus.class); } - /** - * Convert an instance of V1alpha1StorageVersionStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1StorageVersionStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java index edb02ea099..918c2b04e0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,55 +50,57 @@ * Variable is the definition of a variable that is used for composition. */ @ApiModel(description = "Variable is the definition of a variable that is used for composition.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1Variable { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) + @jakarta.annotation.Nonnull private String expression; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public V1alpha1Variable() { } - public V1alpha1Variable expression(String expression) { + public V1alpha1Variable expression(@jakarta.annotation.Nonnull String expression) { this.expression = expression; return this; } - /** + /** * Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. * @return expression - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.") public String getExpression() { return expression; } - public void setExpression(String expression) { + public void setExpression(@jakarta.annotation.Nonnull String expression) { this.expression = expression; } - public V1alpha1Variable name(String name) { + public V1alpha1Variable name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo` * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1Variable - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1Variable + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1Variable.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -225,22 +226,22 @@ public V1alpha1Variable read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha1Variable given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1Variable - * @throws IOException if the JSON string is invalid with respect to V1alpha1Variable - */ + /** + * Create an instance of V1alpha1Variable given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1Variable + * @throws IOException if the JSON string is invalid with respect to V1alpha1Variable + */ public static V1alpha1Variable fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1Variable.class); } - /** - * Convert an instance of V1alpha1Variable to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1Variable to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClass.java index c4eff43a1e..7140107231 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClass.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,112 +53,117 @@ * VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning. */ @ApiModel(description = "VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1VolumeAttributesClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_DRIVER_NAME = "driverName"; @SerializedName(SERIALIZED_NAME_DRIVER_NAME) + @jakarta.annotation.Nonnull private String driverName; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_PARAMETERS = "parameters"; @SerializedName(SERIALIZED_NAME_PARAMETERS) + @jakarta.annotation.Nullable private Map parameters = new HashMap<>(); public V1alpha1VolumeAttributesClass() { } - public V1alpha1VolumeAttributesClass apiVersion(String apiVersion) { + public V1alpha1VolumeAttributesClass apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1alpha1VolumeAttributesClass driverName(String driverName) { + public V1alpha1VolumeAttributesClass driverName(@jakarta.annotation.Nonnull String driverName) { this.driverName = driverName; return this; } - /** + /** * Name of the CSI driver This field is immutable. * @return driverName - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name of the CSI driver This field is immutable.") public String getDriverName() { return driverName; } - public void setDriverName(String driverName) { + public void setDriverName(@jakarta.annotation.Nonnull String driverName) { this.driverName = driverName; } - public V1alpha1VolumeAttributesClass kind(String kind) { + public V1alpha1VolumeAttributesClass kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1alpha1VolumeAttributesClass metadata(V1ObjectMeta metadata) { + public V1alpha1VolumeAttributesClass metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1alpha1VolumeAttributesClass parameters(Map parameters) { + public V1alpha1VolumeAttributesClass parameters(@jakarta.annotation.Nullable Map parameters) { this.parameters = parameters; return this; } @@ -172,17 +176,17 @@ public V1alpha1VolumeAttributesClass putParametersItem(String key, String parame return this; } - /** + /** * parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass. This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field. * @return parameters - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass. This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.") public Map getParameters() { return parameters; } - public void setParameters(Map parameters) { + public void setParameters(@jakarta.annotation.Nullable Map parameters) { this.parameters = parameters; } @@ -251,12 +255,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("driverName"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1VolumeAttributesClass - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1VolumeAttributesClass + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1VolumeAttributesClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -323,22 +327,22 @@ public V1alpha1VolumeAttributesClass read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha1VolumeAttributesClass given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1VolumeAttributesClass - * @throws IOException if the JSON string is invalid with respect to V1alpha1VolumeAttributesClass - */ + /** + * Create an instance of V1alpha1VolumeAttributesClass given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1VolumeAttributesClass + * @throws IOException if the JSON string is invalid with respect to V1alpha1VolumeAttributesClass + */ public static V1alpha1VolumeAttributesClass fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1VolumeAttributesClass.class); } - /** - * Convert an instance of V1alpha1VolumeAttributesClass to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1VolumeAttributesClass to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassList.java index ee2f8b0caa..70e8d48251 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * VolumeAttributesClassList is a collection of VolumeAttributesClass objects. */ @ApiModel(description = "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1VolumeAttributesClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1alpha1VolumeAttributesClassList() { } - public V1alpha1VolumeAttributesClassList apiVersion(String apiVersion) { + public V1alpha1VolumeAttributesClassList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1alpha1VolumeAttributesClassList items(List items) { + public V1alpha1VolumeAttributesClassList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1alpha1VolumeAttributesClassList addItemsItem(V1alpha1VolumeAttributesCl return this; } - /** + /** * items is the list of VolumeAttributesClass objects. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is the list of VolumeAttributesClass objects.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1alpha1VolumeAttributesClassList kind(String kind) { + public V1alpha1VolumeAttributesClassList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1alpha1VolumeAttributesClassList metadata(V1ListMeta metadata) { + public V1alpha1VolumeAttributesClassList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1VolumeAttributesClassList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1VolumeAttributesClassList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1VolumeAttributesClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1alpha1VolumeAttributesClassList read(JsonReader in) throws IOException } } - /** - * Create an instance of V1alpha1VolumeAttributesClassList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha1VolumeAttributesClassList - * @throws IOException if the JSON string is invalid with respect to V1alpha1VolumeAttributesClassList - */ + /** + * Create an instance of V1alpha1VolumeAttributesClassList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1VolumeAttributesClassList + * @throws IOException if the JSON string is invalid with respect to V1alpha1VolumeAttributesClassList + */ public static V1alpha1VolumeAttributesClassList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha1VolumeAttributesClassList.class); } - /** - * Convert an instance of V1alpha1VolumeAttributesClassList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha1VolumeAttributesClassList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidate.java index b63442934e..6ed3b29663 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidate.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,103 +52,107 @@ * LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates. */ @ApiModel(description = "LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha2LeaseCandidate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable private V1alpha2LeaseCandidateSpec spec; public V1alpha2LeaseCandidate() { } - public V1alpha2LeaseCandidate apiVersion(String apiVersion) { + public V1alpha2LeaseCandidate apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1alpha2LeaseCandidate kind(String kind) { + public V1alpha2LeaseCandidate kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1alpha2LeaseCandidate metadata(V1ObjectMeta metadata) { + public V1alpha2LeaseCandidate metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1alpha2LeaseCandidate spec(V1alpha2LeaseCandidateSpec spec) { + public V1alpha2LeaseCandidate spec(@jakarta.annotation.Nullable V1alpha2LeaseCandidateSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1alpha2LeaseCandidateSpec getSpec() { return spec; } - public void setSpec(V1alpha2LeaseCandidateSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1alpha2LeaseCandidateSpec spec) { this.spec = spec; } @@ -214,12 +217,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha2LeaseCandidate - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha2LeaseCandidate + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha2LeaseCandidate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -280,22 +283,22 @@ public V1alpha2LeaseCandidate read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha2LeaseCandidate given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha2LeaseCandidate - * @throws IOException if the JSON string is invalid with respect to V1alpha2LeaseCandidate - */ + /** + * Create an instance of V1alpha2LeaseCandidate given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2LeaseCandidate + * @throws IOException if the JSON string is invalid with respect to V1alpha2LeaseCandidate + */ public static V1alpha2LeaseCandidate fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha2LeaseCandidate.class); } - /** - * Convert an instance of V1alpha2LeaseCandidate to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha2LeaseCandidate to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateList.java index d5ba3023a1..80053e2101 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * LeaseCandidateList is a list of Lease objects. */ @ApiModel(description = "LeaseCandidateList is a list of Lease objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha2LeaseCandidateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1alpha2LeaseCandidateList() { } - public V1alpha2LeaseCandidateList apiVersion(String apiVersion) { + public V1alpha2LeaseCandidateList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1alpha2LeaseCandidateList items(List items) { + public V1alpha2LeaseCandidateList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1alpha2LeaseCandidateList addItemsItem(V1alpha2LeaseCandidate itemsItem) return this; } - /** + /** * items is a list of schema objects. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is a list of schema objects.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1alpha2LeaseCandidateList kind(String kind) { + public V1alpha2LeaseCandidateList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1alpha2LeaseCandidateList metadata(V1ListMeta metadata) { + public V1alpha2LeaseCandidateList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha2LeaseCandidateList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha2LeaseCandidateList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha2LeaseCandidateList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1alpha2LeaseCandidateList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha2LeaseCandidateList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha2LeaseCandidateList - * @throws IOException if the JSON string is invalid with respect to V1alpha2LeaseCandidateList - */ + /** + * Create an instance of V1alpha2LeaseCandidateList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2LeaseCandidateList + * @throws IOException if the JSON string is invalid with respect to V1alpha2LeaseCandidateList + */ public static V1alpha2LeaseCandidateList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha2LeaseCandidateList.class); } - /** - * Convert an instance of V1alpha2LeaseCandidateList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha2LeaseCandidateList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpec.java index 003538acc8..6a8f4c92c3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpec.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,151 +51,157 @@ * LeaseCandidateSpec is a specification of a Lease. */ @ApiModel(description = "LeaseCandidateSpec is a specification of a Lease.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha2LeaseCandidateSpec { public static final String SERIALIZED_NAME_BINARY_VERSION = "binaryVersion"; @SerializedName(SERIALIZED_NAME_BINARY_VERSION) + @jakarta.annotation.Nonnull private String binaryVersion; public static final String SERIALIZED_NAME_EMULATION_VERSION = "emulationVersion"; @SerializedName(SERIALIZED_NAME_EMULATION_VERSION) + @jakarta.annotation.Nullable private String emulationVersion; public static final String SERIALIZED_NAME_LEASE_NAME = "leaseName"; @SerializedName(SERIALIZED_NAME_LEASE_NAME) + @jakarta.annotation.Nonnull private String leaseName; public static final String SERIALIZED_NAME_PING_TIME = "pingTime"; @SerializedName(SERIALIZED_NAME_PING_TIME) + @jakarta.annotation.Nullable private OffsetDateTime pingTime; public static final String SERIALIZED_NAME_RENEW_TIME = "renewTime"; @SerializedName(SERIALIZED_NAME_RENEW_TIME) + @jakarta.annotation.Nullable private OffsetDateTime renewTime; public static final String SERIALIZED_NAME_STRATEGY = "strategy"; @SerializedName(SERIALIZED_NAME_STRATEGY) + @jakarta.annotation.Nonnull private String strategy; public V1alpha2LeaseCandidateSpec() { } - public V1alpha2LeaseCandidateSpec binaryVersion(String binaryVersion) { + public V1alpha2LeaseCandidateSpec binaryVersion(@jakarta.annotation.Nonnull String binaryVersion) { this.binaryVersion = binaryVersion; return this; } - /** + /** * BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required. * @return binaryVersion - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.") public String getBinaryVersion() { return binaryVersion; } - public void setBinaryVersion(String binaryVersion) { + public void setBinaryVersion(@jakarta.annotation.Nonnull String binaryVersion) { this.binaryVersion = binaryVersion; } - public V1alpha2LeaseCandidateSpec emulationVersion(String emulationVersion) { + public V1alpha2LeaseCandidateSpec emulationVersion(@jakarta.annotation.Nullable String emulationVersion) { this.emulationVersion = emulationVersion; return this; } - /** + /** * EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\" * @return emulationVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"") public String getEmulationVersion() { return emulationVersion; } - public void setEmulationVersion(String emulationVersion) { + public void setEmulationVersion(@jakarta.annotation.Nullable String emulationVersion) { this.emulationVersion = emulationVersion; } - public V1alpha2LeaseCandidateSpec leaseName(String leaseName) { + public V1alpha2LeaseCandidateSpec leaseName(@jakarta.annotation.Nonnull String leaseName) { this.leaseName = leaseName; return this; } - /** + /** * LeaseName is the name of the lease for which this candidate is contending. This field is immutable. * @return leaseName - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "LeaseName is the name of the lease for which this candidate is contending. This field is immutable.") public String getLeaseName() { return leaseName; } - public void setLeaseName(String leaseName) { + public void setLeaseName(@jakarta.annotation.Nonnull String leaseName) { this.leaseName = leaseName; } - public V1alpha2LeaseCandidateSpec pingTime(OffsetDateTime pingTime) { + public V1alpha2LeaseCandidateSpec pingTime(@jakarta.annotation.Nullable OffsetDateTime pingTime) { this.pingTime = pingTime; return this; } - /** + /** * PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime. * @return pingTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.") public OffsetDateTime getPingTime() { return pingTime; } - public void setPingTime(OffsetDateTime pingTime) { + public void setPingTime(@jakarta.annotation.Nullable OffsetDateTime pingTime) { this.pingTime = pingTime; } - public V1alpha2LeaseCandidateSpec renewTime(OffsetDateTime renewTime) { + public V1alpha2LeaseCandidateSpec renewTime(@jakarta.annotation.Nullable OffsetDateTime renewTime) { this.renewTime = renewTime; return this; } - /** + /** * RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates. * @return renewTime - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.") public OffsetDateTime getRenewTime() { return renewTime; } - public void setRenewTime(OffsetDateTime renewTime) { + public void setRenewTime(@jakarta.annotation.Nullable OffsetDateTime renewTime) { this.renewTime = renewTime; } - public V1alpha2LeaseCandidateSpec strategy(String strategy) { + public V1alpha2LeaseCandidateSpec strategy(@jakarta.annotation.Nonnull String strategy) { this.strategy = strategy; return this; } - /** - * Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled. + /** + * Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. * @return strategy - **/ + */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.") + @ApiModelProperty(required = true, value = "Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.") public String getStrategy() { return strategy; } - public void setStrategy(String strategy) { + public void setStrategy(@jakarta.annotation.Nonnull String strategy) { this.strategy = strategy; } @@ -270,12 +275,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("strategy"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha2LeaseCandidateSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha2LeaseCandidateSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha2LeaseCandidateSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -341,22 +346,22 @@ public V1alpha2LeaseCandidateSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha2LeaseCandidateSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha2LeaseCandidateSpec - * @throws IOException if the JSON string is invalid with respect to V1alpha2LeaseCandidateSpec - */ + /** + * Create an instance of V1alpha2LeaseCandidateSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2LeaseCandidateSpec + * @throws IOException if the JSON string is invalid with respect to V1alpha2LeaseCandidateSpec + */ public static V1alpha2LeaseCandidateSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha2LeaseCandidateSpec.class); } - /** - * Convert an instance of V1alpha2LeaseCandidateSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha2LeaseCandidateSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatus.java index 8ac50f9e67..0d6535eced 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatus.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,36 +54,42 @@ * AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. */ @ApiModel(description = "AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3AllocatedDeviceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) + @jakarta.annotation.Nullable private Object data; public static final String SERIALIZED_NAME_DEVICE = "device"; @SerializedName(SERIALIZED_NAME_DEVICE) + @jakarta.annotation.Nonnull private String device; public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) + @jakarta.annotation.Nonnull private String driver; public static final String SERIALIZED_NAME_NETWORK_DATA = "networkData"; @SerializedName(SERIALIZED_NAME_NETWORK_DATA) + @jakarta.annotation.Nullable private V1alpha3NetworkDeviceData networkData; public static final String SERIALIZED_NAME_POOL = "pool"; @SerializedName(SERIALIZED_NAME_POOL) + @jakarta.annotation.Nonnull private String pool; public V1alpha3AllocatedDeviceStatus() { } - public V1alpha3AllocatedDeviceStatus conditions(List conditions) { + public V1alpha3AllocatedDeviceStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } @@ -97,117 +102,117 @@ public V1alpha3AllocatedDeviceStatus addConditionsItem(V1Condition conditionsIte return this; } - /** - * Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True. + /** + * Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True. Must not contain more than 8 entries. * @return conditions - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True.") + @ApiModelProperty(value = "Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True. Must not contain more than 8 entries.") public List getConditions() { return conditions; } - public void setConditions(List conditions) { + public void setConditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; } - public V1alpha3AllocatedDeviceStatus data(Object data) { + public V1alpha3AllocatedDeviceStatus data(@jakarta.annotation.Nullable Object data) { this.data = data; return this; } - /** + /** * Data contains arbitrary driver-specific data. The length of the raw data must be smaller or equal to 10 Ki. * @return data - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Data contains arbitrary driver-specific data. The length of the raw data must be smaller or equal to 10 Ki.") public Object getData() { return data; } - public void setData(Object data) { + public void setData(@jakarta.annotation.Nullable Object data) { this.data = data; } - public V1alpha3AllocatedDeviceStatus device(String device) { + public V1alpha3AllocatedDeviceStatus device(@jakarta.annotation.Nonnull String device) { this.device = device; return this; } - /** + /** * Device references one device instance via its name in the driver's resource pool. It must be a DNS label. * @return device - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Device references one device instance via its name in the driver's resource pool. It must be a DNS label.") public String getDevice() { return device; } - public void setDevice(String device) { + public void setDevice(@jakarta.annotation.Nonnull String device) { this.device = device; } - public V1alpha3AllocatedDeviceStatus driver(String driver) { + public V1alpha3AllocatedDeviceStatus driver(@jakarta.annotation.Nonnull String driver) { this.driver = driver; return this; } - /** + /** * Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. * @return driver - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.") public String getDriver() { return driver; } - public void setDriver(String driver) { + public void setDriver(@jakarta.annotation.Nonnull String driver) { this.driver = driver; } - public V1alpha3AllocatedDeviceStatus networkData(V1alpha3NetworkDeviceData networkData) { + public V1alpha3AllocatedDeviceStatus networkData(@jakarta.annotation.Nullable V1alpha3NetworkDeviceData networkData) { this.networkData = networkData; return this; } - /** + /** * Get networkData * @return networkData - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1alpha3NetworkDeviceData getNetworkData() { return networkData; } - public void setNetworkData(V1alpha3NetworkDeviceData networkData) { + public void setNetworkData(@jakarta.annotation.Nullable V1alpha3NetworkDeviceData networkData) { this.networkData = networkData; } - public V1alpha3AllocatedDeviceStatus pool(String pool) { + public V1alpha3AllocatedDeviceStatus pool(@jakarta.annotation.Nonnull String pool) { this.pool = pool; return this; } - /** + /** * This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. * @return pool - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "This name together with the driver name and the device name field identify which device was allocated (`//`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.") public String getPool() { return pool; } - public void setPool(String pool) { + public void setPool(@jakarta.annotation.Nonnull String pool) { this.pool = pool; } @@ -281,12 +286,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("pool"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha3AllocatedDeviceStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3AllocatedDeviceStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3AllocatedDeviceStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -367,22 +372,22 @@ public V1alpha3AllocatedDeviceStatus read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha3AllocatedDeviceStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha3AllocatedDeviceStatus - * @throws IOException if the JSON string is invalid with respect to V1alpha3AllocatedDeviceStatus - */ + /** + * Create an instance of V1alpha3AllocatedDeviceStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3AllocatedDeviceStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha3AllocatedDeviceStatus + */ public static V1alpha3AllocatedDeviceStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha3AllocatedDeviceStatus.class); } - /** - * Convert an instance of V1alpha3AllocatedDeviceStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha3AllocatedDeviceStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResult.java index 48f57d4594..081f8eeef0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResult.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,55 +52,57 @@ * AllocationResult contains attributes of an allocated resource. */ @ApiModel(description = "AllocationResult contains attributes of an allocated resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3AllocationResult { public static final String SERIALIZED_NAME_DEVICES = "devices"; @SerializedName(SERIALIZED_NAME_DEVICES) + @jakarta.annotation.Nullable private V1alpha3DeviceAllocationResult devices; public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) + @jakarta.annotation.Nullable private V1NodeSelector nodeSelector; public V1alpha3AllocationResult() { } - public V1alpha3AllocationResult devices(V1alpha3DeviceAllocationResult devices) { + public V1alpha3AllocationResult devices(@jakarta.annotation.Nullable V1alpha3DeviceAllocationResult devices) { this.devices = devices; return this; } - /** + /** * Get devices * @return devices - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1alpha3DeviceAllocationResult getDevices() { return devices; } - public void setDevices(V1alpha3DeviceAllocationResult devices) { + public void setDevices(@jakarta.annotation.Nullable V1alpha3DeviceAllocationResult devices) { this.devices = devices; } - public V1alpha3AllocationResult nodeSelector(V1NodeSelector nodeSelector) { + public V1alpha3AllocationResult nodeSelector(@jakarta.annotation.Nullable V1NodeSelector nodeSelector) { this.nodeSelector = nodeSelector; return this; } - /** + /** * Get nodeSelector * @return nodeSelector - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1NodeSelector getNodeSelector() { return nodeSelector; } - public void setNodeSelector(V1NodeSelector nodeSelector) { + public void setNodeSelector(@jakarta.annotation.Nullable V1NodeSelector nodeSelector) { this.nodeSelector = nodeSelector; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha3AllocationResult - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3AllocationResult + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3AllocationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -220,22 +221,22 @@ public V1alpha3AllocationResult read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha3AllocationResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha3AllocationResult - * @throws IOException if the JSON string is invalid with respect to V1alpha3AllocationResult - */ + /** + * Create an instance of V1alpha3AllocationResult given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3AllocationResult + * @throws IOException if the JSON string is invalid with respect to V1alpha3AllocationResult + */ public static V1alpha3AllocationResult fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha3AllocationResult.class); } - /** - * Convert an instance of V1alpha3AllocationResult to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha3AllocationResult to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDevice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDevice.java index 6ab1e3c53e..9ca14cabf0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDevice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDevice.java @@ -19,12 +19,17 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.openapi.models.V1NodeSelector; import io.kubernetes.client.openapi.models.V1alpha3DeviceAttribute; +import io.kubernetes.client.openapi.models.V1alpha3DeviceCounterConsumption; +import io.kubernetes.client.openapi.models.V1alpha3DeviceTaint; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.google.gson.Gson; @@ -42,7 +47,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,20 +59,67 @@ * BasicDevice defines one device instance. */ @ApiModel(description = "BasicDevice defines one device instance.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3BasicDevice { + public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; + @SerializedName(SERIALIZED_NAME_ALL_NODES) + @jakarta.annotation.Nullable + private Boolean allNodes; + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + @jakarta.annotation.Nullable private Map attributes = new HashMap<>(); public static final String SERIALIZED_NAME_CAPACITY = "capacity"; @SerializedName(SERIALIZED_NAME_CAPACITY) + @jakarta.annotation.Nullable private Map capacity = new HashMap<>(); + public static final String SERIALIZED_NAME_CONSUMES_COUNTERS = "consumesCounters"; + @SerializedName(SERIALIZED_NAME_CONSUMES_COUNTERS) + @jakarta.annotation.Nullable + private List consumesCounters = new ArrayList<>(); + + public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; + @SerializedName(SERIALIZED_NAME_NODE_NAME) + @jakarta.annotation.Nullable + private String nodeName; + + public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; + @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) + @jakarta.annotation.Nullable + private V1NodeSelector nodeSelector; + + public static final String SERIALIZED_NAME_TAINTS = "taints"; + @SerializedName(SERIALIZED_NAME_TAINTS) + @jakarta.annotation.Nullable + private List taints = new ArrayList<>(); + public V1alpha3BasicDevice() { } - public V1alpha3BasicDevice attributes(Map attributes) { + public V1alpha3BasicDevice allNodes(@jakarta.annotation.Nullable Boolean allNodes) { + this.allNodes = allNodes; + return this; + } + + /** + * AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. + * @return allNodes + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.") + public Boolean getAllNodes() { + return allNodes; + } + + public void setAllNodes(@jakarta.annotation.Nullable Boolean allNodes) { + this.allNodes = allNodes; + } + + + public V1alpha3BasicDevice attributes(@jakarta.annotation.Nullable Map attributes) { this.attributes = attributes; return this; } @@ -81,22 +132,22 @@ public V1alpha3BasicDevice putAttributesItem(String key, V1alpha3DeviceAttribute return this; } - /** + /** * Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32. * @return attributes - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32.") public Map getAttributes() { return attributes; } - public void setAttributes(Map attributes) { + public void setAttributes(@jakarta.annotation.Nullable Map attributes) { this.attributes = attributes; } - public V1alpha3BasicDevice capacity(Map capacity) { + public V1alpha3BasicDevice capacity(@jakarta.annotation.Nullable Map capacity) { this.capacity = capacity; return this; } @@ -109,21 +160,117 @@ public V1alpha3BasicDevice putCapacityItem(String key, Quantity capacityItem) { return this; } - /** + /** * Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32. * @return capacity - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32.") public Map getCapacity() { return capacity; } - public void setCapacity(Map capacity) { + public void setCapacity(@jakarta.annotation.Nullable Map capacity) { this.capacity = capacity; } + public V1alpha3BasicDevice consumesCounters(@jakarta.annotation.Nullable List consumesCounters) { + this.consumesCounters = consumesCounters; + return this; + } + + public V1alpha3BasicDevice addConsumesCountersItem(V1alpha3DeviceCounterConsumption consumesCountersItem) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList<>(); + } + this.consumesCounters.add(consumesCountersItem); + return this; + } + + /** + * ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). + * @return consumesCounters + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).") + public List getConsumesCounters() { + return consumesCounters; + } + + public void setConsumesCounters(@jakarta.annotation.Nullable List consumesCounters) { + this.consumesCounters = consumesCounters; + } + + + public V1alpha3BasicDevice nodeName(@jakarta.annotation.Nullable String nodeName) { + this.nodeName = nodeName; + return this; + } + + /** + * NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. + * @return nodeName + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.") + public String getNodeName() { + return nodeName; + } + + public void setNodeName(@jakarta.annotation.Nullable String nodeName) { + this.nodeName = nodeName; + } + + + public V1alpha3BasicDevice nodeSelector(@jakarta.annotation.Nullable V1NodeSelector nodeSelector) { + this.nodeSelector = nodeSelector; + return this; + } + + /** + * Get nodeSelector + * @return nodeSelector + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1NodeSelector getNodeSelector() { + return nodeSelector; + } + + public void setNodeSelector(@jakarta.annotation.Nullable V1NodeSelector nodeSelector) { + this.nodeSelector = nodeSelector; + } + + + public V1alpha3BasicDevice taints(@jakarta.annotation.Nullable List taints) { + this.taints = taints; + return this; + } + + public V1alpha3BasicDevice addTaintsItem(V1alpha3DeviceTaint taintsItem) { + if (this.taints == null) { + this.taints = new ArrayList<>(); + } + this.taints.add(taintsItem); + return this; + } + + /** + * If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * @return taints + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + public List getTaints() { + return taints; + } + + public void setTaints(@jakarta.annotation.Nullable List taints) { + this.taints = taints; + } + + @Override public boolean equals(Object o) { @@ -134,21 +281,31 @@ public boolean equals(Object o) { return false; } V1alpha3BasicDevice v1alpha3BasicDevice = (V1alpha3BasicDevice) o; - return Objects.equals(this.attributes, v1alpha3BasicDevice.attributes) && - Objects.equals(this.capacity, v1alpha3BasicDevice.capacity); + return Objects.equals(this.allNodes, v1alpha3BasicDevice.allNodes) && + Objects.equals(this.attributes, v1alpha3BasicDevice.attributes) && + Objects.equals(this.capacity, v1alpha3BasicDevice.capacity) && + Objects.equals(this.consumesCounters, v1alpha3BasicDevice.consumesCounters) && + Objects.equals(this.nodeName, v1alpha3BasicDevice.nodeName) && + Objects.equals(this.nodeSelector, v1alpha3BasicDevice.nodeSelector) && + Objects.equals(this.taints, v1alpha3BasicDevice.taints); } @Override public int hashCode() { - return Objects.hash(attributes, capacity); + return Objects.hash(allNodes, attributes, capacity, consumesCounters, nodeName, nodeSelector, taints); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha3BasicDevice {\n"); + sb.append(" allNodes: ").append(toIndentedString(allNodes)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); + sb.append(" consumesCounters: ").append(toIndentedString(consumesCounters)).append("\n"); + sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); + sb.append(" nodeSelector: ").append(toIndentedString(nodeSelector)).append("\n"); + sb.append(" taints: ").append(toIndentedString(taints)).append("\n"); sb.append("}"); return sb.toString(); } @@ -171,19 +328,24 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); + openapiFields.add("allNodes"); openapiFields.add("attributes"); openapiFields.add("capacity"); + openapiFields.add("consumesCounters"); + openapiFields.add("nodeName"); + openapiFields.add("nodeSelector"); + openapiFields.add("taints"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha3BasicDevice - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3BasicDevice + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3BasicDevice.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -199,6 +361,41 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("consumesCounters") != null && !jsonObj.get("consumesCounters").isJsonNull()) { + JsonArray jsonArrayconsumesCounters = jsonObj.getAsJsonArray("consumesCounters"); + if (jsonArrayconsumesCounters != null) { + // ensure the json data is an array + if (!jsonObj.get("consumesCounters").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `consumesCounters` to be an array in the JSON string but got `%s`", jsonObj.get("consumesCounters").toString())); + } + + // validate the optional field `consumesCounters` (array) + for (int i = 0; i < jsonArrayconsumesCounters.size(); i++) { + V1alpha3DeviceCounterConsumption.validateJsonElement(jsonArrayconsumesCounters.get(i)); + }; + } + } + if ((jsonObj.get("nodeName") != null && !jsonObj.get("nodeName").isJsonNull()) && !jsonObj.get("nodeName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `nodeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeName").toString())); + } + // validate the optional field `nodeSelector` + if (jsonObj.get("nodeSelector") != null && !jsonObj.get("nodeSelector").isJsonNull()) { + V1NodeSelector.validateJsonElement(jsonObj.get("nodeSelector")); + } + if (jsonObj.get("taints") != null && !jsonObj.get("taints").isJsonNull()) { + JsonArray jsonArraytaints = jsonObj.getAsJsonArray("taints"); + if (jsonArraytaints != null) { + // ensure the json data is an array + if (!jsonObj.get("taints").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `taints` to be an array in the JSON string but got `%s`", jsonObj.get("taints").toString())); + } + + // validate the optional field `taints` (array) + for (int i = 0; i < jsonArraytaints.size(); i++) { + V1alpha3DeviceTaint.validateJsonElement(jsonArraytaints.get(i)); + }; + } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -230,22 +427,22 @@ public V1alpha3BasicDevice read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha3BasicDevice given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha3BasicDevice - * @throws IOException if the JSON string is invalid with respect to V1alpha3BasicDevice - */ + /** + * Create an instance of V1alpha3BasicDevice given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3BasicDevice + * @throws IOException if the JSON string is invalid with respect to V1alpha3BasicDevice + */ public static V1alpha3BasicDevice fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha3BasicDevice.class); } - /** - * Convert an instance of V1alpha3BasicDevice to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha3BasicDevice to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java index 6fee345e5e..b6ad292255 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,31 +50,32 @@ * CELDeviceSelector contains a CEL expression for selecting a device. */ @ApiModel(description = "CELDeviceSelector contains a CEL expression for selecting a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3CELDeviceSelector { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) + @jakarta.annotation.Nonnull private String expression; public V1alpha3CELDeviceSelector() { } - public V1alpha3CELDeviceSelector expression(String expression) { + public V1alpha3CELDeviceSelector expression(@jakarta.annotation.Nonnull String expression) { this.expression = expression; return this; } - /** + /** * Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. * @return expression - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.") public String getExpression() { return expression; } - public void setExpression(String expression) { + public void setExpression(@jakarta.annotation.Nonnull String expression) { this.expression = expression; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("expression"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha3CELDeviceSelector - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3CELDeviceSelector + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3CELDeviceSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -194,22 +194,22 @@ public V1alpha3CELDeviceSelector read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha3CELDeviceSelector given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha3CELDeviceSelector - * @throws IOException if the JSON string is invalid with respect to V1alpha3CELDeviceSelector - */ + /** + * Create an instance of V1alpha3CELDeviceSelector given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3CELDeviceSelector + * @throws IOException if the JSON string is invalid with respect to V1alpha3CELDeviceSelector + */ public static V1alpha3CELDeviceSelector fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha3CELDeviceSelector.class); } - /** - * Convert an instance of V1alpha3CELDeviceSelector to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha3CELDeviceSelector to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Counter.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Counter.java new file mode 100644 index 0000000000..cb33aac00a --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Counter.java @@ -0,0 +1,217 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * Counter describes a quantity associated with a device. + */ +@ApiModel(description = "Counter describes a quantity associated with a device.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1alpha3Counter { + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + @jakarta.annotation.Nonnull + private Quantity value; + + public V1alpha3Counter() { + } + + public V1alpha3Counter value(@jakarta.annotation.Nonnull Quantity value) { + this.value = value; + return this; + } + + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @return value + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + public Quantity getValue() { + return value; + } + + public void setValue(@jakarta.annotation.Nonnull Quantity value) { + this.value = value; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3Counter v1alpha3Counter = (V1alpha3Counter) o; + return Objects.equals(this.value, v1alpha3Counter.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3Counter {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("value"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("value"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3Counter + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3Counter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3Counter is not found in the empty JSON string", V1alpha3Counter.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3Counter.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3Counter` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha3Counter.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3Counter.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3Counter' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3Counter.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3Counter value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3Counter read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3Counter given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3Counter + * @throws IOException if the JSON string is invalid with respect to V1alpha3Counter + */ + public static V1alpha3Counter fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3Counter.class); + } + + /** + * Convert an instance of V1alpha3Counter to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSet.java new file mode 100644 index 0000000000..96e4d4a657 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSet.java @@ -0,0 +1,256 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1alpha3Counter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. + */ +@ApiModel(description = "CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1alpha3CounterSet { + public static final String SERIALIZED_NAME_COUNTERS = "counters"; + @SerializedName(SERIALIZED_NAME_COUNTERS) + @jakarta.annotation.Nonnull + private Map counters = new HashMap<>(); + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull + private String name; + + public V1alpha3CounterSet() { + } + + public V1alpha3CounterSet counters(@jakarta.annotation.Nonnull Map counters) { + this.counters = counters; + return this; + } + + public V1alpha3CounterSet putCountersItem(String key, V1alpha3Counter countersItem) { + if (this.counters == null) { + this.counters = new HashMap<>(); + } + this.counters.put(key, countersItem); + return this; + } + + /** + * Counters defines the counters that will be consumed by the device. The name of each counter must be unique in that set and must be a DNS label. To ensure this uniqueness, capacities defined by the vendor must be listed without the driver name as domain prefix in their name. All others must be listed with their domain prefix. The maximum number of counters is 32. + * @return counters + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Counters defines the counters that will be consumed by the device. The name of each counter must be unique in that set and must be a DNS label. To ensure this uniqueness, capacities defined by the vendor must be listed without the driver name as domain prefix in their name. All others must be listed with their domain prefix. The maximum number of counters is 32.") + public Map getCounters() { + return counters; + } + + public void setCounters(@jakarta.annotation.Nonnull Map counters) { + this.counters = counters; + } + + + public V1alpha3CounterSet name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * CounterSet is the name of the set from which the counters defined will be consumed. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "CounterSet is the name of the set from which the counters defined will be consumed.") + public String getName() { + return name; + } + + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3CounterSet v1alpha3CounterSet = (V1alpha3CounterSet) o; + return Objects.equals(this.counters, v1alpha3CounterSet.counters) && + Objects.equals(this.name, v1alpha3CounterSet.name); + } + + @Override + public int hashCode() { + return Objects.hash(counters, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3CounterSet {\n"); + sb.append(" counters: ").append(toIndentedString(counters)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("counters"); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("counters"); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3CounterSet + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3CounterSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3CounterSet is not found in the empty JSON string", V1alpha3CounterSet.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3CounterSet.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3CounterSet` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha3CounterSet.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3CounterSet.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3CounterSet' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3CounterSet.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3CounterSet value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3CounterSet read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3CounterSet given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3CounterSet + * @throws IOException if the JSON string is invalid with respect to V1alpha3CounterSet + */ + public static V1alpha3CounterSet fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3CounterSet.class); + } + + /** + * Convert an instance of V1alpha3CounterSet to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Device.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Device.java index 31f03ca4db..bd52e1d7cc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Device.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Device.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,55 +51,57 @@ * Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set. */ @ApiModel(description = "Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3Device { public static final String SERIALIZED_NAME_BASIC = "basic"; @SerializedName(SERIALIZED_NAME_BASIC) + @jakarta.annotation.Nullable private V1alpha3BasicDevice basic; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public V1alpha3Device() { } - public V1alpha3Device basic(V1alpha3BasicDevice basic) { + public V1alpha3Device basic(@jakarta.annotation.Nullable V1alpha3BasicDevice basic) { this.basic = basic; return this; } - /** + /** * Get basic * @return basic - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1alpha3BasicDevice getBasic() { return basic; } - public void setBasic(V1alpha3BasicDevice basic) { + public void setBasic(@jakarta.annotation.Nullable V1alpha3BasicDevice basic) { this.basic = basic; } - public V1alpha3Device name(String name) { + public V1alpha3Device name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -160,12 +161,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha3Device - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3Device + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3Device.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -226,22 +227,22 @@ public V1alpha3Device read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha3Device given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha3Device - * @throws IOException if the JSON string is invalid with respect to V1alpha3Device - */ + /** + * Create an instance of V1alpha3Device given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3Device + * @throws IOException if the JSON string is invalid with respect to V1alpha3Device + */ public static V1alpha3Device fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha3Device.class); } - /** - * Convert an instance of V1alpha3Device to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha3Device to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfiguration.java index dd47f3b17c..b66eeaf694 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfiguration.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,44 +53,47 @@ * DeviceAllocationConfiguration gets embedded in an AllocationResult. */ @ApiModel(description = "DeviceAllocationConfiguration gets embedded in an AllocationResult.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3DeviceAllocationConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) + @jakarta.annotation.Nullable private V1alpha3OpaqueDeviceConfiguration opaque; public static final String SERIALIZED_NAME_REQUESTS = "requests"; @SerializedName(SERIALIZED_NAME_REQUESTS) + @jakarta.annotation.Nullable private List requests = new ArrayList<>(); public static final String SERIALIZED_NAME_SOURCE = "source"; @SerializedName(SERIALIZED_NAME_SOURCE) + @jakarta.annotation.Nonnull private String source; public V1alpha3DeviceAllocationConfiguration() { } - public V1alpha3DeviceAllocationConfiguration opaque(V1alpha3OpaqueDeviceConfiguration opaque) { + public V1alpha3DeviceAllocationConfiguration opaque(@jakarta.annotation.Nullable V1alpha3OpaqueDeviceConfiguration opaque) { this.opaque = opaque; return this; } - /** + /** * Get opaque * @return opaque - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1alpha3OpaqueDeviceConfiguration getOpaque() { return opaque; } - public void setOpaque(V1alpha3OpaqueDeviceConfiguration opaque) { + public void setOpaque(@jakarta.annotation.Nullable V1alpha3OpaqueDeviceConfiguration opaque) { this.opaque = opaque; } - public V1alpha3DeviceAllocationConfiguration requests(List requests) { + public V1alpha3DeviceAllocationConfiguration requests(@jakarta.annotation.Nullable List requests) { this.requests = requests; return this; } @@ -104,37 +106,37 @@ public V1alpha3DeviceAllocationConfiguration addRequestsItem(String requestsItem return this; } - /** - * Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. + /** + * Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. * @return requests - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.") + @ApiModelProperty(value = "Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the configuration applies to all subrequests.") public List getRequests() { return requests; } - public void setRequests(List requests) { + public void setRequests(@jakarta.annotation.Nullable List requests) { this.requests = requests; } - public V1alpha3DeviceAllocationConfiguration source(String source) { + public V1alpha3DeviceAllocationConfiguration source(@jakarta.annotation.Nonnull String source) { this.source = source; return this; } - /** + /** * Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim. * @return source - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.") public String getSource() { return source; } - public void setSource(String source) { + public void setSource(@jakarta.annotation.Nonnull String source) { this.source = source; } @@ -197,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("source"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceAllocationConfiguration - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceAllocationConfiguration + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3DeviceAllocationConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -267,22 +269,22 @@ public V1alpha3DeviceAllocationConfiguration read(JsonReader in) throws IOExcept } } - /** - * Create an instance of V1alpha3DeviceAllocationConfiguration given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha3DeviceAllocationConfiguration - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceAllocationConfiguration - */ + /** + * Create an instance of V1alpha3DeviceAllocationConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3DeviceAllocationConfiguration + * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceAllocationConfiguration + */ public static V1alpha3DeviceAllocationConfiguration fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha3DeviceAllocationConfiguration.class); } - /** - * Convert an instance of V1alpha3DeviceAllocationConfiguration to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha3DeviceAllocationConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResult.java index 50f0235683..a2ce3a1de2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResult.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,20 +54,22 @@ * DeviceAllocationResult is the result of allocating devices. */ @ApiModel(description = "DeviceAllocationResult is the result of allocating devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3DeviceAllocationResult { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) + @jakarta.annotation.Nullable private List config = new ArrayList<>(); public static final String SERIALIZED_NAME_RESULTS = "results"; @SerializedName(SERIALIZED_NAME_RESULTS) + @jakarta.annotation.Nullable private List results = new ArrayList<>(); public V1alpha3DeviceAllocationResult() { } - public V1alpha3DeviceAllocationResult config(List config) { + public V1alpha3DeviceAllocationResult config(@jakarta.annotation.Nullable List config) { this.config = config; return this; } @@ -81,22 +82,22 @@ public V1alpha3DeviceAllocationResult addConfigItem(V1alpha3DeviceAllocationConf return this; } - /** + /** * This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag. This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters. * @return config - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag. This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.") public List getConfig() { return config; } - public void setConfig(List config) { + public void setConfig(@jakarta.annotation.Nullable List config) { this.config = config; } - public V1alpha3DeviceAllocationResult results(List results) { + public V1alpha3DeviceAllocationResult results(@jakarta.annotation.Nullable List results) { this.results = results; return this; } @@ -109,17 +110,17 @@ public V1alpha3DeviceAllocationResult addResultsItem(V1alpha3DeviceRequestAlloca return this; } - /** + /** * Results lists all allocated devices. * @return results - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Results lists all allocated devices.") public List getResults() { return results; } - public void setResults(List results) { + public void setResults(@jakarta.annotation.Nullable List results) { this.results = results; } @@ -178,12 +179,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceAllocationResult - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceAllocationResult + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3DeviceAllocationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -258,22 +259,22 @@ public V1alpha3DeviceAllocationResult read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha3DeviceAllocationResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha3DeviceAllocationResult - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceAllocationResult - */ + /** + * Create an instance of V1alpha3DeviceAllocationResult given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3DeviceAllocationResult + * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceAllocationResult + */ public static V1alpha3DeviceAllocationResult fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha3DeviceAllocationResult.class); } - /** - * Convert an instance of V1alpha3DeviceAllocationResult to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha3DeviceAllocationResult to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttribute.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttribute.java index 79166fe44d..6b8a377204 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttribute.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttribute.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,103 +50,107 @@ * DeviceAttribute must have exactly one field set. */ @ApiModel(description = "DeviceAttribute must have exactly one field set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3DeviceAttribute { public static final String SERIALIZED_NAME_BOOL = "bool"; @SerializedName(SERIALIZED_NAME_BOOL) + @jakarta.annotation.Nullable private Boolean bool; public static final String SERIALIZED_NAME_INT = "int"; @SerializedName(SERIALIZED_NAME_INT) + @jakarta.annotation.Nullable private Long _int; public static final String SERIALIZED_NAME_STRING = "string"; @SerializedName(SERIALIZED_NAME_STRING) + @jakarta.annotation.Nullable private String string; public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) + @jakarta.annotation.Nullable private String version; public V1alpha3DeviceAttribute() { } - public V1alpha3DeviceAttribute bool(Boolean bool) { + public V1alpha3DeviceAttribute bool(@jakarta.annotation.Nullable Boolean bool) { this.bool = bool; return this; } - /** + /** * BoolValue is a true/false value. * @return bool - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "BoolValue is a true/false value.") public Boolean getBool() { return bool; } - public void setBool(Boolean bool) { + public void setBool(@jakarta.annotation.Nullable Boolean bool) { this.bool = bool; } - public V1alpha3DeviceAttribute _int(Long _int) { + public V1alpha3DeviceAttribute _int(@jakarta.annotation.Nullable Long _int) { this._int = _int; return this; } - /** + /** * IntValue is a number. * @return _int - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "IntValue is a number.") public Long getInt() { return _int; } - public void setInt(Long _int) { + public void setInt(@jakarta.annotation.Nullable Long _int) { this._int = _int; } - public V1alpha3DeviceAttribute string(String string) { + public V1alpha3DeviceAttribute string(@jakarta.annotation.Nullable String string) { this.string = string; return this; } - /** + /** * StringValue is a string. Must not be longer than 64 characters. * @return string - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "StringValue is a string. Must not be longer than 64 characters.") public String getString() { return string; } - public void setString(String string) { + public void setString(@jakarta.annotation.Nullable String string) { this.string = string; } - public V1alpha3DeviceAttribute version(String version) { + public V1alpha3DeviceAttribute version(@jakarta.annotation.Nullable String version) { this.version = version; return this; } - /** + /** * VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters. * @return version - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.") public String getVersion() { return version; } - public void setVersion(String version) { + public void setVersion(@jakarta.annotation.Nullable String version) { this.version = version; } @@ -212,12 +215,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceAttribute - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceAttribute + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3DeviceAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -270,22 +273,22 @@ public V1alpha3DeviceAttribute read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha3DeviceAttribute given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha3DeviceAttribute - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceAttribute - */ + /** + * Create an instance of V1alpha3DeviceAttribute given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3DeviceAttribute + * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceAttribute + */ public static V1alpha3DeviceAttribute fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha3DeviceAttribute.class); } - /** - * Convert an instance of V1alpha3DeviceAttribute to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha3DeviceAttribute to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaim.java index c733ddafe2..6b6625eccc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaim.java @@ -43,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -56,24 +55,27 @@ * DeviceClaim defines how to request devices with a ResourceClaim. */ @ApiModel(description = "DeviceClaim defines how to request devices with a ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3DeviceClaim { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) + @jakarta.annotation.Nullable private List config = new ArrayList<>(); public static final String SERIALIZED_NAME_CONSTRAINTS = "constraints"; @SerializedName(SERIALIZED_NAME_CONSTRAINTS) + @jakarta.annotation.Nullable private List constraints = new ArrayList<>(); public static final String SERIALIZED_NAME_REQUESTS = "requests"; @SerializedName(SERIALIZED_NAME_REQUESTS) + @jakarta.annotation.Nullable private List requests = new ArrayList<>(); public V1alpha3DeviceClaim() { } - public V1alpha3DeviceClaim config(List config) { + public V1alpha3DeviceClaim config(@jakarta.annotation.Nullable List config) { this.config = config; return this; } @@ -86,22 +88,22 @@ public V1alpha3DeviceClaim addConfigItem(V1alpha3DeviceClaimConfiguration config return this; } - /** + /** * This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim. * @return config - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.") public List getConfig() { return config; } - public void setConfig(List config) { + public void setConfig(@jakarta.annotation.Nullable List config) { this.config = config; } - public V1alpha3DeviceClaim constraints(List constraints) { + public V1alpha3DeviceClaim constraints(@jakarta.annotation.Nullable List constraints) { this.constraints = constraints; return this; } @@ -114,22 +116,22 @@ public V1alpha3DeviceClaim addConstraintsItem(V1alpha3DeviceConstraint constrain return this; } - /** + /** * These constraints must be satisfied by the set of devices that get allocated for the claim. * @return constraints - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "These constraints must be satisfied by the set of devices that get allocated for the claim.") public List getConstraints() { return constraints; } - public void setConstraints(List constraints) { + public void setConstraints(@jakarta.annotation.Nullable List constraints) { this.constraints = constraints; } - public V1alpha3DeviceClaim requests(List requests) { + public V1alpha3DeviceClaim requests(@jakarta.annotation.Nullable List requests) { this.requests = requests; return this; } @@ -142,17 +144,17 @@ public V1alpha3DeviceClaim addRequestsItem(V1alpha3DeviceRequest requestsItem) { return this; } - /** + /** * Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated. * @return requests - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.") public List getRequests() { return requests; } - public void setRequests(List requests) { + public void setRequests(@jakarta.annotation.Nullable List requests) { this.requests = requests; } @@ -214,12 +216,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceClaim - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceClaim + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3DeviceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -308,22 +310,22 @@ public V1alpha3DeviceClaim read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha3DeviceClaim given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha3DeviceClaim - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceClaim - */ + /** + * Create an instance of V1alpha3DeviceClaim given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3DeviceClaim + * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceClaim + */ public static V1alpha3DeviceClaim fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha3DeviceClaim.class); } - /** - * Convert an instance of V1alpha3DeviceClaim to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha3DeviceClaim to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfiguration.java index 67c08ca890..fe43145aef 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfiguration.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,40 +53,42 @@ * DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. */ @ApiModel(description = "DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3DeviceClaimConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) + @jakarta.annotation.Nullable private V1alpha3OpaqueDeviceConfiguration opaque; public static final String SERIALIZED_NAME_REQUESTS = "requests"; @SerializedName(SERIALIZED_NAME_REQUESTS) + @jakarta.annotation.Nullable private List requests = new ArrayList<>(); public V1alpha3DeviceClaimConfiguration() { } - public V1alpha3DeviceClaimConfiguration opaque(V1alpha3OpaqueDeviceConfiguration opaque) { + public V1alpha3DeviceClaimConfiguration opaque(@jakarta.annotation.Nullable V1alpha3OpaqueDeviceConfiguration opaque) { this.opaque = opaque; return this; } - /** + /** * Get opaque * @return opaque - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1alpha3OpaqueDeviceConfiguration getOpaque() { return opaque; } - public void setOpaque(V1alpha3OpaqueDeviceConfiguration opaque) { + public void setOpaque(@jakarta.annotation.Nullable V1alpha3OpaqueDeviceConfiguration opaque) { this.opaque = opaque; } - public V1alpha3DeviceClaimConfiguration requests(List requests) { + public V1alpha3DeviceClaimConfiguration requests(@jakarta.annotation.Nullable List requests) { this.requests = requests; return this; } @@ -100,17 +101,17 @@ public V1alpha3DeviceClaimConfiguration addRequestsItem(String requestsItem) { return this; } - /** - * Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. + /** + * Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. * @return requests - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.") + @ApiModelProperty(value = "Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the configuration applies to all subrequests.") public List getRequests() { return requests; } - public void setRequests(List requests) { + public void setRequests(@jakarta.annotation.Nullable List requests) { this.requests = requests; } @@ -169,12 +170,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceClaimConfiguration - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceClaimConfiguration + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3DeviceClaimConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -229,22 +230,22 @@ public V1alpha3DeviceClaimConfiguration read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha3DeviceClaimConfiguration given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha3DeviceClaimConfiguration - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceClaimConfiguration - */ + /** + * Create an instance of V1alpha3DeviceClaimConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3DeviceClaimConfiguration + * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceClaimConfiguration + */ public static V1alpha3DeviceClaimConfiguration fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha3DeviceClaimConfiguration.class); } - /** - * Convert an instance of V1alpha3DeviceClaimConfiguration to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha3DeviceClaimConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClass.java index 419a44c3ce..1931f723dc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClass.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,103 +52,107 @@ * DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3DeviceClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nonnull private V1alpha3DeviceClassSpec spec; public V1alpha3DeviceClass() { } - public V1alpha3DeviceClass apiVersion(String apiVersion) { + public V1alpha3DeviceClass apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1alpha3DeviceClass kind(String kind) { + public V1alpha3DeviceClass kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1alpha3DeviceClass metadata(V1ObjectMeta metadata) { + public V1alpha3DeviceClass metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; } - public V1alpha3DeviceClass spec(V1alpha3DeviceClassSpec spec) { + public V1alpha3DeviceClass spec(@jakarta.annotation.Nonnull V1alpha3DeviceClassSpec spec) { this.spec = spec; return this; } - /** + /** * Get spec * @return spec - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") public V1alpha3DeviceClassSpec getSpec() { return spec; } - public void setSpec(V1alpha3DeviceClassSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1alpha3DeviceClassSpec spec) { this.spec = spec; } @@ -215,12 +218,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("spec"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceClass - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceClass + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3DeviceClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -286,22 +289,22 @@ public V1alpha3DeviceClass read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha3DeviceClass given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha3DeviceClass - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceClass - */ + /** + * Create an instance of V1alpha3DeviceClass given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3DeviceClass + * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceClass + */ public static V1alpha3DeviceClass fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha3DeviceClass.class); } - /** - * Convert an instance of V1alpha3DeviceClass to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha3DeviceClass to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfiguration.java index eed1b69656..2042f11c49 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfiguration.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,31 +51,32 @@ * DeviceClassConfiguration is used in DeviceClass. */ @ApiModel(description = "DeviceClassConfiguration is used in DeviceClass.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3DeviceClassConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) + @jakarta.annotation.Nullable private V1alpha3OpaqueDeviceConfiguration opaque; public V1alpha3DeviceClassConfiguration() { } - public V1alpha3DeviceClassConfiguration opaque(V1alpha3OpaqueDeviceConfiguration opaque) { + public V1alpha3DeviceClassConfiguration opaque(@jakarta.annotation.Nullable V1alpha3OpaqueDeviceConfiguration opaque) { this.opaque = opaque; return this; } - /** + /** * Get opaque * @return opaque - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1alpha3OpaqueDeviceConfiguration getOpaque() { return opaque; } - public void setOpaque(V1alpha3OpaqueDeviceConfiguration opaque) { + public void setOpaque(@jakarta.annotation.Nullable V1alpha3OpaqueDeviceConfiguration opaque) { this.opaque = opaque; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceClassConfiguration - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceClassConfiguration + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3DeviceClassConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -188,22 +188,22 @@ public V1alpha3DeviceClassConfiguration read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha3DeviceClassConfiguration given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha3DeviceClassConfiguration - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceClassConfiguration - */ + /** + * Create an instance of V1alpha3DeviceClassConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3DeviceClassConfiguration + * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceClassConfiguration + */ public static V1alpha3DeviceClassConfiguration fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha3DeviceClassConfiguration.class); } - /** - * Convert an instance of V1alpha3DeviceClassConfiguration to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha3DeviceClassConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassList.java index d87f37c7ca..b824cd9f5b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassList.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,48 +54,52 @@ * DeviceClassList is a collection of classes. */ @ApiModel(description = "DeviceClassList is a collection of classes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3DeviceClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable private String kind; public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable private V1ListMeta metadata; public V1alpha3DeviceClassList() { } - public V1alpha3DeviceClassList apiVersion(String apiVersion) { + public V1alpha3DeviceClassList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } - /** + /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @return apiVersion - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") public String getApiVersion() { return apiVersion; } - public void setApiVersion(String apiVersion) { + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; } - public V1alpha3DeviceClassList items(List items) { + public V1alpha3DeviceClassList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } @@ -109,57 +112,57 @@ public V1alpha3DeviceClassList addItemsItem(V1alpha3DeviceClass itemsItem) { return this; } - /** + /** * Items is the list of resource classes. * @return items - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items is the list of resource classes.") public List getItems() { return items; } - public void setItems(List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1alpha3DeviceClassList kind(String kind) { + public V1alpha3DeviceClassList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } - /** + /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nullable String kind) { this.kind = kind; } - public V1alpha3DeviceClassList metadata(V1ListMeta metadata) { + public V1alpha3DeviceClassList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } - public void setMetadata(V1ListMeta metadata) { + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; } @@ -225,12 +228,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("items"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceClassList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceClassList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3DeviceClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -304,22 +307,22 @@ public V1alpha3DeviceClassList read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha3DeviceClassList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha3DeviceClassList - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceClassList - */ + /** + * Create an instance of V1alpha3DeviceClassList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3DeviceClassList + * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceClassList + */ public static V1alpha3DeviceClassList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha3DeviceClassList.class); } - /** - * Convert an instance of V1alpha3DeviceClassList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha3DeviceClassList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpec.java index f3597d4bd4..5efbf561a2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpec.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,20 +54,22 @@ * DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. */ @ApiModel(description = "DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3DeviceClassSpec { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) + @jakarta.annotation.Nullable private List config = new ArrayList<>(); public static final String SERIALIZED_NAME_SELECTORS = "selectors"; @SerializedName(SERIALIZED_NAME_SELECTORS) + @jakarta.annotation.Nullable private List selectors = new ArrayList<>(); public V1alpha3DeviceClassSpec() { } - public V1alpha3DeviceClassSpec config(List config) { + public V1alpha3DeviceClassSpec config(@jakarta.annotation.Nullable List config) { this.config = config; return this; } @@ -81,22 +82,22 @@ public V1alpha3DeviceClassSpec addConfigItem(V1alpha3DeviceClassConfiguration co return this; } - /** + /** * Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered while allocating the claim. * @return config - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered while allocating the claim.") public List getConfig() { return config; } - public void setConfig(List config) { + public void setConfig(@jakarta.annotation.Nullable List config) { this.config = config; } - public V1alpha3DeviceClassSpec selectors(List selectors) { + public V1alpha3DeviceClassSpec selectors(@jakarta.annotation.Nullable List selectors) { this.selectors = selectors; return this; } @@ -109,17 +110,17 @@ public V1alpha3DeviceClassSpec addSelectorsItem(V1alpha3DeviceSelector selectors return this; } - /** + /** * Each selector must be satisfied by a device which is claimed via this class. * @return selectors - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Each selector must be satisfied by a device which is claimed via this class.") public List getSelectors() { return selectors; } - public void setSelectors(List selectors) { + public void setSelectors(@jakarta.annotation.Nullable List selectors) { this.selectors = selectors; } @@ -178,12 +179,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceClassSpec - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceClassSpec + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3DeviceClassSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -258,22 +259,22 @@ public V1alpha3DeviceClassSpec read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha3DeviceClassSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha3DeviceClassSpec - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceClassSpec - */ + /** + * Create an instance of V1alpha3DeviceClassSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3DeviceClassSpec + * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceClassSpec + */ public static V1alpha3DeviceClassSpec fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha3DeviceClassSpec.class); } - /** - * Convert an instance of V1alpha3DeviceClassSpec to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha3DeviceClassSpec to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraint.java index 99c244e1cd..03627701d6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraint.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,40 +52,42 @@ * DeviceConstraint must have exactly one field set besides Requests. */ @ApiModel(description = "DeviceConstraint must have exactly one field set besides Requests.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3DeviceConstraint { public static final String SERIALIZED_NAME_MATCH_ATTRIBUTE = "matchAttribute"; @SerializedName(SERIALIZED_NAME_MATCH_ATTRIBUTE) + @jakarta.annotation.Nullable private String matchAttribute; public static final String SERIALIZED_NAME_REQUESTS = "requests"; @SerializedName(SERIALIZED_NAME_REQUESTS) + @jakarta.annotation.Nullable private List requests = new ArrayList<>(); public V1alpha3DeviceConstraint() { } - public V1alpha3DeviceConstraint matchAttribute(String matchAttribute) { + public V1alpha3DeviceConstraint matchAttribute(@jakarta.annotation.Nullable String matchAttribute) { this.matchAttribute = matchAttribute; return this; } - /** + /** * MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier. * @return matchAttribute - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier.") public String getMatchAttribute() { return matchAttribute; } - public void setMatchAttribute(String matchAttribute) { + public void setMatchAttribute(@jakarta.annotation.Nullable String matchAttribute) { this.matchAttribute = matchAttribute; } - public V1alpha3DeviceConstraint requests(List requests) { + public V1alpha3DeviceConstraint requests(@jakarta.annotation.Nullable List requests) { this.requests = requests; return this; } @@ -99,17 +100,17 @@ public V1alpha3DeviceConstraint addRequestsItem(String requestsItem) { return this; } - /** - * Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. + /** + * Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests. * @return requests - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim.") + @ApiModelProperty(value = "Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the constraint applies to all subrequests.") public List getRequests() { return requests; } - public void setRequests(List requests) { + public void setRequests(@jakarta.annotation.Nullable List requests) { this.requests = requests; } @@ -168,12 +169,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceConstraint - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceConstraint + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3DeviceConstraint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -227,22 +228,22 @@ public V1alpha3DeviceConstraint read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha3DeviceConstraint given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha3DeviceConstraint - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceConstraint - */ + /** + * Create an instance of V1alpha3DeviceConstraint given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3DeviceConstraint + * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceConstraint + */ public static V1alpha3DeviceConstraint fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha3DeviceConstraint.class); } - /** - * Convert an instance of V1alpha3DeviceConstraint to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha3DeviceConstraint to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumption.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumption.java new file mode 100644 index 0000000000..e6d3ffeb87 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumption.java @@ -0,0 +1,256 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1alpha3Counter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. + */ +@ApiModel(description = "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1alpha3DeviceCounterConsumption { + public static final String SERIALIZED_NAME_COUNTER_SET = "counterSet"; + @SerializedName(SERIALIZED_NAME_COUNTER_SET) + @jakarta.annotation.Nonnull + private String counterSet; + + public static final String SERIALIZED_NAME_COUNTERS = "counters"; + @SerializedName(SERIALIZED_NAME_COUNTERS) + @jakarta.annotation.Nonnull + private Map counters = new HashMap<>(); + + public V1alpha3DeviceCounterConsumption() { + } + + public V1alpha3DeviceCounterConsumption counterSet(@jakarta.annotation.Nonnull String counterSet) { + this.counterSet = counterSet; + return this; + } + + /** + * CounterSet defines the set from which the counters defined will be consumed. + * @return counterSet + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "CounterSet defines the set from which the counters defined will be consumed.") + public String getCounterSet() { + return counterSet; + } + + public void setCounterSet(@jakarta.annotation.Nonnull String counterSet) { + this.counterSet = counterSet; + } + + + public V1alpha3DeviceCounterConsumption counters(@jakarta.annotation.Nonnull Map counters) { + this.counters = counters; + return this; + } + + public V1alpha3DeviceCounterConsumption putCountersItem(String key, V1alpha3Counter countersItem) { + if (this.counters == null) { + this.counters = new HashMap<>(); + } + this.counters.put(key, countersItem); + return this; + } + + /** + * Counters defines the Counter that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). + * @return counters + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Counters defines the Counter that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).") + public Map getCounters() { + return counters; + } + + public void setCounters(@jakarta.annotation.Nonnull Map counters) { + this.counters = counters; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceCounterConsumption v1alpha3DeviceCounterConsumption = (V1alpha3DeviceCounterConsumption) o; + return Objects.equals(this.counterSet, v1alpha3DeviceCounterConsumption.counterSet) && + Objects.equals(this.counters, v1alpha3DeviceCounterConsumption.counters); + } + + @Override + public int hashCode() { + return Objects.hash(counterSet, counters); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceCounterConsumption {\n"); + sb.append(" counterSet: ").append(toIndentedString(counterSet)).append("\n"); + sb.append(" counters: ").append(toIndentedString(counters)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("counterSet"); + openapiFields.add("counters"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("counterSet"); + openapiRequiredFields.add("counters"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceCounterConsumption + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3DeviceCounterConsumption.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceCounterConsumption is not found in the empty JSON string", V1alpha3DeviceCounterConsumption.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3DeviceCounterConsumption.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceCounterConsumption` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha3DeviceCounterConsumption.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("counterSet").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `counterSet` to be a primitive type in the JSON string but got `%s`", jsonObj.get("counterSet").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3DeviceCounterConsumption.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3DeviceCounterConsumption' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DeviceCounterConsumption.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3DeviceCounterConsumption value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3DeviceCounterConsumption read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3DeviceCounterConsumption given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3DeviceCounterConsumption + * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceCounterConsumption + */ + public static V1alpha3DeviceCounterConsumption fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3DeviceCounterConsumption.class); + } + + /** + * Convert an instance of V1alpha3DeviceCounterConsumption to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequest.java index f3a80de047..59c83e07f6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequest.java @@ -19,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha3DeviceSelector; +import io.kubernetes.client.openapi.models.V1alpha3DeviceSubRequest; +import io.kubernetes.client.openapi.models.V1alpha3DeviceToleration; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -41,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,139 +52,183 @@ import io.kubernetes.client.openapi.JSON; /** - * DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request. + * DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. */ -@ApiModel(description = "DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3DeviceRequest { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) + @jakarta.annotation.Nullable private Boolean adminAccess; public static final String SERIALIZED_NAME_ALLOCATION_MODE = "allocationMode"; @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) + @jakarta.annotation.Nullable private String allocationMode; public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) + @jakarta.annotation.Nullable private Long count; public static final String SERIALIZED_NAME_DEVICE_CLASS_NAME = "deviceClassName"; @SerializedName(SERIALIZED_NAME_DEVICE_CLASS_NAME) + @jakarta.annotation.Nullable private String deviceClassName; + public static final String SERIALIZED_NAME_FIRST_AVAILABLE = "firstAvailable"; + @SerializedName(SERIALIZED_NAME_FIRST_AVAILABLE) + @jakarta.annotation.Nullable + private List firstAvailable = new ArrayList<>(); + public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_SELECTORS = "selectors"; @SerializedName(SERIALIZED_NAME_SELECTORS) + @jakarta.annotation.Nullable private List selectors = new ArrayList<>(); + public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; + @SerializedName(SERIALIZED_NAME_TOLERATIONS) + @jakarta.annotation.Nullable + private List tolerations = new ArrayList<>(); + public V1alpha3DeviceRequest() { } - public V1alpha3DeviceRequest adminAccess(Boolean adminAccess) { + public V1alpha3DeviceRequest adminAccess(@jakarta.annotation.Nullable Boolean adminAccess) { this.adminAccess = adminAccess; return this; } - /** - * AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. + /** + * AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. * @return adminAccess - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.") + @ApiModelProperty(value = "AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.") public Boolean getAdminAccess() { return adminAccess; } - public void setAdminAccess(Boolean adminAccess) { + public void setAdminAccess(@jakarta.annotation.Nullable Boolean adminAccess) { this.adminAccess = adminAccess; } - public V1alpha3DeviceRequest allocationMode(String allocationMode) { + public V1alpha3DeviceRequest allocationMode(@jakarta.annotation.Nullable String allocationMode) { this.allocationMode = allocationMode; return this; } - /** - * AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. + /** + * AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. At least one device must exist on the node for the allocation to succeed. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. * @return allocationMode - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes.") + @ApiModelProperty(value = "AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. At least one device must exist on the node for the allocation to succeed. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. More modes may get added in the future. Clients must refuse to handle requests with unknown modes.") public String getAllocationMode() { return allocationMode; } - public void setAllocationMode(String allocationMode) { + public void setAllocationMode(@jakarta.annotation.Nullable String allocationMode) { this.allocationMode = allocationMode; } - public V1alpha3DeviceRequest count(Long count) { + public V1alpha3DeviceRequest count(@jakarta.annotation.Nullable Long count) { this.count = count; return this; } - /** - * Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. + /** + * Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. * @return count - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.") + @ApiModelProperty(value = "Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.") public Long getCount() { return count; } - public void setCount(Long count) { + public void setCount(@jakarta.annotation.Nullable Long count) { this.count = count; } - public V1alpha3DeviceRequest deviceClassName(String deviceClassName) { + public V1alpha3DeviceRequest deviceClassName(@jakarta.annotation.Nullable String deviceClassName) { this.deviceClassName = deviceClassName; return this; } - /** - * DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. + /** + * DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. * @return deviceClassName - **/ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.") + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.") public String getDeviceClassName() { return deviceClassName; } - public void setDeviceClassName(String deviceClassName) { + public void setDeviceClassName(@jakarta.annotation.Nullable String deviceClassName) { this.deviceClassName = deviceClassName; } - public V1alpha3DeviceRequest name(String name) { + public V1alpha3DeviceRequest firstAvailable(@jakarta.annotation.Nullable List firstAvailable) { + this.firstAvailable = firstAvailable; + return this; + } + + public V1alpha3DeviceRequest addFirstAvailableItem(V1alpha3DeviceSubRequest firstAvailableItem) { + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList<>(); + } + this.firstAvailable.add(firstAvailableItem); + return this; + } + + /** + * FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used. This field may only be set in the entries of DeviceClaim.Requests. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. + * @return firstAvailable + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used. This field may only be set in the entries of DeviceClaim.Requests. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later.") + public List getFirstAvailable() { + return firstAvailable; + } + + public void setFirstAvailable(@jakarta.annotation.Nullable List firstAvailable) { + this.firstAvailable = firstAvailable; + } + + + public V1alpha3DeviceRequest name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } - /** + /** * Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. Must be a DNS label. * @return name - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. Must be a DNS label.") public String getName() { return name; } - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public V1alpha3DeviceRequest selectors(List selectors) { + public V1alpha3DeviceRequest selectors(@jakarta.annotation.Nullable List selectors) { this.selectors = selectors; return this; } @@ -196,21 +241,49 @@ public V1alpha3DeviceRequest addSelectorsItem(V1alpha3DeviceSelector selectorsIt return this; } - /** - * Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. + /** + * Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. * @return selectors - **/ + */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.") + @ApiModelProperty(value = "Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.") public List getSelectors() { return selectors; } - public void setSelectors(List selectors) { + public void setSelectors(@jakarta.annotation.Nullable List selectors) { this.selectors = selectors; } + public V1alpha3DeviceRequest tolerations(@jakarta.annotation.Nullable List tolerations) { + this.tolerations = tolerations; + return this; + } + + public V1alpha3DeviceRequest addTolerationsItem(V1alpha3DeviceToleration tolerationsItem) { + if (this.tolerations == null) { + this.tolerations = new ArrayList<>(); + } + this.tolerations.add(tolerationsItem); + return this; + } + + /** + * If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * @return tolerations + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + public List getTolerations() { + return tolerations; + } + + public void setTolerations(@jakarta.annotation.Nullable List tolerations) { + this.tolerations = tolerations; + } + + @Override public boolean equals(Object o) { @@ -225,13 +298,15 @@ public boolean equals(Object o) { Objects.equals(this.allocationMode, v1alpha3DeviceRequest.allocationMode) && Objects.equals(this.count, v1alpha3DeviceRequest.count) && Objects.equals(this.deviceClassName, v1alpha3DeviceRequest.deviceClassName) && + Objects.equals(this.firstAvailable, v1alpha3DeviceRequest.firstAvailable) && Objects.equals(this.name, v1alpha3DeviceRequest.name) && - Objects.equals(this.selectors, v1alpha3DeviceRequest.selectors); + Objects.equals(this.selectors, v1alpha3DeviceRequest.selectors) && + Objects.equals(this.tolerations, v1alpha3DeviceRequest.tolerations); } @Override public int hashCode() { - return Objects.hash(adminAccess, allocationMode, count, deviceClassName, name, selectors); + return Objects.hash(adminAccess, allocationMode, count, deviceClassName, firstAvailable, name, selectors, tolerations); } @Override @@ -242,8 +317,10 @@ public String toString() { sb.append(" allocationMode: ").append(toIndentedString(allocationMode)).append("\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" deviceClassName: ").append(toIndentedString(deviceClassName)).append("\n"); + sb.append(" firstAvailable: ").append(toIndentedString(firstAvailable)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" selectors: ").append(toIndentedString(selectors)).append("\n"); + sb.append(" tolerations: ").append(toIndentedString(tolerations)).append("\n"); sb.append("}"); return sb.toString(); } @@ -270,21 +347,22 @@ private String toIndentedString(Object o) { openapiFields.add("allocationMode"); openapiFields.add("count"); openapiFields.add("deviceClassName"); + openapiFields.add("firstAvailable"); openapiFields.add("name"); openapiFields.add("selectors"); + openapiFields.add("tolerations"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("deviceClassName"); openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceRequest - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceRequest + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3DeviceRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -310,9 +388,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("allocationMode") != null && !jsonObj.get("allocationMode").isJsonNull()) && !jsonObj.get("allocationMode").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `allocationMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allocationMode").toString())); } - if (!jsonObj.get("deviceClassName").isJsonPrimitive()) { + if ((jsonObj.get("deviceClassName") != null && !jsonObj.get("deviceClassName").isJsonNull()) && !jsonObj.get("deviceClassName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); } + if (jsonObj.get("firstAvailable") != null && !jsonObj.get("firstAvailable").isJsonNull()) { + JsonArray jsonArrayfirstAvailable = jsonObj.getAsJsonArray("firstAvailable"); + if (jsonArrayfirstAvailable != null) { + // ensure the json data is an array + if (!jsonObj.get("firstAvailable").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `firstAvailable` to be an array in the JSON string but got `%s`", jsonObj.get("firstAvailable").toString())); + } + + // validate the optional field `firstAvailable` (array) + for (int i = 0; i < jsonArrayfirstAvailable.size(); i++) { + V1alpha3DeviceSubRequest.validateJsonElement(jsonArrayfirstAvailable.get(i)); + }; + } + } if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } @@ -330,6 +422,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + if (jsonObj.get("tolerations") != null && !jsonObj.get("tolerations").isJsonNull()) { + JsonArray jsonArraytolerations = jsonObj.getAsJsonArray("tolerations"); + if (jsonArraytolerations != null) { + // ensure the json data is an array + if (!jsonObj.get("tolerations").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `tolerations` to be an array in the JSON string but got `%s`", jsonObj.get("tolerations").toString())); + } + + // validate the optional field `tolerations` (array) + for (int i = 0; i < jsonArraytolerations.size(); i++) { + V1alpha3DeviceToleration.validateJsonElement(jsonArraytolerations.get(i)); + }; + } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -361,22 +467,22 @@ public V1alpha3DeviceRequest read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha3DeviceRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha3DeviceRequest - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceRequest - */ + /** + * Create an instance of V1alpha3DeviceRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3DeviceRequest + * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceRequest + */ public static V1alpha3DeviceRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha3DeviceRequest.class); } - /** - * Convert an instance of V1alpha3DeviceRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha3DeviceRequest to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResult.java index f5a5cfc61f..ce81e06fa2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResult.java @@ -18,10 +18,13 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1alpha3DeviceToleration; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; +import java.util.List; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -38,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,131 +53,169 @@ * DeviceRequestAllocationResult contains the allocation result for one request. */ @ApiModel(description = "DeviceRequestAllocationResult contains the allocation result for one request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3DeviceRequestAllocationResult { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) + @jakarta.annotation.Nullable private Boolean adminAccess; public static final String SERIALIZED_NAME_DEVICE = "device"; @SerializedName(SERIALIZED_NAME_DEVICE) + @jakarta.annotation.Nonnull private String device; public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) + @jakarta.annotation.Nonnull private String driver; public static final String SERIALIZED_NAME_POOL = "pool"; @SerializedName(SERIALIZED_NAME_POOL) + @jakarta.annotation.Nonnull private String pool; public static final String SERIALIZED_NAME_REQUEST = "request"; @SerializedName(SERIALIZED_NAME_REQUEST) + @jakarta.annotation.Nonnull private String request; + public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; + @SerializedName(SERIALIZED_NAME_TOLERATIONS) + @jakarta.annotation.Nullable + private List tolerations = new ArrayList<>(); + public V1alpha3DeviceRequestAllocationResult() { } - public V1alpha3DeviceRequestAllocationResult adminAccess(Boolean adminAccess) { + public V1alpha3DeviceRequestAllocationResult adminAccess(@jakarta.annotation.Nullable Boolean adminAccess) { this.adminAccess = adminAccess; return this; } - /** + /** * AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. * @return adminAccess - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.") public Boolean getAdminAccess() { return adminAccess; } - public void setAdminAccess(Boolean adminAccess) { + public void setAdminAccess(@jakarta.annotation.Nullable Boolean adminAccess) { this.adminAccess = adminAccess; } - public V1alpha3DeviceRequestAllocationResult device(String device) { + public V1alpha3DeviceRequestAllocationResult device(@jakarta.annotation.Nonnull String device) { this.device = device; return this; } - /** + /** * Device references one device instance via its name in the driver's resource pool. It must be a DNS label. * @return device - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Device references one device instance via its name in the driver's resource pool. It must be a DNS label.") public String getDevice() { return device; } - public void setDevice(String device) { + public void setDevice(@jakarta.annotation.Nonnull String device) { this.device = device; } - public V1alpha3DeviceRequestAllocationResult driver(String driver) { + public V1alpha3DeviceRequestAllocationResult driver(@jakarta.annotation.Nonnull String driver) { this.driver = driver; return this; } - /** + /** * Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. * @return driver - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.") public String getDriver() { return driver; } - public void setDriver(String driver) { + public void setDriver(@jakarta.annotation.Nonnull String driver) { this.driver = driver; } - public V1alpha3DeviceRequestAllocationResult pool(String pool) { + public V1alpha3DeviceRequestAllocationResult pool(@jakarta.annotation.Nonnull String pool) { this.pool = pool; return this; } - /** + /** * This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. * @return pool - **/ + */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "This name together with the driver name and the device name field identify which device was allocated (`//`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.") public String getPool() { return pool; } - public void setPool(String pool) { + public void setPool(@jakarta.annotation.Nonnull String pool) { this.pool = pool; } - public V1alpha3DeviceRequestAllocationResult request(String request) { + public V1alpha3DeviceRequestAllocationResult request(@jakarta.annotation.Nonnull String request) { this.request = request; return this; } - /** - * Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request. + /** + * Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>. Multiple devices may have been allocated per request. * @return request - **/ + */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.") + @ApiModelProperty(required = true, value = "Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format
/. Multiple devices may have been allocated per request.") public String getRequest() { return request; } - public void setRequest(String request) { + public void setRequest(@jakarta.annotation.Nonnull String request) { this.request = request; } + public V1alpha3DeviceRequestAllocationResult tolerations(@jakarta.annotation.Nullable List tolerations) { + this.tolerations = tolerations; + return this; + } + + public V1alpha3DeviceRequestAllocationResult addTolerationsItem(V1alpha3DeviceToleration tolerationsItem) { + if (this.tolerations == null) { + this.tolerations = new ArrayList<>(); + } + this.tolerations.add(tolerationsItem); + return this; + } + + /** + * A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * @return tolerations + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + public List getTolerations() { + return tolerations; + } + + public void setTolerations(@jakarta.annotation.Nullable List tolerations) { + this.tolerations = tolerations; + } + + @Override public boolean equals(Object o) { @@ -190,12 +230,13 @@ public boolean equals(Object o) { Objects.equals(this.device, v1alpha3DeviceRequestAllocationResult.device) && Objects.equals(this.driver, v1alpha3DeviceRequestAllocationResult.driver) && Objects.equals(this.pool, v1alpha3DeviceRequestAllocationResult.pool) && - Objects.equals(this.request, v1alpha3DeviceRequestAllocationResult.request); + Objects.equals(this.request, v1alpha3DeviceRequestAllocationResult.request) && + Objects.equals(this.tolerations, v1alpha3DeviceRequestAllocationResult.tolerations); } @Override public int hashCode() { - return Objects.hash(adminAccess, device, driver, pool, request); + return Objects.hash(adminAccess, device, driver, pool, request, tolerations); } @Override @@ -207,6 +248,7 @@ public String toString() { sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); sb.append(" pool: ").append(toIndentedString(pool)).append("\n"); sb.append(" request: ").append(toIndentedString(request)).append("\n"); + sb.append(" tolerations: ").append(toIndentedString(tolerations)).append("\n"); sb.append("}"); return sb.toString(); } @@ -234,6 +276,7 @@ private String toIndentedString(Object o) { openapiFields.add("driver"); openapiFields.add("pool"); openapiFields.add("request"); + openapiFields.add("tolerations"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -243,12 +286,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("request"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceRequestAllocationResult - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceRequestAllocationResult + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3DeviceRequestAllocationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -283,6 +326,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("request").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `request` to be a primitive type in the JSON string but got `%s`", jsonObj.get("request").toString())); } + if (jsonObj.get("tolerations") != null && !jsonObj.get("tolerations").isJsonNull()) { + JsonArray jsonArraytolerations = jsonObj.getAsJsonArray("tolerations"); + if (jsonArraytolerations != null) { + // ensure the json data is an array + if (!jsonObj.get("tolerations").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `tolerations` to be an array in the JSON string but got `%s`", jsonObj.get("tolerations").toString())); + } + + // validate the optional field `tolerations` (array) + for (int i = 0; i < jsonArraytolerations.size(); i++) { + V1alpha3DeviceToleration.validateJsonElement(jsonArraytolerations.get(i)); + }; + } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -314,22 +371,22 @@ public V1alpha3DeviceRequestAllocationResult read(JsonReader in) throws IOExcept } } - /** - * Create an instance of V1alpha3DeviceRequestAllocationResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha3DeviceRequestAllocationResult - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceRequestAllocationResult - */ + /** + * Create an instance of V1alpha3DeviceRequestAllocationResult given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3DeviceRequestAllocationResult + * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceRequestAllocationResult + */ public static V1alpha3DeviceRequestAllocationResult fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha3DeviceRequestAllocationResult.class); } - /** - * Convert an instance of V1alpha3DeviceRequestAllocationResult to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha3DeviceRequestAllocationResult to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java index 7de2356cc6..b27e8e4122 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,31 +51,32 @@ * DeviceSelector must have exactly one field set. */ @ApiModel(description = "DeviceSelector must have exactly one field set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-12T21:15:49.397498Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3DeviceSelector { public static final String SERIALIZED_NAME_CEL = "cel"; @SerializedName(SERIALIZED_NAME_CEL) + @jakarta.annotation.Nullable private V1alpha3CELDeviceSelector cel; public V1alpha3DeviceSelector() { } - public V1alpha3DeviceSelector cel(V1alpha3CELDeviceSelector cel) { + public V1alpha3DeviceSelector cel(@jakarta.annotation.Nullable V1alpha3CELDeviceSelector cel) { this.cel = cel; return this; } - /** + /** * Get cel * @return cel - **/ + */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1alpha3CELDeviceSelector getCel() { return cel; } - public void setCel(V1alpha3CELDeviceSelector cel) { + public void setCel(@jakarta.annotation.Nullable V1alpha3CELDeviceSelector cel) { this.cel = cel; } @@ -132,12 +132,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceSelector - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceSelector + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3DeviceSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -188,22 +188,22 @@ public V1alpha3DeviceSelector read(JsonReader in) throws IOException { } } - /** - * Create an instance of V1alpha3DeviceSelector given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha3DeviceSelector - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceSelector - */ + /** + * Create an instance of V1alpha3DeviceSelector given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3DeviceSelector + * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceSelector + */ public static V1alpha3DeviceSelector fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, V1alpha3DeviceSelector.class); } - /** - * Convert an instance of V1alpha3DeviceSelector to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of V1alpha3DeviceSelector to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequest.java new file mode 100644 index 0000000000..0e5451d309 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequest.java @@ -0,0 +1,411 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1alpha3DeviceSelector; +import io.kubernetes.client.openapi.models.V1alpha3DeviceToleration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported. + */ +@ApiModel(description = "DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1alpha3DeviceSubRequest { + public static final String SERIALIZED_NAME_ALLOCATION_MODE = "allocationMode"; + @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) + @jakarta.annotation.Nullable + private String allocationMode; + + public static final String SERIALIZED_NAME_COUNT = "count"; + @SerializedName(SERIALIZED_NAME_COUNT) + @jakarta.annotation.Nullable + private Long count; + + public static final String SERIALIZED_NAME_DEVICE_CLASS_NAME = "deviceClassName"; + @SerializedName(SERIALIZED_NAME_DEVICE_CLASS_NAME) + @jakarta.annotation.Nonnull + private String deviceClassName; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull + private String name; + + public static final String SERIALIZED_NAME_SELECTORS = "selectors"; + @SerializedName(SERIALIZED_NAME_SELECTORS) + @jakarta.annotation.Nullable + private List selectors = new ArrayList<>(); + + public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; + @SerializedName(SERIALIZED_NAME_TOLERATIONS) + @jakarta.annotation.Nullable + private List tolerations = new ArrayList<>(); + + public V1alpha3DeviceSubRequest() { + } + + public V1alpha3DeviceSubRequest allocationMode(@jakarta.annotation.Nullable String allocationMode) { + this.allocationMode = allocationMode; + return this; + } + + /** + * AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. + * @return allocationMode + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes.") + public String getAllocationMode() { + return allocationMode; + } + + public void setAllocationMode(@jakarta.annotation.Nullable String allocationMode) { + this.allocationMode = allocationMode; + } + + + public V1alpha3DeviceSubRequest count(@jakarta.annotation.Nullable Long count) { + this.count = count; + return this; + } + + /** + * Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. + * @return count + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.") + public Long getCount() { + return count; + } + + public void setCount(@jakarta.annotation.Nullable Long count) { + this.count = count; + } + + + public V1alpha3DeviceSubRequest deviceClassName(@jakarta.annotation.Nonnull String deviceClassName) { + this.deviceClassName = deviceClassName; + return this; + } + + /** + * DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. A class is required. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. + * @return deviceClassName + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. A class is required. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.") + public String getDeviceClassName() { + return deviceClassName; + } + + public void setDeviceClassName(@jakarta.annotation.Nonnull String deviceClassName) { + this.deviceClassName = deviceClassName; + } + + + public V1alpha3DeviceSubRequest name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>. Must be a DNS label. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format
/. Must be a DNS label.") + public String getName() { + return name; + } + + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + + public V1alpha3DeviceSubRequest selectors(@jakarta.annotation.Nullable List selectors) { + this.selectors = selectors; + return this; + } + + public V1alpha3DeviceSubRequest addSelectorsItem(V1alpha3DeviceSelector selectorsItem) { + if (this.selectors == null) { + this.selectors = new ArrayList<>(); + } + this.selectors.add(selectorsItem); + return this; + } + + /** + * Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. + * @return selectors + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.") + public List getSelectors() { + return selectors; + } + + public void setSelectors(@jakarta.annotation.Nullable List selectors) { + this.selectors = selectors; + } + + + public V1alpha3DeviceSubRequest tolerations(@jakarta.annotation.Nullable List tolerations) { + this.tolerations = tolerations; + return this; + } + + public V1alpha3DeviceSubRequest addTolerationsItem(V1alpha3DeviceToleration tolerationsItem) { + if (this.tolerations == null) { + this.tolerations = new ArrayList<>(); + } + this.tolerations.add(tolerationsItem); + return this; + } + + /** + * If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * @return tolerations + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + public List getTolerations() { + return tolerations; + } + + public void setTolerations(@jakarta.annotation.Nullable List tolerations) { + this.tolerations = tolerations; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceSubRequest v1alpha3DeviceSubRequest = (V1alpha3DeviceSubRequest) o; + return Objects.equals(this.allocationMode, v1alpha3DeviceSubRequest.allocationMode) && + Objects.equals(this.count, v1alpha3DeviceSubRequest.count) && + Objects.equals(this.deviceClassName, v1alpha3DeviceSubRequest.deviceClassName) && + Objects.equals(this.name, v1alpha3DeviceSubRequest.name) && + Objects.equals(this.selectors, v1alpha3DeviceSubRequest.selectors) && + Objects.equals(this.tolerations, v1alpha3DeviceSubRequest.tolerations); + } + + @Override + public int hashCode() { + return Objects.hash(allocationMode, count, deviceClassName, name, selectors, tolerations); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceSubRequest {\n"); + sb.append(" allocationMode: ").append(toIndentedString(allocationMode)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" deviceClassName: ").append(toIndentedString(deviceClassName)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" selectors: ").append(toIndentedString(selectors)).append("\n"); + sb.append(" tolerations: ").append(toIndentedString(tolerations)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("allocationMode"); + openapiFields.add("count"); + openapiFields.add("deviceClassName"); + openapiFields.add("name"); + openapiFields.add("selectors"); + openapiFields.add("tolerations"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("deviceClassName"); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceSubRequest + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3DeviceSubRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceSubRequest is not found in the empty JSON string", V1alpha3DeviceSubRequest.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3DeviceSubRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceSubRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha3DeviceSubRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("allocationMode") != null && !jsonObj.get("allocationMode").isJsonNull()) && !jsonObj.get("allocationMode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `allocationMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allocationMode").toString())); + } + if (!jsonObj.get("deviceClassName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (jsonObj.get("selectors") != null && !jsonObj.get("selectors").isJsonNull()) { + JsonArray jsonArrayselectors = jsonObj.getAsJsonArray("selectors"); + if (jsonArrayselectors != null) { + // ensure the json data is an array + if (!jsonObj.get("selectors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `selectors` to be an array in the JSON string but got `%s`", jsonObj.get("selectors").toString())); + } + + // validate the optional field `selectors` (array) + for (int i = 0; i < jsonArrayselectors.size(); i++) { + V1alpha3DeviceSelector.validateJsonElement(jsonArrayselectors.get(i)); + }; + } + } + if (jsonObj.get("tolerations") != null && !jsonObj.get("tolerations").isJsonNull()) { + JsonArray jsonArraytolerations = jsonObj.getAsJsonArray("tolerations"); + if (jsonArraytolerations != null) { + // ensure the json data is an array + if (!jsonObj.get("tolerations").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `tolerations` to be an array in the JSON string but got `%s`", jsonObj.get("tolerations").toString())); + } + + // validate the optional field `tolerations` (array) + for (int i = 0; i < jsonArraytolerations.size(); i++) { + V1alpha3DeviceToleration.validateJsonElement(jsonArraytolerations.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3DeviceSubRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3DeviceSubRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DeviceSubRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3DeviceSubRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3DeviceSubRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3DeviceSubRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3DeviceSubRequest + * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceSubRequest + */ + public static V1alpha3DeviceSubRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3DeviceSubRequest.class); + } + + /** + * Convert an instance of V1alpha3DeviceSubRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java new file mode 100644 index 0000000000..3704dc0d29 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java @@ -0,0 +1,308 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim. + */ +@ApiModel(description = "The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1alpha3DeviceTaint { + public static final String SERIALIZED_NAME_EFFECT = "effect"; + @SerializedName(SERIALIZED_NAME_EFFECT) + @jakarta.annotation.Nonnull + private String effect; + + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + @jakarta.annotation.Nonnull + private String key; + + public static final String SERIALIZED_NAME_TIME_ADDED = "timeAdded"; + @SerializedName(SERIALIZED_NAME_TIME_ADDED) + @jakarta.annotation.Nullable + private OffsetDateTime timeAdded; + + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + @jakarta.annotation.Nullable + private String value; + + public V1alpha3DeviceTaint() { + } + + public V1alpha3DeviceTaint effect(@jakarta.annotation.Nonnull String effect) { + this.effect = effect; + return this; + } + + /** + * The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. + * @return effect + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here.") + public String getEffect() { + return effect; + } + + public void setEffect(@jakarta.annotation.Nonnull String effect) { + this.effect = effect; + } + + + public V1alpha3DeviceTaint key(@jakarta.annotation.Nonnull String key) { + this.key = key; + return this; + } + + /** + * The taint key to be applied to a device. Must be a label name. + * @return key + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The taint key to be applied to a device. Must be a label name.") + public String getKey() { + return key; + } + + public void setKey(@jakarta.annotation.Nonnull String key) { + this.key = key; + } + + + public V1alpha3DeviceTaint timeAdded(@jakarta.annotation.Nullable OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + return this; + } + + /** + * TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. + * @return timeAdded + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.") + public OffsetDateTime getTimeAdded() { + return timeAdded; + } + + public void setTimeAdded(@jakarta.annotation.Nullable OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + } + + + public V1alpha3DeviceTaint value(@jakarta.annotation.Nullable String value) { + this.value = value; + return this; + } + + /** + * The taint value corresponding to the taint key. Must be a label value. + * @return value + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "The taint value corresponding to the taint key. Must be a label value.") + public String getValue() { + return value; + } + + public void setValue(@jakarta.annotation.Nullable String value) { + this.value = value; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceTaint v1alpha3DeviceTaint = (V1alpha3DeviceTaint) o; + return Objects.equals(this.effect, v1alpha3DeviceTaint.effect) && + Objects.equals(this.key, v1alpha3DeviceTaint.key) && + Objects.equals(this.timeAdded, v1alpha3DeviceTaint.timeAdded) && + Objects.equals(this.value, v1alpha3DeviceTaint.value); + } + + @Override + public int hashCode() { + return Objects.hash(effect, key, timeAdded, value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceTaint {\n"); + sb.append(" effect: ").append(toIndentedString(effect)).append("\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" timeAdded: ").append(toIndentedString(timeAdded)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("effect"); + openapiFields.add("key"); + openapiFields.add("timeAdded"); + openapiFields.add("value"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("effect"); + openapiRequiredFields.add("key"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceTaint + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3DeviceTaint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceTaint is not found in the empty JSON string", V1alpha3DeviceTaint.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3DeviceTaint.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceTaint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha3DeviceTaint.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("effect").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `effect` to be a primitive type in the JSON string but got `%s`", jsonObj.get("effect").toString())); + } + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3DeviceTaint.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3DeviceTaint' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DeviceTaint.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3DeviceTaint value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3DeviceTaint read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3DeviceTaint given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3DeviceTaint + * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceTaint + */ + public static V1alpha3DeviceTaint fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3DeviceTaint.class); + } + + /** + * Convert an instance of V1alpha3DeviceTaint to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java new file mode 100644 index 0000000000..9be1ff7f5c --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java @@ -0,0 +1,311 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRuleSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * DeviceTaintRule adds one taint to all devices which match the selector. This has the same effect as if the taint was specified directly in the ResourceSlice by the DRA driver. + */ +@ApiModel(description = "DeviceTaintRule adds one taint to all devices which match the selector. This has the same effect as if the taint was specified directly in the ResourceSlice by the DRA driver.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1alpha3DeviceTaintRule implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nonnull + private V1alpha3DeviceTaintRuleSpec spec; + + public V1alpha3DeviceTaintRule() { + } + + public V1alpha3DeviceTaintRule apiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @return apiVersion + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") + public String getApiVersion() { + return apiVersion; + } + + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha3DeviceTaintRule kind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + return this; + } + + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @return kind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") + public String getKind() { + return kind; + } + + public void setKind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + } + + + public V1alpha3DeviceTaintRule metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { + return metadata; + } + + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1alpha3DeviceTaintRule spec(@jakarta.annotation.Nonnull V1alpha3DeviceTaintRuleSpec spec) { + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1alpha3DeviceTaintRuleSpec getSpec() { + return spec; + } + + public void setSpec(@jakarta.annotation.Nonnull V1alpha3DeviceTaintRuleSpec spec) { + this.spec = spec; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceTaintRule v1alpha3DeviceTaintRule = (V1alpha3DeviceTaintRule) o; + return Objects.equals(this.apiVersion, v1alpha3DeviceTaintRule.apiVersion) && + Objects.equals(this.kind, v1alpha3DeviceTaintRule.kind) && + Objects.equals(this.metadata, v1alpha3DeviceTaintRule.metadata) && + Objects.equals(this.spec, v1alpha3DeviceTaintRule.spec); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceTaintRule {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("spec"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceTaintRule + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3DeviceTaintRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceTaintRule is not found in the empty JSON string", V1alpha3DeviceTaintRule.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3DeviceTaintRule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceTaintRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha3DeviceTaintRule.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); + } + // validate the required field `spec` + V1alpha3DeviceTaintRuleSpec.validateJsonElement(jsonObj.get("spec")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3DeviceTaintRule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3DeviceTaintRule' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DeviceTaintRule.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3DeviceTaintRule value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3DeviceTaintRule read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3DeviceTaintRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3DeviceTaintRule + * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceTaintRule + */ + public static V1alpha3DeviceTaintRule fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3DeviceTaintRule.class); + } + + /** + * Convert an instance of V1alpha3DeviceTaintRule to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java new file mode 100644 index 0000000000..ad1e21d4e8 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java @@ -0,0 +1,329 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ListMeta; +import io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRule; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * DeviceTaintRuleList is a collection of DeviceTaintRules. + */ +@ApiModel(description = "DeviceTaintRuleList is a collection of DeviceTaintRules.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1alpha3DeviceTaintRuleList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable + private V1ListMeta metadata; + + public V1alpha3DeviceTaintRuleList() { + } + + public V1alpha3DeviceTaintRuleList apiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @return apiVersion + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") + public String getApiVersion() { + return apiVersion; + } + + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha3DeviceTaintRuleList items(@jakarta.annotation.Nonnull List items) { + this.items = items; + return this; + } + + public V1alpha3DeviceTaintRuleList addItemsItem(V1alpha3DeviceTaintRule itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + /** + * Items is the list of DeviceTaintRules. + * @return items + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is the list of DeviceTaintRules.") + public List getItems() { + return items; + } + + public void setItems(@jakarta.annotation.Nonnull List items) { + this.items = items; + } + + + public V1alpha3DeviceTaintRuleList kind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + return this; + } + + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @return kind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") + public String getKind() { + return kind; + } + + public void setKind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + } + + + public V1alpha3DeviceTaintRuleList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { + return metadata; + } + + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + this.metadata = metadata; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceTaintRuleList v1alpha3DeviceTaintRuleList = (V1alpha3DeviceTaintRuleList) o; + return Objects.equals(this.apiVersion, v1alpha3DeviceTaintRuleList.apiVersion) && + Objects.equals(this.items, v1alpha3DeviceTaintRuleList.items) && + Objects.equals(this.kind, v1alpha3DeviceTaintRuleList.kind) && + Objects.equals(this.metadata, v1alpha3DeviceTaintRuleList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceTaintRuleList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceTaintRuleList + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3DeviceTaintRuleList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceTaintRuleList is not found in the empty JSON string", V1alpha3DeviceTaintRuleList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3DeviceTaintRuleList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceTaintRuleList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha3DeviceTaintRuleList.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1alpha3DeviceTaintRule.validateJsonElement(jsonArrayitems.get(i)); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonElement(jsonObj.get("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3DeviceTaintRuleList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3DeviceTaintRuleList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DeviceTaintRuleList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3DeviceTaintRuleList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3DeviceTaintRuleList read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3DeviceTaintRuleList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3DeviceTaintRuleList + * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceTaintRuleList + */ + public static V1alpha3DeviceTaintRuleList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3DeviceTaintRuleList.class); + } + + /** + * Convert an instance of V1alpha3DeviceTaintRuleList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java new file mode 100644 index 0000000000..dab5faa511 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java @@ -0,0 +1,249 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1alpha3DeviceTaint; +import io.kubernetes.client.openapi.models.V1alpha3DeviceTaintSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * DeviceTaintRuleSpec specifies the selector and one taint. + */ +@ApiModel(description = "DeviceTaintRuleSpec specifies the selector and one taint.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1alpha3DeviceTaintRuleSpec { + public static final String SERIALIZED_NAME_DEVICE_SELECTOR = "deviceSelector"; + @SerializedName(SERIALIZED_NAME_DEVICE_SELECTOR) + @jakarta.annotation.Nullable + private V1alpha3DeviceTaintSelector deviceSelector; + + public static final String SERIALIZED_NAME_TAINT = "taint"; + @SerializedName(SERIALIZED_NAME_TAINT) + @jakarta.annotation.Nonnull + private V1alpha3DeviceTaint taint; + + public V1alpha3DeviceTaintRuleSpec() { + } + + public V1alpha3DeviceTaintRuleSpec deviceSelector(@jakarta.annotation.Nullable V1alpha3DeviceTaintSelector deviceSelector) { + this.deviceSelector = deviceSelector; + return this; + } + + /** + * Get deviceSelector + * @return deviceSelector + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha3DeviceTaintSelector getDeviceSelector() { + return deviceSelector; + } + + public void setDeviceSelector(@jakarta.annotation.Nullable V1alpha3DeviceTaintSelector deviceSelector) { + this.deviceSelector = deviceSelector; + } + + + public V1alpha3DeviceTaintRuleSpec taint(@jakarta.annotation.Nonnull V1alpha3DeviceTaint taint) { + this.taint = taint; + return this; + } + + /** + * Get taint + * @return taint + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1alpha3DeviceTaint getTaint() { + return taint; + } + + public void setTaint(@jakarta.annotation.Nonnull V1alpha3DeviceTaint taint) { + this.taint = taint; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceTaintRuleSpec v1alpha3DeviceTaintRuleSpec = (V1alpha3DeviceTaintRuleSpec) o; + return Objects.equals(this.deviceSelector, v1alpha3DeviceTaintRuleSpec.deviceSelector) && + Objects.equals(this.taint, v1alpha3DeviceTaintRuleSpec.taint); + } + + @Override + public int hashCode() { + return Objects.hash(deviceSelector, taint); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceTaintRuleSpec {\n"); + sb.append(" deviceSelector: ").append(toIndentedString(deviceSelector)).append("\n"); + sb.append(" taint: ").append(toIndentedString(taint)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("deviceSelector"); + openapiFields.add("taint"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("taint"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceTaintRuleSpec + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3DeviceTaintRuleSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceTaintRuleSpec is not found in the empty JSON string", V1alpha3DeviceTaintRuleSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3DeviceTaintRuleSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceTaintRuleSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha3DeviceTaintRuleSpec.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `deviceSelector` + if (jsonObj.get("deviceSelector") != null && !jsonObj.get("deviceSelector").isJsonNull()) { + V1alpha3DeviceTaintSelector.validateJsonElement(jsonObj.get("deviceSelector")); + } + // validate the required field `taint` + V1alpha3DeviceTaint.validateJsonElement(jsonObj.get("taint")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3DeviceTaintRuleSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3DeviceTaintRuleSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DeviceTaintRuleSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3DeviceTaintRuleSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3DeviceTaintRuleSpec read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3DeviceTaintRuleSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3DeviceTaintRuleSpec + * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceTaintRuleSpec + */ + public static V1alpha3DeviceTaintRuleSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3DeviceTaintRuleSpec.class); + } + + /** + * Convert an instance of V1alpha3DeviceTaintRuleSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java new file mode 100644 index 0000000000..6bcbec20b0 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java @@ -0,0 +1,354 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1alpha3DeviceSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched. + */ +@ApiModel(description = "DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1alpha3DeviceTaintSelector { + public static final String SERIALIZED_NAME_DEVICE = "device"; + @SerializedName(SERIALIZED_NAME_DEVICE) + @jakarta.annotation.Nullable + private String device; + + public static final String SERIALIZED_NAME_DEVICE_CLASS_NAME = "deviceClassName"; + @SerializedName(SERIALIZED_NAME_DEVICE_CLASS_NAME) + @jakarta.annotation.Nullable + private String deviceClassName; + + public static final String SERIALIZED_NAME_DRIVER = "driver"; + @SerializedName(SERIALIZED_NAME_DRIVER) + @jakarta.annotation.Nullable + private String driver; + + public static final String SERIALIZED_NAME_POOL = "pool"; + @SerializedName(SERIALIZED_NAME_POOL) + @jakarta.annotation.Nullable + private String pool; + + public static final String SERIALIZED_NAME_SELECTORS = "selectors"; + @SerializedName(SERIALIZED_NAME_SELECTORS) + @jakarta.annotation.Nullable + private List selectors = new ArrayList<>(); + + public V1alpha3DeviceTaintSelector() { + } + + public V1alpha3DeviceTaintSelector device(@jakarta.annotation.Nullable String device) { + this.device = device; + return this; + } + + /** + * If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name. Setting also driver and pool may be required to avoid ambiguity, but is not required. + * @return device + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name. Setting also driver and pool may be required to avoid ambiguity, but is not required.") + public String getDevice() { + return device; + } + + public void setDevice(@jakarta.annotation.Nullable String device) { + this.device = device; + } + + + public V1alpha3DeviceTaintSelector deviceClassName(@jakarta.annotation.Nullable String deviceClassName) { + this.deviceClassName = deviceClassName; + return this; + } + + /** + * If DeviceClassName is set, the selectors defined there must be satisfied by a device to be selected. This field corresponds to class.metadata.name. + * @return deviceClassName + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "If DeviceClassName is set, the selectors defined there must be satisfied by a device to be selected. This field corresponds to class.metadata.name.") + public String getDeviceClassName() { + return deviceClassName; + } + + public void setDeviceClassName(@jakarta.annotation.Nullable String deviceClassName) { + this.deviceClassName = deviceClassName; + } + + + public V1alpha3DeviceTaintSelector driver(@jakarta.annotation.Nullable String driver) { + this.driver = driver; + return this; + } + + /** + * If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.driver. + * @return driver + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.driver.") + public String getDriver() { + return driver; + } + + public void setDriver(@jakarta.annotation.Nullable String driver) { + this.driver = driver; + } + + + public V1alpha3DeviceTaintSelector pool(@jakarta.annotation.Nullable String pool) { + this.pool = pool; + return this; + } + + /** + * If pool is set, only devices in that pool are selected. Also setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name. + * @return pool + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "If pool is set, only devices in that pool are selected. Also setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name.") + public String getPool() { + return pool; + } + + public void setPool(@jakarta.annotation.Nullable String pool) { + this.pool = pool; + } + + + public V1alpha3DeviceTaintSelector selectors(@jakarta.annotation.Nullable List selectors) { + this.selectors = selectors; + return this; + } + + public V1alpha3DeviceTaintSelector addSelectorsItem(V1alpha3DeviceSelector selectorsItem) { + if (this.selectors == null) { + this.selectors = new ArrayList<>(); + } + this.selectors.add(selectorsItem); + return this; + } + + /** + * Selectors contains the same selection criteria as a ResourceClaim. Currently, CEL expressions are supported. All of these selectors must be satisfied. + * @return selectors + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Selectors contains the same selection criteria as a ResourceClaim. Currently, CEL expressions are supported. All of these selectors must be satisfied.") + public List getSelectors() { + return selectors; + } + + public void setSelectors(@jakarta.annotation.Nullable List selectors) { + this.selectors = selectors; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceTaintSelector v1alpha3DeviceTaintSelector = (V1alpha3DeviceTaintSelector) o; + return Objects.equals(this.device, v1alpha3DeviceTaintSelector.device) && + Objects.equals(this.deviceClassName, v1alpha3DeviceTaintSelector.deviceClassName) && + Objects.equals(this.driver, v1alpha3DeviceTaintSelector.driver) && + Objects.equals(this.pool, v1alpha3DeviceTaintSelector.pool) && + Objects.equals(this.selectors, v1alpha3DeviceTaintSelector.selectors); + } + + @Override + public int hashCode() { + return Objects.hash(device, deviceClassName, driver, pool, selectors); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceTaintSelector {\n"); + sb.append(" device: ").append(toIndentedString(device)).append("\n"); + sb.append(" deviceClassName: ").append(toIndentedString(deviceClassName)).append("\n"); + sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); + sb.append(" pool: ").append(toIndentedString(pool)).append("\n"); + sb.append(" selectors: ").append(toIndentedString(selectors)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("device"); + openapiFields.add("deviceClassName"); + openapiFields.add("driver"); + openapiFields.add("pool"); + openapiFields.add("selectors"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceTaintSelector + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3DeviceTaintSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceTaintSelector is not found in the empty JSON string", V1alpha3DeviceTaintSelector.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3DeviceTaintSelector.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceTaintSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("device") != null && !jsonObj.get("device").isJsonNull()) && !jsonObj.get("device").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `device` to be a primitive type in the JSON string but got `%s`", jsonObj.get("device").toString())); + } + if ((jsonObj.get("deviceClassName") != null && !jsonObj.get("deviceClassName").isJsonNull()) && !jsonObj.get("deviceClassName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); + } + if ((jsonObj.get("driver") != null && !jsonObj.get("driver").isJsonNull()) && !jsonObj.get("driver").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `driver` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driver").toString())); + } + if ((jsonObj.get("pool") != null && !jsonObj.get("pool").isJsonNull()) && !jsonObj.get("pool").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `pool` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pool").toString())); + } + if (jsonObj.get("selectors") != null && !jsonObj.get("selectors").isJsonNull()) { + JsonArray jsonArrayselectors = jsonObj.getAsJsonArray("selectors"); + if (jsonArrayselectors != null) { + // ensure the json data is an array + if (!jsonObj.get("selectors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `selectors` to be an array in the JSON string but got `%s`", jsonObj.get("selectors").toString())); + } + + // validate the optional field `selectors` (array) + for (int i = 0; i < jsonArrayselectors.size(); i++) { + V1alpha3DeviceSelector.validateJsonElement(jsonArrayselectors.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3DeviceTaintSelector.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3DeviceTaintSelector' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DeviceTaintSelector.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3DeviceTaintSelector value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3DeviceTaintSelector read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3DeviceTaintSelector given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3DeviceTaintSelector + * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceTaintSelector + */ + public static V1alpha3DeviceTaintSelector fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3DeviceTaintSelector.class); + } + + /** + * Convert an instance of V1alpha3DeviceTaintSelector to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceToleration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceToleration.java new file mode 100644 index 0000000000..b6efc0be4b --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceToleration.java @@ -0,0 +1,329 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>. + */ +@ApiModel(description = "The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator .") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1alpha3DeviceToleration { + public static final String SERIALIZED_NAME_EFFECT = "effect"; + @SerializedName(SERIALIZED_NAME_EFFECT) + @jakarta.annotation.Nullable + private String effect; + + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + @jakarta.annotation.Nullable + private String key; + + public static final String SERIALIZED_NAME_OPERATOR = "operator"; + @SerializedName(SERIALIZED_NAME_OPERATOR) + @jakarta.annotation.Nullable + private String operator; + + public static final String SERIALIZED_NAME_TOLERATION_SECONDS = "tolerationSeconds"; + @SerializedName(SERIALIZED_NAME_TOLERATION_SECONDS) + @jakarta.annotation.Nullable + private Long tolerationSeconds; + + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + @jakarta.annotation.Nullable + private String value; + + public V1alpha3DeviceToleration() { + } + + public V1alpha3DeviceToleration effect(@jakarta.annotation.Nullable String effect) { + this.effect = effect; + return this; + } + + /** + * Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute. + * @return effect + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute.") + public String getEffect() { + return effect; + } + + public void setEffect(@jakarta.annotation.Nullable String effect) { + this.effect = effect; + } + + + public V1alpha3DeviceToleration key(@jakarta.annotation.Nullable String key) { + this.key = key; + return this; + } + + /** + * Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name. + * @return key + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name.") + public String getKey() { + return key; + } + + public void setKey(@jakarta.annotation.Nullable String key) { + this.key = key; + } + + + public V1alpha3DeviceToleration operator(@jakarta.annotation.Nullable String operator) { + this.operator = operator; + return this; + } + + /** + * Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category. + * @return operator + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category.") + public String getOperator() { + return operator; + } + + public void setOperator(@jakarta.annotation.Nullable String operator) { + this.operator = operator; + } + + + public V1alpha3DeviceToleration tolerationSeconds(@jakarta.annotation.Nullable Long tolerationSeconds) { + this.tolerationSeconds = tolerationSeconds; + return this; + } + + /** + * TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>. + * @return tolerationSeconds + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. If larger than zero, the time when the pod needs to be evicted is calculated as
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -